Home
last modified time | relevance | path

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

12

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_SearchSnippetsTest.java81 long[] ids = setupTestData(); in testSearchSnippets_NoMatch() local
85 assertCursorStoredValuesWithContactsFilter(uri, ids); in testSearchSnippets_NoMatch()
89 long[] ids = setupTestData(); in testEnterpriseSearchSnippets_NoMatch() local
94 assertCursorStoredValuesWithContactsFilter(uri, ids); in testEnterpriseSearchSnippets_NoMatch()
98 long[] ids = setupTestData(); in testSearchSnippets_MatchEmailAddressCorrectSnippet() local
103 expected.put(Contacts._ID, ids[1]); in testSearchSnippets_MatchEmailAddressCorrectSnippet()
105 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testSearchSnippets_MatchEmailAddressCorrectSnippet()
109 long[] ids = setupTestData(); in testEnterpriseSearchSnippets_MatchEmailAddressCorrectSnippet() local
115 expected.put(Contacts._ID, ids[1]); in testEnterpriseSearchSnippets_MatchEmailAddressCorrectSnippet()
117 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testEnterpriseSearchSnippets_MatchEmailAddressCorrectSnippet()
[all …]
DContactsContract_PhoneLookup.java129 Id[] ids = setupTestData(); in testPhoneLookup_nomatch() local
133 assertCursorStoredValuesWithContactsFilter(uri, ids /*, empty */); in testPhoneLookup_nomatch()
140 Id[] ids = setupTestData(); in testPhoneLookup_found1() local
145 expected.put(PhoneLookup._ID, ids[0].contactId); in testPhoneLookup_found1()
146 expected.put(PhoneLookup.CONTACT_ID, ids[0].contactId); in testPhoneLookup_found1()
147 expected.put(PhoneLookup.DATA_ID, ids[0].dataId); in testPhoneLookup_found1()
150 assertCursorStoredValuesWithContactsFilter(uri, ids, expected); in testPhoneLookup_found1()
157 Id[] ids = setupTestData(); in testPhoneLookup_found2() local
162 expected.put(PhoneLookup._ID, ids[1].contactId); in testPhoneLookup_found2()
163 expected.put(PhoneLookup.CONTACT_ID, ids[1].contactId); in testPhoneLookup_found2()
[all …]
DContactsContract_FrequentsStrequentsTest.java165 long[] ids = setupTestData(); in testStrequents_noStarredOrFrequents() local
166 assertCursorStoredValuesWithContactsFilter(Contacts.CONTENT_STREQUENT_URI, ids, false); in testStrequents_noStarredOrFrequents()
175 long[] ids = setupTestData(); in testStrequents_starredOnlyInCorrectOrder() local
178 starContact(ids[0]); in testStrequents_starredOnlyInCorrectOrder()
179 starContact(ids[1]); in testStrequents_starredOnlyInCorrectOrder()
182 assertCursorStoredValuesWithContactsFilter(Contacts.CONTENT_STREQUENT_URI, ids, in testStrequents_starredOnlyInCorrectOrder()
187 long[] ids = setupTestData(); in testStrequents_frequentsOnlyInCorrectOrder() local
200 assertCursorStoredValuesWithContactsFilter(Contacts.CONTENT_STREQUENT_URI, ids, in testStrequents_frequentsOnlyInCorrectOrder()
205 long[] ids = setupTestData(); in testStrequents_starredAndFrequentsInCorrectOrder() local
215 starContact(ids[2]); in testStrequents_starredAndFrequentsInCorrectOrder()
[all …]
DContactsContract_DataTest.java469 long[] ids = setupContactablesTestData(); in testContactablesFilterByLastName_returnsCorrectDataRows() local
471 assertCursorStoredValuesWithRawContactsFilter(filterUri, ids, in testContactablesFilterByLastName_returnsCorrectDataRows()
476 long[] ids = setupContactablesTestData(); in testContactablesFilterByFirstName_returnsCorrectDataRows() local
478 assertCursorStoredValuesWithRawContactsFilter(filterUri, ids, in testContactablesFilterByFirstName_returnsCorrectDataRows()
481 assertCursorStoredValuesWithRawContactsFilter(filterUri2, ids, in testContactablesFilterByFirstName_returnsCorrectDataRows()
486 long[] ids = setupContactablesTestData(); in testContactablesFilterByPhonePrefix_returnsCorrectDataRows() local
488 assertCursorStoredValuesWithRawContactsFilter(filterUri, ids, in testContactablesFilterByPhonePrefix_returnsCorrectDataRows()
491 assertCursorStoredValuesWithRawContactsFilter(filterUri2, ids, in testContactablesFilterByPhonePrefix_returnsCorrectDataRows()
496 long[] ids = setupContactablesTestData(); in testContactablesFilterByEmailPrefix_returnsCorrectDataRows() local
498 assertCursorStoredValuesWithRawContactsFilter(filterUri, ids, in testContactablesFilterByEmailPrefix_returnsCorrectDataRows()
[all …]
DContactsContract_RawContactsTest.java161 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactCreate_updatesContactUpdatedTimestamp() local
163 ids.mRawContactId); in testRawContactCreate_updatesContactUpdatedTimestamp()
168 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactCreate_updatesContactUpdatedTimestamp()
172 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactUpdate_updatesContactUpdatedTimestamp() local
174 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp()
178 RawContactUtil.update(mResolver, ids.mRawContactId, values); in testRawContactUpdate_updatesContactUpdatedTimestamp()
180 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp()
184 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactUpdate_updatesContactUpdatedTimestamp()
188 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactPsuedoDelete_hasDeleteLogForContact() local
190 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactPsuedoDelete_hasDeleteLogForContact()
[all …]
DContactsContract_ContactsTest.java134 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); in testContactDelete_hasDeleteLog() local
135 DatabaseAsserts.assertHasDeleteLogGreaterThan(mResolver, ids.mContactId, start); in testContactDelete_hasDeleteLog()
138 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testContactDelete_hasDeleteLog()
142 DatabaseAsserts.ContactIdPair ids = assertContactCreateDelete(); in testContactDelete_marksRawContactsForDeletion() local
148 List<String[]> records = RawContactUtil.queryByContactId(mResolver, ids.mContactId, in testContactDelete_marksRawContactsForDeletion()
156 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testContactDelete_marksRawContactsForDeletion()
160 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testContactUpdate_updatesContactUpdatedTimestamp() local
162 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp()
168 ContactUtil.update(mResolver, ids.mContactId, values); in testContactUpdate_updatesContactUpdatedTimestamp()
170 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp()
[all …]
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()
DContactsContract_DataUsageTest.java58 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testSingleDataUsageFeedback_incrementsCorrectDataItems() local
60 long[] dataIds = setupRawContactDataItems(ids.mRawContactId); in testSingleDataUsageFeedback_incrementsCorrectDataItems()
72 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testSingleDataUsageFeedback_incrementsCorrectDataItems()
76 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems() local
78 long[] dataIds = setupRawContactDataItems(ids.mRawContactId); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems()
86 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems()
100 String[] ids = new String[dataIds.length]; in updateMultipleAndAssertUpdateSuccess() local
102 ids[i] = String.valueOf(dataIds[i]); in updateMultipleAndAssertUpdateSuccess()
104 Uri uri = DataUsageFeedback.FEEDBACK_URI.buildUpon().appendPath(TextUtils.join(",", ids)) in updateMultipleAndAssertUpdateSuccess()
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()
DContactsProvider2_AccountRemovalTest.java185 for (ContactIdPair ids : remaining) { in assertContactsInDeleteLogEventually()
187 ids.mContactId); in assertContactsInDeleteLogEventually()
189 toBeRemoved.add(ids); in assertContactsInDeleteLogEventually()
215 for (ContactIdPair ids : remaining) { in assertContactsDeletedEventually()
216 if (!RawContactUtil.rawContactExistsById(mResolver, ids.mRawContactId)) { in assertContactsDeletedEventually()
217 toBeRemoved.add(ids); in assertContactsDeletedEventually()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java143 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerGetDeviceIdList() local
144 if (VERBOSE) Log.v(TAG, "CameraManager ids: " + Arrays.toString(ids)); in testCameraManagerGetDeviceIdList()
151 ids.length == 0 || in testCameraManagerGetDeviceIdList()
159 for (int i = 0; i < ids.length; i++) { in testCameraManagerGetDeviceIdList()
160 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetDeviceIdList()
161 assertNotNull("Can't get camera characteristics for camera " + ids[i], props); in testCameraManagerGetDeviceIdList()
190 ids.length == 0 in testCameraManagerGetDeviceIdList()
193 ids.length == 0 in testCameraManagerGetDeviceIdList()
201 String[] ids = mCameraManager.getCameraIdList(); in testCameraManagerGetCameraCharacteristics() local
202 for (int i = 0; i < ids.length; i++) { in testCameraManagerGetCameraCharacteristics()
[all …]
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_multi_camera_frame_sync.py80 def _plot_frame_pairs_angles(frame_pairs_angles, ids): argument
85 pylab.plot(range(len(cam0_angles)), cam0_angles, "r", label="%s" % ids[0])
86 pylab.plot(range(len(cam1_angles)), cam1_angles, "g", label="%s" % ids[1])
95 label="cam%s-%s" % (ids[1], ids[0]))
112 ids = its.caps.logical_multi_camera_physical_ids(props)
126 "physicalCamera": ids[0]},
128 "physicalCamera": ids[1]}]
149 file_name = "%s_%s_%03d.png" % (NAME, ids[j], i)
152 return frame_pairs_gray, ids
157 frame_pairs_gray, ids = _collect_data()
[all …]
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
DAffiliationTest.java44 Set<String> ids = Collections.singleton(id); in setAffiliationId() local
45 dpm.setAffiliationIds(admin, ids); in setAffiliationId()
46 assertEquals(ids, dpm.getAffiliationIds(admin)); in setAffiliationId()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAffiliationTest.java80 private void setAffiliationIds(Set<String> ids) { in setAffiliationIds() argument
81 mDevicePolicyManager.setAffiliationIds(mAdminComponent, ids); in setAffiliationIds()
82 assertEquals(ids, mDevicePolicyManager.getAffiliationIds(mAdminComponent)); in setAffiliationIds()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DCannedFillResponse.java343 public Builder setRequiredSavableIds(int type, String... ids) { in setRequiredSavableIds() argument
345 mRequiredSavableIds = ids; in setRequiredSavableIds()
362 public Builder setOptionalSavableIds(String... ids) { in setOptionalSavableIds() argument
363 mOptionalSavableIds = ids; in setOptionalSavableIds()
395 public Builder setAuthentication(IntentSender authentication, String... ids) { in setAuthentication() argument
396 mAuthenticationIds = ids; in setAuthentication()
404 public Builder setIgnoreFields(String...ids) { in setIgnoreFields() argument
405 mIgnoredIds = ids; in setIgnoreFields()
449 public Builder setFieldClassificationIds(String... ids) { in setFieldClassificationIds() argument
451 mFieldClassificationIds = ids; in setFieldClassificationIds()
/cts/tests/tests/media/libndkaudio/
DAudioPlayer.cpp171 const SLInterfaceID ids[] = in Open() local
178 sizeof(ids) / sizeof(ids[0]), ids, in Open()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAffiliationTest.java97 private void setAffiliationIds(Set<String> ids) { in setAffiliationIds() argument
98 mDevicePolicyManager.setAffiliationIds(ADMIN_RECEIVER_COMPONENT, ids); in setAffiliationIds()
99 assertEquals(ids, mDevicePolicyManager.getAffiliationIds(ADMIN_RECEIVER_COMPONENT)); in setAffiliationIds()
/cts/apps/CameraITS/tests/scene1/
Dtest_multi_camera_match.py40 ids = its.caps.logical_multi_camera_physical_ids(props)
41 for i in ids:
47 if i == ids[0]: # get_available_output_sizes returns sorted list
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferOutgoingTest.java196 Set<String> ids = Collections.singleton(id); in setAffiliationId() local
197 dpm.setAffiliationIds(admin, ids); in setAffiliationId()
198 assertEquals(ids, dpm.getAffiliationIds(admin)); in setAffiliationId()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerCtsTestsBase.java427 protected List<ShortcutInfo> makeShortcuts(String... ids) { in makeShortcuts() argument
429 for (String id : ids) { in makeShortcuts()
558 long changedSince, List<String> ids) { in getShortcutsAsLauncher() argument
569 if (ids != null && ids.size() > 0) { in getShortcutsAsLauncher()
570 q.setShortcutIds(ids); in getShortcutsAsLauncher()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java69 private ArraySet<String> ids = new ArraySet<>(); field in ConditionProviderServiceTest
98 for (String id : ids) { in tearDown()
306 ids.add(id); in addRule()
/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/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DExternalStorageTest.java158 private boolean isCompleteLocked(long... ids) { in isCompleteLocked() argument
159 for (long id : ids) { in isCompleteLocked()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerDrmTestBase.java954 final JSONArray ids = license.getJSONArray("kids"); in getKeyIds() local
955 Log.v(TAG, "getKeyIds: ids: " + ids); in getKeyIds()
956 for (int i = 0; i < ids.length(); ++i) { in getKeyIds()
957 keyIds.add(ids.getString(i)); in getKeyIds()
1094 private boolean isCompleteLocked(long... ids) { in isCompleteLocked() argument
1095 for (long id : ids) { in isCompleteLocked()
/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()

12