Home
last modified time | relevance | path

Searched refs:dataId (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_PhoneLookup.java66 public long dataId; field in ContactsContract_PhoneLookup.Id
68 public Id (long contactId, long dataId) { in Id() argument
70 this.dataId = dataId; in Id()
82 long dataId = rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) in setupTestData() local
119 new Id(contact.getId(), dataId), in setupTestData()
148 expected.put(PhoneLookup.DATA_ID, ids[0].dataId); in testPhoneLookup_found1()
165 expected.put(PhoneLookup.DATA_ID, ids[1].dataId); in testPhoneLookup_found2()
180 expected.put(PhoneLookup.DATA_ID, ids[2].dataId); in testPhoneLookup_sip_found()
208 expected.put(PhoneLookup.DATA_ID, ids[0].dataId); in testPhoneLookupEnterprise_found1()
225 expected.put(PhoneLookup.DATA_ID, ids[1].dataId); in testPhoneLookupEnterprise_found2()
[all …]
DContactsContract_StatusUpdatesTest.java40 private long dataId; field in ContactsContract_StatusUpdatesTest
65 dataId = ContentUris.parseId(results[1].uri); in setUp()
69 Uri uri = insertStatusUpdate(dataId, StatusUpdates.DO_NOT_DISTURB, null, null); in testInsertStatus()
75 Uri uri2 = insertStatusUpdate(dataId, StatusUpdates.AVAILABLE, null, null); in testInsertStatus()
83 Uri uri3 = insertStatusUpdate(dataId, StatusUpdates.AWAY, "Grabbing a byte", null); in testInsertStatus()
92 Uri uri4 = insertStatusUpdate(dataId, StatusUpdates.IDLE, "Taking a bit of a break", null); in testInsertStatus()
101 private Uri insertStatusUpdate(long dataId, int presence, String status, Long timestamp) in insertStatusUpdate() argument
105 .withValue(StatusUpdates.DATA_ID, dataId) in insertStatusUpdate()
DContactsContract_DataUsageTest.java113 private void updateDataUsageAndAssert(long dataId, int assertValue) { in updateDataUsageAndAssert() argument
114 Uri uri = DataUsageFeedback.FEEDBACK_URI.buildUpon().appendPath(String.valueOf(dataId)) in updateDataUsageAndAssert()
120 assertDataUsageEquals(dataId, assertValue); in updateDataUsageAndAssert()
139 private void assertDataUsageEquals(long dataId, int expectedValue) { in assertDataUsageEquals() argument
142 String[] record = DataUtil.queryById(mResolver, dataId, projection); in assertDataUsageEquals()
DContactsContract_FrequentsStrequentsTest.java417 private void markDataAsUsed(long dataId, int numTimes) { in markDataAsUsed() argument
419 appendPath(String.valueOf(dataId)). in markDataAsUsed()
DContactsContract_DataTest.java553 long dataId = createData(ids.mRawContactId); in testDataDelete_updatesContactLastUpdatedTimestamp() local
558 DataUtil.delete(mResolver, dataId); in testDataDelete_updatesContactLastUpdatedTimestamp()
633 long dataId = createData(ids.mRawContactId); in testDataUpdate_updatesContactLastUpdatedTimestamp() local
639 DataUtil.update(mResolver, dataId, values); in testDataUpdate_updatesContactLastUpdatedTimestamp()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDataUtil.java35 public static String[] queryById(ContentResolver resolver, long dataId, String[] projection) { in queryById() argument
36 Uri uri = ContentUris.withAppendedId(URI, dataId); in queryById()
78 public static void delete(ContentResolver resolver, long dataId) { in delete() argument
79 Uri uri = ContentUris.withAppendedId(URI, dataId); in delete()
83 public static void update(ContentResolver resolver, long dataId, ContentValues values) { in update() argument
84 Uri uri = ContentUris.withAppendedId(URI, dataId); in update()