Home
last modified time | relevance | path

Searched refs:READ_EXTERNAL_STORAGE (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt23 import android.Manifest.permission.READ_EXTERNAL_STORAGE in <lambda>()
350 Permission(READ_EXTERNAL_STORAGE) in <lambda>()
356 verifyWhitelisted(TEST_PKG_NAME, READ_EXTERNAL_STORAGE) in <lambda>()
364 Permission(READ_EXTERNAL_STORAGE) in <lambda>()
370 verifyNotWhitelisted(TEST_PKG_NAME, READ_EXTERNAL_STORAGE) in <lambda>()
423 Permission(READ_EXTERNAL_STORAGE, isGranted = true, in <lambda>()
439 Permission(READ_EXTERNAL_STORAGE, isGranted = true, in <lambda>()
455 Permission(READ_EXTERNAL_STORAGE, in <lambda>()
471 Permission(READ_EXTERNAL_STORAGE, isGranted = true, in <lambda>()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DPermissionUtils.java21 import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
114 return checkPermissionForDataDelivery(context, READ_EXTERNAL_STORAGE, pid, uid, in checkPermissionReadStorage()
127 if (!checkPermissionForPreflight(context, READ_EXTERNAL_STORAGE, pid, uid, packageName)) { in checkPermissionReadAudio()
148 if (!checkPermissionForPreflight(context, READ_EXTERNAL_STORAGE, pid, uid, packageName)) { in checkPermissionReadVideo()
169 if (!checkPermissionForPreflight(context, READ_EXTERNAL_STORAGE, pid, uid, packageName)) { in checkPermissionReadImages()
354 case READ_EXTERNAL_STORAGE: in isRuntimePermission()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/utils/
DSoftRestrictedPermissionPolicy.java19 import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
48 case READ_EXTERNAL_STORAGE: in shouldShow()
75 case READ_EXTERNAL_STORAGE: in shouldShow()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DStandalonePreviewActivity.java75 new String[]{permission.READ_EXTERNAL_STORAGE}, in onCreate()
98 && permissions[0].equals(permission.READ_EXTERNAL_STORAGE) in onRequestPermissionsResult()
136 return getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGrantedForApp()
DWallpaperPickerDelegate.java84 private static final String READ_PERMISSION = permission.READ_EXTERNAL_STORAGE;
155 permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGranted()
/packages/providers/MediaProvider/tools/dialogs/src/com/android/providers/media/tools/dialogs/
DDialogsActivity.java19 import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
65 if (checkSelfPermission(READ_EXTERNAL_STORAGE) != PERMISSION_GRANTED in onCreate()
67 requestPermissions(new String[] { READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE }, 42); in onCreate()
/packages/apps/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/
DStoragePermissionAppsFragmentTest.kt19 import android.Manifest.permission.READ_EXTERNAL_STORAGE
30 READ_EXTERNAL_STORAGE
/packages/apps/Tag/src/com/android/apps/tag/record/
DUriRecord.java178 …activity.checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSI… in requestPermissionIfNeeded()
179 …tyCompat.shouldShowRequestPermissionRationale(activity, Manifest.permission.READ_EXTERNAL_STORAGE)) in requestPermissionIfNeeded()
182 … activity.requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1); in requestPermissionIfNeeded()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryComposerFragment.java67 private String[] permissions = new String[] {permission.READ_EXTERNAL_STORAGE};
87 if (!PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onCreateView()
214 && PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onActivityResult()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDeletionHelperSettings.java163 if (activity.checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in onActivityCreated()
166 new String[] {Manifest.permission.READ_EXTERNAL_STORAGE}, in onActivityCreated()
230 && getActivity().checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in onResume()
/packages/apps/Camera2/src/com/android/camera/
DPermissionsActivity.java122 if (checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in checkPermissions()
175 … permissionsToRequest[permissionsRequestIndex] = Manifest.permission.READ_EXTERNAL_STORAGE; in buildPermissionsRequest()
/packages/apps/Contacts/src/com/android/contacts/activities/
DRequestImportVCardPermissionsActivity.java33 permission.READ_EXTERNAL_STORAGE,
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DUtils.java27 android.Manifest.permission.READ_EXTERNAL_STORAGE
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageCategory.java116 return context.getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGranted()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DPickImageInfo.java48 Manifest.permission.READ_EXTERNAL_STORAGE, Process.myPid(), Process.myUid()) == in getThumbnailOfLastPhoto()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DPermissionFragment.java47 Manifest.permission.READ_EXTERNAL_STORAGE,
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DSystemUpdaterActivity.java44 Manifest.permission.READ_EXTERNAL_STORAGE,
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DMyPhotosViewHolder.java110 return context.getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGranted()
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewBrowserActivity.java93 sPermissions.put(RESOURCE_FILE_URL, Manifest.permission.READ_EXTERNAL_STORAGE); in sPermissions.put() argument
632 == checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE)) { in loadUrl()
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java237 return OsUtil.hasPermission(Manifest.permission.READ_EXTERNAL_STORAGE); in hasStoragePermission()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryMediaChooser.java201 new String[] { Manifest.permission.READ_EXTERNAL_STORAGE }, in setSelected()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DPumpActivity.java149 if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) in initialize()
/packages/apps/Nfc/src/com/android/nfc/
DBeamShareActivity.java224 … getApplicationContext().checkPermission(permission.READ_EXTERNAL_STORAGE, -1, uid) != in parseShareIntentAndFinish()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeController.kt219 if (perm == permission.READ_EXTERNAL_STORAGE && in <lambda>()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DMediaDb.java207 @RequiresPermission(Manifest.permission.READ_EXTERNAL_STORAGE)

12