Home
last modified time | relevance | path

Searched refs:typeBits (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java354 int typeBits = 0; in determineTypeBits() local
358 typeBits = DataManager.INCLUDE_ALL; in determineTypeBits()
361 typeBits = DataManager.INCLUDE_IMAGE; in determineTypeBits()
364 typeBits = DataManager.INCLUDE_VIDEO; in determineTypeBits()
366 typeBits = DataManager.INCLUDE_ALL; in determineTypeBits()
371 typeBits |= DataManager.INCLUDE_LOCAL_ONLY; in determineTypeBits()
375 return typeBits; in determineTypeBits()
378 public static int getSelectionModePrompt(int typeBits) { in getSelectionModePrompt() argument
379 if ((typeBits & DataManager.INCLUDE_VIDEO) != 0) { in getSelectionModePrompt()
380 return (typeBits & DataManager.INCLUDE_IMAGE) == 0 in getSelectionModePrompt()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActivity.java119 int typeBits = GalleryUtils.determineTypeBits(this, intent); in startGetContent() local
120 data.putInt(KEY_TYPE_BITS, typeBits); in startGetContent()
122 getDataManager().getTopSetPath(typeBits)); in startGetContent()
173 int typeBits = GalleryUtils.determineTypeBits(this, intent); in startViewAction() local
174 data.putInt(KEY_TYPE_BITS, typeBits); in startViewAction()
176 getDataManager().getTopSetPath(typeBits)); in startViewAction()
DDialogPicker.java30 int typeBits = GalleryUtils.determineTypeBits(this, getIntent()); in onCreate() local
31 setTitle(GalleryUtils.getSelectionModePrompt(typeBits)); in onCreate()
38 getDataManager().getTopSetPath(typeBits)); in onCreate()
DAlbumPage.java547 int typeBits = mData.getInt(GalleryActivity.KEY_TYPE_BITS, in onCreateActionBar() local
549 actionBar.setTitle(GalleryUtils.getSelectionModePrompt(typeBits)); in onCreateActionBar()
DAlbumSetPage.java536 int typeBits = mData.getInt( in onCreateActionBar() local
538 mActionBar.setTitle(GalleryUtils.getSelectionModePrompt(typeBits)); in onCreateActionBar()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBucketHelper.java141 int typeBits = 0; in loadBucketEntriesFromFilesTable() local
143 typeBits |= (1 << FileColumns.MEDIA_TYPE_IMAGE); in loadBucketEntriesFromFilesTable()
146 typeBits |= (1 << FileColumns.MEDIA_TYPE_VIDEO); in loadBucketEntriesFromFilesTable()
150 if ((typeBits & (1 << cursor.getInt(INDEX_MEDIA_TYPE))) != 0) { in loadBucketEntriesFromFilesTable()
DDataManager.java136 public String getTopSetPath(int typeBits) { in getTopSetPath() argument
138 switch (typeBits) { in getTopSetPath()
/packages/apps/Settings/src/com/android/settings/
DUserCredentialsSettings.java504 long typeBits = in.readLong(); in Credential() local
506 if ((typeBits & (1L << i.ordinal())) != 0L) { in Credential()
516 long typeBits = 0; in writeToParcel() local
518 typeBits |= 1L << i.ordinal(); in writeToParcel()
520 out.writeLong(typeBits); in writeToParcel()