| /packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
| D | WallpaperPreferenceControllerTest.java | 78 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 80 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 88 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerDisabled_returnsTrue() 90 mStylesAndWallpaperIntent, Lists.newArrayList()); in isAvailable_wallpaperPickerEnabledAndStylePickerDisabled_returnsTrue() 98 mWallpaperIntent, Lists.newArrayList()); in isAvailable_wallpaperPickerDisabledAndStylePickerEnabled_returnsTrue() 100 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerDisabledAndStylePickerEnabled_returnsTrue() 108 mWallpaperIntent, Lists.newArrayList()); in isAvailable_wallpaperPickerDisabledAndStylePickerDisabled_returnsFalse() 110 mStylesAndWallpaperIntent, Lists.newArrayList()); in isAvailable_wallpaperPickerDisabledAndStylePickerDisabled_returnsFalse() 119 Lists.newArrayList(mock(ResolveInfo.class))); in getComponentClassString_stylesAvailable_returnsStylePickerClassString() 127 mStylesAndWallpaperIntent, Lists.newArrayList()); in getComponentClassString_stylesUnavailable_returnsWallpaperPickerClassString() [all …]
|
| D | TopLevelWallpaperPreferenceControllerTest.java | 79 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 81 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 89 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerDisabled_returnsTrue() 91 mStylesAndWallpaperIntent, Lists.newArrayList()); in isAvailable_wallpaperPickerEnabledAndStylePickerDisabled_returnsTrue() 99 mWallpaperIntent, Lists.newArrayList()); in isAvailable_wallpaperPickerDisabledAndStylePickerEnabled_returnsTrue() 101 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerDisabledAndStylePickerEnabled_returnsTrue() 109 mWallpaperIntent, Lists.newArrayList()); in isAvailable_wallpaperPickerDisabledAndStylePickerDisabled_returnsFalse() 111 mStylesAndWallpaperIntent, Lists.newArrayList()); in isAvailable_wallpaperPickerDisabledAndStylePickerDisabled_returnsFalse() 120 Lists.newArrayList(mock(ResolveInfo.class))); in getComponentClassString_stylesAvailable_returnsStylePickerClassString() 128 mStylesAndWallpaperIntent, Lists.newArrayList()); in getComponentClassString_stylesUnavailable_returnsWallpaperPickerClassString() [all …]
|
| /packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/ |
| D | AbstractCopyJobTest.java | 19 import static com.google.common.collect.Lists.newArrayList; 53 createJob(newArrayList(testFile1, testFile2)).run(); in runCopyFilesTest() 68 createJob(newArrayList(testFile)).run(); in runCopyVirtualTypedFileTest() 82 createJob(newArrayList(testFile)).run(); in runCopyVirtualNonTypedFileTest() 86 mJobListener.assertFilesFailed(newArrayList("virtual.sth")); in runCopyVirtualNonTypedFileTest() 94 CopyJob job = createJob(newArrayList(testDir)); in runCopyEmptyDirTest() 117 createJob(newArrayList(testDir1)).run(); in runCopyDirRecursivelyTest() 135 newArrayList(testDir), in runNoCopyDirToSelfTest() 141 mJobListener.assertFilesFailed(newArrayList("someDir")); in runNoCopyDirToSelfTest() 151 newArrayList(testDir), in runNoCopyDirToDescendentTest() [all …]
|
| D | JobErrorHandlingTest.java | 21 import static com.google.common.collect.Lists.newArrayList; 43 createJob(newArrayList(invalidUri1, validUri, invalidUri2), in testRecoversFromInvalidUri() 58 createJob(newArrayList(invalidUri1, validUri, invalidUri2), in testRecordsInvalidUris() 72 createJob(newArrayList(invalidUri1, validUri, invalidUri2), in testReportsCorrectFailureCount()
|
| D | MoveJobTest.java | 21 import static com.google.common.collect.Lists.newArrayList; 48 createJob(newArrayList(testFile1, testFile2), null).run(); in testMoveFiles_NoSrcParent() 63 createJob(newArrayList(testFile)).run(); in testMoveVirtualTypedFile() 86 createJob(newArrayList(testFile)).run(); in testMove_BackendSideVirtualTypedFile_Fallback()
|
| D | DeleteJobTest.java | 21 import static com.google.common.collect.Lists.newArrayList; 40 createJob(newArrayList(testFile1, testFile2), in testDeleteFiles() 54 createJob(newArrayList(testFile1, testFile2), null).run(); in testDeleteFiles_NoSrcParent()
|
| /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
| D | ProvidersAccessTest.java | 19 import static com.google.common.collect.Lists.newArrayList; 71 mRoots = Lists.newArrayList( in setUp() 83 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_Everything() 90 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_PngOrWild() 97 newArrayList(mNull, mWild, mAudio), in testMatchingRoots_AudioWild() 104 newArrayList(mNull, mWild, mAudio, mImages), in testMatchingRoots_AudioWildOrImageWild() 111 newArrayList(mNull, mWild, mAudio), in testMatchingRoots_AudioSpecific() 118 newArrayList(mNull, mWild, mDocs), in testMatchingRoots_Document() 125 newArrayList(mNull, mWild, mAudio, mDocs), in testMatchingRoots_Application() 132 newArrayList(mNull, mWild, mAudio, mImages), in testMatchingRoots_FlacOrPng() [all …]
|
| /packages/apps/Contacts/src/com/android/contacts/model/account/ |
| D | ExchangeAccountType.java | 91 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredName() 120 kind.fieldList = Lists.newArrayList(); in addDataKindPhoneticName() 135 kind.fieldList = Lists.newArrayList(); in addDataKindNickname() 147 kind.typeList = Lists.newArrayList(); in addDataKindPhone() 166 kind.fieldList = Lists.newArrayList(); in addDataKindPhone() 178 kind.fieldList = Lists.newArrayList(); in addDataKindEmail() 191 kind.typeList = Lists.newArrayList(); in addDataKindStructuredPostal() 196 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredPostal() 234 kind.fieldList = Lists.newArrayList(); in addDataKindIm() 246 kind.fieldList = Lists.newArrayList(); in addDataKindOrganization() [all …]
|
| D | GoogleAccountType.java | 52 Lists.newArrayList(PLUS_EXTENSION_PACKAGE_NAME); 94 kind.typeList = Lists.newArrayList(); in addDataKindPhone() 106 kind.fieldList = Lists.newArrayList(); in addDataKindPhone() 117 kind.typeList = Lists.newArrayList(); in addDataKindEmail() 124 kind.fieldList = Lists.newArrayList(); in addDataKindEmail() 137 kind.typeList = Lists.newArrayList(); in addDataKindRelation() 158 kind.fieldList = Lists.newArrayList(); in addDataKindRelation() 172 kind.typeList = Lists.newArrayList(); in addDataKindEvent() 184 kind.fieldList = Lists.newArrayList(); in addDataKindEvent()
|
| D | SamsungAccountType.java | 95 kind.typeList = Lists.newArrayList(); in addDataKindStructuredPostal() 100 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredPostal() 133 kind.typeList = Lists.newArrayList(); in addDataKindPhone() 146 kind.fieldList = Lists.newArrayList(); in addDataKindPhone() 157 kind.typeList = Lists.newArrayList(); in addDataKindEmail() 164 kind.fieldList = Lists.newArrayList(); in addDataKindEmail() 177 kind.typeList = Lists.newArrayList(); in addDataKindRelation() 198 kind.fieldList = Lists.newArrayList(); in addDataKindRelation() 212 kind.typeList = Lists.newArrayList(); in addDataKindEvent() 224 kind.fieldList = Lists.newArrayList(); in addDataKindEvent()
|
| D | BaseAccountType.java | 159 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredName() 187 kind.fieldList = Lists.newArrayList(); in addDataKindName() 221 kind.fieldList = Lists.newArrayList(); in addDataKindPhoneticName() 242 kind.fieldList = Lists.newArrayList(); in addDataKindNickname() 258 kind.typeList = Lists.newArrayList(); in addDataKindPhone() 282 kind.fieldList = Lists.newArrayList(); in addDataKindPhone() 294 kind.typeList = Lists.newArrayList(); in addDataKindEmail() 302 kind.fieldList = Lists.newArrayList(); in addDataKindEmail() 314 kind.typeList = Lists.newArrayList(); in addDataKindStructuredPostal() 321 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredPostal() [all …]
|
| /packages/apps/Settings/tests/unit/src/com/android/settings/applications/credentials/ |
| D | CredentialManagerPreferenceControllerTest.java | 119 createControllerWithServices(Lists.newArrayList(createCredentialProviderInfo())); in getAvailabilityStatus_withServices_returnsAvailable() 127 createControllerWithServices(Lists.newArrayList(createCredentialProviderInfo())); in displayPreference_withServices_preferencesAdded() 145 createControllerWithServices(Lists.newArrayList(providerInfo1, providerInfo2)); in buildSwitchPreference() 177 Lists.newArrayList( in getAvailabilityStatus_handlesToggleAndSave() 250 createControllerWithServices(Lists.newArrayList(providerInfo1, providerInfo2)); in handlesCredentialProviderInfoEnabledDisabled() 308 Lists.newArrayList(serviceA1, serviceB1, serviceC1, serviceC2, serviceC3)); in displayPreference_withServices_preferencesAdded_sameAppShouldBeMerged() 334 createControllerWithServices(Lists.newArrayList(cpi)); in handleIntentWithProviderServiceInfo_handleBadIntent_missingData() 345 createControllerWithServices(Lists.newArrayList(cpi)); in handleIntentWithProviderServiceInfo_handleBadIntent_successDialog() 360 createControllerWithServices(Lists.newArrayList(cpi)); in handleIntentWithProviderServiceInfo_handleIntent_cancelDialog() 375 createControllerWithServices(Lists.newArrayList(cpi)); in handleOtherIntentWithProviderServiceInfo_handleBadIntent_missingData() [all …]
|
| /packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/ |
| D | DataUsageUtilsTest.java | 69 Lists.newArrayList(info1, info2)); in getDefaultSubscriptionId_noDefaultSubscription_returnsFirstSubscription() 88 Lists.newArrayList()); in getPrimaryPlan_noSubscriptions_returnsNull() 98 Lists.newArrayList(subscriptionPlan)); in getPrimaryPlan_dataLimitBytesIsZero_returnsNull() 110 Lists.newArrayList(subscriptionPlan)); in getPrimaryPlan_dataUsageBytesIsHuge_returnsNull() 122 Lists.newArrayList(subscriptionPlan)); in getPrimaryPlan_cycleRuleIsNull_returnsNull() 136 Lists.newArrayList(subscriptionPlan)); in getPrimaryPlan_cycleRuleIsValid_returnsSubscriptionPlan()
|
| /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
| D | ContactDirectoryManagerTest.java | 99 Lists.newArrayList(projection).toString(), in query() 101 Lists.newArrayList(selectionArgs).toString(), in query() 163 Lists.newArrayList( in testScanAllProviders() 237 Lists.newArrayList( in testScanAllProviders_scanCondition() 244 Lists.newArrayList( in testScanAllProviders_scanCondition() 250 Lists.newArrayList( in testScanAllProviders_scanCondition() 259 Lists.newArrayList(createProviderPackage("test.package1", "authority1"), in testPackageInstalled() 310 Lists.newArrayList( in testPackageUninstalled() 356 Lists.newArrayList( in testPackageReplaced() 414 Lists.newArrayList( in testPackageRenamed() [all …]
|
| D | ContactsProvider2TransactionTest.java | 235 final ArrayList<ContentProviderOperation> ops = Lists.newArrayList(); in testTransactionCallback_contactBatch() 252 final ArrayList<ContentProviderOperation> ops = Lists.newArrayList(); in testTransactionCallback_profileBatch() 269 final ArrayList<ContentProviderOperation> ops = Lists.newArrayList(); in testTransactionCallback_mixedBatch() 290 final ArrayList<ContentProviderOperation> ops = Lists.newArrayList(); in testTransactionCallback_mixedBatchReversed()
|
| /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
| D | RootItemListBuilderTest.java | 92 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID)); in testGetList_twoUsers_allMultiProfileRootsMatchOther_defaultUser() 118 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID)); in testGetList_twoUsers_allMultiProfileRootsMatchOther_otherUser() 142 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID)); in testGetList_twoUsers_defaultUserHasAllMatchingRoots() 164 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID)); in testGetList_twoUsers_secondUserFillsUpNonMatchingRoots() 175 assertThat(result).containsExactlyElementsIn(Lists.newArrayList( in testGetList_twoUsers_secondUserFillsUpNonMatchingRoots()
|
| D | UserItemsCombinerTest.java | 54 private static final List<Item> PERSONAL_ITEMS = Lists.newArrayList( 60 private static final List<Item> WORK_ITEMS = Lists.newArrayList( 144 List<Item> expected = Lists.newArrayList(); in testCreatePresentableList_currentIsPersonal_personalAndWorkItems() 163 List<Item> expected = Lists.newArrayList(); in testCreatePresentableList_currentIsWork_personalAndWorkItems()
|
| /packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/ |
| D | MobileNetworkEntryPreferenceControllerTest.java | 349 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in onCreate_oneSim_enabled() 361 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in onCreate_dataEnabled_oneSim_summaryIsDisplayName() 373 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in onCreate_dataDisabled_summaryIsOff() 388 List<SubscriptionInfo> selectable = Lists.newArrayList(info1, info2); in onCreate_multiSim_enabled() 402 List<SubscriptionInfo> selectable = Lists.newArrayList(info1, info2); in onCreate_multiSim_summaryShowsCount() 427 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in performClick_oneSim_startsMobileNetworkFragment() 448 List<SubscriptionInfo> selectable = Lists.newArrayList(info1, info2); in performClick_multiSim_startsMobileNetworkListFragment() 462 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in performToggle_disabled_setsDataEnabled() 480 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in performToggle_enabled_setsDataDisabled()
|
| D | SubscriptionUtilsTest.java | 50 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned() 71 List<SubscriptionInfo> allSims = Lists.newArrayList(info); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned() 88 List<SubscriptionInfo> selectable = Lists.newArrayList(info); in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved()
|
| /packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/ |
| D | DefaultAppsPickerBasePreferenceControllerTest.java | 122 mController.setTestCandidates(Lists.newArrayList(testApp)); in refreshUi_hasAdditionalCandidate_hasTwoElements() 137 mController.setTestCandidates(Lists.newArrayList(testApp)); in refreshUi_hasAdditionalCandidateAsDefault_secondElementIsSelected() 154 mController.setTestCandidates(Lists.newArrayList(testApp)); in performClick_currentDefaultApp_nothingHappened() 183 mController.setTestCandidates(Lists.newArrayList(testApp)); in performClick_otherOptionNoMessage_otherOptionSelected() 213 mController.setTestCandidates(Lists.newArrayList(testApp)); in performClick_otherOptionHasMessage_dialogOpened() 241 mController.setTestCandidates(Lists.newArrayList(testApp)); in performClick_otherOptionNoMessage_newKeySet()
|
| /packages/apps/Settings/tests/unit/src/com/android/settings/applications/autofill/ |
| D | PasswordsPreferenceControllerTest.java | 97 createControllerWithServices(Lists.newArrayList(service)); in getAvailabilityStatus_noPasswords_returnsUnavailable() 104 createControllerWithServices(Lists.newArrayList(createServiceWithPasswords())); in getAvailabilityStatus_withPasswords_returnsAvailable() 120 createControllerWithServices(Lists.newArrayList(service)); in displayPreference_noPasswords_noPreferencesAdded() 132 createControllerWithServices(Lists.newArrayList(service)); in displayPreference_withPasswords_addsPreference()
|
| /packages/apps/Contacts/tests/src/com/android/contacts/model/ |
| D | RawContactDeltaTests.java | 166 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffNone() 184 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffNoneInsert() 227 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffUpdateInsert() 270 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffNoneUpdate() 306 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffDelete() 332 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffInsert() 361 final ArrayList<CPOWrapper> diff = Lists.newArrayList(); in testEntityDiffInsertInsert()
|
| /packages/apps/Contacts/src/com/android/contacts/editor/ |
| D | EditorAnimator.java | 56 final List<Animator> animators = Lists.newArrayList(); in removeEditorView() 100 final List<Animator> animators = Lists.newArrayList(); in slideAndFadeIn() 131 final List<Animator> animators = Lists.newArrayList(); in showFieldFooter() 222 final List<View> result = Lists.newArrayList(); in getViewsBelowOf()
|
| /packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
| D | UserAdapterTest.java | 84 Lists.newArrayList(UserHandle.of(mPersonalUserId))); in createUserSpinnerAdapter_singleProfile_returnsNull() 95 Lists.newArrayList(UserHandle.of(mPersonalUserId), UserHandle.of(WORK_USER_ID))); in createUserSpinnerAdapter_twoProfiles_succeed() 108 Lists.newArrayList(UserHandle.of(mPersonalUserId), UserHandle.of(WORK_USER_ID)); in createUserRecycleViewAdapter_canBindViewHolderCorrectly()
|
| /packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/ |
| D | ListsTest.java | 32 assertThat(Lists.newArrayList()).isEmpty(); in testNewArrayList_passingEmptyParam() 38 assertThat(Lists.newArrayList(1, 2, 3)).containsExactly(1, 2, 3); in testNewArrayList_passingParams()
|