/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableRowTest.java | 91 Resources resources = activity.getResources(); in testGetVirtualChildAt() local 92 assertEquals(resources.getString(R.string.table_layout_first), in testGetVirtualChildAt() 94 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 96 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt() 104 assertEquals(resources.getString(R.string.table_layout_long), in testGetVirtualChildAt() 106 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 108 assertEquals(resources.getString(R.string.table_layout_second), in testGetVirtualChildAt() 110 assertEquals(resources.getString(R.string.table_layout_third), in testGetVirtualChildAt() 134 Resources resources = mTargetContext.getResources(); in testGenerateLayoutParams() local 135 XmlResourceParser parser = resources.getLayout(R.layout.table_layout_1); in testGenerateLayoutParams()
|
D | ImageSwitcherTest.java | 67 Resources resources = getContext().getResources(); in testSetImageResource() local 68 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageResource() 76 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageResource() 136 Resources resources = getContext().getResources(); in testSetImageDrawable() local 138 Drawable drawable = resources.getDrawable(R.drawable.scenery); in testSetImageDrawable() 143 drawable = resources.getDrawable(R.drawable.testimage); in testSetImageDrawable()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | GradientDrawableTest.java | 214 Resources resources = mContext.getResources(); in testInflate() local 215 XmlPullParser parser = resources.getXml(R.drawable.gradientdrawable); in testInflate() 227 gradientDrawable.inflate(resources, parser, attrs); in testInflate() 251 Resources resources = mContext.getResources(); in testInflateGradientRadius() local 256 gradientDrawable = (GradientDrawable) resources.getDrawable( in testInflateGradientRadius() 262 gradientDrawable = (GradientDrawable) resources.getDrawable( in testInflateGradientRadius() 293 Resources resources = mContext.getResources(); in testMutate() local 294 GradientDrawable d1 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate() 295 GradientDrawable d2 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate() 296 GradientDrawable d3 = (GradientDrawable) resources.getDrawable(R.drawable.gradientdrawable); in testMutate()
|
D | RotateDrawableTest.java | 47 Resources resources = mContext.getResources(); in setUp() local 48 mRotateDrawable = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in setUp() 211 Resources resources = mContext.getResources(); in testMutate() local 213 RotateDrawable d1 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate() 214 RotateDrawable d2 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate() 215 RotateDrawable d3 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable); in testMutate()
|
D | LevelListDrawableTest.java | 167 Resources resources = getInstrumentation().getTargetContext().getResources(); in testMutate() local 169 (LevelListDrawable) resources.getDrawable(R.drawable.levellistdrawable); in testMutate() 171 (LevelListDrawable) resources.getDrawable(R.drawable.levellistdrawable); in testMutate() 173 (LevelListDrawable) resources.getDrawable(R.drawable.levellistdrawable); in testMutate() 176 d1.addLevel(100, 200, resources.getDrawable(R.drawable.testimage)); in testMutate()
|
D | TransitionDrawableTest.java | 56 Resources resources = getInstrumentation().getTargetContext().getResources(); in testConstructor() local 58 resources.getDrawable(R.drawable.testimage), in testConstructor() 59 resources.getDrawable(R.drawable.levellistdrawable) in testConstructor()
|
D | VectorDrawableTest.java | 269 Resources resources = mContext.getResources(); in testMutate() local 271 VectorDrawable d1 = (VectorDrawable) resources.getDrawable(R.drawable.vector_icon_create); in testMutate() 272 VectorDrawable d2 = (VectorDrawable) resources.getDrawable(R.drawable.vector_icon_create); in testMutate() 273 VectorDrawable d3 = (VectorDrawable) resources.getDrawable(R.drawable.vector_icon_create); in testMutate()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | WidgetTestUtils.java | 118 public static Bitmap getUnscaledBitmap(Resources resources, int resId) { in getUnscaledBitmap() argument 121 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledBitmap() 130 public static Bitmap getUnscaledAndDitheredBitmap(Resources resources, in getUnscaledAndDitheredBitmap() argument 136 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledAndDitheredBitmap()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | BaseRenderScriptComparer.java | 23 public abstract boolean verifySameRowsRS(Resources resources, Allocation ideal, in verifySameRowsRS() argument 27 public boolean verifySameRS(Resources resources, Allocation ideal, in verifySameRS() argument 35 return verifySameRowsRS(resources, ideal, given, offset, stride, width, height, in verifySameRS()
|
D | BitmapComparer.java | 42 public boolean verifySameRS(Resources resources, Allocation ideal, in verifySameRS() argument
|
/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/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
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_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_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_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_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_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_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_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_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() 130 public static void init(Resources resources) { in init() argument 131 sInstance = new ResourceModifier(resources); in init()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | BasePrintTest.java | 167 Resources resources = getInstrumentation().getTargetContext().getResources(); in setUp() local 168 Configuration oldConfiguration = resources.getConfiguration(); in setUp() 171 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in setUp() 174 resources.updateConfiguration(newConfiguration, displayMetrics); in setUp() 202 Resources resources = getInstrumentation().getTargetContext().getResources(); in tearDown() local 203 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); in tearDown() 204 Configuration newConfiguration = new Configuration(resources.getConfiguration()); in tearDown() 207 resources.updateConfiguration(newConfiguration, displayMetrics); in tearDown()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AdaptivePlaybackTest.java | 1382 public CodecFamily(Context context, String mime, String explicitCodecName, int ... resources) { 1385 Media[] mediaList = new Media[resources.length]; 1386 for (int i = 0; i < resources.length; i++) { 1387 Log.v(TAG, "reading media " + resources[i]); 1388 Media media = Media.read(context, resources[i], NUM_FRAMES); 1390 "test stream " + resources[i] + " has " + media.getMime() + 1442 public CodecByName(Context context, String mime, String codecName, int ... resources) { 1443 for (Codec c: new CodecFamily(context, mime, codecName, resources)) { 1454 Context context, String mime, String exceptCodecName, int ... resources) { 1455 for (Codec c: new CodecFamily(context, mime, null, resources)) { [all …]
|