Home
last modified time | relevance | path

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

12

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt23 import android.Manifest.permission.READ_EXTERNAL_STORAGE in <lambda>()
353 Permission(READ_EXTERNAL_STORAGE) in <lambda>()
359 verifyWhitelisted(TEST_PKG_NAME, READ_EXTERNAL_STORAGE) in <lambda>()
367 Permission(READ_EXTERNAL_STORAGE) in <lambda>()
373 verifyNotWhitelisted(TEST_PKG_NAME, READ_EXTERNAL_STORAGE) in <lambda>()
426 Permission(READ_EXTERNAL_STORAGE, isGranted = true, in <lambda>()
442 Permission(READ_EXTERNAL_STORAGE, isGranted = true, in <lambda>()
458 Permission(READ_EXTERNAL_STORAGE, in <lambda>()
474 Permission(READ_EXTERNAL_STORAGE, isGranted = true, in <lambda>()
/packages/modules/Permission/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/providers/MediaProvider/src/com/android/providers/media/util/
DPermissionUtils.java25 import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
114 return checkPermissionForDataDelivery(context, READ_EXTERNAL_STORAGE, pid, uid, in checkPermissionReadStorage()
151 if (!checkPermissionForPreflight(context, READ_EXTERNAL_STORAGE, pid, uid, packageName)) { in checkPermissionReadAudio()
172 if (!checkPermissionForPreflight(context, READ_EXTERNAL_STORAGE, pid, uid, packageName)) { in checkPermissionReadVideo()
193 if (!checkPermissionForPreflight(context, READ_EXTERNAL_STORAGE, pid, uid, packageName)) { in checkPermissionReadImages()
441 case READ_EXTERNAL_STORAGE: in isRuntimePermission()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DStandalonePreviewActivity.java79 new String[]{permission.READ_EXTERNAL_STORAGE}, in onCreate()
102 && permissions[0].equals(permission.READ_EXTERNAL_STORAGE) in onRequestPermissionsResult()
160 return getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGrantedForApp()
DWallpaperPickerDelegate.java86 private static final String READ_PERMISSION = permission.READ_EXTERNAL_STORAGE;
167 permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGranted()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/
DStoragePermissionAppsFragmentTest.kt19 import android.Manifest.permission.READ_EXTERNAL_STORAGE
33 READ_EXTERNAL_STORAGE
/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/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/Contacts/src/com/android/contacts/activities/
DRequestImportVCardPermissionsActivity.java33 permission.READ_EXTERNAL_STORAGE,
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPermissionActivityTest.java23 import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
85 AppOpsManager.permissionToOp(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()
DWallpaperSectionController.java18 import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
281 || isPermissionGranted(mAppContext, READ_EXTERNAL_STORAGE); in canShowCurrentWallpaper()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DPermissionFragment.java47 Manifest.permission.READ_EXTERNAL_STORAGE,
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DPickImageInfo.java48 Manifest.permission.READ_EXTERNAL_STORAGE, Process.myPid(), Process.myUid()) == in getThumbnailOfLastPhoto()
/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.java111 return context.getPackageManager().checkPermission(permission.READ_EXTERNAL_STORAGE, in isReadExternalStoragePermissionGranted()
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java237 return OsUtil.hasPermission(Manifest.permission.READ_EXTERNAL_STORAGE); in hasStoragePermission()
/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/ui/mediapicker/
DGalleryMediaChooser.java219 new String[] { Manifest.permission.READ_EXTERNAL_STORAGE }, in setSelected()
/packages/providers/MediaProvider/tests/transcode/src/com/android/providers/media/transcode/
DTranscodeTest.java93 Manifest.permission.READ_EXTERNAL_STORAGE); in setUp()
94 TranscodeTestUtils.pollForPermission(Manifest.permission.READ_EXTERNAL_STORAGE, true); in setUp()
/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()

12