Home
last modified time | relevance | path

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

/packages/modules/Wifi/framework/java/android/net/wifi/util/
DWifiResourceCache.java44 public boolean getBoolean(int resourceId, String resourceName) { in getBoolean() argument
45 return mBooleanResourceMap.computeIfAbsent(resourceName, in getBoolean()
52 public int getInteger(int resourceId, String resourceName) { in getInteger() argument
53 return mIntegerResourceMap.computeIfAbsent(resourceName, in getInteger()
63 public void overrideBooleanValue(String resourceName, boolean value) { in overrideBooleanValue() argument
64 mBooleanResourceMap.put(resourceName, value); in overrideBooleanValue()
70 public void restoreBooleanValue(String resourceName) { in restoreBooleanValue() argument
71 mBooleanResourceMap.remove(resourceName); in restoreBooleanValue()
79 public void overrideIntegerValue(String resourceName, int value) { in overrideIntegerValue() argument
80 mIntegerResourceMap.put(resourceName, value); in overrideIntegerValue()
[all …]
/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/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DVisibilityMixin.java50 public static boolean isVisible(@NonNull String resourceName, in isVisible() argument
58 int resourceId = resources.getIdentifier(resourceName, "bool", packageName); in isVisible()
60 Log.w(LOG_TAG, "Cannot find resource for visibility: " + resourceName); in isVisible()
66 Log.w(LOG_TAG, "Cannot get resource for visibility: " + resourceName, e); in isVisible()
/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/modules/GeoTZ/app/src/main/java/com/android/geotz/app/
DGeoDataFileManagerImpl.java75 private static void copyResource(@NonNull ClassLoader classLoader, @NonNull String resourceName, in copyResource() argument
78 try (InputStream resourceStream = classLoader.getResourceAsStream(resourceName)) { in copyResource()
81 + " resource=" + resourceName); in copyResource()
92 + " resource=" + resourceName in copyResource()
/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/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/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/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/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.java269 private int setupIntegerResource(int resourceName, int value) {
270 doReturn(value).when(mResources).getInteger(resourceName);
DWifiNetworkSelectorTest.java347 private int setupIntegerResource(int resourceName, int value) { in setupIntegerResource() argument
348 doReturn(value).when(mResource).getInteger(resourceName); in setupIntegerResource()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java370 private String getStringResource(String pkgName, String resourceName) { in getStringResource() argument
374 pkgName + ":string/" + resourceName, null, null); in getStringResource()
380 Log.w(TAG, "Unable to get string resource " + resourceName, e); in getStringResource()
391 private Drawable getDrawableResource(String pkgName, String resourceName) { in getDrawableResource() argument
395 pkgName + ":drawable/" + resourceName, null, null); in getDrawableResource()
401 Log.w(TAG, "Unable to get drawable resource " + resourceName, e); in getDrawableResource()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactDirectoryManager.java146 String resourceName = getResourceNameById(packageName, resourceId); in areTypeResourceIdsValid() local
147 if (!TextUtils.equals(storedResourceName, resourceName)) { in areTypeResourceIdsValid()
153 + " resourceName=" + resourceName); in areTypeResourceIdsValid()
581 String resourceName = getResourceNameById(info.packageName, info.typeResourceId); in updateDirectories() local
582 values.put(DirectoryColumns.TYPE_RESOURCE_NAME, resourceName); in updateDirectories()
/packages/modules/Permission/tests/functional/safetycenter/subpages/src/android/safetycenter/functional/ui/
DPrivacySubpageTest.kt222 private fun getPermissionControllerBool(resourceName: String): Boolean { in getPermissionControllerBool()
226 resourceName, in getPermissionControllerBool()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DCameraMicIndicatorsPermissionTest.kt706 private fun getPermissionControllerString(resourceName: String): String { in <lambda>()
713 resourceName, in <lambda>()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java170 iconResource.resourceName, null, null), null); in getItems()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java116 final int id = resources.getIdentifier(iconRes.resourceName, null, null); in createIconBitmap()
/packages/apps/TV/libs/m2/
Dguava-28.0-android.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dguava-28.0-jre.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dauto-value-1.5.3.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...
/packages/apps/TV/libs/
Dgoogle-java-format-1.7-all-deps.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...