Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/
DDropTarget.java137 private final boolean requestPermissions; field in DropTarget.OnDragUriListener
139 public OnDragUriListener(boolean requestPermissions) { in OnDragUriListener() argument
140 this.requestPermissions = requestPermissions; in OnDragUriListener()
167 accessContent(event, RESULT_KEY_DROP_RESULT, requestPermissions); in onDrag()
182 private void accessContent(DragEvent event, String resultKey, boolean requestPermissions) { in accessContent() argument
185 result = processDrop(event, requestPermissions); in accessContent()
195 private String processDrop(DragEvent event, boolean requestPermissions) { in processDrop() argument
213 if (requestPermissions) { in processDrop()
267 OnDragUriReadListener(boolean requestPermissions) { in OnDragUriReadListener() argument
268 super(requestPermissions); in OnDragUriReadListener()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDropTarget.java140 private final boolean requestPermissions; field in DropTarget.OnDragUriListener
142 public OnDragUriListener(boolean requestPermissions) { in OnDragUriListener() argument
143 this.requestPermissions = requestPermissions; in OnDragUriListener()
170 accessContent(event, RESULT_KEY_DROP_RESULT, requestPermissions); in onDrag()
185 private void accessContent(DragEvent event, String resultKey, boolean requestPermissions) { in accessContent() argument
188 result = processDrop(event, requestPermissions); in accessContent()
198 private String processDrop(DragEvent event, boolean requestPermissions) { in processDrop() argument
216 if (requestPermissions) { in processDrop()
270 OnDragUriReadListener(boolean requestPermissions) { in OnDragUriReadListener() argument
271 super(requestPermissions); in OnDragUriReadListener()
/cts/apps/hotspot/src/com/android/cts/hotspot/
DMainActivity.java16 ActivityCompat.requestPermissions( in onCreate()
22 ActivityCompat.requestPermissions( in onCreate()
/cts/tests/tests/hibernation/AutoRevokeQApp/src/android/hibernation/cts/autorevokeqapp/
DMainActivity.kt27 requestPermissions(arrayOf("android.permission.READ_CALENDAR"), 0) in onCreate()
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/
DPermissionTestActivity.java38 requestPermissions(permissions, 10001); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21254/helper-app/src/android/security/cts/CVE_2023_21254_helper/
DPocActivity.java32 requestPermissions(new String[] {RECORD_AUDIO}, REQUEST_CODE); in onResume()
/cts/tests/tests/security/SplitBluetoothPermissionTestApp/src/
DRequestPermissionActivity.kt30 requestPermissions(permissions, 1) in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21249/helper-app/src/android/security/cts/CVE_2023_21249_helper/
DPocActivity.java32 requestPermissions(new String[] {ACCESS_COARSE_LOCATION}, REQUEST_CODE); in onResume()
/cts/tests/tests/hibernation/AutoRevokeRApp/src/android/hibernation/cts/autorevokerapp/
DMainActivity.kt50 requestPermissions(arrayOf("android.permission.READ_CALENDAR"), 0) in onCreate()
/cts/tests/tests/hibernation/AutoRevokeSApp/src/android/hibernation/cts/autorevokesapp/
DMainActivity.kt50 requestPermissions(arrayOf("android.permission.READ_CALENDAR"), 0) in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0478/src/android/security/cts/CVE_2021_0478/
DPocActivity.java61 this.requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, 12); in requestPermission()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/
DPocActivity.java37 this.requestPermissions( in onCreate()
/cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/
DPermissionActivity.java58 requestPermissions(new String[] {mPermission}, PERMISSIONS_REQUEST_CODE); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DNotificationActivity.java83 ActivityCompat.requestPermissions(this, in onResume()
DLocationCheckerActivity.java110 ActivityCompat.requestPermissions(this, in requestLocationPermission()
DByodHelperActivity.java593 ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.CAMERA}, in requestCameraPermission()
603 ActivityCompat.requestPermissions(this, in requestLocationPermission()
614 ActivityCompat.requestPermissions(this, in requestPostNotificationsPermission()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPermissionGrantTest.java665 activity.requestPermissions(new String[]{GRANTABLE_PERMISSION}, /* requestCode= */ 0); in setPermissionPolicy_grant_automaticallyGrantsPermissions()
690 activity.requestPermissions(new String[]{GRANTABLE_PERMISSION}, /* requestCode= */ 0); in setPermissionPolicy_deny_automaticallyDeniesPermissions()
767 activity.requestPermissions(new String[]{ permission }, /* requestCode= */ 0); in setPermissionGrantStateDeny_autoGrantPermission_deniesPermissions()
797 activity.requestPermissions(new String[]{ permission }, /* requestCode= */ 0); in setPermissionPolicy_sensorPermissions_autoGrantPermission_denies()
823 activity.requestPermissions(new String[]{ READ_SMS }, /* requestCode= */ 0); in setPermissionPolicy_smsPermission_autoGrantPermission_denies()
851 activity.requestPermissions(new String[]{ permission }, /* requestCode= */ 0); in setPermissionGrantStateDeny_autoDenyPermission_deniesPermissions()
883 activity.requestPermissions( in setPermissionGrantStateDeny_promptPermission_deniesPermissions()
912 activity.requestPermissions( in setPermissionStateGranted_autoDenyPermission_grantsPermissions()
945 activity.requestPermissions( in setPermissionStateGranted_promptPermission_grantsPermissions()
981 activity.requestPermissions(new String[]{ permission }, /* requestCode= */ 0); in setSensorPermissionStateGranted_promptPermission_denyAsPermissionCantBeGrantedAutomatically()
[all …]
/cts/tests/tests/telephony/TestSmsApp/src/android/telephony/cts/sms/
DMainActivity.java39 requestPermissions( in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListActivity.java123 requestPermissions(permissionsToRequest, CTS_VERIFIER_PERMISSION_REQUEST); in onCreate()
143 requestPermissions( in onRequestPermissionsResult()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DRenouncedPermissionsTest.kt98 activity.requestPermissions(arrayOf(Manifest.permission.READ_CONTACTS), 1) in testCannotRequestRenouncePermissions()
/cts/tests/tests/companion/CompanionDeviceTestApp/src/android.os.cts.companiondevicetestapp/
DCompanionDeviceTestAppActivity.kt167 requestPermissions(arrayOf(ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION), 10) in <lambda>()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DIdentityCredentialAuthentication.java83 requestPermissions(new String[]{Manifest.permission.USE_BIOMETRIC}, in onCreate()
DIdentityCredentialAuthenticationMultiDocument.java110 requestPermissions(new String[]{Manifest.permission.USE_BIOMETRIC}, in onCreate()
DFingerprintBoundKeysTest.java97 requestPermissions(new String[]{Manifest.permission.USE_BIOMETRIC}, in onCreate()
/cts/tests/tests/companion/PermissionsSyncTestApp/src/android/os/cts/companiontestapp/
DMainActivity.java178 requestPermissions(new String[]{ Manifest.permission.BLUETOOTH_CONNECT }, in requestBluetoothPermissionIfNeeded()

12