Home
last modified time | relevance | path

Searched refs:checkThat (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DTlvBufferUtilsTest.java51 collector.checkThat("tlv11-correct-construction", in testTlvBuild()
60 collector.checkThat("tlv01-correct-construction", in testTlvBuild()
63 collector.checkThat("tlv11-valid", in testTlvBuild()
66 collector.checkThat("tlv01-valid", in testTlvBuild()
90 collector.checkThat("tlvData-correct-length", tlvData.length, in testTlvListOperations()
92 collector.checkThat("parsedList-correct-length", parsedList.size(), equalTo(4)); in testTlvListOperations()
93 collector.checkThat("parsedList-entry1", parsedList.get(0), equalTo(entry1)); in testTlvListOperations()
94 collector.checkThat("parsedList-entry2", parsedList.get(1), equalTo(entry2)); in testTlvListOperations()
95 collector.checkThat("parsedList-entry3", parsedList.get(2), equalTo(entry3)); in testTlvListOperations()
96 collector.checkThat("parsedList-entry4", parsedList.get(3), equalTo(new byte[0])); in testTlvListOperations()
[all …]
DWifiAwareManagerTest.java333 collector.checkThat("match-filter-size", parsedMatchFilter.size(), in testPublishFlow()
335 collector.checkThat("match-filter-entry0", parsedMatchFilter.get(0), in testPublishFlow()
337 collector.checkThat("match-filter-entry1", parsedMatchFilter.get(1), in testPublishFlow()
566 collector.checkThat("mClusterHigh", ConfigRequest.CLUSTER_ID_MAX, in testConfigRequestBuilderDefaults()
568 collector.checkThat("mClusterLow", ConfigRequest.CLUSTER_ID_MIN, in testConfigRequestBuilderDefaults()
570 collector.checkThat("mMasterPreference", 0, in testConfigRequestBuilderDefaults()
572 collector.checkThat("mSupport5gBand", false, equalTo(configRequest.mSupport5gBand)); in testConfigRequestBuilderDefaults()
573 collector.checkThat("mDiscoveryWindowInterval.length", 2, in testConfigRequestBuilderDefaults()
575 collector.checkThat("mDiscoveryWindowInterval[2.4GHz]", ConfigRequest.DW_INTERVAL_NOT_INIT, in testConfigRequestBuilderDefaults()
577 collector.checkThat("mDiscoveryWindowInterval[5Hz]", ConfigRequest.DW_INTERVAL_NOT_INIT, in testConfigRequestBuilderDefaults()
[all …]
DWifiAwareAgentNetworkSpecifierTest.java72 collector.checkThat("No match expected", ns.satisfiedBy(dut), equalTo(false)); in testEmptyDoesntMatchAnything()
84 collector.checkThat("Match expected", nsThis.satisfiedBy(dut), equalTo(true)); in testSingleMatch()
85 collector.checkThat("No match expected", nsOther.satisfiedBy(dut), equalTo(false)); in testSingleMatch()
106 collector.checkThat("Match expected", nsThis.satisfiedBy(dut), equalTo(true)); in testMultipleMatchesAllMembers()
108 collector.checkThat("No match expected", nsOther.satisfiedBy(dut), equalTo(false)); in testMultipleMatchesAllMembers()
130 collector.checkThat("Match expected", oldNs.satisfiedBy(newNs), equalTo(true)); in testMatchSuperset()
152 collector.checkThat("Match unexpected", oldNs.satisfiedBy(newNs), equalTo(false)); in testNoMatchSubset()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java122 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics()
128 collector.checkThat(log.availableTimeMs, equalTo(6L)); in testEnableDisableUsageMetrics()
136 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics()
142 collector.checkThat(log.availableTimeMs, equalTo(8L)); // the partial record of 2ms in testEnableDisableUsageMetrics()
151 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics()
155 collector.checkThat(log.availableTimeMs, equalTo(6L)); // the remnant record of 6ms in testEnableDisableUsageMetrics()
160 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics()
183 collector.checkThat(countAllHistogramSamples(log.histogramAwareEnabledDurationMs), in testEnableDisableAwareMetrics()
189 collector.checkThat(log.enabledTimeMs, equalTo(6L)); in testEnableDisableAwareMetrics()
197 collector.checkThat(countAllHistogramSamples(log.histogramAwareEnabledDurationMs), in testEnableDisableAwareMetrics()
[all …]
DWifiAwareNativeApiTest.java139 collector.checkThat("validDiscoveryWindowIntervalVal-5", false, in testEnableAndConfigPowerSettingsDefaults()
142 collector.checkThat("validDiscoveryWindowIntervalVal-24", false, in testEnableAndConfigPowerSettingsDefaults()
161 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsNoneInteractive()
164 collector.checkThat("discoveryWindowIntervalVal-5", interactive5, in testEnableAndConfigPowerSettingsNoneInteractive()
167 collector.checkThat("validDiscoveryWindowIntervalVal-24", true, in testEnableAndConfigPowerSettingsNoneInteractive()
170 collector.checkThat("discoveryWindowIntervalVal-24", interactive24, in testEnableAndConfigPowerSettingsNoneInteractive()
189 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsIdle()
192 collector.checkThat("discoveryWindowIntervalVal-5", idle5, in testEnableAndConfigPowerSettingsIdle()
195 collector.checkThat("validDiscoveryWindowIntervalVal-24", false, in testEnableAndConfigPowerSettingsIdle()
212 collector.checkThat("validDiscoveryWindowIntervalVal-5", false, in testEnableAndConfigPowerSettingsDefaults_1_2()
[all …]
DWifiAwareStateManagerTest.java368 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testAwareDataPathInterfaceUpDown()
414 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageDisablesApis()
419 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageDisablesApis()
461 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageFlow()
473 collector.checkThat("num of clients", sparseArrayCaptor.getValue().size(), equalTo(1)); in testDisableUsageFlow()
478 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageFlow()
498 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageFlow()
504 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageFlow()
517 collector.checkThat("num of clients", sparseArrayCaptor.getValue().size(), equalTo(1)); in testDisableUsageFlow()
2376 collector.checkThat("Empty message contents", "", in testSendEmptyMessages()
[all …]
DWifiAwareDataPathStateManagerTest.java216 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in testCreateDeleteAllInterfaces()
242 collector.checkThat("interface deleted -- " + i, done[i], equalTo(true)); in testCreateDeleteAllInterfaces()
252 collector.checkThat("interface delete pre-create -- " + i, in testCreateDeleteAllInterfaces()
259 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in testCreateDeleteAllInterfaces()
1413 collector.checkThat("factory name", "WIFI_AWARE_FACTORY", in initOobDataPathEndPoint()
1450 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in initOobDataPathEndPoint()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttNativeTest.java128 collector.checkThat("number of entries", halRequest.size(), in testRangeRequest()
132 collector.checkThat("entry 0: MAC", rttConfig.addr, in testRangeRequest()
134 collector.checkThat("entry 0: rtt type", rttConfig.type, equalTo(RttType.TWO_SIDED)); in testRangeRequest()
135 collector.checkThat("entry 0: peer type", rttConfig.peer, equalTo(RttPeerType.AP)); in testRangeRequest()
136 collector.checkThat("entry 0: lci", rttConfig.mustRequestLci, equalTo(true)); in testRangeRequest()
137 collector.checkThat("entry 0: lcr", rttConfig.mustRequestLcr, equalTo(true)); in testRangeRequest()
140 collector.checkThat("entry 1: MAC", rttConfig.addr, in testRangeRequest()
142 collector.checkThat("entry 1: rtt type", rttConfig.type, equalTo(RttType.ONE_SIDED)); in testRangeRequest()
143 collector.checkThat("entry 1: peer type", rttConfig.peer, equalTo(RttPeerType.AP)); in testRangeRequest()
144 collector.checkThat("entry 1: lci", rttConfig.mustRequestLci, equalTo(true)); in testRangeRequest()
[all …]
DRttMetricsTest.java400 collector.checkThat("AP histogramIndividualStatus.length", in testRecordResultsStatuses()
448 collector.checkThat("Aware histogramIndividualStatus.length", in testRecordResultsStatuses()
474 collector.checkThat("histogramOverallStatus.length", log.histogramOverallStatus.length, in testRecordOverallStatus()
509 collector.checkThat(logPrefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket()
510 collector.checkThat(logPrefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket()
511 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoHistBucket()
517 collector.checkThat(logPrefix + ": statusType", bucket.statusType, equalTo(status)); in validateProtoOverallStatusHistBucket()
518 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoOverallStatusHistBucket()
524 collector.checkThat(logPrefix + ": statusType", bucket.statusType, equalTo(status)); in validateProtoIndividualStatusHistBucket()
525 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoIndividualStatusHistBucket()
[all …]
/frameworks/base/tests/utils/testutils/java/android/os/test/
DTestLooperTest.java89 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
91 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
93 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
95 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
147 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
149 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
176 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
178 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
180 collector.checkThat("3: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
210 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeTwice()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java110 collector.checkThat("Number of buckets #1", phb1.length, equalTo(hist1.size())); in testHistBucketing()
137 collector.checkThat("Number of buckets #2", phb2.length, equalTo(hist2.size())); in testHistBucketing()
174 collector.checkThat("Number of buckets", phb.length, equalTo(hist.size())); in testLinearHistBucketing()
187 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
193 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
198 collector.checkThat(prefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket()
199 collector.checkThat(prefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket()
200 collector.checkThat(prefix + ": count", bucket.count, equalTo(count)); in validateProtoHistBucket()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DHalDeviceManagerTest.java251 collector.checkThat(mDut.start(), equalTo(true)); in testWifiDeathAndRegistration()
279 collector.checkThat(mDut.start(), equalTo(true)); in testWifiFail()
351 collector.checkThat("NAN can't be created", nanIface2, IsNull.nullValue()); in testCacheMismatchError()
405 collector.checkThat("STA created", staIface, IsNull.notNullValue()); in testDuplicateAvailableRegistrations()
720 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApWithStaModeUpTestChipV1()
838 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApWithApModeUpTestChipV1()
936 collector.checkThat("allocated STA interface", staIface, IsNull.notNullValue()); in testCreateSameAndDiffPrioritiesTestChipV1()
942 collector.checkThat("STA2 should not be created", staIface2, IsNull.nullValue()); in testCreateSameAndDiffPrioritiesTestChipV1()
961 collector.checkThat("allocated P2P interface", p2pIface, IsNull.notNullValue()); in testCreateSameAndDiffPrioritiesTestChipV1()
985 collector.checkThat("allocated AP interface", apIface, IsNull.notNullValue()); in testCreateSameAndDiffPrioritiesTestChipV1()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraErrorCollector.java91 public <T> void checkThat(final T value, final Matcher<T> matcher) { in checkThat() method in CameraErrorCollector
92 super.checkThat(mCameraMsg, value, matcher); in checkThat()
102 public <T> void checkThat(final String reason, final T value, final Matcher<T> matcher) { in checkThat() method in CameraErrorCollector
103 super.checkThat(mCameraMsg + reason, value, matcher); in checkThat()
598 checkThat(msg, obj, CoreMatchers.notNullValue()); in expectNotNull()
735 checkThat(reason, value, CoreMatchers.not(expected)); in expectKeyValueNotEquals()
757 checkThat(reason, value, CoreMatchers.not(expected)); in expectKeyValueNotEquals()
780 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
804 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
958 checkThat(reason, expected, InMatcher.in(values)); in expectContains()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DPhoneWindowManagerInsetsTest.java128 mErrorCollector.checkThat("stableInsets", getStableInsetsLw(di), equalTo(new Rect( in verifyStableInsets()
133 mErrorCollector.checkThat("nonDecorInsets", getNonDecorInsetsLw(di), equalTo(new Rect( in verifyNonDecorInsets()
146 mErrorCollector.checkThat(what + ":width", width, in verifyConsistency()
148 mErrorCollector.checkThat(what + ":height", height, in verifyConsistency()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/utils/
DCoordinateTransformsTest.java90 mErrorCollector.checkThat("t(" + devicePoint + ")", in checkDevicePoint()