Home
last modified time | relevance | path

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

12

/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java80 final Resources resources = context.getResources(); in shouldLoadDefault() local
81 assertThat(resources, notNullValue()); in shouldLoadDefault()
83 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadDefault()
94 final Resources resources = context.getResources(); in shouldLoadPolishLocale() local
95 assertThat(resources, notNullValue()); in shouldLoadPolishLocale()
97 assertThat(resources.getString(R.string.base_string), equalTo("Base String Polish")); in shouldLoadPolishLocale()
109 final Resources resources = context.getResources(); in shouldLoadFeatureADefault() local
110 assertThat(resources, notNullValue()); in shouldLoadFeatureADefault()
112 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadFeatureADefault()
114 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureADefault()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactory_OptionsTest.java62 Resources resources = instrumentation.getTargetContext().getResources(); in testExtractMetaData() local
65 AssetManager assets = resources.getAssets(); in testExtractMetaData()
78 b = BitmapFactory.decodeResource(resources, R.drawable.alpha, options); in testExtractMetaData()
84 b = BitmapFactory.decodeResource(resources, R.drawable.icon_green, options); in testExtractMetaData()
92 b = BitmapFactory.decodeResource(resources, R.drawable.bitmap_indexed, options); in testExtractMetaData()
103 b = BitmapFactory.decodeResource(resources, R.drawable.bitmap_indexed, options); in testExtractMetaData()
/cts/tests/tests/widget/src/android/widget/cts/
DTableRowTest.java107 Resources resources = mActivity.getResources(); in testGetVirtualChildAt() local
108 assertEquals(resources.getString(R.string.table_layout_first), in testGetVirtualChildAt()
110 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt()
112 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt()
120 assertEquals(resources.getString(R.string.table_layout_long), in testGetVirtualChildAt()
122 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt()
124 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt()
126 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt()
151 Resources resources = mActivity.getResources(); in testGenerateLayoutParamsFromAttributeSet() local
152 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParamsFromAttributeSet()
DImageSwitcherTest.java96 Resources resources = mActivity.getResources(); in testSetImageResource() local
97 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageResource()
105 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageResource()
166 Resources resources = mActivity.getResources(); in testSetImageDrawable() local
168 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageDrawable()
173 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageDrawable()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java205 Resources resources = mActivity.getResources(); in isRestartingAnimation() local
207 SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingAnimation()
212 Resources resources = mActivity.getResources(); in isRestartingClip() local
214 SMALL_SQUARE_SIZE_DP + SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingClip()
216 LARGE_SQUARE_SIZE_DP - SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingClip()
235 Resources resources = mActivity.getResources(); in validateViewPlacement() local
237 resources.getDisplayMetrics()); in validateViewPlacement()
307 Resources resources = mActivity.getResources(); in ValidateBoundsListener() local
309 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics())); in ValidateBoundsListener()
311 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics())); in ValidateBoundsListener()
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DScriptC_set_target_api_14.java40 public ScriptC_set_target_api_14(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_14() argument
41 super(rs, resources, id); in ScriptC_set_target_api_14()
DScriptC_set_target_api_11.java40 public ScriptC_set_target_api_11(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_11() argument
41 super(rs, resources, id); in ScriptC_set_target_api_11()
DScriptC_set_target_api_12.java40 public ScriptC_set_target_api_12(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_12() argument
41 super(rs, resources, id); in ScriptC_set_target_api_12()
DScriptC_set_target_api_13.java40 public ScriptC_set_target_api_13(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_13() argument
41 super(rs, resources, id); in ScriptC_set_target_api_13()
DScriptC_set_target_api_15.java40 public ScriptC_set_target_api_15(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_15() argument
41 super(rs, resources, id); in ScriptC_set_target_api_15()
DScriptC_set_target_api_16.java40 public ScriptC_set_target_api_16(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_16() argument
41 super(rs, resources, id); in ScriptC_set_target_api_16()
DScriptC_set_target_api_17.java40 public ScriptC_set_target_api_17(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_17() argument
41 super(rs, resources, id); in ScriptC_set_target_api_17()
DScriptC_set_target_api_18.java40 public ScriptC_set_target_api_18(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_18() argument
41 super(rs, resources, id); in ScriptC_set_target_api_18()
DScriptC_set_target_api_19.java40 public ScriptC_set_target_api_19(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_19() argument
41 super(rs, resources, id); in ScriptC_set_target_api_19()
DScriptC_set_target_api_too_high.java40 public ScriptC_set_target_api_too_high(RenderScript rs, Resources resources, int id) { in ScriptC_set_target_api_too_high() argument
41 super(rs, resources, id); in ScriptC_set_target_api_too_high()
DScriptC_leak.java40 public ScriptC_leak(RenderScript rs, Resources resources, int id) { in ScriptC_leak() argument
41 super(rs, resources, id); in ScriptC_leak()
/cts/hostsidetests/theme/app/src/android/theme/app/
DReferenceViewGroup.java41 Resources resources = context.getResources(); in ReferenceViewGroup() local
42 mWidthDp = resources.getDimensionPixelSize(R.dimen.reference_width); in ReferenceViewGroup()
43 mHeightDp = resources.getDimensionPixelSize(R.dimen.reference_height); in ReferenceViewGroup()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawable_ConstantStateTest.java43 Resources resources = context.getResources(); in testNewDrawable() local
52 assertEquals(null, cs.newDrawable(resources)); in testNewDrawable()
56 assertEquals(null, cs.newDrawable(resources, context.getTheme())); in testNewDrawable()
DColorDrawableTest.java115 Resources resources = InstrumentationRegistry.getTargetContext().getResources(); in testInflate() local
116 final XmlPullParser parser = resources.getXml(R.drawable.colordrawable_test); in testInflate()
130 colorDrawable.inflate(resources, parser, attrs); in testInflate()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DResourceModifier.java54 public ResourceModifier(Resources resources) { in ResourceModifier() argument
55 bitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1); in ResourceModifier()
130 public static void init(Resources resources) { in init() argument
131 sInstance = new ResourceModifier(resources); in init()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWidgetTestUtils.java133 public static Bitmap getUnscaledBitmap(Resources resources, int resId) { in getUnscaledBitmap() argument
136 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledBitmap()
145 public static Bitmap getUnscaledAndDitheredBitmap(Resources resources, in getUnscaledAndDitheredBitmap() argument
151 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledAndDitheredBitmap()
/cts/tests/tests/media/src/android/media/cts/
DMediaMetadataRetrieverTest.java216 Resources resources = getContext().getResources(); in testThumbnail() local
217 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testThumbnail()
297 Resources resources = getContext().getResources(); in testGetFrameAtTime() local
298 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testGetFrameAtTime()
DVideoDecoderPerfTest.java286 private MediaFormat[] getVideoTrackFormats(int... resources) throws Exception { in getVideoTrackFormats() argument
287 MediaFormat[] formats = new MediaFormat[resources.length]; in getVideoTrackFormats()
288 for (int i = 0; i < resources.length; ++i) { in getVideoTrackFormats()
289 formats[i] = MediaUtils.getTrackFormatForResource(mContext, resources[i], "video/"); in getVideoTrackFormats()
294 private void count(int[] resources, int numGoog, int numOther) throws Exception { in count() argument
295 MediaFormat[] formats = getVideoTrackFormats(resources); in count()
300 private void perf(int[] resources, boolean isGoog, int ix) throws Exception { in perf() argument
301 MediaFormat[] formats = getVideoTrackFormats(resources); in perf()
315 for (int i = 0; i < resources.length; ++i) { in perf()
317 decode(decoderName, resources[i], formats[i]); in perf()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java434 final Resources resources = InstrumentationRegistry.getContext().getResources(); in getString() local
435 final int stringId = resources.getIdentifier(id, "string", "android"); in getString()
436 return resources.getString(stringId); in getString()
443 final Resources resources = InstrumentationRegistry.getContext().getResources(); in getString() local
444 final int stringId = resources.getIdentifier(id, "string", "android"); in getString()
445 return resources.getString(stringId, formatArgs); in getString()
/cts/tests/tests/icu/
DAndroid.mk28 LOCAL_JAVA_RESOURCE_DIRS := resources

12