/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | PreBootReceiver.java | 73 Resources overlayRes; in onReceive() local 75 overlayRes = pm.getResourcesForApplication(overlayPkg); in onReceive() 78 overlayRes = null; in onReceive() 80 if (overlayRes == null) { in onReceive() 85 overlayPkg, overlayRes, CONFIG_IS_LAUNCHER_ENABLED); in onReceive() 87 overlayPkg, overlayRes, CONFIG_HANDLE_VIEW_DOWNLOADS); in onReceive() 91 String className, String overlayPkg, Resources overlayRes, String config) { in setComponentEnabledByConfigResources() argument 92 int resId = overlayRes.getIdentifier(config, "bool", overlayPkg); in setComponentEnabledByConfigResources() 95 boolean enabled = overlayRes.getBoolean(resId); in setComponentEnabledByConfigResources()
|
/aosp12/packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
H A D | OverlayThemeExtractor.java | 226 Resources overlayRes = mContext.getPackageManager() in loadTypeface() local 229 String fontFamily = overlayRes.getString(overlayRes.getIdentifier(configName, in loadTypeface() 237 Resources overlayRes = mContext.getPackageManager() in loadColor() local 239 return overlayRes.getColor(overlayRes.getIdentifier(colorName, "color", colorPackage), in loadColor() 246 Resources overlayRes = in loadString() local 249 return overlayRes.getString(overlayRes.getIdentifier(stringName, "string", packageName)); in loadString() 256 Resources overlayRes = in loadDimen() local 259 return overlayRes.getDimensionPixelOffset(overlayRes.getIdentifier( in loadDimen() 266 Resources overlayRes = in loadBoolean() local 269 return overlayRes.getBoolean(overlayRes.getIdentifier( in loadBoolean()
|
/aosp12/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/ |
H A D | FontOptionsProvider.java | 53 Resources overlayRes = getOverlayResources(overlayPackage); in loadOptions() local 55 getFontFamily(overlayPackage, overlayRes, CONFIG_HEADLINE_FONT_FAMILY), in loadOptions() 58 getFontFamily(overlayPackage, overlayRes, CONFIG_BODY_FONT_FAMILY), in loadOptions() 83 private String getFontFamily(String overlayPackage, Resources overlayRes, String configName) { in getFontFamily() argument 84 return overlayRes.getString(overlayRes.getIdentifier(configName, "string", overlayPackage)); in getFontFamily()
|
H A D | ColorOptionsProvider.java | 96 Resources overlayRes = getOverlayResources(overlayPackage); in loadOptions() local 97 int lightColor = overlayRes.getColor( in loadOptions() 98 overlayRes.getIdentifier(ACCENT_COLOR_LIGHT_NAME, "color", overlayPackage), in loadOptions() 100 int darkColor = overlayRes.getColor( in loadOptions() 101 overlayRes.getIdentifier(ACCENT_COLOR_DARK_NAME, "color", overlayPackage), in loadOptions() 146 Resources overlayRes = getOverlayResources(packageName); in loadIconPreviewDrawable() local 147 return overlayRes.getDrawable( in loadIconPreviewDrawable() 148 overlayRes.getIdentifier(drawableName, "drawable", packageName), null); in loadIconPreviewDrawable()
|
H A D | ShapeOptionsProvider.java | 134 private Path loadPath(Resources overlayRes, String packageName) { in loadPath() argument 135 String shape = overlayRes.getString(overlayRes.getIdentifier(CONFIG_ICON_MASK, "string", in loadPath() 148 Resources overlayRes = in loadCornerRadius() local 151 return overlayRes.getDimensionPixelOffset(overlayRes.getIdentifier( in loadCornerRadius()
|
/aosp12/frameworks/base/packages/overlays/tests/src/com/android/theme/icon/ |
H A D | IconPackOverlayTest.java | 201 final Resources overlayRes; in hasEqualVectorDrawableAttributes() local 203 overlayRes = mContext.getPackageManager().getResourcesForApplication(overlayPkg); in hasEqualVectorDrawableAttributes() 211 int overlayRid = overlayRes.getIdentifier(resourceName, "drawable", overlayPkg); in hasEqualVectorDrawableAttributes() 220 TypedArray overlayAttrs = getAVDAttributes(overlayRes, overlayRid); in hasEqualVectorDrawableAttributes()
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | Resource.cpp | 609 KeyedVector<String8, sp<ResourceTypeSet> >* overlayRes = overlay->getResources(); in applyFileOverlay() local 612 ssize_t index = overlayRes->indexOfKey(resTypeString); in applyFileOverlay() 614 const sp<ResourceTypeSet>& overlaySet = overlayRes->valueAt(index); in applyFileOverlay()
|