Home
last modified time | relevance | path

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

123

/packages/modules/Permission/tests/cts/permissionui/UsePermissionAppLatest/src/android/permissionui/cts/usepermission/
DRequestPermissionsActivity.kt42 requestPermissions(permissions, 1, Context.DEVICE_ID_DEFAULT) in onCreate()
44 requestPermissions(permissions, 1) in onCreate()
72 requestPermissions(permissions, 1) in handleResult()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DNotificationPermissionTest.kt288 val intent = createIntent(requestPermissions = true, intentAction = BROADCAST_ACTION) in mergeAppPermissionRequestIntoNotificationAndVerifyResult()
307 launchApp(createChannels = false, requestPermissions = true) in mergeNotificationRequestIntoAppPermissionRequestAndVerifyResult()
354 requestPermissions: Boolean = false, in createIntent()
369 intent.putExtra(EXTRA_REQUEST_OTHER_PERMISSIONS, requestPermissions) in createIntent()
380 requestPermissions: Boolean = false, in launchApp()
391 requestPermissions, in launchApp()
/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/modules/Permission/tests/cts/permission/AppThatRequestCustomCameraPermission/src/android/permission/cts/appthatrequestcustomcamerapermission/
DRequestCameraPermission.java50 requestPermissions(new String[] {CAMERA}, 0); in onCreate()
69 requestPermissions(new String[] {CUSTOM_PERMISSION}, 1), 500); in onRequestPermissionsResult()
/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/services/Car/tests/AdasLocationTestApp/src/com/google/android/car/adaslocation/
DAdasLocationActivity.java173 requestPermissions(missingPermissions); in initPermissions()
183 private void requestPermissions(Set<String> permissions) { in requestPermissions() method in AdasLocationActivity
184 requestPermissions(permissions.toArray(new String[permissions.size()]), in requestPermissions()
/packages/modules/Permission/tests/cts/permissionui/CreateNotificationChannelsApp31/src/android/permissionui/cts/usepermission/
DCreateNotificationChannelsActivity.kt96 requestPermissions(arrayOf(Manifest.permission.RECORD_AUDIO), 0) in handleIntent()
100 requestPermissions(arrayOf(Manifest.permission.POST_NOTIFICATIONS), 0) in handleIntent()
/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/modules/Permission/tests/cts/permission/AppThatRequestPermissionAandC/src/android/permission/cts/appthatrequestpermission/
DRequestPermission.java27 requestPermissions(new String[] {"android.permission.cts.appthatrequestpermission.A", in onCreate()
/packages/modules/Permission/tests/cts/permission/AppThatRequestPermissionAandB/src/android/permission/cts/appthatrequestpermission/
DRequestPermission.java27 requestPermissions(new String[] {"android.permission.cts.appthatrequestpermission.A", in onCreate()
/packages/modules/Permission/tests/cts/permission/AppThatRequestOneTimePermission/src/android/permission/cts/appthatrequestpermission/
DRequestPermission.java27 requestPermissions(new String[] {"android.permission.ACCESS_FINE_LOCATION"}, 0); in onCreate()
/packages/providers/MediaProvider/tools/dialogs/src/com/android/providers/media/tools/dialogs/
DDialogsActivity.java72 requestPermissions(new String[]{READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE}, 42); in onCreate()
81 requestPermissions( in onCreate()
/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/modules/Permission/tests/cts/permissionui/AppThatStartsTwoPermissionDialogs/src/android/permissionui/cts/usepermission/
DActivity2.kt27 requestPermissions(arrayOf(Manifest.permission.CALL_PHONE), 3) in onCreate()
DActivity1.kt29 requestPermissions(arrayOf(READ_CONTACTS), 2) in onCreate()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPermissionsActivity.java30 requestPermissions(Utils.PERMISSIONS, REQUEST_CODE); in onCreate()
/packages/modules/Permission/tests/cts/permission/AppThatDefinesUndefinedPermissionGroupElement/src/android/permission/cts/appthatrequestpermission/
DRequestPermissions.kt33 requestPermissions(permissions, 0) in onCreate()
/packages/modules/Permission/tests/cts/permissionui/UsePermissionApp30WithBackground/src/android/permissionui/cts/usepermission/
DRequestPermissionsActivity.kt34 requestPermissions(permissions, 1) in onCreate()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java254 requestPermissions(missingPermissions); in initPermissions()
268 private void requestPermissions(Set<String> permissions) { in requestPermissions() method in SensorsTestFragment
270 requestPermissions(permissions.toArray(new String[permissions.size()]), in requestPermissions()
/packages/modules/Permission/tests/cts/permissionmultidevice/AccessRemoteDeviceCameraApp/src/android/permissionmultidevice/cts/accessremotedevicecamera/
DRequestPermissionActivity.kt39 requestPermissions(DEVICE_AWARE_PERMISSIONS, 1001, deviceId) in onCreate()
/packages/modules/Permission/tests/cts/permissionui/UsePermissionAppWithOverlay/src/android/permissionui/cts/usepermission/
DRequestPermissionsActivity.kt69 requestPermissions(permissions, 1) in eventuallyRequestPermission()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSpellCheckerSettingsFragment.java75 get(getActivity() /* context */).requestPermissions(this /* PermissionsResultCallback */, in onSharedPreferenceChanged()

123