Home
last modified time | relevance | path

Searched refs:ActivityManagerHelper (Results 1 – 25 of 29) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java65 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()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java38 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()
/packages/services/Car/car-lib/src/android/car/app/
DCarTaskViewControllerHostLifecycleFactory.java23 import android.car.builtin.app.ActivityManagerHelper;
57 if (ActivityManagerHelper.isVisible(activity)) { in CarTaskViewControllerHostActivityLifecycleAdapter()
DCarTaskViewControllerSupervisor.java25 import android.car.builtin.app.ActivityManagerHelper;
116 return ActivityManagerHelper.getActivityToken(activity); in getToken()
/packages/services/Car/service/src/com/android/car/
DSystemActivityMonitoringService.java22 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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java40 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()
/packages/services/Car/car-lib/src/android/car/projection/
DProjectionOptions.java24 import android.car.builtin.app.ActivityManagerHelper;
96 ? ActivityManagerHelper.createActivityOptions(activityOptionsBundle) : null; in ProjectionOptions()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java18 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()
DCarActivityService.java37 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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DExperimentalCarUserServiceTest.java43 import android.car.builtin.app.ActivityManagerHelper;
232 .when(() -> ActivityManagerHelper.startUserInBackground(anyInt())); in testStartPassenger()
250 .when(() -> ActivityManagerHelper.startUserInBackground(anyInt())); in testStopPassenger()
DBaseCarUserServiceTestCase.java52 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()
DInitialUserSetterTest.java49 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()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/app/
DActivityManagerHelper.java44 public final class ActivityManagerHelper { class
64 private ActivityManagerHelper() { in ActivityManagerHelper() method in ActivityManagerHelper
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DCarPackageManagerServiceUnitTest.java46 import android.car.builtin.app.ActivityManagerHelper;
109 .spyStatic(ActivityManagerHelper.class) in onSessionBuilder()
321 doReturn(result).when(() -> ActivityManagerHelper.checkComponentPermission( in mockQueryPermission()
/packages/services/Car/service/src/com/android/car/user/
DExperimentalCarUserService.java36 import android.car.builtin.app.ActivityManagerHelper;
342 if (!ActivityManagerHelper.startUserInBackground(passengerId)) { in startPassenger()
411 ActivityManagerHelper.stopAllTasksForUser(passengerId); in stopPassengerInternal()
DCarUserService.java47 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()
DInitialUserSetter.java29 import android.car.builtin.app.ActivityManagerHelper;
692 return ActivityManagerHelper.startUserInForeground(userId); in startForegroundUser()
/packages/services/Car/car-builtin-lib/api/
Dsystem-lint-baseline.txt14 UserHandleName: android.car.builtin.app.ActivityManagerHelper#startUserInForeground(android.os.User…
Dmodule-lib-current.txt30 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();
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java50 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()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSystemActivityMonitoringServiceUnitTest.java27 import android.car.builtin.app.ActivityManagerHelper.ProcessObserverCallback;
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java18 import static android.car.builtin.app.ActivityManagerHelper.createActivityOptions;
DClusterHomeService.java19 import static android.car.builtin.app.ActivityManagerHelper.createActivityOptions;
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java38 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()
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_built_in_api_list.txt96 class @hide @SystemApi ActivityManagerHelper package android.car.builtin.app
109 class ActivityManagerHelper.ProcessObserverCallback package android.car.builtin.app

12