/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | TlvBufferUtilsTest.java | 37 public ErrorCollector collector = new ErrorCollector(); field in TlvBufferUtilsTest 51 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() [all …]
|
D | WifiAwareManagerTest.java | 62 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareManagerTest 310 collector.checkThat("match-filter-size", parsedMatchFilter.size(), in testPublishFlow() 312 collector.checkThat("match-filter-entry0", parsedMatchFilter.get(0), in testPublishFlow() 314 collector.checkThat("match-filter-entry1", parsedMatchFilter.get(1), in testPublishFlow() 538 collector.checkThat("mClusterHigh", ConfigRequest.CLUSTER_ID_MAX, in testConfigRequestBuilderDefaults() 540 collector.checkThat("mClusterLow", ConfigRequest.CLUSTER_ID_MIN, in testConfigRequestBuilderDefaults() 542 collector.checkThat("mMasterPreference", 0, in testConfigRequestBuilderDefaults() 544 collector.checkThat("mSupport5gBand", false, equalTo(configRequest.mSupport5gBand)); in testConfigRequestBuilderDefaults() 545 collector.checkThat("mDiscoveryWindowInterval.length", 2, in testConfigRequestBuilderDefaults() 547 collector.checkThat("mDiscoveryWindowInterval[2.4GHz]", ConfigRequest.DW_INTERVAL_NOT_INIT, in testConfigRequestBuilderDefaults() [all …]
|
D | WifiAwareAgentNetworkSpecifierTest.java | 38 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareAgentNetworkSpecifierTest 72 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/ |
D | WifiAwareMetricsTest.java | 55 @Rule public ErrorCollector collector = new ErrorCollector(); field in WifiAwareMetricsTest 113 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 119 collector.checkThat(log.availableTimeMs, equalTo(6L)); in testEnableDisableUsageMetrics() 127 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 133 collector.checkThat(log.availableTimeMs, equalTo(8L)); // the partial record of 2ms in testEnableDisableUsageMetrics() 142 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 146 collector.checkThat(log.availableTimeMs, equalTo(6L)); // the remnant record of 6ms in testEnableDisableUsageMetrics() 151 collector.checkThat(countAllHistogramSamples(log.histogramAwareAvailableDurationMs), in testEnableDisableUsageMetrics() 174 collector.checkThat(countAllHistogramSamples(log.histogramAwareEnabledDurationMs), in testEnableDisableAwareMetrics() 180 collector.checkThat(log.enabledTimeMs, equalTo(6L)); in testEnableDisableAwareMetrics() [all …]
|
D | WifiAwareNativeApiTest.java | 53 @Rule public ErrorCollector collector = new ErrorCollector(); field in WifiAwareNativeApiTest 108 collector.checkThat("validDiscoveryWindowIntervalVal-5", false, in testEnableAndConfigPowerSettingsDefaults() 111 collector.checkThat("validDiscoveryWindowIntervalVal-24", false, in testEnableAndConfigPowerSettingsDefaults() 129 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsNoneInteractive() 132 collector.checkThat("discoveryWindowIntervalVal-5", interactive5, in testEnableAndConfigPowerSettingsNoneInteractive() 135 collector.checkThat("validDiscoveryWindowIntervalVal-24", true, in testEnableAndConfigPowerSettingsNoneInteractive() 138 collector.checkThat("discoveryWindowIntervalVal-24", interactive24, in testEnableAndConfigPowerSettingsNoneInteractive() 156 collector.checkThat("validDiscoveryWindowIntervalVal-5", true, in testEnableAndConfigPowerSettingsIdle() 159 collector.checkThat("discoveryWindowIntervalVal-5", idle5, in testEnableAndConfigPowerSettingsIdle() 162 collector.checkThat("validDiscoveryWindowIntervalVal-24", false, in testEnableAndConfigPowerSettingsIdle() [all …]
|
D | WifiAwareRttStateManagerTest.java | 64 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareRttStateManagerTest 111 collector.checkThat("msg.what=RttManager.CMD_OP_START_RANGING", msg.what, in testStartRanging() 113 collector.checkThat("rangingId", msg.arg2, equalTo(rangingId)); in testStartRanging() 114 collector.checkThat("RTT params", ((RttManager.ParcelableRttParams) msg.obj).mParams, in testStartRanging() 125 collector.checkThat("ParcelableRttResults object", results, in testStartRanging() 127 collector.checkThat("RttResults[0].bssid null", in testStartRanging() 129 collector.checkThat("RttResults[1].bssid null", in testStartRanging()
|
D | WifiAwareNativeManagerTest.java | 61 @Rule public ErrorCollector collector = new ErrorCollector(); field in WifiAwareNativeManagerTest 114 collector.checkThat("null interface", mDut.getWifiNanIface(), nullValue()); in testControlFlow() 124 collector.checkThat("non-null interface", mDut.getWifiNanIface(), in testControlFlow() 132 collector.checkThat("null interface", mDut.getWifiNanIface(), nullValue()); in testControlFlow() 146 collector.checkThat("non-null interface", mDut.getWifiNanIface(), in testControlFlow() 153 collector.checkThat("null interface", mDut.getWifiNanIface(), nullValue()); in testControlFlow()
|
D | WifiAwareStateManagerTest.java | 111 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareStateManagerTest 223 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testAwareDataPathInterfaceUpDown() 269 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageDisablesApis() 274 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageDisablesApis() 316 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageFlow() 328 collector.checkThat("num of clients", sparseArrayCaptor.getValue().size(), equalTo(1)); in testDisableUsageFlow() 333 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageFlow() 353 collector.checkThat("usage disabled", mDut.isUsageEnabled(), equalTo(false)); in testDisableUsageFlow() 359 collector.checkThat("usage enabled", mDut.isUsageEnabled(), equalTo(true)); in testDisableUsageFlow() 372 collector.checkThat("num of clients", sparseArrayCaptor.getValue().size(), equalTo(1)); in testDisableUsageFlow() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 115 public ErrorCollector collector = new ErrorCollector(); field in WifiAwareDataPathStateManagerTest 208 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in testCreateDeleteAllInterfaces() 234 collector.checkThat("interface deleted -- " + i, done[i], equalTo(true)); in testCreateDeleteAllInterfaces() 244 collector.checkThat("interface delete pre-create -- " + i, in testCreateDeleteAllInterfaces() 251 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in testCreateDeleteAllInterfaces() 1363 collector.checkThat("factory name", "WIFI_AWARE_FACTORY", in initOobDataPathEndPoint() 1400 collector.checkThat("interface created -- " + i, sAwareInterfacePrefix + i, in initOobDataPathEndPoint()
|
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/ |
D | RelationCollectorMethodWriter.kt | 37 class RelationCollectorMethodWriter(val collector: RelationCollector) in <lambda>() constant in android.arch.persistence.room.writer.RelationCollectorMethodWriter 45 val relation = collector.relation in <lambda>() 56 val relation = collector.relation in <lambda>() 58 val param = ParameterSpec.builder(collector.mapTypeName, "_map") in <lambda>() 70 ClassName.get(Set::class.java), collector.keyTypeName in <lambda>() 77 collector.queryWriter.prepareReadAndBind(sqlQueryVar, stmtVar, scope) in <lambda>() 91 collector.rowAdapter.onCursorReady(cursorVar, scope) in <lambda>() 95 collector.readKey( in <lambda>() 101 addStatement("$T $L = $N.get($L)", collector.collectionTypeName, in <lambda>() 105 collector.rowAdapter.convert(tmpVarName, cursorVar, scope) in <lambda>() [all …]
|
/frameworks/base/tests/utils/testutils/java/android/os/test/ |
D | TestLooperTest.java | 53 public ErrorCollector collector = new ErrorCollector(); field in TestLooperTest 84 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement() 86 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement() 88 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement() 90 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement() 116 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove() 118 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove() 145 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce() 147 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce() 149 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 | 1714 Size thumbnailSize, CameraErrorCollector collector) { in setJpegKeys() argument 1723 collector.expectEquals("JPEG thumbnail size request set and get should match", in setJpegKeys() 1725 collector.expectTrue("GPS locations request set and get should match.", in setJpegKeys() 1728 collector.expectEquals("JPEG orientation request set and get should match", in setJpegKeys() 1731 collector.expectEquals("JPEG quality request set and get should match", in setJpegKeys() 1733 collector.expectEquals("JPEG thumbnail quality request set and get should match", in setJpegKeys() 1780 CameraErrorCollector collector) throws Exception { in verifyJpegKeys() argument 1791 collector.expectTrue("Jpeg shouldn't have thumbnail when thumbnail size is (0, 0)", in verifyJpegKeys() 1794 collector.expectTrue("Jpeg must have thumbnail for thumbnail size " + in verifyJpegKeys() 1814 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()
|
D | XmlIdCollector.cpp | 69 IdCollector collector(&xmlRes->file.exported_symbols); in Consume() local 70 xmlRes->root->Accept(&collector); in Consume()
|
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | HalDeviceManagerTest.java | 93 @Rule public ErrorCollector collector = new ErrorCollector(); field in HalDeviceManagerTest 237 collector.checkThat(mDut.start(), equalTo(true)); in testWifiDeathAndRegistration() 265 collector.checkThat(mDut.start(), equalTo(true)); in testWifiFail() 305 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateStaInterfaceNoInitMode() 348 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApInterfaceNoInitMode() 391 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateP2pInterfaceNoInitMode() 434 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateNanInterfaceNoInitMode() 478 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApWithStaModeUp() 521 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); in testCreateApWithApModeUp() 598 collector.checkThat("allocated STA interface", staIface, IsNull.notNullValue()); in testCreateSameAndDiffPriorities() [all …]
|
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/processor/ |
D | Context.kt | 80 val collector = RLog.CollectingMessager() in collectLogs() constant 82 logger = RLog(collector, logger.suppressedWarnings, logger.defaultElement), in collectLogs() 88 return Pair(result, collector) in collectLogs()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | LinearLayoutManagerBaseConfigSetTest.java | 243 AttachDetachCollector collector = new AttachDetachCollector(mRecyclerView); in dontRecycleViewsTranslatedOutOfBoundsFromStart() local 255 assertThat(collector.getDetached(), not(hasItem(sameInstance(vh.itemView)))); in dontRecycleViewsTranslatedOutOfBoundsFromStart() 259 assertThat(collector.getDetached(), hasItem(sameInstance(vh.itemView))); in dontRecycleViewsTranslatedOutOfBoundsFromStart() 277 AttachDetachCollector collector = new AttachDetachCollector(mRecyclerView); in dontRecycleViewsTranslatedOutOfBoundsFromEnd() local 289 assertThat(collector.getDetached(), not(hasItem(sameInstance(vh.itemView)))); in dontRecycleViewsTranslatedOutOfBoundsFromEnd() 293 assertThat(collector.getDetached(), hasItem(sameInstance(vh.itemView))); in dontRecycleViewsTranslatedOutOfBoundsFromEnd()
|
D | StaggeredGridLayoutManagerBaseConfigSetTest.java | 761 AttachDetachCollector collector = new AttachDetachCollector(mRecyclerView); in dontRecycleViewsTranslatedOutOfBoundsFromStart() local 773 assertThat(collector.getDetached(), not(hasItem(sameInstance(vh.itemView)))); in dontRecycleViewsTranslatedOutOfBoundsFromStart() 777 assertThat(collector.getDetached(), hasItem(sameInstance(vh.itemView))); in dontRecycleViewsTranslatedOutOfBoundsFromStart() 798 AttachDetachCollector collector = new AttachDetachCollector(mRecyclerView); in dontRecycleViewsTranslatedOutOfBoundsFromEnd() local 810 assertThat(collector.getDetached(), not(hasItem(sameInstance(vh.itemView)))); in dontRecycleViewsTranslatedOutOfBoundsFromEnd() 814 assertThat(collector.getDetached(), hasItem(sameInstance(vh.itemView))); in dontRecycleViewsTranslatedOutOfBoundsFromEnd()
|
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/solver/query/result/ |
D | PojoRowAdapter.kt | 127 relationCollectors.forEach { collector -> in <lambda>() method 128 collector.writeCollectionCode(scope) in <lambda>()
|
/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/tools/aapt2/cmd/ |
D | Compile.cpp | 406 XmlIdCollector collector; in CompileXml() local 407 if (!collector.Consume(context, xmlres.get())) { in CompileXml()
|