Home
last modified time | relevance | path

Searched refs:mockAmGetCurrentUser (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockAmGetCurrentUser;
141 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_noRunningActivity()
159 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity()
189 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_runNewActivity()
214 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_WithNewExtras()
245 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_WithModifiedExtras()
279 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_WithTwoExtras()
309 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplay_relaunchWithPackageUpdated()
357 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_runOnDifferentDisplay()
377 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_invalidDisplay()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/users/
DCarSystemUIUserUtilTest.java71 AndroidMockitoHelper.mockAmGetCurrentUser(mActivityManagerTestUser); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarServiceUtilsTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockAmGetCurrentUser;
99 mockAmGetCurrentUser(CURRENT_USER_ID); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java20 import static android.car.test.mocks.AndroidMockitoHelper.mockAmGetCurrentUser;
130 mockAmGetCurrentUser(UserHandle.USER_NULL); in testMockAmGetCurrentUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalHelperTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockAmGetCurrentUser;
1284 mockAmGetCurrentUser(300); // just to make sure it's not used in testNewUsersInfo_ok()
1309 mockAmGetCurrentUser(100); in testNewUsersInfo_currentUser_ok()
1333 mockAmGetCurrentUser(300); in testNewUsersInfo_noCurrentUser()
1357 mockAmGetCurrentUser(300); // just to make sure it's not used in testNewUsersInfo_flagConversionFails()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogPerfHandlerUnitTest.java23 import static android.car.test.mocks.AndroidMockitoHelper.mockAmGetCurrentUser;
3326 mockAmGetCurrentUser(CURRENT_USER_ID); in testNoUserNotificationWithNoRecurrentOveruse()
3342 mockAmGetCurrentUser(CURRENT_USER_ID); in testNoUserNotificationOnRecurrentOveruseWithDistractionOptimization()
3358 mockAmGetCurrentUser(CURRENT_USER_ID); in testUserNotificationOnRecurrentOveruseAfterNoDistractionOptimization()
3382 mockAmGetCurrentUser(CURRENT_USER_ID); in testNoDuplicateUserNotificationOnRepeatedRecurrentOveruse()
3408 mockAmGetCurrentUser(CURRENT_USER_ID); in testImmediateUserNotificationOnRecurrentOveruseWhenNoDistractionOptimization()
3441 mockAmGetCurrentUser(CURRENT_USER_ID); in testNoUserNotificationOnRecurrentOveruseByPrePrioritizedApp()
3466 mockAmGetCurrentUser(CURRENT_USER_ID); in testNoUserNotificationOnRecurrentOveruseByPostPrioritizedApp()
3491 mockAmGetCurrentUser(CURRENT_USER_ID); in testUserNotificationOnRecurrentOveruseByPriorityResettedApp()
3529 mockAmGetCurrentUser(CURRENT_USER_ID); in testUserNotificationOnHistoricalRecurrentOveruse()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerControllerTest.java147 AndroidMockitoHelper.mockAmGetCurrentUser(USER_ID_DRIVER); in displaySetup()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAbstractExtendedMockitoTestCase.java443 AndroidMockitoHelper.mockAmGetCurrentUser(userId); in mockGetCurrentUser()
DAndroidMockitoHelper.java88 public static void mockAmGetCurrentUser(@UserIdInt int userId) { in mockAmGetCurrentUser() method in AndroidMockitoHelper
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java177 AndroidMockitoHelper.mockAmGetCurrentUser(TEST_USER_ID); in setUp()