Home
last modified time | relevance | path

Searched refs:photo (Results 1 – 25 of 110) sorted by relevance

12345

/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java347 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 …]
DPhotoCarousel.java149 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/Dialer/java/com/android/incallui/
DContactsAsyncHelper.java51 void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, Object cookie); in onImageLoadComplete() argument
55 void onImageLoaded(int token, Drawable photo, Bitmap photoIcon, Object cookie); in onImageLoaded() argument
111 args.token, args.photo, args.photoIcon, args.cookie); in startObtainPhotoAsync()
123 public Drawable photo; field in ContactsAsyncHelper.WorkerArgs
144 args.photo = Drawable.createFromStream(inputStream, args.displayPhotoUri.toString()); in doInBackground()
148 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); in doInBackground()
155 args.photo = null; in doInBackground()
163 args.listener.onImageLoaded(args.token, args.photo, args.photoIcon, args.cookie); in doInBackground()
183 private Bitmap getPhotoIconWhenAppropriate(Context context, Drawable photo) { in getPhotoIconWhenAppropriate() argument
184 if (!(photo instanceof BitmapDrawable)) { in getPhotoIconWhenAppropriate()
[all …]
DContactInfoCache.java478 && existingCacheEntry.photo != null) { in updateCallerInfoInCacheOnAnyThread()
480 cacheEntry.photo = existingCacheEntry.photo; in updateCallerInfoInCacheOnAnyThread()
553 public void onImageLoaded(int token, Drawable photo, Bitmap photoIcon, Object cookie) { in onImageLoaded() argument
561 loadImage(photo, photoIcon, cookie); in onImageLoaded()
564 private void loadImage(Drawable photo, Bitmap photoIcon, Object cookie) { in loadImage() argument
581 if (photo != null) { in loadImage()
582 Log.v(TAG, "direct drawable: ", photo); in loadImage()
583 entry.photo = photo; in loadImage()
587 entry.photo = new BitmapDrawable(context.getResources(), photoIcon); in loadImage()
591 entry.photo = null; in loadImage()
[all …]
DReturnToCallController.java280 private void onPhotoAvatarReceived(@NonNull Drawable photo) { in onPhotoAvatarReceived() argument
282 bubble.updatePhotoAvatar(photo); in onPhotoAvatarReceived()
286 private void onLetterTileAvatarReceived(@NonNull Drawable photo) { in onLetterTileAvatarReceived() argument
288 bubble.updateAvatar(photo); in onLetterTileAvatarReceived()
407 if (entry.photo != null) { in onContactInfoComplete()
408 returnToCallController.onPhotoAvatarReceived(entry.photo); in onContactInfoComplete()
424 if (entry.photo != null) { in onImageLoadComplete()
425 returnToCallController.onPhotoAvatarReceived(entry.photo); in onImageLoadComplete()
/packages/services/Telecomm/src/com/android/server/telecom/
DContactsAsyncHelper.java64 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, in onImageLoadComplete() argument
94 public Drawable photo; field in ContactsAsyncHelper.WorkerArgs
125 args.photo = Drawable.createFromStream(inputStream, in handleMessage()
130 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); in handleMessage()
135 args.photo = null; in handleMessage()
154 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon, in handleMessage()
167 private Bitmap getPhotoIconWhenAppropriate(Context context, Drawable photo) { in getPhotoIconWhenAppropriate() argument
168 if (!(photo instanceof BitmapDrawable)) { in getPhotoIconWhenAppropriate()
173 Bitmap orgBitmap = ((BitmapDrawable) photo).getBitmap(); in getPhotoIconWhenAppropriate()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoStoreTest.java69 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()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactViewHolder.java38 private final QuickContactBadge photo; field in ContactViewHolder
53 photo = itemView.findViewById(R.id.photo); in ContactViewHolder()
77 photo, InteractionEvent.Type.OPEN_QUICK_CONTACT_FROM_CONTACTS_FRAGMENT_BADGE, true); in bind()
81 return photo; in getPhoto()
94 onContactSelectedListener.onContactSelected(photo, contactUri, contactId); in onClick()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/directories/
DDirectoryContactViewHolder.java48 private final QuickContactBadge photo; field in DirectoryContactViewHolder
58 photo = view.findViewById(R.id.photo); in DirectoryContactViewHolder()
89 photo.setVisibility(View.VISIBLE); in bind()
93 photo, in bind()
101 photo.setVisibility(View.INVISIBLE); in bind()
/packages/apps/EmergencyInfo/src/com/android/emergency/
DEmergencyContactManager.java45 Bitmap photo = null; in getContact() local
77 photo = BitmapFactory.decodeStream(new ByteArrayInputStream(data)); in getContact()
92 return new Contact(contactLookupUri, phoneUri, name, phoneNumber, phoneType, photo); in getContact()
145 Bitmap photo) { in Contact() argument
151 mPhoto = photo; in Contact()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/
DPresentTestFragment.java238 final int photo = mNextImageNumber; in getNextPhoto() local
240 return photo; in getNextPhoto()
332 int photo = mContents.mPhoto; in onCreate() local
334 image.setImageDrawable(r.getDrawable(PHOTOS[photo])); in onCreate()
337 photo, displayId, display.getName())); in onCreate()
370 DemoPresentationContents(int photo) { in DemoPresentationContents() argument
371 this.mPhoto = photo; in DemoPresentationContents()
/packages/apps/Dialer/java/com/android/dialer/glidephotomanager/
Dphoto_info.proto10 // photo.
19 // The URI of the photo.
41 // Whether the photo should be badged as video call.
44 // Whether the photo should be badged as RTT call.
/packages/apps/Dialer/java/com/android/dialer/searchfragment/nearbyplaces/
DNearbyPlaceViewHolder.java43 private final QuickContactBadge photo; field in NearbyPlaceViewHolder
52 photo = view.findViewById(R.id.photo); in NearbyPlaceViewHolder()
74 photo, in bind()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DSearchContactViewHolder.java69 private final QuickContactBadge photo; field in SearchContactViewHolder
84 photo = view.findViewById(R.id.photo); in SearchContactViewHolder()
115 photo.setVisibility(View.VISIBLE); in bind()
119 photo, in bind()
127 photo.setVisibility(View.INVISIBLE); in bind()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DZslPictureTakerFactory.java17 package com.android.camera.one.v2.photo;
33 import com.android.camera.one.v2.photo.zsl.AcceptableZslImageFilter;
34 import com.android.camera.one.v2.photo.zsl.AutoFlashZslImageFilter;
35 import com.android.camera.one.v2.photo.zsl.ZslImageCaptureCommand;
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoPage.java347 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/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoViewFragment.java23 import com.android.ex.photo.PhotoViewCallbacks;
24 import com.android.ex.photo.fragments.PhotoViewFragment;
25 import com.android.ex.photo.loaders.PhotoBitmapLoaderInterface.BitmapResult;
DBuglePhotoBitmapLoader.java24 import com.android.ex.photo.PhotoViewController;
25 import com.android.ex.photo.loaders.PhotoBitmapLoaderInterface;
26 import com.android.ex.photo.loaders.PhotoBitmapLoaderInterface.BitmapResult;
/packages/apps/Dialer/java/com/android/incallui/incall/protocol/
DPrimaryInfo.java45 public abstract Drawable photo(); in photo() method in PrimaryInfo
94 public abstract Builder setPhoto(Drawable photo); in setPhoto() argument
152 photo(), in toString()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContact.java338 ContentValues photo = new ContentValues(); in getContentValues() local
339 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); in getContentValues()
340 photo.put(Photo.PHOTO, mPhotoBinaryData); in getContentValues()
341 result.add(photo); in getContentValues()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPickRawContactDialogFragment.java93 holder.photo = (ImageView) view.findViewById(R.id.photo); in getView()
136 ContactPhotoManager.getInstance(mContext).loadThumbnail(holder.photo, in getView()
148 ImageView photo; field in PickRawContactDialogFragment.RawContactAccountListAdapter.RawContactViewHolder
/packages/apps/Camera2/src/com/android/camera/one/v2/
DSimpleOneCameraFactory.java57 import com.android.camera.one.v2.photo.ImageRotationCalculator;
58 import com.android.camera.one.v2.photo.LegacyPictureTakerFactory;
59 import com.android.camera.one.v2.photo.PictureTaker;
60 import com.android.camera.one.v2.photo.PictureTakerFactory;
/packages/apps/Contacts/src/com/android/contacts/model/
DContact.java432 ContentValues photo = new ContentValues(); in getContentValues() local
433 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); in getContentValues()
434 photo.put(Photo.PHOTO, mPhotoBinaryData); in getContentValues()
435 result.add(photo); in getContentValues()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java309 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/Contacts/src/com/android/contacts/
DShortcutIntentBuilder.java369 private Bitmap generateQuickContactIcon(Drawable photo) { in generateQuickContactIcon() argument
376 photo.setBounds(dst); in generateQuickContactIcon()
377 photo.draw(canvas); in generateQuickContactIcon()
402 private Bitmap generatePhoneNumberIcon(Drawable photo, int phoneType, String phoneLabel, in generatePhoneNumberIcon() argument
412 Bitmap icon = generateQuickContactIcon(photo); in generatePhoneNumberIcon()

12345