/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallLogManagerTest.java | 107 private static final int CURRENT_USER_ID = 0; field in CallLogManagerTest 131 UserHandle.of(CURRENT_USER_ID) in setUp() 149 UserHandle.of(CURRENT_USER_ID) in setUp() 156 UserInfo userInfo = new UserInfo(CURRENT_USER_ID, "test", 0); in setUp() 174 when(userManager.getUserInfo(eq(CURRENT_USER_ID))).thenReturn(userInfo); in setUp() 199 UserHandle.of(CURRENT_USER_ID) in testDontLogCancelledCall() 211 .thenReturn(makeFakePhoneAccount(mDefaultAccountHandle, CURRENT_USER_ID)); in testDontLogChoosingAccountCall() 223 UserHandle.of(CURRENT_USER_ID) in testDontLogChoosingAccountCall() 259 UserHandle.of(CURRENT_USER_ID) in testDontLogUnloggableNumbers() 273 UserHandle.of(CURRENT_USER_ID) in testDontLogUnloggableNumbers() [all …]
|
D | InCallControllerTests.java | 120 private static final int CURRENT_USER_ID = 900973; field in InCallControllerTests 139 private UserHandle mUserHandle = UserHandle.of(CURRENT_USER_ID); 282 when(mDefaultDialerCache.getDefaultDialerApplication(CURRENT_USER_ID)) in testBindToService_DefaultDialer_NoEmergency() 294 eq(PackageManager.GET_META_DATA), eq(CURRENT_USER_ID)); in testBindToService_DefaultDialer_NoEmergency() 335 when(mDefaultDialerCache.getDefaultDialerApplication(CURRENT_USER_ID)) in testBindToService_SystemDialer_Emergency() 353 eq(PackageManager.GET_META_DATA), eq(CURRENT_USER_ID)); in testBindToService_SystemDialer_Emergency() 411 when(mDefaultDialerCache.getDefaultDialerApplication(CURRENT_USER_ID)) in testBindToService_SystemDialer_Crash() 431 eq(PackageManager.GET_META_DATA), eq(CURRENT_USER_ID)); in testBindToService_SystemDialer_Crash() 500 when(mDefaultDialerCache.getDefaultDialerApplication(CURRENT_USER_ID)) in testBindToService_DefaultDialer_FallBackToSystem() 513 eq(PackageManager.GET_META_DATA), eq(CURRENT_USER_ID)); in testBindToService_DefaultDialer_FallBackToSystem() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetNewPasswordControllerTest.java | 59 private static final int CURRENT_USER_ID = 101; field in SetNewPasswordControllerTest 80 CURRENT_USER_ID, mPackageManager, mFingerprintManager, mFaceManager, in setUp() 95 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithFingerprint() 115 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithFace() 163 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithoutFingerprint_noFingerprintSensor() 182 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false); in launchChooseLockWithoutFace_noFaceSensor() 201 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFingerprint_hasFingerprintEnrolled() 220 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFace_hasFaceEnrolled() 239 when(mFingerprintManager.hasEnrolledFingerprints(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFingerprint_deviceAdminDisallowFingerprintForKeyguard() 258 when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true); in launchChooseLockWithoutFace_deviceAdminDisallowFaceForKeyguard() [all …]
|
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/ |
D | CarNotificationListenerTest.java | 52 private static int CURRENT_USER_ID = 0; field in CarNotificationListenerTest 86 ShadowActivityManager.setCurrentUser(CURRENT_USER_ID); in setup() 115 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager() 126 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications() 162 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isNotHun_isForCurrentUser_addsAlertEntryToDataManager() 173 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isNotHun_isForCurrentUser_addsItToActiveNotifications() 185 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification() 236 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isHun_doesNotNotifyHandler() 256 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isNotHun_isOngoing_notifiesHandler()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | InitialUserSetterTest.java | 74 private static final int CURRENT_USER_ID = 12; field in InitialUserSetterTest 109 mockGetCurrentUser(CURRENT_USER_ID); in setFixtures() 177 mockGetCurrentUser(CURRENT_USER_ID); in testSwitchUser_ok_guestReplaced() 272 mockGetCurrentUser(CURRENT_USER_ID); in testSwitchUser_ok_targetIsCurrentUser() 273 UserInfo currentUser = expectUserExists(CURRENT_USER_ID); in testSwitchUser_ok_targetIsCurrentUser() 276 .setSwitchUserId(CURRENT_USER_ID) in testSwitchUser_ok_targetIsCurrentUser() 576 UserInfo currentUser = expectHasInitialUser(CURRENT_USER_ID); in testDefaultBehavior_nonFirstBoot_ok_targetIsCurrentUser() 577 expectSwitchUser(CURRENT_USER_ID); in testDefaultBehavior_nonFirstBoot_ok_targetIsCurrentUser()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/ |
D | EnterprisePolicyGuardTest.java | 245 private static final int CURRENT_USER_ID = 0; field in EnterprisePolicyGuardTest 248 new UserInfo(CURRENT_USER_ID, "user0", CURRENT_USER_ID); 268 when(mockUm.getUserHandle()).thenReturn(CURRENT_USER_ID); in getMockContext()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPowerManagementServiceTest.java | 87 private static final int CURRENT_USER_ID = 42; field in CarPowerManagementServiceTest 132 setCurrentUser(CURRENT_USER_ID, /* isGuest= */ false); in setUp() 354 UserInfo currentUser = setCurrentUser(CURRENT_USER_ID, /* isGuest= */ false); in testUserSwitchingOnResume_disabledByOEM_nonGuest() 355 expectNewGuestCreated(CURRENT_USER_ID, currentUser); in testUserSwitchingOnResume_disabledByOEM_nonGuest()
|