/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
Intents.java | 18 package com.android.ex.photo; 26 import com.android.ex.photo.fragments.PhotoViewFragment; 56 * Gets a photo view intent builder to display the photos from phone activity. 66 * Gets a photo view intent builder to display the photo view fragment 76 * Gets a photo view intent builder to display the photo view fragment with a custom fragment 88 /** Gets a new photo view intent builder */ 94 /** Gets a new photo view intent builder */ 100 /** Builder to create a photo view intent * [all...] |
PhotoViewController.java | 1 package com.android.ex.photo; 37 import com.android.ex.photo.ActionBarInterface.OnMenuVisibilityListener; 38 import com.android.ex.photo.PhotoViewPager.InterceptType; 39 import com.android.ex.photo.PhotoViewPager.OnInterceptTouchListener; 40 import com.android.ex.photo.adapters.PhotoPagerAdapter; 41 import com.android.ex.photo.fragments.PhotoViewFragment; 42 import com.android.ex.photo.loaders.PhotoBitmapLoader; 43 import com.android.ex.photo.loaders.PhotoBitmapLoaderInterface.BitmapResult; 44 import com.android.ex.photo.loaders.PhotoPagerLoader; 45 import com.android.ex.photo.provider.PhotoContract [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
BaseCursorPagerAdapter.java | 18 package com.android.ex.photo.adapters; 28 import com.android.ex.photo.provider.PhotoContract;
|
BaseFragmentPagerAdapter.java | 18 package com.android.ex.photo.adapters;
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
ImageUtils.java | 18 package com.android.ex.photo.util; 31 import com.android.ex.photo.PhotoViewController; 32 import com.android.ex.photo.loaders.PhotoBitmapLoaderInterface.BitmapResult; 114 // Do nothing - the photo will appear to be missing 118 // Do nothing - the photo will appear to be missing
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
PhotoEditorView.java | 22 import android.provider.ContactsContract.CommonDataKinds.Photo; 37 * Simple editor for {@link Photo}. 67 // Never called, since the user never adds a new photo-editor; 76 mPhotoImageView = (ImageView) findViewById(R.id.photo); 104 // Try decoding photo if actual entry 105 final byte[] photoBytes = values.getAsByteArray(Photo.PHOTO); 107 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, local 110 mPhotoImageView.setImageBitmap(photo); 123 * Return true if a valid {@link Photo} has been set [all...] |
AggregationSuggestionEngine.java | 31 import android.provider.ContactsContract.CommonDataKinds.Photo; 78 public byte[] photo; field in class:AggregationSuggestionEngine.Suggestion 85 + nickname + (photo != null ? " [has photo]" : ""); 266 + Photo.CONTENT_ITEM_TYPE + "')" 279 Photo.PHOTO, 294 public static final int PHOTO = 9; 425 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) { 428 if (dataId == photoId && !mDataCursor.isNull(DataQuery.PHOTO)) { [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
ContactsAsyncHelper.java | 37 * Helper class for loading contacts photo asynchronously. 50 * @param photo Drawable object obtained by the async load. 56 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, 73 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon, 82 /** Handler run on a worker thread to load photo asynchronously. */ 96 public Drawable photo; field in class:ContactsAsyncHelper.WorkerArgs 123 Log.e(this, "Error opening photo input stream", e); 127 args.photo = Drawable.createFromStream(inputStream, 132 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); 137 args.photo = null [all...] |
ContactInfoCache.java | 242 entry.photo = mContext.getResources().getDrawable(R.drawable.img_business); 267 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, Object cookie) { 280 Log.d(this, "setting photo for entry: ", entry); 283 if (photo != null) { 284 Log.v(this, "direct drawable: ", photo); 285 entry.photo = photo; 287 Log.v(this, "photo icon: ", photoIcon); 288 entry.photo = new BitmapDrawable(mContext.getResources(), photoIcon); 290 Log.v(this, "unknown photo"); 309 Drawable photo = null; local 509 public Drawable photo; field in class:ContactInfoCache.ContactCacheEntry [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
SenderInfoLoader.java | 32 import android.provider.ContactsContract.Contacts.Photo; 46 * A {@link Loader} to look up presence, contact URI, and photo data for a set of email 61 private static final String[] PHOTO_COLS = new String[] { Photo._ID, Photo.PHOTO }; 103 * {@link ContactInfo}. Otherwise, just put the raw bytes of the photo 109 * <li>Either {@link ContactInfo#photoBytes} or {@link ContactInfo#photo} is non-null - 110 * Photo loaded successfully.</li> 111 * <li>Both {@link ContactInfo#photoBytes} and {@link ContactInfo#photo} are null - 112 * Photo load failed.</li 219 Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, photoBytes.length); local [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
ContactsAsyncHelper.java | 36 * Helper class for loading contacts photo asynchronously. 50 * @param photo Drawable object obtained by the async load. 56 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, 73 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon, 82 /** Handler run on a worker thread to load photo asynchronously. */ 96 public Drawable photo; field in class:ContactsAsyncHelper.WorkerArgs 123 Log.e(this, e, "Error opening photo input stream"); 127 args.photo = Drawable.createFromStream(inputStream, 132 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); 137 args.photo = null [all...] |
MissedCallNotifier.java | 158 Drawable photo = call.getPhoto(); local 159 if (photo != null && photo instanceof BitmapDrawable) { 160 builder.setLargeIcon(((BitmapDrawable) photo).getBitmap()); 305 // notification so that we have the contact info and photo.
|
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/datalayer/ |
MainActivity.java | 57 * Shows events and photo from the Wearable APIs. 148 Asset photo = dataMapItem.getDataMap() local 150 final Bitmap bitmap = loadBitmapFromAsset(mGoogleApiClient, photo);
|
/development/samples/wearable/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
MainActivity.java | 57 * Shows events and photo from the Wearable APIs. 148 Asset photo = dataMapItem.getDataMap() local 150 final Bitmap bitmap = loadBitmapFromAsset(mGoogleApiClient, photo);
|
/external/smack/src/org/jivesoftware/smackx/provider/ |
VCardProvider.java | 134 NodeList photo = document.getElementsByTagName("PHOTO"); local 135 if (photo.getLength() != 1) 138 Node photoNode = photo.item(0);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
PhotoCarousel.java | 149 public void onPostExecute(Bitmap photo) { 150 if (photo != null) { 151 mBitmapQueue.offer(photo); 184 Bitmap photo = mBitmapQueue.poll(); local 185 if (photo != null) { 187 int width = photo.getWidth(); 188 int height = photo.getHeight(); 191 destination.setImageBitmap(photo); 197 Bitmap old = mBitmapStore.put(destination, photo); 206 private void setScaleType(View photo) { [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
PresentationActivity.java | 201 Log.d(TAG, "Showing presentation photo #" + contents.photo 227 final int photo = mNextImageNumber; local 229 return photo; 418 final int photo = mContents.photo; local 423 photo, displayId, display.getName())); 427 image.setImageDrawable(r.getDrawable(PHOTOS[photo])); 446 final int photo; field in class:PresentationActivity.PresentationContents 462 public PresentationContents(int photo) { [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
MailPhotoViewController.java | 18 package com.android.mail.photo; 34 import com.android.ex.photo.ActionBarInterface; 35 import com.android.ex.photo.PhotoViewController; 36 import com.android.ex.photo.fragments.PhotoViewFragment; 37 import com.android.ex.photo.views.ProgressBarWrapper; 142 } else if (itemId == R.id.menu_save) { // save the current photo 146 } else if (itemId == R.id.menu_share) { // share the current photo 150 } else if (itemId == R.id.menu_print) { // print the current photo 152 } else if (itemId == R.id.menu_download_again) { // redownload the current photo 166 * button should not appear if the photo has already been saved) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
ContactLoader.java | 503 * Looks for the photo data item in entities. If found, a thumbnail will be stored. A larger 504 * photo will also be stored if available. 509 // Try to load the large photo from a file using the photo URI. 552 // No photo ID 563 final PhotoDataItem photo = (PhotoDataItem) dataItem; local 564 contactData.setThumbnailPhotoBinaryData(photo.getPhoto()); [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/ |
PhotoViewFragment.java | 18 package com.android.ex.photo.fragments; 40 import com.android.ex.photo.Intents; 41 import com.android.ex.photo.PhotoViewCallbacks; 42 import com.android.ex.photo.PhotoViewCallbacks.CursorChangedListener; 43 import com.android.ex.photo.PhotoViewCallbacks.OnScreenListener; 44 import com.android.ex.photo.PhotoViewController.ActivityInterface; 45 import com.android.ex.photo.R; 46 import com.android.ex.photo.adapters.PhotoPagerAdapter; 47 import com.android.ex.photo.loaders.PhotoBitmapLoaderInterface; 48 import com.android.ex.photo.loaders.PhotoBitmapLoaderInterface.BitmapResult [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
BluetoothPbapVcardManager.java | 738 private boolean photo = true; field in class:BluetoothPbapVcardManager.FilterVcard 776 photo = checkbit(PHOTO_BIT, filter); 796 return photo; [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropActivity.java | 309 RectF photo = new RectF(0, 0, mOriginalBitmap.getWidth(), mOriginalBitmap.getHeight()); local 310 RectF crop = getBitmapCrop(photo); 312 photo, mOriginalBounds, 690 RectF photo = mCropView.getPhoto(); local 691 if (crop == null || photo == null) { 695 RectF scaledCrop = CropMath.getScaledCropBounds(crop, photo, imageBounds);
|
/frameworks/base/core/java/com/google/android/util/ |
AbstractMessageParser.java | 212 // Look for photo links. 213 Photo photo = Photo.matchURL(url, text); local 214 if (photo != null) { 215 return photo; 218 // Look for photo links. 665 PHOTO ("p"), 952 /** Represents a link to a Picasa photo or album. */ 953 public static class Photo extends Token 962 private String photo; \/\/ null for albums field in class:AbstractMessageParser.Photo 1031 private String photo; \/\/ null for user album field in class:AbstractMessageParser.FlickrPhoto [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
BaseContactsProvider2Test.java | 44 import android.provider.ContactsContract.CommonDataKinds.Photo; 358 values.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); 359 values.put(Photo.PHOTO, loadTestPhoto()); 367 values.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); 368 values.put(Photo.PHOTO, loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL)); 1291 private final byte[] photo; field in class:BaseContactsProvider2Test.GoldenContact 1410 private byte[] photo; field in class:BaseContactsProvider2Test.GoldenContactBuilder 1456 public GoldenContactBuilder photo(byte[] value) { method in class:BaseContactsProvider2Test.GoldenContactBuilder [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
PhotoView.java | 18 package com.android.ex.photo.views; 41 import com.android.ex.photo.R; 42 import com.android.ex.photo.fragments.PhotoViewFragment.HorizontallyScrollable; 45 * Layout for the photo list view header. 93 /** Paint to partially dim the photo during crop */ 95 /** Paint to highlight the cropped portion of the photo */ 98 /** The photo to display */ 102 /** A matrix to apply the scaling of the photo */ 111 /** Whether or not the photo is full-screen */ 165 /** Source (i.e. the photo size) bounds * [all...] |