Home
last modified time | relevance | path

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

12

/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
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_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_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_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_RawContactsTest.java188 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactCreate_updatesContactUpdatedTimestamp() local
190 ids.mRawContactId); in testRawContactCreate_updatesContactUpdatedTimestamp()
195 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactCreate_updatesContactUpdatedTimestamp()
251 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactUpdate_updatesContactUpdatedTimestamp() local
253 long baseTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp()
257 RawContactUtil.update(mResolver, ids.mRawContactId, values); in testRawContactUpdate_updatesContactUpdatedTimestamp()
259 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp()
263 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testRawContactUpdate_updatesContactUpdatedTimestamp()
267 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testRawContactPsuedoDelete_hasDeleteLogForContact() local
269 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()
161 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact( in testContactDelete_localContactDeletedImmediately() local
164 ContactUtil.delete(mResolver, ids.mContactId); in testContactDelete_localContactDeletedImmediately()
168 assertNull(RawContactUtil.queryByRawContactId(mResolver, ids.mRawContactId, null)); in testContactDelete_localContactDeletedImmediately()
247 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testContactUpdate_updatesContactUpdatedTimestamp() local
[all …]
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.java306 for (ContactIdPair ids : remaining) { in assertContactsInDeleteLogEventually()
308 ids.mContactId); in assertContactsInDeleteLogEventually()
310 toBeRemoved.add(ids); in assertContactsInDeleteLogEventually()
336 for (ContactIdPair ids : remaining) { in assertContactsDeletedEventually()
337 if (!RawContactUtil.rawContactExistsById(mResolver, ids.mRawContactId)) { in assertContactsDeletedEventually()
338 toBeRemoved.add(ids); in assertContactsDeletedEventually()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraManagerTest.java155 String[] ids = mCameraIdsUnderTest; in testCameraManagerGetDeviceIdList() local
156 if (VERBOSE) Log.v(TAG, "CameraManager ids: " + Arrays.toString(ids)); in testCameraManagerGetDeviceIdList()
163 ids.length == 0 || in testCameraManagerGetDeviceIdList()
172 for (int i = 0; i < ids.length; i++) { in testCameraManagerGetDeviceIdList()
173 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetDeviceIdList()
174 assertNotNull("Can't get camera characteristics for camera " + ids[i], props); in testCameraManagerGetDeviceIdList()
176 lensFacingMap.put(ids[i], lensFacing); in testCameraManagerGetDeviceIdList()
205 ids.length == 0 in testCameraManagerGetDeviceIdList()
208 ids.length == 0 in testCameraManagerGetDeviceIdList()
249 String[] ids = mCameraIdsUnderTest; in testCameraManagerGetCameraCharacteristics() local
[all …]
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorManagerTest.java160 final int[] ids = mVibratorManager.getVibratorIds(); in testInputVibratorManagerEvents() local
188 comb.addVibrator(ids[i], effect); in testInputVibratorManagerEvents()
208 int[] ids = mVibratorManager.getVibratorIds(); in testGetVibrators() local
209 assertEquals(2, ids.length); in testGetVibrators()
215 for (int i = 0; i < ids.length; i++) { in testGetVibrators()
216 final Vibrator vibrator = mVibratorManager.getVibrator(ids[i]); in testGetVibrators()
224 final int[] ids = mVibratorManager.getVibratorIds(); in testUnsupportedVibrationEffectsPreBaked() local
226 for (int i = 0; i < ids.length; i++) { in testUnsupportedVibrationEffectsPreBaked()
227 comb.addVibrator(ids[i], VibrationEffect.createPredefined( in testUnsupportedVibrationEffectsPreBaked()
238 final int[] ids = mVibratorManager.getVibratorIds(); in testMixedVibrationEffectsOneShotAndPreBaked() local
[all …]
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_multi_camera_frame_sync.py112 def _plot_frame_pairs_angles(frame_pairs_angles, ids, log_path): argument
118 label='%s' % ids[0])
120 label='%s' % ids[1])
130 label='cam%s-%s' % (ids[1], ids[0]))
152 ids = camera_properties_utils.logical_multi_camera_physical_ids(props)
168 'physicalCamera': ids[0]},
170 'physicalCamera': ids[1]}]
200 os.path.join(self.log_path, _NAME), ids[j], i)
203 return frame_pairs_gray, ids
257 frame_pairs_gray, ids = self._collect_data(cam, props, rot_rig)
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAffiliationTest.java91 private void setAffiliationIds(Set<String> ids) throws Exception { in setAffiliationIds() argument
93 Log.d(TAG, "setAffiliationIds(" + ids + ") on user " + mUserId); in setAffiliationIds()
94 mDevicePolicyManager.setAffiliationIds(mAdminComponent, ids); in setAffiliationIds()
98 .containsExactlyElementsIn(ids); in setAffiliationIds()
100 Log.e(TAG, "Failed to set affiliation ids (" + ids + ")", e); in setAffiliationIds()
/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/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/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerTest.java159 List<Integer> ids = mTuner.getFrontendIds(); in testTuning() local
160 assertFalse(ids.isEmpty()); in testTuning()
162 FrontendInfo info = mTuner.getFrontendInfoById(ids.get(0)); in testTuning()
172 List<Integer> ids = mTuner.getFrontendIds(); in testScanning() local
173 assertFalse(ids.isEmpty()); in testScanning()
174 for (int id : ids) { in testScanning()
194 List<Integer> ids = mTuner.getFrontendIds(); in testFrontendStatus() local
195 assertFalse(ids.isEmpty()); in testFrontendStatus()
197 for (int id : ids) { in testFrontendStatus()
369 List<Integer> ids = mTuner.getFrontendIds(); in testFrontendToCiCam() local
[all …]
/cts/tests/tests/media/libndkaudio/
DAudioPlayer.cpp171 const SLInterfaceID ids[] = in Open() local
178 sizeof(ids) / sizeof(ids[0]), ids, in Open()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestSipDelegate.java102 Set<String> ids = new ArraySet<>(callIdsToVerify); in verifyCleanupSession() local
106 assertTrue(ids.contains(requestedCallId)); in verifyCleanupSession()
107 ids.remove(requestedCallId); in verifyCleanupSession()
109 assertTrue(ids.isEmpty()); in verifyCleanupSession()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DCannedFillResponse.java361 public Builder setRequiredSavableIds(int type, String... ids) { in setRequiredSavableIds() argument
363 mRequiredSavableIds = ids; in setRequiredSavableIds()
380 public Builder setOptionalSavableIds(String... ids) { in setOptionalSavableIds() argument
381 mOptionalSavableIds = ids; in setOptionalSavableIds()
432 public Builder setAuthentication(IntentSender authentication, String... ids) { in setAuthentication() argument
433 mAuthenticationIds = ids; in setAuthentication()
441 public Builder setIgnoreFields(String...ids) { in setIgnoreFields() argument
442 mIgnoredIds = ids; in setIgnoreFields()
494 public Builder setFieldClassificationIds(String... ids) { in setFieldClassificationIds() argument
496 mFieldClassificationIds = ids; in setFieldClassificationIds()
[all …]
/cts/apps/CameraITS/tests/scene1_1/
Dtest_multi_camera_match.py71 ids = camera_properties_utils.logical_multi_camera_physical_ids(props)
72 for i in ids:
79 if i == ids[0]: # get_available_output_sizes returns sorted list
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferOutgoingTest.java186 Set<String> ids = Collections.singleton(id); in setAffiliationId() local
187 dpm.setAffiliationIds(admin, ids); in setAffiliationId()
188 assertEquals(ids, dpm.getAffiliationIds(admin)); in setAffiliationId()
/cts/common/device-side/bedstead/remotedpc/src/communication/main/java/com/android/bedstead/remotedpc/managers/
DRemoteDevicePolicyManager.java142 void setAffiliationIds(ComponentName admin, Set<String> ids); in setAffiliationIds() argument
144 @RemoteDpcAutomaticAdmin void setAffiliationIds(Set<String> ids); in setAffiliationIds() argument
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerCtsTestsBase.java455 protected List<ShortcutInfo> makeShortcuts(String... ids) { in makeShortcuts() argument
457 for (String id : ids) { in makeShortcuts()
603 long changedSince, List<String> ids, List<LocusId> locusIds) { in getShortcutsAsLauncher() argument
614 if (ids != null && ids.size() > 0) { in getShortcutsAsLauncher()
615 q.setShortcutIds(ids); in getShortcutsAsLauncher()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceAdminTestReceiver.java83 Set<String> ids = new HashSet<>(); in onReceive() local
84 ids.add("affh!"); in onReceive()
85 Log.i(TAG, "Setting affiliation ids to " + ids); in onReceive()
86 getManager(context).setAffiliationIds(getWho(context), ids); in onReceive() local

12