Home
last modified time | relevance | path

Searched refs:PickerSyncController (Results 1 – 25 of 40) sorted by relevance

12

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPickerSyncControllerTest.java144 private PickerSyncController mController;
173 mController = PickerSyncController.initialize( in setUp()
203 PickerSyncController controller = in testInitCloudProviderOnDeviceConfigChange()
204 PickerSyncController.initialize(mContext, mFacade, configStore, mLockManager); in testInitCloudProviderOnDeviceConfigChange()
226 PickerSyncController controller = spy(mController); in testSyncIsCancelledIfCloudProviderIsChanged()
892 final PickerSyncController controller = PickerSyncController.initialize( in testGetSupportedCloudProviders_useAllowList()
927 mController = PickerSyncController.initialize(mContext, mFacade, mConfigStore, in testNotifyPackageRemoval_NoDefaultCloudProviderPackage()
942 PickerSyncController controller = createControllerWithDefaultProvider(null); in testSelectDefaultCloudProvider_NoDefaultAuthority()
949 PickerSyncController controller = createControllerWithDefaultProvider(PACKAGE_NAME); in testSelectDefaultCloudProvider_defaultAuthoritySet()
992 PickerSyncController controller = PickerSyncController.initialize( in testSyncAfterDbCreate()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DImmediateAlbumSyncWorkerTest.java47 import com.android.providers.media.photopicker.PickerSyncController;
60 private PickerSyncController mMockPickerSyncController;
89 PickerSyncController.setInstance(mMockPickerSyncController); in testLocalAlbumImmediateSync()
122 PickerSyncController.setInstance(mMockPickerSyncController); in testCloudAlbumImmediateSync()
156 PickerSyncController.setInstance(mMockPickerSyncController); in testInvalidSyncSourceImmediateAlbumSync()
190 PickerSyncController.setInstance(null); in testLocalAndCloudImmediateSyncFailure()
224 PickerSyncController.setInstance(null); in testInvalidAlbumIdImmediateSyncFailure()
DProactiveSyncWorkerTest.java45 import com.android.providers.media.photopicker.PickerSyncController;
58 private PickerSyncController mMockPickerSyncController;
87 PickerSyncController.setInstance(mMockPickerSyncController); in testLocalProactiveSync()
119 PickerSyncController.setInstance(mMockPickerSyncController); in testCloudProactiveSync()
151 PickerSyncController.setInstance(mMockPickerSyncController); in testLocalAndCloudProactiveSync()
183 PickerSyncController.setInstance(null); in testProactiveSyncFailure()
DImmediateSyncWorkerTest.java45 import com.android.providers.media.photopicker.PickerSyncController;
58 private PickerSyncController mMockPickerSyncController;
87 PickerSyncController.setInstance(mMockPickerSyncController); in testLocalImmediateSync()
120 PickerSyncController.setInstance(mMockPickerSyncController); in testCloudImmediateSync()
152 PickerSyncController.setInstance(mMockPickerSyncController); in testLocalAndCloudImmediateSync()
186 PickerSyncController.setInstance(null); in testLocalAndCloudImmediateSyncFailure()
DMediaResetWorkerTest.java53 import com.android.providers.media.photopicker.PickerSyncController;
70 private PickerSyncController mExistingPickerSyncController;
72 @Mock private PickerSyncController mMockPickerSyncController;
91 mExistingPickerSyncController = PickerSyncController.getInstanceOrThrow(); in setup()
114 PickerSyncController.setInstance(mMockPickerSyncController); in setup()
120 PickerSyncController.setInstance(mExistingPickerSyncController); in teardown()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/v2/
DPickerDataLayerV2.java43 import com.android.providers.media.photopicker.PickerSyncController;
79 final PickerSyncController syncController = PickerSyncController.getInstanceOrThrow(); in queryMedia()
110 final PickerSyncController syncController = PickerSyncController.getInstanceOrThrow(); in queryAlbums()
164 final PickerSyncController syncController = PickerSyncController.getInstanceOrThrow(); in queryAlbumMedia()
219 @NonNull PickerSyncController syncController, in queryMediaInternal()
674 @NonNull PickerSyncController syncController, in queryAlbumMediaInternal()
756 @NonNull PickerSyncController syncController, in queryMergedAlbumMedia()
836 final PickerSyncController syncController = PickerSyncController.getInstanceOrThrow(); in queryAvailableProviders()
DPickerNotificationSender.java35 import com.android.providers.media.photopicker.PickerSyncController;
84 notifyMergedAlbumMediaChange(context, PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY); in notifyMediaChange()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DImmediateSyncWorker.java39 import com.android.providers.media.photopicker.PickerSyncController;
82 PickerSyncController.getInstanceOrThrow() in doWork()
89 PickerSyncController.getInstanceOrThrow() in doWork()
DProactiveSyncWorker.java38 import com.android.providers.media.photopicker.PickerSyncController;
88 PickerSyncController.getInstanceOrThrow() in doWork()
100 PickerSyncController.getInstanceOrThrow() in doWork()
DImmediateAlbumSyncWorker.java39 import com.android.providers.media.photopicker.PickerSyncController;
89 PickerSyncController.getInstanceOrThrow() in doWork()
92 PickerSyncController.getInstanceOrThrow() in doWork()
DMediaResetWorker.java43 import com.android.providers.media.photopicker.PickerSyncController;
82 PickerSyncController controller; in doWork()
86 controller = PickerSyncController.getInstanceOrThrow(); in doWork()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPickerUriResolverTest.java68 import com.android.providers.media.photopicker.PickerSyncController;
295 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, /* cloudProvider */ in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks()
311 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, /* cloudProvider */ in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks()
342 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, /* cloudProvider */ in testProcessUrisForSelection_permissionChecks()
356 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, /* cloudProvider */ in testProcessUrisForSelection_permissionChecks()
390 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, /* cloudProvider */ in testProcessUrisForSelection_cloudAuthorityChecks()
401 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, /* isLocalOnly */ in testProcessUrisForSelection_cloudAuthorityChecks()
412 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, /* cloudProvider */ in testProcessUrisForSelection_cloudAuthorityChecks()
560 }, PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY); in testPickerUriResolver_thumbnailRequest()
571 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY); in testPickerUriResolver_thumbnailRequest()
[all …]
DIsolatedContext.java39 import com.android.providers.media.photopicker.PickerSyncController;
89 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY); in IsolatedContext()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProviderShellCommand.java34 import com.android.providers.media.photopicker.PickerSyncController;
47 private final @NonNull PickerSyncController mPickerSyncController;
53 @NonNull PickerSyncController pickerSyncController, in MediaProviderShellCommand()
DMediaGrants.java35 import com.android.providers.media.photopicker.PickerSyncController;
362 .equals(PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY);
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileCreationUtils.java29 import com.android.providers.media.photopicker.PickerSyncController;
90 .appendPath(PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY) in buildValidPickerUri()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DPickerDatabaseHelper.java31 import com.android.providers.media.photopicker.PickerSyncController;
173 PickerSyncController.PICKER_SYNC_PREFS_FILE_NAME, Context.MODE_PRIVATE); in clearPickerPrefs()
DItemsProvider.java57 import com.android.providers.media.photopicker.PickerSyncController;
453 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, in fetchReadGrantedItemsUrisForPackage()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerSyncController.java91 public class PickerSyncController { class
152 private static PickerSyncController sInstance;
164 public static PickerSyncController initialize(@NonNull Context context, in initialize()
184 public static PickerSyncController initialize(@NonNull Context context, in initialize()
187 sInstance = new PickerSyncController(context, dbFacade, configStore, pickerSyncLockManager, in initialize()
197 public static void setInstance(PickerSyncController controller) { in setInstance()
207 public static PickerSyncController getInstanceOrThrow() throws IllegalStateException { in getInstanceOrThrow()
214 private PickerSyncController(@NonNull Context context, @NonNull PickerDbFacade dbFacade, in PickerSyncController() method in PickerSyncController
DPickerDataLayer.java96 private final PickerSyncController mSyncController;
106 @NonNull PickerSyncController syncController, @NonNull ConfigStore configStore, in PickerDataLayer()
125 @NonNull PickerSyncController syncController, @NonNull ConfigStore configStore) { in create()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModelTest.java80 import com.android.providers.media.photopicker.PickerSyncController;
379 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, in test_initialisePreSelectionItems_correctItemsLoaded()
472 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY in generateCursorForFakeCategories()
531 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY in getAllItems()
583 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY in getLocalItems()
636 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY in getItemsForPreselectedMedia()
DCategoryOrganiserTest.java19 import static com.android.providers.media.photopicker.PickerSyncController.LOCAL_PICKER_PROVIDER_AU…
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DPickerResultTest.java40 import com.android.providers.media.photopicker.PickerSyncController;
230 .getMediaUri(PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY) in createImageItem()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/
DItemTest.java41 import com.android.providers.media.photopicker.PickerSyncController;
325 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY in generateCursorForItem()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DPhotoPickerUserSelectActivityTest.java60 import com.android.providers.media.photopicker.PickerSyncController;
254 PickerSyncController.LOCAL_PICKER_PROVIDER_AUTHORITY, in testPreview_showsOnlyAlreadyLoadedGrantItems()

12