Home
last modified time | relevance | path

Searched refs:getIdentifier (Results 1 – 25 of 559) sorted by relevance

12345678910>>...23

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectDialogTest.java73 NORMAL_USER.getIdentifier(), "test_user", UserInfo.FLAG_RESTRICTED); in setUp()
74 when(mUserManager.getUserInfo(NORMAL_USER.getIdentifier())).thenReturn(userInfo); in setUp()
88 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal()
89 verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal()
102 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
103 verify(mUserManager, times(1)).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
104 verify(mUserManager, times(2)).getUserInfo(REMOVED_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
109 final UserInfo userInfo = new UserInfo(CLONE_USER.getIdentifier(), "clone_user", null, in updateUserHandlesIfNeeded_removesCloneProfile()
111 when(mUserManager.getUserInfo(CLONE_USER.getIdentifier())).thenReturn(userInfo); in updateUserHandlesIfNeeded_removesCloneProfile()
119 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_removesCloneProfile()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiStringResourceWrapperTest.java107 when(mResources.getIdentifier(eq(RES_NAME_1), eq("string"), any())).thenReturn(RES_ID_1); in setUp()
109 when(mResources.getIdentifier(eq(RES_NAME_1 + CARRIER_ID_RESOURCE_NAME_SUFFIX), in setUp()
112 when(mResources.getIdentifier(eq(RES_NAME_DISABLE_THRESHOLD), eq("integer"), any())) in setUp()
116 when(mResources.getIdentifier( in setUp()
121 when(mResources.getIdentifier(eq(RES_NAME_OOB_PSEUDONYM_ENABLED), eq("bool"), any())) in setUp()
125 when(mResources.getIdentifier( in setUp()
156 when(mResources.getIdentifier(eq(RES_NAME_1 + CARRIER_ID_RESOURCE_NAME_SUFFIX), in testCarrierIdWithBaseNoOverride()
162 when(mResources.getIdentifier( in testCarrierIdWithBaseNoOverride()
173 when(mResources.getIdentifier( in testCarrierIdWithBaseNoOverride()
189 when(mResources.getIdentifier(eq(RES_NAME_1 + CARRIER_ID_RESOURCE_NAME_SUFFIX), in testCarrierIdAvailable()
[all …]
/packages/modules/Media/apex/service/java/com/android/server/media/
DMediaCommunicationService.java127 int userId = targetUser.getUserHandle().getIdentifier(); in onUserStopped()
159 if (userId == ALL.getIdentifier()) { in getSession2TokensLocked()
205 mFullUserIds.put(user.getIdentifier(), parent.getIdentifier()); in updateUser()
207 mFullUserIds.put(user.getIdentifier(), user.getIdentifier()); in updateUser()
208 if (mUserRecords.get(user.getIdentifier()) == null) { in updateUser()
209 mUserRecords.put(user.getIdentifier(), in updateUser()
210 new FullUserRecord(user.getIdentifier())); in updateUser()
230 if (record.mUserId != ALL.getIdentifier() in dispatchSession2Created()
231 && record.mUserId != getUserHandleForUid(token.getUid()).getIdentifier()) { in dispatchSession2Created()
248 allSession2Tokens = getSession2TokensLocked(ALL.getIdentifier()); in dispatchSession2Changed()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserLifecycleEventFilterTest.java42 USER_LIFECYCLE_EVENT_TYPE_STARTING, USER111.getIdentifier());
44 USER_LIFECYCLE_EVENT_TYPE_UNLOCKING, USER111.getIdentifier());
46 USER_LIFECYCLE_EVENT_TYPE_STARTING, USER112.getIdentifier());
48 USER_LIFECYCLE_EVENT_TYPE_SWITCHING, USER111.getIdentifier(), USER112.getIdentifier());
50 USER_LIFECYCLE_EVENT_TYPE_SWITCHING, USER112.getIdentifier(), USER113.getIdentifier());
112 .containsExactly(UserHandle.CURRENT.getIdentifier()); in testBuild_currentUser_notEvaluatedAtFilterCreation()
196 mockGetCurrentUser(USER112.getIdentifier()); in testApply_currentUserFilter()
207 mockGetCurrentUser(USER111.getIdentifier()); in testApply_currentUserFilter_evaluatedAtFilterApplyTime()
211 mockGetCurrentUser(USER112.getIdentifier()); in testApply_currentUserFilter_evaluatedAtFilterApplyTime()
DExperimentalCarUserServiceTest.java104 assertThat(result.getUser().getIdentifier()).isEqualTo(100); in testCreateAdminDriver_IfCurrentUserIsAdminUser()
129 assertThat(result.getUser().getIdentifier()).isEqualTo(100); in testCreateNonAdminDriver()
156 mockCreateProfile(driver.getIdentifier(), userName, null); in testCreatePassenger_IfMaximumProfileAlreadyCreated()
158 assertThat(mExperimentalCarUserService.createPassenger(userName, driver.getIdentifier())) in testCreatePassenger_IfMaximumProfileAlreadyCreated()
176 mockHalSwitch(mAdminUser.getIdentifier(), mRegularUser, mSwitchUserResponse); in testSwitchDriver()
287 assertThat(expected).contains(user.getIdentifier()); in testGetAllPossibleDrivers()
288 expected.remove(user.getIdentifier()); in testGetAllPossibleDrivers()
310 assertThat(expected).contains(user.getIdentifier()); in testGetAllPassengers()
311 expected.remove(user.getIdentifier()); in testGetAllPassengers()
/packages/services/Car/service/src/com/android/car/user/
DInitialUserSetter.java408 .setSwitchUserId(newUser.getIdentifier()) in replaceUser()
411 if (newUser.getIdentifier() != currentUser.getIdentifier()) { in replaceUser()
412 Slogf.i(TAG, "Removing old guest %d", currentUser.getIdentifier()); in replaceUser()
414 Slogf.w(TAG, "Could not remove old guest " + currentUser.getIdentifier()); in replaceUser()
426 .setSwitchUserId(UserHandle.SYSTEM.getIdentifier()) in executeDefaultBehavior()
493 int actualUserId = actualUser.getIdentifier(); in switchUser()
527 if (userId != UserHandle.SYSTEM.getIdentifier()) { in unlockSystemUserIfNecessary()
538 if (LockPatternHelper.isSecure(mContext, user.getIdentifier())) { in canReplaceGuestUser()
541 + user.getIdentifier() + " has secure lock pattern"); in canReplaceGuestUser()
568 EventLogHelper.writeCarInitialUserReplaceGuest(user.getIdentifier()); in replaceGuestIfNeeded()
[all …]
DUserHandleHelper.java59 if (user.getIdentifier() == userId) return user; in getExistingUserHandle()
76 return getUserContextAwareUserManager(user.getIdentifier()).isGuestUser(); in isGuestUser()
83 return getUserContextAwareUserManager(user.getIdentifier()).isAdminUser(); in isAdminUser()
104 return mUserManager.isManagedProfile(user.getIdentifier()); in isManagedProfile()
111 return getUserContextAwareUserManager(user.getIdentifier()).isProfile(); in isProfileUser()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DResourcesUtil.java30 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getString()
44 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getBoolean()
60 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getQuantityString()
74 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getString()
89 int id = resources.getIdentifier(name, "drawable", SETTINGS_PACKAGE_NAME); in getDrawable()
103 int id = resources.getIdentifier(name, "array", SETTINGS_PACKAGE_NAME); in getStringArray()
117 int id = resources.getIdentifier(name, "array", SETTINGS_PACKAGE_NAME); in getIntArray()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DResourcesUtil.java30 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getString()
44 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getBoolean()
60 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getQuantityString()
74 int id = resources.getIdentifier(name, "string", SETTINGS_PACKAGE_NAME); in getString()
89 int id = resources.getIdentifier(name, "drawable", SETTINGS_PACKAGE_NAME); in getDrawable()
103 int id = resources.getIdentifier(name, "array", SETTINGS_PACKAGE_NAME); in getStringArray()
117 int id = resources.getIdentifier(name, "array", SETTINGS_PACKAGE_NAME); in getIntArray()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DOverlayThemeExtractor.java187 system.getIdentifier(ResourceConstants.CONFIG_ICON_MASK, in addSystemDefaultShape()
192 system.getIdentifier(ResourceConstants.CONFIG_CORNERRADIUS, in addSystemDefaultShape()
199 system.getIdentifier(ResourceConstants.ACCENT_COLOR_LIGHT_NAME, "color", in addSystemDefaultColor()
204 system.getIdentifier(ResourceConstants.ACCENT_COLOR_DARK_NAME, "color", in addSystemDefaultColor()
211 String headlineFontFamily = system.getString(system.getIdentifier( in addSystemDefaultFont()
214 String bodyFontFamily = system.getString(system.getIdentifier( in addSystemDefaultFont()
229 String fontFamily = overlayRes.getString(overlayRes.getIdentifier(configName, in loadTypeface()
239 return overlayRes.getColor(overlayRes.getIdentifier(colorName, "color", colorPackage), in loadColor()
249 return overlayRes.getString(overlayRes.getIdentifier(stringName, "string", packageName)); in loadString()
259 return overlayRes.getDimensionPixelOffset(overlayRes.getIdentifier( in loadDimen()
[all …]
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetyCenterManager.java380 mContext.getUser().getIdentifier()); in setSafetySourceData()
400 safetySourceId, mContext.getPackageName(), mContext.getUser().getIdentifier()); in getSafetySourceData()
427 mContext.getUser().getIdentifier()); in reportSafetySourceError()
445 mService.refreshSafetySources(refreshReason, mContext.getUser().getIdentifier()); in refreshSafetySources()
481 refreshReason, mContext.getUser().getIdentifier(), safetySourceIds); in refreshSafetySources()
507 mContext.getPackageName(), mContext.getUser().getIdentifier()); in getSafetyCenterData()
531 delegate, mContext.getPackageName(), mContext.getUser().getIdentifier()); in addOnSafetyCenterDataChangedListener()
555 delegate, mContext.getUser().getIdentifier()); in removeOnSafetyCenterDataChangedListener()
575 safetyCenterIssueId, mContext.getUser().getIdentifier()); in dismissSafetyCenterIssue()
598 mContext.getUser().getIdentifier()); in executeSafetyCenterIssueAction()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarDevicePolicyManagerTest.java134 mUserManager.isUserAdmin(user.getIdentifier())).isFalse(); in testCreateUser()
136 mUserManager.getUserInfo(user.getIdentifier()).name).isEqualTo(name); in testCreateUser()
139 removeUser(user.getIdentifier()); in testCreateUser()
159 mUserManager.isUserAdmin(user.getIdentifier())).isTrue(); in testCreateAdminUser()
161 mUserManager.getUserInfo(user.getIdentifier()).name).isEqualTo(name); in testCreateAdminUser()
165 removeUser(user.getIdentifier()); in testCreateAdminUser()
185 mUserManager.isGuestUser(user.getIdentifier())).isTrue(); in testCreateGuestUser()
187 mUserManager.isUserAdmin(user.getIdentifier())).isFalse(); in testCreateGuestUser()
189 mUserManager.getUserInfo(user.getIdentifier()).name).isEqualTo(name); in testCreateGuestUser()
193 removeUser(user.getIdentifier()); in testCreateGuestUser()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/customization/
DPartner.java77 final Integer id = getIdentifier(name, "integer"); in getInteger()
86 private Integer getIdentifier(String name, String defType) { in getIdentifier() method in Partner
91 return mResources.getIdentifier(name, defType, mPackage); in getIdentifier()
96 final Integer id = getIdentifier(name, "string"); in getString()
106 final Integer id = getIdentifier(name, "drawable"); in getDrawable()
116 final Integer id = getIdentifier(name, "array"); in getArray()
/packages/apps/Settings/src/com/android/settings/nfc/
DPaymentBackend.java104 mCardEmuManager.getServices(CardEmulation.CATEGORY_PAYMENT, uh.getIdentifier()); in refresh()
121 && defaultAppName.userId == uh.getIdentifier(); in refresh()
187 Settings.Secure.NFC_PAYMENT_FOREGROUND, foreground ? 1 : 0, uh.getIdentifier()); in setForegroundMode()
197 ComponentName defaultApp = getDefaultPaymentApp(uh.getIdentifier()); in getDefaultPaymentApp()
200 appInfo.userId = uh.getIdentifier(); in getDefaultPaymentApp()
232 if (uh.getIdentifier() == userId) { in setDefaultPaymentApp()
235 app != null ? app.flattenToString() : null, uh.getIdentifier()); in setDefaultPaymentApp()
239 null, uh.getIdentifier()); in setDefaultPaymentApp()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DColorOptionsProvider.java98 overlayRes.getIdentifier(ACCENT_COLOR_LIGHT_NAME, "color", overlayPackage), in loadOptions()
101 overlayRes.getIdentifier(ACCENT_COLOR_DARK_NAME, "color", overlayPackage), in loadOptions()
122 r.getIdentifier(ACCENT_COLOR_LIGHT_NAME, "color", mDefaultThemePackage), in addDefault()
125 r.getIdentifier(ACCENT_COLOR_DARK_NAME, "color", mDefaultThemePackage), in addDefault()
131 system.getIdentifier(ACCENT_COLOR_LIGHT_NAME, "color", ANDROID_PACKAGE), null); in addDefault()
134 system.getIdentifier(ACCENT_COLOR_DARK_NAME, "color", ANDROID_PACKAGE), null); in addDefault()
148 overlayRes.getIdentifier(drawableName, "drawable", packageName), null); in loadIconPreviewDrawable()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DSystemStaticWallpaperInfo.java134 int listResId = stubApkResources.getIdentifier(categoryId + WALLPAPERS_RES_SUFFIX, in getAll()
139 int drawableResId = stubApkResources.getIdentifier(wallpaperResName, DRAWABLE_DEF_TYPE, in getAll()
141 int wallpaperTitleResId = stubApkResources.getIdentifier( in getAll()
143 int wallpaperSubtitle1ResId = stubApkResources.getIdentifier( in getAll()
146 int wallpaperSubtitle2ResId = stubApkResources.getIdentifier( in getAll()
149 int actionTypeResId = stubApkResources.getIdentifier( in getAll()
152 int actionUrlResId = stubApkResources.getIdentifier( in getAll()
155 int thumbnailResId = stubApkResources.getIdentifier( in getAll()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DCrossProfileCalendarPreferenceControllerTest.java81 when(mManagedUser.getIdentifier()).thenReturn(MANAGED_USER_ID); in setUp()
121 CROSS_PROFILE_CALENDAR_ENABLED, 0, mManagedUser.getIdentifier()); in updateStateToDisabled_isNotChecked()
131 CROSS_PROFILE_CALENDAR_ENABLED, 0, mManagedUser.getIdentifier()); in updateStateToEnabled_isChecked()
134 CROSS_PROFILE_CALENDAR_ENABLED, 1, mManagedUser.getIdentifier()); in updateStateToEnabled_isChecked()
144 CROSS_PROFILE_CALENDAR_ENABLED, 1, mManagedUser.getIdentifier())) in onPreferenceChangeToFalse_shouldUpdateProviderValue()
155 CROSS_PROFILE_CALENDAR_ENABLED, 0, mManagedUser.getIdentifier())) in onPreferenceChangeToTrue_shouldUpdateProviderValue()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DIconHelperTest.java53 assertThat(mIconHelper.shouldShowBadge(systemUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onSystemUser()
58 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isTrue(); in testShouldShowBadge_returnTrue_onManagedUser()
65 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onManagedUser_doNotShowBadge()
72 assertThat(mIconHelper.shouldShowBadge(managedUser.getIdentifier())).isFalse(); in testShouldShowBadge_returnFalse_onManagedUser_withoutManagedUser()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java164 if (uh.getIdentifier() == userId) { in loadDefaultsFromSettings()
192 || mPaymentDefaults.mUserHandle.getIdentifier() != newUser.getIdentifier())) { in loadDefaultsFromSettings()
206 mCallback.onPreferredPaymentServiceChanged(newUser.getIdentifier(), newDefault); in loadDefaultsFromSettings()
225 UserHandle.getUserHandleForUid(mForegroundUid).getIdentifier(); in computePreferredForegroundService()
229 != UserHandle.getUserHandleForUid(mForegroundCurrentUid).getIdentifier())) { in computePreferredForegroundService()
291 UserHandle.getUserHandleForUid(callingUid).getIdentifier(), service); in isForegroundAllowedLocked()
312 mPaymentDefaults.mUserHandle.getIdentifier(), in isForegroundAllowedLocked()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DHealthConnectPermissionHelper.java98 UserHandle checkedUser = UserHandle.of(handleIncomingUser(user.getIdentifier())); in grantHealthPermission()
127 UserHandle checkedUser = UserHandle.of(handleIncomingUser(user.getIdentifier())); in revokeHealthPermission()
164 UserHandle checkedUser = UserHandle.of(handleIncomingUser(user.getIdentifier())); in revokeAllHealthPermissions()
180 UserHandle checkedUser = UserHandle.of(handleIncomingUser(user.getIdentifier())); in getGrantedHealthPermissions()
208 UserHandle checkedUser = UserHandle.of(handleIncomingUser(user.getIdentifier())); in getHealthDataStartDateAccess()
328 int callingUserId = UserHandle.getUserHandleForUid(Binder.getCallingUid()).getIdentifier(); in handleIncomingUser()
339 if (userId == UserHandle.CURRENT.getIdentifier()) { in handleIncomingUser()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DUserManagerHelper.java119 return userManager.isUserEphemeral(user.getIdentifier()); in isEphemeralUser()
126 return userManager.isGuestUser(user.getIdentifier()); in isGuestUser()
133 UserInfo info = userManager.getUserInfo(user.getIdentifier()); in isFullUser()
143 return userManager.getUserInfo(user.getIdentifier()).isEnabled(); in isEnabledUser()
152 return userManager.getUserInfo(user.getIdentifier()).isInitialized(); in isInitializedUser()
187 return userManager.markGuestForDeletion(user.getIdentifier()); in markGuestForDeletion()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/model/
DUserId.java90 public int getIdentifier() { in getIdentifier() method in UserId
91 return mUserHandle.getIdentifier(); in getIdentifier()
105 return userManager.isManagedProfile(mUserHandle.getIdentifier()); in isManagedProfile()
123 return String.valueOf(this.mUserHandle.getIdentifier()); in toString()
/packages/apps/ThemePicker/src/com/android/customization/model/
DResourcesApkProvider.java44 … int themesListResId = mStubApkResources.getIdentifier(arrayName, "array", mStubPackageName); in getItemsFromStub()
49 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemStringFromStub()
55 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemDrawableFromStub()
62 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemColorFromStub()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DUserId.java145 return userManager.isManagedProfile(mUserHandle.getIdentifier()); in isManagedProfile()
200 public int getIdentifier() { in getIdentifier() method in UserId
201 return mUserHandle.getIdentifier(); in getIdentifier()
210 return isUnspecified() ? "UNSPECIFIED" : String.valueOf(mUserHandle.getIdentifier()); in toString()
255 out.writeInt(userId.mUserHandle.getIdentifier()); in write()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java158 UserInfo user = um.getUserInfo(mUserHandle.getIdentifier()); in setAccessibilityTitle()
206 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
239 mUserHandle.getIdentifier()).isEmpty(); in onPrepareOptionsMenu()
286 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
334 packageName, mUserHandle.getIdentifier()); in requestAccountAccessIfNeeded()
400 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
403 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
429 final int userId = mUserHandle.getIdentifier(); in setFeedsState()
527 mUserHandle.getIdentifier()); in updateAccountSwitches()
556 mUserHandle.getIdentifier()); in updateAccountSwitches()
[all …]

12345678910>>...23