Home
last modified time | relevance | path

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

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java188 private static void assertUriArrayLength(int length, Uri[] uris) { in assertUriArrayLength() argument
189 if (uris.length != length) { in assertUriArrayLength()
194 sb.append(uris.length); in assertUriArrayLength()
195 if (uris.length > 0) { in assertUriArrayLength()
197 for (int i=0; i<uris.length; i++) { in assertUriArrayLength()
201 sb.append(uris[i]); in assertUriArrayLength()
208 private static void assertHasUri(Uri wanted, Uri[] uris) { in assertHasUri() argument
209 for (int i=0; i<uris.length; i++) { in assertHasUri()
210 if (wanted.equals(uris[i])) { in assertHasUri()
219 for (int i=0; i<uris.length; i++) { in assertHasUri()
[all …]
/cts/tests/tests/content/ContentUriTestApp/src/android/content/cts/contenturitestapp/
DTestService.java53 Uri[] uris = new Uri[URI_COUNT];
54 uris[URI_NO_PERMISSION_ID] = TestProvider.CONTENT_URI_NONE;
55 uris[URI_READ_PERMISSION_ID] = TestProvider.getSubsetContentUri(
57 uris[URI_WRITE_PERMISSION_ID] = TestProvider.getSubsetContentUri(
59 uris[URI_READ_WRITE_PERMISSION_ID] = TestProvider.getSubsetContentUri(
61 return uris;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/
DSharesheetAdditionalContentProvider.java70 ArrayList<Uri> uris = in query() local
72 uris = uris == null ? new ArrayList<>(0) : uris; in query()
74 for (Uri u : uris) { in query()
136 ArrayList<Uri> uris = new ArrayList<>(); in updateChooseAction() local
140 uris.add(uri); in updateChooseAction()
146 uris.ensureCapacity(sharedUris.size()); in updateChooseAction()
149 uris.add(uri); in updateChooseAction()
164 boolean allSelected = uris.size() == expectedUris.size() && uris.containsAll(expectedUris); in updateChooseAction()
170 /*requestCode=*/uris.size(), in updateChooseAction()
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_ConfigTest.java540 public synchronized void onChange(boolean selfChange, Collection<Uri> uris, int flags) { in onChange() argument
541 doOnChangeLocked(selfChange, uris, flags, /*userId=*/ -1); in onChange()
545 public synchronized void onChange(boolean selfChange, @NonNull Collection<Uri> uris, in onChange() argument
547 doOnChangeLocked(selfChange, uris, flags, user.getIdentifier()); in onChange()
563 private void doOnChangeLocked(boolean selfChange, @NonNull Collection<Uri> uris, in doOnChangeLocked() argument
565 final Change change = new Change(selfChange, uris, flags, userId); in doOnChangeLocked()
575 public final Iterable<Uri> uris; field in Settings_ConfigTest.Change
580 public Change(boolean selfChange, Iterable<Uri> uris, int flags) { in Change() argument
582 this.uris = uris; in Change()
587 public Change(boolean selfChange, Iterable<Uri> uris, int flags, @UserIdInt int userId) { in Change() argument
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestRcsCapabilityExchangeImpl.java43 void execute(Collection<Uri> uris, SubscribeResponseCallback cb) throws ImsException; in execute() argument
92 public void subscribeForCapabilities(Collection<Uri> uris, SubscribeResponseCallback cb) { in subscribeForCapabilities() argument
94 mSubscribeOperation.execute(uris, cb); in subscribeForCapabilities()
DRcsUceAdapterTest.java602 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in testCapabilitiesRequestAllowed() argument
604 cb.onNotifyCapabilitiesUpdate(getPidfForUris(new ArrayList(uris), in testCapabilitiesRequestAllowed()
688 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in testCapabilitiesRequestWithCmdError() argument
766 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in testCapabilitiesRequestRetry() argument
787 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in testCapabilitiesRequestRetry() argument
789 List<Uri> uriList = new ArrayList(uris); in testCapabilitiesRequestRetry()
793 cb.onNotifyCapabilitiesUpdate(getPidfForUris(new ArrayList(uris), in testCapabilitiesRequestRetry()
910 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in testCapabilitiesRequestWithResponseError() argument
946 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in testCapabilitiesRequestWithResponseError() argument
987 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in testCapabilitiesRequestWithResponseError() argument
[all …]
DEabControllerTest.java464 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in fakeNetworkResult() argument
DEabBulkCapabilityUpdaterTest.java563 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in fakeNetworkResult() argument
DImsServiceTest.java2779 capExchangeImpl.setSubscribeOperation((uris, cb) -> { in testRcsPublishWithAuthorizedErrorResponse() argument
6108 public void onSubscriberAssociatedUriChanged(@Nullable Uri[] uris) { in testImsPhoneNumberWithImsAssociatedUri()
6109 mSubscriberQueue.offer(uris.length); in testImsPhoneNumberWithImsAssociatedUri()
6185 public void onSubscriberAssociatedUriChanged(@Nullable Uri[] uris) { in testImsPhoneNumberWithImsAssociatedUriForNonGlobalNumberFormat()
6186 mSubscriberQueue.offer(uris.length); in testImsPhoneNumberWithImsAssociatedUriForNonGlobalNumberFormat()
6271 public void onSubscriberAssociatedUriChanged(@Nullable Uri[] uris) { in testClearImsPhoneNumberWithImsAssociatedUri()
6272 mSubscriberQueue.offer(uris.length); in testClearImsPhoneNumberWithImsAssociatedUri()
/cts/hostsidetests/securitybulletin/test-apps/BUG-261036568/test-app/src/android/security/cts/BUG_261036568_test/
DDeviceTest.java160 private Intent createSendFileIntentWithPreview(Uri... uris) { in createSendFileIntentWithPreview() argument
162 if (uris.length > 1) { in createSendFileIntentWithPreview()
165 new ArrayList<>(Arrays.asList(uris))); in createSendFileIntentWithPreview()
166 } else if (uris.length == 1) { in createSendFileIntentWithPreview()
168 sendIntent.putExtra(Intent.EXTRA_STREAM, uris[0]); in createSendFileIntentWithPreview()
/cts/tests/tests/app/src/android/app/cts/
DComponentCallerTest.java379 ArrayList<Uri> uris = new ArrayList<>(); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_noPermission() local
380 uris.add(CONTENT_URI_NO_PERMISSION); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_noPermission()
381 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_noPermission()
400 ArrayList<Uri> uris = new ArrayList<>(); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_hasRead() local
401 uris.add(CONTENT_URI_READ_PERMISSION); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_hasRead()
402 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_hasRead()
421 ArrayList<Uri> uris = new ArrayList<>(); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_hasReadButNoWrite() local
422 uris.add(CONTENT_URI_READ_PERMISSION); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_hasReadButNoWrite()
423 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_hasReadButNoWrite()
870 ArrayList<Uri> uris = new ArrayList<>(); in testActivityNewIntentCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_noPermission() local
[all …]
/cts/tests/tests/slice/src/android/slice/cts/
DSliceManagerTest.java113 List<Uri> uris = mSliceManager.getPinnedSlices(); in testPinList() local
114 assertEquals(2, uris.size()); in testPinList()
115 assertTrue(uris.contains(uri)); in testPinList()
116 assertTrue(uris.contains(longerUri)); in testPinList()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java1671 public final Iterable<Uri> uris; field in ContentResolverTest.Change
1676 public Change(boolean selfChange, Iterable<Uri> uris, int flags) { in Change() argument
1678 this.uris = uris; in Change()
1683 public Change(boolean selfChange, Iterable<Uri> uris, int flags, @UserIdInt int userId) { in Change() argument
1685 this.uris = uris; in Change()
1693 selfChange, asSet(uris).toString(), flags, userId); in toString()
1701 Objects.equals(asSet(change.uris), asSet(uris)) && in equals()
1708 private static Set<Uri> asSet(Iterable<Uri> uris) { in asSet() argument
1710 uris.forEach(asSet::add); in asSet()
1729 public synchronized void onChange(boolean selfChange, Collection<Uri> uris, int flags) { in onChange() argument
[all …]
DContextTest.java1365 List<Uri> uris = new ArrayList<>(); in testCheckCallingOrSelfUriPermissions() local
1367 uris.add(uri1); in testCheckCallingOrSelfUriPermissions()
1369 uris.add(uri2); in testCheckCallingOrSelfUriPermissions()
1371 int[] retValue = mContext.checkCallingOrSelfUriPermissions(uris, in testCheckCallingOrSelfUriPermissions()
1596 List<Uri> uris = new ArrayList<>(); in testCheckUriPermissions() local
1598 uris.add(uri1); in testCheckUriPermissions()
1600 uris.add(uri2); in testCheckUriPermissions()
1603 int[] retValue = mContext.checkUriPermissions(uris, Binder.getCallingPid(), 0, in testCheckUriPermissions()
1609 retValue = mContext.checkUriPermissions(uris, Binder.getCallingPid(), in testCheckUriPermissions()
1805 List<Uri> uris = new ArrayList<>(); in testCheckCallingUriPermissions() local
[all …]
DActivityRequireContentUriPermissionFromCallerTest.java456 ArrayList<Uri> uris = new ArrayList<>(); in getTestIntent() local
457 uris.add(uri); in getTestIntent()
458 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); in getTestIntent()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_Video_MediaTest.java278 Uri[] uris = new Uri[videoIds.length]; in testIsoLocationRedaction() local
280 uris[i] = MediaProviderTestUtils.stageMedia(videoIds[i], mExternalVideo, "video/mp4"); in testIsoLocationRedaction()
283 for (int i = 0; i < uris.length; i++) { in testIsoLocationRedaction()
286 try (ParcelFileDescriptor pfd = mContentResolver.openFile(uris[i], "r", null); in testIsoLocationRedaction()
299 for (int i = 0; i < uris.length; i++) { in testIsoLocationRedaction()
300 MediaProviderTestUtils.clearOwner(uris[i]); in testIsoLocationRedaction()
302 try (ParcelFileDescriptor pfd = mContentResolver.openFile(uris[i], "r", null); in testIsoLocationRedaction()
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DResultsAssertionsUtils.java74 final List<Uri> uris = new ArrayList<>(); in assertPersistedGrant() local
77 uris.add(perm.getUri()); in assertPersistedGrant()
81 assertThat(uris).contains(uri); in assertPersistedGrant()
/cts/tests/tests/database/src/android/database/cts/
DContentObserverTest.java209 public void onChange(boolean selfChange, Collection<Uri> uris, int flags) { in onChange() argument
210 super.onChange(selfChange, uris, flags); in onChange()
/cts/hostsidetests/scopedstorage/redacturi/src/android/scopedstorage/cts/redacturi/
DRedactUriDeviceTest.java147 List<Uri> uris = new ArrayList<>(); in testRedactedUri_list() local
155 uris.add(MediaStore.scanFile(getContentResolver(), file)); in testRedactedUri_list()
159 uris); in testRedactedUri_list()
162 Uri uri = uris.get(i++); in testRedactedUri_list()
/cts/tests/tests/gameservice/src/android/service/games/
DGameServiceTest.java650 () -> getScreenshotsFromLastFiveSeconds(startTimeSecs), uris -> !uris.isEmpty()); in takeScreenshot_expectedScreenshotSaved()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java980 public static void deleteWithMediaProviderNoThrow(Uri... uris) { in deleteWithMediaProviderNoThrow() argument
981 for (Uri uri : uris) { in deleteWithMediaProviderNoThrow()