/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 189 public Resources getResources() { in getResources() method in ConfigTest.TotalConfig 244 Resources res = config.getResources(); in testAllEmptyConfigs() 251 res = config.getResources(); in testAllEmptyConfigs() 259 res = config.getResources(); in testAllEmptyConfigs() 266 res = config.getResources(); in testAllEmptyConfigs() 273 res = config.getResources(); in testAllEmptyConfigs() 280 res = config.getResources(); in testAllEmptyConfigs() 287 res = config.getResources(); in testAllEmptyConfigs() 294 res = config.getResources(); in testAllEmptyConfigs() 301 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 | 108 new BitmapDrawable(mContext.getResources()); in testConstructor() 110 new BitmapDrawable(mContext.getResources(), bitmap); in testConstructor() 119 new BitmapDrawable(mContext.getResources(), (String) null); in testConstructor() 123 new BitmapDrawable(mContext.getResources(), (InputStream) null); in testConstructor() 130 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity() 147 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap() 159 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias() 173 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap() 187 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testIsFilterBitmap() 204 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetDither() [all …]
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | DialogPreferenceTest.java | 45 String titleExp = mActivity.getResources().getString(R.string.title_dialog_preference); in testGetTitle() 51 String titleExp = mActivity.getResources().getString( in testGetDialogTitle() 58 Drawable drawableExp = mActivity.getResources().getDrawable(R.drawable.ic_launcher); in testGetDialogIcon() 64 CharSequence dialogMessageExp = mActivity.getResources().getString( in testGetDialogMessage() 71 CharSequence postiveButtonTextExp = mActivity.getResources().getString( in testGetPositiveButtonText() 78 CharSequence negativeButtonTextExp = mActivity.getResources().getString( in testGetNegativeButtonText()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewPaddingTest.java | 69 int insetLeft = mContext.getResources().getDimensionPixelSize(R.dimen.insetLeft); in testPadding() 70 int insetRight = mContext.getResources().getDimensionPixelSize(R.dimen.insetRight); in testPadding() 71 int insetTop = mContext.getResources().getDimensionPixelSize(R.dimen.insetTop); in testPadding() 72 int insetBottom = mContext.getResources().getDimensionPixelSize(R.dimen.insetBottom); in testPadding() 73 int insetStart = mContext.getResources().getDimensionPixelSize(R.dimen.insetStart); in testPadding() 74 int insetEnd = mContext.getResources().getDimensionPixelSize(R.dimen.insetEnd); in testPadding() 75 int insetAll = mContext.getResources().getDimensionPixelSize(R.dimen.insetAll); in testPadding() 77 mContext.getResources().getDimensionPixelSize(R.dimen.insetHorizontal); in testPadding() 78 int insetVertical = mContext.getResources().getDimensionPixelSize(R.dimen.insetVertical); in testPadding()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | Rgba16fTests.java | 46 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctions() 67 AssetManager assets = getActivity().getResources().getAssets(); in testAlpha() 91 AssetManager assets = getActivity().getResources().getAssets(); in testMasked() 95 Bitmap res = BitmapFactory.decodeResource(getActivity().getResources(), in testMasked() 125 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctionsShader() 146 AssetManager assets = getActivity().getResources().getAssets(); in testMirroredTransferFunctions()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | RefocusTest.java | 76 …Bitmap expectedImage = BitmapFactory.decodeResource(ctx.getResources(), R.drawable.expected_output… in refocus() 104 context.getResources().getResourcePackageName(resID) + '/' + in getResourceRef() 105 context.getResources().getResourceTypeName(resID) + '/' + in getResourceRef() 106 context.getResources().getResourceEntryName(resID)); in getResourceRef()
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
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_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_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_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_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_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_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_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_leak.java | 34 rs.getApplicationContext().getResources(), in ScriptC_leak() 35 rs.getApplicationContext().getResources().getIdentifier( in ScriptC_leak()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioInputDeviceNotificationsActivity.java | 50 mContext.getResources().getString(R.string.audio_dev_notification_connectMsg)); in onAudioDevicesAdded() 57 mContext.getResources().getString( in onAudioDevicesRemoved() 78 ((TextView)findViewById(R.id.info_text)).setText(mContext.getResources().getString( in onCreate()
|
D | AudioOutputDeviceNotificationsActivity.java | 50 mContext.getResources().getString(R.string.audio_dev_notification_connectMsg)); in onAudioDevicesAdded() 57 mContext.getResources().getString( in onAudioDevicesRemoved() 78 ((TextView)findViewById(R.id.info_text)).setText(mContext.getResources().getString( in onCreate()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | SplitAppTest.java | 80 final Resources resources = context.getResources(); in shouldLoadDefault() 94 final Resources resources = context.getResources(); in shouldLoadPolishLocale() 109 final Resources resources = context.getResources(); in shouldLoadFeatureADefault() 125 final Resources resources = context.getResources(); in shouldLoadFeatureAPolishLocale() 153 final Resources resources = context.getResources(); in shouldLoadFeatureBDefault() 172 final Resources resources = context.getResources(); in shouldLoadFeatureBPolishLocale() 202 final Resources resources = context.getResources(); in shouldLoadFeatureCDefault() 218 final Resources resources = context.getResources(); in shouldLoadFeatureCPolishLocale() 253 final Resources resources = context.getResources(); in assertResourcesDoNotExist()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TwoLineListItemTest.java | 60 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructor() 79 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext2() 85 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext3() 94 Resources res = mActivity.getResources(); in testGetTexts()
|
D | ImageSwitcherTest.java | 79 XmlPullParser parser = mActivity.getResources().getXml(R.layout.imageswitcher_layout); in testConstructor() 96 Resources resources = mActivity.getResources(); in testSetImageResource() 138 mActivity.getResources(), R.raw.testimage, in testSetImageURI() 147 mActivity.getResources(), R.raw.scenery, in testSetImageURI() 166 Resources resources = mActivity.getResources(); in testSetImageDrawable() 182 try (InputStream source = mActivity.getResources().openRawResource(resid); in createSampleImage()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
D | CardPresenter.java | 41 sDefaultBackgroundColor = parent.getResources().getColor(R.color.default_background, null); in onCreateViewHolder() 43 parent.getResources().getColor(R.color.selected_background, null); in onCreateViewHolder() 44 mDefaultCardImage = parent.getResources().getDrawable(R.drawable.movie, null); in onCreateViewHolder()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/ |
D | PhaseStartFragment.java | 63 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.ACCURACY.… in onCreateView() 67 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.ROBUSTNES… in onCreateView() 71 …getActivity().setTitle(getResources().getStringArray(R.array.phase)[TestActivity.CTSTest.COMPLEX_M… in onCreateView()
|