Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 756) sorted by relevance

12345678910>>...31

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSuggestionCursorUtil.java44 SuggestionCursor expected, SuggestionCursor observed) { in assertSameSuggestion() argument
45 assertSameSuggestion(message, expected, position, observed, position); in assertSameSuggestion()
49 SuggestionCursor expected, int positionExpected, in assertSameSuggestion() argument
53 expected.moveTo(positionExpected); in assertSameSuggestion()
55 assertSuggestionEquals(message, expected, observed); in assertSameSuggestion()
58 public static void assertSameSuggestions(SuggestionCursor expected, SuggestionCursor observed) { in assertSameSuggestions() argument
59 assertSameSuggestions("", expected, observed); in assertSameSuggestions()
63 String message, SuggestionCursor expected, SuggestionCursor observed) { in assertSameSuggestions() argument
64 assertNotNull(message + ", expected == null", expected); in assertSameSuggestions()
66 assertEquals(message + ", count", expected.getCount(), observed.getCount()); in assertSameSuggestions()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DUidRangeUtilsTest.java131 Set<UidRange> expected = new ArraySet<>(); in testRemoveRangeSetFromUidRange() local
132 expected.add(uids1); in testRemoveRangeSetFromUidRange()
135 assertEquals(expected, UidRangeUtils.removeRangeSetFromUidRange(uids1, new ArraySet<>())); in testRemoveRangeSetFromUidRange()
137 expected.clear(); in testRemoveRangeSetFromUidRange()
140 assertEquals(expected, UidRangeUtils.removeRangeSetFromUidRange(uids1, set2)); in testRemoveRangeSetFromUidRange()
143 assertEquals(expected, UidRangeUtils.removeRangeSetFromUidRange(uids1, set2)); in testRemoveRangeSetFromUidRange()
145 expected.add(uids10); in testRemoveRangeSetFromUidRange()
148 assertEquals(expected, UidRangeUtils.removeRangeSetFromUidRange(uids1, set2)); in testRemoveRangeSetFromUidRange()
150 expected.clear(); in testRemoveRangeSetFromUidRange()
153 assertEquals(expected, UidRangeUtils.removeRangeSetFromUidRange(uids1, set2)); in testRemoveRangeSetFromUidRange()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java705 WifiConfiguration expected, WifiConfiguration actual, boolean isSupplicantBackup) { in assertCommonConfigurationElementsEqual() argument
706 assertNotNull(expected); in assertCommonConfigurationElementsEqual()
708 assertEquals(expected.SSID, actual.SSID); in assertCommonConfigurationElementsEqual()
709 assertEquals(expected.BSSID, actual.BSSID); in assertCommonConfigurationElementsEqual()
710 assertEquals(expected.preSharedKey, actual.preSharedKey); in assertCommonConfigurationElementsEqual()
711 assertEquals(expected.wepKeys, actual.wepKeys); in assertCommonConfigurationElementsEqual()
712 assertEquals(expected.wepTxKeyIndex, actual.wepTxKeyIndex); in assertCommonConfigurationElementsEqual()
713 assertEquals(expected.hiddenSSID, actual.hiddenSSID); in assertCommonConfigurationElementsEqual()
714 assertEquals(expected.requirePmf, actual.requirePmf); in assertCommonConfigurationElementsEqual()
715 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement); in assertCommonConfigurationElementsEqual()
[all …]
DScanTestUtil.java340 String prefix, ScanResult expected, ScanResult actual) { in assertScanResultEquals() argument
341 assertEquals(prefix + "SSID", expected.SSID, actual.SSID); in assertScanResultEquals()
342 assertEquals(prefix + "wifiSsid", expected.wifiSsid.toString(), actual.wifiSsid.toString()); in assertScanResultEquals()
343 assertEquals(prefix + "BSSID", expected.BSSID, actual.BSSID); in assertScanResultEquals()
344 assertEquals(prefix + "capabilities", expected.capabilities, actual.capabilities); in assertScanResultEquals()
345 assertEquals(prefix + "level", expected.level, actual.level); in assertScanResultEquals()
346 assertEquals(prefix + "frequency", expected.frequency, actual.frequency); in assertScanResultEquals()
347 assertEquals(prefix + "timestamp", expected.timestamp, actual.timestamp); in assertScanResultEquals()
348 assertEquals(prefix + "seen", expected.seen, actual.seen); in assertScanResultEquals()
351 private static void assertScanResultsEquals(String prefix, ScanResult[] expected, in assertScanResultsEquals() argument
[all …]
DWifiMetricsTestUtil.java42 public static void assertHistogramBucketsEqual(HistogramBucketInt32[] expected, in assertHistogramBucketsEqual() argument
44 assertEquals("Number of buckets do not match!", expected.length, actual.length); in assertHistogramBucketsEqual()
46 for (int i = 0; i < expected.length; i++) { in assertHistogramBucketsEqual()
47 HistogramBucketInt32 expectedBucket = expected[i]; in assertHistogramBucketsEqual()
74 public static void assertKeyCountsEqual(Int32Count[] expected, Int32Count[] actual) { in assertKeyCountsEqual() argument
75 assertEquals("Number of key counts do not match!", expected.length, actual.length); in assertKeyCountsEqual()
77 for (int i = 0; i < expected.length; i++) { in assertKeyCountsEqual()
78 Int32Count expectedKeyCount = expected[i]; in assertKeyCountsEqual()
103 LinkProbeFailureReasonCount[] expected, LinkProbeFailureReasonCount[] actual) { in assertLinkProbeFailureReasonCountsEqual() argument
105 expected.length, actual.length); in assertLinkProbeFailureReasonCountsEqual()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiUsabilityStatsEntryTest.java140 WifiUsabilityStatsEntry expected, in assertWifiUsabilityStatsEntryEquals() argument
142 assertEquals(expected.getTimeStampMillis(), actual.getTimeStampMillis()); in assertWifiUsabilityStatsEntryEquals()
143 assertEquals(expected.getRssi(), actual.getRssi()); in assertWifiUsabilityStatsEntryEquals()
144 assertEquals(expected.getLinkSpeedMbps(), actual.getLinkSpeedMbps()); in assertWifiUsabilityStatsEntryEquals()
145 assertEquals(expected.getTotalTxSuccess(), actual.getTotalTxSuccess()); in assertWifiUsabilityStatsEntryEquals()
146 assertEquals(expected.getTotalTxRetries(), actual.getTotalTxRetries()); in assertWifiUsabilityStatsEntryEquals()
147 assertEquals(expected.getTotalTxBad(), actual.getTotalTxBad()); in assertWifiUsabilityStatsEntryEquals()
148 assertEquals(expected.getTotalRxSuccess(), actual.getTotalRxSuccess()); in assertWifiUsabilityStatsEntryEquals()
149 assertEquals(expected.getWifiLinkLayerRadioStats().size(), in assertWifiUsabilityStatsEntryEquals()
151 for (int i = 0; i < expected.getWifiLinkLayerRadioStats().size(); i++) { in assertWifiUsabilityStatsEntryEquals()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DIoPerfCollectionTest.cpp63 MATCHER_P(IoStatsEq, expected, "") {
65 ElementsAreArray(expected.bytes)),
67 ElementsAreArray(expected.fsync))),
71 MATCHER_P(ProcessValueEq, expected, "") {
73 Eq(expected.comm)),
76 Eq(expected.value))),
80 MATCHER_P(ProcStatsEq, expected, "") {
82 processValueMatchers.reserve(expected.topNProcesses.size());
83 for (const auto& processValue : expected.topNProcesses) {
87 Eq(expected.value)),
[all …]
DUidProcStatsCollectorTestUtils.h28 MATCHER_P(ProcessStatsEq, expected, "") {
30 return ::testing::Value(actual.comm, ::testing::Eq(expected.comm)) &&
31 ::testing::Value(actual.startTimeMillis, ::testing::Eq(expected.startTimeMillis)) &&
32 ::testing::Value(actual.cpuTimeMillis, ::testing::Eq(expected.cpuTimeMillis)) &&
33 ::testing::Value(actual.totalMajorFaults, ::testing::Eq(expected.totalMajorFaults)) &&
34 ::testing::Value(actual.totalTasksCount, ::testing::Eq(expected.totalTasksCount)) &&
36 ::testing::Eq(expected.ioBlockedTasksCount));
41 const auto& expected = std::get<1>(arg); variable
42 return actual.first == expected.first &&
43 ::testing::Value(actual.second, ProcessStatsEq(expected.second));
[all …]
DOveruseConfigurationXmlHelperTest.cpp85 ResourceOveruseConfiguration expected = in TEST() local
98 EXPECT_THAT(*actual, ResourceOveruseConfigurationMatcher(expected)) in TEST()
99 << "Expected: " << expected.toString() << "\nActual: " << actual->toString(); in TEST()
118 ResourceOveruseConfiguration expected = in TEST() local
136 EXPECT_THAT(*actual, ResourceOveruseConfigurationMatcher(expected)) in TEST()
137 << "Expected: " << expected.toString() << "\nActual: " << actual->toString(); in TEST()
148 ResourceOveruseConfiguration expected = in TEST() local
156 EXPECT_THAT(*actual, ResourceOveruseConfigurationMatcher(expected)) in TEST()
157 << "Expected: " << expected.toString() << "\nActual: " << actual->toString(); in TEST()
180 ResourceOveruseConfiguration expected = in TEST() local
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DIoOveruseStatsSubject.java59 public void isEqualTo(IoOveruseStats expected) { in isEqualTo() argument
60 if (mActual == expected) { in isEqualTo()
63 check("getStartTime()").that(mActual.getStartTime()).isEqualTo(expected.getStartTime()); in isEqualTo()
65 .isEqualTo(expected.getDurationInSeconds()); in isEqualTo()
67 .isEqualTo(expected.getTotalOveruses()); in isEqualTo()
69 .isEqualTo(expected.getTotalTimesKilled()); in isEqualTo()
71 .isEqualTo(expected.getTotalBytesWritten()); in isEqualTo()
73 .isEqualTo(expected.isKillableOnOveruse()); in isEqualTo()
76 .isEqualTo(expected.getRemainingWriteBytes()); in isEqualTo()
79 public static boolean isEquals(IoOveruseStats actual, IoOveruseStats expected) { in isEquals() argument
[all …]
DIoUsageStatsEntrySubject.java67 public void containsExactlyElementsIn(Iterable<WatchdogStorage.IoUsageStatsEntry> expected) { in containsExactlyElementsIn() argument
69 mMessagePrefix != null ? mMessagePrefix : "", toString(expected), in containsExactlyElementsIn()
72 .containsExactlyElementsIn(expected); in containsExactlyElementsIn()
76 WatchdogStorage.IoUsageStatsEntry expected) { in isEquals() argument
77 if (actual == null || expected == null) { in isEquals()
78 return (actual == null) && (expected == null); in isEquals()
80 return actual.userId == expected.userId && actual.packageName.equals(expected.packageName) in isEquals()
81 && actual.ioUsage.getTotalTimesKilled() == expected.ioUsage.getTotalTimesKilled() in isEquals()
82 && actual.ioUsage.getForgivenOveruses() == expected.ioUsage.getForgivenOveruses() in isEquals()
84 expected.ioUsage.getForgivenWriteBytes()) in isEquals()
[all …]
DIoOveruseConfigurationSubject.java48 protected boolean doEquivalent(PerStateBytes actual, PerStateBytes expected) {
49 return isPerStateBytesEquals(actual, expected);
77 public void containsExactlyElementsIn(Iterable<IoOveruseConfiguration> expected) { in containsExactlyElementsIn() argument
81 .containsExactlyElementsIn(expected); in containsExactlyElementsIn()
85 IoOveruseConfiguration expected) { in isEquals() argument
86 if (actual == null || expected == null) { in isEquals()
87 return (actual == null) && (expected == null); in isEquals()
91 expected.getComponentLevelThresholds()) in isEquals()
93 expected.getPackageSpecificThresholds(), PER_STATE_BYTES_EQUIVALENCE).areEqual() in isEquals()
95 expected.getAppCategorySpecificThresholds(), PER_STATE_BYTES_EQUIVALENCE).areEqual() in isEquals()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageFormatTest.java32 String expected = "<native encoding=\"JPEG\" pixel=\"1280*1024\" />"; in testParseNative_requiredOnly() local
40 Assert.assertEquals(expected, format.toString()); in testParseNative_requiredOnly()
45 String expected = "<native encoding=\"JPEG\" pixel=\"1280*1024\" size=\"1048576\" />"; in testParseNative_withSize() local
53 Assert.assertEquals(expected, format.toString()); in testParseNative_withSize()
58 String expected = "<variant encoding=\"JPEG\" pixel=\"1280*1024\" />"; in testParseVariant_requiredOnly() local
66 Assert.assertEquals(expected, format.toString()); in testParseVariant_requiredOnly()
71 String expected = "<variant encoding=\"JPEG\" pixel=\"1280*1024\" maxsize=\"1048576\" />"; in testParseVariant_withMaxSize() local
79 Assert.assertEquals(expected, format.toString()); in testParseVariant_withMaxSize()
84 String expected = "<variant encoding=\"JPEG\" pixel=\"1280*1024\"" in testParseVariant_withTransformation() local
95 Assert.assertEquals(expected, format.toString()); in testParseVariant_withTransformation()
[all …]
DBipImageDescriptorTest.java36 String expected = sXmlDocDecl + "<image-descriptor version=\"1.0\">\r\n" in testBuildImageDescriptor_encodingConstants() local
46 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_encodingConstants()
51 String expected = sXmlDocDecl + "<image-descriptor version=\"1.0\">\r\n" in testBuildImageDescriptor_encodingObject() local
62 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_encodingObject()
67 String expected = sXmlDocDecl + "<image-descriptor version=\"1.0\">\r\n" in testBuildImageDescriptor_proprietaryEncoding() local
77 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_proprietaryEncoding()
82 String expected = sXmlDocDecl + "<image-descriptor version=\"1.0\">\r\n" in testBuildImageDescriptor_transformationConstantStretch() local
93 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_transformationConstantStretch()
98 String expected = sXmlDocDecl + "<image-descriptor version=\"1.0\">\r\n" in testBuildImageDescriptor_transformationConstantCrop() local
109 Assert.assertEquals(expected, descriptor.toString()); in testBuildImageDescriptor_transformationConstantCrop()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkInfo_DetailedStateTest.java39 DetailedState[] expected = DetailedState.values(); in testValues() local
40 assertEquals(13, expected.length); in testValues()
41 assertEquals(DetailedState.IDLE, expected[0]); in testValues()
42 assertEquals(DetailedState.SCANNING, expected[1]); in testValues()
43 assertEquals(DetailedState.CONNECTING, expected[2]); in testValues()
44 assertEquals(DetailedState.AUTHENTICATING, expected[3]); in testValues()
45 assertEquals(DetailedState.OBTAINING_IPADDR, expected[4]); in testValues()
46 assertEquals(DetailedState.CONNECTED, expected[5]); in testValues()
47 assertEquals(DetailedState.SUSPENDED, expected[6]); in testValues()
48 assertEquals(DetailedState.DISCONNECTING, expected[7]); in testValues()
[all …]
DStaticIpConfigurationTest.java160 LinkProperties expected = new LinkProperties(); in testToLinkProperties() local
161 expected.setInterfaceName(IFACE); in testToLinkProperties()
164 assertEquals(expected, s.toLinkProperties(IFACE)); in testToLinkProperties()
168 expected.addLinkAddress(ADDR); in testToLinkProperties()
169 expected.addRoute(connectedRoute); in testToLinkProperties()
170 assertEquals(expected, s.toLinkProperties(IFACE)); in testToLinkProperties()
174 expected.addRoute(defaultRoute); in testToLinkProperties()
175 assertEquals(expected, s.toLinkProperties(IFACE)); in testToLinkProperties()
178 expected.removeRoute(defaultRoute); in testToLinkProperties()
180 expected.addRoute(defaultRoute); in testToLinkProperties()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/util/
DConnectivityPacketSummaryTest.java62 final String expected = in testParseICMPv6DADProbe() local
67 assertEquals(expected, getSummary(packet)); in testParseICMPv6DADProbe()
84 final String expected = in testParseICMPv6RS() local
89 assertEquals(expected, getSummary(packet)); in testParseICMPv6RS()
117 final String expected = in testParseICMPv6RA() local
122 assertEquals(expected, getSummary(packet)); in testParseICMPv6RA()
140 final String expected = in testParseICMPv6NS() local
145 assertEquals(expected, getSummary(packet)); in testParseICMPv6NS()
165 final String expected = in testInvalidICMPv6NDLength() local
170 assertEquals(expected, getSummary(packet)); in testInvalidICMPv6NDLength()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/
DRefinedStatsTest.java82 PersistableBundle expected = new PersistableBundle(); in testAddNetworkStats_toPersistableBundle() local
83 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_START_MILLIS, 10_000); in testAddNetworkStats_toPersistableBundle()
84 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_END_MILLIS, 20_000); in testAddNetworkStats_toPersistableBundle()
85 expected.putInt(Constants.CONNECTIVITY_BUNDLE_KEY_SIZE, 2); in testAddNetworkStats_toPersistableBundle()
86 expected.putIntArray(Constants.CONNECTIVITY_BUNDLE_KEY_UID, new int[] {UID_0, UID_1}); in testAddNetworkStats_toPersistableBundle()
87 expected.putStringArray(Constants.CONNECTIVITY_BUNDLE_KEY_PACKAGES, in testAddNetworkStats_toPersistableBundle()
89 expected.putIntArray(Constants.CONNECTIVITY_BUNDLE_KEY_TAG, new int[] {TAG_1, TAG_NONE}); in testAddNetworkStats_toPersistableBundle()
90 expected.putLongArray(Constants.CONNECTIVITY_BUNDLE_KEY_RX_BYTES, new long[] {14096, 4095}); in testAddNetworkStats_toPersistableBundle()
91 expected.putLongArray(Constants.CONNECTIVITY_BUNDLE_KEY_TX_BYTES, new long[] {12048, 2047}); in testAddNetworkStats_toPersistableBundle()
92 assertThat(bundleToXml(result)).isEqualTo(bundleToXml(expected)); in testAddNetworkStats_toPersistableBundle()
[all …]
/packages/modules/adb/
Dadb_io_test.cpp46 const char expected[] = "Foobar"; in POSIX_TEST() local
50 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); in POSIX_TEST()
54 char buf[sizeof(expected)] = {}; in POSIX_TEST()
56 EXPECT_STREQ(expected, buf); in POSIX_TEST()
60 const char expected[] = "Foobar"; in POSIX_TEST() local
64 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); in POSIX_TEST()
68 char buf[sizeof(expected) + 1] = {}; in POSIX_TEST()
85 std::string expected(input); in POSIX_TEST() local
86 expected.pop_back(); in POSIX_TEST()
87 EXPECT_STREQ(expected.c_str(), buf); in POSIX_TEST()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothDeviceManagerTest.java267 private synchronized void assertSettingsContains(String expected) { in assertSettingsContains() argument
268 Assert.assertTrue(expected != null); in assertSettingsContains()
271 Assert.assertEquals(expected, settings); in assertSettingsContains()
274 private void assertDeviceList(List<String> expected) { in assertDeviceList() argument
276 ArrayList<BluetoothDevice> expectedDevices = makeDeviceList(expected); in assertDeviceList()
480 ArrayList<String> expected = new ArrayList(SMALL_DEVICE_LIST); in testRemoveDeviceFront_deviceNoLongerInPriorityList() local
481 expected.remove(0); in testRemoveDeviceFront_deviceNoLongerInPriorityList()
482 assertDeviceList(expected); in testRemoveDeviceFront_deviceNoLongerInPriorityList()
501 ArrayList<String> expected = new ArrayList(SMALL_DEVICE_LIST); in testRemoveDeviceMiddle_deviceNoLongerInPriorityList() local
502 expected.remove(1); in testRemoveDeviceMiddle_deviceNoLongerInPriorityList()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java90 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFile() local
94 assertEquals(expected.getAbsolutePath(), actual); in testGenerateSaveFile()
111 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFileNoExtension() local
115 assertEquals(expected.getAbsolutePath(), actual); in testGenerateSaveFileNoExtension()
119 final File expected = new File(getContext().getFilesDir(), "meow"); in testGenerateSaveFileHint() local
120 final String hint = Uri.fromFile(expected).toString(); in testGenerateSaveFileHint()
125 assertEquals(expected.getAbsolutePath(), actual); in testGenerateSaveFileHint()
129 final File expected = new File(getContext().getFilesDir(), "real.mp4"); in testGenerateSaveFileDisposition() local
133 assertEquals(expected.getAbsolutePath(), actual); in testGenerateSaveFileDisposition()
191 } catch (SecurityException expected) { in testCheckDestinationFilePathRestrictions_noPermission()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DDiagnosticJsonTestUtils.java30 VehiclePropValue expected = new VehiclePropValue(); in buildEmptyVehiclePropertyValue() local
31 expected.prop = expectedProperty; in buildEmptyVehiclePropertyValue()
32 expected.timestamp = expectedTimestamp; in buildEmptyVehiclePropertyValue()
33 expected.value = new RawPropValues(); in buildEmptyVehiclePropertyValue()
36 expected.value.int32Values = new int[size]; in buildEmptyVehiclePropertyValue()
38 expected.value.int32Values[i] = 0; in buildEmptyVehiclePropertyValue()
41 expected.value.floatValues = new float[size]; in buildEmptyVehiclePropertyValue()
43 expected.value.floatValues[i] = 0f; in buildEmptyVehiclePropertyValue()
45 expected.value.int64Values = new long[0]; in buildEmptyVehiclePropertyValue()
46 expected.value.byteValues = new byte[0]; in buildEmptyVehiclePropertyValue()
[all …]
/packages/apps/Camera2/tests/src/com/android/camera/unittest/
DCameraUnitTest.java31 int[] expected; in testPrepareMatrix() local
35 expected = new int[] {0, 0, 400, 240, 800, 480, 400, 480, 100, 300}; in testPrepareMatrix()
37 assertEquals(expected, points); in testPrepareMatrix()
41 expected = new int[] {800, 0, 400, 240, 0, 480, 0, 240, 300, 60}; in testPrepareMatrix()
43 assertEquals(expected, points); in testPrepareMatrix()
47 expected = new int[] {800, 480, 400, 240, 0, 0, 400, 0, 700, 180}; in testPrepareMatrix()
49 assertEquals(expected, points); in testPrepareMatrix()
53 expected = new int[] {0, 480, 400, 240, 800, 0, 400, 0, 100, 180}; in testPrepareMatrix()
55 assertEquals(expected, points); in testPrepareMatrix()
58 private void assertEquals(int expected[], float[] actual) { in assertEquals() argument
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DUtilsTest.java36 String expected = "000001, 000002, 0000800000"; in testRoamingConsortiumsToStringLong() local
38 assertEquals(expected, result); in testRoamingConsortiumsToStringLong()
49 String expected = "000001, 000002, 0000800000"; in testRoamingConsortiumsToStringCollection() local
51 assertEquals(expected, result); in testRoamingConsortiumsToStringCollection()
77 String expected = "ab cd ef"; in testToHexString() local
79 assertEquals(expected, result.toLowerCase()); in testToHexString()
87 String expected = "abcdef"; in testToHex() local
89 assertEquals(expected, result.toLowerCase()); in testToHex()
98 byte[] expected = {(byte) 0xab, (byte) 0xcd}; in testHexToBytes()
100 assertArrayEquals(expected, result); in testHexToBytes()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DAssert.java106 public static void equals(final int expected, final int actual) { in equals() argument
107 if (expected != actual) { in equals()
108 fail("Expected " + expected + " but got " + actual, false); in equals()
112 public static void equals(final long expected, final long actual) { in equals() argument
113 if (expected != actual) { in equals()
114 fail("Expected " + expected + " but got " + actual, false); in equals()
118 public static void equals(final Object expected, final Object actual) { in equals() argument
119 if (expected != actual in equals()
120 && (expected == null || actual == null || !expected.equals(actual))) { in equals()
121 fail("Expected " + expected + " but got " + actual, false); in equals()
[all …]

12345678910>>...31