/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_PhoneLookup.java | 130 Id[] ids = setupTestData(); in testPhoneLookup_nomatch() local 134 assertCursorStoredValuesWithContactsFilter(uri, ids /*, empty */); in testPhoneLookup_nomatch() 141 Id[] ids = setupTestData(); in testPhoneLookup_found1() local 146 expected.put(PhoneLookup._ID, ids[0].contactId); in testPhoneLookup_found1() 147 expected.put(PhoneLookup.CONTACT_ID, ids[0].contactId); in testPhoneLookup_found1() 148 expected.put(PhoneLookup.DATA_ID, ids[0].dataId); in testPhoneLookup_found1() 151 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testPhoneLookup_found1() 158 Id[] ids = setupTestData(); in testPhoneLookup_found2() local 163 expected.put(PhoneLookup._ID, ids[1].contactId); in testPhoneLookup_found2() 164 expected.put(PhoneLookup.CONTACT_ID, ids[1].contactId); in testPhoneLookup_found2() [all …]
|
D | ContactsContract_FrequentsStrequentsTest.java | 167 long[] ids = setupTestData(); in testStrequents_noStarredOrFrequents() local 168 assertCursorStoredValuesWithContactsFilter(Contacts.CONTENT_STREQUENT_URI, ids, false); in testStrequents_noStarredOrFrequents() 177 long[] ids = setupTestData(); in testStrequents_starredOnlyInCorrectOrder() local 180 starContact(ids[0]); in testStrequents_starredOnlyInCorrectOrder() 181 starContact(ids[1]); in testStrequents_starredOnlyInCorrectOrder() 184 assertCursorStoredValuesWithContactsFilter(Contacts.CONTENT_STREQUENT_URI, ids, in testStrequents_starredOnlyInCorrectOrder() 194 long[] ids = setupTestData(); in testStrequents_frequentsOnlyInCorrectOrder() local 207 assertCursorStoredValuesWithContactsFilter(Contacts.CONTENT_STREQUENT_URI, ids, in testStrequents_frequentsOnlyInCorrectOrder() 217 long[] ids = setupTestData(); in testStrequents_starredAndFrequentsInCorrectOrder() local 227 starContact(ids[2]); in testStrequents_starredAndFrequentsInCorrectOrder() [all …]
|
D | ContactsContract_SearchSnippetsTest.java | 81 long[] ids = setupTestData(); in testSearchSnippets_NoMatch() local 85 assertCursorStoredValuesWithContactsFilter(uri, ids); in testSearchSnippets_NoMatch() 89 long[] ids = setupTestData(); in testSearchSnippets_MatchEmailAddressCorrectSnippet() local 94 expected.put(Contacts._ID, ids[1]); in testSearchSnippets_MatchEmailAddressCorrectSnippet() 96 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testSearchSnippets_MatchEmailAddressCorrectSnippet() 100 long[] ids = setupTestData(); in testSearchSnippets_MatchPhoneNumberCorrectSnippet() local 105 expected.put(Contacts._ID, ids[0]); in testSearchSnippets_MatchPhoneNumberCorrectSnippet() 107 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testSearchSnippets_MatchPhoneNumberCorrectSnippet() 111 long[] ids = setupTestData(); in testSearchSnippets_MatchPostalAddressCorrectSnippet() local 116 expected.put(Contacts._ID, ids[2]); in testSearchSnippets_MatchPostalAddressCorrectSnippet() [all …]
|
D | ContactsContract_RawContactsTest.java | 166 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactCreate_updatesContactUpdatedTimestamp() local 168 ids.mRawContactId); in testRawContactCreate_updatesContactUpdatedTimestamp() 173 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactCreate_updatesContactUpdatedTimestamp() 177 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactUpdate_updatesContactUpdatedTimestamp() local 179 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp() 183 RawContactUtil.update(mResolver, ids.mRawContactId, values); in testRawContactUpdate_updatesContactUpdatedTimestamp() 185 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp() 189 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactUpdate_updatesContactUpdatedTimestamp() 193 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactPsuedoDelete_hasDeleteLogForContact() local 195 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactPsuedoDelete_hasDeleteLogForContact() [all …]
|
D | ContactsContract_ContactsTest.java | 128 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); 129 DatabaseAsserts.assertHasDeleteLogGreaterThan(mResolver, ids.mContactId, start); 132 RawContactUtil.delete(mResolver, ids.mRawContactId, true); 136 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); 142 List<String[]> records = RawContactUtil.queryByContactId(mResolver, ids.mContactId, 150 RawContactUtil.delete(mResolver, ids.mRawContactId, true); 154 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); 156 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); 162 ContactUtil.update(mResolver, ids.mContactId, values); 164 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); [all …]
|
D | ContactsContract_DataTest.java | 466 long[] ids = setupContactablesTestData(); in testContactablesFilterByLastName_returnsCorrectDataRows() local 468 assertCursorStoredValuesWithRawContactsFilter(filterUri, ids, in testContactablesFilterByLastName_returnsCorrectDataRows() 473 long[] ids = setupContactablesTestData(); in testContactablesFilterByFirstName_returnsCorrectDataRows() local 475 assertCursorStoredValuesWithRawContactsFilter(filterUri, ids, in testContactablesFilterByFirstName_returnsCorrectDataRows() 478 assertCursorStoredValuesWithRawContactsFilter(filterUri2, ids, in testContactablesFilterByFirstName_returnsCorrectDataRows() 483 long[] ids = setupContactablesTestData(); in testContactablesFilterByPhonePrefix_returnsCorrectDataRows() local 485 assertCursorStoredValuesWithRawContactsFilter(filterUri, ids, in testContactablesFilterByPhonePrefix_returnsCorrectDataRows() 488 assertCursorStoredValuesWithRawContactsFilter(filterUri2, ids, in testContactablesFilterByPhonePrefix_returnsCorrectDataRows() 493 long[] ids = setupContactablesTestData(); in testContactablesFilterByEmailPrefix_returnsCorrectDataRows() local 495 assertCursorStoredValuesWithRawContactsFilter(filterUri, ids, in testContactablesFilterByEmailPrefix_returnsCorrectDataRows() [all …]
|
D | ContactsContract_DataUsageTest.java | 42 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testSingleDataUsageFeedback_incrementsCorrectDataItems() local 44 long[] dataIds = setupRawContactDataItems(ids.mRawContactId); in testSingleDataUsageFeedback_incrementsCorrectDataItems() 58 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testSingleDataUsageFeedback_incrementsCorrectDataItems() 62 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems() local 64 long[] dataIds = setupRawContactDataItems(ids.mRawContactId); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems() 81 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems() 98 String[] ids = new String[dataIds.length]; in updateMultipleAndAssertUpdateSuccess() local 100 ids[i] = String.valueOf(dataIds[i]); in updateMultipleAndAssertUpdateSuccess() 102 Uri uri = DataUsageFeedback.FEEDBACK_URI.buildUpon().appendPath(TextUtils.join(",", ids)) in updateMultipleAndAssertUpdateSuccess()
|
D | ContactsContract_DeletedContacts.java | 61 ContactIdPair ids = createAndDeleteContact(); in testQuery_returnsProperColumns() local 70 if (Long.parseLong(record[0]) == ids.mContactId) { in testQuery_returnsProperColumns() 79 ContactIdPair ids = createAndDeleteContact(); in testQueryByContactId() local 82 DeletedContactUtil.queryDeletedTimestampForContactId(mResolver, ids.mContactId)); in testQueryByContactId() 134 ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in createAndDeleteContact() local 136 DeletedContactUtil.queryDeletedTimestampForContactId(mResolver, ids.mContactId)); in createAndDeleteContact() 138 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in createAndDeleteContact() 139 return ids; in createAndDeleteContact()
|
D | ContactsProvider2_AccountRemovalTest.java | 193 for (ContactIdPair ids : remaining) { in assertContactsInDeleteLogEventually() 195 ids.mContactId); in assertContactsInDeleteLogEventually() 197 toBeRemoved.add(ids); in assertContactsInDeleteLogEventually() 223 for (ContactIdPair ids : remaining) { in assertContactsDeletedEventually() 224 if (!RawContactUtil.rawContactExistsById(mResolver, ids.mRawContactId)) { in assertContactsDeletedEventually() 225 toBeRemoved.add(ids); in assertContactsDeletedEventually()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 130 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerGetDeviceIdList() local 131 if (VERBOSE) Log.v(TAG, "CameraManager ids: " + Arrays.toString(ids)); in testCameraManagerGetDeviceIdList() 138 ids.length == 0 || in testCameraManagerGetDeviceIdList() 145 for (int i = 0; i < ids.length; i++) { in testCameraManagerGetDeviceIdList() 146 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetDeviceIdList() 147 assertNotNull("Can't get camera characteristics for camera " + ids[i], props); in testCameraManagerGetDeviceIdList() 167 ids.length == 0 in testCameraManagerGetDeviceIdList() 170 ids.length == 0 in testCameraManagerGetDeviceIdList() 177 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerGetCameraCharacteristics() local 178 for (int i = 0; i < ids.length; i++) { in testCameraManagerGetCameraCharacteristics() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DatabaseAsserts.java | 267 public static String buildIdSelection(long[] ids) { in buildIdSelection() argument 271 for (int i = 0; i < ids.length; i++) { in buildIdSelection() 273 selection.append(ids[i]); in buildIdSelection() 285 Uri uri, String[] allColumns, long[] ids) { in checkProjection() argument 286 final String selection = buildIdSelection(ids); in checkProjection() 289 checkProjectionInner(resolver, uri, null, allColumns, selection, ids.length, in checkProjection() 293 checkProjectionInner(resolver, uri, allColumns, allColumns, selection, ids.length, in checkProjection() 299 checkProjectionInner(resolver, uri, columns, columns, selection, ids.length, in checkProjection() 310 checkProjectionInner(resolver, uri, columns, columns, selection, ids.length, in checkProjection()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | TestPackageRepo.java | 190 Set<String> ids = new HashSet<>(); in getPackageIds() local 194 ids.add(testPackageDef.getId()); in getPackageIds() 197 List<String> idList = new ArrayList<>(ids); in getPackageIds() 244 Set<String> ids = new HashSet<String>(); in findPackageIdsForTest() local 248 ids.add(AbiUtils.createId(abi, name)); in findPackageIdsForTest() 252 List<String> idList = new ArrayList<String>(ids); in findPackageIdsForTest()
|
D | TestPlan.java | 145 List<String> ids = new ArrayList<String>(mIdFilterMap.keySet()); in getTestIds() local 146 Collections.sort(ids); in getTestIds() 147 return ids; in getTestIds()
|
/cts/tests/tests/media/libndkaudio/ |
D | AudioPlayer.cpp | 171 const SLInterfaceID ids[] = in Open() local 178 sizeof(ids) / sizeof(ids[0]), ids, in Open()
|
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/ |
D | shadertoy_shader.cpp | 59 …GLuint ids[] = { input_textures_[0].id, input_textures_[1].id, input_textures_[2].id, input_textur… in ~ShadertoyShader() local 60 glDeleteTextures(4, ids); in ~ShadertoyShader()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ConditionProviderVerifierActivity.java | 275 private List<String> ids = new ArrayList<>(); field in ConditionProviderVerifierActivity.GetAutomaticZenRulesTest 288 ids.add(mNm.addAutomaticZenRule(rule1)); in setUp() 289 ids.add(mNm.addAutomaticZenRule(rule2)); in setUp() 318 for (String id : ids) { in tearDown()
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ExternalStorageTest.java | 155 private boolean isCompleteLocked(long... ids) { in isCompleteLocked() argument 156 for (long id : ids) { in isCompleteLocked()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ClearKeySystemTest.java | 132 final JSONArray ids = license.getJSONArray("kids"); in getKeyIds() local 133 for (int i = 0; i < ids.length(); ++i) { in getKeyIds() 134 keyIds.add(ids.getString(i)); in getKeyIds()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/ |
D | WidgetCtsProvider.java | 105 public void onDeleted(Context ctx, int[] ids) { in onDeleted() argument 106 for (int i = 0; i < ids.length; i++) { in onDeleted() 107 sStateMap.remove(ids[i]); in onDeleted()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 334 private boolean isCompleteLocked(long... ids) { in isCompleteLocked() argument 335 for (long id : ids) { in isCompleteLocked()
|
/cts/tests/tests/media/res/raw/ |
D | football_qvga.yuv | 62 …���ɘ\GPD@C9)+G]emqrpjikkjmnx�b+!,7R^XUSXZR_l`ehalspqruz{xz}}�������������ids��mcql_V\~��ƕ������g…
|