Loading quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +2 −2 Original line number Diff line number Diff line Loading @@ -547,7 +547,7 @@ public class TouchInteractionService extends Service implements PluginListener<O gestureState.updatePreviouslyAppearedTaskIds( previousGestureState.getPreviouslyAppearedTaskIds()); } else { gestureState.updateRunningTask(TraceHelper.whitelistIpcs("getRunningTask.0", gestureState.updateRunningTask(TraceHelper.allowIpcs("getRunningTask.0", () -> mAM.getRunningTask(false /* filterOnlyVisibleRecents */))); } return gestureState; Loading Loading @@ -660,7 +660,7 @@ public class TouchInteractionService extends Service implements PluginListener<O if (AssistantUtilities.isExcludedAssistant(gestureState.getRunningTask())) { // In the case where we are in the excluded assistant state, ignore it and treat the // running activity as the task behind the assistant gestureState.updateRunningTask(TraceHelper.whitelistIpcs("getRunningTask.assistant", gestureState.updateRunningTask(TraceHelper.allowIpcs("getRunningTask.assistant", () -> mAM.getRunningTask(true /* filterOnlyVisibleRecents */))); ComponentName homeComponent = mOverviewComponentObserver.getHomeIntent().getComponent(); ComponentName runningComponent = Loading quickstep/recents_ui_overrides/src/com/android/quickstep/views/LauncherRecentsView.java +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ public class LauncherRecentsView extends RecentsView<BaseQuickstepLauncher> @Override public boolean shouldUseMultiWindowTaskSizeStrategy() { return TraceHelper.whitelistIpcs("isInMultiWindowMode", mActivity::isInMultiWindowMode); return TraceHelper.allowIpcs("isInMultiWindowMode", mActivity::isInMultiWindowMode); } @Override Loading src/com/android/launcher3/BaseDraggingActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,7 @@ public abstract class BaseDraggingActivity extends BaseActivity super.onCreate(savedInstanceState); mIsSafeModeEnabled = TraceHelper.whitelistIpcs("isSafeMode", mIsSafeModeEnabled = TraceHelper.allowIpcs("isSafeMode", () -> getPackageManager().isSafeMode()); DefaultDisplay.INSTANCE.get(this).addChangeListener(this); Loading src/com/android/launcher3/graphics/LauncherPreviewRenderer.java +2 −2 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ public class LauncherPreviewRenderer { */ public static class PreviewContext extends ContextWrapper { private static final Set<MainThreadInitializedObject> WHITELIST = new HashSet<>( private final Set<MainThreadInitializedObject> mAllowedObjects = new HashSet<>( Arrays.asList(UserCache.INSTANCE, InstallSessionHelper.INSTANCE, LauncherAppState.INSTANCE, InvariantDeviceProfile.INSTANCE, CustomWidgetManager.INSTANCE, PluginManagerWrapper.INSTANCE)); Loading Loading @@ -157,7 +157,7 @@ public class LauncherPreviewRenderer { */ public <T> T getObject(MainThreadInitializedObject<T> mainThreadInitializedObject, MainThreadInitializedObject.ObjectProvider<T> provider) { if (!WHITELIST.contains(mainThreadInitializedObject)) { if (!mAllowedObjects.contains(mainThreadInitializedObject)) { throw new IllegalStateException("Leaking unknown objects"); } if (mainThreadInitializedObject == LauncherAppState.INSTANCE) { Loading src/com/android/launcher3/util/MainThreadInitializedObject.java +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ public class MainThreadInitializedObject<T> { if (mValue == null) { if (Looper.myLooper() == Looper.getMainLooper()) { mValue = TraceHelper.whitelistIpcs("main.thread.object", mValue = TraceHelper.allowIpcs("main.thread.object", () -> mProvider.get(context.getApplicationContext())); } else { try { Loading Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +2 −2 Original line number Diff line number Diff line Loading @@ -547,7 +547,7 @@ public class TouchInteractionService extends Service implements PluginListener<O gestureState.updatePreviouslyAppearedTaskIds( previousGestureState.getPreviouslyAppearedTaskIds()); } else { gestureState.updateRunningTask(TraceHelper.whitelistIpcs("getRunningTask.0", gestureState.updateRunningTask(TraceHelper.allowIpcs("getRunningTask.0", () -> mAM.getRunningTask(false /* filterOnlyVisibleRecents */))); } return gestureState; Loading Loading @@ -660,7 +660,7 @@ public class TouchInteractionService extends Service implements PluginListener<O if (AssistantUtilities.isExcludedAssistant(gestureState.getRunningTask())) { // In the case where we are in the excluded assistant state, ignore it and treat the // running activity as the task behind the assistant gestureState.updateRunningTask(TraceHelper.whitelistIpcs("getRunningTask.assistant", gestureState.updateRunningTask(TraceHelper.allowIpcs("getRunningTask.assistant", () -> mAM.getRunningTask(true /* filterOnlyVisibleRecents */))); ComponentName homeComponent = mOverviewComponentObserver.getHomeIntent().getComponent(); ComponentName runningComponent = Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/views/LauncherRecentsView.java +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ public class LauncherRecentsView extends RecentsView<BaseQuickstepLauncher> @Override public boolean shouldUseMultiWindowTaskSizeStrategy() { return TraceHelper.whitelistIpcs("isInMultiWindowMode", mActivity::isInMultiWindowMode); return TraceHelper.allowIpcs("isInMultiWindowMode", mActivity::isInMultiWindowMode); } @Override Loading
src/com/android/launcher3/BaseDraggingActivity.java +1 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,7 @@ public abstract class BaseDraggingActivity extends BaseActivity super.onCreate(savedInstanceState); mIsSafeModeEnabled = TraceHelper.whitelistIpcs("isSafeMode", mIsSafeModeEnabled = TraceHelper.allowIpcs("isSafeMode", () -> getPackageManager().isSafeMode()); DefaultDisplay.INSTANCE.get(this).addChangeListener(this); Loading
src/com/android/launcher3/graphics/LauncherPreviewRenderer.java +2 −2 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ public class LauncherPreviewRenderer { */ public static class PreviewContext extends ContextWrapper { private static final Set<MainThreadInitializedObject> WHITELIST = new HashSet<>( private final Set<MainThreadInitializedObject> mAllowedObjects = new HashSet<>( Arrays.asList(UserCache.INSTANCE, InstallSessionHelper.INSTANCE, LauncherAppState.INSTANCE, InvariantDeviceProfile.INSTANCE, CustomWidgetManager.INSTANCE, PluginManagerWrapper.INSTANCE)); Loading Loading @@ -157,7 +157,7 @@ public class LauncherPreviewRenderer { */ public <T> T getObject(MainThreadInitializedObject<T> mainThreadInitializedObject, MainThreadInitializedObject.ObjectProvider<T> provider) { if (!WHITELIST.contains(mainThreadInitializedObject)) { if (!mAllowedObjects.contains(mainThreadInitializedObject)) { throw new IllegalStateException("Leaking unknown objects"); } if (mainThreadInitializedObject == LauncherAppState.INSTANCE) { Loading
src/com/android/launcher3/util/MainThreadInitializedObject.java +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ public class MainThreadInitializedObject<T> { if (mValue == null) { if (Looper.myLooper() == Looper.getMainLooper()) { mValue = TraceHelper.whitelistIpcs("main.thread.object", mValue = TraceHelper.allowIpcs("main.thread.object", () -> mProvider.get(context.getApplicationContext())); } else { try { Loading