Searched refs:volumes (Results 1 – 22 of 22) sorted by relevance
168 String volumes = mDevice.executeShellCommand("sm list-volumes public"); in getPublicVolume() local169 while ((volumes == null || volumes.isEmpty() || !volumes.contains("mounted")) in getPublicVolume()172 volumes = mDevice.executeShellCommand("sm list-volumes public"); in getPublicVolume()175 if (volumes == null || volumes.isEmpty()) { in getPublicVolume()179 return volumes.split("[\n ]")[0].trim(); in getPublicVolume()
123 String[] volumes = {MediaStore.VOLUME_EXTERNAL_PRIMARY}; in testGetMediaGrantsForPackages() local126 new String[]{TEST_OWNER_PACKAGE_NAME}, TEST_USER_ID, mimeTypes, volumes)); in testGetMediaGrantsForPackages()136 new String[]{TEST_OWNER_PACKAGE_NAME2}, TEST_USER_ID, mimeTypes, volumes)); in testGetMediaGrantsForPackages()146 new String[]{"non.existent.package"}, TEST_USER_ID, mimeTypes, volumes)); in testGetMediaGrantsForPackages()161 String[] volumes = {MediaStore.VOLUME_EXTERNAL_PRIMARY}; in test_GetMediaGrantsForPackages_excludesIsTrashed() local166 new String[]{TEST_OWNER_PACKAGE_NAME}, TEST_USER_ID, mimeTypes, volumes)); in test_GetMediaGrantsForPackages_excludesIsTrashed()186 String[] volumes = {MediaStore.VOLUME_EXTERNAL_PRIMARY}; in test_GetMediaGrantsForPackages_excludesIsPending() local191 new String[]{TEST_OWNER_PACKAGE_NAME}, TEST_USER_ID, mimeTypes, volumes)); in test_GetMediaGrantsForPackages_excludesIsPending()214 String[] volumes = {MediaStore.VOLUME_EXTERNAL_PRIMARY}; in test_GetMediaGrantsForPackages_testMimeTypeFilter() local220 new String[]{TEST_OWNER_PACKAGE_NAME}, TEST_USER_ID, mimeTypes, volumes)); in test_GetMediaGrantsForPackages_testMimeTypeFilter()[all …]
76 List<StorageVolume> volumes = context. in testPublicVolumeDefaultFolders() local78 for (StorageVolume volume : volumes) { in testPublicVolumeDefaultFolders()89 volumes = context.getSystemService(StorageManager.class).getStorageVolumes(); in testPublicVolumeDefaultFolders()90 for (StorageVolume volume : volumes) { in testPublicVolumeDefaultFolders()
138 ArrayList<File> volumes = new ArrayList<>(vols.size()); in showMountedVolumes() local144 volumes.add(path); in showMountedVolumes()149 mCurrentPathView.setText(getString(R.string.volumes, volumes.size())); in showMountedVolumes()150 setFileList(volumes); in showMountedVolumes()
85 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in refresh() local86 volumes.sort(VolumeInfo.getDescriptionComparator()); in refresh()89 android.R.layout.simple_list_item_1, volumes.toArray())); in refresh()
362 String volumes = device.executeShellCommand("sm list-volumes public"); in waitForPublicVolume() local363 while ((volumes == null || volumes.isEmpty() || !volumes.contains("mounted")) in waitForPublicVolume()366 volumes = device.executeShellCommand("sm list-volumes public"); in waitForPublicVolume()369 if (volumes == null || volumes.isEmpty()) { in waitForPublicVolume()
559 String[] volumes = getVolumeList();560 if (volumes.length > 0) {561 qb.appendWhereStandalone(buildWhereVolumeIn(volumes));572 private String buildWhereVolumeIn(String[] volumes) {573 return String.format(WHERE_VOLUME_IN_PREFIX, bindList((Object[]) volumes));584 final String[] volumes = getVolumeList();585 if (volumes.length == 0) {
137 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in refresh() local138 volumes.sort(VolumeInfo.getDescriptionComparator()); in refresh()140 final List<VolumeInfo> privateVolumes = new ArrayList<>(volumes.size()); in refresh()141 final List<VolumeInfo> publicVolumes = new ArrayList<>(volumes.size()); in refresh()144 for (final VolumeInfo vol : volumes) { in refresh()
59 final List<VolumeInfo> volumes = storageManager.getVolumes(); in onCreate() local60 for (final VolumeInfo volume : volumes) { in onCreate()
119 final List<VolumeInfo> volumes = storageManager.getVolumes(); in formatAsPublic() local120 for (final VolumeInfo volume : volumes) { in formatAsPublic()
284 final List<VolumeInfo> volumes = mStorageManager.getVolumes(); in onRequestFormatAsPrivate() local285 for (final VolumeInfo volume : volumes) { in onRequestFormatAsPrivate()
120 public void refreshVolumes(CarAudioZoneVolumeInfo[] volumes) { in refreshVolumes() argument121 mVolumeList = volumes; in refreshVolumes()
1024 HashSet<String> volumes = new HashSet<>(); in testGetMediaCollectionInfoVolumeNames() local1025 volumes.add("foo"); in testGetMediaCollectionInfoVolumeNames()1026 volumes.add("bar"); in testGetMediaCollectionInfoVolumeNames()1027 when(mockVolumeCache.getExternalVolumeNames()).thenReturn(volumes); in testGetMediaCollectionInfoVolumeNames()
686 final StorageVolume[] volumes = StorageManager.getVolumeList(UserHandle.myUserId(), in isFilenameValid() local688 for (StorageVolume volume : volumes) { in isFilenameValid()
181 …ring QUERY_ARG_INCLUDE_RECENTLY_UNMOUNTED_VOLUMES = "android:query-arg-recently-unmounted-volumes";
1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...