Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/
DResourceUtils.java31 public static int getNavbarSize(String resName, Resources res) { in getNavbarSize() argument
32 return getDimenByName(resName, res, DEFAULT_NAVBAR_VALUE); in getNavbarSize()
35 public static int getDimenByName(String resName, Resources res, int defaultValue) { in getDimenByName() argument
37 final int frameSizeResID = res.getIdentifier(resName, "dimen", "android"); in getDimenByName()
46 public static boolean getBoolByName(String resName, Resources res, boolean defaultValue) { in getBoolByName() argument
48 final int resId = res.getIdentifier(resName, "bool", "android"); in getBoolByName()
57 public static int getIntegerByName(String resName, Resources res, int defaultValue) { in getIntegerByName() argument
58 int resId = res.getIdentifier(resName, "integer", "android"); in getIntegerByName()
/packages/apps/Car/tests/tools/rro/
Dresource_utils.py100 resName = attr.get('name')
103 if resName is None or resName.startswith('android:'):
106 …add_resource_to_set(result, Resource(resName, resType, ResourceLocation(filename, attr.sourceline)…
108 resName = resource.get('name')
119 resName = overlayable.get('name')
121 add_resource_to_set(result, Resource(resName, resType,
124 add_resource_to_set(result, Resource(resName, resType,
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DSystemStaticAsset.java32 public SystemStaticAsset(Resources res, int resId, String resName) { in SystemStaticAsset() argument
34 mResName = resName; in SystemStaticAsset()
51 PackageResourceKey(Resources res, int resId, String resName) { in PackageResourceKey() argument
53 mResName = resName; in PackageResourceKey()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java906 List<UiObject2> getObjectsInContainer(UiObject2 container, String resName) { in getObjectsInContainer() argument
908 return container.findObjects(getLauncherObjectSelector(resName)); in getObjectsInContainer()
916 UiObject2 waitForObjectInContainer(UiObject2 container, String resName) { in waitForObjectInContainer() argument
919 Until.findObject(getLauncherObjectSelector(resName)), in waitForObjectInContainer()
921 assertNotNull("Can't find a view in Launcher, id: " + resName + " in container: " in waitForObjectInContainer()
968 UiObject2 waitForLauncherObject(String resName) { in waitForLauncherObject() argument
969 return waitForObjectBySelector(getLauncherObjectSelector(resName)); in waitForLauncherObject()
983 UiObject2 waitForFallbackLauncherObject(String resName) { in waitForFallbackLauncherObject() argument
984 return waitForObjectBySelector(getOverviewObjectSelector(resName)); in waitForFallbackLauncherObject()
1005 BySelector getLauncherObjectSelector(String resName) { in getLauncherObjectSelector() argument
[all …]
/packages/apps/Car/libs/car-ui-lib/tests/apitest/
Dresource_utils.py109 resName = resource.get('name')
119 resName = overlayable.get('name')
121 add_resource_to_set(result, Resource(resName, resType,
124 add_resource_to_set(result, Resource(resName, resType,
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.java168 String resName = mSharedPrefs.getString(key, null); in getResIdPersistedByName() local
169 if (resName == null) { in getResIdPersistedByName()
172 return mContext.getResources().getIdentifier(resName, type, in getResIdPersistedByName()
177 String resName = mContext.getResources().getResourceName(resId); in persistResIdByName() local
178 mSharedPrefs.edit().putString(key, resName).apply(); in persistResIdByName()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DThemeBundledWallpaperInfo.java77 public ThemeBundledWallpaperInfo(String packageName, String resName, String themeName, in ThemeBundledWallpaperInfo() argument
80 mResName = resName; in ThemeBundledWallpaperInfo()
/packages/providers/MediaProvider/src/com/android/providers/media/
DPermissionActivity.java506 final String resName = "permission_" + verb + "_" + data; in resolveTitleText() local
507 final int resId = getResources().getIdentifier(resName, "plurals", in resolveTitleText()
515 throw new IllegalStateException("Invalid resource: " + resName); in resolveTitleText()
524 final String resName = "permission_progress_" + verb + "_" + data; in resolveProgressMessageText() local
525 final int resId = getResources().getIdentifier(resName, "plurals", in resolveProgressMessageText()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DNetworkProviderDownloadedSimListControllerTest.java164 private String setSummaryResId(String resName) { in setSummaryResId() argument
165 return ResourcesUtils.getResourcesString(mContext, resName); in setSummaryResId()
DNetworkProviderSimListControllerTest.java155 private String setSummaryResId(String resName, String value) { in setSummaryResId() argument
156 return ResourcesUtils.getResourcesString(mContext, resName, value); in setSummaryResId()
DNetworkProviderCallsSmsControllerTest.java159 private String setSummaryResId(String resName) { in setSummaryResId() argument
160 return ResourcesUtils.getResourcesString(mContext, resName); in setSummaryResId()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DSystemStaticWallpaperInfo.java172 public SystemStaticWallpaperInfo(String packageName, String resName, String collectionId, in SystemStaticWallpaperInfo() argument
176 mWallpaperId = resName; in SystemStaticWallpaperInfo()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DOrientationTouchTransformer.java338 private int getNavbarSize(String resName) { in getNavbarSize() argument
339 return ResourceUtils.getNavbarSize(resName, mResources); in getNavbarSize()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java1728 private int getIntResourceForName(@NonNull String resName) {
1730 final int resId = r.getIdentifier(resName, "integer", "android");