Home
last modified time | relevance | path

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

12

/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java342 private double[] getCenter(View photo) { in getCenter() argument
343 float width = (float) ((Integer) photo.getTag(R.id.photo_width)).intValue(); in getCenter()
344 float height = (float) ((Integer) photo.getTag(R.id.photo_height)).intValue(); in getCenter()
345 double[] center = { photo.getX() + width / 2f, in getCenter()
346 - (photo.getY() + height / 2f) }; in getCenter()
430 for (View photo: mOnTable) { in onLayout()
431 if (photo != getSelection()) { in onLayout()
432 dropOnTable(photo); in onLayout()
458 View photo = inflater.inflate(R.layout.photo, null); in applyFrame() local
459 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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMetadata.java358 public static Matrix buildPhotoMatrix(RectF photo, RectF crop, float rotation, in buildPhotoMatrix() argument
361 m.setRotate(straighten, photo.centerX(), photo.centerY()); in buildPhotoMatrix()
362 concatMirrorMatrix(m, photo.right, photo.bottom, type); in buildPhotoMatrix()
434 public static Matrix buildCenteredPhotoMatrix(RectF photo, RectF crop, float rotation, in buildCenteredPhotoMatrix() argument
436 Matrix m = buildPhotoMatrix(photo, crop, rotation, straighten, type); in buildCenteredPhotoMatrix()
438 photo.centerX(), photo.centerY() in buildCenteredPhotoMatrix()
476 public static Matrix buildWanderingCropMatrix(RectF photo, RectF crop, float rotation, in buildWanderingCropMatrix() argument
478 Matrix m = buildCenteredPhotoMatrix(photo, crop, rotation, straighten, type, newCenter); in buildWanderingCropMatrix()
479 m.preRotate(-straighten, photo.centerX(), photo.centerY()); in buildWanderingCropMatrix()
DImageGeometry.java434 protected float getTransformState(RectF photo, RectF crop, float[] displayCenter) { in getTransformState() argument
446 if (photo != null) { in getTransformState()
447 photo.set(GeometryMath.scaleRect(photoBounds, scale)); in getTransformState()
456 protected RectF drawTransformed(Canvas canvas, Bitmap photo, Paint p, float[] offset) { in drawTransformed() argument
475 canvas.drawBitmap(photo, m, p); in drawTransformed()
490 protected void drawTransformedCropped(Canvas canvas, Bitmap photo, Paint p) { in drawTransformedCropped() argument
518 canvas.drawBitmap(photo, m1, p); in drawTransformedCropped()
DImageCrop.java275 RectF photo = getLocalPhotoBounds(); in getBoundedCrop() local
277 float[] photoCorners = CropMath.getCornersFromRect(photo); in getBoundedCrop()
279 photo.centerX(), photo.centerY() in getBoundedCrop()
368 RectF photo = getLocalPhotoBounds(); in moveEdges() local
370 float[] photoCorners = CropMath.getCornersFromRect(photo); in moveEdges()
372 photo.centerX(), photo.centerY() in moveEdges()
/packages/apps/Phone/src/com/android/phone/
DContactsAsyncHelper.java62 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, in onImageLoadComplete() argument
81 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon,
104 public Drawable photo; field in ContactsAsyncHelper.WorkerArgs
225 args.photo = Drawable.createFromStream(inputStream, in handleMessage()
230 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); in handleMessage()
237 args.photo = null; in handleMessage()
270 private Bitmap getPhotoIconWhenAppropriate(Context context, Drawable photo) { in getPhotoIconWhenAppropriate() argument
271 if (!(photo instanceof BitmapDrawable)) { in getPhotoIconWhenAppropriate()
276 Bitmap orgBitmap = ((BitmapDrawable) photo).getBitmap(); in getPhotoIconWhenAppropriate()
DNotificationMgr.java421 int token, Drawable photo, Bitmap photoIcon, Object cookie) { in onImageLoadComplete() argument
422 if (DBG) log("Finished loading image: " + photo); in onImageLoadComplete()
424 notifyMissedCall(n.name, n.number, n.type, photo, photoIcon, n.date); in onImageLoadComplete()
483 String name, String number, String type, Drawable photo, Bitmap photoIcon, long date) { in notifyMissedCall() argument
498 + ", label: " + type + ", photo: " + photo + ", photoIcon: " + photoIcon in notifyMissedCall()
563 } else if (photo instanceof BitmapDrawable) { in notifyMissedCall()
564 builder.setLargeIcon(((BitmapDrawable) photo).getBitmap()); in notifyMissedCall()
DCallCard.java231 mPhoto = (ImageView) findViewById(R.id.photo); in onFinishInflate()
706 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, Object cookie) { in onImageLoadComplete() argument
726 callerInfo.cachedPhoto = photo; in onImageLoadComplete()
732 if (photo != null) { in onImageLoadComplete()
733 showImage(imageView, photo); in onImageLoadComplete()
/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()
DBaseContactsProvider2Test.java1263 private final byte[] photo; field in BaseContactsProvider2Test.GoldenContact
1280 photo = builder.photo; in GoldenContact()
1338 return photo; in getPhoto()
1382 private byte[] photo; field in BaseContactsProvider2Test.GoldenContactBuilder
1428 public GoldenContactBuilder photo(byte[] value) { in photo() method in BaseContactsProvider2Test.GoldenContactBuilder
1429 photo = value; in photo()
1482 if (photo != null) { in build()
1504 values.put(Photo.PHOTO, photo); in insertPhoto()
DGlobalSearchSupportTest.java70 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()
DLegacyContactsProviderTest.java710 byte[] photo = loadPhotoFromResource( in testPhotoUpdate()
719 values.put(Photos.DATA, photo); in testPhotoUpdate()
734 values.put(Photos.DATA, photo); in testPhotoUpdate()
759 private void assertSearchSuggestion(boolean name, boolean photo, boolean organization, in assertSearchSuggestion() argument
773 if (photo) { in assertSearchSuggestion()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java75 mPhotoImageView = (ImageView) findViewById(R.id.photo); in onFinishInflate()
106 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, in setValues() local
109 mPhotoImageView.setImageBitmap(photo); in setValues()
132 public void setPhotoBitmap(Bitmap photo) { in setPhotoBitmap() argument
133 if (photo == null) { in setPhotoBitmap()
140 mPhotoImageView.setImageBitmap(photo); in setPhotoBitmap()
155 final Bitmap scaled = Bitmap.createScaledBitmap(photo, size, size, false); in setPhotoBitmap()
DAggregationSuggestionView.java84 ImageView photo = (ImageView) findViewById(R.id.aggregation_suggestion_photo); in bindSuggestion() local
85 if (suggestion.photo != null) { in bindSuggestion()
86 photo.setImageBitmap(BitmapFactory.decodeByteArray( in bindSuggestion()
87 suggestion.photo, 0, suggestion.photo.length)); in bindSuggestion()
89 photo.setImageResource(R.drawable.ic_contact_picture_holo_light); in bindSuggestion()
DAggregationSuggestionEngine.java78 public byte[] photo; field in AggregationSuggestionEngine.Suggestion
85 + nickname + (photo != null ? " [has photo]" : ""); in toString()
425 suggestion.photo = mDataCursor.getBlob(DataQuery.PHOTO); in getSuggestions()
DContactEditorFragment.java1725 private void setPhoto(long rawContact, Bitmap photo, String photoFile) {
1728 if (photo == null || photo.getHeight() < 0 || photo.getWidth() < 0) {
1734 requestingEditor.setPhotoBitmap(photo);
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DShortcutIntentBuilder.java327 private Bitmap generateQuickContactIcon(Bitmap photo) { in generateQuickContactIcon() argument
337 Rect src = new Rect(0,0, photo.getWidth(),photo.getHeight()); in generateQuickContactIcon()
339 canvas.drawBitmap(photo, src, dst, photoPaint); in generateQuickContactIcon()
357 private Bitmap generatePhoneNumberIcon(Bitmap photo, int phoneType, String phoneLabel, in generatePhoneNumberIcon() argument
373 Rect src = new Rect(0, 0, photo.getWidth(), photo.getHeight()); in generatePhoneNumberIcon()
375 canvas.drawBitmap(photo, src, dst, photoPaint); in generatePhoneNumberIcon()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoPage.java373 final MediaItem photo = mCurrentPhoto; in onCreate()
375 updateCurrentPhoto(photo); in onCreate()
535 MediaItem photo = mModel.getMediaItem(0); in onCreate()
536 if (photo != null) updateCurrentPhoto(photo); in onCreate()
547 MediaItem photo = mModel.getMediaItem(0); in onCreate()
548 if (photo != null) updateCurrentPhoto(photo); in onCreate()
780 private void updateCurrentPhoto(MediaItem photo) { in updateCurrentPhoto() argument
781 if (mCurrentPhoto == photo) return; in updateCurrentPhoto()
782 mCurrentPhoto = photo; in updateCurrentPhoto()
985 mActionBar.createActionBarMenu(R.menu.photo, menu); in onCreateActionBar()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventLocationAdapter.java233 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/Contacts/src/com/android/contacts/socialwidget/
DSocialWidgetProvider.java142 byte[] photo = contactData.getPhotoBinaryData(); in bindRemoteViews()
143 setPhoto(views, photo != null in bindRemoteViews()
144 ? BitmapFactory.decodeByteArray(photo, 0, photo.length) in bindRemoteViews()
164 private static void setPhoto(RemoteViews views, Bitmap photo) { in setPhoto() argument
165 views.setImageViewBitmap(R.id.image, photo); in setPhoto()
/packages/apps/Email/src/com/android/email/activity/
DContactStatusLoader.java76 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/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java306 RectF photo = new RectF(0, 0, mOriginalBitmap.getWidth(), mOriginalBitmap.getHeight()); in startFinishOutput() local
307 RectF crop = getBitmapCrop(photo); in startFinishOutput()
309 photo, mOriginalBounds, in startFinishOutput()
687 RectF photo = mCropView.getPhoto(); in getBitmapCrop() local
688 if (crop == null || photo == null) { in getBitmapCrop()
692 RectF scaledCrop = CropMath.getScaledCropBounds(crop, photo, imageBounds); in getBitmapCrop()
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/
DTagCanon.java85 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/Email/src/com/android/email/
DNotificationController.java409 Bitmap photo = ContactStatusLoader.getContactInfo(mContext, email).mPhoto; in getSenderPhoto() local
411 if (photo != null) { in getSenderPhoto()
418 if (photo.getHeight() < idealIconHeight) { in getSenderPhoto()
420 photo = Bitmap.createScaledBitmap( in getSenderPhoto()
421 photo, idealIconWidth, idealIconHeight, true); in getSenderPhoto()
424 return photo; in getSenderPhoto()
/packages/apps/Contacts/src/com/android/contacts/model/
DContact.java436 ContentValues photo = new ContentValues(); in getContentValues() local
437 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); in getContentValues()
438 photo.put(Photo.PHOTO, mPhotoBinaryData); in getContentValues()
439 result.add(photo); in getContentValues()

12