/packages/apps/Contacts/src/com/android/contacts/util/ |
ContactLoaderUtils.java | 58 final long rawContactId = ContentUris.parseId(uri); 60 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId)); 71 final long rawContactId = ContentUris.parseId(uri); 73 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForIdentity.java | 36 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 38 final long dataId = super.insert(db, txContext, rawContactId, values); 42 triggerAggregation(txContext, rawContactId); 55 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 57 triggerAggregation(txContext, rawContactId); 68 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 69 triggerAggregation(txContext, rawContactId);
|
DataRowHandlerForNickname.java | 40 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 44 long dataId = super.insert(db, txContext, rawContactId, values); 47 fixRawContactDisplayName(db, txContext, rawContactId); 48 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); 49 triggerAggregation(txContext, rawContactId); 58 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 67 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); 68 fixRawContactDisplayName(db, txContext, rawContactId); 69 triggerAggregation(txContext, rawContactId); 78 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID) [all...] |
DataRowHandlerForOrganization.java | 42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 47 long dataId = super.insert(db, txContext, rawContactId, values); 49 fixRawContactDisplayName(db, txContext, rawContactId); 64 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 90 fixRawContactDisplayName(db, txContext, rawContactId); 98 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID); 101 fixRawContactDisplayName(db, txContext, rawContactId);
|
DataRowHandlerForEmail.java | 38 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 42 long dataId = super.insert(db, txContext, rawContactId, values); 44 fixRawContactDisplayName(db, txContext, rawContactId); 45 String address = mDbHelper.insertNameLookupForEmail(rawContactId, dataId, email); 47 triggerAggregation(txContext, rawContactId); 61 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 65 mDbHelper.insertNameLookupForEmail(rawContactId, dataId, address); 66 fixRawContactDisplayName(db, txContext, rawContactId); 67 triggerAggregation(txContext, rawContactId); 76 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID) [all...] |
DataRowHandlerForGroupMembership.java | 76 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 78 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, true); 79 long dataId = super.insert(db, txContext, rawContactId, values); 80 if (hasFavoritesGroupMembership(db, rawContactId)) { 81 updateRawContactsStar(db, rawContactId, true /* starred */); 83 updateVisibility(txContext, rawContactId); 90 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 91 boolean wasStarred = hasFavoritesGroupMembership(db, rawContactId); 92 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, false); 96 boolean isStarred = hasFavoritesGroupMembership(db, rawContactId); [all...] |
DataRowHandlerForPhoneNumber.java | 42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 46 final long dataId = super.insert(db, txContext, rawContactId, values); 50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber); 51 mContactAggregator.updateHasPhoneNumber(db, rawContactId); 52 fixRawContactDisplayName(db, txContext, rawContactId); 54 triggerAggregation(txContext, rawContactId); 70 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 71 updatePhoneLookup(db, rawContactId, dataId, 74 mContactAggregator.updateHasPhoneNumber(db, rawContactId); 75 fixRawContactDisplayName(db, txContext, rawContactId); [all...] |
DataRowHandlerForPhoto.java | 58 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 70 long dataId = super.insert(db, txContext, rawContactId, values); 71 if (!txContext.isNewRawContact(rawContactId)) { 72 mContactAggregator.updatePhotoId(db, rawContactId); 80 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 96 mContactAggregator.updatePhotoId(db, rawContactId); 132 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID); 134 mContactAggregator.updatePhotoId(db, rawContactId);
|
ContactLookupKey.java | 40 public String rawContactId; 68 String accountName, long rawContactId, String sourceId, 80 lookupKey.append('r').append(rawContactId).append('-').append( 128 String rawContactId = null; 230 rawContactId = string.substring(start, dash); 248 segment.rawContactId = rawContactId;
|
DataRowHandlerForStructuredName.java | 46 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 50 long dataId = super.insert(db, txContext, rawContactId, values); 54 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, 58 insertNameLookupForPhoneticName(rawContactId, dataId, values); 59 fixRawContactDisplayName(db, txContext, rawContactId); 60 triggerAggregation(txContext, rawContactId); 68 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 86 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, 90 insertNameLookupForPhoneticName(rawContactId, dataId, augmented); 92 fixRawContactDisplayName(db, txContext, rawContactId); [all...] |
DataRowHandler.java | 109 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 117 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId); 123 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); 125 mDbHelper.clearSuperPrimary(rawContactId, mimeTypeId); 130 if (mDbHelper.rawContactHasSuperPrimary(rawContactId, mimeTypeId)) { 131 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); 137 txContext.invalidateSearchIndexForRawContact(rawContactId); 152 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 154 handlePrimaryAndSuperPrimary(values, dataId, rawContactId); 162 txContext.invalidateSearchIndexForRawContact(rawContactId); [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
CallerInfoIntegrationTest.java | 45 long rawContactId = ContentUris.parseId(rawContactUri); 47 insertStructuredName(rawContactId, "Hot", "Tamale"); 48 insertPhoneNumber(rawContactId, "800-466-4411");
|
SqlInjectionDetectionTest.java | 46 long rawContactId = createRawContactWithName("Hot", "Tamale"); 47 insertPhoneNumber(rawContactId, "555-123-4567"); 54 long rawContactId = createRawContactWithName("Hot", "Tamale"); 55 insertPhoneNumber(rawContactId, "555-123-4567"); 62 long rawContactId = createRawContactWithName("Hot", "Tamale"); 63 insertPhoneNumber(rawContactId, "555-123-4567"); 70 long rawContactId = createRawContactWithName("Hot", "Tamale"); 71 insertPhoneNumber(rawContactId, "555-123-4567"); 79 long rawContactId = createRawContactWithName("Hot", "Tamale"); 80 insertPhoneNumber(rawContactId, "555-123-4567") [all...] |
GlobalSearchSupportTest.java | 51 long rawContactId = createRawContact(account); 52 insertStructuredName(rawContactId, "Deer", "Dough"); 55 mResolver.delete(Data.CONTENT_URI, Data.RAW_CONTACT_ID + "=" + rawContactId
|
SearchIndexManagerTest.java | 49 long rawContactId = createRawContact(); 50 long contactId = queryContactId(rawContactId); 51 insertStructuredName(rawContactId, "John", "Doe"); 54 insertStructuredName(rawContactId, values); 63 insertStructuredName(rawContactId, values); 75 long rawContactId = createRawContact(); 76 long contactId = queryContactId(rawContactId); 79 insertStructuredName(rawContactId, values); 91 long rawContactId = createRawContact(); 94 insertStructuredName(rawContactId, values) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_StreamItemPhotosTest.java | 40 long rawContactId = ContactsContract_StreamItemsTest.insertRawContact(mResolver); 42 rawContactId);
|
ContactsContract_StreamItemsTest.java | 56 long rawContactId = insertRawContact(mResolver); 57 Uri streamItemUri = insertViaContentDirectoryUri(mResolver, rawContactId); 63 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId).buildUpon() 73 values.put(Data.RAW_CONTACT_ID, rawContactId); 91 long rawContactId = ContentUris.parseId(contactUri); 92 assertTrue(rawContactId != -1); 93 return rawContactId; 96 static Uri insertViaContentDirectoryUri(ContentResolver resolver, long rawContactId) { 106 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId), 130 long rawContactId = ContentUris.parseId(results[0].uri) [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
RawContact.java | 181 long rawContactId, long syncState, boolean dirty) { 194 mRawContactId = rawContactId; 216 final int rawContactId = !contact.isNull("c") ? contact.getInt("c") : -1; 229 serverContactId, rawContactId, syncState, false); 241 String email, String status, boolean deleted, long rawContactId, 244 homePhone, email, status, null, deleted, serverContactId, rawContactId, 255 public static RawContact createDeletedContact(long rawContactId, long serverContactId) 258 null, null, null, true, serverContactId, rawContactId, -1, true);
|
/packages/apps/Contacts/src/com/android/contacts/ |
SplitAggregateView.java | 84 void onContactSelected(long rawContactId); 103 mListener.onContactSelected(list.get(position).rawContactId); 119 final long rawContactId; 127 public RawContactInfo(long rawContactId) { 128 this.rawContactId = rawContactId; 165 long rawContactId = cursor.getLong(SplitQuery.RAW_CONTACT_ID); 166 RawContactInfo info = rawContactInfos.get(rawContactId); 168 info = new RawContactInfo(rawContactId); 169 rawContactInfos.put(rawContactId, info) [all...] |
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
NotificationImportExportListener.java | 121 final long rawContactId = ContentUris.parseId(createdUri); 124 RawContacts.CONTENT_URI, rawContactId));
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
ContactLoaderTest.java | 100 final long rawContactId = 11; 112 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 117 assertEquals(rawContactId, contact.getNameRawContactId()); 129 final long rawContactId = 11; 134 Uri.parse("content://contacts"), rawContactId); 135 final Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 144 queries.fetchAllData(entityUri, contactId, rawContactId, dataId, lookupKey); 149 assertEquals(rawContactId, contact.getNameRawContactId()); 161 final long rawContactId = 11; 165 final Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/ |
StreamItemPopulatorActivity.java | 165 long rawContactId = -1; 181 rawContactId = c.getLong(0); 187 if (rawContactId != -1) { 188 addStreamItemsToRawContact(rawContactId, accountType, accountName); 212 private void addStreamItemsToRawContact(long rawContactId, String accountType, 224 rawContactId),
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
EntitySet.java | 93 final Long rawContactId = remoteEntity.getValues().getId(); 96 final EntityDelta localEntity = local.getByRawContactId(rawContactId); 117 final long rawContactId = this.findRawContactId(); 142 if (rawContactId != -1) { 145 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId); 233 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); 234 if (rawContactId != null && rawContactId >= 0) { 235 return rawContactId; 255 public EntityDelta getByRawContactId(Long rawContactId) { [all...] |
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
ContactDeletionInteraction.java | 237 final long rawContactId = cursor.getLong(COLUMN_INDEX_RAW_CONTACT_ID); 245 writableRawContacts.add(rawContactId); 247 readOnlyRawContacts.add(rawContactId);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
ContactsUtils.java | 273 public static long queryForContactId(ContentResolver cr, long rawContactId) { 279 RawContacts._ID + "=" + rawContactId, null, null); 317 long rawContactId = -1; 324 rawContactId = rawContactIdCursor.getLong(0); 331 return rawContactId;
|