Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_PhoneLookup.java130 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 …]
DContactsContract_FrequentsStrequentsTest.java167 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 …]
DContactsContract_SearchSnippetsTest.java81 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 …]
DContactsContract_RawContactsTest.java166 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 …]
DContactsContract_ContactsTest.java128 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 …]
DContactsContract_DataTest.java466 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 …]
DContactsContract_DataUsageTest.java42 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()
DContactsContract_DeletedContacts.java61 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()
DContactsProvider2_AccountRemovalTest.java193 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/
DCameraManagerTest.java130 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/
DDatabaseAsserts.java267 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/
DTestPackageRepo.java190 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()
DTestPlan.java145 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/
DAudioPlayer.cpp171 const SLInterfaceID ids[] = in Open() local
178 sizeof(ids) / sizeof(ids[0]), ids, in Open()
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/
Dshadertoy_shader.cpp59 …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/
DConditionProviderVerifierActivity.java275 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/
DExternalStorageTest.java155 private boolean isCompleteLocked(long... ids) { in isCompleteLocked() argument
156 for (long id : ids) { in isCompleteLocked()
/cts/tests/tests/media/src/android/media/cts/
DClearKeySystemTest.java132 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/
DWidgetCtsProvider.java105 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/
DDownloadManagerTest.java334 private boolean isCompleteLocked(long... ids) { in isCompleteLocked() argument
335 for (long id : ids) { in isCompleteLocked()
/cts/tests/tests/media/res/raw/
Dfootball_qvga.yuv62 …���ɘ\GPD@C9)+G]emqrpjikkjmnx�b+!,7R^XUSXZR_l`ehalspqruz{xz}}�������������ids��mcql_V\~��ƕ������g…