/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/device/ |
D | TestDeviceTest.java | 2252 Set<ApexInfo> actual = mTestDevice.getActiveApexes(); in testGetActiveApexesPlatformSupportsPath() local 2253 assertEquals(2, actual.size()); in testGetActiveApexesPlatformSupportsPath() 2255 actual.stream() in testGetActiveApexesPlatformSupportsPath() 2260 actual.stream() in testGetActiveApexesPlatformSupportsPath() 2277 Set<ApexInfo> actual = mTestDevice.getActiveApexes(); in testGetActiveApexesPlatformDoesNotSupportPath() local 2278 assertEquals(2, actual.size()); in testGetActiveApexesPlatformDoesNotSupportPath() 2280 actual.stream() in testGetActiveApexesPlatformDoesNotSupportPath() 2285 actual.stream() in testGetActiveApexesPlatformDoesNotSupportPath() 2304 Set<ApexInfo> actual = mTestDevice.getActiveApexes(); in testGetActiveApexesForBadOutput() local 2305 assertEquals(0, actual.size()); in testGetActiveApexesForBadOutput() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterHostUtilTest.java | 53 String actual = ClusterHostUtil.toValidTfVersion(version); in testToValidTfVersion() local 54 Assert.assertEquals(version, actual); in testToValidTfVersion() 61 String actual = ClusterHostUtil.toValidTfVersion(version); in testToValidTfVersionWithEmptyVersion() local 62 Assert.assertEquals(ClusterHostUtil.DEFAULT_TF_VERSION, actual); in testToValidTfVersionWithEmptyVersion() 69 String actual = ClusterHostUtil.toValidTfVersion(version); in testToValidTfVersionWithNullVersion() local 70 Assert.assertEquals(ClusterHostUtil.DEFAULT_TF_VERSION, actual); in testToValidTfVersionWithNullVersion() 77 String actual = ClusterHostUtil.toValidTfVersion(version); in testToValidTfVersionWithInvalidVersion() local 78 Assert.assertEquals(ClusterHostUtil.DEFAULT_TF_VERSION, actual); in testToValidTfVersionWithInvalidVersion()
|
D | ClusterCommandSchedulerTest.java | 595 ClusterCommandEvent actual = (ClusterCommandEvent) object; 596 return (TASK_ID.equals(actual.getCommandTaskId()) 597 && deviceSerials.equals(actual.getDeviceSerials()) 598 && actual.getType() == type);
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 1262 val actual = readFile(File(sdkFilesDir, "broadcast_actions.txt"), stripBlankLines, trim) in <lambda>() constant 1263 assertEquals(sdk_broadcast_actions.trimIndent().trim(), actual.trim()) in <lambda>() 1267 val actual = readFile(File(sdkFilesDir, "activity_actions.txt"), stripBlankLines, trim) in <lambda>() constant 1268 assertEquals(sdk_activity_actions.trimIndent().trim(), actual.trim()) in <lambda>() 1272 val actual = readFile(File(sdkFilesDir, "service_actions.txt"), stripBlankLines, trim) in <lambda>() constant 1273 assertEquals(sdk_service_actions.trimIndent().trim(), actual.trim()) in <lambda>() 1277 val actual = readFile(File(sdkFilesDir, "categories.txt"), stripBlankLines, trim) in <lambda>() constant 1278 assertEquals(sdk_categories.trimIndent().trim(), actual.trim()) in <lambda>() 1282 val actual = readFile(File(sdkFilesDir, "features.txt"), stripBlankLines, trim) in <lambda>() constant 1283 assertEquals(sdk_features.trimIndent().trim(), actual.trim()) in <lambda>() [all …]
|
D | AnnotationsDifferTest.kt | 64 val actual = apiFile.readText(UTF_8) in Write diff() constant 72 """.trimIndent(), actual.trim() in Write diff()
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/ |
D | bt_utils.py | 262 def _get_formatted_output(self, expected, actual): argument 277 if actual is None: 280 if expected[key] != actual[key]: 281 msg += mismatch_format.format(key, expected[key], actual[key]) 286 actual = device.get_bt_status() 287 if actual is None: 290 if expected[key] != actual[key]:
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 1459 byte[] actual = digest(jcaDigestAlgorithm, manifestBytes); in verifyManifestDigest() 1461 if (!Arrays.equals(expected, actual)) { in verifyManifestDigest() 1467 Base64.getEncoder().encodeToString(actual), in verifyManifestDigest() 1497 byte[] actual = in verifyManifestMainSectionDigest() 1504 if (!Arrays.equals(expected, actual)) { in verifyManifestMainSectionDigest() 1509 Base64.getEncoder().encodeToString(actual), in verifyManifestMainSectionDigest() 1549 byte[] actual = in verifyManifestIndividualSectionDigest() 1556 if (!Arrays.equals(expected, actual)) { in verifyManifestIndividualSectionDigest() 1562 Base64.getEncoder().encodeToString(actual), in verifyManifestIndividualSectionDigest()
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | StatsdEventMetricPostProcessor.java | 202 List<String> actual = new ArrayList(); in fillInPlaceholders() local 204 actual.addAll( in fillInPlaceholders() 209 actual.addAll( in fillInPlaceholders() 216 if (results.size() > 1 && actual.size() > 1) { in fillInPlaceholders() 233 .flatMap(r -> actual.stream().map(a -> r.replace(placeholder, a))) in fillInPlaceholders()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/multi/ |
D | MixImageZipPreparerTest.java | 447 ZipEntry actual = zipFile.getEntry(entry.getKey()); in runCreateZipTest() local 448 Assert.assertEquals(expected.getSize(), actual.getSize()); in runCreateZipTest() 449 Assert.assertEquals(expected.getCrc32(), actual.getCrc()); in runCreateZipTest() 451 Assert.assertEquals(expected.getSize(), actual.getCompressedSize()); in runCreateZipTest() 453 Assert.assertTrue(expected.getSize() > actual.getCompressedSize()); in runCreateZipTest()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | MultiMapTest.java | 102 private static <T> void assertContainsExactly(Collection<T> expected, Collection<T> actual) { in assertContainsExactly() argument 103 assertEquals(expected.size(), actual.size()); in assertContainsExactly() 104 List<T> copy = new ArrayList<>(actual); in assertContainsExactly() 108 fail(String.format("Couldn't find %s in %s", item, actual.getClass())); in assertContainsExactly()
|
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/tradefederation/core/tests/src/com/android/tradefed/invoker/logger/ |
D | InvocationLocalTest.java | 43 Object actual = invocation(() -> local.get()); in getInitialValueDefaultsToNull() local 45 assertThat(actual).isNull(); in getInitialValueDefaultsToNull() 59 String actual = invocation(() -> local.get()); in getReturnsCustomInitialValue() local 61 assertThat(actual).isEqualTo(expected); in getReturnsCustomInitialValue()
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiLinkProbeTest.py | 99 actual = wifi_info[WifiEnums.SSID_KEY] 101 expected, actual, 129 actual = wifi_info[WifiEnums.SSID_KEY] 131 expected, actual,
|
D | WifiChaosTest.py | 230 actual = wifi_info[WifiEnums.SSID_KEY] 232 expected, actual,
|
/tools/repohooks/rh/ |
D | config_test.py | 31 def assertEqual(msg, exp, actual): argument 33 assert exp == actual, '%s: expected "%s" but got "%s"' % (msg, exp, actual)
|
/tools/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | usage_metadata_logger_test.py | 153 actual = publisher._usage_map_to_proto_metric() 154 self.assertEqual(expected.name, actual.name) 156 parse_proto_to_ascii(actual.data))
|
/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/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | DynamicRemoteFileResolverTest.java | 605 IRemoteFileResolver actual = loader.load(NullFileResolver.PROTOCOL, ImmutableMap.of()); in resolverLoader_multipleCallsReturnTheSameResolver() local 607 assertThat(actual).isSameAs(expected); in resolverLoader_multipleCallsReturnTheSameResolver() 973 public boolean compare(File actual, File expected) { 974 return expected.getAbsolutePath().equals(actual.getAbsolutePath());
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 679 public boolean matches(Object actual) { in inputStreamSourceContainsText() 680 if (!(actual instanceof InputStreamSource)) { in inputStreamSourceContainsText() 684 InputStream is = ((InputStreamSource) actual).createInputStream(); in inputStreamSourceContainsText()
|
/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/tradefederation/core/tests/src/com/android/tradefed/log/ |
D | SimpleFileLoggerTest.java | 92 List<String> actual = readLines(mLogger.getLog().createInputStream()); in testGetLog() local 93 assertEquals(expected, actual); in testGetLog()
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_android_device_test.py | 181 for actual, expected in zip(actual_ads, get_mock_ads(5)): 182 self.assertEqual(actual.serial, expected.serial)
|