Home
last modified time | relevance | path

Searched refs:resName (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/shared/com/android/launcher3/testing/shared/
DResourceUtils.java41 public static int getNavbarSize(String resName, Resources res) { in getNavbarSize() argument
42 return getDimenByName(resName, res, DEFAULT_NAVBAR_VALUE); in getNavbarSize()
45 public static int getDimenByName(String resName, Resources res, int defaultValue) { in getDimenByName() argument
47 final int frameSizeResID = res.getIdentifier(resName, "dimen", "android"); in getDimenByName()
56 public static boolean getBoolByName(String resName, Resources res, boolean defaultValue) { in getBoolByName() argument
58 final int resId = res.getIdentifier(resName, "bool", "android"); in getBoolByName()
67 public static int getIntegerByName(String resName, Resources res, int defaultValue) { in getIntegerByName() argument
68 int resId = res.getIdentifier(resName, "integer", "android"); in getIntegerByName()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DDevicePolicyResourcesUtils.java368 String resName = context.getResources().getResourceEntryName(resId); in isDevicePolicyResource() local
369 return DEVICE_POLICY_RESOURCES.containsKey(resName); in isDevicePolicyResource()
378 String resName = context.getResources().getResourceEntryName( in isDevicePolicyResource() local
380 return DEVICE_POLICY_RESOURCES.containsKey(resName); in isDevicePolicyResource()
388 String resName = context.getResources().getResourceEntryName(resId); in getDevicePolicyResource() local
389 if (!DEVICE_POLICY_RESOURCES.containsKey(resName)) { in getDevicePolicyResource()
393 DEVICE_POLICY_RESOURCES.get(resName), () -> context.getString(resId)); in getDevicePolicyResource()
402 String resName = context.getResources().getResourceEntryName( in getDevicePolicyResource() local
404 if (!DEVICE_POLICY_RESOURCES.containsKey(resName)) { in getDevicePolicyResource()
408 .getString(DEVICE_POLICY_RESOURCES.get(resName), () -> in getDevicePolicyResource()
/packages/apps/Car/systemlibs/tools/rro/
Dresource_utils.py106 resName = attr.get('name')
109 if resName is None or resName.startswith('android:'):
112 …add_resource_to_set(result, Resource(resName, resType, ResourceLocation(filename, attr.sourceline)…
114 resName = resource.get('name')
125 resName = overlayable.get('name')
127 add_resource_to_set(result, Resource(resName, resType,
130 add_resource_to_set(result, Resource(resName, resType,
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPartner.java84 public int getIntValue(String resName, int defaultValue) { in getIntValue() argument
85 int resId = getResources().getIdentifier(resName, "integer", getPackageName()); in getIntValue()
93 public float getDimenValue(String resName, int defaultValue) { in getDimenValue() argument
94 int resId = getResources().getIdentifier(resName, "dimen", getPackageName()); in getDimenValue()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DSystemStaticAsset.java49 public SystemStaticAsset(Resources res, int resId, String resName, boolean isThumbnail) { in SystemStaticAsset() argument
51 mResName = resName; in SystemStaticAsset()
93 PackageResourceKey(Resources res, int resId, String resName) { in PackageResourceKey() argument
95 mResName = resName; in PackageResourceKey()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyCenterSubpageFragment.kt89 val resName = "illustration_${SnakeCaseConverter.fromCamelCase(sourceGroupId)}" in setupIllustration() constant
91 val drawable = SafetyCenterResourcesApk(context).getDrawableByName(resName, context.theme) in setupIllustration()
101 val resName = "${SnakeCaseConverter.fromCamelCase(sourceGroupId)}_footer" in setupFooter() constant
102 val footerText = SafetyCenterResourcesApk(requireContext()).getStringByName(resName) in setupFooter()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java1432 UiObject2 findObjectInContainer(UiObject2 container, String resName) { in findObjectInContainer() argument
1434 return container.findObject(getLauncherObjectSelector(resName)); in findObjectInContainer()
1452 List<UiObject2> getObjectsInContainer(UiObject2 container, String resName) { in getObjectsInContainer() argument
1454 return container.findObjects(getLauncherObjectSelector(resName)); in getObjectsInContainer()
1462 UiObject2 waitForObjectInContainer(UiObject2 container, String resName) { in waitForObjectInContainer() argument
1465 Until.findObject(getLauncherObjectSelector(resName)), in waitForObjectInContainer()
1467 assertNotNull("Can't find a view in Launcher, id: " + resName + " in container: " in waitForObjectInContainer()
1546 UiObject2 waitForOverviewObject(String resName) { in waitForOverviewObject() argument
1547 return waitForObjectBySelector(getOverviewObjectSelector(resName)); in waitForOverviewObject()
1551 UiObject2 waitForLauncherObject(String resName) { in waitForLauncherObject() argument
[all …]
DOverviewTask.java255 private UiObject2 findObjectInTask(String resName) { in findObjectInTask() argument
256 return mTask.findObject(mLauncher.getOverviewObjectSelector(resName)); in findObjectInTask()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DThemedIconDrawable.java159 String resName = mThemeData.mResources.getResourceName(mThemeData.mResID); in toByteArray() local
161 getExpectedBitmapSize(icon) + 3 + resName.length()); in toByteArray()
166 dos.writeUTF(resName); in toByteArray()
185 String resName = dis.readUTF(); in decode() local
187 .getIdentifier(resName, "drawable", context.getPackageName()); in decode()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/preference/
DPreferenceAdapterProxy.java166 private int getSharedLibViewId(String resName) { in getSharedLibViewId() argument
168 return res.getIdentifier(resName, "id", "com.chassis.car.ui.plugin"); in getSharedLibViewId()
171 private int getAppViewId(String resName) { in getAppViewId() argument
173 return res.getIdentifier(resName, "id", getAppPackageName()); in getAppViewId()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DNetworkProviderSimListControllerTest.java151 private String setSummaryResId(String resName, String value) { in setSummaryResId() argument
152 return ResourcesUtils.getResourcesString(mContext, resName, value); in setSummaryResId()
155 private String setSummaryResId(String resName) { in setSummaryResId() argument
156 return ResourcesUtils.getResourcesString(mContext, resName); in setSummaryResId()
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DSecurityAdvancedSettingsControllerTest.java83 private String getResourcesString(String resName) { in getResourcesString() argument
84 return ResourcesUtils.getResourcesString(mContext, resName); in getResourcesString()
DSecurityAdvancedSettingsTest.java120 private int getXmlResId(String resName) { in getXmlResId() argument
121 return ResourcesUtils.getResourcesId(mContext, "xml", resName); in getXmlResId()
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DMoreSecurityPrivacyFragmentSettingsTest.java99 private int getXmlResId(String resName) { in getXmlResId() argument
100 return ResourcesUtils.getResourcesId(mContext, "xml", resName); in getXmlResId()
/packages/apps/Launcher3/src/com/android/launcher3/util/window/
DWindowManagerProxy.java374 protected int getDimenByName(Resources res, String resName) { in getDimenByName() argument
375 return ResourceUtils.getDimenByName(resName, res, 0); in getDimenByName()
381 protected int getDimenByName(Resources res, String resName, String fallback) { in getDimenByName() argument
382 int dimen = ResourceUtils.getDimenByName(resName, res, -1); in getDimenByName()
/packages/providers/MediaProvider/src/com/android/providers/media/
DPermissionActivity.java637 final String resName = "permission_" + verb + "_" + data; in resolveTitleText() local
638 final int resId = getResources().getIdentifier(resName, "string", in resolveTitleText()
646 throw new IllegalStateException("Invalid resource: " + resName); in resolveTitleText()
655 final String resName = "permission_progress_" + verb + "_" + data; in resolveProgressMessageText() local
656 final int resId = getResources().getIdentifier(resName, "string", in resolveProgressMessageText()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DSystemStaticWallpaperInfo.java181 public SystemStaticWallpaperInfo(String packageName, String resName, String collectionId, in SystemStaticWallpaperInfo() argument
185 mWallpaperId = resName; in SystemStaticWallpaperInfo()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DLibUtils.java324 public static void showToast(Context context, String resName) { in showToast() argument
325 String toast = ResourcesUtil.getString(context, resName); in showToast()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DOrientationTouchTransformer.java297 private int getNavbarSize(String resName) { in getNavbarSize() argument
298 return ResourceUtils.getNavbarSize(resName, mResources); in getNavbarSize()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java2979 private int[] loadScanScheduleArrayFromOverlay(int id, int[] defaultValue, String resName) { in loadScanScheduleArrayFromOverlay() argument
2983 Log.w(TAG, resName + " is not configured! Using default scan schedule"); in loadScanScheduleArrayFromOverlay()
2988 Log.e(TAG, resName + " is misconfigured! Using default scan schedule"); in loadScanScheduleArrayFromOverlay()
3000 private int[] loadScanTypeArrayFromOverlay(int id, int[] defaultValue, String resName) { in loadScanTypeArrayFromOverlay() argument
3004 Log.w(TAG, resName + " is not configured! Using default scan types"); in loadScanTypeArrayFromOverlay()
3009 Log.e(TAG, resName + " is misconfigured! Using default scan types"); in loadScanTypeArrayFromOverlay()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.kt192 val resName = sharedPrefs.getString(key, null) ?: return 0 in <lambda>() constant
193 return context.resources.getIdentifier(resName, type, context.packageName) in <lambda>()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java2086 private int getIntResourceForName(@NonNull String resName) {
2088 final int resId = r.getIdentifier(resName, "integer", "android");