/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/events/ |
D | EventsTest.kt | 31 import kotlinx.coroutines.flow.toList 82 backgroundScope.launch { events.flow.toList(collectorOne) } in <lambda>() 83 backgroundScope.launch { events.flow.toList(collectorTwo) } in <lambda>() 111 backgroundScope.launch { events.flow.toList(collectorOne) } in <lambda>() 118 backgroundScope.launch { events.flow.toList(collectorTwo) } in <lambda>() 140 backgroundScope.launch { events.flow.toList(collectorOne) } in <lambda>() 141 backgroundScope.launch { events.flow.toList(collectorTwo) } in <lambda>() 190 backgroundScope.launch { events.flow.toList(collectorOne) } in <lambda>() 191 backgroundScope.launch { events.flow.toList(collectorTwo) } in <lambda>() 221 backgroundScope.launch { events.flow.toList(collector) } in <lambda>() [all …]
|
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/ |
D | EthernetTetheringTest.java | 475 runPing6Test(initTetheringTester(toList(TEST_IP4_ADDR, TEST_IP6_ADDR), in testIcmpv6Echo() 476 toList(TEST_IP4_DNS, TEST_IP6_DNS))); in testIcmpv6Echo() 502 final TetheringTester tester = initTetheringTester(toList(TEST_IP6_ADDR), in testTetherUdpV6() 503 toList(TEST_IP6_DNS)); in testTetherUdpV6() 523 final TetheringTester tester = initTetheringTester(toList(TEST_IP4_ADDR), in runUdp4Test() 524 toList(TEST_IP4_DNS)); in runUdp4Test() 569 final TetheringTester tester = initTetheringTester(toList(TEST_IP6_ADDR), in runClatUdpTest() 570 toList(TEST_IP6_DNS)); in runClatUdpTest() 597 final TetheringTester tester = initTetheringTester(toList(TEST_IP4_ADDR), in testIcmpv4Echo() 598 toList(TEST_IP4_DNS)); in testIcmpv4Echo() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/allapps/ |
D | AlphabeticalAppsListTest.java | 113 item.viewType == VIEW_TYPE_PRIVATE_SPACE_HEADER).toList().size()); in privateProfileEnabled_allPrivateProfileViewsArePresent() 117 && item.itemInfo.user.equals(PRIVATE_HANDLE)).toList().size()); in privateProfileEnabled_allPrivateProfileViewsArePresent() 143 item.viewType == VIEW_TYPE_PRIVATE_SPACE_HEADER).toList().size()); in privateProfileEnabled_privateProfileAppsShownWithSeparator() 146 item.viewType == VIEW_TYPE_PRIVATE_SPACE_SYS_APPS_DIVIDER).toList().size()); in privateProfileEnabled_privateProfileAppsShownWithSeparator() 150 .toList(); in privateProfileEnabled_privateProfileAppsShownWithSeparator() 173 item.viewType == VIEW_TYPE_PRIVATE_SPACE_HEADER).toList().size()); in privateProfileDisabled_onlyPrivateProfileHeaderViewIsPresent() 176 && item.itemInfo.user.equals(PRIVATE_HANDLE)).toList().size()); in privateProfileDisabled_onlyPrivateProfileHeaderViewIsPresent() 194 item.viewType == VIEW_TYPE_PRIVATE_SPACE_HEADER).toList().size()); in privateProfileTransitioning_onlyPrivateProfileHeaderViewIsPresent() 197 && item.itemInfo.user.equals(PRIVATE_HANDLE)).toList().size()); in privateProfileTransitioning_onlyPrivateProfileHeaderViewIsPresent() 211 item.viewType == VIEW_TYPE_PRIVATE_SPACE_HEADER).toList().size()); in privateProfileHidden_noPrivateProfileViewIsPresent() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdsScoreGeneratorImplTest.java | 343 .collect(Collectors.toList())); in testRunAdScoringSuccess() 350 .collect(Collectors.toList()), in testRunAdScoringSuccess() 360 .collect(Collectors.toList()), in testRunAdScoringSuccess() 374 .collect(Collectors.toList()), in testRunAdScoringSuccess() 384 .collect(Collectors.toList()), in testRunAdScoringSuccess() 460 .collect(Collectors.toList())); in testRunAdScoringSuccessWithDataVersionHeaderEnabled() 467 .collect(Collectors.toList()), in testRunAdScoringSuccessWithDataVersionHeaderEnabled() 477 .collect(Collectors.toList()), in testRunAdScoringSuccessWithDataVersionHeaderEnabled() 491 .collect(Collectors.toList()), in testRunAdScoringSuccessWithDataVersionHeaderEnabled() 501 .collect(Collectors.toList()), in testRunAdScoringSuccessWithDataVersionHeaderEnabled() [all …]
|
D | AdSelectionScriptEngineTest.java | 362 .collect(Collectors.toList())) in testGenerateBidSuccessfulCase() 409 .collect(Collectors.toList())) in testGenerateBidWithAdCostSuccessfulCaseCpcBillingEnabled() 413 assertThat(results.stream().map(GenerateBidResult::getAdCost).collect(Collectors.toList())) in testGenerateBidWithAdCostSuccessfulCaseCpcBillingEnabled() 458 .collect(Collectors.toList())) in testGenerateBidWithAdCostDoesNotAddAdCostCpcBillingDisabled() 462 assertThat(results.stream().map(GenerateBidResult::getAdCost).collect(Collectors.toList())) in testGenerateBidWithAdCostDoesNotAddAdCostCpcBillingDisabled() 512 .collect(Collectors.toList())) in testGenerateBidWithOnlyOneAdCostSuccessfulCase() 516 assertThat(results.stream().map(GenerateBidResult::getAdCost).collect(Collectors.toList())) in testGenerateBidWithOnlyOneAdCostSuccessfulCase() 558 .collect(Collectors.toList())) in testGenerateBidWithCopierSuccessfulCase() 603 .collect(Collectors.toList())) in testGenerateBidWithCopierWithAdCounterKeysSuccessfulCase() 658 .collect(Collectors.toList())) in testGenerateBidV3SuccessfulCase() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/common/ |
D | DBAdDataFixture.java | 60 .collect(Collectors.toList()); in getValidDbAdDataListByBuyer() 66 .collect(Collectors.toList()); in getValidDbAdDataListByBuyerWithAdRenderId() 74 .collect(Collectors.toList()); in getValidDbAdDataListByBuyerWithInvalidAdRenderId() 80 .collect(Collectors.toList()); in getValidDbAdDataListByBuyerNoFilters() 86 .collect(Collectors.toList()); in getInvalidDbAdDataListByBuyer()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/com/android/car/carlauncher/datasources/ |
D | AppOrderProtoDataSourceImplTest.kt | 26 import kotlinx.coroutines.flow.toList in <lambda>() 55 appOrderDataSource.getSavedAppOrder().toList(flows) in <lambda>() 98 appOrderDataSource.getSavedAppOrder().toList(flows) in <lambda>() 130 appOrderDataSource.getSavedAppOrder().toList(savedOrderFlows) in <lambda>() 134 appOrderDataSource.getSavedAppOrderComparator().toList(savedOrderComparatorFlows) in <lambda>() 189 appOrderDataSource.getSavedAppOrderComparator().toList(flows) in <lambda>() 227 appOrderDataSource.getSavedAppOrder().toList(savedOrderFlows) in <lambda>() 231 appOrderDataSource.getSavedAppOrderComparator().toList(savedOrderComparatorFlows) in <lambda>()
|
D | UXRestrictionsDataSourceImplTest.kt | 30 import kotlinx.coroutines.flow.toList 93 uxRestrictionDataSource.requiresDistractionOptimization().toList(outputFlows) in requiresDistractionOptimization_sendsRequired() 120 uxRestrictionDataSource.requiresDistractionOptimization().toList(outputFlows) in <lambda>() 147 uxRestrictionDataSource.requiresDistractionOptimization().toList(outputFlows) in <lambda>()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/ |
D | HealthConnectDeviceTest.java | 347 readRecords.stream().map(Record::getMetadata).map(Metadata::getId).toList(); in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 348 List<String> insertedIds = classAndIdPairs.stream().map(pair -> pair.second).toList(); in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 407 ownRecords.stream().map(record -> record.getMetadata().getId()).toList(); in testAppWithWritePermsOnly_readDataByIdForOwnApp_success() 419 .toList()) in testAppWithWritePermsOnly_readDataByIdForOwnApp_success() 432 ownRecords.stream().map(record -> record.getMetadata().getId()).toList(); in testAppWithWritePermsOnly_readDataByIdForOtherApps_filtersOutOtherAppData() 445 .collect(Collectors.toList())) in testAppWithWritePermsOnly_readDataByIdForOtherApps_filtersOutOtherAppData() 466 .collect(Collectors.toList()); in testAggregateRecords_onlyWritePermissions_requestsOwnDataOnly_succeeds() 680 .toList()) in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess() 697 .toList(); in testGrantingCorrectPermsPutsTheAppInPriorityList() 714 .toList(); in testGrantingCorrectPermsPutsTheAppInPriorityList() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/configuration/ |
D | ConfigurationManagerTest.kt | 26 import kotlinx.coroutines.flow.toList 95 backgroundScope.launch { configurationManager.configuration.toList(emissions) } in testConfigurationEmitsFlagChanges() 139 backgroundScope.launch { configurationManager.configuration.toList(emissions) } in testConfigurationChangesAreBatched() 199 backgroundScope.launch { configurationManager.configuration.toList(emissions) } in testSetIntentUpdatesConfiguration() 236 backgroundScope.launch { configurationManager.configuration.toList(emissions) } in testSetIntentSetsSelectionLimit() 275 backgroundScope.launch { configurationManager.configuration.toList(emissions) } in testSetIntentSetsSelectionLimitThrowsOnIllegalConfiguration() 319 backgroundScope.launch { configurationManager.configuration.toList(emissions) } in testSetIntentSetsSelectionLimitThrowsOnIllegalRange()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/ |
D | OtDaemonController.java | 62 .toList(); in getAddresses() 92 return getAddresses().stream().filter(addr -> meshLocalPrefix.contains(addr)).toList(); in getMeshLocalAddresses() 104 .toList(); in getMeshLocalPrefix() 121 .toList(); in executeCommandAndParse()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | CustomAudienceConvertersTest.java | 61 .collect(Collectors.toList()); in testSerializeAndDeserialize_runNormally() 72 .collect(Collectors.toList()); in testSerializeAndDeserialize_runNormallyNoFilters() 85 .collect(Collectors.toList()); in testSerializeAndDeserialize_filtersDisabled() 89 .collect(Collectors.toList()); in testSerializeAndDeserialize_filtersDisabled() 102 .collect(Collectors.toList()); in testSerializeAndDeserialize_toJsonFiltersDisabled() 106 .collect(Collectors.toList()); in testSerializeAndDeserialize_toJsonFiltersDisabled() 119 .collect(Collectors.toList()); in testSerializeAndDeserialize_fromJsonFiltersDisabled() 123 .collect(Collectors.toList()); in testSerializeAndDeserialize_fromJsonFiltersDisabled()
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/ |
D | UserTestingHelper.java | 119 .collect(Collectors.toList()); in newUsers() 129 .collect(Collectors.toList()); in newUserHandles() 136 public static List<UserInfo> toList(@NonNull UserInfo... users) { in toList() method in UserTestingHelper 137 return Arrays.stream(users).collect(Collectors.toList()); in toList() 144 public static List<UserHandle> toList(@NonNull UserHandle... users) { in toList() method in UserTestingHelper 145 return Arrays.stream(users).collect(Collectors.toList()); in toList()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
D | ScheduledUpdatesHandlerTest.java | 183 .collect(Collectors.toList()), in testPerformScheduledUpdates_Success() 225 .collect(Collectors.toList()) in testPerformScheduledUpdates_Success() 229 .collect(Collectors.toList()))); in testPerformScheduledUpdates_Success() 258 .collect(Collectors.toList()), in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabled() 300 .collect(Collectors.toList()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabled() 304 .collect(Collectors.toList()))); in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabled() 340 .collect(Collectors.toList()), in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsDisabled() 382 .collect(Collectors.toList()) in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsDisabled() 386 .collect(Collectors.toList()))); in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsDisabled() 426 .collect(Collectors.toList()), in testPerformScheduledUpdates_SuccessWithAuctionServerRequestFlagsEnabledButNoFlagsInResponse() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/selection/ |
D | GrantsAwareSelectionTest.kt | 28 import kotlinx.coroutines.flow.toList 157 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 190 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 231 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 270 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 321 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 360 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 401 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 497 backgroundScope.launch { selection.flow.toList(emissions) } in testSelectionCanRemoveSinglePreGrantedItem()
|
D | SelectionImplTest.kt | 27 import kotlinx.coroutines.flow.toList 153 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 186 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 227 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 266 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 317 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 356 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>() 397 backgroundScope.launch { selection.flow.toList(emissions) } in <lambda>()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/viewmodel/ |
D | FingerprintEnrollErrorDialogViewModelTest.kt | 23 import kotlinx.coroutines.flow.toList 60 viewModel.newDialogFlow.toList(it) in <lambda>() 84 viewModel.triggerRetryFlow.toList(it) in <lambda>() 105 viewModel.setResultFlow.toList(it) in <lambda>()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | GetActivityDatesTest.java | 70 records.stream().map(Record::getClass).collect(Collectors.toList())); in testEmptyActivityDates() 84 records.stream().map(Record::getClass).collect(Collectors.toList())); in testActivityDates() 102 .collect(Collectors.toList())); in testGetActivityDates_onUpdate() 134 updatedRecords.stream().map(Record::getClass).collect(Collectors.toList())); in testGetActivityDates_onUpdate() 152 records.stream().map(Record::getClass).collect(Collectors.toList())); in testGetActivityDates_onDelete() 173 records.stream().map(Record::getClass).collect(Collectors.toList())); in testGetActivityDates_onDelete()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/network/ |
D | NetworkMonitorTest.kt | 32 import kotlinx.coroutines.flow.toList 112 backgroundScope.launch { networkMonitor.networkStatus.toList(emissions) } in testCallbackEmitsNewNetworkStatus() 144 backgroundScope.launch { networkMonitor.networkStatus.toList(allEmissions) } in testNetworkStatusReplayedForNewSubscribers() 164 backgroundScope.launch { networkMonitor.networkStatus.toList(emissions) } in testNetworkStatusReplayedForNewSubscribers() 178 backgroundScope.launch { networkMonitor.networkStatus.toList(emissions) } in testNetworkStatusIsDistinctUntilChanged()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/ |
D | WifiHotspotSecuritySettingsTest.java | 100 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_checkedWpa3_setViewItemCorrectly() 109 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_checkedWpa2Wpa3_setViewItemCorrectly() 118 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_checkedWpa2_setViewItemCorrectly() 127 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_checkedNone_setViewItemCorrectly() 141 mSettings.onViewItemListDataChanged(mViewItemMap.values().stream().toList()); in onViewItemListDataChanged_enabledWpa3Only_setViewItemCorrectly()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/kanon/ |
D | KAnonMessageManager.java | 59 .collect(Collectors.toList()); in persistNewAnonMessageEntities() 86 .collect(Collectors.toList()); in fetchNKAnonMessagesWithStatus() 96 .collect(Collectors.toList()); in fetchKAnonMessageEntityWithMessage() 115 .collect(Collectors.toList()); in updateMessagesStatus()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/robotests/src/com/android/car/carlauncher/datasources/restricted/ |
D | TosAppsDataSourceImplTest.kt | 37 import kotlinx.coroutines.flow.toList 104 tosDataSource.getTosState().toList(flows) in <lambda>() 127 tosDataSource.getTosState().toList(flows) in <lambda>() 158 tosDataSource.getTosState().toList(flows) in <lambda>() 197 tosDataSource.getTosState().toList(flows) in <lambda>() 235 tosDataSource.getTosState().toList(flows) in testGetTosState_tosChangedToNotAccepted_shouldNotUnregisterObserver()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/evict/ |
D | FifoSignalEvictorTest.java | 84 .collect(Collectors.toList()), in testFifoEvict_signalEvicted() 87 .collect(Collectors.toList())); in testFifoEvict_signalEvicted() 138 .collect(Collectors.toList()), in assertUpdateOutputEquals() 141 .collect(Collectors.toList())); in assertUpdateOutputEquals()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/ |
D | DeleteUsingFiltersRequestParcel.java | 75 .collect(Collectors.toList()); in DeleteUsingFiltersRequestParcel() 127 .toList() in getRecordTypeFilters() 130 .toList(); in getRecordTypeFilters() 133 return Arrays.stream(mRecordTypeFilters).boxed().toList(); in getRecordTypeFilters()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/database/ |
D | ColumnInfo.java | 182 List<Integer> constraintList1 = mConstraints.stream().sorted().toList(); in checkColumnDiff() 183 List<Integer> constraintList2 = expectedColumn.mConstraints.stream().sorted().toList(); in checkColumnDiff() 192 List<String> checkConstraintList1 = mCheckConstraints.stream().sorted().toList(); in checkColumnDiff() 194 expectedColumn.mCheckConstraints.stream().sorted().toList(); in checkColumnDiff()
|