/tools/apksig/src/test/java/com/android/apksig/internal/test/ |
D | MoreAsserts.java | 30 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/ |
D | FileMetadataCollectorTest.java | 51 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/ |
D | signals.py | 67 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/ |
D | ListInstrumentationParserTest.java | 128 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()
|
D | ZipUtil2Test.java | 58 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/ |
D | AnnotationsDifferTest.kt | 57 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/ |
D | MediaStressTest.java | 207 private int coalesceLoopCounts(Integer actual, Integer expected) { in coalesceLoopCounts() argument 210 } else if (actual == null) { in coalesceLoopCounts() 213 return actual; in coalesceLoopCounts()
|
D | CameraStressTest.java | 337 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/ |
D | DataSinkTestBase.java | 120 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/ |
D | V1SchemeVerifier.java | 1438 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/ |
D | metric_measurement.proto | 41 // Represents the actual measurement values
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_android_device_test.py | 178 for actual, expected in zip(actual_ads, get_mock_ads(5)): 179 self.assertEqual(actual.serial, expected.serial)
|
/tools/tradefederation/core/atest/docs/ |
D | develop_test_runners.md | 53 actual test command.
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceTest.java | 1975 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()
|