/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 | 340 collector.checkThat("match-filter-size", parsedMatchFilter.size(), in testPublishFlow() 342 collector.checkThat("match-filter-entry0", parsedMatchFilter.get(0), in testPublishFlow() 344 collector.checkThat("match-filter-entry1", parsedMatchFilter.get(1), in testPublishFlow() 573 collector.checkThat("mClusterHigh", ConfigRequest.CLUSTER_ID_MAX, in testConfigRequestBuilderDefaults() 575 collector.checkThat("mClusterLow", ConfigRequest.CLUSTER_ID_MIN, in testConfigRequestBuilderDefaults() 577 collector.checkThat("mMasterPreference", 0, in testConfigRequestBuilderDefaults() 579 collector.checkThat("mSupport5gBand", true, equalTo(configRequest.mSupport5gBand)); in testConfigRequestBuilderDefaults() 580 collector.checkThat("mDiscoveryWindowInterval.length", 2, in testConfigRequestBuilderDefaults() 582 collector.checkThat("mDiscoveryWindowInterval[2.4GHz]", ConfigRequest.DW_INTERVAL_NOT_INIT, in testConfigRequestBuilderDefaults() 584 collector.checkThat("mDiscoveryWindowInterval[5Hz]", 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 | WifiAwareMetricsTest.java | 127 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 133 collector.checkThat(log.availableTimeMs, equalTo(6L)); in testEnableDisableUsageMetrics() 141 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 147 collector.checkThat(log.availableTimeMs, equalTo(8L)); // the partial record of 2ms in testEnableDisableUsageMetrics() 156 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 160 collector.checkThat(log.availableTimeMs, equalTo(6L)); // the remnant record of 6ms in testEnableDisableUsageMetrics() 165 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 188 collector.checkThat(countAllHistogramSamples(log.histogramAwareEnabledDurationMs), in testEnableDisableAwareMetrics() 194 collector.checkThat(log.enabledTimeMs, equalTo(6L)); in testEnableDisableAwareMetrics() 202 collector.checkThat(countAllHistogramSamples(log.histogramAwareEnabledDurationMs), in testEnableDisableAwareMetrics() [all …]
|
D | WifiAwareNativeApiTest.java | 155 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsDefaults() 158 collector.checkThat("validDiscoveryWindowIntervalVal-24", true, in testEnableAndConfigPowerSettingsDefaults() 161 collector.checkThat("discoveryWindowIntervalVal-5", default5, in testEnableAndConfigPowerSettingsDefaults() 164 collector.checkThat("discoveryWindowIntervalVal-24", default24, in testEnableAndConfigPowerSettingsDefaults() 183 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsNoneInteractive() 186 collector.checkThat("discoveryWindowIntervalVal-5", interactive5, in testEnableAndConfigPowerSettingsNoneInteractive() 189 collector.checkThat("validDiscoveryWindowIntervalVal-24", true, in testEnableAndConfigPowerSettingsNoneInteractive() 192 collector.checkThat("discoveryWindowIntervalVal-24", interactive24, in testEnableAndConfigPowerSettingsNoneInteractive() 211 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsIdle() 214 collector.checkThat("discoveryWindowIntervalVal-5", idle5, in testEnableAndConfigPowerSettingsIdle() [all …]
|
D | WifiAwareStateManagerTest.java | 364 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testAwareDataPathInterfaceUpDown() 410 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageDisablesApis() 415 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageDisablesApis() 457 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageFlow() 469 collector.checkThat("num of clients", sparseArrayCaptor.getValue().size(), equalTo(1)); in testDisableUsageFlow() 474 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageFlow() 494 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageFlow() 500 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageFlow() 513 collector.checkThat("num of clients", sparseArrayCaptor.getValue().size(), equalTo(1)); in testDisableUsageFlow() 2374 collector.checkThat("Empty message contents", "", in testSendEmptyMessages() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 225 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in testCreateDeleteAllInterfaces() 251 collector.checkThat("interface deleted -- " + i, done[i], equalTo(true)); in testCreateDeleteAllInterfaces() 261 collector.checkThat("interface delete pre-create -- " + i, in testCreateDeleteAllInterfaces() 268 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in testCreateDeleteAllInterfaces() 1787 collector.checkThat("factory name", "WIFI_AWARE_FACTORY", in initOobDataPathEndPoint() 1824 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in initOobDataPathEndPoint()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttNativeTest.java | 139 collector.checkThat("number of entries", halRequest.size(), in testRangeRequest() 143 collector.checkThat("entry 0: MAC", rttConfig.addr, in testRangeRequest() 145 collector.checkThat("entry 0: rtt type", rttConfig.type, equalTo(RttType.TWO_SIDED)); in testRangeRequest() 146 collector.checkThat("entry 0: peer type", rttConfig.peer, equalTo(RttPeerType.AP)); in testRangeRequest() 147 collector.checkThat("entry 0: lci", rttConfig.mustRequestLci, equalTo(true)); in testRangeRequest() 148 collector.checkThat("entry 0: lcr", rttConfig.mustRequestLcr, equalTo(true)); in testRangeRequest() 151 collector.checkThat("entry 1: MAC", rttConfig.addr, in testRangeRequest() 153 collector.checkThat("entry 1: rtt type", rttConfig.type, equalTo(RttType.ONE_SIDED)); in testRangeRequest() 154 collector.checkThat("entry 1: peer type", rttConfig.peer, equalTo(RttPeerType.AP)); in testRangeRequest() 155 collector.checkThat("entry 1: lci", rttConfig.mustRequestLci, equalTo(true)); in testRangeRequest() [all …]
|
D | RttMetricsTest.java | 403 collector.checkThat("AP histogramIndividualStatus.length", in testRecordResultsStatuses() 451 collector.checkThat("Aware histogramIndividualStatus.length", in testRecordResultsStatuses() 477 collector.checkThat("histogramOverallStatus.length", log.histogramOverallStatus.length, in testRecordOverallStatus() 512 collector.checkThat(logPrefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket() 513 collector.checkThat(logPrefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket() 514 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoHistBucket() 520 collector.checkThat(logPrefix + ": statusType", bucket.statusType, equalTo(status)); in validateProtoOverallStatusHistBucket() 521 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoOverallStatusHistBucket() 527 collector.checkThat(logPrefix + ": statusType", bucket.statusType, equalTo(status)); in validateProtoIndividualStatusHistBucket() 528 collector.checkThat(logPrefix + ": count", bucket.count, equalTo(count)); in validateProtoIndividualStatusHistBucket() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | IntHistogramTest.java | 58 collector.checkThat(String.format("Unexpected bucket[%d] count!", expectedBucketIndex), in incrementValueAndVerify() 86 collector.checkThat("Unexpected number of non-empty buckets!", in testAddToHistogram() 91 collector.checkThat("Unexpected toString() result", in testAddToHistogram() 128 collector.checkThat("Unexpected number of non-empty buckets!", in testAddToHistogramWithGap() 133 collector.checkThat("Unexpected toString() result", in testAddToHistogramWithGap() 177 collector.checkThat("Unexpected number of non-empty buckets!", in testAddNegativeToHistogram() 183 collector.checkThat("Unexpected toString() result", in testAddNegativeToHistogram() 208 collector.checkThat("Unexpected number of non-empty buckets!", in testEmptyHistogram() 212 collector.checkThat("Unexpected toString() result", in testEmptyHistogram() 229 collector.checkThat("Unexpected number of non-empty buckets!", in testLength1Histogram() [all …]
|
D | MetricsUtilsTest.java | 113 collector.checkThat("Number of buckets #1", phb1.length, equalTo(hist1.size())); in testHistBucketing() 140 collector.checkThat("Number of buckets #2", phb2.length, equalTo(hist2.size())); in testHistBucketing() 177 collector.checkThat("Number of buckets", phb.length, equalTo(hist.size())); in testLinearHistBucketing() 190 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify() 196 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify() 201 collector.checkThat(prefix + ": start", bucket.start, equalTo(start)); in validateProtoHistBucket() 202 collector.checkThat(prefix + ": end", bucket.end, equalTo(end)); in validateProtoHistBucket() 203 collector.checkThat(prefix + ": count", bucket.count, equalTo(count)); in validateProtoHistBucket()
|
/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/ |
D | HalDeviceManagerTest.java | 257 collector.checkThat(mDut.start(), equalTo(true)); in testWifiDeathAndRegistration() 285 collector.checkThat(mDut.start(), equalTo(true)); in testWifiFail() 357 collector.checkThat("NAN can't be created", nanIface2, IsNull.nullValue()); in testCacheMismatchError() 411 collector.checkThat("STA created", staIface, IsNull.notNullValue()); in testDuplicateAvailableRegistrations() 915 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApWithStaModeUpTestChipV1() 1033 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApWithApModeUpTestChipV1() 1131 collector.checkThat("allocated STA interface", staIface, IsNull.notNullValue()); in testCreateSameAndDiffPrioritiesTestChipV1() 1137 collector.checkThat("STA2 should not be created", staIface2, IsNull.nullValue()); in testCreateSameAndDiffPrioritiesTestChipV1() 1156 collector.checkThat("allocated P2P interface", p2pIface, IsNull.notNullValue()); in testCreateSameAndDiffPrioritiesTestChipV1() 1180 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 | 116 mErrorCollector.checkThat("stableInsets", getStableInsetsLw(di), equalTo(new Rect( in verifyStableInsets() 121 mErrorCollector.checkThat("nonDecorInsets", getNonDecorInsetsLw(di), equalTo(new Rect( in verifyNonDecorInsets() 134 mErrorCollector.checkThat(what + ":width", width, in verifyConsistency() 136 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()
|