Home
last modified time | relevance | path

Searched defs:resources (Results 1 – 25 of 209) sorted by relevance

123456789

/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java91 Resources resources = new Resources(Resources_Delegate.class.getClassLoader()); in initSystem() local
101 public static BridgeContext getContext(@NonNull Resources resources) { in getContext()
110 public static LayoutlibCallback getLayoutlibCallback(@NonNull Resources resources) { in getLayoutlibCallback()
128 public static BridgeTypedArray newTypeArray(Resources resources, int numEntries) { in newTypeArray()
132 private static ResourceReference getResourceInfo(Resources resources, int id) { in getResourceInfo()
152 private static Pair<String, ResourceValue> getResourceValue(Resources resources, int id) { in getResourceValue()
171 static Drawable getDrawable(Resources resources, int id) { in getDrawable()
176 static Drawable getDrawable(Resources resources, int id, Theme theme) { in getDrawable()
205 static int getColor(Resources resources, int id) { in getColor()
210 static int getColor(Resources resources, int id, Theme theme) throws NotFoundException { in getColor()
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/userswitcher/
DUserIconProvider.java60 public RoundedBitmapDrawable getRoundedGuestDefaultIcon(Resources resources) { in getRoundedGuestDefaultIcon()
64 private RoundedBitmapDrawable createScaledRoundIcon(Resources resources, Bitmap icon) { in createScaledRoundIcon()
92 UserManager userManager, Resources resources, UserInfo userInfo) { in assignDefaultIcon()
108 private Bitmap getUserDefaultIcon(Resources resources, @UserIdInt int id) { in getUserDefaultIcon()
113 private Bitmap getGuestUserDefaultIcon(Resources resources) { in getGuestUserDefaultIcon()
/frameworks/base/cmds/idmap2/tests/
DResourceMappingTests.cpp112 auto resources = TestGetResourceMapping("/target/target.apk", "/overlay/overlay.apk", info, in TEST() local
134 auto resources = TestGetResourceMapping("/target/target.apk", "/overlay/overlay.apk", info, in TEST() local
154 auto resources = TestGetResourceMapping("/target/target.apk", "/overlay/overlay.apk", info, in TEST() local
173 auto resources = TestGetResourceMapping("/target/target.apk", "/overlay/overlay.apk", info, in TEST() local
190 auto resources = in TEST() local
210 auto resources = TestGetResourceMapping("/target/target.apk", in TEST() local
233 auto resources = TestGetResourceMapping("/target/target.apk", in TEST() local
273 auto resources = TestGetResourceMapping("/target/target.apk", "/overlay/overlay-no-name.apk", in TEST() local
293 auto resources = TestGetResourceMapping("/target/target-no-overlayable.apk", in TEST() local
305 auto resources = TestGetResourceMapping("/target/target-no-overlayable.apk", in TEST() local
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java36 final Resources resources = getContext().getResources(); in extractApkAndGetPath() local
53 private static void ensureNoLanguage(Resources resources, String language) { in ensureNoLanguage()
67 final Resources resources = createResourcesWithApk(R.raw.locales); in testEnglishIsAlwaysConsideredSupported() local
84 final Resources resources = createResourcesWithApk(R.raw.locales); in testSelectFirstSupportedLanguage() local
DResourcesDrawableTest.java44 Resources resources = context.getResources(); in testLoadColorAsDrawable() local
52 Resources resources = context.getResources(); in testLoadColorAsDrawableFailureThrowsOriginalException() local
77 Resources resources = context.getResources(); in testLoadNormalDrawableInColorDir() local
DResourcesManagerTest.java73 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithIdenticalParametersCacheReference() local
87 Resources resources = mResourcesManager.getResources( in testMultipleCallsWithDifferentParametersReturnDifferentReferences() local
270 final Resources resources = mResourcesManager.createBaseTokenResources( in testOverrideDisplayAdjustments() local
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DDisplayWhiteBalanceFactory.java60 SensorManager sensorManager, Resources resources) { in create()
112 SensorManager sensorManager, Resources resources) { in createBrightnessSensor()
123 Handler handler, SensorManager sensorManager, Resources resources) { in createColorTemperatureSensor()
133 private static DisplayWhiteBalanceThrottler createThrottler(Resources resources) { in createThrottler()
148 private static float getFloat(Resources resources, int id) { in getFloat()
157 private static float[] getFloatArray(Resources resources, int id) { in getFloatArray()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveOutlineDrawable.java66 public AdaptiveOutlineDrawable(Resources resources, Bitmap bitmap) { in AdaptiveOutlineDrawable()
72 public AdaptiveOutlineDrawable(Resources resources, Bitmap bitmap, in AdaptiveOutlineDrawable()
79 private void init(Resources resources, Bitmap bitmap, in init()
96 private @ColorInt int getColor(Resources resources, @AdaptiveOutlineIconType int type) { in getColor()
110 private int getDimensionPixelSize(Resources resources, @AdaptiveOutlineIconType int type) { in getDimensionPixelSize()
DAdaptiveIconShapeDrawable.java41 public AdaptiveIconShapeDrawable(Resources resources) { in AdaptiveIconShapeDrawable()
53 private void init(Resources resources) { in init()
/frameworks/base/services/core/java/com/android/server/display/utils/
DAmbientFilterFactory.java60 public static AmbientFilter createBrightnessFilter(String tag, Resources resources) { in createBrightnessFilter()
80 public static AmbientFilter createColorTemperatureFilter(String tag, Resources resources) { in createColorTemperatureFilter()
94 private static float getFloat(Resources resources, int id) { in getFloat()
/frameworks/base/services/core/java/com/android/server/
DGestureLauncherService.java150 Resources resources = mContext.getResources(); in onBootPhase() local
183 Resources resources = mContext.getResources(); in updateCameraRegistered() local
223 private void registerCameraLaunchGesture(Resources resources) { in registerCameraLaunchGesture()
274 private void registerCameraLiftTrigger(Resources resources) { in registerCameraLiftTrigger()
332 public static boolean isCameraLaunchEnabled(Resources resources) { in isCameraLaunchEnabled()
339 public static boolean isCameraDoubleTapPowerEnabled(Resources resources) { in isCameraDoubleTapPowerEnabled()
344 public static boolean isCameraLiftTriggerEnabled(Resources resources) { in isCameraLiftTriggerEnabled()
353 public static boolean isGestureLauncherEnabled(Resources resources) { in isGestureLauncherEnabled()
545 Resources resources = mContext.getResources(); in onTrigger() local
/frameworks/base/core/java/com/android/internal/policy/
DScreenDecorationsUtils.java33 public static float getWindowCornerRadius(Resources resources) { in getWindowCornerRadius()
61 public static boolean supportsRoundedCornersOnWindows(Resources resources) { in supportsRoundedCornersOnWindows()
/frameworks/av/media/libmedia/aidl/android/media/
DIResourceManagerService.aidl58 in MediaResourceParcel[] resources); in addResource()
67 void removeResource(int pid, long clientId, in MediaResourceParcel[] resources); in removeResource()
86 boolean reclaimResource(int callingPid, in MediaResourceParcel[] resources); in reclaimResource()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreUtils.java47 static int getDescriptionResourceId(@NonNull Resources resources, in getDescriptionResourceId()
55 final Resources resources = getPackageResources(context, packageName, userId); in getDescriptionResourceId() local
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java124 Resources resources = mock(Resources.class); in testGetDefaultStorageManagerDaysToRetain_storageManagerDaysToRetainUsesResources() local
321 final Resources resources = mContext.getResources(); in getBatteryStatus_statusIsFull_returnFullString() local
331 final Resources resources = mContext.getResources(); in getBatteryStatus_batteryLevelIs100_returnFullString() local
341 final Resources resources = mContext.getResources(); in getBatteryStatus_batteryLevel99_returnChargingString() local
/frameworks/base/core/java/android/accessibilityservice/util/
DAccessibilityUtils.java119 final Resources resources = context.getResources(); in getScreenWidthPixels() local
133 final Resources resources = context.getResources(); in getScreenHeightPixels() local
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothUtils.java139 final Resources resources = context.getResources(); in getBtRainbowDrawableWithDescription() local
157 final Resources resources = context.getResources(); in buildBtRainbowDrawable() local
184 final Resources resources = context.getResources(); in getBtDrawableWithDescription() local
224 final Resources resources = context.getResources(); in buildAdvancedDrawable() local
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DPartner.java120 public Resources resources; field in Partner.ResourceEntry
124 ResourceEntry(Resources resources, int id, boolean isOverlay) { in ResourceEntry()
182 private final Resources resources; field in Partner
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java133 public static @Nullable FamilyResourceEntry parse(XmlPullParser parser, Resources resources) in parse()
148 Resources resources) throws XmlPullParserException, IOException { in readFamilies()
162 Resources resources) throws XmlPullParserException, IOException { in readFamily()
216 private static FontFileResourceEntry readFont(XmlPullParser parser, Resources resources) in readFont()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java60 public static void init(Resources resources) { in init()
64 public ResourceModifiers(Resources resources) { in ResourceModifiers()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptC.java57 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC()
88 …private static synchronized long internalCreate(RenderScript rs, Resources resources, int resource… in internalCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DProximitySensor.java69 public ProximitySensor(@Main Resources resources, in ProximitySensor()
121 private Sensor findCustomProxSensor(Resources resources) { in findCustomProxSensor()
142 private float getCustomProxThreshold(Resources resources) { in getCustomProxThreshold()
/frameworks/base/rs/java/android/renderscript/
DScriptC.java59 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC()
87 …private static synchronized long internalCreate(RenderScript rs, Resources resources, int resource… in internalCreate()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveOutlineDrawableTest.java36 final Resources resources = RuntimeEnvironment.application.getResources(); in constructor_initPaint() local
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/
DCarSystemUIFactory.java40 public String[] getSystemUIServiceComponents(Resources resources) { in getSystemUIServiceComponents()

123456789