Home
last modified time | relevance | path

Searched refs:typeBits (Results 1 – 9 of 9) 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.java477 long typeBits = in.readLong(); in Credential() local
479 if ((typeBits & (1L << i.ordinal())) != 0L) { in Credential()
489 long typeBits = 0; in writeToParcel() local
491 typeBits |= 1L << i.ordinal(); in writeToParcel()
493 out.writeLong(typeBits); in writeToParcel()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUserCredentialsSettings.java477 long typeBits = in.readLong(); in Credential() local
479 if ((typeBits & (1L << i.ordinal())) != 0L) { in Credential()
489 long typeBits = 0; in writeToParcel() local
491 typeBits |= 1L << i.ordinal(); in writeToParcel()
493 out.writeLong(typeBits); in writeToParcel()