/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | ExclusiveDefaultHolderMixin.java | 47 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()
|
D | VisibilityMixin.java | 39 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/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | BitmapWorkerOptions.java | 78 options.mIconResource.resourceName = mResourceName; in build() 100 public Builder resource(String packageName, String resourceName) { in resource() argument 102 mResourceName = resourceName; in resource() 108 mResourceName = iconResource.resourceName; in resource() 208 + mIconResource.resourceName : mResourceUri.toString(); in getCacheKey()
|
D | UriUtils.java | 84 final int id = resources.getIdentifier(r.resourceName, null, null); in getDrawable() 94 + iconResource.resourceName.replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER)); in getShortcutIconResourceUri() 101 public static Uri getAndroidResourceUri(String resourceName) { in getAndroidResourceUri() argument 103 + resourceName.replace(URI_PACKAGE_DELIMITER, URI_PATH_DELIMITER)); in getAndroidResourceUri() 198 iconResource.resourceName = uri.toString().substring( in getIconResource() 205 iconResource.resourceName = uri.toString().substring( in getIconResource()
|
D | BitmapWorkerTask.java | 143 Log.w(TAG, "Could not load resource: " + iconResource.resourceName + "! NotFound"); in getBitmapFromResource() 266 final int id = resources.getIdentifier(r.resourceName, null, null); in loadDrawable() 268 Log.e(TAG, "Couldn't get resource " + r.resourceName + " in resources of " in loadDrawable() 309 int id = resources.getIdentifier(iconResource.resourceName, null, null); in getDrawable()
|
D | DrawableLoader.java | 172 Log.w(TAG, "Could not load resource: " + iconResource.resourceName + "! NotFound"); in getBitmapFromResource() 326 final int id = resources.getIdentifier(r.resourceName, null, null); in loadDrawable() 328 Log.e(TAG, "Couldn't get resource " + r.resourceName + " in resources of " in loadDrawable() 348 int id = resources.getIdentifier(iconResource.resourceName, null, null); in getDrawable()
|
D | AccountImageHelper.java | 117 iconResource.resourceName = context.getResources().getResourceName( in getDefaultPictureUri()
|
/packages/apps/Dialer/java/com/android/incallui/spam/ |
D | SpamAlternativeExperimentUtil.java | 30 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/TV/partner_support/src/com/google/android/tv/partner/support/ |
D | BaseCustomization.java | 75 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/ |
D | SubtypeLocaleUtils.java | 109 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/Contacts/src/com/android/contacts/model/account/ |
D | ExternalAccountType.java | 415 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/Dialer/java/com/android/contacts/common/model/account/ |
D | ExternalAccountType.java | 246 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/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | Bots.java | 88 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/ |
D | KeyCodeDescriptionMapper.java | 336 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/ |
D | ContactDirectoryManager.java | 143 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/ |
D | LoaderCursor.java | 179 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/ |
D | RegulatoryInfoDisplayActivityTest.java | 79 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/ |
D | BaseModelUpdateTaskTestCase.java | 121 public void initializeData(String resourceName) throws Exception { in initializeData() argument 123 this.getClass().getResourceAsStream(resourceName)))) { in initializeData()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WorkspaceItemInfo.java | 131 .put(Favorites.ICON_RESOURCE, iconResource.resourceName); in onAddToDatabase()
|
D | InstallShortcutReceiver.java | 468 json = json.key(ICON_RESOURCE_NAME_KEY).value(iconResource.resourceName); in encodeToString() 576 iconResource.resourceName = iconResourceName; in decode()
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/ |
D | BaseIconFactory.java | 97 final int id = resources.getIdentifier(iconRes.resourceName, null, null); in createIconBitmap()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | ActivityPicker.java | 166 iconResource.resourceName, null, null), null); in getItems()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 166 iconResource.resourceName, null, null), null); in getItems()
|