/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TriggerContentTest.java | 188 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/ |
D | TestService.java | 53 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/ |
D | SharesheetAdditionalContentProvider.java | 70 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/ |
D | Settings_ConfigTest.java | 540 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/ |
D | TestRcsCapabilityExchangeImpl.java | 43 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()
|
D | RcsUceAdapterTest.java | 602 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 …]
|
D | EabControllerTest.java | 464 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in fakeNetworkResult() argument
|
D | EabBulkCapabilityUpdaterTest.java | 563 capabilityExchangeImpl.setSubscribeOperation((uris, cb) -> { in fakeNetworkResult() argument
|
D | ImsServiceTest.java | 2779 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/ |
D | DeviceTest.java | 160 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/ |
D | ComponentCallerTest.java | 379 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/ |
D | SliceManagerTest.java | 113 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/ |
D | ContentResolverTest.java | 1671 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 …]
|
D | ContextTest.java | 1365 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 …]
|
D | ActivityRequireContentUriPermissionFromCallerTest.java | 456 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/ |
D | MediaStore_Video_MediaTest.java | 278 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/ |
D | ResultsAssertionsUtils.java | 74 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/ |
D | ContentObserverTest.java | 209 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/ |
D | RedactUriDeviceTest.java | 147 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/ |
D | GameServiceTest.java | 650 () -> getScreenshotsFromLastFiveSeconds(startTimeSecs), uris -> !uris.isEmpty()); in takeScreenshot_expectedScreenshotSaved()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 980 public static void deleteWithMediaProviderNoThrow(Uri... uris) { in deleteWithMediaProviderNoThrow() argument 981 for (Uri uri : uris) { in deleteWithMediaProviderNoThrow()
|