/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | SplitAppTest.java | 86 final Resources resources = context.getResources(); in shouldLoadDefault() local 87 assertThat(resources, notNullValue()); in shouldLoadDefault() 89 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadDefault() 100 final Resources resources = context.getResources(); in shouldLoadPolishLocale() local 101 assertThat(resources, notNullValue()); in shouldLoadPolishLocale() 103 assertThat(resources.getString(R.string.base_string), equalTo("Base String Polish")); in shouldLoadPolishLocale() 115 final Resources resources = context.getResources(); in shouldLoadFeatureADefault() local 116 assertThat(resources, notNullValue()); in shouldLoadFeatureADefault() 118 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default")); in shouldLoadFeatureADefault() 120 int resourceId = resources.getIdentifier(FEATURE_A_STRING, null, null); in shouldLoadFeatureADefault() [all …]
|
/cts/tools/release-parser/tests/ |
D | generate_golden_sample_files.sh | 17 …release-parser.jar com.android.cts.releaseparser.ApkParser -i resources/$file -of resources/$file.… 23 …elease-parser.jar com.android.cts.releaseparser.SoParser -i resources/$file -pi -of resources/$fil… 29 …/release-parser.jar com.android.cts.releaseparser.SoParser -i resources/$file -of resources/$file.… 35 …elease-parser.jar com.android.cts.releaseparser.VdexParser -i resources/$file -of resources/$file.… 41 …elease-parser.jar com.android.cts.releaseparser.OdexParser -i resources/$file -of resources/$file.… 47 …release-parser.jar com.android.cts.releaseparser.OatParser -i resources/$file -of resources/$file.… 53 …release-parser.jar com.android.cts.releaseparser.ArtParser -i resources/$file -of resources/$file.… 59 …release-parser.jar com.android.cts.releaseparser.XmlParser -i resources/$file -of resources/$file.… 65 …e-parser.jar com.android.cts.releaseparser.BuildPropParser -i resources/$file -of resources/$file.…
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactory_OptionsTest.java | 65 Resources resources = instrumentation.getTargetContext().getResources(); in testExtractMetaData() local 68 AssetManager assets = resources.getAssets(); in testExtractMetaData() 81 b = BitmapFactory.decodeResource(resources, R.drawable.alpha, options); in testExtractMetaData() 87 b = BitmapFactory.decodeResource(resources, R.drawable.icon_green, options); in testExtractMetaData() 95 b = BitmapFactory.decodeResource(resources, R.drawable.bitmap_indexed, options); in testExtractMetaData() 105 b = BitmapFactory.decodeResource(resources, R.drawable.bitmap_indexed, options); in testExtractMetaData()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 224 Resources resources = mActivity.getResources(); in waitForSizeIsMiddle() local 226 (SMALL_SQUARE_SIZE_DP + LARGE_SQUARE_SIZE_DP) / 2, resources.getDisplayMetrics()); in waitForSizeIsMiddle() 237 Resources resources = mActivity.getResources(); in waitForClipIsMiddle() local 239 (SMALL_SQUARE_SIZE_DP + LARGE_SQUARE_SIZE_DP) / 2, resources.getDisplayMetrics()); in waitForClipIsMiddle() 252 Resources resources = mActivity.getResources(); in isRestartingAnimation() local 254 SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 259 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 264 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics()); in isRestartingAnimation() 274 Resources resources = mActivity.getResources(); in isRestartingClip() local 276 SMALL_OFFSET_DP, resources.getDisplayMetrics()); in isRestartingClip() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableRowTest.java | 108 Resources resources = mActivity.getResources(); in testGetVirtualChildAt() local 109 assertEquals(resources.getString(R.string.table_layout_first), in testGetVirtualChildAt() 111 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 113 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt() 121 assertEquals(resources.getString(R.string.table_layout_long), in testGetVirtualChildAt() 123 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 125 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 127 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt() 152 Resources resources = mActivity.getResources(); in testGenerateLayoutParamsFromAttributeSet() local 153 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParamsFromAttributeSet()
|
D | ImageSwitcherTest.java | 97 Resources resources = mActivity.getResources(); in testSetImageResource() local 98 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageResource() 106 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageResource() 167 Resources resources = mActivity.getResources(); in testSetImageDrawable() local 169 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageDrawable() 174 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageDrawable()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | Drawable_ConstantStateTest.java | 44 Resources resources = context.getResources(); in testNewDrawable() local 53 assertEquals(null, cs.newDrawable(resources)); in testNewDrawable() 57 assertEquals(null, cs.newDrawable(resources, context.getTheme())); in testNewDrawable()
|
/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/theme/src/android/theme/cts/ |
D | ThemeRebaseTest.java | 64 Resources resources = mContext.getResources(); in after() local 65 resources.updateConfiguration(mInitialConfig, resources.getDisplayMetrics()); in after()
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
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_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_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_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_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_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_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_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_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_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_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/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() 131 public static void init(Resources resources) { in init() argument 132 sInstance = new ResourceModifier(resources); in init()
|
D | DrawActivity.kt | 93 if (resources.configuration.uiMode != mode) { in hashCode() 94 val newConfig = Configuration(resources.configuration) in hashCode() 96 resources.updateConfiguration(newConfig, resources.displayMetrics) in hashCode()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.kt | 92 if (resources.configuration.uiMode != mode) { in hashCode() 93 val newConfig = Configuration(resources.configuration) in hashCode() 95 resources.updateConfiguration(newConfig, resources.displayMetrics) in hashCode()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | AttachedContextActivity.java | 51 final Resources resources = context.getResources(); in applyLocale() local 52 final Configuration configuration = resources.getConfiguration(); in applyLocale()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaMetadataRetrieverTest.java | 255 Resources resources = getContext().getResources(); in testThumbnail() local 256 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testThumbnail() 433 Resources resources = getContext().getResources(); in testGetFrameAt() local 434 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testGetFrameAt() 461 Resources resources = getContext().getResources(); in testGetFrameAtEditList() local 462 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testGetFrameAtEditList() 503 Resources resources = getContext().getResources(); in testGetScaledFrameAtTime() local 504 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testGetScaledFrameAtTime() 643 afd = resources.openRawResourceFd(resId); in testGetScaledFrameAtTime() 712 Resources resources = getContext().getResources(); in testGetImage() local [all …]
|