Home
last modified time | relevance | path

Searched refs:got (Results 1 – 25 of 36) sorted by relevance

12

/packages/modules/Connectivity/tests/common/java/android/net/metrics/
DIpConnectivityLogTest.java78 List<ConnectivityMetricsEvent> got = verifyEvents(6); in testLoggingEvents() local
79 assertEventsEqual(makeExpectedEvent(got.get(0).timestamp, 0, 0, null), got.get(0)); in testLoggingEvents()
80 assertEventsEqual(makeExpectedEvent(FAKE_TIME_STAMP, 0, 0, null), got.get(1)); in testLoggingEvents()
81 assertEventsEqual(makeExpectedEvent(got.get(2).timestamp, FAKE_NET_ID, in testLoggingEvents()
82 TRANSPORT_WIFI, null), got.get(2)); in testLoggingEvents()
83 assertEventsEqual(makeExpectedEvent(got.get(3).timestamp, FAKE_NET_ID, in testLoggingEvents()
84 TRANSPORT_WIFI, null), got.get(3)); in testLoggingEvents()
85 assertEventsEqual(makeExpectedEvent(got.get(4).timestamp, 0, 0, FAKE_INTERFACE_NAME), in testLoggingEvents()
86 got.get(4)); in testLoggingEvents()
88 TRANSPORT_WIFI, FAKE_INTERFACE_NAME), got.get(5)); in testLoggingEvents()
[all …]
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DMiscAsserts.kt39 fun <T> assertLength(expected: Int, got: Array<T>) = got.size.let { len -> in len()
40 assertEquals(expected, len, "Expected array of length $expected, but was $len for $got") in len()
43 fun <T> assertLength(expected: Int, got: List<T>) = got.size.let { len -> in len()
44 assertEquals(expected, len, "Expected list of length $expected, but was $len for $got") in len()
67 fun assertStringContains(got: String, want: String) { in assertStringContains()
68 assertTrue(got.contains(want), "$got did not contain \"${want}\"") in assertStringContains()
/packages/services/Car/tests/carservice_unit_test/src/android/car/os/
DCarPerformanceManagerUnitTest.java102 ThreadPolicyWithPriority got = mCarPerformanceManager.getThreadPriority(); in testGetThreadPriority() local
104 assertThat(got.getPolicy()).isEqualTo(expected.getPolicy()); in testGetThreadPriority()
105 assertThat(got.getPriority()).isEqualTo(expected.getPriority()); in testGetThreadPriority()
112 ThreadPolicyWithPriority got = mCarPerformanceManager.getThreadPriority(); in testGetThreadPriorityRemoteExceptionFromService() local
114 assertThat(got.getPolicy()).isEqualTo(ThreadPolicyWithPriority.SCHED_DEFAULT); in testGetThreadPriorityRemoteExceptionFromService()
115 assertThat(got.getPriority()).isEqualTo(0); in testGetThreadPriorityRemoteExceptionFromService()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetdEventListenerServiceTest.java130 String got = events2[i + 2]; in testWakeupEventLogging() local
131 assertStringContains(got, "WakeupEvent"); in testWakeupEventLogging()
132 assertStringContains(got, ((i == 8) ? "rmnet0" : "wlan0")); in testWakeupEventLogging()
133 assertStringContains(got, "uid: " + uids[i]); in testWakeupEventLogging()
150 String got = events3[i]; in testWakeupEventLogging() local
151 assertStringContains(got, "WakeupEvent"); in testWakeupEventLogging()
152 assertStringContains(got, "wlan0"); in testWakeupEventLogging()
153 assertStringContains(got, "uid: " + uid); in testWakeupEventLogging()
204 String got = flushStatistics(); in testWakeupStatsLogging() local
278 assertEquals(want, got); in testWakeupStatsLogging()
[all …]
DIpConnectivityEventBuilderTest.java505 IpConnectivityEvent got = IpConnectivityEventBuilder.toProto(stats); in testWakeupStatsSerialization() local
541 verifySerialization(want, got); in testWakeupStatsSerialization()
552 byte[] got = IpConnectivityEventBuilder.serialize(0, Arrays.asList(input)); in verifySerialization()
553 IpConnectivityLog log = IpConnectivityLog.parseFrom(got); in verifySerialization()
DIpConnectivityMetricsTest.java636 byte[] got = Base64.decode(output, Base64.DEFAULT); in verifySerialization()
638 IpConnectivityLogClass.IpConnectivityLog.parseFrom(got); in verifySerialization()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsEventLoggerTest.kt149 private fun assertStringContains(got: String, want: String) { in getLineCount()
150 assertTrue(got.contains(want), "Wanted: $want, but got: $got") in getLineCount()
153 private fun assertStringNotContains(got: String, unwant: String) { in assertStringNotContains()
154 assertFalse(got.contains(unwant), "Unwanted: $unwant, but got: $got") in assertStringNotContains()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DSharedLogTest.java124 String got = lines[i]; in verifyLogLines() local
126 assertTrue(String.format("'%s' did not contain '%s'", got, want), got.endsWith(want)); in verifyLogLines()
127 assertTrue(String.format("'%s' did not contain a %s timestamp", got, TIMESTAMP), in verifyLogLines()
128 got.replaceFirst(TIMESTAMP_PATTERN, TIMESTAMP).contains(TIMESTAMP)); in verifyLogLines()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsOperationRecorderTest.java205 JSONObject got = new JSONObject(mWriter.mMsg); in assertJsonMsgEquals() local
206 assertTrue(similar(expect, got)); in assertJsonMsgEquals()
214 private boolean similar(JSONObject expect, JSONObject got) { in similar() argument
216 if (!expect.keySet().equals(got.keySet())) { in similar()
222 Object valueGot = got.get(key); in similar()
DCarPropertyManagerTest.java1732 long got = mErrorEventCount - mErrorEventCdLatch.getCount(); in assertOnErrorEventCalled() local
1734 + CALLBACK_SHORT_TIMEOUT_MS + " ms, got: " + got in assertOnErrorEventCalled()
1741 long got = mErrorEventCount - mErrorEventCdLatch.getCount(); in assertOnErrorEventNotCalled() local
1743 + CALLBACK_SHORT_TIMEOUT_MS + " ms, got: " + got in assertOnErrorEventNotCalled()
1754 long got = mInitValueCount - mInitialValueCdLatch.getCount(); in assertRegisterCompleted() local
1756 + "before " + CALLBACK_SHORT_TIMEOUT_MS + " ms, got: " + got in assertRegisterCompleted()
1769 long got = mChangeEventCount - mChangeEventCdLatch.getCount(); in waitAndGetChangeEvents() local
1771 + CALLBACK_SHORT_TIMEOUT_MS + " ms, got: " + got in waitAndGetChangeEvents()
/packages/modules/Connectivity/tests/unit/java/android/net/
DMacAddressTest.java72 int got = MacAddress.macAddressType(t.addr); in testMacAddrTypes() local
74 Arrays.toString(t.addr), t.expectedType, got); in testMacAddrTypes()
75 assertEquals(msg, t.expectedType, got); in testMacAddrTypes()
77 if (got != MacAddress.TYPE_UNKNOWN) { in testMacAddrTypes()
78 assertEquals(got, MacAddress.fromBytes(t.addr).getAddressType()); in testMacAddrTypes()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java201 int got; in restoreDictionary() local
202 while ((got = gzip.read(tempData)) > 0) { in restoreDictionary()
203 baos.write(tempData, 0, got); in restoreDictionary()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTestUtils.java80 private static void assertReturnCodesEqual(String msg, int expected, int got) { in assertReturnCodesEqual() argument
81 assertEquals(msg, label(expected), label(got)); in assertReturnCodesEqual()
84 private static void assertReturnCodesEqual(int expected, int got) { in assertReturnCodesEqual() argument
85 assertEquals(label(expected), label(got)); in assertReturnCodesEqual()
DApfTest.java3130 public void assertEqualsIp(String expected, int got) throws Exception { in assertEqualsIp() argument
3133 assertEquals(want, got); in assertEqualsIp()
/packages/modules/Virtualization/vmbase/
Dsections.ld58 .got : {
59 *(.got)
/packages/modules/Virtualization/virtualizationservice/src/
Dmaintenance.rs387 let got = (*history.lock().unwrap()).clone(); in test_sk_state_batching() localVariable
389 got, in test_sk_state_batching()
403 let got = (*history.lock().unwrap()).clone(); in test_sk_state_no_batching() localVariable
404 assert_eq!(got, vec![SkOp::DeleteIds(vec![VM_ID1, VM_ID2, VM_ID3, VM_ID4, VM_ID5])]); in test_sk_state_no_batching()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java120 int got = is.read(buffer, done, size - done); in readFully() local
121 if (got <= 0) { in readFully()
124 done += got; in readFully()
/packages/modules/Virtualization/virtualizationservice/src/maintenance/
Dvmdb.rs628 let got = db.oldest_vm_ids_for_app(USER1, APP_A, 10).unwrap(); in test_remove_oldest_with_upgrade() localVariable
629 assert_eq!(got, want); in test_remove_oldest_with_upgrade()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java669 private void assertDhcpErrorCodes(int expected, int got) { in assertDhcpErrorCodes() argument
670 assertEquals(Integer.toHexString(expected), Integer.toHexString(got)); in assertDhcpErrorCodes()
/packages/apps/TV/libs/
Dtruth-0.45.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto413 // Indicates the number of times we got an interface down in client mode.
416 // Indicates the number of times we got an interface down in softap mode.
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/classifier/
Dprecomputed_test_app_list.csv8670 com.wb.goog.got.conquest 10247
/packages/modules/AdServices/adservices/apk/assets/classifier/
Dprecomputed_app_list.csv8670 com.wb.goog.got.conquest 10247
/packages/inputmethods/LatinIME/dictionaries/
Dlv_wordlist.combined.gz1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...
Dpl_wordlist.combined.gz

12