/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | DataUtil.java | 35 public static String[] queryById(ContentResolver resolver, long dataId, String[] projection, in queryById() argument 37 Uri uri = ContentUris.withAppendedId(URI, dataId); in queryById() 42 public static String[] queryById(ContentResolver resolver, long dataId, String[] projection) { in queryById() argument 43 return queryById(resolver, dataId, projection, null, null); in queryById() 83 public static void delete(ContentResolver resolver, long dataId) { in delete() argument 84 Uri uri = ContentUris.withAppendedId(URI, dataId); in delete() 88 public static void update(ContentResolver resolver, long dataId, ContentValues values) { in update() argument 89 Uri uri = ContentUris.withAppendedId(URI, dataId); in update()
|
D | ContactsContract_PhoneLookup.java | 65 public long dataId; field in ContactsContract_PhoneLookup.Id 67 public Id (long contactId, long dataId) { in Id() argument 69 this.dataId = dataId; in Id() 81 long dataId = rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) in setupTestData() local 118 new Id(contact.getId(), dataId), in setupTestData() 147 expected.put(PhoneLookup.DATA_ID, ids[0].dataId); in testPhoneLookup_found1() 164 expected.put(PhoneLookup.DATA_ID, ids[1].dataId); in testPhoneLookup_found2() 179 expected.put(PhoneLookup.DATA_ID, ids[2].dataId); in testPhoneLookup_sip_found() 207 expected.put(PhoneLookup.DATA_ID, ids[0].dataId); in testPhoneLookupEnterprise_found1() 224 expected.put(PhoneLookup.DATA_ID, ids[1].dataId); in testPhoneLookupEnterprise_found2() [all …]
|
D | ContactsContract_StatusUpdatesTest.java | 40 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()
|
D | ContactsContract_DataUsageTest.java | 111 private void updateDataUsageAndAssert(long dataId, int assertValue) { in updateDataUsageAndAssert() argument 112 Uri uri = DataUsageFeedback.FEEDBACK_URI.buildUpon().appendPath(String.valueOf(dataId)) in updateDataUsageAndAssert() 118 assertDataUsageEquals(dataId, assertValue); in updateDataUsageAndAssert() 134 private void assertDataUsageEquals(long dataId, int expectedValue) { in assertDataUsageEquals() argument 137 String[] record = DataUtil.queryById(mResolver, dataId, projection); in assertDataUsageEquals() 147 assertEquals("Query should match", 1, DataUtil.queryById(mResolver, dataId, projection, in assertDataUsageEquals()
|
D | ContactsContract_FrequentsStrequentsTest.java | 405 private void markDataAsUsed(long dataId, int numTimes) { in markDataAsUsed() argument 407 appendPath(String.valueOf(dataId)). in markDataAsUsed()
|
D | ContactsContract_DataTest.java | 587 long dataId = createData(ids.mRawContactId); in testDataDelete_updatesContactLastUpdatedTimestamp() local 592 DataUtil.delete(mResolver, dataId); in testDataDelete_updatesContactLastUpdatedTimestamp() 667 long dataId = createData(ids.mRawContactId); in testDataUpdate_updatesContactLastUpdatedTimestamp() local 673 DataUtil.update(mResolver, dataId, values); in testDataUpdate_updatesContactLastUpdatedTimestamp()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | EabBulkCapabilityUpdaterTest.java | 229 String dataId = String.valueOf(ContentUris.parseId(insertResult[2].uri)); in insertNewContactTest() local 245 assertEquals(dataId, eabDataId); in insertNewContactTest()
|