Home
last modified time | relevance | path

Searched refs:bucketId (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbum.java61 public LocalAlbum(Path path, GalleryApp application, int bucketId, in LocalAlbum() argument
66 mBucketId = bucketId; in LocalAlbum()
89 public LocalAlbum(Path path, GalleryApp application, int bucketId, in LocalAlbum() argument
91 this(path, application, bucketId, isImage, in LocalAlbum()
93 application.getContentResolver(), bucketId)); in LocalAlbum()
280 public static String getLocalizedName(Resources res, int bucketId, in getLocalizedName() argument
282 if (bucketId == MediaSetUtils.CAMERA_BUCKET_ID) { in getLocalizedName()
284 } else if (bucketId == MediaSetUtils.DOWNLOAD_BUCKET_ID) { in getLocalizedName()
286 } else if (bucketId == MediaSetUtils.IMPORTED_BUCKET_ID) { in getLocalizedName()
288 } else if (bucketId == MediaSetUtils.SNAPSHOT_BUCKET_ID) { in getLocalizedName()
[all …]
DBucketHelper.java93 int bucketId = cursor.getInt(INDEX_BUCKET_ID); in updateBucketEntriesFromTable() local
95 BucketEntry entry = buckets.get(bucketId); in updateBucketEntriesFromTable()
97 entry = new BucketEntry(bucketId, cursor.getString(INDEX_BUCKET_NAME)); in updateBucketEntriesFromTable()
98 buckets.put(bucketId, entry); in updateBucketEntriesFromTable()
167 ContentResolver resolver, Uri tableUri, int bucketId) { in getBucketNameInTable() argument
168 String selectionArgs[] = new String[] {String.valueOf(bucketId)}; in getBucketNameInTable()
189 public static String getBucketName(ContentResolver resolver, int bucketId) { in getBucketName() argument
191 String result = getBucketNameInTable(resolver, getFilesContentUri(), bucketId); in getBucketName()
195 resolver, Images.Media.EXTERNAL_CONTENT_URI, bucketId); in getBucketName()
198 resolver, Video.Media.EXTERNAL_CONTENT_URI, bucketId); in getBucketName()
[all …]
DLocalSource.java95 int bucketId = mMatcher.getIntVar(0); in createMediaObject() local
98 LocalAlbumSet.PATH_IMAGE.getChild(bucketId)); in createMediaObject()
100 LocalAlbumSet.PATH_VIDEO.getChild(bucketId)); in createMediaObject()
103 path, comp, new MediaSet[] {imageSet, videoSet}, bucketId); in createMediaObject()
135 String bucketId = uri.getQueryParameter(KEY_BUCKET_ID); in getAlbumPath() local
138 id = Integer.parseInt(bucketId); in getAlbumPath()
140 Log.w(TAG, "invalid bucket id: " + bucketId, e); in getAlbumPath()
DLocalMergeAlbum.java52 Path path, Comparator<MediaItem> comparator, MediaSet[] sources, int bucketId) { in LocalMergeAlbum() argument
56 mBucketId = bucketId; in LocalMergeAlbum()
95 String bucketId = String.valueOf(mBucketId); in getContentUri() local
98 .appendQueryParameter(LocalSource.KEY_BUCKET_ID, bucketId) in getContentUri()
104 .appendQueryParameter(LocalSource.KEY_BUCKET_ID, bucketId) in getContentUri()
DLocalAlbumSet.java94 private static int findBucket(BucketEntry entries[], int bucketId) { in findBucket() argument
96 if (entries[i].bucketId == bucketId) return i; in findBucket()
129 mType, mPath, entry.bucketId, entry.bucketName); in run()
DLocalMediaItem.java46 public int bucketId; field in LocalMediaItem
73 return bucketId; in getBucketId()
DLocalVideo.java112 bucketId = cursor.getInt(INDEX_BUCKET_ID); in loadFromCursor()
148 bucketId = uh.update(bucketId, cursor.getInt(INDEX_BUCKET_ID)); in updateFromCursor()
DLocalImage.java144 bucketId = cursor.getInt(INDEX_BUCKET_ID); in loadFromCursor()
166 bucketId = uh.update(bucketId, cursor.getInt(INDEX_BUCKET_ID)); in updateFromCursor()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java285 String bucketId = param.mBucketId; in makeImageList() local
305 l.add(new ImageList(cr, STORAGE_URI, sort, bucketId)); in makeImageList()
308 l.add(new VideoList(cr, VIDEO_STORAGE_URI, sort, bucketId)); in makeImageList()
314 Images.Media.INTERNAL_CONTENT_URI, sort, bucketId)); in makeImageList()
350 String bucketId = uri.getQueryParameter("bucketId"); in makeImageList() local
352 bucketId); in makeImageList()
401 int inclusion, int sort, String bucketId) { in getImageListParam() argument
406 param.mBucketId = bucketId; in getImageListParam()
423 DataLocation location, int inclusion, int sort, String bucketId) { in makeImageList() argument
425 bucketId); in makeImageList()
DGalleryPicker.java556 ImageListData(int type, int include, String bucketId, int stringId) { in ImageListData() argument
559 mBucketId = bucketId; in ImageListData()
759 private IImageList createImageList(int mediaTypes, String bucketId,
766 bucketId);
802 public Item(int type, String bucketId, String name, IImageList list) {
804 mBucketId = bucketId;
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java132 public int bucketId; field in BackgroundScanScheduler.Bucket
138 this.bucketId = 0; in Bucket()
196 public WifiNative.BucketSettings createBucketSettings(int bucketId, int maxChannels) { in createBucketSettings() argument
197 this.bucketId = bucketId; in createBucketSettings()
235 bucketSettings.bucket = bucketId; in createBucketSettings()
426 return maxScheduledBucket.bucketId; in getScheduledBucket()
445 int bucketId = 0; in createSchedule() local
447 schedule.buckets[bucketId] = in createSchedule()
448 bucket.createBucketSettings(bucketId, maxChannelsPerBucket); in createSchedule()
460 bucketId++; in createSchedule()
/packages/apps/Gallery/src/com/android/camera/gallery/
DVideoList.java77 String bucketId) { in VideoList() argument
78 super(resolver, uri, sort, bucketId); in VideoList()
DImageList.java62 int sort, String bucketId) { in ImageList() argument
63 super(resolver, imageUri, sort, bucketId); in ImageList()
DBaseImageList.java49 String bucketId) { in BaseImageList() argument
52 mBucketId = bucketId; in BaseImageList()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java320 public static String searchDirForPath(File dir, int bucketId) { in searchDirForPath() argument
326 if (GalleryUtils.getBucketId(path) == bucketId) { in searchDirForPath()
329 path = searchDirForPath(file, bucketId); in searchDirForPath()
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
DGalleryWidgetMigrator.java98 int bucketId = Integer.parseInt(path.getSuffix()); in migrateGalleryWidgetsInternal() local
99 localEntries.put(bucketId, entry); in migrateGalleryWidgetsInternal()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java173 int bucketId = Integer.parseInt(path.getSuffix()); in setChoosenAlbum() local
176 relativePath = LocalAlbum.getRelativePath(bucketId); in setChoosenAlbum()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DLocalSource.java121 public static String constructId(boolean internal, String bucketId) { in constructId() argument
122 return TAG + ":" + bucketId + (internal ? ":i" : ""); in constructId()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java1483 private long getImageForBucketCleared(long bucketId) throws FileNotFoundException { in getImageForBucketCleared() argument
1488 ImagesBucketThumbnailQuery.PROJECTION, ImageColumns.BUCKET_ID + "=" + bucketId, in getImageForBucketCleared()
1519 private long getVideoForBucketCleared(long bucketId) in getVideoForBucketCleared() argument
1525 VideosBucketThumbnailQuery.PROJECTION, VideoColumns.BUCKET_ID + "=" + bucketId, in getVideoForBucketCleared()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java1284 private static void assertBucket(ContentValues values, String bucketId, String bucketName) { in assertBucket() argument
1285 if (bucketId != null) { in assertBucket()
1288 assertEquals(bucketId.toLowerCase(Locale.ROOT).hashCode(), in assertBucket()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java1401 int bucketId = GalleryUtils.getBucketId(saveDir.getPath()); in saveImage() local
1402 String albumName = LocalAlbum.getLocalizedName(getResources(), bucketId, null); in saveImage()