/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 190 int userId = mUserMediaPlayContexts.keyAt(i); 204 : getLastMediaSourcesInternal(j, userId)) { 213 primaryComponents[j], userId, component); 215 setPrimaryMediaSource(component, j, userId); 220 userId); 226 getLastMediaSource(j, userId), userId); 229 setPrimaryMediaSource(getLastMediaSource(j, userId), j, userId); 240 int userId = mUserMediaPlayContexts.keyAt(i); 242 getRemovedMediaSourceComponentsForUser(userId); 248 removedComponents[j], userId); [all …]
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | CardEmulationManager.java | 176 public void onUserSwitched(int userId) { in onUserSwitched() argument 179 mPreferredServices.onUserSwitched(userId); in onUserSwitched() 183 mEnabledNfcFServices.onUserSwitched(userId); in onUserSwitched() 271 public void onServicesUpdated(int userId, List<ApduServiceInfo> services, in onServicesUpdated() argument 274 verifyDefaults(userId, services, validateInstalled); in onServicesUpdated() 276 mAidCache.onServicesUpdated(userId, services); in onServicesUpdated() 284 public void onNfcFServicesUpdated(int userId, List<NfcFServiceInfo> services) { in onNfcFServicesUpdated() argument 286 mT3tIdentifiersCache.onServicesUpdated(userId, services); in onNfcFServicesUpdated() 291 void verifyDefaults(int userId, List<ApduServiceInfo> services, boolean validateInstalled) { in verifyDefaults() argument 293 UserHandle.of(userId), /*flags=*/0).getSystemService(UserManager.class); in verifyDefaults() [all …]
|
/packages/modules/Permission/service/java/com/android/role/ |
D | RoleService.java | 172 int userId = intent.<UserHandle>getParcelableExtra(Intent.EXTRA_USER) in registerUserRemovedReceiver() 174 onRemoveUser(userId); in registerUserRemovedReceiver() 193 int userId = UserHandleCompat.getUserId(intent.getIntExtra(Intent.EXTRA_UID, -1)); in onStart() 196 + userId); in onStart() 203 maybeGrantDefaultRolesAsync(userId); in onStart() 214 private void maybeGrantDefaultRolesSync(@UserIdInt int userId) { in maybeGrantDefaultRolesSync() argument 215 AndroidFuture<Void> future = maybeGrantDefaultRolesInternal(userId); in maybeGrantDefaultRolesSync() 219 Log.e(LOG_TAG, "Failed to grant default roles for user " + userId, e); in maybeGrantDefaultRolesSync() 223 private void maybeGrantDefaultRolesAsync(@UserIdInt int userId) { in maybeGrantDefaultRolesAsync() argument 226 runnable = mGrantDefaultRolesThrottledRunnables.get(userId); in maybeGrantDefaultRolesAsync() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/ |
D | FixedActivityServiceTest.java | 137 int userId = 100; in testStartFixedActivityModeForDisplayAndUser_noRunningActivity() local 139 Intent intent = expectComponentAvailable("test_package", "com.test.dude", userId); in testStartFixedActivityModeForDisplayAndUser_noRunningActivity() 140 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_noRunningActivity() 145 options, VALID_DISPLAY_ID, userId); in testStartFixedActivityModeForDisplayAndUser_noRunningActivity() 147 eq(UserHandle.of(userId))); in testStartFixedActivityModeForDisplayAndUser_noRunningActivity() 154 int userId = 100; in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity() local 157 Intent intent = expectComponentAvailable("test_package", "com.test.dude", userId); in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity() 158 mockAmGetCurrentUser(userId); in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity() 161 createRootTaskInfo(intent, userId, VALID_DISPLAY_ID, taskId) in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity() 166 options, VALID_DISPLAY_ID, userId); in testStartFixedActivityModeForDisplayAndUser_alreadyRunningActivity() [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | RestrictedLockUtilsInternal.java | 81 String userRestriction, int userId) { in checkIfRestrictionEnforced() argument 89 um.getUserRestrictionSources(userRestriction, UserHandle.of(userId)); in checkIfRestrictionEnforced() 102 if (adminUserId == userId) { in checkIfRestrictionEnforced() 108 return (parentUser != null && parentUser.id == userId) in checkIfRestrictionEnforced() 115 return adminUserId == userId in checkIfRestrictionEnforced() 125 String userRestriction, int userId) { in hasBaseUserRestriction() argument 127 return um.hasBaseUserRestriction(userRestriction, UserHandle.of(userId)); in hasBaseUserRestriction() 143 int keyguardFeatures, final @UserIdInt int userId) { in checkIfKeyguardFeaturesDisabled() argument 146 if (checkUser != userId) { in checkIfKeyguardFeaturesDisabled() 151 if (UserManager.get(context).getUserInfo(userId).isManagedProfile()) { in checkIfKeyguardFeaturesDisabled() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowLockPatternUtils.java | 78 protected boolean isSecure(int userId) { in isSecure() argument 79 Boolean isSecure = sUserToIsSecureMap.get(userId); in isSecure() 86 public static void setIsSecure(int userId, boolean isSecure) { in setIsSecure() argument 87 sUserToIsSecureMap.put(userId, isSecure); in setIsSecure() 91 protected int getActivePasswordQuality(int userId) { in getActivePasswordQuality() argument 92 final Integer activePasswordQuality = sUserToActivePasswordQualityMap.get(userId); in getActivePasswordQuality() 110 protected List<ComponentName> getEnabledTrustAgents(int userId) { in getEnabledTrustAgents() argument 120 int userId) { in getPasswordHistoryHashFactor() argument 125 protected boolean checkPasswordHistory(byte[] passwordToCheck, byte[] hashFactor, int userId) { in checkPasswordHistory() argument 130 public @DevicePolicyManager.PasswordComplexity int getRequestedPasswordComplexity(int userId) { in getRequestedPasswordComplexity() argument [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 57 UserId userId = TestProvidersAccess.USER_ID; 62 DOWNLOADS.userId = userId; 72 HOME.userId = userId; 83 HAMMY.userId = userId; 91 PICKLES.userId = userId; 105 RECENTS.userId = userId; 109 INSPECTOR.userId = userId; 117 IMAGE.userId = userId; 124 AUDIO.userId = userId; 131 VIDEO.userId = userId; [all …]
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 779 mHalTimeoutMs, usersInfo.currentUser.userId, usersInfo.currentUser.flags, in initBootUser() 785 status, resp.action, resp.userToSwitchOrCreate.userId, in initBootUser() 792 int userId = resp.userToSwitchOrCreate.userId; in initBootUser() 793 if (userId <= 0) { in initBootUser() 794 Slogf.w(TAG, "invalid (or missing) user id sent by HAL: %d", userId); in initBootUser() 802 .setSwitchUserId(userId) in initBootUser() 1117 public void removeUser(@UserIdInt int userId, ResultCallbackImpl<UserRemovalResult> callback) { in removeUser() argument 1118 removeUser(userId, /* hasCallerRestrictions= */ false, callback); in removeUser() 1130 public void removeUser(@UserIdInt int userId, boolean hasCallerRestrictions, in removeUser() argument 1133 EventLogHelper.writeCarUserServiceRemoveUserReq(userId, in removeUser() [all …]
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/ |
D | EventLogHelper.java | 45 public static void writeCarHelperUserStarting(int userId) { in writeCarHelperUserStarting() argument 46 EventLog.writeEvent(EventLogTags.CAR_HELPER_USER_STARTING, userId); in writeCarHelperUserStarting() 55 public static void writeCarHelperUserUnlocking(int userId) { in writeCarHelperUserUnlocking() argument 56 EventLog.writeEvent(EventLogTags.CAR_HELPER_USER_UNLOCKING, userId); in writeCarHelperUserUnlocking() 60 public static void writeCarHelperUserUnlocked(int userId) { in writeCarHelperUserUnlocked() argument 61 EventLog.writeEvent(EventLogTags.CAR_HELPER_USER_UNLOCKED, userId); in writeCarHelperUserUnlocked() 65 public static void writeCarHelperUserStopping(int userId) { in writeCarHelperUserStopping() argument 66 EventLog.writeEvent(EventLogTags.CAR_HELPER_USER_STOPPING, userId); in writeCarHelperUserStopping() 70 public static void writeCarHelperUserStopped(int userId) { in writeCarHelperUserStopped() argument 71 EventLog.writeEvent(EventLogTags.CAR_HELPER_USER_STOPPED, userId); in writeCarHelperUserStopped() [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/ |
D | UserEventManager.java | 164 int userId = event.getUserId(); in onUserEvent() local 166 Slog.d(TAG, "event=" + lifecycleEventTypeToString(eventType) + " userId=" + userId); in onUserEvent() 169 mUserPickerSharedState.addStoppingUserId(userId); in onUserEvent() 171 if (mUserPickerSharedState.isStoppingUser(userId)) { in onUserEvent() 172 mUserPickerSharedState.removeStoppingUserId(userId); in onUserEvent() 175 mUserInvisibleWaiter.onUserInvisible(userId); in onUserEvent() 177 runUpdateUsersOnMainThread(userId, eventType); in onUserEvent() 198 private void updateUsers(@UserIdInt int userId, int userEvent) { in updateUsers() argument 202 listener.onUpdateUsers(userId, userEvent); in updateUsers() 211 void runUpdateUsersOnMainThread(@UserIdInt int userId, int userEvent) { in runUpdateUsersOnMainThread() argument [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersCache.java | 134 userId = rootUserId; in generateRecentsRoot() 144 private RootInfo createOrGetRecentsRoot(UserId userId) { 145 return createOrGetByUserId(mRecentsRoots, userId, user -> generateRecentsRoot(user)); 148 private RootsChangedObserver createOrGetRootsChangedObserver(UserId userId) { 149 return createOrGetByUserId(mRootsChangedObservers, userId, 153 private static <T> T createOrGetByUserId(Map<UserId, T> map, UserId userId, 156 if (!map.containsKey(userId)) { 157 map.put(userId, supplier.apply(userId)); 160 return map.get(userId); 167 RootsChangedObserver(UserId userId) { [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | ContactsIndexerMaintenanceService.java | 83 static void scheduleFullUpdateJob(Context context, @UserIdInt int userId, in scheduleFullUpdateJob() argument 85 int jobId = getJobIdForUser(userId); in scheduleFullUpdateJob() 90 extras.putInt(EXTRA_USER_ID, userId); in scheduleFullUpdateJob() 113 Log.v(TAG, "Scheduled full update job " + jobId + " for user " + userId); in scheduleFullUpdateJob() 122 private static void cancelFullUpdateJob(@NonNull Context context, @UserIdInt int userId) { in cancelFullUpdateJob() argument 124 int jobId = getJobIdForUser(userId); in cancelFullUpdateJob() 128 Log.v(TAG, "Canceled full update job " + jobId + " for user " + userId); in cancelFullUpdateJob() 140 @UserIdInt int userId) { in isFullUpdateJobScheduled() argument 142 int jobId = getJobIdForUser(userId); in isFullUpdateJobScheduled() 163 private static int getJobIdForUser(int userId) { in getJobIdForUser() argument [all …]
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | ContentResolverCompat.java | 28 Account account, String authority, @UserIdInt int userId) { in getSyncAutomaticallyAsUser() argument 29 return ContentResolver.getSyncAutomaticallyAsUser(account, authority, userId); in getSyncAutomaticallyAsUser() 32 public static List<SyncInfo> getCurrentSyncsAsUser(@UserIdInt int userId) { in getCurrentSyncsAsUser() argument 33 return ContentResolver.getCurrentSyncsAsUser(userId); in getCurrentSyncsAsUser() 38 @UserIdInt int userId) { in getSyncStatusAsUser() argument 40 ContentResolver.getSyncStatusAsUser(account, authority, userId)); in getSyncStatusAsUser() 46 Account account, String authority, @UserIdInt int userId) { in getIsSyncableAsUser() argument 47 return ContentResolver.getIsSyncableAsUser(account, authority, userId); in getIsSyncableAsUser() 51 Account account, String authority, boolean sync, @UserIdInt int userId) { in setSyncAutomaticallyAsUser() argument 52 ContentResolver.setSyncAutomaticallyAsUser(account, authority, sync, userId); in setSyncAutomaticallyAsUser() [all …]
|
D | UserManagerCompat.java | 39 public int[] getProfileIdsWithDisabled(@UserIdInt int userId) { in getProfileIdsWithDisabled() argument 40 return mUserManager.getProfileIdsWithDisabled(userId); in getProfileIdsWithDisabled() 43 public UserInfoCompat getUserInfo(@UserIdInt int userId) { in getUserInfo() argument 44 return new UserInfoCompat(mUserManager.getUserInfo(userId)); in getUserInfo() 47 public boolean removeUser(@UserIdInt int userId) { in removeUser() argument 48 return mUserManager.removeUser(userId); in removeUser() 56 @UserInfo.UserInfoFlag int flags, @UserIdInt int userId) { in createProfileForUser() argument 57 return new UserInfoCompat(mUserManager.createProfileForUser(name, userType, flags, userId)); in createProfileForUser() 68 public boolean isSameProfileGroup(@UserIdInt int userId, int otherUserId) { in isSameProfileGroup() argument 69 return mUserManager.isSameProfileGroup(userId, otherUserId); in isSameProfileGroup() [all …]
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetyCenterService.java | 263 @UserIdInt int userId) { in setSafetySourceData() argument 270 if (!enforceCrossUserPermission("setSafetySourceData", userId) in setSafetySourceData() 271 || !enforcePackage(Binder.getCallingUid(), packageName, userId) in setSafetySourceData() 276 UserProfileGroup userProfileGroup = UserProfileGroup.fromUser(getContext(), userId); in setSafetySourceData() 280 safetySourceData, safetySourceId, safetyEvent, packageName, userId); in setSafetySourceData() 288 safetySourceId, safetyEvent, userId); in setSafetySourceData() 290 mSafetyCenterDataChangeNotifier.updateDataConsumers(userProfileGroup, userId); in setSafetySourceData() 298 String safetySourceId, String packageName, @UserIdInt int userId) { in getSafetySourceData() argument 304 if (!enforceCrossUserPermission("getSafetySourceData", userId) in getSafetySourceData() 305 || !enforcePackage(Binder.getCallingUid(), packageName, userId) in getSafetySourceData() [all …]
|
D | UserProfileGroup.java | 72 int userId = userHandle.getIdentifier(); in getAllUserProfileGroups() local 74 if (userProfileGroupsContain(userProfileGroups, userId)) { in getAllUserProfileGroups() 78 UserProfileGroup userProfileGroup = UserProfileGroup.fromUser(context, userId); in getAllUserProfileGroups() 79 if (!userProfileGroup.contains(userId)) { in getAllUserProfileGroups() 89 List<UserProfileGroup> userProfileGroups, @UserIdInt int userId) { in userProfileGroupsContain() argument 93 if (userProfileGroup.contains(userId)) { in userProfileGroupsContain() 111 public static UserProfileGroup fromUser(Context context, @UserIdInt int userId) { in fromUser() argument 112 UserManager userManager = getUserManagerForUser(userId, context); in fromUser() 114 UserHandle profileParent = getProfileParent(userManager, userId); in fromUser() 115 int profileParentUserId = userId; in fromUser() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/viewmodel/ |
D | AutoCredentialViewModelTest.java | 94 private void setupGenerateChallenge(int userId, int newSensorId, long newChallenge) { in setupGenerateChallenge() argument 95 when(mLockPatternUtils.getActivePasswordQuality(userId)).thenReturn( in setupGenerateChallenge() 97 mChallengeGenerator.mUserId = userId; in setupGenerateChallenge() 150 final int userId = 99; in testCheckCredential_validCredentialCase() local 152 new Intent().putExtras(newValidTokenCredentialIntentExtras(userId))); in testCheckCredential_validCredentialCase() 153 when(mLockPatternUtils.getActivePasswordQuality(userId)).thenReturn( in testCheckCredential_validCredentialCase() 175 final int userId = 100; in testCheckCredential_needToChooseLock() local 177 new Intent().putExtras(newOnlySensorValidCredentialIntentExtras(userId))); in testCheckCredential_needToChooseLock() 178 when(mLockPatternUtils.getActivePasswordQuality(userId)).thenReturn( in testCheckCredential_needToChooseLock() 200 final int userId = 101; in testCheckCredential_needToConfirmLockForSomething() local [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioSettings.java | 51 int getStoredVolumeGainIndexForUser(@UserIdInt int userId, int zoneId, int configId, in getStoredVolumeGainIndexForUser() argument 54 /* defaultValue= */ -1, userId); in getStoredVolumeGainIndexForUser() 57 void storeVolumeGainIndexForUser(@UserIdInt int userId, int zoneId, int configId, int groupId, in storeVolumeGainIndexForUser() argument 61 userId); in storeVolumeGainIndexForUser() local 75 void storeVolumeGroupMuteForUser(@UserIdInt int userId, int zoneId, int configId, int groupId, in storeVolumeGroupMuteForUser() argument 78 isMuted ? 1 : 0, userId); in storeVolumeGroupMuteForUser() 81 boolean getVolumeGroupMuteForUser(@UserIdInt int userId, int zoneId, int configId, in getVolumeGroupMuteForUser() argument 84 /* defaultValue= */ 0, userId) != 0; in getVolumeGroupMuteForUser() 87 boolean isPersistVolumeGroupMuteEnabled(@UserIdInt int userId) { in isPersistVolumeGroupMuteEnabled() argument 89 /* defaultValue= */ 0, userId) == 1; in isPersistVolumeGroupMuteEnabled() [all …]
|
/packages/services/Car/service/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceService.java | 188 PackageChangeReceiver(int userId, OccupantZoneInfo occupantZone) { in PackageChangeReceiver() argument 190 this.mUserId = userId; in PackageChangeReceiver() 340 int userId = mPerUserInfoMap.keyAt(i); in dump() local 342 writer.printf("%suserId:%s, %s, %s, %s, %s\n", INDENTATION_4, userId, info.zone, in dump() 394 int userId = mOccupantZoneService.getUserForOccupant(occupantZoneId); in getEndpointPackageInfo() local 395 if (userId == INVALID_USER_ID) { in getEndpointPackageInfo() 400 return getPackageInfoAsUser(packageName, userId); in getEndpointPackageInfo() 542 int userId = userHandle.getIdentifier(); in handleProcessRunningStateChange() local 545 PerUserInfo userInfo = mPerUserInfoMap.get(userId); in handleProcessRunningStateChange() 546 ClientId clientId = new ClientId(userInfo.zone, userId, packageName); in handleProcessRunningStateChange() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | MockedUserHandleBuilder.java | 29 @UserIdInt int userId) { in MockedUserHandleBuilder() argument 31 mUser = UserHandle.of(userId); in MockedUserHandleBuilder() 34 when(mUserHandleHelper.getExistingUserHandle(userId)).thenReturn(mUser); in MockedUserHandleBuilder() 81 @UserIdInt int userId) { in expectRegularUserExists() argument 82 return new MockedUserHandleBuilder(userHandleHelper, userId).build(); in expectRegularUserExists() 86 @NonNull UserHandleHelper userHandleHelper, @UserIdInt int userId) { in expectUserExistsButGettersFail() argument 87 return new MockedUserHandleBuilder(userHandleHelper, userId).expectGettersFail().build(); in expectUserExistsButGettersFail() 91 @UserIdInt int userId) { in expectSystemUserExists() argument 92 return new MockedUserHandleBuilder(userHandleHelper, userId).build(); in expectSystemUserExists() 96 @UserIdInt int userId) { in expectManagedProfileExists() argument [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/password/ |
D | SaveAndFinishWorkerTest.java | 39 int userId = 0; in testSetRequestWriteRepairModePassword_setLockCredentialFail() local 46 when(lpu.setLockCredential(chosenCredential, currentCredential, userId)).thenReturn(false); in testSetRequestWriteRepairModePassword_setLockCredentialFail() 49 worker.prepare(lpu, chosenCredential, currentCredential, userId); in testSetRequestWriteRepairModePassword_setLockCredentialFail() 52 verify(lpu).setLockCredential(chosenCredential, currentCredential, userId); in testSetRequestWriteRepairModePassword_setLockCredentialFail() 53 verify(lpu, never()).verifyCredential(chosenCredential, userId, flags); in testSetRequestWriteRepairModePassword_setLockCredentialFail() 59 int userId = 0; in testSetRequestWriteRepairModePassword_verifyCredentialFail() local 67 when(lpu.setLockCredential(chosenCredential, currentCredential, userId)).thenReturn(true); in testSetRequestWriteRepairModePassword_verifyCredentialFail() 68 when(lpu.verifyCredential(chosenCredential, userId, flags)).thenReturn(response); in testSetRequestWriteRepairModePassword_verifyCredentialFail() 71 worker.prepare(lpu, chosenCredential, currentCredential, userId); in testSetRequestWriteRepairModePassword_verifyCredentialFail() 74 verify(lpu).setLockCredential(chosenCredential, currentCredential, userId); in testSetRequestWriteRepairModePassword_verifyCredentialFail() [all …]
|
/packages/services/Car/service/src/com/android/car/admin/ |
D | CarDevicePolicyService.java | 103 int userId = ActivityManager.getCurrentUser(); 104 Slogf.d(TAG, "Received intent for user " + userId + ": " + intent); 114 setUserDisclaimerStatus(userId, NEW_USER_DISCLAIMER_STATUS_RECEIVED); 115 showNewUserDisclaimer(userId); 147 public void removeUser(@UserIdInt int userId, ResultCallbackImpl<UserRemovalResult> callback) { in removeUser() argument 148 mCarUserService.removeUser(userId, /* hasCallerRestrictions= */ true, callback); in removeUser() 185 public void startUserInBackground(@UserIdInt int userId, in startUserInBackground() argument 187 mCarUserService.startUserInBackground(userId, receiver); in startUserInBackground() 191 public void stopUser(@UserIdInt int userId, AndroidFuture<UserStopResult> receiver) { in stopUser() argument 192 mCarUserService.stopUser(userId, receiver); in stopUser() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | DefaultDialerCache.java | 46 String getDefaultDialerApplication(Context context, int userId); in getDefaultDialerApplication() argument 47 boolean setDefaultDialerApplication(Context context, String packageName, int userId); in setDefaultDialerApplication() argument 57 public String getDefaultDialerApplication(Context context, int userId) { in getDefaultDialerApplication() argument 58 return DefaultDialerManager.getDefaultDialerApplication(context, userId); in getDefaultDialerApplication() 63 int userId) { in setDefaultDialerApplication() argument 64 return DefaultDialerManager.setDefaultDialerApplication(context, packageName, userId); in setDefaultDialerApplication() 179 public String getDefaultDialerApplication(int userId) { in getDefaultDialerApplication() argument 180 if (userId == UserHandle.USER_CURRENT) { in getDefaultDialerApplication() 181 userId = ActivityManager.getCurrentUser(); in getDefaultDialerApplication() 184 if (userId < 0) { in getDefaultDialerApplication() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/cluster/renderer/ |
D | InstrumentClusterRenderingServiceTest.java | 160 int userId = ActivityManager.getCurrentUser(); in setNavigationContextOwner_launchesNavigationComponent() local 169 .when(mService.mSpyPackageManager).getPackagesForUid(userId); in setNavigationContextOwner_launchesNavigationComponent() 175 eq(UserHandle.of(userId))); in setNavigationContextOwner_launchesNavigationComponent() 177 mRendererBinder.setNavigationContextOwner(userId, 123); in setNavigationContextOwner_launchesNavigationComponent() 186 int userId = ActivityManager.getCurrentUser(); in setNavigationContextOwner_navigationComponentAlreadyLaunched_doesNothing() local 192 mockPackageManagerInteraction(userId); in setNavigationContextOwner_navigationComponentAlreadyLaunched_doesNothing() 194 mRendererBinder.setNavigationContextOwner(userId, 123); in setNavigationContextOwner_navigationComponentAlreadyLaunched_doesNothing() 196 mRendererBinder.setNavigationContextOwner(userId, 123); in setNavigationContextOwner_navigationComponentAlreadyLaunched_doesNothing() 204 int userId = ActivityManager.getCurrentUser(); in setNavigationContextOwner_noPackages_doesNothing() local 210 doReturn(new String[]{}).when(mService.mSpyPackageManager).getPackagesForUid(userId); in setNavigationContextOwner_noPackages_doesNothing() [all …]
|
/packages/services/Car/car-test-lib/src/android/car/test/mocks/ |
D | CarArgumentMatchers.java | 44 public static UserInfo isUserInfo(@UserIdInt int userId) { in isUserInfo() argument 45 return argThat(new UserInfoMatcher(userId)); in isUserInfo() 51 public static UserHandle isUserHandle(@UserIdInt int userId) { in isUserHandle() argument 52 return argThat(new UserHandleMatcher(userId)); in isUserHandle() 78 public final @UserIdInt int userId; field in CarArgumentMatchers.UserInfoMatcher 80 private UserInfoMatcher(@UserIdInt int userId) { in UserInfoMatcher() argument 81 this.userId = userId; in UserInfoMatcher() 90 if (argument.id != userId) { in matches() 91 Log.w(TAG, "isUserInfo(): argument mismatch (expected " + userId in matches() 100 return "isUserInfo(userId=" + userId + ")"; in toString() [all …]
|