/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 347 private double[] getCenter(View photo) { in getCenter() argument 348 float width = (float) ((Integer) photo.getTag(R.id.photo_width)).intValue(); in getCenter() 349 float height = (float) ((Integer) photo.getTag(R.id.photo_height)).intValue(); in getCenter() 350 double[] center = { photo.getX() + width / 2f, in getCenter() 351 - (photo.getY() + height / 2f) }; in getCenter() 437 for (View photo: mOnTable) { in onLayout() 438 if (photo != getSelection()) { in onLayout() 439 dropOnTable(photo); in onLayout() 465 View photo = inflater.inflate(R.layout.photo, null); in applyFrame() local 466 ImageView image = (ImageView) photo; in applyFrame() [all …]
|
D | PhotoCarousel.java | 149 public void onPostExecute(Bitmap photo) { in onPostExecute() argument 150 if (photo != null) { in onPostExecute() 151 mBitmapQueue.offer(photo); in onPostExecute() 184 Bitmap photo = mBitmapQueue.poll(); in changePhoto() local 185 if (photo != null) { in changePhoto() 187 int width = photo.getWidth(); in changePhoto() 188 int height = photo.getHeight(); in changePhoto() 191 destination.setImageBitmap(photo); in changePhoto() 197 Bitmap old = mBitmapStore.put(destination, photo); in changePhoto() 206 private void setScaleType(View photo) { in setScaleType() argument [all …]
|
/packages/apps/InCallUI/src/com/android/incallui/ |
D | ContactInfoCache.java | 242 entry.photo = mContext.getResources().getDrawable(R.drawable.img_business); in onPhoneNumberInfoComplete() 267 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, Object cookie) { in onImageLoadComplete() argument 283 if (photo != null) { in onImageLoadComplete() 284 Log.v(this, "direct drawable: ", photo); in onImageLoadComplete() 285 entry.photo = photo; in onImageLoadComplete() 288 entry.photo = new BitmapDrawable(mContext.getResources(), photoIcon); in onImageLoadComplete() 291 entry.photo = null; in onImageLoadComplete() 309 Drawable photo = null; in buildEntry() local 316 photo = context.getResources().getDrawable(info.photoResource); in buildEntry() 319 photo = info.cachedPhoto; in buildEntry() [all …]
|
D | ContactsAsyncHelper.java | 56 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, in onImageLoadComplete() argument 73 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon, 96 public Drawable photo; field in ContactsAsyncHelper.WorkerArgs 127 args.photo = Drawable.createFromStream(inputStream, in handleMessage() 132 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); in handleMessage() 137 args.photo = null; in handleMessage() 168 private Bitmap getPhotoIconWhenAppropriate(Context context, Drawable photo) { in getPhotoIconWhenAppropriate() argument 169 if (!(photo instanceof BitmapDrawable)) { in getPhotoIconWhenAppropriate() 174 Bitmap orgBitmap = ((BitmapDrawable) photo).getBitmap(); in getPhotoIconWhenAppropriate()
|
D | CallCardFragment.java | 174 mPhoto = (ImageView) view.findViewById(R.id.photo); in onViewCreated() 418 Drawable photo, boolean isConference, boolean canManageConference, boolean isSipCall) { in setPrimary() argument 423 photo = getConferencePhoto(canManageConference); in setPrimary() 424 photo.setAutoMirrored(true); in setPrimary() 444 setDrawableToImageView(mPhoto, photo); in setPrimary() 601 private void setDrawableToImageView(ImageView view, Drawable photo) { in setDrawableToImageView() argument 602 if (photo == null) { in setDrawableToImageView() 603 photo = view.getResources().getDrawable(R.drawable.img_no_image); in setDrawableToImageView() 604 photo.setAutoMirrored(true); in setDrawableToImageView() 609 view.setImageDrawable(photo); in setDrawableToImageView() [all …]
|
D | CallCardPresenter.java | 395 if (entry.photo != null) { in onImageLoadComplete() 397 getUi().setPrimaryImage(entry.photo); in onImageLoadComplete() 479 entry.photo, isConference, canManageConference, entry.isSipCall); in updatePrimaryDisplayInfo() 666 Drawable photo, boolean isConference, boolean canManageConference, in setPrimary() argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | ContactInfo.java | 26 public final Bitmap photo; field in ContactInfo 36 public ContactInfo(Uri contactUri, Bitmap photo) { in ContactInfo() argument 37 this(contactUri, null, photo); in ContactInfo() 40 private ContactInfo(Uri contactUri, byte[] photoBytes, Bitmap photo) { in ContactInfo() argument 43 this.photo = photo; in ContactInfo() 48 return "{photo=" + (photo != null ? photo : photoBytes) + "}"; in toString()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | ContactsAsyncHelper.java | 56 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, in onImageLoadComplete() argument 73 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon, 96 public Drawable photo; field in ContactsAsyncHelper.WorkerArgs 127 args.photo = Drawable.createFromStream(inputStream, in handleMessage() 132 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); in handleMessage() 137 args.photo = null; in handleMessage() 168 private Bitmap getPhotoIconWhenAppropriate(Context context, Drawable photo) { in getPhotoIconWhenAppropriate() argument 169 if (!(photo instanceof BitmapDrawable)) { in getPhotoIconWhenAppropriate() 174 Bitmap orgBitmap = ((BitmapDrawable) photo).getBitmap(); in getPhotoIconWhenAppropriate()
|
D | MissedCallNotifier.java | 158 Drawable photo = call.getPhoto(); in showMissedCallNotification() local 159 if (photo != null && photo instanceof BitmapDrawable) { in showMissedCallNotification() 160 builder.setLargeIcon(((BitmapDrawable) photo).getBitmap()); in showMissedCallNotification()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | PhotoStoreTest.java | 69 byte[] photo = loadPhotoFromResource(R.drawable.earth_small, PhotoSize.ORIGINAL); in testStoreThumbnailPhoto() 72 assertEquals(0, mPhotoStore.insert(newPhotoProcessor(photo, false))); in testStoreThumbnailPhoto() 129 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL); in runStorageTestForResource() 130 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, false)); in runStorageTestForResource() 159 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL); in runStorageTestForResourceWithCrop() 160 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, true)); in runStorageTestForResourceWithCrop() 176 byte[] photo = loadPhotoFromResource(R.drawable.earth_normal, PhotoSize.ORIGINAL); in testRemoveEntry() 177 long photoFileId = mPhotoStore.insert(newPhotoProcessor(photo, false)); in testRemoveEntry()
|
D | BaseContactsProvider2Test.java | 1291 private final byte[] photo; field in BaseContactsProvider2Test.GoldenContact 1308 photo = builder.photo; in GoldenContact() 1366 return photo; in getPhoto() 1410 private byte[] photo; field in BaseContactsProvider2Test.GoldenContactBuilder 1456 public GoldenContactBuilder photo(byte[] value) { in photo() method in BaseContactsProvider2Test.GoldenContactBuilder 1457 photo = value; in photo() 1510 if (photo != null) { in build() 1532 values.put(Photo.PHOTO, photo); in insertPhoto()
|
D | GlobalSearchSupportTest.java | 70 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( in testSearchSuggestionsByNameWithPhoto() 77 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( in testSearchSuggestionsByEmailWithPhoto() 115 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( in testSearchSuggestionsByPhoneNumberOnNonPhone()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | PhotoEditorView.java | 76 mPhotoImageView = (ImageView) findViewById(R.id.photo); in onFinishInflate() 107 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, in setValues() local 110 mPhotoImageView.setImageBitmap(photo); in setValues() 133 public void setPhotoBitmap(Bitmap photo) { in setPhotoBitmap() argument 134 if (photo == null) { in setPhotoBitmap() 141 mPhotoImageView.setImageBitmap(photo); in setPhotoBitmap() 156 final Bitmap scaled = Bitmap.createScaledBitmap(photo, size, size, false); in setPhotoBitmap()
|
D | AggregationSuggestionView.java | 86 ImageView photo = (ImageView) findViewById(R.id.aggregation_suggestion_photo); in bindSuggestion() local 87 if (suggestion.photo != null) { in bindSuggestion() 88 photo.setImageBitmap(BitmapFactory.decodeByteArray( in bindSuggestion() 89 suggestion.photo, 0, suggestion.photo.length)); in bindSuggestion() 91 photo.setImageDrawable(ContactPhotoManager.getDefaultAvatarDrawableForContact( in bindSuggestion()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoPage.java | 347 final MediaItem photo = mCurrentPhoto; in onCreate() 349 updateCurrentPhoto(photo); in onCreate() 506 MediaItem photo = mModel.getMediaItem(0); in onCreate() 507 if (photo != null) updateCurrentPhoto(photo); in onCreate() 518 MediaItem photo = mModel.getMediaItem(0); in onCreate() 519 if (photo != null) updateCurrentPhoto(photo); in onCreate() 752 private void updateCurrentPhoto(MediaItem photo) { in updateCurrentPhoto() argument 753 if (mCurrentPhoto == photo) return; in updateCurrentPhoto() 754 mCurrentPhoto = photo; in updateCurrentPhoto() 948 mActionBar.createActionBarMenu(R.menu.photo, menu); in onCreateActionBar()
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EventLocationAdapter.java | 233 Bitmap photo = null; in asyncLoadPhotoAndUpdateView() 237 photo = BitmapFactory.decodeStream(imageStream); in asyncLoadPhotoAndUpdateView() 238 mPhotoCache.put(contactPhotoUri, photo); in asyncLoadPhotoAndUpdateView() 240 return photo; in asyncLoadPhotoAndUpdateView() 244 public void onPostExecute(Bitmap photo) { in asyncLoadPhotoAndUpdateView() 248 if (photo != null && imageView.getTag() == contactPhotoUri) { in asyncLoadPhotoAndUpdateView() 249 imageView.setImageBitmap(photo); in asyncLoadPhotoAndUpdateView()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | ContactStatusLoader.java | 76 public Result(Bitmap photo, int presenceResId, Uri lookupUri) { in Result() argument 77 mPhoto = photo; in Result() 128 Bitmap photo = null; in getContactInfo() local 135 photo = BitmapFactory.decodeByteArray(photoData, 0, photoData.length, null); in getContactInfo() 144 return new Result(photo, presenceStatusResId, lookupUri); in getContactInfo()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
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;
|
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;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ShortcutIntentBuilder.java | 330 private Bitmap generateQuickContactIcon(Drawable photo) { in generateQuickContactIcon() argument 338 photo.setBounds(dst); in generateQuickContactIcon() 339 photo.draw(canvas); in generateQuickContactIcon() 359 private Bitmap generatePhoneNumberIcon(Drawable photo, int phoneType, String phoneLabel, in generatePhoneNumberIcon() argument 367 Bitmap icon = generateQuickContactIcon(photo); in generatePhoneNumberIcon()
|
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/ |
D | TagCanon.java | 85 Bitmap photo = ((BitmapDrawable) drawable).getBitmap(); in buildImageMessages() local 86 final int size = photo.getWidth() * photo.getHeight() * 4; in buildImageMessages() 90 photo.compress(Bitmap.CompressFormat.PNG, 100, out); in buildImageMessages()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropActivity.java | 309 RectF photo = new RectF(0, 0, mOriginalBitmap.getWidth(), mOriginalBitmap.getHeight()); in startFinishOutput() local 310 RectF crop = getBitmapCrop(photo); in startFinishOutput() 312 photo, mOriginalBounds, in startFinishOutput() 690 RectF photo = mCropView.getPhoto(); in getBitmapCrop() local 691 if (crop == null || photo == null) { in getBitmapCrop() 695 RectF scaledCrop = CropMath.getScaledCropBounds(crop, photo, imageBounds); in getBitmapCrop()
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
D | ContactResolver.java | 29 import com.android.ex.photo.util.Trace; 205 final byte[] photo = contactInfo.photoBytes; in doInBackground() 206 if (photo == null) { in doInBackground() 215 request.contactRequest.bytes = photo; in doInBackground()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | Contact.java | 445 ContentValues photo = new ContentValues(); in getContentValues() local 446 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); in getContentValues() 447 photo.put(Photo.PHOTO, mPhotoBinaryData); in getContentValues() 448 result.add(photo); in getContentValues()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 402 Bitmap photo, int viewWidth, int viewHeight) { in drawTransformedCropped() argument 403 if (photo == null) { in drawTransformedCropped() 407 Matrix m = getCropSelectionToScreenMatrix(crop, holder, photo.getWidth(), photo.getHeight(), in drawTransformedCropped() 413 canvas.drawBitmap(photo, m, p); in drawTransformedCropped()
|