Home
last modified time | relevance | path

Searched refs:hashId (Results 1 – 5 of 5) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandler.java202 String hashId; in handleHashIdForInsert() local
204 hashId = photoHashId; in handleHashIdForInsert()
206 hashId = mDbHelper.generateHashId(data1, data2); in handleHashIdForInsert()
208 hashId = null; in handleHashIdForInsert()
210 if (TextUtils.isEmpty(hashId)) { in handleHashIdForInsert()
213 values.put(Data.HASH_ID, hashId); in handleHashIdForInsert()
240 String hashId = mDbHelper.generateHashId(data1, data2); in handleHashIdForUpdate() local
241 if (TextUtils.isEmpty(hashId)) { in handleHashIdForUpdate()
244 values.put(Data.HASH_ID, hashId); in handleHashIdForUpdate()
DContactsDatabaseHelper.java4543 final String hashId = legacyGenerateHashId(data1, data2, data15); in upgradeToVersion1101() local
4544 if (!TextUtils.isEmpty(hashId)) { in upgradeToVersion1101()
4545 update.bindString(1, hashId); in upgradeToVersion1101()
4660 final String hashId = generateHashIdForData(hashInput); in legacyGenerateHashId() local
4661 return hashId; in legacyGenerateHashId()
4676 final String hashId = generateHashIdForData(hashInput); in generateHashId() local
4677 return hashId; in generateHashId()
DContactsProvider2.java4969 private ArrayList<Long> queryDataId(SQLiteDatabase db, long rawContactId, String hashId) { in queryDataId() argument
4970 if (rawContactId == 0 || TextUtils.isEmpty(hashId)) { in queryDataId()
4974 mSelectionArgs2[1] = hashId; in queryDataId()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java274 final String hashId = mDbHelper.generateHashId(dataString, null); in testUpgradeHashId() local
290 assertEquals(expectedHashId, hashId); in testUpgradeHashId()
DContactsProvider2Test.java1168 String hashId = helper.generateHashIdForData(combineString.getBytes()); in testDataInsertAndUpdateHashId() local
1169 assertStoredValue(dataUri, Data.HASH_ID, hashId); in testDataInsertAndUpdateHashId()
1178 assertStoredValue(dataUri, Data.HASH_ID, hashId); in testDataInsertAndUpdateHashId()
1226 String hashId = helper.getPhotoHashId(); in testDataInsertAndUpdateHashId_Photo() local
1227 assertStoredValue(dataUri, Data.HASH_ID, hashId); in testDataInsertAndUpdateHashId_Photo()
1233 assertStoredValue(dataUri, Data.HASH_ID, hashId); in testDataInsertAndUpdateHashId_Photo()
2923 String hashId = getStoredValue(dataUri, Data.HASH_ID); in testUpdateFromMetadataEntry() local
2964 FieldData fieldData = new FieldData(hashId, true, true, usageStatsList); in testUpdateFromMetadataEntry()