/cts/tests/tests/provider/src/android/provider/cts/ |
D | SearchIndexableResourceTest.java | 38 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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | DevicePolicyDrawableResources.java | 54 public void set(String id, String style, int resource) { in set() argument 55 …t(new DevicePolicyDrawableResource(TestApis.context().instrumentedContext(), id, style, resource)); in set()
|
D | DevicePolicyStringResources.java | 55 public void set(String id, int resource) { in set() argument 56 set(new DevicePolicyStringResource(TestApis.context().instrumentedContext(), id, resource)); in set()
|
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/helpers/ |
D | MediaControlsHelper.java | 100 public static UiObject2 findChildObject(UiObject2 container, String resource) { in findChildObject() argument 101 return container.wait(Until.findObject(By.res(PKG, resource)), WAIT_TIME_MILLIS); in findChildObject()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DevicePolicyResourcesTest.java | 498 DevicePolicyDrawableResource resource = new DevicePolicyDrawableResource( in getDrawableId_returnsCorrectValue() local 501 assertThat(resource.getDrawableId()).isEqualTo(UPDATABLE_DRAWABLE_ID_1); in getDrawableId_returnsCorrectValue() 508 DevicePolicyDrawableResource resource = new DevicePolicyDrawableResource( in getDrawableStyle_returnsCorrectValue() local 511 assertThat(resource.getDrawableStyle()).isEqualTo(DRAWABLE_STYLE_1); in getDrawableStyle_returnsCorrectValue() 518 DevicePolicyDrawableResource resource = new DevicePolicyDrawableResource( in getDrawableStyle_sourceNotSpecified_returnsUndefined() local 521 assertThat(resource.getDrawableSource()).isEqualTo( in getDrawableStyle_sourceNotSpecified_returnsUndefined() 529 DevicePolicyDrawableResource resource = new DevicePolicyDrawableResource( in getDrawableStyle_sourceSpecified_returnsCorrectValue() local 533 assertThat(resource.getDrawableSource()).isEqualTo(DRAWABLE_SOURCE_1); in getDrawableStyle_sourceSpecified_returnsCorrectValue() 540 DevicePolicyDrawableResource resource = new DevicePolicyDrawableResource( in devicePolicyDrawableResource_getResourceIdInCallingPackage_returnsCorrectValue() local 543 assertThat(resource.getResourceIdInCallingPackage()).isEqualTo(R.drawable.test_drawable_1); in devicePolicyDrawableResource_getResourceIdInCallingPackage_returnsCorrectValue() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ConscryptIntermediateVerificationTest.java | 43 private X509Certificate[] loadCertificates(int resource) throws Exception { in loadCertificates() argument 49 is = getContext().getResources().openRawResource(resource); in loadCertificates()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 495 private static boolean hasCodecsForResourceCombo(final String resource, int track, in hasCodecsForResourceCombo() argument 502 ex.setDataSource(resource); in hasCodecsForResourceCombo() 565 public static boolean hasCodecsForResource(final String resource) { in hasCodecsForResource() argument 566 return hasCodecsForResourceCombo(resource, ALL_AV_TRACKS, null /* mimePrefix */); in hasCodecsForResource() 569 public static boolean checkCodecsForResource(final String resource) { in checkCodecsForResource() argument 570 return check(hasCodecsForResource(resource), "no decoder found"); in checkCodecsForResource() 584 public static boolean hasCodecForResource(final String resource, int track) { in hasCodecForResource() argument 585 return hasCodecsForResourceCombo(resource, track, null /* mimePrefix */); in hasCodecForResource() 588 public static boolean checkCodecForResource(final String resource, int track) { in checkCodecForResource() argument 589 return check(hasCodecForResource(resource, track), "no decoder found"); in checkCodecForResource() [all …]
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | ImageReaderDecoderTest.java | 181 public MediaAsset(String resource, int width, int height, boolean isSwirl, in MediaAsset() argument 183 mResource = resource; in MediaAsset() 190 public MediaAsset(String resource, int width, int height) { in MediaAsset() argument 191 this(resource, width, height, true, 8); in MediaAsset() 194 public MediaAsset(String resource, int width, int height, boolean isSwirl) { in MediaAsset() argument 195 this(resource, width, height, isSwirl, 8); in MediaAsset() 198 public MediaAsset(String resource, int width, int height, int bitDepth) { in MediaAsset() argument 199 this(resource, width, height, true, bitDepth); in MediaAsset()
|
D | VideoDecoderPerfTest.java | 190 private void decode(String name, final String resource, MediaFormat format) throws Exception { in decode() argument 209 measuredFps[i] = doDecode(name, resource, width, height, s, i, maxTimeMs); in decode()
|
D | DecoderTest.java | 1478 protected static List<String> codecsFor(String resource) throws IOException { 1479 return codecsFor(resource, CODEC_ALL); 1482 protected static List<String> codecsFor(String resource, int codecSupportMode) 1490 AssetFileDescriptor fd = getAssetFileDescriptorFor(resource); 3209 private void testFlush(final String resource) throws Exception { 3216 extractor.setDataSource(mInpPrefix + resource);
|
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/ |
D | MediaDrmCodecBlockModelTest.java | 149 private static MediaExtractor getMediaExtractorForMimeType(final String resource, in getMediaExtractorForMimeType() argument 152 try (AssetFileDescriptor afd = getAssetFileDescriptorFor(resource)) { in getMediaExtractorForMimeType()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/ |
D | Android.bp | 39 // Although feature splits use unique resource package names, they must all 66 // Although feature splits use unique resource package names, they must all
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | BuildUtilBase.java | 83 URL resource = getClass().getClassLoader().getResource(searchPath); in parseTestMethod() local 84 if (resource == null) { in parseTestMethod() 87 content = readURL(resource); in parseTestMethod()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Packages.java | 544 public Package install(UserReference user, AndroidResource resource) { in install() argument 546 resource.mName, /* defType= */ null, /* defPackage= */ null); in install() 552 throw new NeneException("Error reading resource " + resource, e); in install() 566 public Package install(UserReference user, JavaResource resource) { in install() argument 568 Packages.class.getClassLoader().getResourceAsStream(resource.mName)) { in install() 571 throw new NeneException("Error reading java resource " + resource, e); in install()
|
/cts/hostsidetests/compilation/src/android/compilation/cts/ |
D | Utils.java | 148 public void pushFromResource(String resource, String remotePath) throws Exception { in pushFromResource() argument 149 File tempFile = copyResourceToFile(resource, File.createTempFile("temp", ".tmp")); in pushFromResource()
|
/cts/hostsidetests/appsecurity/test-apps/EscalateToRuntimePermissions/ |
D | Android.bp | 26 // which is not generated by resource processor.
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
D | CardPresenter.java | 26 import com.bumptech.glide.load.resource.drawable.GlideDrawable;
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | MediaCodecBlockModelTest.java | 441 private static MediaExtractor getMediaExtractorForMimeType(final String resource, in getMediaExtractorForMimeType() argument 444 try (AssetFileDescriptor afd = getAssetFileDescriptorFor(resource)) { in getMediaExtractorForMimeType()
|
D | VideoCodecTestBase.java | 794 private InputStream OpenFileOrResource(String filename, final String resource) in OpenFileOrResource() argument 800 Preconditions.assertTestFileExists(mInpPrefix + resource); in OpenFileOrResource() 801 return new FileInputStream(mInpPrefix + resource); in OpenFileOrResource()
|
D | MediaCodecTest.java | 1995 private MediaExtractor getMediaExtractorForMimeType(final String resource, in getMediaExtractorForMimeType() argument 1997 Preconditions.assertTestFileExists(mInpPrefix + resource); in getMediaExtractorForMimeType() 1999 File inpFile = new File(mInpPrefix + resource); in getMediaExtractorForMimeType()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 1037 private String mountObb(final int resource, final File file, int expectedState) { in mountObb() argument 1038 copyRawToFile(resource, file); in mountObb() 1056 private ObbObserver mountObbWithoutWait(final int resource, final File file) { in mountObbWithoutWait() argument 1057 copyRawToFile(resource, file); in mountObbWithoutWait()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ListViewTest.java | 934 public MockAdapter(Context context, int resource, List<T> objects) { in MockAdapter() argument 935 super(context, resource, objects); in MockAdapter() 1618 public StableArrayAdapter(Context context, int resource, List<T> objects) { in StableArrayAdapter() argument 1619 super(context, resource, objects); in StableArrayAdapter() 1683 public PositionArrayAdapter(Context context, int resource, List<T> objects) { in PositionArrayAdapter() argument 1684 super(context, resource, objects); in PositionArrayAdapter()
|
D | AbsListViewTest.java | 957 public PositionArrayAdapter(Context context, int resource, List<T> objects) { in PositionArrayAdapter() argument 958 super(context, resource, objects); in PositionArrayAdapter()
|
/cts/hostsidetests/appsecurity/test-apps/tinyapp/ |
D | Android.bp | 459 // with the knownSigner protection flag using a string resource instead of a 460 // string-array resource for the trusted certs.
|
/cts/tests/tests/media/player/src/android/media/player/cts/ |
D | MediaPlayerTest.java | 2261 String resource, int numInternalTracks, String[] subtitleResources, in testTimedText() argument 2263 if (!checkLoadResource(resource)) { in testTimedText()
|