/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | SplitAppTest.java | 80 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/ |
D | BitmapFactory_OptionsTest.java | 62 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/ |
D | TableRowTest.java | 107 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()
|
D | ImageSwitcherTest.java | 96 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/ |
D | ChangeBoundsTest.java | 205 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/ |
D | ScriptC_set_target_api_14.java | 40 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()
|
D | ScriptC_set_target_api_11.java | 40 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()
|
D | ScriptC_set_target_api_12.java | 40 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()
|
D | ScriptC_set_target_api_13.java | 40 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()
|
D | ScriptC_set_target_api_15.java | 40 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()
|
D | ScriptC_set_target_api_16.java | 40 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()
|
D | ScriptC_set_target_api_17.java | 40 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()
|
D | ScriptC_set_target_api_18.java | 40 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()
|
D | ScriptC_set_target_api_19.java | 40 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()
|
D | ScriptC_set_target_api_too_high.java | 40 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()
|
D | ScriptC_leak.java | 40 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/ |
D | ReferenceViewGroup.java | 41 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/ |
D | Drawable_ConstantStateTest.java | 43 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()
|
D | ColorDrawableTest.java | 115 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/ |
D | ResourceModifier.java | 54 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/ |
D | WidgetTestUtils.java | 133 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/ |
D | MediaMetadataRetrieverTest.java | 216 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()
|
D | VideoDecoderPerfTest.java | 286 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/ |
D | UiBot.java | 434 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/ |
D | Android.mk | 28 LOCAL_JAVA_RESOURCE_DIRS := resources
|