Home
last modified time | relevance | path

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

12345678910>>...13

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectDialogTest.java61 NORMAL_USER.getIdentifier(), "test_user", UserInfo.FLAG_RESTRICTED); in setUp()
62 when(mUserManager.getUserInfo(NORMAL_USER.getIdentifier())).thenReturn(userInfo); in setUp()
76 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal()
77 verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal()
90 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
91 verify(mUserManager, times(1)).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
92 verify(mUserManager, times(2)).getUserInfo(REMOVED_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
/packages/apps/Launcher3/src/com/android/launcher3/
DPartner.java81 int defaultLayout = getResources().getIdentifier(Partner.RES_DEFAULT_LAYOUT, in hasDefaultLayout()
87 int folder = getResources().getIdentifier(Partner.RES_FOLDER, in hasFolder()
93 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool", in hideDefaultWallpaper()
99 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string", in getWallpaperDirectory()
105 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool", in requiresFirstRunFlow()
116 int resId = getResources().getIdentifier(RES_GRID_NUM_ROWS, in applyInvariantDeviceProfileOverrides()
122 resId = getResources().getIdentifier(RES_GRID_NUM_COLUMNS, in applyInvariantDeviceProfileOverrides()
128 resId = getResources().getIdentifier(RES_GRID_ICON_SIZE_DP, in applyInvariantDeviceProfileOverrides()
DResourceUtils.java37 final int frameSizeResID = res.getIdentifier(resName, "dimen", "android"); in getDimenByName()
48 final int resId = res.getIdentifier(resName, "bool", "android"); in getBoolByName()
58 int resId = res.getIdentifier(resName, "integer", "android"); in getIntegerByName()
/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/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/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()
DContactSearchPreferenceControllerTest.java78 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, 0, mManagedUser.getIdentifier()); in updateState_shouldRefreshContent()
83 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, 1, mManagedUser.getIdentifier()); in updateState_shouldRefreshContent()
98 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, 1, mManagedUser.getIdentifier())) in onPreferenceChange_shouldUpdateProviderValue()
103 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, 0, mManagedUser.getIdentifier())) in onPreferenceChange_shouldUpdateProviderValue()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java154 UserInfo user = um.getUserInfo(mUserHandle.getIdentifier()); in setAccessibilityTitle()
191 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
224 mUserHandle.getIdentifier()).isEmpty(); in onPrepareOptionsMenu()
271 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
319 packageName, mUserHandle.getIdentifier()); in requestAccountAccessIfNeeded()
385 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
388 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
414 final int userId = mUserHandle.getIdentifier(); in setFeedsState()
512 mUserHandle.getIdentifier()); in updateAccountSwitches()
541 mUserHandle.getIdentifier()); in updateAccountSwitches()
[all …]
DContactSearchPreferenceController.java57 mContext, mManagedUser.getIdentifier()); in updateState()
68 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, 0, mManagedUser.getIdentifier()); in isChecked()
75 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, value, mManagedUser.getIdentifier()); in setChecked()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DSystemStaticWallpaperInfo.java114 int listResId = stubApkResources.getIdentifier(categoryId + WALLPAPERS_RES_SUFFIX, in getAll()
119 int drawableResId = stubApkResources.getIdentifier(wallpaperResName, DRAWABLE_DEF_TYPE, in getAll()
121 int wallpaperTitleResId = stubApkResources.getIdentifier( in getAll()
123 int wallpaperSubtitle1ResId = stubApkResources.getIdentifier( in getAll()
126 int wallpaperSubtitle2ResId = stubApkResources.getIdentifier( in getAll()
129 int actionTypeResId = stubApkResources.getIdentifier( in getAll()
132 int actionUrlResId = stubApkResources.getIdentifier( in getAll()
DPartnerWallpaperInfo.java83 final int resId = partnerRes.getIdentifier(PartnerProvider.WALLPAPER_RES_ID, "array", in getAll()
93 int wpResId = partnerRes.getIdentifier(extra, "drawable", packageName); in getAll()
95 … final int thumbRes = partnerRes.getIdentifier(extra + "_small", "drawable", packageName); in getAll()
98 final int fullRes = partnerRes.getIdentifier(extra, "drawable", packageName); in getAll()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DEnabledNetworkModePreferenceControllerTest.java394 int id = mController.getResourcesForSubId().getIdentifier("enabled_networks_cdma_values", in checkResource_stringArrayLength()
399 id = mController.getResourcesForSubId().getIdentifier("enabled_networks_cdma_no_lte_values", in checkResource_stringArrayLength()
404 id = mController.getResourcesForSubId().getIdentifier( in checkResource_stringArrayLength()
409 id = mController.getResourcesForSubId().getIdentifier("enabled_networks_tdscdma_values", in checkResource_stringArrayLength()
414 id = mController.getResourcesForSubId().getIdentifier( in checkResource_stringArrayLength()
419 id = mController.getResourcesForSubId().getIdentifier("enabled_networks_except_gsm_values", in checkResource_stringArrayLength()
424 id = mController.getResourcesForSubId().getIdentifier("enabled_networks_except_lte_values", in checkResource_stringArrayLength()
429 id = mController.getResourcesForSubId().getIdentifier("enabled_networks_values", "array", in checkResource_stringArrayLength()
434 id = mController.getResourcesForSubId().getIdentifier("enabled_networks_values", "array", in checkResource_stringArrayLength()
439 id = mController.getResourcesForSubId().getIdentifier( in checkResource_stringArrayLength()
/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/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java165 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
193 mUserHandle.getIdentifier()).isEmpty(); in onPreferenceTreeClick()
248 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
251 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
295 final int userId = mUserHandle.getIdentifier(); in onSyncStateUpdated()
363 mUserHandle.getIdentifier()); in updateAccountSwitches()
390 mUserHandle.getIdentifier()); in updateAccountSwitches()
413 authority, 0, mUserHandle.getIdentifier()); in createSyncStateSwitch()
/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/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/services/Telecomm/src/com/android/server/telecom/ui/
DMissedCallNotifierImpl.java196 .maybeAddUserId(Calls.CONTENT_URI, userHandle.getIdentifier()); in markMissedCallsAsRead()
209 userHandle.getIdentifier()); in getDefaultDialerPackage()
241 .queryBroadcastReceiversAsUser(intent, 0, userHandle.getIdentifier()); in shouldManageNotificationThroughDefaultDialer()
259 handle.getIdentifier(), MISSED_CALL_POWER_SAVE_REASON); in exemptFromPowerSavingTemporarily()
321 userHandle.getIdentifier(), missedCallCounts); in showMissedCallNotification()
593 Log.i(this, "reloadAfterBootComplete: user=%d", handle.getIdentifier()); in reloadAfterBootComplete()
607 Log.d(this, "reloadFromDatabase: user=%d", userHandle.getIdentifier()); in reloadFromDatabase()
611 userHandle.getIdentifier()); in reloadFromDatabase()
690 ContentProvider.maybeAddUserId(Calls.CONTENT_URI, userHandle.getIdentifier()); in reloadFromDatabase()
/packages/modules/Permission/service/java/com/android/permission/compat/
DUserHandleCompat.java29 public static final int USER_ALL = UserHandle.ALL.getIdentifier();
34 public static final int USER_SYSTEM = UserHandle.SYSTEM.getIdentifier();
46 return UserHandle.getUserHandleForUid(uid).getIdentifier(); in getUserId()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DPeakPerformancePreferenceControllerTest.java134 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in onCreate_peakPerformance_withKillableStateYes()
147 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in onCreate_peakPerformance_withKillableStateNo()
160 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in onCreate_peakPerformance_withKillableStateNever()
173 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in callChangeListener_enablingPeakPerformance()
189 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in callChangeListener_disablingPeakPerformance()
/packages/modules/Permission/framework-s/java/android/app/role/
DRoleManager.java309 return mService.getRoleHoldersAsUser(roleName, user.getIdentifier()); in getRoleHoldersAsUser()
347 mService.addRoleHolderAsUser(roleName, packageName, flags, user.getIdentifier(), in addRoleHolderAsUser()
385 mService.removeRoleHolderAsUser(roleName, packageName, flags, user.getIdentifier(), in removeRoleHolderAsUser()
421 mService.clearRoleHoldersAsUser(roleName, flags, user.getIdentifier(), in clearRoleHoldersAsUser()
465 int userId = user.getIdentifier(); in addOnRoleHoldersChangedListenerAsUser()
510 int userId = user.getIdentifier(); in removeOnRoleHoldersChangedListenerAsUser()
523 user.getIdentifier()); in removeOnRoleHoldersChangedListenerAsUser()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountDetailsWithSyncStatusPreferenceController.java91 int userId = getUserHandle().getIdentifier(); in isSyncFailing()
123 getUserHandle().getIdentifier()).isEmpty(); in updateSyncButton()
135 int userId = getUserHandle().getIdentifier(); in requestSyncForEnabledProviders()
145 int userId = getUserHandle().getIdentifier(); in cancelSyncForEnabledProviders()
DAccountSyncHelper.java64 userHandle.getIdentifier()); in getSyncableSyncAdaptersForAccount()
75 userHandle.getIdentifier()) > 0; in getSyncableSyncAdaptersForAccount()
114 authority, /* flags= */ 0, userHandle.getIdentifier()); in getTitle()
169 userHandle.getIdentifier()); in isVisible()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserLifecycleEventTest.java36 assertThat(event.getUserHandle().getIdentifier()).isEqualTo(to); in testFullConstructor()
38 assertThat(event.getPreviousUserHandle().getIdentifier()).isEqualTo(from); in testFullConstructor()
49 assertThat(event.getUserHandle().getIdentifier()).isEqualTo(to); in testAlternativeConstructor()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiService.java63 mImpl.handleUserSwitch(to.getUserHandle().getIdentifier()); in onUserSwitching()
68 mImpl.handleUserUnlock(user.getUserHandle().getIdentifier()); in onUserUnlocking()
73 mImpl.handleUserStop(user.getUserHandle().getIdentifier()); in onUserStopping()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultWorkAutofillPreferenceController.java56 mUserHandle.getIdentifier()); in getDefaultAppInfo()
61 mUserHandle.getIdentifier(), in getDefaultAppInfo()
75 mContext, mUserHandle.getIdentifier(), info.getKey()); in getSettingIntent()

12345678910>>...13