com.android.server.wm.ActivityRecord#forTokenLocked
com.android.server.wm.ActivityRecord#forToken
@Nullable
static ActivityRecord forToken(IBinder token) {
if (token == null) return null;
final Token activityToken;
try {
activityToken = (Token) token;
} catch (ClassCastException e) {
Slog.w(TAG, "Bad activity token: " + token, e);
return null;
}
return activityToken.mActivityRef.get();
}
static @Nullable ActivityRecord forTokenLocked(IBinder token) {
final ActivityRecord r = forToken(token);
return r == null || r.getRootTask() == null ? null : r;
}
499

被折叠的 条评论
为什么被折叠?



