/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/netsim/rust/daemon/src/captures/ |
D | pcap_util.rs | 183 let mut actual = Vec::<u8>::new(); in test_pcap_file() localVariable 184 write_pcap_header(LinkType::BluetoothHciH4WithPhdr, &mut actual).unwrap(); in test_pcap_file() 187 &mut actual, in test_pcap_file() 194 &mut actual, in test_pcap_file() 199 assert_eq!(actual, EXPECTED_PCAP); in test_pcap_file() 204 let mut actual = Vec::<u8>::new(); in test_pcapng_file() localVariable 205 write_pcapng_header(LinkType::FiraUci, &mut actual).unwrap(); in test_pcapng_file() 207 let _ = append_record_pcapng(Duration::new(0, 0), &mut actual, &[32, 2, 0, 0]).unwrap(); in test_pcapng_file() 208 assert_eq!(actual, EXPECTED_PCAPNG); in test_pcapng_file()
|
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/ |
D | Utils.java | 11 public static void logError(String message, int expected, int actual) { in logError() argument 14 Log.e(FAIL_INFO, "Actual: " + actual); in logError() 17 public static void logError(String message, byte[] expected, byte[] actual) { in logError() argument 20 Log.e(FAIL_INFO, "Actual: " + Arrays.toString(actual)); in logError()
|
/tools/aadevtools/dev/ |
D | change_report_test.py | 73 def diff_lines(expected, actual): argument 75 actual_len = len(actual) 84 if expected[i] != actual[i]: 87 print(actual[i]) 98 print(actual[k])
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/ |
D | bt_utils.py | 264 def _get_formatted_output(self, expected, actual): argument 279 if actual is None: 282 if expected[key] != actual[key]: 283 msg += mismatch_format.format(key, expected[key], actual[key]) 288 actual = device.get_bt_status() 289 if actual is None: 292 if expected[key] != actual[key]:
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/apilevels/ |
D | ExtensionSdkJarReaderTest.kt | 53 val actual = ExtensionSdkJarReader.findExtensionSdkJarFiles(root, null) in Verify findExtensionSdkJarFiles() constant 54 assertEquals(expected, actual) in Verify findExtensionSdkJarFiles() 78 val actual = ExtensionSdkJarReader.findExtensionSdkJarFiles(root, 2) in Verify findExtensionSdkJarFiles exclude unreleased() constant 79 assertEquals(expected, actual) in Verify findExtensionSdkJarFiles exclude unreleased()
|
D | InternalDescTest.kt | 41 val actual = buildString { in MethodItem internalDesc (psi)() constant 52 actual.trim() in MethodItem internalDesc (psi)()
|
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/ |
D | ClusterHostUtilTest.java | 68 String actual = ClusterHostUtil.toValidTfVersion(version); in testToValidTfVersion() local 69 Assert.assertEquals(version, actual); in testToValidTfVersion() 76 String actual = ClusterHostUtil.toValidTfVersion(version); in testToValidTfVersionWithEmptyVersion() local 77 Assert.assertEquals(ClusterHostUtil.DEFAULT_TF_VERSION, actual); in testToValidTfVersionWithEmptyVersion() 84 String actual = ClusterHostUtil.toValidTfVersion(version); in testToValidTfVersionWithNullVersion() local 85 Assert.assertEquals(ClusterHostUtil.DEFAULT_TF_VERSION, actual); in testToValidTfVersionWithNullVersion() 92 String actual = ClusterHostUtil.toValidTfVersion(version); in testToValidTfVersionWithInvalidVersion() local 93 Assert.assertEquals(ClusterHostUtil.DEFAULT_TF_VERSION, actual); in testToValidTfVersionWithInvalidVersion()
|
/tools/tradefederation/core/javatests/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/tradefederation/core/javatests/com/android/tradefed/util/ |
D | MultiMapTest.java | 107 private static <T> void assertContainsExactly(Collection<T> expected, Collection<T> actual) { in assertContainsExactly() argument 108 assertEquals(expected.size(), actual.size()); in assertContainsExactly() 109 List<T> copy = new ArrayList<>(actual); in assertContainsExactly() 113 fail(String.format("Couldn't find %s in %s", item, actual.getClass())); in assertContainsExactly()
|
D | ListInstrumentationParserTest.java | 135 InstrumentationTarget actual) { in areTargetsEqual() argument 136 return Objects.equals(expected.packageName, actual.packageName) && in areTargetsEqual() 137 Objects.equals(expected.runnerName, actual.runnerName) && in areTargetsEqual() 138 Objects.equals(expected.targetName, actual.targetName); in areTargetsEqual()
|
/tools/test/connectivity/acts_tests/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,
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/internal/ |
D | DeviceReleaseReporterTest.java | 76 Map<String, String> actual = capture.getValue(); in releaseDevices_oneDevice() local 78 assertEquals(actual, expected); in releaseDevices_oneDevice() 98 Map<String, String> actual = capture.getValue(); in releaseDevices_multipleDevices() local 103 assertEquals(actual, expected); in releaseDevices_multipleDevices()
|
D | EarlyDeviceReleaseFeatureTest.java | 92 Map<ITestDevice, FreeDeviceState> actual = capture.getValue(); in testFeature_oneDevice() local 94 assertEquals(expected, actual); in testFeature_oneDevice() 110 Map<ITestDevice, FreeDeviceState> actual = capture.getValue(); in testFeature_multipleDevices() local 115 assertEquals(expected, actual); in testFeature_multipleDevices()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/postprocessor/ |
D | StatsdEventMetricPostProcessor.java | 173 List<String> actual = new ArrayList<>(); in fillInPlaceholders() local 175 actual.addAll( in fillInPlaceholders() 180 actual.addAll( in fillInPlaceholders() 187 if (results.size() > 1 && actual.size() > 1) { in fillInPlaceholders() 204 .flatMap(r -> actual.stream().map(a -> r.replace(placeholder, a))) in fillInPlaceholders()
|
/tools/metalava/metalava-model-text/src/testFixtures/java/com/android/tools/metalava/model/text/ |
D | TextTestUtils.kt | 24 actual: String, in assertSignatureFilesMatch() 29 val actualStripped = actual.stripBlankLines() in assertSignatureFilesMatch()
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/ |
D | UastTestBase.kt | 1390 fun `actual typealias -- without value class`() { in actual typealias -- without value class() 1443 fun `actual typealias -- without common split`() { in actual typealias -- without common split() 1496 fun `actual typealias`() { in actual typealias() 1551 fun `actual inline`() { in actual inline()
|
D | DriverTest.kt | 1180 val actual = readFile(File(sdkFilesDir, "broadcast_actions.txt")) in <lambda>() constant 1181 assertEquals(sdkBroadcastActions.trimIndent().trim(), actual.trim()) in <lambda>() 1185 val actual = readFile(File(sdkFilesDir, "activity_actions.txt")) in <lambda>() constant 1186 assertEquals(sdkActivityActions.trimIndent().trim(), actual.trim()) in <lambda>() 1190 val actual = readFile(File(sdkFilesDir, "service_actions.txt")) in <lambda>() constant 1191 assertEquals(sdkServiceActions.trimIndent().trim(), actual.trim()) in <lambda>() 1195 val actual = readFile(File(sdkFilesDir, "categories.txt")) in <lambda>() constant 1196 assertEquals(sdkCategories.trimIndent().trim(), actual.trim()) in <lambda>() 1200 val actual = readFile(File(sdkFilesDir, "features.txt")) in <lambda>() constant 1201 assertEquals(sdkFeatures.trimIndent().trim(), actual.trim()) in <lambda>() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | ModulePusherTest.java | 208 Path[] actual = in testGetPreLoadPathsOnSplitApk() local 217 assertArrayEquals(results, actual); in testGetPreLoadPathsOnSplitApk() 224 Path[] actual = new Path[] {Paths.get(APEX_PATH_ON_DEVICE)}; in testGetPreLoadPathsOnApex() local 228 assertArrayEquals(results, actual); in testGetPreLoadPathsOnApex() 235 Path[] actual = new Path[] {Paths.get(APEX_PATH_ON_DEVICE)}; in testGetPreLoadPathsOnQReturnDefault() local 241 assertArrayEquals(results, actual); in testGetPreLoadPathsOnQReturnDefault() 260 Path[] actual = new Path[] {Paths.get(APK_PATH_ON_DEVICE)}; in testGetPreLoadPathsOnApk() local 264 assertArrayEquals(results, actual); in testGetPreLoadPathsOnApk() 277 Path[] actual = new Path[] {Paths.get(APEX_PATH_ON_DEVICE)}; in testGetPreLoadPathsOverridesApexDecompressedPath() local 281 assertArrayEquals(results, actual); in testGetPreLoadPathsOverridesApexDecompressedPath()
|
/tools/security/remote_provisioning/hwtrust/src/cbor/rkp/ |
D | device_info.rs | 147 let actual = DeviceInfo::from_cbor_values(get_valid_values(), None).unwrap(); in from_cbor_values_valid_v2() localVariable 165 assert_eq!(actual, expected); in from_cbor_values_valid_v2() 171 let actual = DeviceInfo::from_cbor_values(values, Some(3)).unwrap(); in device_info_from_cbor_values_valid_v3() localVariable 189 assert_eq!(actual, expected); in device_info_from_cbor_values_valid_v3() 286 let actual = DeviceInfo::from_cbor_values(values, Some(3)).unwrap(); in device_info_from_cbor_values_avf_security_level_has_avf_fields() localVariable 304 assert_eq!(expected, actual); in device_info_from_cbor_values_avf_security_level_has_avf_fields()
|
/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/repohooks/rh/ |
D | config_test.py | 28 def assertEqual(msg, exp, actual): argument 30 assert exp == actual, f'{msg}: expected "{exp}" but got "{actual}"'
|
/tools/netsim/rust/common/src/util/ |
D | os_utils.rs | 223 let actual = get_discovery_directory(); in test_get_discovery_directory() localVariable 226 assert_eq!(actual, expected); in test_get_discovery_directory() 230 let actual = get_discovery_directory(); in test_get_discovery_directory() localVariable 233 assert_eq!(actual, expected); in test_get_discovery_directory()
|
/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()
|
/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()
|