Home
last modified time | relevance | path

Searched refs:GalleryUtils (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DUndoBarView.java28 import com.android.gallery3d.util.GalleryUtils;
63 mBarHeight = GalleryUtils.dpToPixel(48); in UndoBarView()
64 mBarMargin = GalleryUtils.dpToPixel(4); in UndoBarView()
65 mUndoTextMargin = GalleryUtils.dpToPixel(16); in UndoBarView()
66 mIconMargin = GalleryUtils.dpToPixel(8); in UndoBarView()
67 mIconSize = GalleryUtils.dpToPixel(32); in UndoBarView()
68 mSeparatorRightMargin = GalleryUtils.dpToPixel(12); in UndoBarView()
69 mSeparatorTopMargin = GalleryUtils.dpToPixel(10); in UndoBarView()
70 mSeparatorBottomMargin = GalleryUtils.dpToPixel(10); in UndoBarView()
71 mSeparatorWidth = GalleryUtils.dpToPixel(1); in UndoBarView()
[all …]
DMenuExecutor.java42 import com.android.gallery3d.util.GalleryUtils;
362 return GalleryUtils.MIME_TYPE_IMAGE; in getMimeType()
364 return GalleryUtils.MIME_TYPE_VIDEO; in getMimeType()
365 default: return GalleryUtils.MIME_TYPE_ALL; in getMimeType()
400 if (GalleryUtils.isValidLocation(latlng[0], latlng[1])) { in execute()
401 GalleryUtils.showOnMap(mActivity, latlng[0], latlng[1]); in execute()
DActionModeHandler.java45 import com.android.gallery3d.util.GalleryUtils;
299 if (!GalleryUtils.isEditorAvailable(mActivity, mimeType)) { in computeMenuOptions()
337 intent.setType(GalleryUtils.MIME_TYPE_PANORAMA360); in computePanoramaSharingIntent()
341 intent.setType(GalleryUtils.MIME_TYPE_PANORAMA360); in computePanoramaSharingIntent()
DDetailsAddressResolver.java28 import com.android.gallery3d.util.GalleryUtils;
80 return GalleryUtils.formatLatitudeLongitude("(%f,%f)", latlng[0], latlng[1]); in resolveAddress()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DMediaSetUtils.java31 public static final int CAMERA_BUCKET_ID = GalleryUtils.getBucketId(
34 public static final int DOWNLOAD_BUCKET_ID = GalleryUtils.getBucketId(
37 public static final int EDITED_ONLINE_PHOTOS_BUCKET_ID = GalleryUtils.getBucketId(
40 public static final int IMPORTED_BUCKET_ID = GalleryUtils.getBucketId(
43 public static final int SNAPSHOT_BUCKET_ID = GalleryUtils.getBucketId(
/packages/apps/Gallery2/src/com/android/photos/
DSelectionManager.java30 import com.android.gallery3d.util.GalleryUtils;
120 mShareIntent.setType(GalleryUtils.MIME_TYPE_IMAGE); in onItemSelectedStateChanged()
122 mShareIntent.setType(GalleryUtils.MIME_TYPE_VIDEO); in onItemSelectedStateChanged()
124 mShareIntent.setType(GalleryUtils.MIME_TYPE_ALL); in onItemSelectedStateChanged()
DMultiChoiceManager.java39 import com.android.gallery3d.util.GalleryUtils;
100 return GalleryUtils.MIME_TYPE_IMAGE; in getItemMimetype()
102 return GalleryUtils.MIME_TYPE_VIDEO; in getItemMimetype()
104 return GalleryUtils.MIME_TYPE_ALL; in getItemMimetype()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DDialogPicker.java22 import com.android.gallery3d.util.GalleryUtils;
30 int typeBits = GalleryUtils.determineTypeBits(this, getIntent()); in onCreate()
31 setTitle(GalleryUtils.getSelectionModePrompt(typeBits)); in onCreate()
DAlbumPage.java59 import com.android.gallery3d.util.GalleryUtils;
168 GalleryUtils.setViewPointMatrix(mMatrix,
227 GalleryUtils.startGalleryActivity(mActivity); in onUpPressed()
367 mUserDistance = GalleryUtils.meterToPixel(USER_DISTANCE_METER); in onCreate()
549 actionBar.setTitle(GalleryUtils.getSelectionModePrompt(typeBits)); in onCreateActionBar()
559 && GalleryUtils.isCameraAvailable(mActivity)); in onCreateActionBar()
624 GalleryUtils.startCameraActivity(mActivity); in onItemSelected()
DAlbumSetPage.java59 import com.android.gallery3d.util.GalleryUtils;
151 GalleryUtils.setViewPointMatrix(mMatrix,
357 if (!GalleryUtils.isCameraAvailable(mActivity)) return false; in setupCameraButton()
368 GalleryUtils.startCameraActivity(mActivity); in setupCameraButton()
538 mActionBar.setTitle(GalleryUtils.getSelectionModePrompt(typeBits)); in onCreateActionBar()
553 cameraItem.setVisible(GalleryUtils.isCameraAvailable(activity)); in onCreateActionBar()
602 GalleryUtils.startCameraActivity(activity); in onItemSelected()
DGalleryActivity.java40 import com.android.gallery3d.util.GalleryUtils;
119 int typeBits = GalleryUtils.determineTypeBits(this, intent); in startGetContent()
129 return GalleryUtils.MIME_TYPE_PANORAMA360.equals(type) in getContentType()
173 int typeBits = GalleryUtils.determineTypeBits(this, intent); in startViewAction()
DGalleryAppImpl.java28 import com.android.gallery3d.util.GalleryUtils;
50 GalleryUtils.initialize(this); in onCreate()
DPhotoPage.java73 import com.android.gallery3d.util.GalleryUtils;
436 } else if (inCameraRoll && GalleryUtils.isCameraAvailable(mActivity)) { in onCreate()
650 .setType(GalleryUtils.MIME_TYPE_PANORAMA360) in createSharePanoramaIntent()
675 GalleryUtils.startCameraActivity(mActivity); in launchCamera()
905 GalleryUtils.startGalleryActivity(mActivity); in onUpPressed()
949 mHaveImageEditor = GalleryUtils.isEditorAvailable(mActivity, "image/*"); in onCreateActionBar()
1414 boolean haveImageEditor = GalleryUtils.isEditorAvailable(mActivity, "image/*"); in onResume()
DEyePosition.java30 import com.android.gallery3d.util.GalleryUtils;
73 mUserDistance = GalleryUtils.meterToPixel(USER_DISTANCE_METER); in EyePosition()
DActivityState.java40 import com.android.gallery3d.util.GalleryUtils;
126 mBackgroundColor = GalleryUtils.intColorToFloatARGBArray( in onCreate()
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
DGalleryWidgetMigrator.java34 import com.android.gallery3d.util.GalleryUtils;
139 int oldBucketId = GalleryUtils.getBucketId(oldPath); in updatePath()
142 int newBucketId = GalleryUtils.getBucketId(path); in updatePath()
161 int newBucketId = GalleryUtils.getBucketId(newPath); in updateEntryUsingRelativePath()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DTimeClustering.java24 import com.android.gallery3d.util.GalleryUtils;
323 if (!GalleryUtils.isValidLocation(itemA.lat, itemA.lng) in isGeographicallySeparated()
324 || !GalleryUtils.isValidLocation(itemB.lat, itemB.lng)) { in isGeographicallySeparated()
328 double distance = GalleryUtils.fastDistanceMeters( in isGeographicallySeparated()
333 return (GalleryUtils.toMile(distance) > GEOGRAPHIC_DISTANCE_CUTOFF_IN_MILES); in isGeographicallySeparated()
DLocalAlbum.java34 import com.android.gallery3d.util.GalleryUtils;
120 GalleryUtils.assertNotInRenderThread(); in getMediaItem()
270 GalleryUtils.assertNotInRenderThread(); in delete()
314 String path = GalleryUtils.searchDirForPath(extStorage, bucketId); in getRelativePath()
DLocalImage.java40 import com.android.gallery3d.util.GalleryUtils;
249 if (GalleryUtils.isValidLocation(latitude, longitude)) { in getSupportedOperations()
267 GalleryUtils.assertNotInRenderThread(); in delete()
277 GalleryUtils.assertNotInRenderThread(); in rotate()
DLocalVideo.java29 import com.android.gallery3d.util.GalleryUtils;
190 GalleryUtils.assertNotInRenderThread(); in delete()
222 details.addDetail(MediaDetails.INDEX_DURATION, GalleryUtils.formatDuration( in getDetails()
DLocalMediaItem.java21 import com.android.gallery3d.util.GalleryUtils;
93 if (GalleryUtils.isValidLocation(latitude, longitude)) { in getDetails()
DLocationClustering.java25 import com.android.gallery3d.util.GalleryUtils;
91 if (GalleryUtils.isValidLocation(s.lat, s.lng)) { in run()
255 float distance = (float) GalleryUtils.fastDistanceMeters( in kMeans()
DImageCacheService.java26 import com.android.gallery3d.util.GalleryUtils;
108 return GalleryUtils.getBytes(path.toString() + "+" + timeModified + "+" + type); in makeKey()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DLocalPhotoSource.java35 import com.android.gallery3d.util.GalleryUtils;
198 return GalleryUtils.getBucketId(downloadsPath); in getDownloadBucketId()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java39 import com.android.gallery3d.util.GalleryUtils;
141 boolean isValidLatlong = GalleryUtils.isValidLocation(latitude, longitude); in queryPicasaItem()

12