Home
last modified time | relevance | path

Searched refs:resourceName (Results 1 – 20 of 20) sorted by relevance

/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DExclusiveDefaultHolderMixin.java47 public static List<String> getDefaultHolders(@NonNull Role role, @NonNull String resourceName, in getDefaultHolders() argument
49 return CollectionUtils.singletonOrEmpty(getDefaultHolder(role, resourceName, context)); in getDefaultHolders()
56 public static String getDefaultHolder(@NonNull Role role, @NonNull String resourceName, in getDefaultHolder() argument
59 int resourceId = resources.getIdentifier(resourceName, "string", "android"); in getDefaultHolder()
61 Log.w(LOG_TAG, "Cannot find resource for default holder: " + resourceName); in getDefaultHolder()
68 Log.w(LOG_TAG, "Cannot get resource for default holder: " + resourceName, e); in getDefaultHolder()
77 Log.w(LOG_TAG, "Cannot get ApplicationInfo for default holder, config: " + resourceName in getDefaultHolder()
82 Log.w(LOG_TAG, "Default holder is not a system app, config: " + resourceName in getDefaultHolder()
88 Log.w(LOG_TAG, "Default holder does not qualify for the role, config: " + resourceName in getDefaultHolder()
DVisibilityMixin.java39 public static boolean isVisible(@NonNull String resourceName, @NonNull Context context) { in isVisible() argument
41 int resourceId = resources.getIdentifier(resourceName, "bool", "android"); in isVisible()
43 Log.w(LOG_TAG, "Cannot find resource for visibility: " + resourceName); in isVisible()
49 Log.w(LOG_TAG, "Cannot get resource for visibility: " + resourceName, e); in isVisible()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamAlternativeExperimentUtil.java30 public static int getResourceIdByName(String resourceName, Context context) { in getResourceIdByName() argument
37 String modifiedResourceName = resourceName; in getResourceIdByName()
39 modifiedResourceName = resourceName + "_" + experiment; in getResourceIdByName()
50 return context.getResources().getIdentifier(resourceName, "string", context.getPackageName()); in getResourceIdByName()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUriUtils.java93 final int id = resources.getIdentifier(r.resourceName, null, null); in getDrawable()
103 + iconResource.resourceName.replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER)); in getShortcutIconResourceUri()
110 public static Uri getAndroidResourceUri(String resourceName) { in getAndroidResourceUri() argument
112 + resourceName.replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER)); in getAndroidResourceUri()
222 iconResource.resourceName = iconResource.packageName in getIconResource()
229 iconResource.resourceName = uri.toString().substring( in getIconResource()
DAccountImageHelper.java117 iconResource.resourceName = context.getResources().getResourceName( in getDefaultPictureUri()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DBaseCustomization.java75 public final Optional<Boolean> getBooleanResource(Context context, String resourceName) { in getBooleanResource() argument
76 if (resourceName.isEmpty()) { in getBooleanResource()
84 : res.getIdentifier(resourceName, RES_TYPE_BOOLEAN, packageName); in getBooleanResource()
89 + resourceName in getBooleanResource()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSubtypeLocaleUtils.java109 final String resourceName = SUBTYPE_NAME_RESOURCE_GENERIC_PREFIX + layoutName; in initLocked() local
110 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in initLocked()
124 final String resourceName = SUBTYPE_NAME_RESOURCE_IN_ROOT_LOCALE_PREFIX + localeString; in initLocked() local
125 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in initLocked()
133 final String resourceName = SUBTYPE_NAME_RESOURCE_PREFIX + localeString; in initLocked() local
134 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in initLocked()
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DExternalAccountType.java246 Context context, String resourceName, String packageName, String xmlAttributeName) { in resolveExternalResId() argument
247 if (TextUtils.isEmpty(resourceName)) { in resolveExternalResId()
250 if (resourceName.charAt(0) != '@') { in resolveExternalResId()
254 final String name = resourceName.substring(1); in resolveExternalResId()
264 LogUtil.e(TAG, "Unable to load " + resourceName + " from package " + packageName); in resolveExternalResId()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DExternalAccountType.java415 static int resolveExternalResId(Context context, String resourceName, in resolveExternalResId() argument
417 if (TextUtils.isEmpty(resourceName)) { in resolveExternalResId()
420 if (resourceName.charAt(0) != '@') { in resolveExternalResId()
426 final String name = resourceName.substring(1); in resolveExternalResId()
439 Log.w(TAG, "Unable to load " + resourceName + " from package " + packageName); in resolveExternalResId()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DBots.java88 protected void assertHasFocus(String resourceName) { in assertHasFocus() argument
89 UiObject2 candidate = mDevice.findObject(By.res(resourceName)); in assertHasFocus()
90 assertNotNull("Expected " + resourceName + " to have focus, but it didn't.", in assertHasFocus()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyCodeDescriptionMapper.java336 final String resourceName = String.format(Locale.ROOT, resourceNameFormat, code); in getSpokenDescriptionId() local
341 final int resId = resources.getIdentifier(resourceName, "string", resourcePackageName); in getSpokenDescriptionId()
357 final String resourceName = sb.toString(); in getSpokenEmoticonDescription() local
362 final int resId = resources.getIdentifier(resourceName, "string", resourcePackageName); in getSpokenEmoticonDescription()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactDirectoryManager.java143 String resourceName = getResourceNameById(packageName, resourceId); in areTypeResourceIdsValid() local
144 if (!TextUtils.equals(storedResourceName, resourceName)) { in areTypeResourceIdsValid()
150 + " resourceName=" + resourceName); in areTypeResourceIdsValid()
569 String resourceName = getResourceNameById(info.packageName, info.typeResourceId); in updateDirectories() local
570 values.put(DirectoryColumns.TYPE_RESOURCE_NAME, resourceName); in updateDirectories()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderCursor.java179 String resourceName = getString(iconResourceIndex); in loadIcon() local
180 if (!TextUtils.isEmpty(packageName) || !TextUtils.isEmpty(resourceName)) { in loadIcon()
183 info.iconResource.resourceName = resourceName; in loadIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DRegulatoryInfoDisplayActivityTest.java79 private int getResourceId(String resourceName) { in getResourceId() argument
80 return mRegulatoryInfoDisplayActivity.getResources().getIdentifier(resourceName, "drawable", in getResourceId()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java120 public void initializeData(String resourceName) throws Exception { in initializeData() argument
122 this.getClass().getResourceAsStream(resourceName)))) { in initializeData()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspaceItemInfo.java147 .put(Favorites.ICON_RESOURCE, iconResource.resourceName); in onAddToDatabase()
DInstallShortcutReceiver.java473 json = json.key(ICON_RESOURCE_NAME_KEY).value(iconResource.resourceName); in encodeToString()
573 iconResource.resourceName = iconResourceName; in decode()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java101 final int id = resources.getIdentifier(iconRes.resourceName, null, null); in createIconBitmap()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DActivityPicker.java166 iconResource.resourceName, null, null), null); in getItems()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java166 iconResource.resourceName, null, null), null); in getItems()