Home
last modified time | relevance | path

Searched refs:asList (Results 1 – 25 of 1535) sorted by relevance

12345678910>>...62

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/enrollment/
DPreEnrolledAdTechForTest.java28 return Arrays.asList( in getList()
43 .setAttributionSourceRegistrationUrl(Arrays.asList("https://test.com/source"))
44 .setAttributionTriggerRegistrationUrl(Arrays.asList("https://test.com/trigger"))
45 .setAttributionReportingUrl(Arrays.asList("https://test.com"))
46 .setRemarketingResponseBasedRegistrationUrl(Arrays.asList("https://test.com"))
56 Arrays.asList(
59 Arrays.asList("https://test2.com/trigger"))
60 .setAttributionReportingUrl(Arrays.asList("https://test2.com"))
61 .setRemarketingResponseBasedRegistrationUrl(Arrays.asList("https://test2.com"))
70 .setAttributionSourceRegistrationUrl(Arrays.asList("https://test3.com/source"))
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsBrokerServiceTest.java34 import static java.util.Arrays.asList;
239 mBrokerService.setProviderOfferings(mClientToken1, providerId, asList( in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
241 mBrokerService.setSubscriptions(mClientToken1, asList( in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
340 () -> mBrokerService.setSubscriptions(new Binder(), asList())); in testSetSubscriptions_UnknownClient()
347 mBrokerService.setSubscriptions(mClientToken1, asList( in testSetSubscriptions()
362 mBrokerService.setSubscriptions(mClientToken1, asList( in testSetSubscriptions_MultipleClients()
365 mBrokerService.setSubscriptions(mClientToken2, asList( in testSetSubscriptions_MultipleClients()
380 mBrokerService.setSubscriptions(mClientToken1, asList( in testSetSubscriptions_OverwriteSubscription()
383 mBrokerService.setSubscriptions(mClientToken1, asList( in testSetSubscriptions_OverwriteSubscription()
398 mBrokerService.setSubscriptions(mClientToken1, asList( in testSetSubscriptions_OverwriteSubscription_MultipleClients()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothUtilsTest.java92 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SOURCE_UUIDS), in testIsA2dpSourceProfileSupportedBothSupported_returnsTrue()
99 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(WRONG_UUIDS), in testIsA2dpSourceProfileSupportedRemoteSupported_returnsFalse()
106 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SOURCE_UUIDS), in testIsA2dpSourceProfileSupportedLocalSupported_returnsFalse()
113 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(WRONG_UUIDS), in testIsA2dpSourceProfileSupportedBothUnsupported_returnsFalse()
120 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SOURCE_UUIDS), in testIsA2dpSourceProfileSupportedBothSupportSameRole_returnsFalse()
127 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SINK_UUIDS), in testIsA2dpSinkProfileSupportedBothSupported_returnsTrue()
134 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(WRONG_UUIDS), in testIsA2dpSinkProfileSupportedRemoteSupported_returnsFalse()
141 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SINK_UUIDS), in testIsA2dpSinkProfileSupportedLocalSupported_returnsFalse()
148 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(WRONG_UUIDS), in testIsA2dpSinkProfileSupportedBothUnsupported_returnsFalse()
155 assertThat(BluetoothUtils.isProfileSupported(Arrays.asList(A2DP_SINK_UUIDS), in testIsA2dpSinkProfileSupportedBothSupportSameRole_returnsFalse()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/
DFilterTest.java56 sourceFilterMap.put("product", Arrays.asList("1234", "234")); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue()
64 triggerFilterMap1.put("product", Arrays.asList("12345", "2345")); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue()
65 triggerFilterMap1.put("id", Arrays.asList("1", "2")); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue()
72 triggerFilterMap2.put("product", Arrays.asList("1234", "2345")); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue()
73 triggerFilterMap2.put("id", Arrays.asList("1", "2")); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue()
88 sourceFilterMap.put("product", Arrays.asList("1234", "234")); in testIsFilterMatch_nonEmptyValues_returnsTrue()
96 triggerFilterMap.put("product", Arrays.asList("1234", "2345")); in testIsFilterMatch_nonEmptyValues_returnsTrue()
97 triggerFilterMap.put("id", Arrays.asList("1", "2")); in testIsFilterMatch_nonEmptyValues_returnsTrue()
171 sourceFilterMap.put("product", Arrays.asList("1234", "234")); in testIsFilterMatch_filterSet_nonEmptyValues_returnFalse()
180 triggerFilterMap1.put("product", Arrays.asList("2", "3")); in testIsFilterMatch_filterSet_nonEmptyValues_returnFalse()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPMatcherTest.java73 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in matchDomainNameUsingFQDN()
89 DomainNameElement element = new DomainNameElement(Arrays.asList(domains)); in matchDomainNameUsingIMSI()
115 new RoamingConsortiumElement(Arrays.asList(new Long[] {oi})); in matchRoamingConsortium()
152 Arrays.asList(new String[] {realm}), new ArrayList<EAPMethod>()); in matchNAIRealmWithRealmMatch()
154 Arrays.asList(new NAIRealmData[] {realmData})); in matchNAIRealmWithRealmMatch()
173 Arrays.asList(new String[] {realm}), Arrays.asList(new EAPMethod[] {method})); in matchNAIRealmWithRealmMethodMatch()
175 Arrays.asList(new NAIRealmData[] {realmData})); in matchNAIRealmWithRealmMethodMatch()
201 Arrays.asList(new String[] {realm}), Arrays.asList(new EAPMethod[] {method})); in matchNAIRealmWithExactMatch()
203 Arrays.asList(new NAIRealmData[] {realmData})); in matchNAIRealmWithExactMatch()
228 Arrays.asList(new String[] {realm}), Arrays.asList(new EAPMethod[] {method})); in matchNAIRealmWithEAPMethodMismatch()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java152 Arrays.asList(TestEnv.FILE_APK, TestEnv.FILE_JPG), in testStartDrag_SetsCorrectClipData()
154 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_SetsCorrectClipData()
167 Arrays.asList(TestEnv.FILE_APK, TestEnv.FILE_JPG), in testStartDrag_SetsCorrectClipData_NullParent()
169 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_SetsCorrectClipData_NullParent()
182 Arrays.asList(TestEnv.FILE_APK), in testStartDrag_BuildsCorrectShadow_SingleDoc()
184 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri), in testStartDrag_BuildsCorrectShadow_SingleDoc()
197 Arrays.asList(TestEnv.FILE_APK, TestEnv.FILE_JPG), in testStartDrag_BuildsCorrectShadow_MultipleDocs()
199 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_BuildsCorrectShadow_MultipleDocs()
214 Arrays.asList(TestEnv.FOLDER_1, TestEnv.FILE_JPG), in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate()
216 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FOLDER_1.derivedUri, in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate()
[all …]
DUserIdManagerTest.java71 initializeUserIdManager(currentUser, Arrays.asList(systemUser)); in testGetUserIds_systemUser_currentUserIsSystemUser()
79 initializeUserIdManager(currentUser, Arrays.asList(systemUser, managedUser1)); in testGetUserIds_systemUserAndManagedUser_currentUserIsSystemUser()
88 initializeUserIdManager(currentUser, Arrays.asList(systemUser, managedUser1)); in testGetUserIds_systemUserAndManagedUser_currentUserIsManagedUser()
97 initializeUserIdManager(currentUser, Arrays.asList(managedUser1, systemUser)); in testGetUserIds_managedUserAndSystemUser_currentUserIsSystemUser()
107 initializeUserIdManager(currentUser, Arrays.asList(nonManagedUser1, nonManagedUser2)); in testGetUserIds_NormalUser1AndNormalUser2_currentUserIsNormalUser2()
117 initializeUserIdManager(currentUser, Arrays.asList(nonManagedUser1, managedUser1)); in testGetUserIds_NormalUserAndManagedUser_currentUserIsNormalUser()
127 initializeUserIdManager(currentUser, Arrays.asList(nonManagedUser1, managedUser1)); in testGetUserIds_NormalUserAndManagedUser_currentUserIsManagedUser()
135 when(mockUserManager.getUserProfiles()).thenReturn(Arrays.asList(systemUser, managedUser1)); in testGetUserIds_deviceNotSupported()
149 Arrays.asList(systemUser, managedUser1)); in testGetUserIds_deviceWithoutPermission()
159 initializeUserIdManager(currentUser, Arrays.asList(systemUser, managedUser1)); in testGetUserIds_systemUserAndManagedUser_returnCachedList()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/statsconverters/
DProcessMemorySnapshotConverterTest.java86 private static final List<Integer> DIM_FIELDS_IDS = Arrays.asList(1, 2);
94 Arrays.asList(
99 Arrays.asList(
104 Arrays.asList(
115 List<Atom> atomsList = Arrays.asList(ATOM_A, ATOM_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
116 List<List<DimensionsValue>> dimensionsValuesList = Arrays.asList(DV_PAIR_A, DV_PAIR_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
126 .asList().containsExactly(1000, 2000).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
127 assertThat(Arrays.asList(bundle.getStringArray( in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
133 .asList().containsExactly(88, 99); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
137 .asList().containsExactly(100, 200).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
[all …]
DAppStartMemoryStateCapturedConverterTest.java83 private static final List<Integer> DIM_FIELDS_IDS = Arrays.asList(1, 2);
91 Arrays.asList(
96 Arrays.asList(
101 Arrays.asList(
113 List<Atom> atomsList = Arrays.asList(ATOM_A, ATOM_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
114 List<List<DimensionsValue>> dimensionsValuesList = Arrays.asList(DV_PAIR_A, DV_PAIR_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
125 .asList().containsExactly(1000, 2000).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
126 assertThat(Arrays.asList(bundle.getStringArray( in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
130 assertThat(Arrays.asList(bundle.getStringArray( in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
137 .asList().containsExactly(59L, 99L).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
[all …]
DProcessMemoryStateConverterTest.java83 private static final List<Integer> DIM_FIELDS_IDS = Arrays.asList(1, 2);
91 Arrays.asList(
96 Arrays.asList(
101 Arrays.asList(
112 List<Atom> atomsList = Arrays.asList(ATOM_A, ATOM_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
113 List<List<DimensionsValue>> dimensionsValuesList = Arrays.asList(DV_PAIR_A, DV_PAIR_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
123 .asList().containsExactly(1000, 2000).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
124 assertThat(Arrays.asList(bundle.getStringArray( in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
131 .asList().containsExactly(100, 200).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
134 .asList().containsExactly(59L, 99L).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
[all …]
DProcessCpuTimeConverterTest.java68 private static final List<Integer> DIM_FIELDS_IDS = Arrays.asList(1, 2);
76 Arrays.asList(
81 Arrays.asList(
86 Arrays.asList(
97 List<Atom> atomsList = Arrays.asList(ATOM_A, ATOM_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
98 List<List<DimensionsValue>> dimensionsValuesList = Arrays.asList(DV_PAIR_A, DV_PAIR_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
108 .asList().containsExactly(1000, 2000).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
109 assertThat(Arrays.asList(bundle.getStringArray( in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
116 .asList().containsExactly(234L, 345L).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
120 .asList().containsExactly(111L, 222L).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
[all …]
DActivityForegroundStateChangedConverterTest.java69 private static final List<Integer> DIM_FIELDS_IDS = Arrays.asList(1, 2);
77 Arrays.asList(
82 Arrays.asList(
87 Arrays.asList(
99 List<Atom> atomsList = Arrays.asList(ATOM_A, ATOM_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
100 List<List<DimensionsValue>> dimensionsValuesList = Arrays.asList(DV_PAIR_A, DV_PAIR_B); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
111 .asList().containsExactly(1000, 2000).inOrder(); in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
112 assertThat(Arrays.asList(bundle.getStringArray( in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
115 assertThat(Arrays.asList(bundle.getStringArray( in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
121 .asList().containsExactly(0, 1).inOrder(); // States background=0 and foreground=1 in testConvertAtomsListWithDimensionValues_putsCorrectDataToPersistableBundle()
[all …]
DGaugeMetricDataConverterTest.java52 List<StatsLogProto.GaugeMetricData> gaugeDataList = Arrays.asList( in testConvertGaugeDataList_putsCorrectDataIntoPersistableBundle()
97 List<Integer> dimensionsFieldsIds = Arrays.asList(1, 2, 8); in testConvertGaugeDataList_putsCorrectDataIntoPersistableBundle()
112 .asList().containsExactly(123, 123, 123, 234).inOrder(); in testConvertGaugeDataList_putsCorrectDataIntoPersistableBundle()
113 assertThat(Arrays.asList(bundle.getStringArray( in testConvertGaugeDataList_putsCorrectDataIntoPersistableBundle()
120 .asList().containsExactly(1000L, 1100L, 1200L, 1300L).inOrder(); in testConvertGaugeDataList_putsCorrectDataIntoPersistableBundle()
124 .asList().containsExactly(1234L, 2345L, 3456L, 4567L).inOrder(); in testConvertGaugeDataList_putsCorrectDataIntoPersistableBundle()
128 .asList().containsExactly(11111111L, 11111111L, 11111111L, 22222222L).inOrder(); in testConvertGaugeDataList_putsCorrectDataIntoPersistableBundle()
130 .asList().containsExactly(12345678L, 23456789L, 34567890L, 445678901L).inOrder(); in testConvertGaugeDataList_putsCorrectDataIntoPersistableBundle()
138 List<StatsLogProto.GaugeMetricData> gaugeDataList = Arrays.asList( in testConvertGaugeDataList_forAggregatedAtoms_putsCorrectDataIntoPersistableBundle()
189 List<Integer> dimensionsFieldsIds = Arrays.asList(1, 2, 8); in testConvertGaugeDataList_forAggregatedAtoms_putsCorrectDataIntoPersistableBundle()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/
DCleanupUtilsTest.java74 Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1)); in testEmpty()
85 doReturn(Arrays.asList(installedPackage1, installedPackage2)) in testCleanupNotUninstalled()
89 Arrays.asList( in testCleanupNotUninstalled()
92 List<String> expected = Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_2); in testCleanupNotUninstalled()
97 Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1)); in testCleanupNotUninstalled()
106 doReturn(Arrays.asList(installedPackage2)) in testCleanupNotAllowed()
110 Arrays.asList( in testCleanupNotAllowed()
113 List<String> expected = Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1); in testCleanupNotAllowed()
116 packageList, CONTEXT.getPackageManager(), Arrays.asList(ALLOW_ALL)); in testCleanupNotAllowed()
127 doReturn(Arrays.asList(installedPackage1, installedPackage2)) in testCleanupMultipleAllowLists()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/
DFileOperationServiceTest.java126 startService(createCopyIntent(Arrays.asList(ALPHA_DOC), BETA_DOC)); in testRunsCopyJobs()
127 startService(createCopyIntent(Arrays.asList(GAMMA_DOC), DELTA_DOC)); in testRunsCopyJobs()
140 startService(createCopyIntent(Arrays.asList(GAMMA_DOC), DELTA_DOC)); in testRunsCopyJobs_AfterExceptionInJobCreation()
149 startService(createCopyIntent(Arrays.asList(ALPHA_DOC), BETA_DOC)); in testRunsCopyJobs_AfterFailure()
150 startService(createCopyIntent(Arrays.asList(GAMMA_DOC), DELTA_DOC)); in testRunsCopyJobs_AfterFailure()
159 startService(createCopyIntent(Arrays.asList(ALPHA_DOC), BETA_DOC)); in testRunsCopyJobs_notRunsDeleteJobs()
160 startService(createDeleteIntent(Arrays.asList(GAMMA_DOC))); in testRunsCopyJobs_notRunsDeleteJobs()
167 startService(createDeleteIntent(Arrays.asList(ALPHA_DOC))); in testRunsDeleteJobs()
174 startService(createCopyIntent(Arrays.asList(ALPHA_DOC), BETA_DOC)); in testRunsDeleteJobs_NotRunsCopyJobs()
175 startService(createDeleteIntent(Arrays.asList(GAMMA_DOC))); in testRunsDeleteJobs_NotRunsCopyJobs()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregatableAttributionTriggerTest.java57 Arrays.asList("campCounts", "campGeoCounts"))).build(); in createExample()
62 Arrays.asList("campCounts", "campGeoCounts", "campGeoValue"))) in createExample()
70 .setTriggerData(Arrays.asList(attributionTriggerData1, attributionTriggerData2)) in createExample()
76 .setTriggerData(Arrays.asList(attributionTriggerData1, attributionTriggerData2)) in createExample()
122 .setSourceKeys(new HashSet<>(Arrays.asList("campCounts", "campGeoCounts"))) in testHashCode_notEquals()
130 .setTriggerData(Arrays.asList(attributionTriggerData1)) in testHashCode_notEquals()
147 triggerFilterMap1.put("product", Arrays.asList("1234", "234")); in testExtractDedupKey_bothKeysHaveMatchingFilters()
160 triggerFilterMap2.put("product", Arrays.asList("1234", "234")); in testExtractDedupKey_bothKeysHaveMatchingFilters()
174 sourceFilterMap.put("product", Arrays.asList("1234", "234")); in testExtractDedupKey_bothKeysHaveMatchingFilters()
179 createExample(Arrays.asList(aggregateDeduplicationKey1, aggregateDeduplicationKey2)) in testExtractDedupKey_bothKeysHaveMatchingFilters()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DAppInstallDaoTest.java92 PACKAGE_1, Arrays.asList(new DBAppInstallPermissions(BUYER_1, PACKAGE_1))); in testSetThenRead()
100 PACKAGE_1, Arrays.asList(new DBAppInstallPermissions(BUYER_1, PACKAGE_1))); in testSetThenDelete()
107 PACKAGE_1, Arrays.asList(new DBAppInstallPermissions(BUYER_1, PACKAGE_1))); in testSetThenDeleteThenRead()
117 Arrays.asList( in testSetThenReadMultiple()
128 PACKAGE_1, Arrays.asList(new DBAppInstallPermissions(BUYER_1, PACKAGE_1))); in testSetThenReadMultipleSeparateCalls()
130 PACKAGE_2, Arrays.asList(new DBAppInstallPermissions(BUYER_2, PACKAGE_2))); in testSetThenReadMultipleSeparateCalls()
140 Arrays.asList( in testSetThenReadMultipleBuyers()
151 Arrays.asList( in testSetThenDeleteMultipleBuyers()
161 Arrays.asList( in testSetThenDeleteThenReadMultipleBuyers()
173 Arrays.asList( in testSetThenReadMultiplePackages()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DUserManagerStateTest.java121 Arrays.asList(mPersonalUser, mManagedUser, mOtherUser1, mOtherUser2)); in testUserManagerStateThrowsErrorIfCalledFromNonMainThread()
155 Arrays.asList(mPersonalUser, mManagedUser, mOtherUser1, mOtherUser2)); in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsPersonalUser()
158 List<UserId> userIdList = SdkLevel.isAtLeastV() ? Arrays.asList( in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsPersonalUser()
160 : Arrays.asList(UserId.of(mPersonalUser), UserId.of(mManagedUser)); in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsPersonalUser()
170 Arrays.asList(mPersonalUser, mManagedUser, mOtherUser1, mOtherUser2)); in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsManagedUser()
172 List<UserId> userIdList = SdkLevel.isAtLeastV() ? Arrays.asList( in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsManagedUser()
174 : Arrays.asList(UserId.of(mPersonalUser), UserId.of(mManagedUser)); in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsManagedUser()
183 Arrays.asList(mPersonalUser, mManagedUser, mOtherUser1, mOtherUser2)); in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsOtherUser1()
186 List<UserId> userIdList = SdkLevel.isAtLeastV() ? Arrays.asList( in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsOtherUser1()
188 : Arrays.asList(UserId.of(mPersonalUser), UserId.of(mManagedUser)); in testGetAllUserProfileIdsThatNeedToShowInPhotoPicker_currentUserIsOtherUser1()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DClusterHalServiceTest.java115 return Arrays.asList( in getFullProperties()
124 return Arrays.asList( in getCoreProperties()
164 mClusterHalService.takeProperties(Arrays.asList( in testIsServiceEnabled_fullMode_partialProperties()
172 mClusterHalService.takeProperties(Arrays.asList()); in testIsServiceEnabled_fullMode_noProperties()
179 ClusterHalService lightModeService = createLightModeServiceWithProperties(Arrays.asList( in testIsServiceEnabled_lightMode_partialProperties()
187 ClusterHalService lightModeService = createLightModeServiceWithProperties(Arrays.asList()); in testIsServiceEnabled_lightMode_noProperties()
216 mClusterHalService.takeProperties(Arrays.asList()); in testInit_subscribePropertySafe_noProperties()
227 ClusterHalService lightModeService = createLightModeServiceWithProperties(Arrays.asList()); in testInit_lightMode_subscribePropertySafe_noProperties()
238 mClusterHalService.takeProperties(Arrays.asList( in testInit_subscribePropertySafe_partialProperties()
250 ClusterHalService lightModeService = createLightModeServiceWithProperties(Arrays.asList( in testInit_lightMode_subscribePropertySafe_partialProperties()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DNotificationContentObserverTest.java57 mObserver.registerKeysToObserverCallback(Arrays.asList(KEY_MEDIA), mObserverCallbackA); in registerKeysToObserverCallback_correctKeys_registersCallback()
59 Arrays.asList(KEY_ALBUM_CONTENT), mObserverCallbackB); in registerKeysToObserverCallback_correctKeys_registersCallback()
63 .containsEntry(Arrays.asList(KEY_MEDIA), mObserverCallbackA); in registerKeysToObserverCallback_correctKeys_registersCallback()
65 .containsEntry(Arrays.asList(KEY_ALBUM_CONTENT), mObserverCallbackB); in registerKeysToObserverCallback_correctKeys_registersCallback()
68 Arrays.asList(KEY_MEDIA, KEY_ALBUM_CONTENT), mObserverCallbackB); in registerKeysToObserverCallback_correctKeys_registersCallback()
72 Arrays.asList(KEY_MEDIA, KEY_ALBUM_CONTENT), mObserverCallbackB); in registerKeysToObserverCallback_correctKeys_registersCallback()
77 mObserver.registerKeysToObserverCallback(Arrays.asList("invalid_key"), mObserverCallbackA); in registerKeysToObserverCallback_incorrectKey_doesNotRegisterCallback()
85 Arrays.asList(KEY_ALBUM_CONTENT, "invalid_key"), mObserverCallbackB); in registerKeysToObserverCallback_atLeastOneValidKey_registersCallback()
92 mObserver.registerKeysToObserverCallback(Arrays.asList(KEY_MEDIA), mObserverCallbackA); in onChange_receivesCorrectMediaUri_invokesCallback()
103 Arrays.asList(KEY_ALBUM_CONTENT), mObserverCallbackB); in onChange_receivesCorrectAlbumContentUri_invokesCallback()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DLinkPropertiesUtilsTest.java199 compareResult(Arrays.asList(1, 2, 3, 4), Arrays.asList(1), in testCompareResult()
200 Arrays.asList(2, 3, 4), new ArrayList<>()); in testCompareResult()
201 compareResult(Arrays.asList(1, 2), Arrays.asList(3, 2, 1, 4), in testCompareResult()
202 new ArrayList<>(), Arrays.asList(3, 4)); in testCompareResult()
206 compareResult(Arrays.asList(1, 2, 3, 4), Arrays.asList(2, 3, 4, 5), in testCompareResult()
207 Arrays.asList(1), Arrays.asList(5)); in testCompareResult()
208 compareResult(Arrays.asList(1, 2, 3), Arrays.asList(4, 5, 6), in testCompareResult()
209 Arrays.asList(1, 2, 3), Arrays.asList(4, 5, 6)); in testCompareResult()
212 compareResult(Arrays.asList(1, 2, 3), null, Arrays.asList(1, 2, 3), new ArrayList<>()); in testCompareResult()
213 compareResult(null, Arrays.asList(3, 2, 1), new ArrayList<>(), Arrays.asList(1, 2, 3)); in testCompareResult()
[all …]
/packages/apps/TV/partner_support/tests/robotests/javatests/com/google/android/tv/partner/support/
DTunerSetupUtilsTest.java39 List<String> channelNumbers1 = Arrays.asList("1.1", "1.2", "2.3"); in getMatchCount_allMatch()
41 TunerSetupUtils.parseChannelNumbers(Arrays.asList("1.1", "1.2", "2.3")); in getMatchCount_allMatch()
48 List<String> channelNumbers1 = Arrays.asList("1.1", "1.2", "2.3"); in getMatchCount_someMatch()
50 TunerSetupUtils.parseChannelNumbers(Arrays.asList("1.0", "1.1", "2")); in getMatchCount_someMatch()
57 List<String> channelNumbers1 = Arrays.asList("1.1", "1.2", "2.3"); in getMatchCount_noMatch()
59 TunerSetupUtils.parseChannelNumbers(Arrays.asList("1.0", "1.3", "3")); in getMatchCount_noMatch()
93 Arrays.asList("22", "1"), Arrays.asList("22", "1"))) in matchChannelNumber_match_majorAndMinorNumbers()
109 Arrays.asList("22", "1"), Collections.singletonList("22"))) in matchChannelNumber_match_differentSize()
117 Arrays.asList("22", "1"), Collections.singletonList("11"))) in matchChannelNumber_notMatch()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DImsConferenceTest.java108 Arrays.asList(participant1, participant2)); in testPropertyPropagation()
159 Arrays.asList(participant1)); in testNotifyOnConferenceCapacityChanged()
164 Arrays.asList(participant1, participant2)); in testNotifyOnConferenceCapacityChanged()
169 Arrays.asList(participant1)); in testNotifyOnConferenceCapacityChanged()
202 Arrays.asList(participant1, participant2)); in testSinglePartyEmulation()
210 Arrays.asList(participant1)); in testSinglePartyEmulation()
218 Arrays.asList(participant1, participant2)); in testSinglePartyEmulation()
260 Arrays.asList(participant1, participant2, participant3)); in testDisconnectParticipantViaDisconnectState()
275 Arrays.asList(participant1, participant2, participant3Disconnected)); in testDisconnectParticipantViaDisconnectState()
282 Arrays.asList(participant1, participant2)); in testDisconnectParticipantViaDisconnectState()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DEpochManagerTest.java163 appSdksUsageMap.put("app1", Arrays.asList("", "sdk1", "sdk2")); in testComputeCallersCanLearnMap()
165 appSdksUsageMap.put("app2", Arrays.asList("sdk1", "sdk3", "sdk4")); in testComputeCallersCanLearnMap()
166 appSdksUsageMap.put("app3", Arrays.asList("sdk1", "sdk5")); in testComputeCallersCanLearnMap()
171 appSdksUsageMap.put("app5", Arrays.asList("sdk1", "sdk5")); in testComputeCallersCanLearnMap()
181 appClassificationTopicsMap.put("app1", Arrays.asList(topic1, topic2)); in testComputeCallersCanLearnMap()
182 appClassificationTopicsMap.put("app2", Arrays.asList(topic2, topic3)); in testComputeCallersCanLearnMap()
183 appClassificationTopicsMap.put("app3", Arrays.asList(topic4, topic5)); in testComputeCallersCanLearnMap()
184 appClassificationTopicsMap.put("app4", Arrays.asList(topic5, topic6)); in testComputeCallersCanLearnMap()
192 expectedCallerCanLearnMap.put(topic1, new HashSet<>(Arrays.asList("app1", "sdk1", "sdk2"))); in testComputeCallersCanLearnMap()
197 topic2, new HashSet<>(Arrays.asList("app1", "sdk1", "sdk2", "sdk3", "sdk4"))); in testComputeCallersCanLearnMap()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/enrollment/
DEnrollmentDataTest.java140 List<String> items = Arrays.asList("first.item", "second.item"); in testSplitEnrollmentInputToList_multipleItems()
168 Arrays.asList( in testEquals()
171 Arrays.asList("https://2test.com/trigger")) in testEquals()
172 .setAttributionReportingUrl(Arrays.asList("https://2test.com")) in testEquals()
174 Arrays.asList("https://2test.com")) in testEquals()
183 Arrays.asList( in testEquals()
186 Arrays.asList("https://2test.com/trigger")) in testEquals()
187 .setAttributionReportingUrl(Arrays.asList("https://2test.com")) in testEquals()
189 Arrays.asList("https://2test.com")) in testEquals()
203 Arrays.asList( in testSetEnrolledAPIs_returnsUnknownAPI()
[all …]

12345678910>>...62