/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
H A D | PhotoView.java | 30 * Renders and displays photo in the surface view. 77 * Sets photo for display; this method must be queued for GL thread. 79 public void setPhoto(Photo photo, boolean clearTransform) { argument 80 renderer.setPhoto(photo, clearTransform); 84 * Rotates displayed photo; this method must be queued for GL thread. 91 * Flips displayed photo; this method must be queued for GL thread. 105 Photo photo; field in class:PhotoView.PhotoRenderer 112 void setPhoto(Photo photo, boolean clearTransform) { argument 113 int width = (photo != null) ? photo [all...] |
H A D | Photo.java | 52 public boolean matchDimension(Photo photo) { argument 53 return ((photo.width == width) && (photo.height == height));
|
H A D | FilterStack.java | 28 * A stack of filters to be applied onto a photo. 46 // Use two photo buffers as in and out in turns to apply filters in the stack. 83 // In/out buffers need redrawn by re-applying filters on source photo. 94 // Source photo will be displayed if there is no filter stacked. 95 Photo photo = source; 98 photo = runFilter(i); 100 // Clear photo-view transformation when the top filter will be outputted. 101 photoView.setPhoto(photo, outputTopFilter); 164 Photo photo = (filterIndex < 0) ? source : buffers[getOutBufferIndex(filterIndex)]; 165 final Bitmap bitmap = (photo ! [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | PhotoEditorView.java | 70 mPhotoImageView = (ImageView) findViewById(R.id.photo); 98 // Try decoding photo if actual entry 101 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, 104 mPhotoImageView.setImageBitmap(photo); 127 public void setPhotoBitmap(Bitmap photo) { argument 128 if (photo == null) { 129 // Clear any existing photo and return 135 final int size = photo.getWidth() * photo.getHeight() * 4; 139 photo [all...] |
H A D | AggregationSuggestionView.java | 84 ImageView photo = (ImageView) findViewById(R.id.aggregation_suggestion_photo); 85 if (suggestion.photo != null) { 86 photo.setImageBitmap(BitmapFactory.decodeByteArray( 87 suggestion.photo, 0, suggestion.photo.length)); 89 photo.setImageResource(R.drawable.ic_contact_picture_holo_light);
|
H A D | AggregationSuggestionEngine.java | 78 public byte[] photo; field in class:AggregationSuggestionEngine.Suggestion 85 + nickname + (photo != null ? " [has photo]" : ""); 425 suggestion.photo = mDataCursor.getBlob(DataQuery.PHOTO);
|
H A D | ContactEditorFragment.java | 212 // Height/width (in pixels) to request for the photo - queried from the provider. 941 * Constructs an intent for picking a photo from Gallery, cropping it and returning the bitmap. 964 * Create a file name for the icon photo using current time. 973 * Constructs an intent for capturing a photo and storing it in a temporary file. 982 * Sends a newly acquired photo to Gallery for cropping 993 // Launch gallery to crop the photo 1602 // which will cause the photo that is set here to disappear. To prevent this, 1604 // This photo is set here already to reduce flickering. 1651 * Sets the photo stored in mPhoto and writes it to the RawContact with the given id 1653 private void setPhoto(long rawContact, Bitmap photo) { argument [all...] |
/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | PhotoStoreTest.java | 70 byte[] photo = loadPhotoFromResource(R.drawable.earth_small, PhotoSize.ORIGINAL); 72 // Since the photo is already thumbnail-sized, no file will be stored. 73 assertEquals(0, mPhotoStore.insert(new PhotoProcessor(photo, 256, 96))); 90 * - Loads the given photo resource. 91 * - Inserts it into the photo store. 92 * - Checks that the photo has a photo file ID. 93 * - Loads the expected display photo for the resource. 94 * - Gets the photo entry from the photo stor [all...] |
H A D | GlobalSearchSupportTest.java | 68 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( 75 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( 113 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( 361 * Whether to set Icon1, which in practice is the contact's photo. 365 * "content://com.android.contacts/contacts/2015/photo"
|
H A D | BaseContactsProvider2Test.java | 1187 private final byte[] photo; field in class:BaseContactsProvider2Test.GoldenContact 1204 photo = builder.photo; 1259 * Return's the contact's photo 1262 return photo; 1306 private byte[] photo; field in class:BaseContactsProvider2Test.GoldenContactBuilder 1350 * The contact's photo. 1352 public GoldenContactBuilder photo(byte[] value) { method in class:BaseContactsProvider2Test.GoldenContactBuilder 1353 photo = value; 1406 if (photo ! [all...] |
H A D | LegacyContactsProviderTest.java | 712 byte[] photo = loadPhotoFromResource( 721 values.put(Photos.DATA, photo); 736 values.put(Photos.DATA, photo); 761 private void assertSearchSuggestion(boolean name, boolean photo, boolean organization, argument 775 if (photo) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | PhotoPage.java | 91 // E.g., viewing a photo in gmail attachment 207 MediaItem photo = mModel.getCurrentMediaItem(); 208 if (photo != null) updateCurrentPhoto(photo); 219 MediaItem photo = mModel.getCurrentMediaItem(); 220 if (photo != null) updateCurrentPhoto(photo); 287 private void updateCurrentPhoto(MediaItem photo) { argument 288 if (mCurrentPhoto == photo) return; 289 mCurrentPhoto = photo; [all...] |
/packages/apps/Contacts/src/com/android/contacts/socialwidget/ |
H A D | SocialWidgetProvider.java | 141 byte[] photo = contactData.getPhotoBinaryData(); 142 setPhoto(views, photo != null 143 ? BitmapFactory.decodeByteArray(photo, 0, photo.length) 170 private static void setPhoto(RemoteViews views, Bitmap photo) { argument 171 views.setImageViewBitmap(R.id.image, photo);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ShortcutIntentBuilder.java | 129 * An asynchronous task that loads name, photo and other data from the database. 309 private Bitmap generateQuickContactIcon(Bitmap photo) { argument 315 // Copy in the photo 319 Rect src = new Rect(0,0, photo.getWidth(),photo.getHeight()); 321 canvas.drawBitmap(photo, src, dst, photoPaint); 337 * number, and if there is a photo also adds the call action icon. 339 private Bitmap generatePhoneNumberIcon(Bitmap photo, int phoneType, String phoneLabel, argument 351 // Copy in the photo 355 Rect src = new Rect(0, 0, photo [all...] |
/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/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | PhotoAppWidgetProvider.java | 96 views.setImageViewBitmap(R.id.photo, bitmap); 108 views.setOnClickPendingIntent(R.id.photo, pendingClickIntent);
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
H A D | AttachPhotoActivity.java | 61 // Height/width (in pixels) to request for the photo - queried from the provider. 78 // Load the photo dimension to request. 156 Bitmap photo = extras.getParcelable("data"); 157 if (photo != null) { 159 photo.compress(Bitmap.CompressFormat.JPEG, 75, stream); 165 // attach the photo to every raw contact 205 * Inserts a photo on the raw contact. 206 * @param values the photo values 209 * so if one exists, the account will be updated with the new photo. 229 // insert the photo [all...] |
H A D | ConfirmAddDetailActivity.java | 122 * PhotoQuery contains the projection used for retrieving the name and photo 140 * the contact photo. 250 mPhotoView = (ImageView) findViewById(R.id.photo); 297 * Internal method to query contact photo by photo id and uri. 299 * @param photoId the photo id. 440 // Set the photo 462 // If there is no photo ID, then do a disambiguation 469 // Otherwise do the photo query.
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
H A D | ContactDetailDisplayUtils.java | 193 * Sets the contact photo to display in the given {@link ImageView}. If bitmap is null, the 201 byte[] photo = contactData.getPhotoBinaryData(); 202 Bitmap bitmap = photo != null ? BitmapFactory.decodeByteArray(photo, 0, photo.length) 292 // Put in a single photo 322 /** Loads a photo into an image view. The image view is identified by the given id. */
|
H A D | ContactDetailTabCarousel.java | 110 // Retrieve the photo view for the "about" tab 111 mPhotoView = (ImageView) mAboutTab.findViewById(R.id.photo);
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
H A D | SuggestedMemberListAdapter.java | 178 // to add supplementary data to the contact (photo, phone, email) to the members based 249 // (as well as the photo, email, and phone mimetypes) 258 // Perform a second query to retrieve a photo and possibly a phone number or email 276 // Set photo 365 public void setPhotoByteArray(byte[] photo) { argument 366 mPhoto = photo;
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | PhotoAppWidgetProvider.java | 47 // Update each requested appWidgetId with its unique photo 72 * Load photo for given widget and build {@link RemoteViews} for it. 81 views.setImageViewBitmap(R.id.photo, bitmap); 147 Log.e(TAG, "Could not serialize photo", e); 186 Log.e(TAG, "Could not load photo from database", e); 205 Log.e(TAG, "Could not delete photo from database", e);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
H A D | ContactHeaderWidget.java | 178 mPhotoView = (QuickContactBadge) findViewById(R.id.photo); 185 // Set the photo with a random "no contact" image 242 //Set the photo 367 * Manually set the photo to display in the header. This doesn't change the 375 * Manually set the photo given its id. If the id is 0, a placeholder picture will 598 * internal method to query contact photo by photo id and uri. 600 * @param photoId the photo id. 668 case R.id.photo: {
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ContactLoader.java | 450 // If the photo was loaded using the URI, create an entry for the photo 453 ContentValues photo = new ContentValues(); 454 photo.put(Data.MIMETYPE, Photo.CONTENT_ITEM_TYPE); 455 photo.put(Photo.PHOTO, mPhotoBinaryData); 456 result.add(photo); 758 * Looks for the photo data item in entities. If found, creates a new Bitmap instance. If 763 // If we have a photo URI, try loading that first. 791 // No photo ID 1076 // Now retrieve any photo record [all...] |