/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()
|
D | ContactsProvider2_AccountRemovalTest.java | 217 for (ContactIdPair ids : remaining) { in assertContactsInDeleteLogEventually() 219 ids.mContactId); in assertContactsInDeleteLogEventually() 221 toBeRemoved.add(ids); in assertContactsInDeleteLogEventually() 247 for (ContactIdPair ids : remaining) { in assertContactsDeletedEventually() 248 if (!RawContactUtil.rawContactExistsById(mResolver, ids.mRawContactId)) { in assertContactsDeletedEventually() 249 toBeRemoved.add(ids); in assertContactsDeletedEventually()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 154 String[] ids = mCameraIdsUnderTest; in testCameraManagerGetDeviceIdList() local 155 if (VERBOSE) Log.v(TAG, "CameraManager ids: " + Arrays.toString(ids)); in testCameraManagerGetDeviceIdList() 162 ids.length == 0 || in testCameraManagerGetDeviceIdList() 171 for (int i = 0; i < ids.length; i++) { in testCameraManagerGetDeviceIdList() 172 CameraCharacteristics props = mCameraManager.getCameraCharacteristics(ids[i]); in testCameraManagerGetDeviceIdList() 173 assertNotNull("Can't get camera characteristics for camera " + ids[i], props); in testCameraManagerGetDeviceIdList() 175 lensFacingMap.put(ids[i], lensFacing); in testCameraManagerGetDeviceIdList() 204 ids.length == 0 in testCameraManagerGetDeviceIdList() 207 ids.length == 0 in testCameraManagerGetDeviceIdList() 248 String[] ids = mCameraIdsUnderTest; in testCameraManagerGetCameraCharacteristics() local [all …]
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_multi_camera_frame_sync.py | 71 def _plot_frame_pairs_angles(frame_pairs_angles, ids): argument 76 pylab.plot(range(len(cam0_angles)), cam0_angles, "r", label="%s" % ids[0]) 77 pylab.plot(range(len(cam1_angles)), cam1_angles, "g", label="%s" % ids[1]) 86 label="cam%s-%s" % (ids[1], ids[0])) 103 ids = its.caps.logical_multi_camera_physical_ids(props) 117 "physicalCamera": ids[0]}, 119 "physicalCamera": ids[1]}] 140 file_name = "%s_%s_%03d.png" % (NAME, ids[j], i) 143 return frame_pairs_gray, ids 148 frame_pairs_gray, ids = _collect_data() [all …]
|
/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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AffiliationTest.java | 80 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/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/media/libndkaudio/ |
D | AudioPlayer.cpp | 171 const SLInterfaceID ids[] = in Open() local 178 sizeof(ids) / sizeof(ids[0]), ids, in Open()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | CannedFillResponse.java | 361 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/ |
D | test_multi_camera_match.py | 40 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/tests/tests/tv/src/android/media/tv/tuner/cts/ |
D | TunerTest.java | 135 List<Integer> ids = mTuner.getFrontendIds(); in testTuning() 136 assertFalse(ids.isEmpty()); in testTuning() 138 FrontendInfo info = mTuner.getFrontendInfoById(ids.get(0)); in testTuning() 149 List<Integer> ids = mTuner.getFrontendIds(); in testScanning() 150 assertFalse(ids.isEmpty()); in testScanning() 151 for (int id : ids) { in testScanning() 172 List<Integer> ids = mTuner.getFrontendIds(); in testFrontendStatus() 173 assertFalse(ids.isEmpty()); in testFrontendStatus() 175 FrontendInfo info = mTuner.getFrontendInfoById(ids.get(0)); in testFrontendStatus() 401 List<Integer> ids = other.getFrontendIds(); in testShareFrontendFromTuner() local [all …]
|
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/ |
D | DeviceAndProfileOwnerTransferOutgoingTest.java | 186 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/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerCtsTestsBase.java | 455 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/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/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | ConditionProviderServiceTest.java | 65 private ArraySet<String> ids = new ArraySet<>(); field in ConditionProviderServiceTest 91 for (String id : ids) { in tearDown() 273 ids.add(id); in addRule()
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ExternalStorageTest.java | 154 private boolean isCompleteLocked(long... ids) { in isCompleteLocked() argument 155 for (long id : ids) { in isCompleteLocked()
|
/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()
|