/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ImageDecoderTest.java | 79 public final int resId; field in ImageDecoderTest.Record 85 Record(int resId, int width, int height, String mimeType, ColorSpace colorSpace) { in Record() argument 86 this.resId = resId; in Record() 109 private byte[] getAsByteArray(int resId, int offset, int extra) { in getAsByteArray() argument 111 writeToStream(output, resId, offset, extra); in getAsByteArray() 115 private void writeToStream(OutputStream output, int resId, int offset, int extra) { in writeToStream() argument 116 InputStream input = mRes.openRawResource(resId); in writeToStream() 138 private byte[] getAsByteArray(int resId) { in getAsByteArray() argument 139 return getAsByteArray(resId, 0, 0); in getAsByteArray() 142 private ByteBuffer getAsByteBufferWrap(int resId) { in getAsByteBufferWrap() argument [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | BitmapFactorySecurityTests.java | 35 private FileDescriptor getResource(int resId) { in getResource() argument 37 InputStream is = mContext.getResources().openRawResource(resId); in getResource() 39 File file = File.createTempFile("BitmapFactorySecurityFile" + resId, "img"); in getResource() 53 fail("Could not get resource " + resId + "! " + e); in getResource()
|
D | SkiaICORecursiveDecodingTest.java | 45 public void doSkiaIcoRecursiveDecodingTest(int resId) { in doSkiaIcoRecursiveDecodingTest() argument 46 InputStream exploitImage = mContext.getResources().openRawResource(resId); in doSkiaIcoRecursiveDecodingTest()
|
D | CertBlacklistTest.java | 85 private X509Certificate loadCertificate(int resId) throws Exception { in loadCertificate() argument 86 return loadCertificates(resId)[0]; in loadCertificate() 89 private X509Certificate[] loadCertificates(int resId) throws Exception { in loadCertificates() argument 91 try (InputStream is = getContext().getResources().openRawResource(resId)) { in loadCertificates()
|
D | Movie33897722.java | 60 private void test_movie(int resId, int screenWidth, int screenHeight, in test_movie() argument 64 InputStream exploitImage = mContext.getResources().openRawResource(resId); in test_movie()
|
D | PackageSignatureTest.java | 129 private Signature getSignature(int resId) throws NotFoundException, IOException { in getSignature() argument 130 InputStream input = mContext.getResources().openRawResource(resId); in getSignature()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | FileCopyHelper.java | 62 public String copy(int resId, String fileName) throws IOException { in copy() argument 63 InputStream source = mContext.getResources().openRawResource(resId); in copy() 70 public void copyToExternalStorage(int resId, File path) throws IOException { in copyToExternalStorage() argument 71 InputStream source = mContext.getResources().openRawResource(resId); in copyToExternalStorage()
|
D | WidgetTestUtils.java | 133 public static Bitmap getUnscaledBitmap(Resources resources, int resId) { in getUnscaledBitmap() argument 136 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledBitmap() 146 int resId, Bitmap.Config config) { in getUnscaledAndDitheredBitmap() argument 151 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledAndDitheredBitmap()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/ |
D | IGnssTestStateContainer.java | 37 String getString(int resId); in getString() argument 44 String getString(int resId, Object... params); in getString() argument
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyFactoryTest.java | 336 int resId; in testGeneratePrivateRejectsPKCS8EncodedKeySpec() local 338 resId = R.raw.ec_key1_pkcs8; in testGeneratePrivateRejectsPKCS8EncodedKeySpec() 340 resId = R.raw.rsa_key2_pkcs8; in testGeneratePrivateRejectsPKCS8EncodedKeySpec() 346 try (InputStream in = getContext().getResources().openRawResource(resId)) { in testGeneratePrivateRejectsPKCS8EncodedKeySpec() 364 int resId; in testGeneratePublicRejectsX509EncodedKeySpec() local 366 resId = R.raw.ec_key2_cert; in testGeneratePublicRejectsX509EncodedKeySpec() 368 resId = R.raw.rsa_key1_cert; in testGeneratePublicRejectsX509EncodedKeySpec() 374 try (InputStream in = getContext().getResources().openRawResource(resId)) { in testGeneratePublicRejectsX509EncodedKeySpec() 392 int resId; in testGeneratePrivateRejectsTransparentKeySpec() local 395 resId = R.raw.ec_key2_pkcs8; in testGeneratePrivateRejectsTransparentKeySpec() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/ |
D | ISensorTestStateContainer.java | 42 String getString(int resId); in getString() argument 49 String getString(int resId, Object ... params); in getString() argument
|
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/ |
D | DirectoryProvider.java | 229 final int resId; in openAssetFile() local 232 resId = isManagedProfile() ? 0 : R.raw.primary_thumbnail; in openAssetFile() 235 resId = isManagedProfile() ? 0 : R.raw.primary_photo; in openAssetFile() 238 resId = isManagedProfile() ? R.raw.managed_thumbnail : 0; in openAssetFile() 241 resId = isManagedProfile() ? R.raw.managed_photo : 0; in openAssetFile() 244 resId = 0; in openAssetFile() 248 return resId == 0 ? null : getContext().getResources().openRawResourceFd(resId); in openAssetFile()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaMetadataRetrieverTest.java | 237 private void testThumbnail(int resId) { in testThumbnail() argument 238 if (!MediaUtils.hasCodecForResourceAndDomain(getContext(), resId, "video/")) { in testThumbnail() 245 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testThumbnail() 380 int resId = R.raw.binary_counter_320x240_30fps_600frames; in testGetFrameAt() local 381 if (!MediaUtils.hasCodecForResourceAndDomain(getContext(), resId, "video/") in testGetFrameAt() 389 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testGetFrameAt() 424 int resId = R.raw.binary_counter_320x240_30fps_600frames; in testGetScaledFrameAtTime() local 425 if (!MediaUtils.hasCodecForResourceAndDomain(getContext(), resId, "video/") in testGetScaledFrameAtTime() 433 AssetFileDescriptor afd = resources.openRawResourceFd(resId); in testGetScaledFrameAtTime() 571 resId = R.raw.binary_counter_320x240_720x240_30fps_600frames; in testGetScaledFrameAtTime() [all …]
|
D | DecoderConformanceTest.java | 87 int resId = mResources.getIdentifier(fileName, "raw", mContext.getPackageName()); in readResourceLines() local 88 InputStream is = mContext.getResources().openRawResource(resId); in readResourceLines() 135 int resId = mResources.getIdentifier(vectorName, "raw", mContext.getPackageName()); in decodeTestVector() local 136 AssetFileDescriptor testFd = mResources.openRawResourceFd(resId); in decodeTestVector()
|
D | FaceView.java | 46 public FaceView(Context context, int resId) { in FaceView() argument 63 mSourceImage = BitmapFactory.decodeResource(getResources(), resId, bfo); in FaceView()
|
/cts/tests/app/src/android/app/cts/ |
D | TaskDescriptionTest.java | 77 private void assertTaskDescription(Activity activity, String label, int resId) { in assertTaskDescription() argument 85 if (resId == TEST_NO_DATA) { in assertTaskDescription() 92 assertEquals(resId, td.getIconResource()); in assertTaskDescription()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodProvisioningTestActivity.java | 111 private Uri getResourceUri(int resId) { in getResourceUri() argument 114 .appendPath(getResources().getResourceTypeName(resId)) in getResourceUri() 115 .appendPath(getResources().getResourceEntryName(resId)) in getResourceUri()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | VectorDrawableSizeTest.java | 52 public VectorDrawableSizeTest(String name, int resId, int dp) throws Throwable { in VectorDrawableSizeTest() argument 53 mResId = resId; in VectorDrawableSizeTest()
|
D | AnimatedImageDrawableTest.java | 78 private Uri getAsResourceUri(int resId) { in getAsResourceUri() argument 81 .authority(mRes.getResourcePackageName(resId)) in getAsResourceUri() 82 .appendPath(mRes.getResourceTypeName(resId)) in getAsResourceUri() 83 .appendPath(mRes.getResourceEntryName(resId)) in getAsResourceUri() 117 private AnimatedImageDrawable createFromImageDecoder(int resId) { in createFromImageDecoder() argument 120 uri = getAsResourceUri(resId); in createFromImageDecoder() 567 private AnimatedImageDrawable parseXml(int resId) throws XmlPullParserException, IOException { in parseXml() argument 568 XmlPullParser parser = mRes.getXml(resId); in parseXml()
|
D | AnimatedVectorDrawableParameterizedTest.java | 206 int resId = R.drawable.avd_single_frame; in testSingleFrameAnimation() local 208 (AnimatedVectorDrawable) mResources.getDrawable(resId); in testSingleFrameAnimation() 232 int resId = R.drawable.avd_empty_animator; in testEmptyAnimatorSet() local 235 (AnimatedVectorDrawable) mResources.getDrawable(resId); in testEmptyAnimatorSet()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityActivityTestCase.java | 82 public String getString(int resId) { in getString() argument 83 return getInstrumentation().getContext().getString(resId); in getString()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundPlayerObject.java | 112 public void setSoundWithResId(Context context, int resId) { in setSoundWithResId() argument 116 mResId = resId; in setSoundWithResId() 123 Uri.parse("android.resource://com.android.cts.verifier/" + resId)); in setSoundWithResId()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTestCase.java | 138 private int getNormalizedDimensionResource(int resId) { in getNormalizedDimensionResource() argument 140 .getDimensionPixelSize(resId); in getNormalizedDimensionResource() 143 private int getIntResource(int resId) { in getIntResource() argument 144 return getInstrumentation().getTargetContext().getResources().getInteger(resId); in getIntResource()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/ |
D | ResourceSourceTest.java | 71 private Set<X509Certificate> loadCertificates(int resId) throws Exception { in loadCertificates() argument 76 is = getContext().getResources().openRawResource(resId); in loadCertificates()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ActionModeTest.java | 168 public void setTitle(int resId) {} in setTitle() argument 174 public void setSubtitle(int resId) {} in setSubtitle() argument
|