Home
last modified time | relevance | path

Searched refs:sourceResId (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java455 private void verifySetTargetDensityInner(Resources res, int sourceResId, int[] densities, in verifySetTargetDensityInner() argument
464 (NinePatchDrawable) res.getDrawable(sourceResId).mutate(); in verifySetTargetDensityInner()
475 (NinePatchDrawable) res.getDrawable(sourceResId).mutate(); in verifySetTargetDensityInner()
542 private void verifyPreloadDensityInner(Resources res, int sourceResId, int[] densities, in verifyPreloadDensityInner() argument
547 densities[0], sourceResId); in verifyPreloadDensityInner()
555 compareOrSave(preloadedDrawable, preloadDensityDpi, sourceResId, goldenResIds[0]); in verifyPreloadDensityInner()
576 compareOrSave(scaledDrawable, scaledDensityDpi, sourceResId, goldenResIds[i]); in verifyPreloadDensityInner()
592 … private static NinePatchDrawable preloadedDrawable(Resources res, int densityDpi, int sourceResId) in preloadedDrawable() argument
595 final XmlResourceParser parser = DrawableTestUtils.getResourceParser(res, sourceResId); in preloadedDrawable()
677 private void compareOrSave(Drawable dr, int densityDpi, int sourceResId, int goldenResId) { in compareOrSave() argument
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java82 private void verifyPreloadDensityInner(Resources res, int sourceResId, int[] densities) in verifyPreloadDensityInner() argument
90 final BitmapDrawable preloadedDrawable = (BitmapDrawable) res.getDrawable(sourceResId); in verifyPreloadDensityInner()
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DPickerProviderMediaGenerator.java324 public void createFile(Context context, int sourceResId, File targetFile) in createFile() argument
326 try (InputStream source = context.getResources().openRawResource(sourceResId); in createFile()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_Images_MediaTest.java385 private File copyResourceToFile(int sourceResId, File destinationDir,
392 .getResources().openRawResource(sourceResId);