/packages/apps/UnifiedEmail/src/com/android/mail/ |
H A D | ContactInfo.java | 27 public final Bitmap photo; field in class:ContactInfo 37 public ContactInfo(Uri contactUri, Integer status, Bitmap photo) { argument 38 this(contactUri, status, null, photo); 41 private ContactInfo(Uri contactUri, Integer status, byte[] photoBytes, Bitmap photo) { argument 45 this.photo = photo; 50 return "{status=" + status + " photo=" + photo + "}";
|
/packages/apps/Dialer/src/com/android/dialer/service/ |
H A D | CachedNumberLookupService.java | 36 public boolean addPhoto(Context context, String number, byte[] photo); argument
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | PhotoEditorView.java | 66 // Never called, since the user never adds a new photo-editor; 75 mPhotoImageView = (ImageView) findViewById(R.id.photo); 103 // Try decoding photo if actual entry 106 final Bitmap photo = BitmapFactory.decodeByteArray(photoBytes, 0, 109 mPhotoImageView.setImageBitmap(photo); 132 public void setPhotoBitmap(Bitmap photo) { argument 133 if (photo == null) { 134 // Clear any existing photo and return 140 mPhotoImageView.setImageBitmap(photo); 145 // When the user chooses a new photo mar [all...] |
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 | 206 * The raw contact for which we started "take photo" or "choose photo from gallery" most 211 * The {@link PhotoHandler} for the photo editor for the {@link #mRawContactIdRequestingPhoto} 214 * A {@link PhotoHandler} is created for each photo editor in {@link #bindPhotoHandler}, but 825 // Set up the photo handler. 828 // If a new photo was chosen but not yet saved, we need to 888 * If we've stashed a temporary file containing a contact's new photo, 891 * @return Bitmap of photo for specified raw-contact, or null 915 // Read-only and either no photo or the only photo 1726 setPhoto(long rawContact, Bitmap photo, Uri photoUri) 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/apps/InCallUI/src/com/android/incallui/ |
H A D | ContactsAsyncHelper.java | 36 * Helper class for loading contacts photo asynchronously. 49 * @param photo Drawable object obtained by the async load. 55 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, argument 72 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon, 81 /** Handler run on a worker thread to load photo asynchronously. */ 95 public Drawable photo; field in class:ContactsAsyncHelper.WorkerArgs 194 Log.e(this, "Error opening photo input stream", e); 198 args.photo = Drawable.createFromStream(inputStream, 203 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); 208 args.photo 239 getPhotoIconWhenAppropriate(Context context, Drawable photo) argument [all...] |
H A D | ContactInfoCache.java | 240 entry.photo = mContext.getResources().getDrawable(R.drawable.business_unknown); 266 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, Object cookie) { argument 279 Log.d(this, "setting photo for entry: ", entry); 282 if (photo != null) { 283 Log.v(this, "direct drawable: ", photo); 284 entry.photo = photo; 286 Log.v(this, "photo icon: ", photoIcon); 287 entry.photo = new BitmapDrawable(mContext.getResources(), photoIcon); 289 Log.v(this, "unknown photo"); 506 public Drawable photo; field in class:ContactInfoCache.ContactCacheEntry [all...] |
H A D | CallCardFragment.java | 111 mPhoto = (ImageView) view.findViewById(R.id.photo); 180 Drawable photo, boolean isConference, boolean isGeneric, boolean isSipCall) { 185 photo = getConferencePhoto(isGeneric); 199 setDrawableToImageView(mPhoto, photo); 204 Drawable photo, boolean isConference, boolean isGeneric) { 209 photo = getConferencePhoto(isGeneric); 222 setDrawableToImageView(mSecondaryPhoto, photo); 317 private void setDrawableToImageView(ImageView view, Drawable photo) { argument 318 if (photo == null) { 319 photo 179 setPrimary(String number, String name, boolean nameIsNumber, String label, Drawable photo, boolean isConference, boolean isGeneric, boolean isSipCall) argument 203 setSecondary(boolean show, String name, boolean nameIsNumber, String label, Drawable photo, boolean isConference, boolean isGeneric) argument [all...] |
H A D | CallCardPresenter.java | 274 if (entry.photo != null) { 276 getUi().setPrimaryImage(entry.photo); 278 getUi().setSecondaryImage(entry.photo); 362 entry.photo, isConference, isGenericConf, entry.isSipCall); 384 mSecondaryContactInfo.photo, isConference, isGenericConf); 461 Drawable photo, boolean isConference, boolean isGeneric, boolean isSipCall); 463 Drawable photo, boolean isConference, boolean isGeneric); 460 setPrimary(String number, String name, boolean nameIsNumber, String label, Drawable photo, boolean isConference, boolean isGeneric, boolean isSipCall) argument 462 setSecondary(boolean show, String name, boolean nameIsNumber, String label, Drawable photo, boolean isConference, boolean isGeneric) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
H A D | MailPhotoViewActivity.java | 18 package com.android.mail.photo; 34 import com.android.ex.photo.Intents; 35 import com.android.ex.photo.PhotoViewActivity; 36 import com.android.ex.photo.fragments.PhotoViewFragment; 37 import com.android.ex.photo.views.ProgressBarWrapper; 73 * {@link com.android.ex.photo.provider.PhotoContract.PhotoViewColumns}. 74 * @param photoIndex The index of the photo to show first. 93 * {@link com.android.ex.photo.provider.PhotoContract.PhotoViewColumns}. 94 * @param initialPhotoUri The uri of the photo to show first. 142 * button should not appear if the photo ha [all...] |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
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...] |
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...] |
/packages/services/Telephony/src/com/android/phone/ |
H A D | ContactsAsyncHelper.java | 40 * Helper class for loading contacts photo asynchronously. 56 * @param photo Drawable object obtained by the async load. 62 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, argument 81 args.listener.onImageLoadComplete(msg.what, args.photo, args.photoIcon, 90 /** Handler run on a worker thread to load photo asynchronously. */ 104 public Drawable photo; field in class:ContactsAsyncHelper.WorkerArgs 221 Log.e(LOG_TAG, "Error opening photo input stream", e); 225 args.photo = Drawable.createFromStream(inputStream, 230 args.photoIcon = getPhotoIconWhenAppropriate(args.context, args.photo); 237 args.photo 270 getPhotoIconWhenAppropriate(Context context, Drawable photo) argument [all...] |
H A D | NotificationMgr.java | 297 * 3. For each caller, try obtaining photo. 389 // Now try to obtain a photo for this person. 396 log("Failed to find Uri for obtaining photo." 399 // We couldn't find person Uri, so we're sure we cannot obtain a photo. 414 int token, Drawable photo, Bitmap photoIcon, Object cookie) { 415 if (DBG) log("Finished loading image: " + photo); 417 notifyMissedCall(n.name, n.number, n.type, photo, photoIcon, n.date); 465 * @param photo picture which may be used for the notification (when photoIcon is null). 475 String name, String number, String type, Drawable photo, Bitmap photoIcon, long date) { 491 + ", label: " + type + ", photo 413 onImageLoadComplete( int token, Drawable photo, Bitmap photoIcon, Object cookie) argument 474 notifyMissedCall( String name, String number, String type, Drawable photo, Bitmap photoIcon, long date) argument [all...] |
/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 366 public void setPhotoByteArray(byte[] photo) { argument 367 mPhoto = photo;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ShortcutIntentBuilder.java | 136 * An asynchronous task that loads name, photo and other data from the database. 327 private Bitmap generateQuickContactIcon(Bitmap photo) { argument 333 // Copy in the photo 337 Rect src = new Rect(0,0, photo.getWidth(),photo.getHeight()); 339 canvas.drawBitmap(photo, src, dst, photoPaint); 355 * number, and if there is a photo also adds the call action icon. 357 private Bitmap generatePhoneNumberIcon(Bitmap photo, int phoneType, String phoneLabel, argument 369 // Copy in the photo 373 Rect src = new Rect(0, 0, photo [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GeometryMathUtils.java | 402 Bitmap photo, int viewWidth, int viewHeight) { 403 if (photo == null) { 407 Matrix m = getCropSelectionToScreenMatrix(crop, holder, photo.getWidth(), photo.getHeight(), 413 canvas.drawBitmap(photo, m, p); 401 drawTransformedCropped(GeometryHolder holder, Canvas canvas, Bitmap photo, int viewWidth, int viewHeight) argument
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | LegacyContactsProviderTest.java | 710 byte[] photo = loadPhotoFromResource( 719 values.put(Photos.DATA, photo); 734 values.put(Photos.DATA, photo); 759 private void assertSearchSuggestion(boolean name, boolean photo, boolean organization, argument 773 if (photo) {
|
H A D | BaseContactsProvider2Test.java | 1274 private final byte[] photo; field in class:BaseContactsProvider2Test.GoldenContact 1291 photo = builder.photo; 1346 * Return's the contact's photo 1349 return photo; 1393 private byte[] photo; field in class:BaseContactsProvider2Test.GoldenContactBuilder 1437 * The contact's photo. 1439 public GoldenContactBuilder photo(byte[] value) { method in class:BaseContactsProvider2Test.GoldenContactBuilder 1440 photo = value; 1493 if (photo ! [all...] |
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | ContactsSyncParser.java | 1113 public void addPhoto(Entity entity, String photo) { argument 1117 byte[] pic = Base64.decode(photo, Base64.DEFAULT);
|
/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...] |
/packages/providers/ContactsProvider/tests/assets/test1/ |
H A D | legacy_contacts.sql | 34 CREATE TABLE faves (_id INTEGER PRIMARY KEY, ui_pos INTEGER, phone TEXT NOT NULL, nickname TEXT NOT NULL, photo TEXT NOT NULL, timestamp TEXT NOT NULL, pending_phone TEXT, pending_nickname TEXT, pending_photo TEXT);
|
/packages/providers/ContactsProvider/tests/assets/testSynced/ |
H A D | legacy_contacts.sql | 22 CREATE TABLE faves (_id INTEGER PRIMARY KEY, ui_pos INTEGER, phone TEXT NOT NULL, nickname TEXT NOT NULL, photo TEXT NOT NULL, timestamp TEXT NOT NULL, pending_phone TEXT, pending_nickname TEXT, pending_photo TEXT);
|
/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
H A D | legacy_contacts.sql | 18 CREATE TABLE faves (_id INTEGER PRIMARY KEY, ui_pos INTEGER, phone TEXT NOT NULL, nickname TEXT NOT NULL, photo TEXT NOT NULL, timestamp TEXT NOT NULL, pending_phone TEXT, pending_nickname TEXT, pending_photo TEXT);
|