/cts/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/ |
D | OverlayableTest.java | 94 String result = context.getResources().getString(R.string.not_overlayable); in testOverlayPolicyAll() 97 result = context.getResources().getString(R.string.policy_public); in testOverlayPolicyAll() 100 result = context.getResources().getString(R.string.policy_product); in testOverlayPolicyAll() 103 result = context.getResources().getString(R.string.policy_system); in testOverlayPolicyAll() 106 result = context.getResources().getString(R.string.policy_vendor); in testOverlayPolicyAll() 109 result = context.getResources().getString(R.string.policy_signature); in testOverlayPolicyAll() 112 result = context.getResources().getString(R.string.other_policy_public); in testOverlayPolicyAll() 121 String result = context.getResources().getString(R.string.policy_public); in testOverlayCodeNotLoaded() 134 String result = context.getResources().getString(R.string.not_overlayable); in testSameSignatureNoOverlayableSucceeds() 137 result = context.getResources().getString(R.string.policy_public); in testSameSignatureNoOverlayableSucceeds() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 208 public Resources getResources() { in getResources() method in ConfigTest.TotalConfig 275 Resources res = config.getResources(); in testAllEmptyConfigs() 282 res = config.getResources(); in testAllEmptyConfigs() 290 res = config.getResources(); in testAllEmptyConfigs() 297 res = config.getResources(); in testAllEmptyConfigs() 304 res = config.getResources(); in testAllEmptyConfigs() 311 res = config.getResources(); in testAllEmptyConfigs() 318 res = config.getResources(); in testAllEmptyConfigs() 325 res = config.getResources(); in testAllEmptyConfigs() 332 res = config.getResources(); in testAllEmptyConfigs() [all …]
|
D | Resources_ThemeTest.java | 47 mResTheme = getContext().getResources().newTheme(); in setUp() 76 XmlPullParser parser = getContext().getResources().getXml(R.xml.colors); in testObtainStyledAttributes() 98 getContext().getResources().getValue(R.raw.testmp3, value, true); in testResolveAttribute() 104 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations() 117 Resources.Theme other = getContext().getResources().newTheme(); in testGetChangingConfigurations() 126 Resources res = getContext().getResources(); in testRebase() 156 final Resources res = getContext().getResources(); in testGetDrawable() 166 final Resources res = getContext().getResources(); in testGetResources() 168 assertSame(res, theme.getResources()); in testGetResources() 173 final Resources res = getContext().getResources(); in testEmptyDoesNotGetOverriden()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 103 new BitmapDrawable(mContext.getResources()); in testConstructor() 105 new BitmapDrawable(mContext.getResources(), bitmap); in testConstructor() 114 new BitmapDrawable(mContext.getResources(), (String) null); in testConstructor() 118 new BitmapDrawable(mContext.getResources(), (InputStream) null); in testConstructor() 125 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity() 142 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testBitmapDrawableOpticalInset() 159 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap() 171 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias() 185 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap() 199 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testIsFilterBitmap() [all …]
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | DialogPreferenceTest.java | 43 String titleExp = mActivity.getResources().getString(R.string.title_dialog_preference); in testGetTitle() 49 String titleExp = mActivity.getResources().getString( in testGetDialogTitle() 56 Drawable drawableExp = mActivity.getResources().getDrawable(R.drawable.ic_launcher); in testGetDialogIcon() 62 CharSequence dialogMessageExp = mActivity.getResources().getString( in testGetDialogMessage() 69 CharSequence postiveButtonTextExp = mActivity.getResources().getString( in testGetPositiveButtonText() 76 CharSequence negativeButtonTextExp = mActivity.getResources().getString( in testGetNegativeButtonText()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewPaddingTest.java | 70 int insetLeft = mContext.getResources().getDimensionPixelSize(R.dimen.insetLeft); in testPadding() 71 int insetRight = mContext.getResources().getDimensionPixelSize(R.dimen.insetRight); in testPadding() 72 int insetTop = mContext.getResources().getDimensionPixelSize(R.dimen.insetTop); in testPadding() 73 int insetBottom = mContext.getResources().getDimensionPixelSize(R.dimen.insetBottom); in testPadding() 74 int insetStart = mContext.getResources().getDimensionPixelSize(R.dimen.insetStart); in testPadding() 75 int insetEnd = mContext.getResources().getDimensionPixelSize(R.dimen.insetEnd); in testPadding() 76 int insetAll = mContext.getResources().getDimensionPixelSize(R.dimen.insetAll); in testPadding() 78 mContext.getResources().getDimensionPixelSize(R.dimen.insetHorizontal); in testPadding() 79 int insetVertical = mContext.getResources().getDimensionPixelSize(R.dimen.insetVertical); in testPadding()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | BitmapFactoryDecodeStreamTest.java | 37 InputStream inStream = new BufferedInputStream(mContext.getResources().openRawResource( in testNinePatchHeapOverflow() 45 InputStream exploitImage = new BufferedInputStream(mContext.getResources().openRawResource( in testPocCVE_2017_0691() 52 InputStream exploitImage = new BufferedInputStream(mContext.getResources().openRawResource( in test_b65290323()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Utils.java | 35 private static Resources getResources() { in getResources() method in Utils 36 return InstrumentationRegistry.getTargetContext().getResources(); in getResources() 40 return getResources().openRawResource(resId); in obtainInputStream() 44 Resources res = getResources(); in getAsResourceUri() 76 String name = getResources().getResourceEntryName(resId).toString(); in obtainFile()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetDimensionsTest.java | 38 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBePositive() 44 Resources resources = getInstrumentation().getTargetContext().getResources(); in backgroundRadius_shouldBeLessThanMaxRadius() 52 Resources resources = getInstrumentation().getTargetContext().getResources(); in innerRadius_shouldBeFixedComparedToBackgroundRadius()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | RefocusTest.java | 72 Bitmap expectedImage = BitmapFactory.decodeResource(ctx.getResources(), in refocus() 103 context.getResources().getResourcePackageName(resID) + '/' + in getResourceRef() 104 context.getResources().getResourceTypeName(resID) + '/' + in getResourceRef() 105 context.getResources().getResourceEntryName(resID)); in getResourceRef()
|
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySaverTest.java | 153 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions() 164 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions() 180 (getContext().getResources().getConfiguration().uiMode in testAutomotiveProjectionExceptions() 210 (getContext().getResources().getConfiguration().uiMode in testGlobalSettings() 233 (getContext().getResources().getConfiguration().uiMode in testDeviceConfig() 257 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig() 265 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig() 275 (getContext().getResources().getConfiguration().uiMode in testGlobalSettingsOverridesDeviceConfig()
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | ScriptC_set_target_api_too_high.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_too_high() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_too_high()
|
D | ScriptC_set_target_api_14.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_14() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_14()
|
D | ScriptC_set_target_api_11.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_11() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_11()
|
D | ScriptC_set_target_api_13.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_13() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_13()
|
D | ScriptC_set_target_api_16.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_16() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_16()
|
D | ScriptC_set_target_api_19.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_19() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_19()
|
D | ScriptC_set_target_api_12.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_12() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_12()
|
D | ScriptC_set_target_api_15.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_15() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_15()
|
D | ScriptC_set_target_api_17.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_17() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_17()
|
D | ScriptC_set_target_api_18.java | 34 rs.getApplicationContext().getResources(), in ScriptC_set_target_api_18() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_set_target_api_18()
|
D | ScriptC_leak.java | 34 rs.getApplicationContext().getResources(), in ScriptC_leak() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_leak()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | Rgba16fTests.java | 47 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctions() 68 AssetManager assets = getActivity().getResources().getAssets(); in testAlpha() 92 AssetManager assets = getActivity().getResources().getAssets(); in testMasked() 96 Bitmap res = BitmapFactory.decodeResource(getActivity().getResources(), in testMasked() 126 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctionsShader()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ApplyOverrideConfigurationTest.java | 57 final Configuration config = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback() 70 final Configuration newConfig = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback() 99 return (context.getResources().getConfiguration().uiMode in isVrHeadset()
|
/cts/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/ |
D | StaticSharedLib.java | 26 context.getResources().getInteger(android.os.lib.provider.R.integer.version)); in getVersion() 29 return context.getResources() in getRecursiveVersion()
|