HomeSort by relevance Sort by last modified time
    Searched refs:contactId (Results 26 - 50 of 89) sorted by null

12 3 4

  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
GroupsTest.java 232 final long contactId = this.queryContactId(rawContactId);
233 assertContactVisible(contactId, expected);
236 public void assertContactVisible(long contactId, boolean expected) {
239 }, Contacts._ID + "=" + contactId, null, null);
246 public ContentProviderOperation buildVisibleAssert(long contactId, boolean visible) {
248 Contacts._ID + "=" + contactId + " AND " + Contacts.IN_VISIBLE_GROUP + "="
260 final long contactId = this.queryContactId(rawContactId);
261 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
269 oper.add(buildVisibleAssert(contactId, true));
272 oper.add(buildVisibleAssert(contactId, true))
    [all...]
ContactsActor.java 386 public long createName(long contactId, String name) {
389 values.put(Data.RAW_CONTACT_ID, contactId);
395 contactId), RawContacts.Data.CONTENT_DIRECTORY);
400 public long createPhone(long contactId, String phoneNumber) {
403 values.put(Data.RAW_CONTACT_ID, contactId);
411 contactId), RawContacts.Data.CONTENT_DIRECTORY);
416 public long createEmail(long contactId, String address) {
419 values.put(Data.RAW_CONTACT_ID, contactId);
426 contactId), RawContacts.Data.CONTENT_DIRECTORY);
458 public int getDataCountForContact(long contactId) {
    [all...]
DirectoryTest.java 79 long contactId = queryContactId(RawContactUtil.createRawContactWithName(mResolver, "John",
90 assertEquals(contactId, cursor.getLong(0));
ContactsProvider2Test.java 801 long contactId = queryContactId(rawContactId);
802 String lookupKey = queryLookupKey(contactId);
805 Uri lookupUri = ContactsContract.Contacts.getLookupUri(contactId, lookupKey);
811 lookupUri = ContactsContract.Contacts.getLookupUri(contactId + 1, lookupKey);
    [all...]
BaseContactsProvider2Test.java 514 protected void markInvisible(long contactId) {
519 " WHERE " + BaseColumns._ID + "=" + contactId);
527 protected Cursor queryContact(long contactId) {
528 return mResolver.query(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
532 protected Cursor queryContact(long contactId, String[] projection) {
533 return mResolver.query(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
544 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID));
546 return contactId;
549 protected long queryPhotoId(long contactId) {
550 Cursor c = queryContact(contactId);
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/util/
ContactsUtils.java 275 long contactId = -1;
281 contactId = contactIdCursor.getLong(0);
288 return contactId;
291 public static String querySuperPrimaryPhone(ContentResolver cr, long contactId) {
295 Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
315 public static long queryForRawContactId(ContentResolver cr, long contactId) {
321 RawContacts.CONTACT_ID + "=" + contactId, null, null);
334 public static ArrayList<Long> queryForAllRawContactIds(ContentResolver cr, long contactId) {
340 RawContacts.CONTACT_ID + "=" + contactId, null, null);
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_DeletedContacts.java 124 long contactId = Long.parseLong(record[0]);
125 assertFalse(beforeIds.contains(contactId));
126 assertTrue(afterIds.contains(contactId));
ContactsContract_ContactsTest.java 97 long contactId = contact.getId();
100 Uri lookupUri = Contacts.getLookupUri(contactId, lookupKey);
102 lookupKey), contactId), lookupUri);
ContactsContract_RawContactsTest.java 185 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId);
186 MoreAsserts.assertNotEqual(CommonDatabaseUtils.NOT_FOUND, contactId);
188 return ContactUtil.queryContactLastUpdatedTimestamp(mResolver, contactId);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ContactListAdapter.java 135 public void setSelectedContact(long selectedDirectoryId, String lookupKey, long contactId) {
138 mSelectedContactId = contactId;
162 long contactId = cursor.getLong(ContactQuery.CONTACT_ID);
164 Uri uri = Contacts.getLookupUri(contactId, lookupKey);
176 * lookup key to be the same. We are paying no attention to the contactId,
299 long contactId = cursor.getLong(ContactQuery.CONTACT_ID);
300 if (contactId == mSelectedContactId) {
  /development/samples/ApiDemos/src/com/example/android/apis/app/
QuickContactsDemo.java 82 final long contactId = cursor.getLong(SUMMARY_ID_COLUMN_INDEX);
84 cache.photoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));
  /development/samples/SampleSyncAdapter/samplesyncadapter_server/
dashboard.py 45 def send_form(self, title, action, contactId, handle, content_obj):
46 if (contactId >= 0):
55 'contactId': contactId,
57 'has_contactId': (contactId >= 0),
146 'contactId': id
  /packages/apps/Contacts/src/com/android/contacts/activities/
ShowOrCreateActivity.java 158 long contactId = -1;
164 contactId = cursor.getLong(CONTACT_ID_INDEX);
171 if (count == 1 && contactId != -1) {
173 final Uri contactUri = Contacts.getLookupUri(contactId, lookupKey);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
SearchIndexManager.java 298 for (Long contactId : contactIds) {
299 sb.append(contactId).append(",");
365 long contactId = cursor.getLong(0);
366 if (contactId != currentContactId) {
371 currentContactId = contactId;
391 private void insertIndexRow(SQLiteDatabase db, long contactId, IndexBuilder builder) {
396 mValues.put(SearchIndexColumns.CONTACT_ID, contactId);
TransactionContext.java 95 public void invalidateSearchIndexForContact(long contactId) {
97 mStaleSearchIndexContacts.add(contactId);
DataRowHandlerForGroupMembership.java 137 long contactId = mDbHelper.getContactId(rawContactId);
138 if (contactId == 0) {
142 if (mDbHelper.updateContactVisibleOnlyIfChanged(txContext, contactId)) {
143 mContactAggregator.updateAggregationAfterVisibilityChange(contactId);
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionView.java 50 public void onJoinAction(long contactId, List<Long> rawContacIds);
81 mContactId = suggestion.contactId;
  /packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
ContactsListFragment.java 144 final long contactId = cursor.getLong(ContactsListLoader.COLUMN_ID);
146 return Contacts.getLookupUri(contactId, lookupKey);
  /frameworks/base/core/java/android/widget/
QuickContactBadge.java 325 long contactId = cursor.getLong(PHONE_ID_COLUMN_INDEX);
327 lookupUri = Contacts.getLookupUri(contactId, lookupKey);
340 long contactId = cursor.getLong(EMAIL_ID_COLUMN_INDEX);
342 lookupUri = Contacts.getLookupUri(contactId, lookupKey);
  /packages/apps/Contacts/tests/src/com/android/contacts/activities/
PeopleActivityTest.java 227 private void expectContactEntityQuery(String lookupKey, int contactId) {
229 Contacts.getLookupUri(contactId, lookupKey), Contacts.Entity.CONTENT_DIRECTORY);
233 row1.put(Contacts.Entity.CONTACT_ID, contactId);
234 row1.put(Contacts.Entity.DISPLAY_NAME, "Contact " + contactId);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
ProfileAggregator.java 48 protected String computeLookupKeyForContact(SQLiteDatabase db, long contactId) {
  /packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
ContactPhotoManager.java 88 final ContactIdentifier contactId = (ContactIdentifier) id;
89 return generateHash(view, contactId.pos, contactId.getKey());
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/
ContactAggregatorTest.java 125 long contactId = queryContactId(rawContactId);
126 assertTrue(contactId != 0);
128 String displayName = queryDisplayName(contactId);
    [all...]
  /frameworks/ex/chips/src/com/android/ex/chips/
BaseRecipientAdapter.java 151 public final long contactId;
162 long contactId,
171 this.contactId = contactId;
183 this.contactId = cursor.getLong(Queries.Query.CONTACT_ID);
470 * First, each destination (an email address or a phone number) with a valid contactId is
471 * inserted into {@link #mEntryMap} and grouped by the contactId. Destinations without valid
472 * contactId (possible if they aren't in local storage) are stored in
691 entry.contactId, entry.dataId, entry.thumbnailUriString, true,
693 } else if (entryMap.containsKey(entry.contactId)) {
    [all...]
RecipientAlternatesAdapter.java 330 public RecipientAlternatesAdapter(Context context, long contactId, long currentId,
332 this(context, contactId, currentId, QUERY_TYPE_EMAIL, listener);
335 public RecipientAlternatesAdapter(Context context, long contactId, long currentId,
337 super(context, getCursorForConstruction(context, contactId, queryMode), 0);
352 private static Cursor getCursorForConstruction(Context context, long contactId, int queryType) {
359 String.valueOf(contactId)
366 String.valueOf(contactId)

Completed in 1012 milliseconds

12 3 4