Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/
DSearchIndexableResourceTest.java38 SearchIndexableResource resource = new SearchIndexableResource(RANK, XML_RES_ID, CLASS_NAME, in testConstructor() local
41 assertEquals(RANK, resource.rank); in testConstructor()
42 assertEquals(XML_RES_ID, resource.xmlResId); in testConstructor()
43 assertEquals(CLASS_NAME, resource.className); in testConstructor()
44 assertEquals(ICON_RES_ID, resource.iconResId); in testConstructor()
/cts/tests/tests/security/src/android/security/cts/
DConscryptIntermediateVerificationTest.java37 private X509Certificate[] loadCertificates(int resource) throws Exception { in loadCertificates() argument
43 is = getContext().getResources().openRawResource(resource); in loadCertificates()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java470 private static boolean hasCodecsForResourceCombo(final String resource, int track, in hasCodecsForResourceCombo() argument
477 ex.setDataSource(resource); in hasCodecsForResourceCombo()
540 public static boolean hasCodecsForResource(final String resource) { in hasCodecsForResource() argument
541 return hasCodecsForResourceCombo(resource, ALL_AV_TRACKS, null /* mimePrefix */); in hasCodecsForResource()
544 public static boolean checkCodecsForResource(final String resource) { in checkCodecsForResource() argument
545 return check(hasCodecsForResource(resource), "no decoder found"); in checkCodecsForResource()
559 public static boolean hasCodecForResource(final String resource, int track) { in hasCodecForResource() argument
560 return hasCodecsForResourceCombo(resource, track, null /* mimePrefix */); in hasCodecForResource()
563 public static boolean checkCodecForResource(final String resource, int track) { in checkCodecForResource() argument
564 return check(hasCodecForResource(resource, track), "no decoder found"); in checkCodecForResource()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackages.java458 public Package install(UserReference user, AndroidResource resource) { in install() argument
460 resource.mName, /* defType= */ null, /* defPackage= */ null); in install()
466 throw new NeneException("Error reading resource " + resource, e); in install()
480 public Package install(UserReference user, JavaResource resource) { in install() argument
482 Packages.class.getClassLoader().getResourceAsStream(resource.mName)) { in install()
485 throw new NeneException("Error reading java resource " + resource, e); in install()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/
DAndroid.bp38 // Although feature splits use unique resource package names, they must all
65 // Although feature splits use unique resource package names, they must all
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildUtilBase.java83 URL resource = getClass().getClassLoader().getResource(searchPath); in parseTestMethod() local
84 if (resource == null) { in parseTestMethod()
87 content = readURL(resource); in parseTestMethod()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
DCardPresenter.java26 import com.bumptech.glide.load.resource.drawable.GlideDrawable;
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java951 private String mountObb(final int resource, final File file, int expectedState) { in mountObb() argument
952 copyRawToFile(resource, file); in mountObb()
970 private ObbObserver mountObbWithoutWait(final int resource, final File file) { in mountObbWithoutWait() argument
971 copyRawToFile(resource, file); in mountObbWithoutWait()
/cts/tests/tests/widget/src/android/widget/cts/
DListViewTest.java919 public MockAdapter(Context context, int resource, List<T> objects) { in MockAdapter() argument
920 super(context, resource, objects); in MockAdapter()
1491 public StableArrayAdapter(Context context, int resource, List<T> objects) { in StableArrayAdapter() argument
1492 super(context, resource, objects); in StableArrayAdapter()
1556 public PositionArrayAdapter(Context context, int resource, List<T> objects) { in PositionArrayAdapter() argument
1557 super(context, resource, objects); in PositionArrayAdapter()
DAbsListViewTest.java892 public PositionArrayAdapter(Context context, int resource, List<T> objects) { in PositionArrayAdapter() argument
893 super(context, resource, objects); in PositionArrayAdapter()
/cts/tests/tests/media/src/android/media/cts/
DVideoDecoderPerfTest.java90 private void decode(String name, final String resource, MediaFormat format) throws Exception { in decode() argument
109 measuredFps[i] = doDecode(name, resource, width, height, s, i, maxTimeMs); in decode()
DImageReaderDecoderTest.java122 public MediaAsset(String resource, int width, int height) { in MediaAsset() argument
123 mResource = resource; in MediaAsset()
DMediaCodecBlockModelTest.java970 private MediaExtractor getMediaExtractorForMimeType(final String resource, in getMediaExtractorForMimeType() argument
973 try (AssetFileDescriptor afd = getAssetFileDescriptorFor(resource)) { in getMediaExtractorForMimeType()
DVideoCodecTestBase.java750 private InputStream OpenFileOrResource(String filename, final String resource) in OpenFileOrResource() argument
756 Preconditions.assertTestFileExists(mInpPrefix + resource); in OpenFileOrResource()
757 return new FileInputStream(mInpPrefix + resource); in OpenFileOrResource()
DMediaCodecTest.java1909 private MediaExtractor getMediaExtractorForMimeType(final String resource, in getMediaExtractorForMimeType() argument
1911 Preconditions.assertTestFileExists(mInpPrefix + resource); in getMediaExtractorForMimeType()
1913 File inpFile = new File(mInpPrefix + resource); in getMediaExtractorForMimeType()
DMediaPlayerTest.java2144 String resource, int numInternalTracks, String[] subtitleResources, in testTimedText() argument
2146 if (!checkLoadResource(resource)) { in testTimedText()