Home
last modified time | relevance | path

Searched refs:reference (Results 1 – 25 of 25) sorted by relevance

/cts/tests/tests/app/src/android/app/cts/
DRemoteActionTest.java44 RemoteAction reference = new RemoteAction(icon, title, description, action); in testParcel() local
45 reference.setEnabled(false); in testParcel()
46 reference.setShouldShowIcon(false); in testParcel()
49 reference.writeToParcel(parcel, reference.describeContents()); in testParcel()
68 RemoteAction reference = new RemoteAction(icon, title, description, action); in testClone() local
69 reference.setEnabled(false); in testClone()
70 reference.setShouldShowIcon(false); in testClone()
72 RemoteAction result = reference.clone(); in testClone()
/cts/hostsidetests/theme/
DREADME19 modified. They consist of API-specific sets of reference images representing
22 reference images.
25 modifications to the reference images will invalidate the test results.
30 I. Generating reference images (CTS maintainers only)
33 generate a new set of reference images from an emulator, do the following:
52 5. Use the reference image script to generate the reference images. The script
54 install the resulting reference images in assets/<platform>/<dpi>.zip,
59 You can also generate reference images using a real device. To generate a new set
60 of reference images from a real device, do the following:
66 2. Use the reference image script to generate the reference images:
[all …]
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DHostsideOomCatcher.java117 WeakReference<BackgroundDeviceAction> reference = in start()
120 if (reference != null) { in start()
121 oomCatcher = reference.get(); in start()
141 WeakReference<BackgroundDeviceAction> reference = oomCatchers.get(serial);
142 if (reference != null) {
143 BackgroundDeviceAction oomCatcher = reference.get();
/cts/hostsidetests/theme/src/android/theme/cts/
DComparisonTask.java90 private static boolean checkNeighbors(int x, int y, BufferedImage reference, in checkNeighbors() argument
98 final int p1 = reference.getRGB(i, j); in checkNeighbors()
129 private static boolean compare(BufferedImage reference, BufferedImage generated, in compare() argument
133 if (w != reference.getWidth() || h != reference.getHeight()) { in compare()
141 final int p1 = reference.getRGB(i, j); in compare()
152 if (!checkNeighbors(i, j, reference, generated, threshold)) { in compare()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDeviceConfigStateManager.java80 final AtomicReference<String> reference = new AtomicReference<>(); in get() local
82 -> reference.set(DeviceConfig.getProperty(mNamespace, mKey)), in get()
84 debug("get", "returning %s", reference.get()); in get()
86 return reference.get(); in get()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DDeviceConfigStateManager.java80 final AtomicReference<String> reference = new AtomicReference<>(); in get() local
82 -> reference.set(DeviceConfig.getProperty(mNamespace, mKey)), in get()
84 debug("get", "returning %s", reference.get()); in get()
86 return reference.get(); in get()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java904 Bitmap reference = BitmapFactory.decodeResource(mRes, id, opts); in decodeConfigs() local
905 assertNotNull(reference); in decodeConfigs()
906 assertEquals(width, reference.getWidth()); in decodeConfigs()
907 assertEquals(height, reference.getHeight()); in decodeConfigs()
908 assertEquals(Config.ARGB_8888, reference.getConfig()); in decodeConfigs()
917 compareBitmaps(reference, argb4444, 0, true, true); in decodeConfigs()
930 compareBitmaps(reference, rgb565.copy(Config.ARGB_8888, false), 30, true, true); in decodeConfigs()
936 assertEquals(width, reference.getWidth()); in decodeConfigs()
937 assertEquals(height, reference.getHeight()); in decodeConfigs()
943 compareBitmaps(reference, grayToARGB(alpha8), 0, true, true); in decodeConfigs()
[all …]
DImageDecoderTest.java410 Bitmap reference = BitmapFactory.decodeResource(mRes, in testSetAllocatorDecodeBitmap() local
412 assertNotNull(reference); in testSetAllocatorDecodeBitmap()
413 BitmapUtils.compareBitmaps(bm, reference); in testSetAllocatorDecodeBitmap()
1893 Bitmap reference = null;
1914 reference.recycle();
1915 reference = null;
1928 if (reference == null) {
1929 reference = bm;
1931 BitmapUtils.compareBitmaps(bm, reference);
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DDexParser.java30 import org.jf.dexlib2.dexbacked.reference.DexBackedFieldReference;
31 import org.jf.dexlib2.dexbacked.reference.DexBackedMethodReference;
32 import org.jf.dexlib2.dexbacked.reference.DexBackedTypeReference;
35 import org.jf.dexlib2.iface.reference.*;
/cts/tests/openglperf2/src/android/opengl2/cts/reference/
DGLReferenceActivity.java14 package android.opengl2.cts.reference;
DGLReferenceBenchmark.java14 package android.opengl2.cts.reference;
DGLGameActivity.java14 package android.opengl2.cts.reference;
/cts/tests/tests/media/src/android/media/cts/
DMediaExtractorTest.java328 Map<Integer, AudioPresentation> reference, in audioPresentationSetMatchesReference() argument
330 if (reference.size() != actual.size()) { in audioPresentationSetMatchesReference()
332 reference.size() + ", actual: " + actual.size()); in audioPresentationSetMatchesReference()
336 AudioPresentation refAp = reference.get(ap.getPresentationId()); in audioPresentationSetMatchesReference()
DDecodeAccuracyTestBase.java123 public static <T> T checkNotNull(T reference) { in checkNotNull() argument
124 assertNotNull(reference); in checkNotNull()
125 return reference; in checkNotNull()
128 public static <T> T checkNotNull(String msg, T reference) { in checkNotNull() argument
129 assertNotNull(msg, reference); in checkNotNull()
130 return reference; in checkNotNull()
DMediaCodecTest.java2296 /* package */ static int compareStreams(InputStream test, InputStream reference) { in compareStreams() argument
2299 BufferedInputStream buffered_reference = new BufferedInputStream(reference); in compareStreams()
DDecoderTest.java1029 private void testDecodeFragmented(int reference, int teststream) throws Exception { in testDecodeFragmented() argument
1033 fd1 = mResources.openRawResourceFd(reference); in testDecodeFragmented()
/cts/tests/tests/location/protos/
Dephemeris.proto76 // Mean anomaly at reference time.
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_colormatrix.rscript20 void reference(rs_matrix4x4 m, float4 add, rs_allocation in, rs_allocation out,
Dintrinsic_blur.rscript51 // Which is the reference C implementation
Dverify.rscript299 printCell("reference value ", ref_in, errorLoc);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyVoiceRecognitionActivity.java566 double[] reference = new double[points];
571 mFreqAverageUsbNoise.getData(reference, false);
585 referenceDb[i] = 20 * Math.log10(reference[i]);
DAudioFrequencyUnprocessedActivity.java551 double[] reference = new double[points]; in computeResults() local
556 mFreqAverageUsbNoise.getData(reference, false); in computeResults()
570 referenceDb[i] = 20 * Math.log10(reference[i]); in computeResults()
/cts/tools/cts-api-coverage/proto/
Dcts_report.proto53 // A build fingerprint of the reference device. See go/apfe-reference-build
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java1058 EqStringMatcher(CharSequence reference) { in EqStringMatcher() argument
1059 mReference = reference.toString(); in EqStringMatcher()
/cts/tests/tests/rscpp/src/android/cts/rscpp/
Dverify.rscript299 printCell("reference value ", ref_in, errorLoc);