/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpLeaseTest.kt | 36 private val TEST_CLIENT_ID = byteArrayOf(0, 1, 2, 127) constant 46 val lease = DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, in testToParcelable() 60 val lease = DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, in testEquals() 62 assertEquals(lease, DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, 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/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/hal/ |
D | RemoteAccessHalWrapperUnitTest.java | 60 private static final String TEST_CLIENT_ID = "test client id"; field in RemoteAccessHalWrapperUnitTest 264 mHalWrapper.unscheduleTask(TEST_CLIENT_ID, TEST_SCHEDULE_ID); in testUnscheduleTask() 266 verify(mRemoteAccessHal).unscheduleTask(TEST_CLIENT_ID, TEST_SCHEDULE_ID); in testUnscheduleTask() 275 TEST_CLIENT_ID, TEST_SCHEDULE_ID)); in testUnscheduleTask_remoteException() 285 TEST_CLIENT_ID, TEST_SCHEDULE_ID)); in testUnscheduleTask_serviceSpecificException() 292 mHalWrapper.unscheduleAllTasks(TEST_CLIENT_ID); in testUnscheduleAllTasks() 294 verify(mRemoteAccessHal).unscheduleAllTasks(TEST_CLIENT_ID); in testUnscheduleAllTasks() 302 assertThrows(RemoteException.class, () -> mHalWrapper.unscheduleAllTasks(TEST_CLIENT_ID)); in testUnscheduleAllTasks_remoteException() 311 TEST_CLIENT_ID)); in testUnscheduleAllTasks_serviceSpecificException() 318 when(mRemoteAccessHal.isTaskScheduled(TEST_CLIENT_ID, TEST_SCHEDULE_ID)).thenReturn(true); in testIsTaskScheduled() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | IpMemoryStoreTest.java | 64 private static final String TEST_CLIENT_ID = "testClientId"; field in IpMemoryStoreTest 147 mStore.storeBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME, b, in testPrivateData() 151 verify(mMockService, times(1)).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testPrivateData() 154 mStore.retrieveBlob(l2Key, TEST_CLIENT_ID, TEST_OTHER_DATA_NAME, in testPrivateData() 162 verify(mMockService, times(1)).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testPrivateData() 217 mStore.storeBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME, b, in testEnqueuedIpMsRequests() 220 mStore.retrieveBlob(l2Key, TEST_CLIENT_ID, TEST_OTHER_DATA_NAME, in testEnqueuedIpMsRequests() 236 inOrder.verify(mMockService).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testEnqueuedIpMsRequests() 238 inOrder.verify(mMockService).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testEnqueuedIpMsRequests() 263 mStore.storeBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME, b, in testEnqueuedIpMsRequestsWithException() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/ |
D | IpMemoryStoreServiceTest.java | 89 private static final String TEST_CLIENT_ID = "testClientId"; field in IpMemoryStoreServiceTest 396 doLatched(timeoutMessage, latch -> mService.storeBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME, 434 mService.mDb, "fakeKey" + i, TEST_CLIENT_ID, TEST_DATA_NAME, 560 mService.retrieveBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME, onBlobRetrieved( 572 mService.retrieveBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME + "2", onBlobRetrieved( 889 mService.retrieveBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME, onBlobRetrieved(
|