Home
last modified time | relevance | path

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

12345678910>>...26

/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 …]
DVmsLayerAvailabilityTest.java44 new HashSet<>(Arrays.asList(PUBLISHER_ID_1, PUBLISHER_ID_2));
109 new HashSet<>(Arrays.asList( in testChainOfDependenciesSatisfied()
129 new HashSet<>(Arrays.asList(X_DEPENDS_ON_Y, Y_DEPENDS_ON_Z)), in testChainOfDependenciesSatisfiedTwoOfferings()
148 new VmsLayersOffering(new HashSet<>(Arrays.asList(X_DEPENDS_ON_Y, Y_DEPENDS_ON_Z)), in testChainOfDependenciesNotSatisfied()
167 new HashSet<>(Arrays.asList( in testOneOfMultipleDependencySatisfied()
185 Arrays.asList(X_DEPENDS_ON_Y, Y_DEPENDS_ON_Z, Z_DEPENDS_ON_X)), in testCyclicDependency()
204 new HashSet<>(Arrays.asList(X_DEPENDS_ON_Y, Z_DEPENDS_ON_NOTHING)), in testAlmostCyclicDependency()
208 new VmsLayersOffering(new HashSet<>(Arrays.asList(Y_DEPENDS_ON_Z, Z_DEPENDS_ON_X)), in testAlmostCyclicDependency()
226 Arrays.asList(X_DEPENDS_ON_Y, Z_DEPENDS_ON_NOTHING)), in testCyclicDependencyAndLayerWithoutDependency()
/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 …]
DAbstractActionHandlerTest.java132 Arrays.asList(TestEnv.FOLDER_1.documentId, TestEnv.FOLDER_2.documentId)); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
133 mEnv.docs.nextDocuments = Arrays.asList(TestEnv.FOLDER_1, TestEnv.FOLDER_2); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
152 mEnv.docs.nextDocuments = Arrays.asList(TestEnv.FOLDER_1, TestEnv.FOLDER_2); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
176 Arrays.asList(TestEnv.FOLDER_1.documentId, TestEnv.FOLDER_2.documentId, in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
178 mEnv.docs.nextDocuments = Arrays.asList( in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
211 Arrays.asList( in testLaunchToDocuments()
216 Arrays.asList(TestEnv.FOLDER_0, TestEnv.FOLDER_1, TestEnv.FILE_GIF); in testLaunchToDocuments()
224 Arrays.asList(TestEnv.FOLDER_0, TestEnv.FOLDER_1)); in testLaunchToDocuments()
237 Arrays.asList( in testLaunchToDocuments_convertsTreeUriToDocumentUri()
242 Arrays.asList(TestEnv.FOLDER_0, TestEnv.FOLDER_1, TestEnv.FILE_GIF); in testLaunchToDocuments_convertsTreeUriToDocumentUri()
[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/services/Telephony/tests/src/com/android/services/telephony/
DImsConferenceTest.java104 Arrays.asList(participant1, participant2)); in testPropertyPropagation()
146 Arrays.asList(participant1, participant2)); in testSinglePartyEmulation()
154 Arrays.asList(participant1)); in testSinglePartyEmulation()
162 Arrays.asList(participant1, participant2)); in testSinglePartyEmulation()
204 Arrays.asList(participant1, participant2, participant3)); in testDisconnectParticipantViaDisconnectState()
219 Arrays.asList(participant1, participant2, participant3Disconnected)); in testDisconnectParticipantViaDisconnectState()
226 Arrays.asList(participant1, participant2)); in testDisconnectParticipantViaDisconnectState()
268 Arrays.asList(participant1, participant2, participant3)); in testDisconnectParticipantViaRemoval()
277 Arrays.asList(participant1, participant2)); in testDisconnectParticipantViaRemoval()
319 Arrays.asList(participant1, participant2)); in testSinglePartyEmulationEnterOnDisconnectParticipant()
[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/Car/tests/android_car_api_test/src/android/car/apitest/
DCarAppFocusManagerTest.java128 assertThat(manager1.getActiveAppTypes()).asList().isEmpty(); in testFocusChange()
142 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
143 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
154 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
155 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
165 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
166 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
179 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
180 assertThat(manager2.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
190 assertThat(manager1.getActiveAppTypes()).asList().containsExactly(expectedFocus).inOrder(); in testFocusChange()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java82 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList( in getAvailabilityStatus_onlyOneSubscription_notAvailable()
89 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList( in getAvailabilityStatus_twoSubscriptions_isAvailable()
113 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
141 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
174 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2, sub3)); in displayPreference_threeSubsOneIsOpportunistic_correctListPreferenceValues()
197 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly()
210 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly()
227 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1)); in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull()
235 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull()
247 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()
[all …]
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastDatabaseHelperTest.java67 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.SLOT_INDEX)); in dataBaseHelper_create()
68 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.LOCATION_CHECK_TIME)); in dataBaseHelper_create()
69 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.MESSAGE_DISPLAYED)); in dataBaseHelper_create()
70 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.DATA_CODING_SCHEME)); in dataBaseHelper_create()
71 assertFalse(Arrays.asList(columns).contains("etws_is_primary")); in dataBaseHelper_create()
86 assertTrue(Arrays.asList(upgradedColumns).contains(CellBroadcasts.SLOT_INDEX)); in databaseHelperOnUpgrade_V1ToV4()
87 assertTrue(Arrays.asList(upgradedColumns).contains(CellBroadcasts.LOCATION_CHECK_TIME)); in databaseHelperOnUpgrade_V1ToV4()
88 assertTrue(Arrays.asList(upgradedColumns).contains(CellBroadcasts.MESSAGE_DISPLAYED)); in databaseHelperOnUpgrade_V1ToV4()
89 assertTrue(Arrays.asList(upgradedColumns).contains(CellBroadcasts.DATA_CODING_SCHEME)); in databaseHelperOnUpgrade_V1ToV4()
90 assertTrue(Arrays.asList(upgradedColumns).contains("etws_is_primary")); in databaseHelperOnUpgrade_V1ToV4()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceControllerTest.java161 Arrays.asList(createSubInfo(SUBID_1, "sub1"), createSubInfo(SUBID_2, "sub2"))); in refreshUi_multipleSubscriptions_showsPreference()
173 Arrays.asList(createSubInfo(SUBID_1, displayName1), in refreshUi_multipleSubscriptions_populatesEntries()
178 assertThat(Arrays.asList(mListPreference.getEntries())).containsExactly(displayName1, in refreshUi_multipleSubscriptions_populatesEntries()
180 assertThat(Arrays.asList(mListPreference.getEntryValues())).containsExactly( in refreshUi_multipleSubscriptions_populatesEntries()
188 Arrays.asList(createSubInfo(SUBID_1, "sub1"), createSubInfo(SUBID_2, "sub2"), in refreshUi_defaultSelection_fourthPriority_system()
200 Arrays.asList(createSubInfo(SUBID_1, "sub1"), createSubInfo(SUBID_2, "sub2"), in refreshUi_defaultSelection_thirdPriority_sms()
213 Arrays.asList(createSubInfo(SUBID_1, "sub1"), createSubInfo(SUBID_2, "sub2"), in refreshUi_defaultSelection_secondPriority_voice()
227 Arrays.asList(createSubInfo(SUBID_1, "sub1"), createSubInfo(SUBID_2, "sub2"), in refreshUi_defaultSelection_firstPriority_data()
248 Arrays.asList(subInfo, createSubInfo(SUBID_2, "sub2"))); in refreshUi_title_fourthPriority_subscriptionNetworkIds()
269 Arrays.asList(subInfo, createSubInfo(SUBID_2, "sub2"))); in refreshUi_title_thirdPriority_subscriptionCarrierName()
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/
DMainActivityRoboTest.java125 List<TvTrackInfo> tracks = Arrays.asList( in testFindBestCaptionTrack_bestTrackMatch()
130 List<String> preferredLanguages = Arrays.asList("DE", "FR"); in testFindBestCaptionTrack_bestTrackMatch()
140 List<TvTrackInfo> tracks = Arrays.asList( in testFindBestCaptionTrack_selectedLanguageMatch()
145 List<String> preferredLanguages = Arrays.asList("DE", "FR"); in testFindBestCaptionTrack_selectedLanguageMatch()
155 List<TvTrackInfo> tracks = Arrays.asList( in testFindBestCaptionTrack_preferredLanguageMatch()
160 List<String> preferredLanguages = Arrays.asList("DE", "FR"); in testFindBestCaptionTrack_preferredLanguageMatch()
170 List<TvTrackInfo> tracks = Arrays.asList( in testFindBestCaptionTrack_higherPriorityPreferredLanguageMatch()
175 List<String> preferredLanguages = Arrays.asList("FR", "EN"); in testFindBestCaptionTrack_higherPriorityPreferredLanguageMatch()
185 List<TvTrackInfo> tracks = Arrays.asList( in testFindBestCaptionTrack_noMatch()
190 List<String> preferredLanguages = Arrays.asList("DE", "IT"); in testFindBestCaptionTrack_noMatch()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DAccessPointListPreferenceControllerTest.java117 List<AccessPoint> accessPointList = Arrays.asList(mMockAccessPoint1); in refreshUi_notEmpty_visible()
126 List<AccessPoint> accessPointList = Arrays.asList(mMockAccessPoint1); in refreshUi_notEmpty_listCount()
136 List<AccessPoint> accessPointList = Arrays.asList(mMockAccessPoint1); in refreshUi_notSavedAccessPoint_noForgetButton()
147 List<AccessPoint> allAccessPointList = Arrays.asList(mMockAccessPoint1, mMockAccessPoint2); in onUxRestrictionsChanged_switchToSavedApOnly()
149 List<AccessPoint> savedAccessPointList = Arrays.asList(mMockAccessPoint1); in onUxRestrictionsChanged_switchToSavedApOnly()
166 List<AccessPoint> accessPointList = Arrays.asList(mMockAccessPoint1); in performClick_noSecurityNotConnectedAccessPoint_connect()
179 List<AccessPoint> accessPointList = Arrays.asList(mMockAccessPoint1); in performClick_oweSecurityNotConnectedAccessPoint_connect()
190 List<AccessPoint> accessPointList = Arrays.asList(mMockAccessPoint1); in performClick_activeAccessPoint_showDetailsFragment()
202 List<AccessPoint> accessPointList = Arrays.asList(mMockAccessPoint1); in performClick_savedAccessPoint_connect()
224 List<AccessPoint> accessPointList = Arrays.asList(mMockAccessPoint1); in performButtonClick_savedAccessPoint_forgetsNetwork()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.java155 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneSubscription_correctSummaryAndClickHandler()
175 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneInactivePSim_cannotDisablePsim_correctSummaryAndClickHandler()
193 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummary_oneInactivePSim_canDisablePsim_correctSummaryAndClickHandler()
219 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in getSummary_twoSubscriptions_correctSummaryAndFragment()
235 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
243 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummaryAfterUpdate_twoSubscriptionsBecomesOne_correctSummaryAndFragment()
263 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment()
275 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1, sub2)); in getSummaryAfterUpdate_oneSubscriptionBecomesTwo_correctSummaryAndFragment()
294 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in addButton_oneSubscriptionNoEuiccMgr_noAddClickListener()
310 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(sub1)); in addButton_oneSubscription_hasAddClickListener()
[all …]
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java96 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber)); in testLabel_withOnlyOneNumber_showLabel()
106 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber)); in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
120 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber)); in testLabel_withOneNumberAndGetNullLabel_showEmptyString()
132 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
146 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
161 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
180 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testLabel_HasPrimaryNumberButGetNullLabel_showMultipleLabel()
194 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber)); in testClickCallActionButton_ContactHasOneNumber_placeCall()
214 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testClickCallActionButton_HasMultipleNumbersAndNoPrimaryNumber_showAlertDialog()
234 when(mMockContact.getNumbers()).thenReturn(Arrays.asList(phoneNumber1, phoneNumber2)); in testClickCallActionButton_HasMultipleNumbersAndPrimaryNumber_callPrimaryNumber()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSlidingWindowTest.java44 final List<Integer> elements = Arrays.asList(3, 4); in testAdd()
51 final List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testAddOverflow()
52 final List<Integer> expectedElements = Arrays.asList(6, 7, 8, 9, 10); in testAddOverflow()
59 final List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testStream()
60 final List<Integer> expectedElements = Arrays.asList(6, 7, 8, 9, 10); in testStream()
69 final List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testCount()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java77 private static final List<Byte> PAYLOAD_AS_LIST = Arrays.asList(new Byte[]{1, 2, 3, 4});
179 mHalService.takeProperties(Arrays.asList(vmsPropConfig)); in testTakeSupportedProperties()
463 new VmsLayerDependency(LAYER, new LinkedHashSet<>(Arrays.asList( in testHandleOfferingEvent_MultipleLayersAndDependencies()
544 new VmsAvailableLayers(new LinkedHashSet<>(Arrays.asList( in testHandleAvailabilityRequestEvent_MultipleLayers()
546 new LinkedHashSet<>(Arrays.asList(PUBLISHER_ID, 54321))), in testHandleAvailabilityRequestEvent_MultipleLayers()
670 new VmsAvailableLayers(new LinkedHashSet<>(Arrays.asList( in testOnLayersAvailabilityChanged_MultipleLayers()
672 new LinkedHashSet<>(Arrays.asList(PUBLISHER_ID, 54321))), in testOnLayersAvailabilityChanged_MultipleLayers()
807 new LinkedHashSet<>(Arrays.asList( in testHandleSubscriptionsRequestEvent_MultipleLayersAndAssociatedLayers()
812 new LinkedHashSet<>(Arrays.asList( in testHandleSubscriptionsRequestEvent_MultipleLayersAndAssociatedLayers()
815 new LinkedHashSet<>(Arrays.asList( in testHandleSubscriptionsRequestEvent_MultipleLayersAndAssociatedLayers()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/
DBaseDvrDataManager.java141 if (DEBUG) Log.d(TAG, "notify " + l + " added " + Arrays.asList(recordedPrograms)); in notifyRecordedProgramsAdded()
149 if (DEBUG) Log.d(TAG, "notify " + l + " changed " + Arrays.asList(recordedPrograms)); in notifyRecordedProgramsChanged()
157 if (DEBUG) Log.d(TAG, "notify " + l + " removed " + Arrays.asList(recordedPrograms)); in notifyRecordedProgramsRemoved()
165 if (DEBUG) Log.d(TAG, "notify " + l + " added " + Arrays.asList(seriesRecordings)); in notifySeriesRecordingAdded()
173 if (DEBUG) Log.d(TAG, "notify " + l + " removed " + Arrays.asList(seriesRecordings)); in notifySeriesRecordingRemoved()
181 if (DEBUG) Log.d(TAG, "notify " + l + " changed " + Arrays.asList(seriesRecordings)); in notifySeriesRecordingChanged()
189 if (DEBUG) Log.d(TAG, "notify " + l + " added " + Arrays.asList(scheduledRecording)); in notifyScheduledRecordingAdded()
197 if (DEBUG) Log.d(TAG, "notify " + l + " removed " + Arrays.asList(scheduledRecording)); in notifyScheduledRecordingRemoved()
208 if (DEBUG) Log.d(TAG, "notify " + l + " changed " + Arrays.asList(scheduledRecording)); in notifyScheduledRecordingStatusChanged()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DPictureTakerFactory.java53 Arrays.asList(rootRequestBuilder), true /* ae */, true /* af */) : in create()
58 Arrays.asList(rootRequestBuilder), true /* ae */); in create()
66 Arrays.asList(rootRequestBuilder), false /* ae */, true /* af */) : in create()
71 Arrays.asList(rootRequestBuilder), false /* ae */); in create()
80 Arrays.asList(rootRequestBuilder), true /* ae */, true /* af */) : in create()
85 Arrays.asList(rootRequestBuilder), true /* ae */); in create()
/packages/modules/ExtServices/tests/src/android/ext/services/autofill/
DAutofillFieldClassificationServiceImplTest.java51 assertThat(mService.onCalculateScores(Collections.emptyList(), Arrays.asList("whatever"), in testOnCalculateScores_emptyActualValues()
57 assertThat(mService.onCalculateScores(Arrays.asList(AutofillValue.forText("whatever")), in testOnCalculateScores_nullUserDataValues()
63 assertThat(mService.onCalculateScores(Arrays.asList(AutofillValue.forText("whatever")), in testOnCalculateScores_emptyUserDataValues()
70 final List<AutofillValue> actualValues = Arrays.asList(forText("A"), forText("b"), in testCalculateScores()
72 final List<String> userDataValues = Arrays.asList("a", "b", "B", "ab", "c", "dude", in testCalculateScores()
74 final List<String> categoryIds = Arrays.asList("cat", "cat", "cat", "cat", "cat", "last4", in testCalculateScores()
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DClientPlaylistTest.java88 return Arrays.asList( in data()
130 assertMembers(Arrays.asList( in testAdd()
139 assertMembers(Arrays.asList( in testAdd()
152 assertMembers(Arrays.asList( in testMove()
159 assertMembers(Arrays.asList( in testMove()
169 assertMembers(Arrays.asList( in testMove()
175 assertMembers(Arrays.asList( in testMove()
189 assertMembers(Arrays.asList( in testRemove()
194 assertMembers(Arrays.asList( in testRemove()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java131 sut.importContacts(Arrays.asList( in importFromSim()
163 sut.importContacts(Arrays.asList( in importContactWhichOnlyHasName()
178 sut.importContacts(Arrays.asList( in importContactWhichOnlyHasPhone()
195 sut.importContacts(Arrays.asList( in ignoresEmptyContacts()
336 final List<SimContact> contacts = Arrays.asList( in returnsEmptyMapWhenNoMatchingContactsExist()
362 final List<SimContact> contacts = Arrays.asList( in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
368 sut.importContacts(Arrays.asList( in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
400 final List<SimContact> contacts = Arrays.asList( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
407 sut.importContacts(Arrays.asList( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
412 sut.importContacts(Arrays.asList( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
[all …]
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
DDriverDistractionExperimentalFeatureServiceTest.java250 mService.setDriverAwarenessSuppliers(Arrays.asList( in testHandleDriverAwarenessEvent_updatesCurrentValue_withLatestEvent()
262 mService.setDriverAwarenessSuppliers(Arrays.asList( in testHandleDriverAwarenessEvent_hasPreferredEvent_ignoresFallbackEvent()
279 mService.setDriverAwarenessSuppliers(Arrays.asList( in testHandleDriverAwarenessEvent_ignoresOldEvents()
296 mService.setDriverAwarenessSuppliers(Arrays.asList( in testPreferredAwarenessEvent_becomesStale_fallsBackToFallbackEvent()
343 mService.setDriverAwarenessSuppliers(Arrays.asList( in testGetLastDistractionEvent_afterEventEmit_returnsLastEvent()
362 mService.setDriverAwarenessSuppliers(Arrays.asList( in testManagerRegister_returnsInitialEvent()
380 mService.setDriverAwarenessSuppliers(Arrays.asList( in testManagerRegister_distractionValueUnchanged_doesNotEmitEvent()
556 mService.setDriverAwarenessSuppliers(Arrays.asList( in testManagerRegister_receivesChangeEvents()
586 mService.setDriverAwarenessSuppliers(Arrays.asList( in testManagerRegisterUnregister_stopsReceivingEvents()
609 mService.setDriverAwarenessSuppliers(Arrays.asList( in testDistractionEvent_noSpeedEventsReceived_awarenessPercentageRemainsFull()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java137 final List<String> expectedCards = Arrays.asList("test_low_storage", "test_flashlight", in constructor_hasSavedInstanceState_shouldContainExpectedSavedCards()
149 final List<Integer> expected = Arrays.asList(ContextualCard.CardType.CONDITIONAL, in constructor_hasSettingsCustomCards_shouldSetUpCustomControllers()
376 final List<String> expectedCards = Arrays.asList(TEST_SLICE_NAME); in onFinishCardLoading_hasSavedCard_shouldOnlyShowSavedCard()
402 final List<String> expectedCards = Arrays.asList(TEST_SLICE_NAME); in onFinishCardLoading_reloadData_hasNewCard_shouldOnlyShowOldCard()
480 final List<Integer> categories = Arrays.asList( in getCardsWithViewType_noSuggestionCards_shouldNotHaveHalfCards()
500 final List<Integer> categories = Arrays.asList( in getCardsWithViewType_oneSuggestionCards_shouldNotHaveHalfCards()
520 final List<Integer> categories = Arrays.asList( in getCardsWithViewType_twoConsecutiveSuggestionCards_shouldHaveTwoHalfCards()
529 final List<Integer> expectedValues = Arrays.asList(VIEW_TYPE_FULL_WIDTH, in getCardsWithViewType_twoConsecutiveSuggestionCards_shouldHaveTwoHalfCards()
544 final List<Integer> categories = Arrays.asList( in getCardsWithViewType_twoNonConsecutiveSuggestionCards_shouldNotHaveHalfCards()
565 final List<Integer> categories = Arrays.asList( in getCardsWithViewType_threeConsecutiveSuggestionCards_shouldHaveTwoHalfCards()
[all …]

12345678910>>...26