Home
last modified time | relevance | path

Searched refs:requestPermissions (Results 1 – 25 of 55) sorted by relevance

123

/packages/apps/Contacts/src/com/android/contacts/activities/
DRequestPermissionsActivityBase.java73 requestPermissions(); in onCreate()
124 private void requestPermissions() { in requestPermissions() method in RequestPermissionsActivityBase
138 ActivityCompat.requestPermissions( in requestPermissions()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaPrefsFragment.java59 this::requestPermissions)); in onCreatePreferences()
94 private void requestPermissions(Context context) { in requestPermissions() method in TmaPrefsFragment
100 ((Activity) context).requestPermissions( in requestPermissions()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/
DPermissionsUtil.java59 public static void requestPermissions(Activity activity, int requestCode, in requestPermissions() method in PermissionsUtil
61 ActivityCompat.requestPermissions(activity, permissions, requestCode); in requestPermissions()
DPermissionsManager.java62 public synchronized void requestPermissions(@Nonnull PermissionsResultCallback callback, in requestPermissions() method in PermissionsManager
77 PermissionsUtil.requestPermissions(activity, requestId, permissionsArray); in requestPermissions()
DPermissionsActivity.java85 PermissionsUtil.requestPermissions(this, mPendingRequestCode, permissionsToRequest); in onResume()
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/dialogs/
DDialogsActivity.java263 requestPermissions(new String[]{Manifest.permission.CAMERA}, 1); in showPermissionDialog()
277 requestPermissions(new String[]{Manifest.permission.CAMERA, in showMultiPermissionDialog()
282 requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1); in showForegroundPermissionDialog()
286 requestPermissions(new String[]{Manifest.permission.ACCESS_BACKGROUND_LOCATION}, 1); in showBackgroundPermissionDialog()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrHalfSizedDialogFragment.java207 activity.requestPermissions( in onDismiss()
211 activity.requestPermissions( in onDismiss()
/packages/apps/SampleLocationAttribution/src/com/example/android/locationattribution/
DMainActivity.java135 ActivityCompat.requestPermissions(this,
141 ActivityCompat.requestPermissions(this,
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java236 requestPermissions(missingPermissions); in initPermissions()
250 private void requestPermissions(Set<String> permissions) { in requestPermissions() method in SensorsTestFragment
252 requestPermissions(permissions.toArray(new String[permissions.size()]), in requestPermissions()
/packages/apps/Tag/src/com/android/apps/tag/record/
DUriRecord.java173 activity.requestPermissions(new String[]{Manifest.permission.CALL_PHONE}, 1); in requestPermissionIfNeeded()
182 … activity.requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1); in requestPermissionIfNeeded()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPermissionsActivity.java30 requestPermissions(Utils.PERMISSIONS, REQUEST_CODE); in onCreate()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraMediaChooser.java272 mMediaPicker.requestPermissions(new String[] { Manifest.permission.CAMERA }, in requestCameraPermission()
277 mMediaPicker.requestPermissions(new String[] { Manifest.permission.RECORD_AUDIO }, in requestRecordAudioPermission()
DAudioMediaChooser.java117 mMediaPicker.requestPermissions(new String[] { Manifest.permission.RECORD_AUDIO }, in requestRecordAudioPermission()
DContactMediaChooser.java95 mMediaPicker.requestPermissions( in setSelected()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSpellCheckerSettingsFragment.java75 get(getActivity() /* context */).requestPermissions(this /* PermissionsResultCallback */, in onSharedPreferenceChanged()
/packages/apps/Messaging/src/com/android/messaging/ui/
DPermissionCheckActivity.java100 requestPermissions(missingPermissions, REQUIRED_PERMISSIONS_REQUEST_CODE); in tryRequestPermission()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DPermissionFragment.java110 requestPermissions(missing.toArray(new String[0]), REQUEST_REQUIRED_PERMISSIONS); in requestMissingRequiredPermissions()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DSystemUpdaterActivity.java55 ActivityCompat.requestPermissions(this, REQUIRED_STORAGE_PERMISSIONS, in onCreate()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DStandalonePreviewActivity.java78 requestPermissions( in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DCorrectionSettingsFragment.java135 PermissionsManager.get(getActivity() /* context */).requestPermissions( in onSharedPreferenceChanged()
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DCurrentVoicemailGreetingActivity.java93 ActivityCompat.requestPermissions( in onStart()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
DNewSearchFragment.java373 requestPermissions(deniedPermissions, READ_CONTACTS_PERMISSION_REQUEST_CODE); in onEmptyViewActionButtonClicked()
442 requestPermissions(deniedPermissions, LOCATION_PERMISSION_REQUEST_CODE); in requestLocationPermission()
/packages/apps/Dialer/java/com/android/dialer/interactions/
DPhoneNumberInteraction.java230 ActivityCompat.requestPermissions( in startInteraction()
242 ActivityCompat.requestPermissions( in startInteraction()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCallActivity.java107 requestPermissions(new String[] {permission.SEND_SMS}, REQUEST_CODE_SEND_SMS); in onMessageFragmentSendMessage()
/packages/apps/Car/Calendar/src/com/android/car/calendar/
DCarCalendarActivity.java126 requestPermissions(new String[] {permission}, /* requestCode= */ 0); in runWithPermission()

123