Home
last modified time | relevance | path

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

12

/cts/tests/tests/app/src/android/app/cts/
DRemoteActionTest.java45 RemoteAction reference = new RemoteAction(icon, title, description, action); in testParcel() local
46 reference.setEnabled(false); in testParcel()
47 reference.setShouldShowIcon(false); in testParcel()
50 reference.writeToParcel(parcel, reference.describeContents()); in testParcel()
70 RemoteAction reference = new RemoteAction(icon, title, description, action); in testClone() local
71 reference.setEnabled(false); in testClone()
72 reference.setShouldShowIcon(false); in testClone()
74 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDeviceConfigStateManager.java79 final AtomicReference<String> reference = new AtomicReference<>(); in get() local
81 -> reference.set(DeviceConfig.getProperty(mNamespace, mKey)), in get()
83 debug("get", "returning %s", reference.get()); in get()
85 return reference.get(); in 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/bedstead/testapp/src/main/library/java/com/android/bedstead/testapp/
DTestApp.java57 public PackageReference reference() { in reference() method in TestApp
65 return reference().resolve(); in resolve()
88 reference().uninstall(user); in uninstall()
DTestAppInstanceReference.java205 ProcessReference process = mTestApp.reference().runningProcess(mUser); in stop()
222 return mTestApp.reference().runningProcess(mUser); in process()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppInstanceReferenceTest.java138 PollingCheck.waitFor(() -> testApp.reference().runningProcess(sUser) != null); in killProcess_keepAlive_processIsRunningAgain()
153 assertThat(testApp.reference().runningProcesses()).isEmpty(); in stop_processIsNotRunning()
166 assertThat(testApp.reference().runningProcesses()).isEmpty(); in stop_previouslyCalledKeepAlive_processDoesNotRestart()
231 assertThat(testApp.reference().runningProcess(sUser)).isNotNull(); in registerReceiver_processIsRunning()
296 assertThat(testApp.reference().runningProcess(sUser)).isNotNull(); in keepAlive_processIsRunning()
305 testApp.reference().runningProcess(sUser).kill(); in registerReceiver_appIsKilled_stillReceivesBroadcast()
306 PollingCheck.waitFor(() -> testApp.reference().runningProcess(sUser) != null); in registerReceiver_appIsKilled_stillReceivesBroadcast()
DTestAppTest.java58 assertThat(testApp.reference()).isEqualTo(sTestApis.packages().find(testApp.packageName())); in reference_returnsNeneReference()
248 Package testAppPackage = testApp.reference().resolve(); in uninstall_userHandle_uninstalls()
261 Package testAppPackage = testApp.reference().resolve(); in uninstall_userReference_uninstalls()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DPaintTests.kt51 private fun createShadowBitmap(drawCall: (Paint, Canvas) -> Unit, reference: Boolean): Bitmap { in <lambda>()
60 if (reference) { in <lambda>()
76 val reference = createShadowBitmap(drawCall, true) in <lambda>() constant
78 val verifier = GoldenImageVerifier(reference, ExactComparer()) in <lambda>()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java929 Bitmap reference = BitmapFactory.decodeResource(mRes, id, opts); in decodeConfigs() local
930 assertNotNull(reference); in decodeConfigs()
931 assertEquals(width, reference.getWidth()); in decodeConfigs()
932 assertEquals(height, reference.getHeight()); in decodeConfigs()
933 assertEquals(Config.ARGB_8888, reference.getConfig()); in decodeConfigs()
942 assertTrue(BitmapUtils.compareBitmaps(reference, argb4444)); in decodeConfigs()
955 BitmapUtils.assertBitmapsMse(reference, rgb565.copy(Config.ARGB_8888, false), 30, true, in decodeConfigs()
962 assertEquals(width, reference.getWidth()); in decodeConfigs()
963 assertEquals(height, reference.getHeight()); in decodeConfigs()
969 assertTrue(BitmapUtils.compareBitmaps(reference, grayToARGB(alpha8))); in decodeConfigs()
[all …]
DImageDecoderTest.java442 Bitmap reference = BitmapFactory.decodeResource(res, in testSetAllocatorDecodeBitmap() local
444 assertNotNull(reference); in testSetAllocatorDecodeBitmap()
445 assertTrue(BitmapUtils.compareBitmaps(bm, reference)); in testSetAllocatorDecodeBitmap()
1977 Bitmap reference = null;
1998 reference.recycle();
1999 reference = null;
2013 if (reference == null) {
2014 reference = bm;
2017 BitmapUtils.assertBitmapsMse(bm, reference, mse, true, false);
/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/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDeviceOwnerTest.java74 assertThat(sDeviceOwner.pkg()).isEqualTo(sTestApp.reference()); in pkg_returnsPackage()
DProfileOwnerTest.java80 assertThat(sProfileOwner.pkg()).isEqualTo(sTestApp.reference()); in pkg_returnsPackage()
/cts/tests/location/location_gnss/protos/
Dephemeris.proto76 // Mean anomaly at reference time.
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_blur.rscript51 // Which is the reference C implementation
Dintrinsic_colormatrix.rscript20 void reference(rs_matrix4x4 m, float4 add, rs_allocation in, rs_allocation out,
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTestBase.java125 public static <T> T checkNotNull(T reference) { in checkNotNull() argument
126 assertNotNull(reference); in checkNotNull()
127 return reference; in checkNotNull()
130 public static <T> T checkNotNull(String msg, T reference) { in checkNotNull() argument
131 assertNotNull(msg, reference); in checkNotNull()
132 return reference; in checkNotNull()
DMediaExtractorTest.java521 Map<Integer, AudioPresentation> reference, in audioPresentationSetMatchesReference() argument
523 if (reference.size() != actual.size()) { in audioPresentationSetMatchesReference()
525 reference.size() + ", actual: " + actual.size()); in audioPresentationSetMatchesReference()
529 AudioPresentation refAp = reference.get(ap.getPresentationId()); in audioPresentationSetMatchesReference()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyVoiceRecognitionActivity.java560 double[] reference = new double[points];
565 mFreqAverageUsbNoise.getData(reference, false);
579 referenceDb[i] = 20 * Math.log10(reference[i]);
DAudioFrequencyUnprocessedActivity.java538 double[] reference = new double[points]; in computeResults() local
543 mFreqAverageUsbNoise.getData(reference, false); in computeResults()
557 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

12