Home
last modified time | relevance | path

Searched refs:grantResults (Results 1 – 25 of 61) sorted by relevance

123

/packages/modules/Permission/tests/cts/permissionui/UsePermissionAppLatest/src/android/permissionui/cts/usepermission/
DRequestPermissionsActivity.kt52 grantResults: IntArray in onRequestPermissionsResult()
54 handleResult(permissions, grantResults) in onRequestPermissionsResult()
60 grantResults: IntArray, in onRequestPermissionsResult()
63 handleResult(permissions, grantResults, deviceId) in onRequestPermissionsResult()
68 grantResults: IntArray, in handleResult()
81 putExtra("$packageName.GRANT_RESULTS", grantResults) in handleResult()
/packages/modules/Permission/tests/cts/permission/AppThatRequestCustomCameraPermission/src/android/permission/cts/appthatrequestcustomcamerapermission/
DRequestCameraPermission.java59 int[] grantResults) { in onRequestPermissionsResult() argument
60 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
63 if (grantResults[0] != PERMISSION_GRANTED) { in onRequestPermissionsResult()
72 if (grantResults[0] != PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesDeletionActivity.java63 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
67 if (grantResults.length > 0 in onRequestPermissionsResult()
68 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
81 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/modules/Permission/tests/cts/permissionui/UsePermissionApp30WithBackground/src/android/permissionui/cts/usepermission/
DRequestPermissionsActivity.kt40 grantResults: IntArray in onRequestPermissionsResult()
42 super.onRequestPermissionsResult(requestCode, permissions, grantResults) in onRequestPermissionsResult()
48 putExtra("$packageName.GRANT_RESULTS", grantResults) in onRequestPermissionsResult()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DPermissionFragment.java70 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
74 for (int i = 0; i < grantResults.length; ++i) { in onRequestPermissionsResult()
75 if (grantResults[i] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
93 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DSystemUpdaterActivity.java96 int[] grantResults) { in onRequestPermissionsResult() argument
97 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
99 if (grantResults.length == 0) { in onRequestPermissionsResult()
102 for (int grantResult : grantResults) { in onRequestPermissionsResult()
/packages/modules/Permission/tests/cts/permissionui/UsePermissionAppWithOverlay/src/android/permissionui/cts/usepermission/
DRequestPermissionsActivity.kt77 grantResults: IntArray in onRequestPermissionsResult()
79 super.onRequestPermissionsResult(requestCode, permissions, grantResults) in onRequestPermissionsResult()
85 putExtra("$packageName.GRANT_RESULTS", grantResults) in onRequestPermissionsResult()
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/app/src/main/java/com/android/bluetooth/channelsoundingtestapp/
DMainActivity.java78 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
79 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
82 for (int r : grantResults) { in onRequestPermissionsResult()
/packages/apps/TV/src/com/android/tv/ui/
DDetailsActivity.java184 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
188 if (grantResults.length > 0 in onRequestPermissionsResult()
189 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
200 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DCallContactActivity.java129 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
135 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DSignInActivity.java121 int[] grantResults) { in onRequestPermissionsResult() argument
126 for (int i = 0; i < grantResults.length; i++) { in onRequestPermissionsResult()
127 if (grantResults[i] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/modules/Permission/tests/cts/permissionui/CreateNotificationChannelsApp31/src/android/permissionui/cts/usepermission/
DCreateNotificationChannelsActivity.kt165 grantResults: IntArray in onRequestPermissionsResult()
167 super.onRequestPermissionsResult(requestCode, permissions, grantResults) in onRequestPermissionsResult()
170 if (grantResults[i] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DStandalonePreviewActivity.java107 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
112 && grantResults.length > 0 in onRequestPermissionsResult()
113 && grantResults[0] == PackageManager.PERMISSION_GRANTED; in onRequestPermissionsResult()
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DCurrentVoicemailGreetingActivity.java121 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
122 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
125 permissionToRecordAccepted = grantResults[0] == PackageManager.PERMISSION_GRANTED; in onRequestPermissionsResult()
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DAddPrintersActivity.java57 int[] grantResults) { in onRequestPermissionsResult() argument
62 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCallActivity.java124 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
129 && grantResults.length > 0 in onRequestPermissionsResult()
130 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/modules/Permission/tests/cts/permissionmultidevice/AccessRemoteDeviceCameraApp/src/android/permissionmultidevice/cts/accessremotedevicecamera/
DRequestPermissionActivity.kt45 grantResults: IntArray, in onRequestPermissionsResult()
53 putIntArray(TestConstants.PERMISSION_RESULT_KEY_GRANT_RESULTS, grantResults) in onRequestPermissionsResult()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSpellCheckerSettingsActivity.java57 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
59 requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/
DPermissionsUtil.java67 public static boolean allGranted(@NonNull int[] grantResults) { in allGranted() argument
68 for (int result : grantResults) { in allGranted()
DPermissionsManager.java84 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
88 boolean allGranted = PermissionsUtil.allGranted(grantResults); in onRequestPermissionsResult()
DPermissionsActivity.java91 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
94 requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/apps/Camera2/src/com/android/camera/
DPermissionsActivity.java128 String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
129 Log.v(TAG, "onPermissionsResult counts: " + permissions.length + ":" + grantResults.length); in onRequestPermissionsResult()
138 int result = grantResults[i]; in onRequestPermissionsResult()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DLocationFragment.java147 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
149 if (grantResults.length > 0 in onRequestPermissionsResult()
150 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/apps/TV/src/com/android/tv/onboarding/
DOnboardingActivity.java133 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
135 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/apps/Contacts/src/com/android/contacts/activities/
DRequestPermissionsActivity.java82 int requestCode, String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
84 && isAllGranted(permissions, grantResults)) { in onRequestPermissionsResult()

123