/packages/modules/AdServices/sdksandbox/tests/cts/hostside/provider/src/com/android/sdksandbox/cts/provider/dataisolationtest/ |
D | DataIsolationTestSdkApiImpl.java | 42 private static final String CURRENT_USER_ID = field in DataIsolationTestSdkApiImpl 58 verifyDirectoryAccess("/data/user/" + CURRENT_USER_ID + "/" + APP_PKG, false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() 59 verifyDirectoryAccess("/data/user/" + CURRENT_USER_ID + "/" + APP_2_PKG, false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() 60 verifyDirectoryAccess("/data/user/" + CURRENT_USER_ID + "/does.not.exist", false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() 62 verifyDirectoryAccess("/data/misc/profiles/cur/" + CURRENT_USER_ID + "/" + APP_PKG, false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() 64 "/data/misc/profiles/cur/" + CURRENT_USER_ID + "/" + APP_2_PKG, false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() 66 "/data/misc/profiles/cur/" + CURRENT_USER_ID + "/does.not.exist", false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() 69 "/data/misc_ce/" + CURRENT_USER_ID + "/sdksandbox/" + APP_2_PKG, false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() 71 "/data/misc_ce/" + CURRENT_USER_ID + "/sdksandbox/does.not.exist", false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() 73 "/data/misc_de/" + CURRENT_USER_ID + "/sdksandbox/" + APP_2_PKG, false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallLogManagerTest.java | 123 private static final int CURRENT_USER_ID = 0; field in CallLogManagerTest 153 UserHandle.of(CURRENT_USER_ID) in setUp() 171 UserHandle.of(CURRENT_USER_ID) in setUp() 179 UserInfo userInfo = new UserInfo(CURRENT_USER_ID, "test", 0); in setUp() 210 configureContextForUser(CURRENT_USER_ID, userInfo); in setUp() 211 when(userManager.getUserInfo(eq(CURRENT_USER_ID))).thenReturn(userInfo); in setUp() 266 UserHandle.of(CURRENT_USER_ID) in testDontLogCancelledCall() 290 UserHandle.of(CURRENT_USER_ID) in testDontLogChoosingAccountCall() 326 UserHandle.of(CURRENT_USER_ID) in testDontLogUnloggableNumbers() 340 UserHandle.of(CURRENT_USER_ID) in testDontLogUnloggableNumbers() [all …]
|
D | InCallControllerTests.java | 164 private static final int CURRENT_USER_ID = 9; field in InCallControllerTests 192 "pa_id_0", UserHandle.of(CURRENT_USER_ID)); 195 private UserHandle mUserHandle = UserHandle.of(CURRENT_USER_ID); 480 when(mDefaultDialerCache.getDefaultDialerApplication(CURRENT_USER_ID)) in testBindToService_DefaultDialer_NoEmergency() 493 eq(CURRENT_USER_ID)); in testBindToService_DefaultDialer_NoEmergency() 538 when(mDefaultDialerCache.getDefaultDialerApplication(CURRENT_USER_ID)) in testBindToService_SystemDialer_Emergency() 556 eq(CURRENT_USER_ID)); in testBindToService_SystemDialer_Emergency() 741 when(mDefaultDialerCache.getDefaultDialerApplication(CURRENT_USER_ID)) in testBindToService_SystemDialer_Crash() 761 eq(CURRENT_USER_ID)); in testBindToService_SystemDialer_Crash() 829 when(mDefaultDialerCache.getDefaultDialerApplication(CURRENT_USER_ID)) in testBindToService_DefaultDialer_FallBackToSystem() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetNewPasswordControllerTest.java | 55 private static final int CURRENT_USER_ID = 101; field in SetNewPasswordControllerTest 74 CURRENT_USER_ID, mPackageManager, mFingerprintManager, mFaceManager, in setUp() 85 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithFingerprint() 105 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithFace() 153 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithoutFingerprint_noFingerprintSensor() 172 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithoutFace_noFaceSensor() 191 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFingerprint_hasFingerprintEnrolled() 210 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFace_hasFaceEnrolled() 229 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFingerprint_deviceAdminDisallowFingerprintForKeyguard() 248 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFace_deviceAdminDisallowFaceForKeyguard() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app/ |
D | SdkSandboxDataIsolationTestApp.java | 52 private static final String CURRENT_USER_ID = field in SdkSandboxDataIsolationTestApp 86 assertFileAccessIsDenied("/data/misc_ce/" + CURRENT_USER_ID + "/sdksandbox/" + APP_PKG); in testAppCannotAccessAnySandboxDirectories() 87 assertFileAccessIsDenied("/data/misc_ce/" + CURRENT_USER_ID + "/sdksandbox/" + APP_2_PKG); in testAppCannotAccessAnySandboxDirectories() 88 assertFileAccessIsDenied("/data/misc_ce/" + CURRENT_USER_ID + "/sdksandbox/does.not.exist"); in testAppCannotAccessAnySandboxDirectories() 90 assertFileAccessIsDenied("/data/misc_de/" + CURRENT_USER_ID + "/sdksandbox/" + APP_PKG); in testAppCannotAccessAnySandboxDirectories() 91 assertFileAccessIsDenied("/data/misc_de/" + CURRENT_USER_ID + "/sdksandbox/" + APP_2_PKG); in testAppCannotAccessAnySandboxDirectories() 92 assertFileAccessIsDenied("/data/misc_de/" + CURRENT_USER_ID + "/sdksandbox/does.not.exist"); in testAppCannotAccessAnySandboxDirectories()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | CarNotificationListenerTest.java | 55 private static final int CURRENT_USER_ID = 10; field in CarNotificationListenerTest 102 when(mStatusBarNotification.getUser()).thenReturn(new UserHandle(CURRENT_USER_ID)); in setup() 138 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager() 149 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications() 184 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isNotHun_isForCurrentUser_overrideGroupKeySet() 195 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isNotHun_isForCurrentUser_addsAlertEntryToDataManager() 206 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isNotHun_isForCurrentUser_addsItToActiveNotifications() 218 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification() 269 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isHun_doesNotNotifyHandler() 336 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isNotHun_isOngoing_notifiesHandler() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | InitialUserSetterTest.java | 80 private static final int CURRENT_USER_ID = 102; field in InitialUserSetterTest 126 mockGetCurrentUser(CURRENT_USER_ID); in setFixtures() 198 mockGetCurrentUser(CURRENT_USER_ID); in testSwitchUser_ok_guestReplaced() 296 mockGetCurrentUser(CURRENT_USER_ID); in testSwitchUser_ok_targetIsCurrentUser() 297 UserHandle currentUser = expectRegularUserExists(mMockedUserHandleHelper, CURRENT_USER_ID); in testSwitchUser_ok_targetIsCurrentUser() 300 .setSwitchUserId(CURRENT_USER_ID) in testSwitchUser_ok_targetIsCurrentUser() 550 mockGetCurrentUser(CURRENT_USER_ID); in testReplaceUser_ok() 551 expectGuestUserExists(mMockedUserHandleHelper, CURRENT_USER_ID, /* isEphemeral= */ true); in testReplaceUser_ok() 555 expectGuestReplaced(CURRENT_USER_ID, newGuest); in testReplaceUser_ok() 564 verifyUserDeleted(CURRENT_USER_ID); in testReplaceUser_ok() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/ |
D | EnterprisePolicyGuardTest.java | 276 private static final int CURRENT_USER_ID = 0; field in EnterprisePolicyGuardTest 279 new UserInfo(CURRENT_USER_ID, "user0", CURRENT_USER_ID); 304 when(mockUm.getProcessUserId()).thenReturn(CURRENT_USER_ID); in getMockContext()
|
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/ |
D | SdkSandboxConfigurationTest.java | 72 private static final String CURRENT_USER_ID = field in SdkSandboxConfigurationTest 134 "/data/misc_ce/" + CURRENT_USER_ID + "/sdksandbox/" + TEST_PKG + "/shared"); in testGetDataDir_CE() 147 "/data/misc_de/" + CURRENT_USER_ID + "/sdksandbox/" + TEST_PKG + "/shared"); in testGetDataDir_DE()
|
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/ |
D | DockViewModelTest.kt | 56 private const val CURRENT_USER_ID = 10 in <lambda>() constant 437 doReturn(createTestRunningTaskInfoList(userId = CURRENT_USER_ID + 1)) in <lambda>() 593 userId = CURRENT_USER_ID, in <lambda>() 608 userId: Int = CURRENT_USER_ID in <lambda>()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarServiceUtilsTest.java | 67 private static final int CURRENT_USER_ID = 1000; field in CarServiceUtilsTest 99 mockAmGetCurrentUser(CURRENT_USER_ID); in setUp()
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/providers/CtsProvider/src/com/android/ctssdkprovider/ |
D | CtsSdkProviderApiImpl.java | 79 private static final String CURRENT_USER_ID = field in CtsSdkProviderApiImpl 574 + CURRENT_USER_ID in getSdkPathPrefix()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | WatchdogPerfHandlerUnitTest.java | 178 private static final int CURRENT_USER_ID = 100; field in WatchdogPerfHandlerUnitTest 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/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceControllerTest.java | 509 private static final int CURRENT_USER_ID = 10; field in StorageItemPreferenceControllerTest.FakeStorageItemPreferenceController 518 return CURRENT_USER_ID; in getCurrentUserId()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationUtilTest.java | 67 static final int CURRENT_USER_ID = 0; field in WifiConfigurationUtilTest 77 new UserInfo(CURRENT_USER_ID, "owner", 0),
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | CarPowerManagementServiceUnitTest.java | 161 private static final int CURRENT_USER_ID = 42; field in CarPowerManagementServiceUnitTest 287 setCurrentUser(CURRENT_USER_ID, /* isGuest= */ false); in setUp()
|