Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29266c9e authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Updating some comments and variables

Change-Id: Ib3223c66e9ce187cebc6ce26a46b228f95787778
parent 6381d382
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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 =
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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);

+2 −2
Original line number Diff line number Diff line
@@ -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));
@@ -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) {
+1 −1
Original line number Diff line number Diff line
@@ -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