HomeSort by relevance Sort by last modified time
    Searched full:rawcontactid (Results 1 - 25 of 70) sorted by null

1 2 3

  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
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...]
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...]
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...]
TransactionContext.java 55 public void rawContactInserted(long rawContactId, long accountId) {
57 mInsertedRawContactsAccounts.put(rawContactId, accountId);
59 markRawContactChangedOrDeletedOrInserted(rawContactId);
62 public void rawContactUpdated(long rawContactId) {
64 mUpdatedRawContacts.add(rawContactId);
67 public void markRawContactDirtyAndChanged(long rawContactId, boolean isSyncAdapter) {
72 mDirtyRawContacts.add(rawContactId);
75 markRawContactChangedOrDeletedOrInserted(rawContactId);
78 public void markRawContactChangedOrDeletedOrInserted(long rawContactId) {
82 mChangedRawContacts.add(rawContactId);
    [all...]
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);
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...]
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...]
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);
NameLookupBuilder.java 82 protected abstract void insertNameLookup(long rawContactId, long dataId, int lookupType,
99 public void insertNameLookup(long rawContactId, long dataId, String name, int fullNameStyle) {
111 insertNameVariant(rawContactId, dataId, tokenCount, NameLookupType.NAME_EXACT, true);
126 insertCollationKey(rawContactId, dataId, MAX_NAME_TOKENS);
138 insertNameVariants(rawContactId, dataId, 0, tokenCount, !tooManyTokens, true);
139 insertNicknamePermutations(rawContactId, dataId, 0, tokenCount);
239 private void insertNameVariants(long rawContactId, long dataId, int fromIndex, int toIndex,
242 insertNameVariant(rawContactId, dataId, toIndex,
255 insertNameVariants(rawContactId, dataId, fromIndex + 1, toIndex,
266 private void insertNameVariant(long rawContactId, long dataId, int tokenCount
    [all...]
DataRowHandlerForStructuredName.java 47 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
51 long dataId = super.insert(db, txContext, rawContactId, values);
55 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name,
59 fixRawContactDisplayName(db, txContext, rawContactId);
60 triggerAggregation(txContext, rawContactId);
68 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
83 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name,
88 fixRawContactDisplayName(db, txContext, rawContactId);
89 triggerAggregation(txContext, rawContactId);
96 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID)
    [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);
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
RawContactUtil.java 36 public static void update(ContentResolver resolver, long rawContactId,
38 Uri uri = ContentUris.withAppendedId(URI, rawContactId);
44 Long rawContactId = insertRawContact(resolver, account);
45 DataUtil.insertName(resolver, rawContactId, name);
46 return rawContactId;
51 Long rawContactId = insertRawContact(resolver, account);
52 DataUtil.insertAutoGeneratedName(resolver, rawContactId);
53 return rawContactId;
65 long rawContactId, String[] projection) {
66 Uri uri = ContentUris.withAppendedId(URI, rawContactId);
    [all...]
DataUtil.java 41 public static void insertName(ContentResolver resolver, long rawContactId, String name) {
46 insertData(resolver, rawContactId, values);
49 public static long insertPhoneNumber(ContentResolver resolver, long rawContactId,
54 return DataUtil.insertData(resolver, rawContactId, values);
57 public static long insertEmail(ContentResolver resolver, long rawContactId, String email) {
61 return DataUtil.insertData(resolver, rawContactId, values);
64 public static void insertAutoGeneratedName(ContentResolver resolver, long rawContactId) {
65 insertName(resolver, rawContactId, "test raw contact " + rawContactId);
68 public static long insertData(ContentResolver resolver, long rawContactId,
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
RawContactUtil.java 37 public static void update(ContentResolver resolver, long rawContactId,
39 Uri uri = ContentUris.withAppendedId(URI, rawContactId);
44 long rawContactId, String[] projection) {
46 rawContactId);
63 public static void delete(ContentResolver resolver, long rawContactId,
65 Uri uri = ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId)
72 public static long queryContactIdByRawContactId(ContentResolver resolver, long rawContactid) {
76 String[] result = RawContactUtil.queryByRawContactId(resolver, rawContactid,
84 public static boolean rawContactExistsById(ContentResolver resolver, long rawContactid) {
85 long contactId = queryContactIdByRawContactId(resolver, rawContactid);
    [all...]
DataUtil.java 44 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId,
46 values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId);
53 public static Uri insertStructuredName(ContentResolver resolver, long rawContactId,
55 return insertStructuredName(resolver, rawContactId, givenName, familyName,
60 ContentResolver resolver, long rawContactId, String givenName, String familyName,
83 return insertStructuredName(resolver, rawContactId, values);
DatabaseAsserts.java 58 long rawContactId = RawContactUtil.createRawContactWithName(resolver);
60 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId);
63 return new ContactIdPair(contactId, rawContactId);
90 public ContactIdPair(long contactId, long rawContactId) {
92 this.mRawContactId = rawContactId;
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
SearchIndexManagerTest.java 52 long rawContactId = RawContactUtil.createRawContact(mResolver);
53 long contactId = queryContactId(rawContactId);
54 DataUtil.insertStructuredName(mResolver, rawContactId, "John", "Doe");
57 DataUtil.insertStructuredName(mResolver, rawContactId, values);
66 DataUtil.insertStructuredName(mResolver, rawContactId, values);
73 long rawContactId = RawContactUtil.createRawContact(mResolver);
74 long contactId = queryContactId(rawContactId);
75 DataUtil.insertStructuredName(mResolver, rawContactId, "John", "Doe");
78 DataUtil.insertStructuredName(mResolver, rawContactId, values);
87 DataUtil.insertStructuredName(mResolver, rawContactId, values)
    [all...]
SqlInjectionDetectionTest.java 46 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
47 insertPhoneNumber(rawContactId, "555-123-4567");
54 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
55 insertPhoneNumber(rawContactId, "555-123-4567");
62 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
63 insertPhoneNumber(rawContactId, "555-123-4567");
70 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
71 insertPhoneNumber(rawContactId, "555-123-4567");
79 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, "Hot", "Tamale");
80 insertPhoneNumber(rawContactId, "555-123-4567")
    [all...]
BaseContactsProvider2Test.java 234 protected Uri insertOrganization(long rawContactId, ContentValues values) {
235 return insertOrganization(rawContactId, values, false);
238 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary) {
239 values.put(Data.RAW_CONTACT_ID, rawContactId);
250 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber) {
251 return insertPhoneNumber(rawContactId, phoneNumber, false);
254 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary) {
255 return insertPhoneNumber(rawContactId, phoneNumber, primary, Phone.TYPE_HOME);
258 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary,
261 values.put(Data.RAW_CONTACT_ID, rawContactId);
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
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...]
ContactsContract_RawContactsTest.java 95 long rawContactid = RawContactUtil.insertRawContact(mResolver,
98 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid));
100 RawContactUtil.delete(mResolver, rawContactid, false);
106 String[] result = RawContactUtil.queryByRawContactId(mResolver, rawContactid,
116 long rawContactid = RawContactUtil.insertRawContact(mResolver,
118 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid));
120 RawContactUtil.delete(mResolver, rawContactid, true);
122 assertFalse(RawContactUtil.rawContactExistsById(mResolver, rawContactid));
184 long rawContactId) {
185 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId);
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
ProfileAggregator.java 54 String accountName, long rawContactId, String sourceId, String displayName) {
63 long rawContactId) {
64 aggregateContact(txContext, db, rawContactId);
75 long rawContactId) {
89 mContactId = insertContact(db, rawContactId);
93 setContactId(rawContactId, mContactId);
ContactAggregator.java 244 long rawContactId;
255 rawContactId = -1;
436 for (long rawContactId : mRawContactsMarkedForAggregation.keySet()) {
440 sbQuery.append(rawContactId);
488 public void triggerAggregation(TransactionContext txContext, long rawContactId) {
493 int aggregationMode = mDbHelper.getAggregationMode(rawContactId);
499 markForAggregation(rawContactId, aggregationMode, false);
504 long contactId = mDbHelper.getContactId(rawContactId);
513 aggregateContact(txContext, mDbHelper.getWritableDatabase(), rawContactId);
525 public void markNewForAggregation(long rawContactId, int aggregationMode)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/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));
  /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);

Completed in 2048 milliseconds

1 2 3