Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 14 of 14) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/internal/test/
DMoreAsserts.java30 public static void assertByteBufferEquals(byte[] expected, ByteBuffer actual) { in assertByteBufferEquals() argument
31 assertByteBufferEquals(null, expected, actual); in assertByteBufferEquals()
38 public static void assertByteBufferEquals(String message, byte[] expected, ByteBuffer actual) { in assertByteBufferEquals() argument
40 if ((actual.hasArray()) in assertByteBufferEquals()
41 && (actual.arrayOffset() == 0) && (actual.array().length == actual.remaining())) { in assertByteBufferEquals()
42 actualArr = actual.array(); in assertByteBufferEquals()
44 actualArr = new byte[actual.remaining()]; in assertByteBufferEquals()
45 int actualOriginalPos = actual.position(); in assertByteBufferEquals()
46 actual.get(actualArr); in assertByteBufferEquals()
47 actual.position(actualOriginalPos); in assertByteBufferEquals()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DFileMetadataCollectorTest.java51 FileMetadata actual = mCollector.getMetadataContents(); in testNoElements() local
55 Assert.assertEquals(actual, expected); in testNoElements()
66 FileMetadata actual = mCollector.getMetadataContents(); in testSingleTypeSingleElement() local
71 Assert.assertEquals(actual, expected); in testSingleTypeSingleElement()
83 FileMetadata actual = mCollector.getMetadataContents(); in testSingleTypeMultipleElements() local
90 Assert.assertEquals(actual, expected); in testSingleTypeMultipleElements()
104 FileMetadata actual = mCollector.getMetadataContents(); in testMultipleTypesMultipleElements() local
113 Assert.assertEquals(actual, expected); in testMultipleTypesMultipleElements()
/tools/repohooks/rh/
Dsignals.py67 received, actual = [], None
72 actual = _signal(_SIGUSR1, handler)
73 _signal(_SIGUSR1, actual)
88 actual(signum, frame)
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DListInstrumentationParserTest.java128 InstrumentationTarget actual) { in areTargetsEqual() argument
130 return Objects.equals(expected.packageName, actual.packageName) && in areTargetsEqual()
131 Objects.equals(expected.runnerName, actual.runnerName) && in areTargetsEqual()
132 Objects.equals(expected.targetName, actual.targetName); in areTargetsEqual()
DZipUtil2Test.java58 Set<PosixFilePermission> actual = Files.getPosixFilePermissions(file.toPath()); in verifyFilePermission() local
60 Assert.assertEquals(expected, actual); in verifyFilePermission()
/tools/metalava/src/test/java/com/android/tools/metalava/
DAnnotationsDifferTest.kt57 val actual = apiFile.readText(Charsets.UTF_8) in Write diff() constant
64 """.trimIndent(), actual.trim()) in Write diff()
/tools/tradefederation/contrib/src/com/android/media/tests/
DMediaStressTest.java207 private int coalesceLoopCounts(Integer actual, Integer expected) { in coalesceLoopCounts() argument
210 } else if (actual == null) { in coalesceLoopCounts()
213 return actual; in coalesceLoopCounts()
DCameraStressTest.java337 private int coalesceLoopCounts(Integer actual, Integer expected) { in coalesceLoopCounts() argument
340 } else if (actual == null) { in coalesceLoopCounts()
343 return actual; in coalesceLoopCounts()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSinkTestBase.java120 ByteBuffer actual = getContents(sink); in assertContentsEquals() local
121 assertEquals(expectedContents, toString(actual)); in assertContentsEquals()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java1438 byte[] actual = digest(jcaDigestAlgorithm, manifestBytes); in verifyManifestDigest()
1440 if (!Arrays.equals(expected, actual)) { in verifyManifestDigest()
1446 Base64.getEncoder().encodeToString(actual), in verifyManifestDigest()
1476 byte[] actual = in verifyManifestMainSectionDigest()
1483 if (!Arrays.equals(expected, actual)) { in verifyManifestMainSectionDigest()
1488 Base64.getEncoder().encodeToString(actual), in verifyManifestMainSectionDigest()
1528 byte[] actual = in verifyManifestIndividualSectionDigest()
1535 if (!Arrays.equals(expected, actual)) { in verifyManifestIndividualSectionDigest()
1541 Base64.getEncoder().encodeToString(actual), in verifyManifestIndividualSectionDigest()
/tools/tradefederation/core/proto/
Dmetric_measurement.proto41 // Represents the actual measurement values
/tools/test/connectivity/acts/framework/tests/
Dacts_android_device_test.py178 for actual, expected in zip(actual_ads, get_mock_ads(5)):
179 self.assertEqual(actual.serial, expected.serial)
/tools/tradefederation/core/atest/docs/
Ddevelop_test_runners.md53 actual test command.
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java1975 ArrayList<Integer> actual = mTestDevice.listUsers(); in testListUsers_oneUser() local
1976 assertNotNull(actual); in testListUsers_oneUser()
1977 assertEquals(1, actual.size()); in testListUsers_oneUser()
1978 assertEquals(0, actual.get(0).intValue()); in testListUsers_oneUser()
2030 ArrayList<Integer> actual = mTestDevice.listUsers(); in testListUsers_multiUsers() local
2031 assertNotNull(actual); in testListUsers_multiUsers()
2032 assertEquals(2, actual.size()); in testListUsers_multiUsers()
2033 assertEquals(0, actual.get(0).intValue()); in testListUsers_multiUsers()
2034 assertEquals(3, actual.get(1).intValue()); in testListUsers_multiUsers()