Searched refs:ActivityManagerHelper (Results 1 – 25 of 29) sorted by relevance
12
65 import android.car.builtin.app.ActivityManagerHelper;110 .spyStatic(ActivityManagerHelper.class) in setUp()139 assertThat(ActivityManagerHelper.startUserInBackground(TEST_USER_ID)).isTrue(); in testMockAmStartUserInBackground_true()146 assertThat(ActivityManagerHelper.startUserInBackground(TEST_USER_ID)).isFalse(); in testMockAmStartUserInBackground_false()153 assertThat(ActivityManagerHelper in testMockAmStartUserInBackgroundVisibleOnDisplay_true()162 assertThat(ActivityManagerHelper in testMockAmStartUserInBackgroundVisibleOnDisplay_false()171 assertThat(ActivityManagerHelper.stopUser(TEST_USER_ID, /* force= */ true)).isEqualTo(42); in testMockForceStopUser()179 () -> ActivityManagerHelper.stopUser(TEST_USER_ID, /* force= */ true)); in testMockForceStopUserThrows()186 assertThat(ActivityManagerHelper in testMockStopUserWithDelayedLocking()196 () -> ActivityManagerHelper in testMockStopUserWithDelayedLockingThrows()
38 import android.car.builtin.app.ActivityManagerHelper;109 doReturn(result).when(() -> ActivityManagerHelper.startUserInBackground(userId)); in mockAmStartUserInBackground()122 -> ActivityManagerHelper.startUserInBackgroundVisibleOnDisplay(userId, displayId)); in mockAmStartUserInBackgroundVisibleOnDisplay()134 .when(() -> ActivityManagerHelper.stopUser(userId, /* force= */ true)); in mockForceStopUser()146 doThrow(throwable).when(() -> ActivityManagerHelper.stopUser(userId, /* force= */ true)); in mockForceStopUserThrows()159 .when(() -> ActivityManagerHelper.stopUserWithDelayedLocking( in mockStopUserWithDelayedLocking()173 doThrow(throwable).when(() -> ActivityManagerHelper.stopUserWithDelayedLocking( in mockStopUserWithDelayedLockingThrows()
23 import android.car.builtin.app.ActivityManagerHelper;57 if (ActivityManagerHelper.isVisible(activity)) { in CarTaskViewControllerHostActivityLifecycleAdapter()
25 import android.car.builtin.app.ActivityManagerHelper;116 return ActivityManagerHelper.getActivityToken(activity); in getToken()
22 import android.car.builtin.app.ActivityManagerHelper;23 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;381 ActivityManagerHelper.registerProcessObserverCallback(callback); in registerProcessObserverCallback()386 ActivityManagerHelper.unregisterProcessObserverCallback(callback); in unregisterProcessObserverCallback()
40 import android.car.builtin.app.ActivityManagerHelper;112 .spyStatic(ActivityManagerHelper.class) in onSessionBuilder()504 verify(() -> ActivityManagerHelper.registerProcessObserverCallback( in testStopFixedActivityMode()505 any(ActivityManagerHelper.ProcessObserverCallback.class))); in testStopFixedActivityMode()508 verify(() -> ActivityManagerHelper.unregisterProcessObserverCallback( in testStopFixedActivityMode()509 any(ActivityManagerHelper.ProcessObserverCallback.class))); in testStopFixedActivityMode()515 verify(() -> ActivityManagerHelper.unregisterProcessObserverCallback( in testStopFixedActivityMode_invalidDisplayId()516 any(ActivityManagerHelper.ProcessObserverCallback.class)), never()); in testStopFixedActivityMode_invalidDisplayId()
24 import android.car.builtin.app.ActivityManagerHelper;96 ? ActivityManagerHelper.createActivityOptions(activityOptionsBundle) : null; in ProjectionOptions()
18 import static android.car.builtin.app.ActivityManagerHelper.INVALID_TASK_ID;32 import android.car.builtin.app.ActivityManagerHelper;33 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;352 ActivityManagerHelper.registerProcessObserverCallback(mProcessObserver); in startMonitoringEvents()377 ActivityManagerHelper.unregisterProcessObserverCallback(mProcessObserver); in stopMonitoringEvents()424 ActivityManagerHelper.removeTask(activityInfo.taskId); in launchIfNecessary()
37 import android.car.builtin.app.ActivityManagerHelper;653 ActivityManagerHelper.removeTask(taskId); in restartTask()707 ActivityManagerHelper.setFocusedTask(taskInfo.taskId); in findTaskAndGrantFocus()719 ActivityManagerHelper.moveRootTaskToDisplay(taskId, displayId); in moveRootTaskToDisplay()
43 import android.car.builtin.app.ActivityManagerHelper;232 .when(() -> ActivityManagerHelper.startUserInBackground(anyInt())); in testStartPassenger()250 .when(() -> ActivityManagerHelper.startUserInBackground(anyInt())); in testStopPassenger()
52 import android.car.builtin.app.ActivityManagerHelper;259 .spyStatic(ActivityManagerHelper.class) in onSessionBuilder()891 doReturn(result).when(() -> ActivityManagerHelper.checkComponentPermission( in mockInteractAcrossUsersPermission()894 doReturn(result).when(() -> ActivityManagerHelper.checkComponentPermission( in mockInteractAcrossUsersPermission()902 doReturn(result).when(() -> ActivityManagerHelper.checkComponentPermission(eq(permission), in mockManageUsersPermission()
49 import android.car.builtin.app.ActivityManagerHelper;115 .spyStatic(ActivityManagerHelper.class) in onSessionBuilder()869 verify(() -> ActivityManagerHelper.startUserInForeground(UserHandle.USER_SYSTEM), never()); in testStartForegroundUser_headlessSystemUser()1150 doReturn(toBeReturned).when(() -> ActivityManagerHelper.startUserInForeground(userId)); in expectAmStartFgUser()
44 public final class ActivityManagerHelper { class64 private ActivityManagerHelper() { in ActivityManagerHelper() method in ActivityManagerHelper
46 import android.car.builtin.app.ActivityManagerHelper;109 .spyStatic(ActivityManagerHelper.class) in onSessionBuilder()321 doReturn(result).when(() -> ActivityManagerHelper.checkComponentPermission( in mockQueryPermission()
36 import android.car.builtin.app.ActivityManagerHelper;342 if (!ActivityManagerHelper.startUserInBackground(passengerId)) { in startPassenger()411 ActivityManagerHelper.stopAllTasksForUser(passengerId); in stopPassengerInternal()
47 import android.car.builtin.app.ActivityManagerHelper;2144 return ActivityManagerHelper.startUserInBackgroundVisibleOnDisplay(userId, displayId) in startUserInternal()2179 if (!ActivityManagerHelper.startUserInBackground(userId)) { in startUserInBackgroundInternal()2222 if (ActivityManagerHelper.startUserInBackground(user)) { in startAllBackgroundUsersInGarageMode()2226 } else if (ActivityManagerHelper.unlockUser(user)) { in startAllBackgroundUsersInGarageMode()2309 r = ActivityManagerHelper.stopUserWithDelayedLocking(userId, forceStop); in stopBackgroundUserInternal()2311 r = ActivityManagerHelper.stopUser(userId, forceStop); in stopBackgroundUserInternal()2864 return ActivityManagerHelper.checkComponentPermission(permission, uid, /* owningUid= */ -1, in hasPermissionGranted()
29 import android.car.builtin.app.ActivityManagerHelper;692 return ActivityManagerHelper.startUserInForeground(userId); in startForegroundUser()
14 UserHandleName: android.car.builtin.app.ActivityManagerHelper#startUserInForeground(android.os.User…
30 public final class ActivityManagerHelper {41 …atic void registerProcessObserverCallback(android.car.builtin.app.ActivityManagerHelper.ProcessObs…51 …ic void unregisterProcessObserverCallback(android.car.builtin.app.ActivityManagerHelper.ProcessObs…56 public abstract static class ActivityManagerHelper.ProcessObserverCallback {57 ctor public ActivityManagerHelper.ProcessObserverCallback();
50 import android.car.builtin.app.ActivityManagerHelper;267 .spyStatic(ActivityManagerHelper.class) in onSessionBuilder()371 () -> ActivityManagerHelper.getRunningAppProcesses()); in testHibernateFreeMemory()388 () -> ActivityManagerHelper.getRunningAppProcesses()); in testHibernateFreeMemory_multipleProcesses()413 () -> ActivityManagerHelper.getRunningAppProcesses()); in testHibernateFreeMemory_multipleProcessesWithOneProcessTooLow()440 () -> ActivityManagerHelper.getRunningAppProcesses()); in testHibernateFreeMemory_multipleProcessesWithOneProcessNotInAllowList()469 () -> ActivityManagerHelper.getRunningAppProcesses()); in testHibernateFreeMemory_multipleProcessesSameUid()496 () -> ActivityManagerHelper.getRunningAppProcesses()); in testHibernateFreeMemory_multipleProcessesPersistentProcess()502 mRunningProcess1.flags = ActivityManagerHelper.PROCESS_INFO_PERSISTENT_FLAG; in testHibernateFreeMemory_multipleProcessesPersistentProcess()
27 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;
18 import static android.car.builtin.app.ActivityManagerHelper.createActivityOptions;
19 import static android.car.builtin.app.ActivityManagerHelper.createActivityOptions;
38 import android.car.builtin.app.ActivityManagerHelper;3928 ActivityManagerHelper.killAllBackgroundProcesses(); in freeMemory()3933 ActivityManagerHelper.getRunningAppProcesses(); in freeMemory()3944 boolean isProcessPersistent = (ActivityManagerHelper in freeMemory()3946 & ActivityManagerHelper.PROCESS_INFO_PERSISTENT_FLAG) != 0; in freeMemory()
96 class @hide @SystemApi ActivityManagerHelper package android.car.builtin.app109 class ActivityManagerHelper.ProcessObserverCallback package android.car.builtin.app