/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_PhoneLookup.java | 129 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 …]
|
D | ContactsContract_SearchSnippetsTest.java | 81 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 …]
|
D | ContactsContract_FrequentsStrequentsTest.java | 165 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 …]
|
D | ContactsContract_DataTest.java | 469 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 …]
|
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 | ContactsContract_RawContactsTest.java | 188 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 …]
|
D | ContactsContract_ContactsTest.java | 134 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 …]
|
D | ContactsContract_DataUsageTest.java | 58 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()
|
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/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 154 String[] ids = getCameraIdsUnderTest(); in testCameraManagerGetDeviceIdList() local 155 if (VERBOSE) Log.v(TAG, "CameraManager ids: " + Arrays.toString(ids)); in testCameraManagerGetDeviceIdList() 169 ids.length == 0 || in testCameraManagerGetDeviceIdList() 179 for (int i = 0; i < ids.length; i++) { in testCameraManagerGetDeviceIdList() 180 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetDeviceIdList() 181 assertNotNull("Can't get camera characteristics for camera " + ids[i], props); in testCameraManagerGetDeviceIdList() 183 lensFacingMap.put(ids[i], lensFacing); in testCameraManagerGetDeviceIdList() 189 mainFrontId = ids[i]; in testCameraManagerGetDeviceIdList() 195 mainBackId = ids[i]; in testCameraManagerGetDeviceIdList() 217 ids.length == 0 in testCameraManagerGetDeviceIdList() [all …]
|
/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceVibratorManagerTest.java | 166 final int[] ids = mVibratorManager.getVibratorIds(); in testInputVibratorManagerEvents() local 194 comb.addVibrator(ids[i], effect); in testInputVibratorManagerEvents() 215 int[] ids = mVibratorManager.getVibratorIds(); in testGetVibrators() local 216 assertEquals(2, ids.length); in testGetVibrators() 222 for (int i = 0; i < ids.length; i++) { in testGetVibrators() 223 final Vibrator vibrator = mVibratorManager.getVibrator(ids[i]); in testGetVibrators() 231 final int[] ids = mVibratorManager.getVibratorIds(); in testUnsupportedVibrationEffectsPreBaked() local 233 for (int i = 0; i < ids.length; i++) { in testUnsupportedVibrationEffectsPreBaked() 234 comb.addVibrator(ids[i], VibrationEffect.createPredefined( in testUnsupportedVibrationEffectsPreBaked() 245 final int[] ids = mVibratorManager.getVibratorIds(); in testMixedVibrationEffectsOneShotAndPreBaked() local [all …]
|
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/testutil/ |
D | AppSearchTestUtils.java | 63 @NonNull String... ids) in doGet() argument 68 new GetByDocumentIdRequest.Builder(namespace).addIds(ids).build())); in doGet() 69 assertThat(result.getSuccesses()).hasSize(ids.length); in doGet() 71 List<GenericDocument> list = new ArrayList<>(ids.length); in doGet() 72 for (String id : ids) { in doGet() 85 Set<String> ids = request.getIds(); in doGet() local 86 assertThat(result.getSuccesses()).hasSize(ids.size()); in doGet() 88 List<GenericDocument> list = new ArrayList<>(ids.size()); in doGet() 89 for (String id : ids) { in doGet()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AffiliationTest.java | 91 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/ |
D | AffiliationTest.java | 44 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/tests/mediapc/requirements/ |
D | requirementsdata_test.go | 35 ids := make(map[string]bool) 38 if ids[id] { 41 ids[id] = true
|
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/ |
D | TunerTest.java | 541 List<Integer> ids = mTuner.getFrontendIds(); in testFrontendHardwareInfo() local 542 if (ids == null) return; in testFrontendHardwareInfo() 543 assertFalse(ids.isEmpty()); in testFrontendHardwareInfo() 546 FrontendInfo info = mTuner.getFrontendInfoById(ids.get(targetFrontendId)); in testFrontendHardwareInfo() 561 List<Integer> ids = mTuner.getFrontendIds(); in testTuning() local 562 if (ids == null) return; in testTuning() 563 assertFalse(ids.isEmpty()); in testTuning() 566 FrontendInfo info = mTuner.getFrontendInfoById(ids.get(targetFrontendId)); in testTuning() 602 List<Integer> ids = mTuner.getFrontendIds(); in testMultiTuning() local 603 if (ids == null) return; in testMultiTuning() [all …]
|
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/ |
D | TunerTest.java | 540 List<Integer> ids = mTuner.getFrontendIds(); in testFrontendHardwareInfo() local 541 if (ids == null) return; in testFrontendHardwareInfo() 542 assertFalse(ids.isEmpty()); in testFrontendHardwareInfo() 545 FrontendInfo info = mTuner.getFrontendInfoById(ids.get(targetFrontendId)); in testFrontendHardwareInfo() 560 List<Integer> ids = mTuner.getFrontendIds(); in testTuning() local 561 if (ids == null) return; in testTuning() 562 assertFalse(ids.isEmpty()); in testTuning() 565 FrontendInfo info = mTuner.getFrontendInfoById(ids.get(targetFrontendId)); in testTuning() 601 List<Integer> ids = mTuner.getFrontendIds(); in testMultiTuning() local 602 if (ids == null) return; in testMultiTuning() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AffiliationTest.java | 97 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/car/src/android/car/cts/property/ |
D | CarSvcPropsParser.java | 98 List<Integer> ids = mSystemPropertyIdsByFlag.get(flag); in getSystemPropertyIdsForFlag() local 99 if (ids == null) { in getSystemPropertyIdsForFlag() 102 return new ArrayList<Integer>(ids); in getSystemPropertyIdsForFlag()
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_multi_camera_frame_sync.py | 112 def _plot_frame_pair_angles(frame_pair_angles, ids, name_with_log_path): argument 150 ids = camera_properties_utils.logical_multi_camera_physical_ids(props) 156 'physicalCamera': ids[0]}, 158 'physicalCamera': ids[1]}] 215 return frame_pairs_gray, ids 285 frame_pairs_gray, ids = self._collect_data( 301 _plot_frame_pair_angles(filtered_pair_angles, ids, name_with_log_path)
|
/cts/tests/tests/media/audio/jni/ |
D | AudioPlayer.cpp | 171 const SLInterfaceID ids[] = in Open() local 178 sizeof(ids) / sizeof(ids[0]), ids, in Open()
|
/cts/apps/CameraITS/tests/scene7/ |
D | test_multi_camera_switch.py | 198 def _extract_main_patch(corners, ids, img_rgb, img_path, lens_suffix): argument 216 img_rgb, corners, ids) 254 corners, ids, _ = opencv_processing_utils.find_aruco_markers( 256 if len(ids) != _ARUCO_MARKERS_COUNT: 259 return corners, ids 484 corners, ids = _find_aruco_markers(uw_img_bw, uw_path, 'uw') 486 corners, ids, uw_img, uw_path, 'uw') 492 corners, ids = _find_aruco_markers(w_img_bw, w_path, 'w') 494 corners, ids, w_img, w_path, 'w')
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | TestSipDelegate.java | 102 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/framework/base/biometrics/src/android/server/biometrics/util/ |
D | Utils.java | 332 List<Integer> ids = getAidlSensorIds(adbCommand, providerRegex); in getAidlSensorId() local 334 if (ids.isEmpty()) { in getAidlSensorId() 338 return ids.get(0); in getAidlSensorId() 347 final List<Integer> ids = new ArrayList<>(); in getAidlSensorIds() local 349 ids.add(Integer.parseInt(matcher.group(1))); in getAidlSensorIds() 352 return ids; in getAidlSensorIds()
|
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/ |
D | DeviceAndProfileOwnerTransferOutgoingTest.java | 154 Set<String> ids = Collections.singleton(id); in setAffiliationId() local 155 dpm.setAffiliationIds(admin, ids); in setAffiliationId() 156 assertEquals(ids, dpm.getAffiliationIds(admin)); in setAffiliationId()
|