Home
last modified time | relevance | path

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

12345678910

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectDialogTest.java60 NORMAL_USER.getIdentifier(), "test_user", UserInfo.FLAG_RESTRICTED); in setUp()
61 when(mUserManager.getUserInfo(NORMAL_USER.getIdentifier())).thenReturn(userInfo); in setUp()
75 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal()
76 verify(mUserManager, never()).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal()
89 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
90 verify(mUserManager, times(1)).getUserInfo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
91 verify(mUserManager, times(2)).getUserInfo(REMOVED_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DOverlayThemeExtractor.java173 system.getIdentifier(ResourceConstants.CONFIG_ICON_MASK, in addSystemDefaultShape()
178 system.getIdentifier(ResourceConstants.CONFIG_CORNERRADIUS, in addSystemDefaultShape()
185 system.getIdentifier(ResourceConstants.ACCENT_COLOR_LIGHT_NAME, "color", in addSystemDefaultColor()
190 system.getIdentifier(ResourceConstants.ACCENT_COLOR_DARK_NAME, "color", in addSystemDefaultColor()
197 String headlineFontFamily = system.getString(system.getIdentifier( in addSystemDefaultFont()
200 String bodyFontFamily = system.getString(system.getIdentifier( in addSystemDefaultFont()
215 String fontFamily = overlayRes.getString(overlayRes.getIdentifier(configName, in loadTypeface()
225 return overlayRes.getColor(overlayRes.getIdentifier(colorName, "color", colorPackage), in loadColor()
235 return overlayRes.getString(overlayRes.getIdentifier(stringName, "string", packageName)); in loadString()
245 return overlayRes.getDimensionPixelOffset(overlayRes.getIdentifier( in loadDimen()
[all …]
DDefaultThemeProvider.java140 mStubApkResources.getIdentifier(TITLE_PREFIX + themeName, in loadAll()
190 int wallpaperResId = mStubApkResources.getIdentifier(wallpaperResName, in addWallpaper()
194 int wallpaperThumbnailResId = mStubApkResources.getIdentifier(wallpaperThumbnailResName, in addWallpaper()
199 mStubApkResources.getIdentifier(WALLPAPER_TITLE_PREFIX + themeName, in addWallpaper()
201 mStubApkResources.getIdentifier( in addWallpaper()
204 mStubApkResources.getIdentifier(WALLPAPER_ACTION_PREFIX + themeName, in addWallpaper()
211 wallpaperResId = mStubApkResources.getIdentifier(wallpaperResName, in addWallpaper()
216 int wallpaperOptionsResId = mStubApkResources.getIdentifier( in addWallpaper()
259 int titleId = mStubApkResources.getIdentifier(TITLE_PREFIX + DEFAULT_THEME_NAME, in addDefaultTheme()
482 int drawableResId = mStubApkResources.getIdentifier(prefix + themeName, in getDrawableResourceAsset()
/packages/apps/Launcher3/src/com/android/launcher3/
DPartner.java88 int defaultLayout = getResources().getIdentifier(Partner.RES_DEFAULT_LAYOUT, in hasDefaultLayout()
94 int folder = getResources().getIdentifier(Partner.RES_FOLDER, in hasFolder()
100 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool", in hideDefaultWallpaper()
106 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string", in getWallpaperDirectory()
112 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool", in requiresFirstRunFlow()
123 int resId = getResources().getIdentifier(RES_GRID_NUM_ROWS, in applyInvariantDeviceProfileOverrides()
129 resId = getResources().getIdentifier(RES_GRID_NUM_COLUMNS, in applyInvariantDeviceProfileOverrides()
135 resId = getResources().getIdentifier(RES_GRID_ICON_SIZE_DP, in applyInvariantDeviceProfileOverrides()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java137 UserInfo user = um.getUserInfo(mUserHandle.getIdentifier()); in setAccessibilityTitle()
174 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
209 mUserHandle.getIdentifier()).isEmpty(); in onPrepareOptionsMenu()
257 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
305 packageName, mUserHandle.getIdentifier()); in requestAccountAccessIfNeeded()
369 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
372 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
398 final int userId = mUserHandle.getIdentifier(); in setFeedsState()
496 mUserHandle.getIdentifier()); in updateAccountSwitches()
525 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()
DCrossProfileCalendarPreferenceController.java47 mContext, mManagedUser.getIdentifier())) { in getAvailabilityStatus()
61 mManagedUser.getIdentifier()) == 1; in isChecked()
71 CROSS_PROFILE_CALENDAR_ENABLED, value, mManagedUser.getIdentifier()); in setChecked()
DChooseAccountPreferenceController.java127 mUserHandle.getIdentifier()); in updateAuthDescriptions()
172 context, mProviderList.get(0).getType(), mUserHandle.getIdentifier()); in onAuthDescriptionsUpdated()
188 p.checkAccountManagementAndSetDisabled(mUserHandle.getIdentifier()); in onAuthDescriptionsUpdated()
209 mUserHandle.getIdentifier()); in getAuthoritiesForAccountType()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountSyncSettings.java137 UserInfo user = um.getUserInfo(mUserHandle.getIdentifier()); in setAccessibilityTitle()
174 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
209 mUserHandle.getIdentifier()).isEmpty(); in onPrepareOptionsMenu()
257 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
305 packageName, mUserHandle.getIdentifier()); in requestAccountAccessIfNeeded()
369 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
372 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
398 final int userId = mUserHandle.getIdentifier(); in setFeedsState()
496 mUserHandle.getIdentifier()); in updateAccountSwitches()
525 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()
DChooseAccountPreferenceController.java127 mUserHandle.getIdentifier()); in updateAuthDescriptions()
172 context, mProviderList.get(0).getType(), mUserHandle.getIdentifier()); in onAuthDescriptionsUpdated()
188 p.checkAccountManagementAndSetDisabled(mUserHandle.getIdentifier()); in onAuthDescriptionsUpdated()
209 mUserHandle.getIdentifier()); in getAuthoritiesForAccountType()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DColorOptionsProvider.java100 overlayRes.getIdentifier(ACCENT_COLOR_LIGHT_NAME, "color", overlayPackage), in loadOptions()
103 overlayRes.getIdentifier(ACCENT_COLOR_DARK_NAME, "color", overlayPackage), in loadOptions()
124 r.getIdentifier(ACCENT_COLOR_LIGHT_NAME, "color", mDefaultThemePackage), in addDefault()
127 r.getIdentifier(ACCENT_COLOR_DARK_NAME, "color", mDefaultThemePackage), in addDefault()
133 system.getIdentifier(ACCENT_COLOR_LIGHT_NAME, "color", ANDROID_PACKAGE), null); in addDefault()
136 system.getIdentifier(ACCENT_COLOR_DARK_NAME, "color", ANDROID_PACKAGE), null); in addDefault()
150 overlayRes.getIdentifier(drawableName, "drawable", packageName), null); in loadIconPreviewDrawable()
DFontOptionsProvider.java72 Typeface headlineFont = Typeface.create(system.getString(system.getIdentifier( in addDefault()
75 Typeface bodyFont = Typeface.create(system.getString(system.getIdentifier( in addDefault()
84 return overlayRes.getString(overlayRes.getIdentifier(configName, "string", overlayPackage)); in getFontFamily()
/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/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java157 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
178 mUserHandle.getIdentifier()).isEmpty(); in onPreferenceTreeClick()
232 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
235 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
279 final int userId = mUserHandle.getIdentifier(); in onSyncStateUpdated()
347 mUserHandle.getIdentifier()); in updateAccountSwitches()
374 mUserHandle.getIdentifier()); in updateAccountSwitches()
397 authority, 0, mUserHandle.getIdentifier()); in createSyncStateSwitch()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DMissedCallNotifierImpl.java186 .maybeAddUserId(Calls.CONTENT_URI, userHandle.getIdentifier()); in markMissedCallsAsRead()
209 userHandle.getIdentifier()); in getShowMissedCallIntentForDefaultDialer()
224 .queryBroadcastReceiversAsUser(intent, 0, userHandle.getIdentifier()); in shouldManageNotificationThroughDefaultDialer()
275 Log.i(this, "showMissedCallNotification: userHandle=%d", userHandle.getIdentifier()); in showMissedCallNotification()
543 Log.i(this, "reloadAfterBootComplete: user=%d", handle.getIdentifier()); in reloadAfterBootComplete()
557 Log.d(this, "reloadFromDatabase: user=%d", userHandle.getIdentifier()); in reloadFromDatabase()
561 userHandle.getIdentifier()); in reloadFromDatabase()
638 ContentProvider.maybeAddUserId(Calls.CONTENT_URI, userHandle.getIdentifier()); in reloadFromDatabase()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DPartnerWallpaperInfo.java82 final int resId = partnerRes.getIdentifier(PartnerProvider.WALLPAPER_RES_ID, "array", in getAll()
92 int wpResId = partnerRes.getIdentifier(extra, "drawable", packageName); in getAll()
94 … final int thumbRes = partnerRes.getIdentifier(extra + "_small", "drawable", packageName); in getAll()
97 final int fullRes = partnerRes.getIdentifier(extra, "drawable", packageName); in getAll()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncHelper.java62 userHandle.getIdentifier()); in getSyncableSyncAdaptersForAccount()
73 userHandle.getIdentifier()) > 0; in getSyncableSyncAdaptersForAccount()
109 authority, /* flags= */ 0, userHandle.getIdentifier()); in getTitle()
163 userHandle.getIdentifier()); in isVisible()
DAccountSyncDetailsFragment.java131 userHandle.getIdentifier()).isEmpty(); in updateSyncButton()
149 int userId = userHandle.getIdentifier(); in requestSyncForEnabledProviders()
161 int userId = userHandle.getIdentifier(); in cancelSyncForEnabledProviders()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/defaultapps/
DDefaultWorkAutofillPreferenceController.java56 mUserHandle.getIdentifier()); in getDefaultAppInfo()
61 mUserHandle.getIdentifier(), in getDefaultAppInfo()
75 mContext, mUserHandle.getIdentifier(), info.getKey()); in getSettingIntent()
/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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSubtypeLocaleUtils.java110 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in initLocked()
114 final int noLanguageResId = res.getIdentifier( in initLocked()
125 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in initLocked()
134 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in initLocked()
138 final int resIdWithLayout = res.getIdentifier( in initLocked()
/packages/apps/ThemePicker/src/com/android/customization/model/
DResourcesApkProvider.java42 … int themesListResId = mStubApkResources.getIdentifier(arrayName, "array", mStubPackageName); in getItemsFromStub()
47 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemStringFromStub()
53 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemDrawableFromStub()
/packages/apps/Settings/src/com/android/settings/
DRegulatoryInfoDisplayActivity.java125 int resId = getResources().getIdentifier( in getResourceId()
132 int id = getResources().getIdentifier( in getResourceId()
144 final int id = getResources().getIdentifier( in getResourceId()

12345678910