/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | CsvParserTest.java | 65 LineCollector collector = new LineCollector(); in testEmpty() local 67 CsvParser.parse(is, collector); in testEmpty() 70 }, collector.results); in testEmpty() 77 LineCollector collector = new LineCollector(); in testOnlyNewline() local 79 CsvParser.parse(is, collector); in testOnlyNewline() 82 }, collector.results); in testOnlyNewline() 89 LineCollector collector = new LineCollector(); in testTwoLines() local 91 CsvParser.parse(is, collector); in testTwoLines() 96 }, collector.results); in testTwoLines() 104 LineCollector collector = new LineCollector(); in testEscapedEmpty() local [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | TlvBufferUtilsTest.java | 38 public ErrorCollector collector = new ErrorCollector(); field in TlvBufferUtilsTest 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() [all …]
|
D | WifiAwareManagerTest.java | 72 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareManagerTest 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() [all …]
|
D | WifiAwareAgentNetworkSpecifierTest.java | 40 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareAgentNetworkSpecifierTest 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 | 61 @Rule public ErrorCollector collector = new ErrorCollector(); field in WifiAwareMetricsTest 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() [all …]
|
D | WifiAwareNativeApiTest.java | 72 @Rule public ErrorCollector collector = new ErrorCollector(); field in WifiAwareNativeApiTest 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() [all …]
|
D | WifiAwareStateManagerTest.java | 131 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareStateManagerTest 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() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 134 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareDataPathStateManagerTest 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()
|
D | WifiAwareNativeManagerTest.java | 68 @Rule public ErrorCollector collector = new ErrorCollector(); field in WifiAwareNativeManagerTest
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttNativeTest.java | 83 public ErrorCollector collector = new ErrorCollector(); field in RttNativeTest 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() [all …]
|
D | RttMetricsTest.java | 58 public ErrorCollector collector = new ErrorCollector(); field in RttMetricsTest 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() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | IntHistogramTest.java | 42 public ErrorCollector collector = new ErrorCollector(); field in IntHistogramTest 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() [all …]
|
D | MetricsUtilsTest.java | 37 public ErrorCollector collector = new ErrorCollector(); field in MetricsUtilsTest 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 | 57 public ErrorCollector collector = new ErrorCollector(); field in TestLooperTest 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() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 95 AppCollector collector = new AppCollector(mContext, volume); in testNoApps() local 97 assertThat(collector.getPackageStats(TIMEOUT)).isEmpty(); in testNoApps() 105 AppCollector collector = new AppCollector(mContext, volume); in testAppOnExternalVolume() local 107 assertThat(collector.getPackageStats(TIMEOUT)).isEmpty(); in testAppOnExternalVolume() 115 AppCollector collector = new AppCollector(mContext, volume); in testOneValidApp() local 120 assertThat(collector.getPackageStats(TIMEOUT)).containsExactly(stats); in testOneValidApp() 132 AppCollector collector = new AppCollector(mContext, volume); in testMultipleUsersOneApp() local 141 assertThat(collector.getPackageStats(TIMEOUT)).containsExactly(stats, otherStats); in testMultipleUsersOneApp() 146 AppCollector collector = new AppCollector(mContext, null); in testNullVolumeShouldCauseNPE() local 155 AppCollector collector = new AppCollector(mContext, volume); in testAppNotFoundDoesntCauseCrash() local [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | GLThreadManager.java | 63 public final CaptureCollector collector; field in GLThreadManager.ConfigureHolder 66 Size>> surfaces, CaptureCollector collector) { in ConfigureHolder() argument 69 this.collector = collector; in ConfigureHolder() 90 mCaptureCollector = checkNotNull(configure.collector); 212 CaptureCollector collector) { in setConfigurationAndWait() argument 213 checkNotNull(collector, "collector must not be null"); in setConfigurationAndWait() 217 ConfigureHolder configure = new ConfigureHolder(condition, surfaces, collector); in setConfigurationAndWait()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 1786 Size thumbnailSize, CameraErrorCollector collector) { in setJpegKeys() argument 1795 collector.expectEquals("JPEG thumbnail size request set and get should match", in setJpegKeys() 1797 collector.expectTrue("GPS locations request set and get should match.", in setJpegKeys() 1800 collector.expectEquals("JPEG orientation request set and get should match", in setJpegKeys() 1803 collector.expectEquals("JPEG quality request set and get should match", in setJpegKeys() 1805 collector.expectEquals("JPEG thumbnail quality request set and get should match", in setJpegKeys() 1852 CameraErrorCollector collector) throws Exception { in verifyJpegKeys() argument 1863 collector.expectTrue("Jpeg shouldn't have thumbnail when thumbnail size is (0, 0)", in verifyJpegKeys() 1866 collector.expectTrue("Jpeg must have thumbnail for thumbnail size " + in verifyJpegKeys() 1886 collector.expectEquals("JPEG thumbnail size result and request should match", in verifyJpegKeys() [all …]
|
D | StaticMetadata.java | 154 public StaticMetadata(CameraCharacteristics characteristics, CameraErrorCollector collector) { in StaticMetadata() argument 155 this(characteristics, CheckLevel.COLLECT, collector); in StaticMetadata() 173 CameraErrorCollector collector) { in StaticMetadata() argument 177 if (level == CheckLevel.COLLECT && collector == null) { in StaticMetadata() 183 mCollector = collector; in StaticMetadata()
|
/frameworks/base/tools/aapt2/compile/ |
D | XmlIdCollector_test.cpp | 61 XmlIdCollector collector; in TEST() local 62 ASSERT_TRUE(collector.Consume(context.get(), doc.get())); in TEST() 73 XmlIdCollector collector; in TEST() local 74 ASSERT_FALSE(collector.Consume(context.get(), doc.get())); in TEST()
|
D | XmlIdCollector.cpp | 79 IdCollector collector(&xmlRes->file.exported_symbols, &source_diag); in Consume() local 80 xmlRes->root->Accept(&collector); in Consume()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | HalDeviceManagerTest.java | 104 @Rule public ErrorCollector collector = new ErrorCollector(); field in HalDeviceManagerTest 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() [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DiskStatsLoggingService.java | 71 AppCollector collector = new AppCollector(this, volume); in onStartJob() local 80 task.setAppCollector(collector); in onStartJob() 139 public void setAppCollector(AppCollector collector) { in setAppCollector() argument 140 mCollector = collector; in setAppCollector()
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | UiAutomatorTestRunner.java | 104 TestCaseCollector collector = getTestCaseCollector(this.getClass().getClassLoader()); in start() local 106 collector.addTestClasses(mTestClasses); in start() 124 List<TestCase> testCases = collector.getTestCases(); in start()
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | GraphicBufferMetrics.java | 128 public void findEvents(String path, List<RawEvent> collector) { in findEvents() argument 135 child.findEvents(nextPath, collector); in findEvents() 137 collector.add(child); in findEvents()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Compile.cpp | 385 XmlIdCollector collector; in CompileXml() local 386 if (!collector.Consume(context, xmlres.get())) { in CompileXml()
|