/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 185 public Resources getResources() { in getResources() method in ConfigTest.TotalConfig 240 Resources res = config.getResources(); in testAllEmptyConfigs() 247 res = config.getResources(); in testAllEmptyConfigs() 255 res = config.getResources(); in testAllEmptyConfigs() 262 res = config.getResources(); in testAllEmptyConfigs() 269 res = config.getResources(); in testAllEmptyConfigs() 276 res = config.getResources(); in testAllEmptyConfigs() 283 res = config.getResources(); in testAllEmptyConfigs() 290 res = config.getResources(); in testAllEmptyConfigs() 297 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() 88 getContext().getResources().getValue(R.raw.testmp3, value, true); in testResolveAttribute() 94 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations() 107 Resources.Theme other = getContext().getResources().newTheme(); in testGetChangingConfigurations() 116 Resources res = getContext().getResources(); in testRebase() 146 final Resources res = getContext().getResources(); in testGetDrawable() 156 final Resources res = getContext().getResources(); in testGetResources() 158 assertSame(res, theme.getResources()); in testGetResources()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 91 new BitmapDrawable(mContext.getResources()); in testConstructor() 93 new BitmapDrawable(mContext.getResources(), bitmap); in testConstructor() 102 new BitmapDrawable(mContext.getResources(), (String) null); in testConstructor() 106 new BitmapDrawable(mContext.getResources(), (InputStream) null); in testConstructor() 112 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity() 128 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap() 139 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias() 152 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap() 165 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testIsFilterBitmap() 181 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetDither() [all …]
|
D | PaintDrawableTest.java | 117 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), parser, attr)); in testInflateTag() 124 assertFalse(new MyPaintDrawable().inflateTag("", getContext().getResources(), parser, in testInflateTag() 130 new MyPaintDrawable().inflateTag(null, getContext().getResources(), parser, attr); in testInflateTag() 151 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), null, attr)); in testInflateTag() 155 new MyPaintDrawable().inflateTag("padding", getContext().getResources(), parser, null); in testInflateTag() 167 assertTrue(paintDrawable.inflateTag("corners", getContext().getResources(), parser, attr)); in testInflateTag() 172 return getContext().getResources().getXml(R.drawable.paintdrawable_attr); in getParser()
|
D | Drawable_ConstantStateTest.java | 33 assertEquals(null, cs.newDrawable(mContext.getResources())); in testNewDrawable() 37 assertEquals(null, cs.newDrawable(mContext.getResources(), mContext.getTheme())); in testNewDrawable()
|
/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/graphics/src/android/graphics/cts/ |
D | MovieTest.java | 44 mMovie = getActivity().getResources().getMovie(MOVIE); in setUp() 80 source = getActivity().getResources().openRawResource(MOVIE); in writeSampleImage() 113 InputStream is = getActivity().getResources().openRawResource(MOVIE); in testDecodeByteArray() 124 InputStream is = getActivity().getResources() in testDecodeStream() 145 int expectedHeight = getActivity().getResources().getDrawable(MOVIE).getIntrinsicHeight(); in testGetMovieProperties() 149 int expectedWidth = getActivity().getResources().getDrawable(MOVIE).getIntrinsicWidth(); in testGetMovieProperties()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AutoTextTest.java | 34 Configuration config = getContext().getResources().getConfiguration(); in testGet() 37 getContext().getResources().updateConfiguration(config, null); in testGet() 80 Configuration config = getContext().getResources().getConfiguration(); in testGetSize() 83 getContext().getResources().updateConfiguration(config, null); in testGetSize()
|
/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_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_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_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_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_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/tests/tests/widget/src/android/widget/cts/ |
D | ImageSwitcherTest.java | 50 XmlPullParser parser = getContext().getResources().getXml(R.layout.imageswitcher_test); in testConstructor() 67 Resources resources = getContext().getResources(); in testSetImageResource() 109 getContext().getResources(), R.raw.testimage, in testSetImageURI() 118 getContext().getResources(), R.raw.scenery, in testSetImageURI() 136 Resources resources = getContext().getResources(); in testSetImageDrawable() 156 source = getContext().getResources().openRawResource(resid); in createSampleImage()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | DrawableMarginSpanTest.java | 35 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); in testConstructor() 43 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery); in testGetLeadingMargin() 55 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery); in testDrawLeadingMargin() 97 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery); in testChooseHeight()
|
/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()
|