Home
last modified time | relevance | path

Searched refs:assertNotEquals (Results 1 – 25 of 104) sorted by relevance

12345

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkTest.java21 import static org.junit.Assert.assertNotEquals;
133 assertNotEquals(0, one.hashCode()); in testGetNetworkHandle()
134 assertNotEquals(0, two.hashCode()); in testGetNetworkHandle()
135 assertNotEquals(0, three.hashCode()); in testGetNetworkHandle()
138 assertNotEquals(one.hashCode(), two.hashCode()); in testGetNetworkHandle()
139 assertNotEquals(one.hashCode(), three.hashCode()); in testGetNetworkHandle()
140 assertNotEquals(two.hashCode(), three.hashCode()); in testGetNetworkHandle()
143 assertNotEquals(0, one.getNetworkHandle()); in testGetNetworkHandle()
144 assertNotEquals(0, two.getNetworkHandle()); in testGetNetworkHandle()
145 assertNotEquals(0, three.getNetworkHandle()); in testGetNetworkHandle()
[all …]
DTcpKeepalivePacketDataTest.kt28 import kotlin.test.assertNotEquals in <lambda>()
59 assertNotEquals(makeData(srcAddress = parseNumericAddress("192.0.2.124")), makeData()) in <lambda>()
60 assertNotEquals(makeData(srcPort = 1235), makeData()) in <lambda>()
61 assertNotEquals(makeData(dstAddress = parseNumericAddress("192.0.2.232")), makeData()) in <lambda>()
62 assertNotEquals(makeData(dstPort = 4322), makeData()) in <lambda>()
64 assertNotEquals(makeData(tcpSeq = 136), makeData()) in <lambda>()
65 assertNotEquals(makeData(tcpAck = 247), makeData()) in <lambda>()
66 assertNotEquals(makeData(tcpWnd = 1235), makeData()) in <lambda>()
67 assertNotEquals(makeData(tcpWndScale = 3), makeData()) in <lambda>()
68 assertNotEquals(makeData(ipTos = 0x14), makeData()) in <lambda>()
[all …]
DConnectivityDiagnosticsManagerTest.java28 import static org.junit.Assert.assertNotEquals;
161 assertNotEquals( in testConnectivityReportEquals()
169 assertNotEquals( in testConnectivityReportEquals()
177 assertNotEquals( in testConnectivityReportEquals()
185 assertNotEquals( in testConnectivityReportEquals()
193 assertNotEquals( in testConnectivityReportEquals()
248 assertNotEquals( in testDataStallReportEquals()
257 assertNotEquals( in testDataStallReportEquals()
266 assertNotEquals( in testDataStallReportEquals()
275 assertNotEquals( in testDataStallReportEquals()
[all …]
DLinkAddressTest.java36 import static org.junit.Assert.assertNotEquals;
78 assertNotEquals(0, RT_SCOPE_HOST); in testConstants()
79 assertNotEquals(0, RT_SCOPE_LINK); in testConstants()
80 assertNotEquals(0, RT_SCOPE_SITE); in testConstants()
82 assertNotEquals(0, IFA_F_DEPRECATED); in testConstants()
83 assertNotEquals(0, IFA_F_PERMANENT); in testConstants()
84 assertNotEquals(0, IFA_F_TENTATIVE); in testConstants()
331 assertNotEquals(l1.hashCode(), l2.hashCode()); in testHashCode()
335 assertNotEquals(l1.hashCode(), l2.hashCode()); in testHashCode()
DNattKeepalivePacketDataTest.kt32 import org.junit.Assert.assertNotEquals
101 assertNotEquals(nattKeepalivePacket(dstAddress = TEST_SRC_ADDRV4), nattKeepalivePacket()) in testEquals()
102 assertNotEquals(nattKeepalivePacket(srcAddress = TEST_DST_ADDRV4), nattKeepalivePacket()) in testEquals()
104 assertNotEquals(nattKeepalivePacket(srcPort = TEST_PORT2), nattKeepalivePacket()) in testEquals()
DNetworkCapabilitiesTest.java71 import static org.junit.Assert.assertNotEquals;
190 assertNotEquals("", nc1.describeImmutableDifferences(nc2)); in testDescribeImmutableDifferences()
212 assertNotEquals("", nc1.describeImmutableDifferences(nc2)); in testDescribeImmutableDifferences()
220 assertNotEquals("", nc1.describeImmutableDifferences(nc2)); in testDescribeImmutableDifferences()
335 assertNotEquals(nc, new NetworkCapabilities()); in testSetAllowedUids()
588 assertNotEquals(nc1, nc2); in testEqualsNetCapabilities()
718 assertNotEquals(nc1, nc2); in testEqualsForUnderlyingNetworks()
722 assertNotEquals(nc1, nc2); in testEqualsForUnderlyingNetworks()
726 assertNotEquals(nc1, nc2); in testEqualsForUnderlyingNetworks()
790 assertNotEquals(nc1, nc2); in testSet()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseTest.kt30 import kotlin.test.assertNotEquals
66 assertNotEquals(lease, DhcpLease(null, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, in testEquals()
68 assertNotEquals(lease, DhcpLease(byteArrayOf(42), TEST_HWADDR, TEST_INETADDR, in testEquals()
72 assertNotEquals(lease, DhcpLease(TEST_CLIENT_ID, MacAddress.fromString("12:34:56:78:9A:0B"), in testEquals()
76 assertNotEquals(lease, DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, in testEquals()
81 assertNotEquals(lease, DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, 24, in testEquals()
85 assertNotEquals(lease, DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, in testEquals()
89 assertNotEquals(lease, DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, in testEquals()
91 assertNotEquals(lease, DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, in testEquals()
/packages/modules/adb/fastdeploy/deployagent/test/com/android/fastdeploy/
DApkArchiveTest.java20 import static org.junit.Assert.assertNotEquals;
45 assertNotEquals(cdLoc, null); in testApkArchiveSizes()
51 assertNotEquals(sigLoc, null); in testApkArchiveSizes()
61 assertNotEquals(dump, null); in testApkArchiveDump()
62 assertNotEquals(dump.cd, null); in testApkArchiveDump()
63 assertNotEquals(dump.signature, null); in testApkArchiveDump()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/util/
DRecentsOrientedStateTest.java25 import static org.junit.Assert.assertNotEquals;
59 assertNotEquals(mR1.getStateId(), mR2.getStateId()); in stateId_changesWithFlags()
69 assertNotEquals(mR1.getStateId(), mR2.getStateId()); in stateId_changesWithRecentsRotation()
79 assertNotEquals(mR1.getStateId(), mR2.getStateId()); in stateId_changesWithDisplayRotation()
82 assertNotEquals(mR1.getStateId(), mR2.getStateId()); in stateId_changesWithDisplayRotation()
85 assertNotEquals(mR1.getStateId(), mR2.getStateId()); in stateId_changesWithDisplayRotation()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DPrivateAddressCoordinatorTest.java30 import static org.junit.Assert.assertNotEquals;
120 assertNotEquals(hotspotPrefix, bluetoothPrefix); in testRequestDownstreamAddressWithoutUsingLastAddress()
125 assertNotEquals(hotspotPrefix, testDupRequest); in testRequestDownstreamAddressWithoutUsingLastAddress()
126 assertNotEquals(bluetoothPrefix, testDupRequest); in testRequestDownstreamAddressWithoutUsingLastAddress()
132 assertNotEquals(usbPrefix, bluetoothPrefix); in testRequestDownstreamAddressWithoutUsingLastAddress()
133 assertNotEquals(usbPrefix, hotspotPrefix); in testRequestDownstreamAddressWithoutUsingLastAddress()
173 assertNotEquals(asIpPrefix(mBluetoothAddress), hotspotPrefix); in testReservedPrefix()
182 assertNotEquals(asIpPrefix(mBluetoothAddress), usbPrefix); in testReservedPrefix()
183 assertNotEquals(hotspotPrefix, usbPrefix); in testReservedPrefix()
192 assertNotEquals(asIpPrefix(mLegacyWifiP2pAddress), etherPrefix); in testReservedPrefix()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/common/android/net/
DTetheredClientTest.kt30 import kotlin.test.assertNotEquals
63 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress()
69 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress()
75 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress()
81 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress()
87 assertNotEquals(makeTestClient(), TetheredClient( in makeLinkAddress()
/packages/modules/Connectivity/tests/unit/java/android/net/
DVpnTransportInfoTest.java25 import static org.junit.Assert.assertNotEquals;
62 assertNotEquals(v11, v12); in testEqualsAndHashCode()
63 assertNotEquals(v13, v14); in testEqualsAndHashCode()
64 assertNotEquals(v14, v15); in testEqualsAndHashCode()
65 assertNotEquals(v14, v21); in testEqualsAndHashCode()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMatrixTest.java20 import static org.junit.Assert.assertNotEquals;
200 assertNotEquals(m1, m2); in testCopy()
201 assertNotEquals(m1, m1.transpose()); in testCopy()
202 assertNotEquals(m1.toString(), m2.toString()); in testCopy()
203 assertNotEquals(m1, null); in testCopy()
204 assertNotEquals(m1, "a"); in testCopy()
/packages/modules/GeoTZ/common/src/test/java/com/android/timezone/location/common/
DPiiLoggablesTest.java23 import static org.junit.Assert.assertNotEquals;
48 assertNotEquals(piiLoggable, PiiLoggables.fromString("Hello")); in fromString_null()
59 assertNotEquals(piiLoggable, PiiLoggables.fromString(string2)); in fromString()
68 assertNotEquals(piiLoggableValue, PiiLoggables.fromPiiValue("Hello")); in fromPiiValue_null()
80 assertNotEquals(piiLoggableValue, PiiLoggables.fromPiiValue(differentPiiValue)); in fromPiiValue()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DConntrackMonitorTest.java30 import static org.junit.Assert.assertNotEquals;
243 assertNotEquals(e, typeNotEqual); in testConntrackEventNotEquals()
247 assertNotEquals(e, tupleOrigNotEqual); in testConntrackEventNotEquals()
251 assertNotEquals(e, tupleReplyNotEqual); in testConntrackEventNotEquals()
255 assertNotEquals(e, statusNotEqual); in testConntrackEventNotEquals()
259 assertNotEquals(e, timeoutSecNotEqual); in testConntrackEventNotEquals()
/packages/modules/Connectivity/tests/common/java/android/net/apf/
DApfCapabilitiesTest.java24 import static org.junit.Assert.assertNotEquals;
71 assertNotEquals(new ApfCapabilities(2, 2, 3), new ApfCapabilities(1, 2, 3)); in testEquals()
72 assertNotEquals(new ApfCapabilities(1, 3, 3), new ApfCapabilities(1, 2, 3)); in testEquals()
73 assertNotEquals(new ApfCapabilities(1, 2, 4), new ApfCapabilities(1, 2, 3)); in testEquals()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiInfoTest.java22 import static org.junit.Assert.assertNotEquals;
628 assertNotEquals(info1, info2); in testWifiInfoEquals()
632 assertNotEquals(info1, info2); in testWifiInfoEquals()
639 assertNotEquals(info1, info2); in testWifiInfoEquals()
643 assertNotEquals(info1, info2); in testWifiInfoEquals()
650 assertNotEquals(info1, info2); in testWifiInfoEquals()
668 assertNotEquals(info1, info2); in testWifiInfoEqualsWithInfoElements()
678 assertNotEquals(info1, info2); in testWifiInfoEqualsWithInfoElements()
696 assertNotEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
700 assertNotEquals(info1.hashCode(), info2.hashCode()); in testWifiInfoHashcode()
[all …]
DWifiClientTest.java23 import static org.junit.Assert.assertNotEquals;
72 assertNotEquals(writeWifiClient, writeWifiClientNotEquals); in testWifiClientNotEquals()
73 assertNotEquals(writeWifiClient.hashCode(), writeWifiClientNotEquals.hashCode()); in testWifiClientNotEquals()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/pps/
DCredentialTest.java21 import static org.junit.Assert.assertNotEquals;
578 assertNotEquals(simCred.getUniqueId(), userCred.getUniqueId()); in testUniqueIdDifferentForDifferentCredentialTypes()
579 assertNotEquals(simCred.getUniqueId(), certCred.getUniqueId()); in testUniqueIdDifferentForDifferentCredentialTypes()
580 assertNotEquals(certCred.getUniqueId(), userCred.getUniqueId()); in testUniqueIdDifferentForDifferentCredentialTypes()
592 assertNotEquals(simCred1.getUniqueId(), simCred2.getUniqueId()); in testUniqueIdDifferentForSimCredentialsWithDifferentValues()
604 assertNotEquals(userCred1.getUniqueId(), userCred2.getUniqueId()); in testUniqueIdDifferentForUserCredentialsWithDifferentUsername()
634 assertNotEquals(certCred1.getUniqueId(), certCred2.getUniqueId()); in testUniqueIdDifferentForCertCredentialsWithDifferentValues()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSocketConfigTest.java21 import static org.junit.Assert.assertNotEquals;
63 assertNotEquals(buildTestConfig(), new IkeSocketConfig(mock(Network.class), DUMMY_DSCP)); in testNotEqualsIfNetworkIsDifferent()
69 assertNotEquals(buildTestConfig(), new IkeSocketConfig(mMockNetwork, dscp)); in testNotEqualsIfDscpIsDifferent()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/
DSuffixTableRangeTest.java23 import static org.junit.Assert.assertNotEquals;
59 assertNotEquals(tzS2Range, tzS2Range3); in equalsAndHashcode()
63 assertNotEquals(tzS2Range, tzS2Range4); in equalsAndHashcode()
DTzS2RangeTest.java24 import static org.junit.Assert.assertNotEquals;
62 assertNotEquals(tzS2Range, tzS2Range3); in equalsAndHashcode()
66 assertNotEquals(tzS2Range, tzS2Range4); in equalsAndHashcode()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapDataTest.java23 import static org.junit.Assert.assertNotEquals;
76 assertNotEquals(eapData, eapDataDifferent); in testEquals()
83 assertNotEquals(0, eapData.hashCode()); in testHashCode()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastResourcesTest.java20 import static org.junit.Assert.assertNotEquals;
97 assertNotEquals(0, getCmasCategoryResId(new SmsCbCmasInfo(0, c, 0, 0, 0, 0))); in testGetCmasCategoryResId()
151 assertNotEquals(expectedResult, result); in testGetDialogTitleResource()
165 assertNotEquals(0, getCmasResponseResId(new SmsCbCmasInfo(0, 0, r, 0, 0, 0))); in testGetCmasResponseResId()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DStaticIpConfigurationTest.java21 import static org.junit.Assert.assertNotEquals;
143 assertNotEquals(s, s2); in testHashCodeAndEquals()
147 assertNotEquals(s, s2); in testHashCodeAndEquals()
151 assertNotEquals(s, s2); in testHashCodeAndEquals()
155 assertNotEquals(s, s2); in testHashCodeAndEquals()

12345