Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
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/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/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()
/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/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/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/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/apps/Car/libs/car-ui-lib/tests/apitest/
Dauto-generate-resources.py195 resourceName = resource.name
196 if resourceType == 'attr' and not re.match("^CarUi", resourceName, re.IGNORECASE):
199 elif resourceType == 'style' and not re.search("CarUi", resourceName, re.IGNORECASE):
202 …pe != 'attr' and resourceType != 'style' and not re.match("^car_ui_", resourceName, re.IGNORECASE):
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java310 private String getStringResource(String pkgName, String resourceName) { in getStringResource() argument
314 pkgName + ":string/" + resourceName, null, null); in getStringResource()
320 Log.w(TAG, "Unable to get string resource " + resourceName, e); in getStringResource()
331 private Drawable getDrawableResource(String pkgName, String resourceName) { in getDrawableResource() argument
335 pkgName + ":drawable/" + resourceName, null, null); in getDrawableResource()
341 Log.w(TAG, "Unable to get drawable resource " + resourceName, e); in getDrawableResource()
/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()
568 String resourceName = getResourceNameById(info.packageName, info.typeResourceId); in updateDirectories() local
569 values.put(DirectoryColumns.TYPE_RESOURCE_NAME, resourceName); in updateDirectories()
/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/src/com/android/launcher3/model/
DLoaderCursor.java190 String resourceName = getString(iconResourceIndex); in loadIcon() local
191 if (!TextUtils.isEmpty(packageName) || !TextUtils.isEmpty(resourceName)) { in loadIcon()
194 info.iconResource.resourceName = resourceName; in loadIcon()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DVelocityBasedConnectedScoreTest.java64 private int setupIntegerResource(int resourceName, int value) { in setupIntegerResource() argument
65 doReturn(value).when(mResources).getInteger(resourceName); in setupIntegerResource()
DScoringParamsTest.java263 private int setupIntegerResource(int resourceName, int value) {
264 doReturn(value).when(mResources).getInteger(resourceName);
DWifiNetworkSelectorTest.java300 private int setupIntegerResource(int resourceName, int value) { in setupIntegerResource() argument
301 doReturn(value).when(mResource).getInteger(resourceName); in setupIntegerResource()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DLauncherModelHelper.java163 public void initializeData(String resourceName) throws Exception { in initializeData() argument
170 this.getClass().getResourceAsStream(resourceName)))) { in initializeData()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DWorkspaceItemInfo.java137 .put(Favorites.ICON_RESOURCE, iconResource.resourceName); in onAddToDatabase()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java166 iconResource.resourceName, null, null), null); in getItems()