Home
last modified time | relevance | path

Searched refs:isLocal (Results 1 – 18 of 18) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerSyncController.java336 public void syncAlbumMedia(String albumId, boolean isLocal) { in syncAlbumMedia() argument
337 if (isLocal) { in syncAlbumMedia()
338 executeSyncAlbumReset(getLocalProvider(), isLocal, albumId); in syncAlbumMedia() local
343 executeSyncAlbumReset(getCloudProviderWithTimeout(), isLocal, albumId); in syncAlbumMedia() local
388 private boolean resetAllMedia(@Nullable String authority, boolean isLocal) in resetAllMedia() argument
390 Trace.beginSection(traceSectionName("resetAllMedia", isLocal)); in resetAllMedia()
392 executeSyncReset(authority, isLocal); in resetAllMedia()
393 return resetCachedMediaCollectionInfo(authority, isLocal); in resetAllMedia()
686 private void syncAlbumMediaFromProvider(String authority, boolean isLocal, String albumId, in syncAlbumMediaFromProvider() argument
697 Trace.beginSection(traceSectionName("syncAlbumMediaFromProvider", isLocal)); in syncAlbumMediaFromProvider()
[all …]
DPickerDataLayer.java196 if (isLocalOnly && !isLocal(albumAuthority)) { in fetchMediaInternal()
207 mSyncController.syncAlbumMedia(albumId, isLocal(albumAuthority)); in fetchMediaInternal()
211 SyncTrackerRegistry.getAlbumSyncTracker(isLocal(albumAuthority)), in fetchMediaInternal()
411 private boolean isLocal(String authority) { in isLocal() method in PickerDataLayer
423 sb.append('[').append(isLocal(authority) ? "local" : "cloud").append(']'); in traceSectionName()
453 isLocal(syncRequestExtras.getAlbumAuthority())); in initMediaData()
468 && !isLocal(syncRequestExtras.getAlbumAuthority())) { in validateAlbumMediaSyncArgs()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DPickerDbFacade.java274 return new AddMediaOperation(mDatabase, isLocal(authority)); in beginAddMediaOperation()
282 return new AddAlbumMediaOperation(mDatabase, isLocal(authority), albumId); in beginAddAlbumMediaOperation()
290 return new RemoveMediaOperation(mDatabase, isLocal(authority)); in beginRemoveMediaOperation()
300 return new ResetMediaOperation(mDatabase, isLocal(authority)); in beginResetMediaOperation()
314 return new ResetAlbumOperation(mDatabase, isLocal(authority), albumId); in beginResetAlbumMediaOperation()
324 return new UpdateMediaOperation(mDatabase, isLocal(authority)); in beginUpdateMediaOperation()
339 private DbWriteOperation(SQLiteDatabase database, boolean isLocal) { in DbWriteOperation() argument
341 mIsLocal = isLocal; in DbWriteOperation()
390 boolean isLocal() { in isLocal() method in PickerDbFacade.DbWriteOperation
440 private UpdateMediaOperation(SQLiteDatabase database, boolean isLocal) { in UpdateMediaOperation() argument
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DSyncTrackerRegistry.java94 public static SyncTracker getSyncTracker(boolean isLocal) { in getSyncTracker() argument
95 if (isLocal) { in getSyncTracker()
108 public static SyncTracker getAlbumSyncTracker(boolean isLocal) { in getAlbumSyncTracker() argument
109 if (isLocal) { in getAlbumSyncTracker()
DPickerSyncManager.java301 @NonNull String albumId, @NonNull String authority, boolean isLocal) { in syncAlbumMediaForProviderImmediately() argument
302 syncAlbumMediaForProviderImmediately(albumId, getSyncSource(isLocal), authority); in syncAlbumMediaForProviderImmediately()
402 private static int getSyncSource(boolean isLocal) { in getSyncSource() argument
403 return isLocal in getSyncSource()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/model/
DCategory.java73 boolean isLocal) { in Category() argument
77 mIsLocal = isLocal; in Category()
104 public boolean isLocal() { in isLocal() method in Category
162 final boolean isLocal = authority != null in fromCursor()
172 isLocal); in fromCursor()
DItem.java240 public boolean isLocal() { in isLocal() method in Item
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPickerProviderMediaGenerator.java138 public Cursor getAlbums(String[] mimeTypes, long sizeBytes, boolean isLocal) { in getAlbums() argument
139 return getAlbums(mimeTypes, sizeBytes, isLocal, /* pageToken= */ null); in getAlbums()
143 String[] mimeTypes, long sizeBytes, boolean isLocal, String pageToken) { in getAlbums() argument
144 final Cursor cursor = getCursor(mAlbums, mimeTypes, sizeBytes, isLocal, pageToken); in getAlbums()
373 long sizeBytes, boolean isLocal, String pageToken) { in getCursor() argument
392 final String[] res = album.toArray(mimeTypes, sizeBytes, isLocal); in getCursor()
507 public String[] toArray(String[] mimeTypes, long sizeBytes, boolean isLocal) { in toArray() argument
531 isLocal ? LocalProvider.AUTHORITY : null in toArray()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DManageCacheDrawer.java60 private static boolean isLocal(int dataSourceType) { in isLocal() method in ManageCacheDrawer
73 boolean available = isLocal(entry.sourceType) || chooseToCache; in renderSlot()
96 if (isLocal(dataSourceType)) { in drawCachingPin()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/
DCategoryTest.java58 assertThat(category.isLocal()).isEqualTo(categoryIsLocal); in testConstructor()
66 String coverId, int itemCount, boolean isLocal) { in generateCursorForCategory() argument
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DSyncWorkerTestUtils.java72 @NonNull String albumId, String authority, boolean isLocal) { in getAlbumResetInputData() argument
78 SYNC_WORKER_INPUT_SYNC_SOURCE, isLocal ? SYNC_LOCAL_ONLY : SYNC_CLOUD_ONLY, in getAlbumResetInputData()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DPickerDbTestUtils.java71 public static Cursor queryAlbumMedia(PickerDbFacade mFacade, String albumId, boolean isLocal) { in queryAlbumMedia() argument
72 final String authority = isLocal ? LOCAL_PROVIDER : CLOUD_PROVIDER; in queryAlbumMedia()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/v2/
DPickerDataLayerV2.java314 boolean isLocal = localAuthority != null in waitForOngoingAlbumSync()
317 SyncTrackerRegistry.getAlbumSyncTracker(isLocal), in waitForOngoingAlbumSync()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPickerSyncControllerTest.java1917 private Cursor queryAlbumMedia(String albumId, boolean isLocal) { in queryAlbumMedia() argument
1918 final String authority = isLocal ? LOCAL_PROVIDER_AUTHORITY in queryAlbumMedia()
1931 private void assertEmptyCursorFromAlbumMediaQuery(String albumId, boolean isLocal) { in assertEmptyCursorFromAlbumMediaQuery() argument
1932 try (Cursor cr = queryAlbumMedia(albumId, isLocal)) { in assertEmptyCursorFromAlbumMediaQuery() argument
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModel.java1461 } else if (!category.isLocal()) { in logAlbumOpened()
1480 if (!item.isLocal()) { in logMediaItemSelected()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DEpdgTunnelManager.java1773 private IkeIdentification getId(String id, boolean isLocal) { in getId() argument
1775 isLocal in getId()
/packages/apps/TV/libs/m2/
Djavac-shaded-9-dev-r4023-3.jarorg/openjdk/tools/sjavac/server/log/LoggingOutputStream.class LoggingOutputStream.java package ...
/packages/apps/TV/libs/
Dgoogle-java-format-1.7-all-deps.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...