/packages/apps/Mms/src/com/android/mms/util/ |
D | ContactInfoCache.java | 186 CacheEntry entry = e.getValue(); in invalidateCache() local 187 entry.isStale = true; in invalidateCache() 197 CacheEntry entry = mCache.get(emailOrNumber); in invalidateContact() local 198 if (entry != null) { in invalidateContact() 199 entry.isStale = true; in invalidateContact() 223 CacheEntry entry = mCache.get(name); in dump() local 224 if (entry != null) { in dump() 225 Log.i(TAG, "key=" + name + ", cacheEntry={" + entry.toString() + '}'); in dump() 263 CacheEntry entry = mCache.get(number); in getContactInfoForPhoneNumber() local 265 log("getContactInfo: number=" + number + ", name=" + entry.name + in getContactInfoForPhoneNumber() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ViewContactActivity.java | 478 ViewEntry entry = ContactEntryAdapter.getEntry(mSections, info.position, SHOW_SEPARATORS); in onCreateContextMenu() local 480 if (entry.mimetype.equals(CommonDataKinds.Phone.CONTENT_ITEM_TYPE)) { in onCreateContextMenu() 481 menu.add(0, 0, 0, R.string.menu_call).setIntent(entry.intent); in onCreateContextMenu() 482 menu.add(0, 0, 0, R.string.menu_sendSMS).setIntent(entry.secondaryIntent); in onCreateContextMenu() 483 if (!entry.isPrimary) { in onCreateContextMenu() 486 } else if (entry.mimetype.equals(CommonDataKinds.Email.CONTENT_ITEM_TYPE)) { in onCreateContextMenu() 487 menu.add(0, 0, 0, R.string.menu_sendEmail).setIntent(entry.intent); in onCreateContextMenu() 488 if (!entry.isPrimary) { in onCreateContextMenu() 491 } else if (entry.mimetype.equals(CommonDataKinds.StructuredPostal.CONTENT_ITEM_TYPE)) { in onCreateContextMenu() 492 menu.add(0, 0, 0, R.string.menu_viewAddress).setIntent(entry.intent); in onCreateContextMenu() [all …]
|
D | CallDetailActivity.java | 227 ViewEntry entry = new ViewEntry(android.R.drawable.sym_action_call, callText, in updateData() local 229 entry.number = mNumber; in updateData() 230 entry.label = callLabel; in updateData() 231 actions.add(entry); in updateData() 326 ViewEntry entry = mActions.get(position); in getView() local 327 convertView.setTag(entry); in getView() 332 icon.setImageResource(entry.icon); in getView() 333 text.setText(entry.text); in getView() 336 boolean numberEmpty = TextUtils.isEmpty(entry.number); in getView() 337 boolean labelEmpty = TextUtils.isEmpty(entry.label) || numberEmpty; in getView() [all …]
|
D | ContactEntryAdapter.java | 104 public final int setSections(ArrayList<ArrayList<E>> sections, E entry) { in setSections() argument 115 if (e.equals(entry)) { in setSections() 224 Entry entry = getEntry(mSections, position, mSeparators); in getItemId() local 225 if (entry != null) { in getItemId() 226 return entry.id; in getItemId() 260 protected abstract void bindView(View view, E entry); in bindView() argument
|
/packages/providers/GoogleContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsSyncAdapterTest.java | 187 ContactEntry entry = newPerson(entryTitle, "note1", "2", "3"); in testUpdateProviderContactMethods() local 189 addEmail(entry, "a11111", false, EmailAddress.TYPE_HOME, null); in testUpdateProviderContactMethods() 190 addEmail(entry, "a22222", true, EmailAddress.TYPE_WORK, null); in testUpdateProviderContactMethods() 191 addEmail(entry, "a33333", false, EmailAddress.TYPE_OTHER, null); in testUpdateProviderContactMethods() 192 addEmail(entry, "a44444", false, EmailAddress.TYPE_NONE, "lucky"); in testUpdateProviderContactMethods() 194 addPostal(entry, "b11111", false, PostalAddress.TYPE_HOME, null); in testUpdateProviderContactMethods() 195 addPostal(entry, "b22222", false, PostalAddress.TYPE_WORK, null); in testUpdateProviderContactMethods() 196 addPostal(entry, "b33333", true, PostalAddress.TYPE_OTHER, null); in testUpdateProviderContactMethods() 197 addPostal(entry, "b44444", false, PostalAddress.TYPE_NONE, "lucky"); in testUpdateProviderContactMethods() 199 addIm(entry, "c11111", ImAddress.PROTOCOL_CUSTOM, "p1", false, ImAddress.TYPE_HOME, null); in testUpdateProviderContactMethods() [all …]
|
/packages/apps/Camera/src/com/android/camera/gallery/ |
D | LruCache.java | 53 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap() local 54 while (entry != null) { in cleanUpWeakMap() 55 mWeakMap.remove(entry.mKey); in cleanUpWeakMap() 56 entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap() 63 Entry<K, V> entry = mWeakMap.put( in put() local 65 return entry == null ? null : entry.get(); in put() 72 Entry<K, V> entry = mWeakMap.get(key); in get() 73 return entry == null ? null : entry.get(); in get()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | LruCache.java | 53 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap() local 54 while (entry != null) { in cleanUpWeakMap() 55 mWeakMap.remove(entry.mKey); in cleanUpWeakMap() 56 entry = (Entry<K, V>) mQueue.poll(); in cleanUpWeakMap() 63 Entry<K, V> entry = mWeakMap.put( in put() local 65 return entry == null ? null : entry.get(); in put() 72 Entry<K, V> entry = mWeakMap.get(key); in get() 73 return entry == null ? null : entry.get(); in get()
|
/packages/providers/GoogleContactsProvider/src/com/android/providers/contacts/ |
D | ContactsSyncAdapter.java | 197 for (Map.Entry<A, B> entry : originalMap.entrySet()) { in swapMap() 198 final B originalValue = entry.getValue(); in swapMap() 203 newMap.put(originalValue, entry.getKey()); in swapMap() 426 Entry entry = new MediaEntry(); 445 entry.clear(); 448 cursorToBaseEntry(entry, account, c); 449 String editUrl = entry.getEditUri(); 469 Log.v(TAG, "Updating photo " + entry.toString()); 475 Log.v(TAG, "Deleting photo " + entry.toString()); 500 Log.d(TAG, "io error during update of " + entry.toString() [all …]
|
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
D | SmilPlayer.java | 219 TimelineEntry entry = new TimelineEntry(beginOffset, in getTimeline() local 221 timeline.add(entry); in getTimeline() 232 TimelineEntry entry = new TimelineEntry(endOffset, in getTimeline() local 234 timeline.add(entry); in getTimeline() 352 private synchronized boolean isBeginOfSlide(TimelineEntry entry) { in isBeginOfSlide() argument 353 return (TimelineEntry.ACTION_BEGIN == entry.getAction()) in isBeginOfSlide() 354 && (entry.getElement() instanceof SmilParElementImpl); in isBeginOfSlide() 362 TimelineEntry entry = mAllEntries.get(i); in reloadActiveSlide() local 363 actionEntry(entry); in reloadActiveSlide() 369 TimelineEntry entry = mAllEntries.get(0); in beginSmilDocument() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | EntityDelta.java | 156 for (ValuesDelta entry : mimeEntries) { in getPrimaryEntry() 157 if (entry.isPrimary()) { in getPrimaryEntry() 158 return entry; in getPrimaryEntry() 185 for (ValuesDelta entry : mimeEntries) { in getSuperPrimaryEntry() 186 if (entry.isSuperPrimary()) { in getSuperPrimaryEntry() 187 return entry; in getSuperPrimaryEntry() 188 } else if (entry.isPrimary()) { in getSuperPrimaryEntry() 189 primary = entry; in getSuperPrimaryEntry() 238 public ValuesDelta addEntry(ValuesDelta entry) { in addEntry() argument 239 final String mimeType = entry.getMimetype(); in addEntry() [all …]
|
D | EntityModifier.java | 179 for (ValuesDelta entry : mimeEntries) { in getTypeFrequencies() 181 if (!entry.isVisible()) continue; in getTypeFrequencies() 184 final EditType type = getCurrentType(entry, kind); in getTypeFrequencies() 207 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) { in getCurrentType() argument 208 final Long rawValue = entry.getAsLong(kind.typeColumn); in getCurrentType() 217 public static EditType getCurrentType(ContentValues entry, DataKind kind) { in getCurrentType() argument 219 final Integer rawValue = entry.getAsInteger(kind.typeColumn); in getCurrentType() 378 for (ValuesDelta entry : entries) { in trimEmpty() 380 final boolean touched = entry.isInsert() || entry.isUpdate(); in trimEmpty() 392 if (EntityModifier.isEmpty(entry, kind) && !isGooglePhoto) { in trimEmpty() [all …]
|
D | EntitySet.java | 289 for (ValuesDelta entry : mimeEntries) { in getSuperPrimaryEntry() 290 if (entry.isSuperPrimary()) { in getSuperPrimaryEntry() 291 return entry; in getSuperPrimaryEntry() 292 } else if (primary == null && entry.isPrimary()) { in getSuperPrimaryEntry() 293 primary = entry; in getSuperPrimaryEntry() 295 randomEntry = entry; in getSuperPrimaryEntry()
|
/packages/apps/Mms/src/com/android/mms/data/ |
D | ContactList.java | 48 for (RecipientIdCache.Entry entry : RecipientIdCache.getAddresses(spaceSepIds)) { in getByIds() 49 if (entry != null && !TextUtils.isEmpty(entry.number)) { in getByIds() 50 Contact contact = Contact.get(entry.number, canBlock); in getByIds() 51 contact.setRecipientId(entry.id); in getByIds()
|
D | Contact.java | 232 ContactInfoCache.CacheEntry entry = cache.getContactInfo(c.mNumber); in updateContact() local 234 if (contactChanged(c, entry)) { in updateContact() 236 log("updateContact: contact changed for " + entry.name); in updateContact() 240 c.mName = entry.name; in updateContact() 242 c.mLabel = entry.phoneLabel; in updateContact() 243 c.mPersonId = entry.person_id; in updateContact() 244 c.mPresenceResId = entry.presenceResId; in updateContact() 245 c.mPresenceText = entry.presenceText; in updateContact() 246 c.mAvatar = entry.mAvatar; in updateContact()
|
/packages/apps/Contacts/src/com/android/contacts/ui/widget/ |
D | KindSectionView.java | 113 for (ValuesDelta entry : mState.getMimeEntries(mKind.mimeType)) { in rebuildFromState() 115 if (!entry.isVisible()) continue; in rebuildFromState() 119 editor.setValues(mKind, entry, mState, mReadOnly); in rebuildFromState() 121 editor.setId(entry.getViewId()); in rebuildFromState()
|
D | GenericEditorView.java | 170 public void setValues(DataKind kind, ValuesDelta entry, EntityDelta state, boolean readOnly) { in setValues() argument 172 mEntry = entry; in setValues() 178 if (!entry.isVisible()) { in setValues() 191 mType = EntityModifier.getCurrentType(entry, kind); in setValues() 213 final String value = entry.getAsString(column); in setValues()
|
/packages/apps/IM/src/com/android/im/imps/ |
D | WbxmlPrimitiveSerializer.java | 56 for (Map.Entry<String, String> entry : attrMap.entrySet()) { in writeElement() 57 atts[index++] = entry.getKey(); in writeElement() 58 atts[index++] = entry.getValue(); in writeElement()
|
D | XmlPrimitiveSerializer.java | 59 for (Map.Entry<String, String> entry : attrMap.entrySet()) { in writeElement() 61 writer.write(entry.getKey()); in writeElement() 63 writeEncoded(writer, entry.getValue()); in writeElement()
|
D | ImpsPresenceUtils.java | 149 for (Map.Entry<String, Object> entry : map.entrySet()) { in mapToPrimitives() 150 String tag = entry.getKey(); in mapToPrimitives() 151 Object value = entry.getValue(); in mapToPrimitives()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | HistoryAdapter.java | 73 HistoryEntry entry = mEntries.elementAt(position); in getView() local 74 String base = entry.getBase(); in getView() 75 expr.setText(entry.getBase()); in getView()
|
D | History.java | 68 for (HistoryEntry entry : mEntries) { in write() 69 entry.write(out); in write()
|
/packages/providers/CalendarProvider/ |
D | maketests.py | 76 for entry in entries: 77 recurrences = entry.getElementsByTagName("gd:recurrence") 102 whens = entry.getElementsByTagName("gd:when") 113 for c in entry.getElementsByTagName('title')[0].childNodes:
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarSyncAdapter.java | 188 protected String cursorToEntry(SyncContext context, Cursor c, Entry entry, in cursorToEntry() argument 190 EventEntry event = (EventEntry) entry; in cursorToEntry() 578 protected void deletedCursorToEntry(SyncContext context, Cursor c, Entry entry) { in deletedCursorToEntry() argument 579 EventEntry event = (EventEntry) entry; in deletedCursorToEntry() 919 Long syncLocalId, Entry entry, in updateProvider() argument 923 EventEntry event = (EventEntry) entry; in updateProvider() 934 if (entry.isDeleted()) { in updateProvider() 1643 Entry entry = null; in processCalendars() local 1647 entry = parser.readNextEntry(entry); in processCalendars() 1648 if (Config.LOGV) Log.v(TAG, "Read entry: " + entry.toString()); in processCalendars() [all …]
|
/packages/apps/IM/src/com/android/im/app/ |
D | NewChatActivity.java | 294 HashMap<String, Object> entry = new HashMap<String, Object>(); in showSmileyDialog() local 296 entry. put("icon", icons[i]); in showSmileyDialog() 297 entry. put("name", names[i]); in showSmileyDialog() 298 entry.put("text", texts[i]); in showSmileyDialog() 300 entries.add(entry); in showSmileyDialog()
|
D | DatabaseUtils.java | 199 for (Map.Entry<String, String> entry : config.entrySet()) { in saveProviderSettings() 202 settingValue.put(Imps.ProviderSettings.NAME, entry.getKey()); in saveProviderSettings() 203 settingValue.put(Imps.ProviderSettings.VALUE, entry.getValue()); in saveProviderSettings()
|