/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | TlvBufferUtilsTest.java | 52 collector.checkThat("tlv11-correct-construction", in testTlvBuild() 61 collector.checkThat("tlv01-correct-construction", in testTlvBuild() 64 collector.checkThat("tlv11-valid", in testTlvBuild() 67 collector.checkThat("tlv01-valid", in testTlvBuild() 83 collector.checkThat("initial", tlv.getArray(), equalTo(new byte[]{0, 1, 2, 1, 1, 104})); in testTlvReuse() 87 collector.checkThat("re-alloc", tlv.getArray(), equalTo(new byte[]{5, 1, 7})); in testTlvReuse() 109 collector.checkThat("tlvData-correct-length", tlvData.length, in testTlvListOperations() 111 collector.checkThat("parsedList-correct-length", parsedList.size(), equalTo(4)); in testTlvListOperations() 112 collector.checkThat("parsedList-entry1", parsedList.get(0), equalTo(entry1)); in testTlvListOperations() 113 collector.checkThat("parsedList-entry2", parsedList.get(1), equalTo(entry2)); in testTlvListOperations() [all …]
|
D | WifiAwareManagerTest.java | 341 collector.checkThat("match-filter-size", parsedMatchFilter.size(), in testPublishFlow() 343 collector.checkThat("match-filter-entry0", parsedMatchFilter.get(0), in testPublishFlow() 345 collector.checkThat("match-filter-entry1", parsedMatchFilter.get(1), in testPublishFlow() 574 collector.checkThat("mClusterHigh", ConfigRequest.CLUSTER_ID_MAX, in testConfigRequestBuilderDefaults() 576 collector.checkThat("mClusterLow", ConfigRequest.CLUSTER_ID_MIN, in testConfigRequestBuilderDefaults() 578 collector.checkThat("mMasterPreference", 0, in testConfigRequestBuilderDefaults() 580 collector.checkThat("mSupport5gBand", true, equalTo(configRequest.mSupport5gBand)); in testConfigRequestBuilderDefaults() 581 collector.checkThat("mSupport6gBand", false, equalTo(configRequest.mSupport6gBand)); in testConfigRequestBuilderDefaults() 582 collector.checkThat("mDiscoveryWindowInterval.length", 3, in testConfigRequestBuilderDefaults() 584 collector.checkThat("mDiscoveryWindowInterval[2.4GHz]", ConfigRequest.DW_INTERVAL_NOT_INIT, in testConfigRequestBuilderDefaults() [all …]
|
D | WifiAwareAgentNetworkSpecifierTest.java | 82 collector.checkThat("No match expected", ns.canBeSatisfiedBy(dut), equalTo(false)); in testEmptyDoesntMatchAnything() 94 collector.checkThat("Match expected", nsThis.canBeSatisfiedBy(dut), equalTo(true)); in testSingleMatch() 95 collector.checkThat("No match expected", nsOther.canBeSatisfiedBy(dut), equalTo(false)); in testSingleMatch() 116 collector.checkThat("Match expected", nsThis.canBeSatisfiedBy(dut), equalTo(true)); in testMultipleMatchesAllMembers() 118 collector.checkThat("No match expected", nsOther.canBeSatisfiedBy(dut), equalTo(false)); in testMultipleMatchesAllMembers() 140 collector.checkThat("Match expected", oldNs.canBeSatisfiedBy(newNs), equalTo(true)); in testMatchSuperset() 162 collector.checkThat("Match unexpected", oldNs.canBeSatisfiedBy(newNs), equalTo(false)); in testNoMatchSubset()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareNativeApiTest.java | 157 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsDefaults() 160 collector.checkThat("validDiscoveryWindowIntervalVal-24", true, in testEnableAndConfigPowerSettingsDefaults() 163 collector.checkThat("discoveryWindowIntervalVal-5", default5, in testEnableAndConfigPowerSettingsDefaults() 166 collector.checkThat("discoveryWindowIntervalVal-24", default24, in testEnableAndConfigPowerSettingsDefaults() 185 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsNoneInteractive() 188 collector.checkThat("discoveryWindowIntervalVal-5", interactive5, in testEnableAndConfigPowerSettingsNoneInteractive() 191 collector.checkThat("validDiscoveryWindowIntervalVal-24", true, in testEnableAndConfigPowerSettingsNoneInteractive() 194 collector.checkThat("discoveryWindowIntervalVal-24", interactive24, in testEnableAndConfigPowerSettingsNoneInteractive() 213 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsIdle() 216 collector.checkThat("discoveryWindowIntervalVal-5", idle5, in testEnableAndConfigPowerSettingsIdle() [all …]
|
D | WifiAwareMetricsTest.java | 128 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 134 collector.checkThat(log.availableTimeMs, equalTo(6L)); in testEnableDisableUsageMetrics() 142 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 148 collector.checkThat(log.availableTimeMs, equalTo(8L)); // the partial record of 2ms in testEnableDisableUsageMetrics() 157 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 161 collector.checkThat(log.availableTimeMs, equalTo(6L)); // the remnant record of 6ms in testEnableDisableUsageMetrics() 166 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 189 collector.checkThat(countAllHistogramSamples(log.histogramAwareEnabledDurationMs), in testEnableDisableAwareMetrics() 195 collector.checkThat(log.enabledTimeMs, equalTo(6L)); in testEnableDisableAwareMetrics() 203 collector.checkThat(countAllHistogramSamples(log.histogramAwareEnabledDurationMs), in testEnableDisableAwareMetrics() [all …]
|
D | WifiAwareStateManagerTest.java | 365 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testAwareDataPathInterfaceUpDown() 413 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageDisablesApis() 418 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageDisablesApis() 462 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageFlow() 475 collector.checkThat("num of clients", sparseArrayCaptor.getValue().size(), equalTo(1)); in testDisableUsageFlow() 480 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageFlow() 501 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageFlow() 507 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageFlow() 521 collector.checkThat("num of clients", sparseArrayCaptor.getValue().size(), equalTo(1)); in testDisableUsageFlow() 2575 collector.checkThat("Empty message contents", "", in testSendEmptyMessages() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 220 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in testCreateDeleteAllInterfaces() 246 collector.checkThat("interface deleted -- " + i, done[i], equalTo(true)); in testCreateDeleteAllInterfaces() 256 collector.checkThat("interface delete pre-create -- " + i, in testCreateDeleteAllInterfaces() 263 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in testCreateDeleteAllInterfaces() 1826 collector.checkThat("factory name", "WIFI_AWARE_FACTORY", in initOobDataPathEndPoint() 1862 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in initOobDataPathEndPoint()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttNativeTest.java | 147 collector.checkThat("number of entries", halRequest.size(), in testRangeRequest() 151 collector.checkThat("entry 0: MAC", rttConfig.addr, in testRangeRequest() 153 collector.checkThat("entry 0: rtt type", rttConfig.type, equalTo(RttType.TWO_SIDED)); in testRangeRequest() 154 collector.checkThat("entry 0: peer type", rttConfig.peer, equalTo(RttPeerType.AP)); in testRangeRequest() 155 collector.checkThat("entry 0: lci", rttConfig.mustRequestLci, equalTo(true)); in testRangeRequest() 156 collector.checkThat("entry 0: lcr", rttConfig.mustRequestLcr, equalTo(true)); in testRangeRequest() 159 collector.checkThat("entry 1: MAC", rttConfig.addr, in testRangeRequest() 161 collector.checkThat("entry 1: rtt type", rttConfig.type, equalTo(RttType.ONE_SIDED)); in testRangeRequest() 162 collector.checkThat("entry 1: peer type", rttConfig.peer, equalTo(RttPeerType.AP)); in testRangeRequest() 163 collector.checkThat("entry 1: lci", rttConfig.mustRequestLci, equalTo(true)); in testRangeRequest() [all …]
|
D | RttMetricsTest.java | 423 collector.checkThat("AP histogramIndividualStatus.length", in testRecordResultsStatuses() 471 collector.checkThat("Aware histogramIndividualStatus.length", in testRecordResultsStatuses() 497 collector.checkThat("histogramOverallStatus.length", log.histogramOverallStatus.length, in testRecordOverallStatus() 532 collector.checkThat(logPrefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket() 533 collector.checkThat(logPrefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket() 534 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoHistBucket() 540 collector.checkThat(logPrefix + ": statusType", bucket.statusType, equalTo(status)); in validateProtoOverallStatusHistBucket() 541 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoOverallStatusHistBucket() 547 collector.checkThat(logPrefix + ": statusType", bucket.statusType, equalTo(status)); in validateProtoIndividualStatusHistBucket() 548 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoIndividualStatusHistBucket() [all …]
|
/frameworks/base/tests/utils/testutils/java/android/os/test/ |
D | TestLooperTest.java | 89 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/ |
D | IntHistogramTest.java | 60 collector.checkThat(String.format("Unexpected bucket[%d] count!", expectedBucketIndex), in incrementValueAndVerify() 88 collector.checkThat("Unexpected number of non-empty buckets!", in testAddToHistogram() 93 collector.checkThat("Unexpected toString() result", in testAddToHistogram() 130 collector.checkThat("Unexpected number of non-empty buckets!", in testAddToHistogramWithGap() 135 collector.checkThat("Unexpected toString() result", in testAddToHistogramWithGap() 179 collector.checkThat("Unexpected number of non-empty buckets!", in testAddNegativeToHistogram() 185 collector.checkThat("Unexpected toString() result", in testAddNegativeToHistogram() 210 collector.checkThat("Unexpected number of non-empty buckets!", in testEmptyHistogram() 214 collector.checkThat("Unexpected toString() result", in testEmptyHistogram() 231 collector.checkThat("Unexpected number of non-empty buckets!", in testLength1Histogram() [all …]
|
D | MetricsUtilsTest.java | 115 collector.checkThat("Number of buckets #1", phb1.length, equalTo(hist1.size())); in testHistBucketing() 142 collector.checkThat("Number of buckets #2", phb2.length, equalTo(hist2.size())); in testHistBucketing() 179 collector.checkThat("Number of buckets", phb.length, equalTo(hist.size())); in testLinearHistBucketing() 192 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify() 198 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify() 203 collector.checkThat(prefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket() 204 collector.checkThat(prefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket() 205 collector.checkThat(prefix + ": count", bucket.count, equalTo(count)); in validateProtoHistBucket()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | HalDeviceManagerTest.java | 258 collector.checkThat(mDut.start(), equalTo(true)); in testWifiDeathAndRegistration() 286 collector.checkThat(mDut.start(), equalTo(true)); in testWifiFail() 356 collector.checkThat("NAN can't be created", nanIface2, IsNull.nullValue()); in testCacheMismatchError() 409 collector.checkThat("STA created", staIface, IsNull.notNullValue()); in testDuplicateAvailableRegistrations() 906 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApWithStaModeUpTestChipV1() 1023 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApWithApModeUpTestChipV1() 1120 collector.checkThat("allocated STA interface", staIface, IsNull.notNullValue()); in testCreateSameAndDiffPrioritiesTestChipV1() 1126 collector.checkThat("STA2 should not be created", staIface2, IsNull.nullValue()); in testCreateSameAndDiffPrioritiesTestChipV1() 1144 collector.checkThat("allocated P2P interface", p2pIface, IsNull.notNullValue()); in testCreateSameAndDiffPrioritiesTestChipV1() 1166 collector.checkThat("allocated AP interface", apIface, IsNull.notNullValue()); in testCreateSameAndDiffPrioritiesTestChipV1() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraErrorCollector.java | 91 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/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyInsetsTests.java | 118 mErrorCollector.checkThat("stableInsets", getStableInsetsLw(di), equalTo(new Rect( in verifyStableInsets() 123 mErrorCollector.checkThat("nonDecorInsets", getNonDecorInsetsLw(di), equalTo(new Rect( in verifyNonDecorInsets() 136 mErrorCollector.checkThat(what + ":width", width, in verifyConsistency() 138 mErrorCollector.checkThat(what + ":height", height, in verifyConsistency()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | CoordinateTransformsTest.java | 201 mErrorCollector.checkThat("t(" + devicePoint + ")", in checkPoint()
|