Home
last modified time | relevance | path

Searched refs:collector (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/tools/powermodel/test/com/android/powermodel/
DCsvParserTest.java65 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/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationCollectorTest.kt58 val collector = mockCollector() in verifyV1() constant
59 assertThat(collector.collectAllWebDomains(pkg)) in verifyV1()
61 assertThat(collector.collectValidAutoVerifyDomains(pkg)) in verifyV1()
63 assertThat(collector.collectInvalidAutoVerifyDomains(pkg)) in verifyV1()
70 val collector = mockCollector() in verifyV1NoAutoVerify() constant
71 assertThat(collector.collectAllWebDomains(pkg)) in verifyV1NoAutoVerify()
73 assertThat(collector.collectValidAutoVerifyDomains(pkg)).isEmpty() in verifyV1NoAutoVerify()
74 assertThat(collector.collectInvalidAutoVerifyDomains(pkg)).isEmpty() in verifyV1NoAutoVerify()
80 val collector = mockCollector(linkedApps = setOf(TEST_PKG_NAME)) in verifyV1ForceAutoVerify() constant
81 assertThat(collector.collectAllWebDomains(pkg)) in verifyV1ForceAutoVerify()
[all …]
DDomainVerificationProxyTest.kt79 private lateinit var collector: DomainVerificationCollector in <lambda>() variable in com.android.server.pm.test.verify.domain.DomainVerificationProxyTest
126 collector = mockThrowOnUnmocked { in <lambda>()
142 manager, collector, connection in <lambda>()
160 manager, collector, connection in <lambda>()
178 context, manager, collector, connection in <lambda>()
202 context, manager, collector, mockConnection() in <lambda>()
219 collector, in <lambda>()
441 collector, in <lambda>()
477 collector, in <lambda>()
488 collector, in <lambda>()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DCpuPowerStatsCollectorTest.java171 CpuPowerStatsCollector collector = createCollector(8, 0); in powerBrackets_specifiedInPowerProfile() local
173 assertThat(getScalingStepToPowerBracketMap(collector)) in powerBrackets_specifiedInPowerProfile()
182 CpuPowerStatsCollector collector = createCollector(3, 0); in powerBrackets_default_noEnergyConsumers() local
185 collector.getCpuPowerBracketDescription(0), in powerBrackets_default_noEnergyConsumers()
186 collector.getCpuPowerBracketDescription(1), in powerBrackets_default_noEnergyConsumers()
187 collector.getCpuPowerBracketDescription(2)}) in powerBrackets_default_noEnergyConsumers()
192 assertThat(getScalingStepToPowerBracketMap(collector)) in powerBrackets_default_noEnergyConsumers()
201 CpuPowerStatsCollector collector = createCollector(8, 0); in powerBrackets_moreBracketsThanStates() local
203 assertThat(getScalingStepToPowerBracketMap(collector)) in powerBrackets_moreBracketsThanStates()
213 CpuPowerStatsCollector collector = createCollector(8, 2); in powerBrackets_energyConsumers() local
[all …]
DBluetoothPowerStatsProcessorTest.java174 BluetoothPowerStatsCollector collector = new BluetoothPowerStatsCollector(mInjector); in powerProfileModel_mostlyDataTransfer() local
175 collector.setEnabled(true); in powerProfileModel_mostlyDataTransfer()
183 aggregatedStats.addPowerStats(collector.collectStats(), 0); in powerProfileModel_mostlyDataTransfer()
201 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in powerProfileModel_mostlyDataTransfer()
275 BluetoothPowerStatsCollector collector = new BluetoothPowerStatsCollector(mInjector); in powerProfileModel_mostlyScan() local
276 collector.setEnabled(true); in powerProfileModel_mostlyScan()
284 aggregatedStats.addPowerStats(collector.collectStats(), 0); in powerProfileModel_mostlyScan()
302 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in powerProfileModel_mostlyScan()
374 BluetoothPowerStatsCollector collector = new BluetoothPowerStatsCollector(mInjector); in consumedEnergyModel() local
375 collector.setEnabled(true); in consumedEnergyModel()
[all …]
DBluetoothPowerStatsCollectorTest.java158 PowerStatsCollector collector = mBatteryStats.getPowerStatsCollector( in triggering() local
160 collector.addConsumer(mRecordedPowerStats::add); in triggering()
168 collector.schedule(); in triggering()
232 BluetoothPowerStatsCollector collector = new BluetoothPowerStatsCollector(mInjector); in collectPowerStats() local
233 collector.setEnabled(true); in collectPowerStats()
249 collector.collectStats(); in collectPowerStats()
265 return collector.collectStats(); in collectPowerStats()
DWifiPowerStatsProcessorTest.java203 WifiPowerStatsCollector collector = new WifiPowerStatsCollector(mInjector); in powerProfileModel_powerController() local
204 collector.setEnabled(true); in powerProfileModel_powerController()
211 aggregatedStats.addPowerStats(collector.collectStats(), 0); in powerProfileModel_powerController()
235 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in powerProfileModel_powerController()
315 WifiPowerStatsCollector collector = new WifiPowerStatsCollector(mInjector); in consumedEnergyModel_powerController() local
316 collector.setEnabled(true); in consumedEnergyModel_powerController()
327 aggregatedStats.addPowerStats(collector.collectStats(), 0); in consumedEnergyModel_powerController()
356 aggregatedStats.addPowerStats(collector.collectStats(), 10_000); in consumedEnergyModel_powerController()
428 WifiPowerStatsCollector collector = new WifiPowerStatsCollector(mInjector); in powerProfileModel_noPowerController() local
429 collector.setEnabled(true); in powerProfileModel_noPowerController()
[all …]
DPhoneCallPowerStatsProcessorTest.java183 MobileRadioPowerStatsCollector collector = new MobileRadioPowerStatsCollector(mInjector); in copyEstimatesFromMobileRadioPowerStats() local
184 collector.setEnabled(true); in copyEstimatesFromMobileRadioPowerStats()
190 aggregatedPowerStats.addPowerStats(collector.collectStats(), 0); in copyEstimatesFromMobileRadioPowerStats()
204 aggregatedPowerStats.addPowerStats(collector.collectStats(), 10_000); in copyEstimatesFromMobileRadioPowerStats()
DMobileRadioPowerStatsProcessorTest.java194 MobileRadioPowerStatsCollector collector = new MobileRadioPowerStatsCollector(mInjector); in powerProfileModel() local
195 collector.setEnabled(true); in powerProfileModel()
201 aggregatedStats.addPowerStats(collector.collectStats(), 0); in powerProfileModel()
227 PowerStats powerStats = collector.collectStats(); in powerProfileModel()
433 MobileRadioPowerStatsCollector collector = new MobileRadioPowerStatsCollector(mInjector); in prepareAggregatedStats_energyConsumerModel() local
434 collector.setEnabled(true); in prepareAggregatedStats_energyConsumerModel()
444 aggregatedStats.addPowerStats(collector.collectStats(), 0); in prepareAggregatedStats_energyConsumerModel()
474 PowerStats powerStats = collector.collectStats(); in prepareAggregatedStats_energyConsumerModel()
DWifiPowerStatsCollectorTest.java195 PowerStatsCollector collector = mBatteryStats.getPowerStatsCollector( in triggering() local
197 collector.addConsumer(mRecordedPowerStats::add); in triggering()
325 WifiPowerStatsCollector collector = new WifiPowerStatsCollector(mInjector); in collectPowerStats() local
326 collector.setEnabled(true); in collectPowerStats()
348 collector.collectStats(); in collectPowerStats()
368 return collector.collectStats(); in collectPowerStats()
DMobileRadioPowerStatsCollectorTest.java185 PowerStatsCollector collector = mBatteryStats.getPowerStatsCollector( in triggering() local
187 collector.addConsumer(mRecordedPowerStats::add); in triggering()
356 MobileRadioPowerStatsCollector collector = new MobileRadioPowerStatsCollector(mInjector); in collectPowerStats() local
357 collector.setEnabled(true); in collectPowerStats()
383 collector.collectStats(); in collectPowerStats()
406 return collector.collectStats(); in collectPowerStats()
/frameworks/base/tests/utils/testutils/tests/src/android/os/test/
DTestLooperTest.java58 public ErrorCollector collector = new ErrorCollector(); field in TestLooperTest
90 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
92 collector.checkThat("2: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
94 collector.checkThat("3: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
96 collector.checkThat("4: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testNoTimeMovement()
148 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
150 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchNoTimeMove()
177 collector.checkThat("1: messageA", messageA, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
179 collector.checkThat("2: messageB", messageB, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
181 collector.checkThat("3: messageC", messageC, equalTo(messageCaptor.getValue().what)); in testDelayedDispatchAdvanceTimeOnce()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DObserverNodeTest.java91 final ObserverCollector collector = mock(ObserverCollector.class); in testUri() local
92 root.collectObserversLocked(uris[i], 0, null, false, 0, myUserHandle, collector); in testUri()
93 verify(collector, times(nums[i])).collect( in testUri()
121 final ObserverCollector collector = mock(ObserverCollector.class); in testUriNotNotify() local
122 root.collectObserversLocked(uris[i], 0, null, false, 0, myUserHandle, collector); in testUriNotNotify()
123 verify(collector, times(nums[i])).collect( in testUriNotNotify()
146 final ObserverCollector collector = new ObserverCollector(); in testCluster() local
148 0, myUserHandle, collector); in testCluster()
150 ContentResolver.NOTIFY_INSERT, myUserHandle, collector); in testCluster()
152 ContentResolver.NOTIFY_INSERT, myUserHandle, collector); in testCluster()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/domain/interactor/
DFalsingInteractor.kt39 @FalsingCollectorActual private val collector: FalsingCollector, constant in com.android.systemui.classifier.domain.interactor.FalsingInteractor
47 fun onTouchEvent(event: MotionEvent) = collector.onTouchEvent(event)
54 fun onMotionEventComplete() = collector.onMotionEventComplete()
60 fun avoidGesture() = collector.avoidGesture()
68 ) = collector.updateFalseConfidence(result)
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DAppCollectorTest.java95 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/tools/aapt2/compile/
DXmlIdCollector_test.cpp61 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()
DXmlIdCollector.cpp80 IdCollector collector(&xmlRes->file.exported_symbols, &source_diag); in Consume() local
81 xmlRes->root->Accept(&collector); in Consume()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1786 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 …]
/frameworks/base/services/core/java/com/android/server/storage/
DDiskStatsLoggingService.java71 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/services/core/java/com/android/server/pm/verify/domain/proxy/
DDomainVerificationProxy.java44 @NonNull DomainVerificationCollector collector, @NonNull ConnectionType connection) { in makeProxy() argument
60 proxyV1 = new DomainVerificationProxyV1(context, manager, collector, connection, in makeProxy()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/ui/viewbinder/
DStatusBarIconViewBinder.kt89 crossinline collector: (T) -> Unit, in collectTracingEach()
90 ) = collect { traceSection(tag) { collector(it) } } in collectTracingEach()
DNotificationIconContainerViewBinder.kt395 crossinline collector: (T) -> Unit, in collectTracingEach()
396 ) = collect { traceSection(tag) { collector(it) } } in collectTracingEach()
400 crossinline collector: (T) -> Unit, in collectTracingEach()
403 collect { traceSection({ lazyTag.value }) { collector(it) } } in collectTracingEach()
/frameworks/base/core/java/android/app/
DResourcesManager.java180 final var collector = new PathCollector(null); in updateResourceImplWithRegisteredLibs() local
184 collector.appendKey(libraryKey); in updateResourceImplWithRegisteredLibs()
186 impl.getAssets().addPresetApkKeys(extractApkKeys(collector.collectedKey())); in updateResourceImplWithRegisteredLibs()
1644 final var collector = new PathCollector(original); in createNewResourceKeyIfNeeded() local
1645 collector.appendKey(library); in createNewResourceKeyIfNeeded()
1646 return collector.isSameAsOriginal() ? null : collector.collectedKey(); in createNewResourceKeyIfNeeded()
1935 final var collector = new PathCollector(null); in SharedLibraryAssets() local
1936 PathCollector.appendNewPath(appInfo.sourceDir, collector.libsSet, in SharedLibraryAssets()
1937 collector.orderedLibs); in SharedLibraryAssets()
1938 PathCollector.appendAllNewPaths(appInfo.splitSourceDirs, collector.libsSet, in SharedLibraryAssets()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/classifier/domain/interactor/
DFalsingInteractorKosmos.kt26 collector = falsingCollector, in <lambda>()
/frameworks/base/apct-tests/perftests/settingsprovider/
DAndroid.bp26 "collector-device-lib-platform",

123