/packages/apps/UnifiedEmail/src/com/android/mail/ |
H A D | ContactInfo.java | 26 public final Bitmap photo; field in class:ContactInfo 36 public ContactInfo(Uri contactUri, Bitmap photo) { argument 37 this(contactUri, null, photo); 40 private ContactInfo(Uri contactUri, byte[] photoBytes, Bitmap photo) { argument 43 this.photo = photo; 48 return "{photo=" + (photo != null ? photo : photoBytes) + "}";
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoTable.java | 347 private double[] getCenter(View photo) { argument 348 float width = (float) ((Integer) photo.getTag(R.id.photo_width)).intValue(); 349 float height = (float) ((Integer) photo.getTag(R.id.photo_height)).intValue(); 350 double[] center = { photo.getX() + width / 2f, 351 - (photo.getY() + height / 2f) }; 437 for (View photo: mOnTable) { 438 if (photo != getSelection()) { 439 dropOnTable(photo); 465 View photo = inflater.inflate(R.layout.photo, nul 519 onPostExecute(View photo) argument 565 onPostExecute(View photo) argument 612 fadeOutBackground(final View photo) argument 633 fadeInBackground(final View photo) argument 670 fadeAway(final View photo, final boolean replace) argument 696 moveToTopOfPile(View photo) argument 709 placeOnDeck(final View photo, final int slot ) argument 739 move(final View photo, float x, float y, float a) argument 748 throwOnTable(final View photo) argument 758 move(final View photo, float dx, float dy, boolean drop) argument 772 fling(final View photo) argument 793 fling(final View photo, float dx, float dy, int duration, boolean spin) argument 821 photoOffTable(final View photo) argument 825 photoOffTable(final View photo, final int dx, final int dy) argument 834 dropOnTable(final View photo) argument 839 dropOnTable(final View photo, final Interpolator interpolator) argument 883 moveToBackground(View photo) argument 891 exitStageLeft(View photo) argument 897 removeViewFromParent(View photo) argument 904 moveToForeground(View photo) argument 912 isInBackground(View photo) argument 925 pickUp(final View photo) argument 961 getBitmap(View photo) argument 977 recycle(View photo) argument 984 setHighlight(View photo, boolean highlighted) argument [all...] |
H A D | PhotoCarousel.java | 149 public void onPostExecute(Bitmap photo) { argument 150 if (photo != null) { 151 mBitmapQueue.offer(photo); 184 Bitmap photo = mBitmapQueue.poll(); 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) { argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
H A D | ContactPhotoFetcher.java | 17 package com.android.mail.photo;
|
H A D | MailPhotoViewActivity.java | 18 package com.android.mail.photo; 23 import com.android.ex.photo.Intents; 24 import com.android.ex.photo.PhotoViewActivity; 25 import com.android.ex.photo.PhotoViewController; 44 * @param photoIndex The index of the photo to show first. 50 "com.android.mail.photo.MailPhotoViewActivity"); 62 * @param initialPhotoUri The uri of the photo to show first. 74 context, "com.android.mail.photo.MailPhotoViewActivity");
|
H A D | 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 ha [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | 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, argument 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 168 getPhotoIconWhenAppropriate(Context context, Drawable photo) argument [all...] |
H A D | MissedCallNotifier.java | 158 Drawable photo = call.getPhoto(); 159 if (photo != null && photo instanceof BitmapDrawable) { 160 builder.setLargeIcon(((BitmapDrawable) photo).getBitmap()); 305 // notification so that we have the contact info and photo.
|
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | ContactInfoCache.java | 242 entry.photo = mContext.getResources().getDrawable(R.drawable.img_business); 267 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, Object cookie) { argument 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"); 509 public Drawable photo; field in class:ContactInfoCache.ContactCacheEntry [all...] |
H A D | 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, argument 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 168 getPhotoIconWhenAppropriate(Context context, Drawable photo) argument [all...] |
H A D | CallCardFragment.java | 174 mPhoto = (ImageView) view.findViewById(R.id.photo); 418 Drawable photo, boolean isConference, boolean canManageConference, boolean isSipCall) { 423 photo = getConferencePhoto(canManageConference); 424 photo.setAutoMirrored(true); 444 setDrawableToImageView(mPhoto, photo); 601 private void setDrawableToImageView(ImageView view, Drawable photo) { argument 602 if (photo == null) { 603 photo = view.getResources().getDrawable(R.drawable.img_no_image); 604 photo.setAutoMirrored(true); 609 view.setImageDrawable(photo); 417 setPrimary(String number, String name, boolean nameIsNumber, String label, Drawable photo, boolean isConference, boolean canManageConference, boolean isSipCall) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | PhotoEditorView.java | 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 107 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, 110 mPhotoImageView.setImageBitmap(photo); 133 public void setPhotoBitmap(Bitmap photo) { argument 134 if (photo == null) { 135 // Clear any existing photo and return 141 mPhotoImageView.setImageBitmap(photo); 146 // When the user chooses a new photo mar [all...] |
H A D | AggregationSuggestionView.java | 86 ImageView photo = (ImageView) findViewById(R.id.aggregation_suggestion_photo); 87 if (suggestion.photo != null) { 88 photo.setImageBitmap(BitmapFactory.decodeByteArray( 89 suggestion.photo, 0, suggestion.photo.length)); 91 photo.setImageDrawable(ContactPhotoManager.getDefaultAvatarDrawableForContact(
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | PhotoStoreTest.java | 69 byte[] photo = loadPhotoFromResource(R.drawable.earth_small, PhotoSize.ORIGINAL); 71 // Since the photo is already thumbnail-sized, no file will be stored. 72 assertEquals(0, mPhotoStore.insert(newPhotoProcessor(photo, false))); 76 // As 200 is below the full photo size, we don't want to see it upscaled 86 // As 300x200 is below the full photo size, we don't want to see it upscaled 92 // As 600x400 is above the full photo size, we expect the picture to be cropped and then 114 * - Loads the given photo resource. 115 * - Inserts it into the photo store. 116 * - Checks that the photo has a photo fil [all...] |
H A D | GlobalSearchSupportTest.java | 70 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( 77 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( 115 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( 327 * Whether to set Icon1, which in practice is the contact's photo. 331 * "content://com.android.contacts/contacts/2015/photo"
|
/packages/apps/Email/src/com/android/email/activity/ |
H A D | ContactStatusLoader.java | 38 * Loader to load presence statuses and the contact photo. 44 /** email address -> photo id, presence */ 52 /** photo id -> photo data */ 67 /** Contact photo. Null if unknown */ 76 public Result(Bitmap photo, int presenceResId, Uri lookupUri) { argument 77 mPhoto = photo; 104 // Load photo-id and presence status. 127 // load photo from photo [all...] |
/packages/apps/Dialer/src/com/android/dialer/service/ |
H A D | CachedNumberLookupService.java | 39 public boolean addPhoto(Context context, String number, byte[] photo); argument
|
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/ |
H A D | TagCanon.java | 85 Bitmap photo = ((BitmapDrawable) drawable).getBitmap(); 86 final int size = photo.getWidth() * photo.getHeight() * 4; 90 photo.compress(Bitmap.CompressFormat.PNG, 100, out);
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
H A D | ContactResolver.java | 29 import com.android.ex.photo.util.Trace; 180 Trace.beginSection("load contact photo bytes"); 205 final byte[] photo = contactInfo.photoBytes; 206 if (photo == null) { 207 // No photo bytes found. 215 request.contactRequest.bytes = photo; 219 // Synchronously decode the photo bytes. We are already in a background
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | EventLocationAdapter.java | 72 // photo icon). 75 // The contact photo to use for the icon. This will override the default icon. 214 // Use photo in cache. 217 // Asynchronously load photo and update. 233 Bitmap photo = null; 237 photo = BitmapFactory.decodeStream(imageStream); 238 mPhotoCache.put(contactPhotoUri, photo); 240 return photo; 244 public void onPostExecute(Bitmap photo) { 248 if (photo ! [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | PhotoAppWidgetProvider.java | 110 views.setImageViewBitmap(R.id.photo, bitmap); 122 views.setOnClickPendingIntent(R.id.photo, pendingClickIntent);
|
/packages/apps/Settings/src/com/android/settings/users/ |
H A D | RestrictedProfileSettings.java | 165 public void onPhotoChanged(Drawable photo) { argument 166 mUserIconView.setImageDrawable(photo);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | Contact.java | 89 * Small version of the contact photo loaded from a blob instead of from a file. If a large 90 * contact photo is not available yet, then this has the same value as mPhotoBinaryData. 442 // If the photo was loaded using the URI, create an entry for the photo 445 ContentValues photo = new ContentValues(); 446 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); 447 photo.put(Photo.PHOTO, mPhotoBinaryData); 448 result.add(photo);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ShortcutIntentBuilder.java | 145 * An asynchronous task that loads name, photo and other data from the database. 330 private Bitmap generateQuickContactIcon(Drawable photo) { argument 336 // Copy in the photo 338 photo.setBounds(dst); 339 photo.draw(canvas); 357 * number, and if there is a photo also adds the call action icon. 359 private Bitmap generatePhoneNumberIcon(Drawable photo, int phoneType, String phoneLabel, argument 367 Bitmap icon = generateQuickContactIcon(photo); 370 // Copy in the photo
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | PhotoPage.java | 135 // E.g., viewing a photo in gmail attachment 327 /* We got here by swiping from photo 1 to the 347 final MediaItem photo = mCurrentPhoto; 349 updateCurrentPhoto(photo); 506 MediaItem photo = mModel.getMediaItem(0); 507 if (photo != null) updateCurrentPhoto(photo); 518 MediaItem photo = mModel.getMediaItem(0); 519 if (photo != null) updateCurrentPhoto(photo); 752 updateCurrentPhoto(MediaItem photo) argument [all...] |