Home
last modified time | relevance | path

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

123

/packages/apps/Camera2/src/com/android/camera/
DPermissionsActivity.java165 String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
166 Log.v(TAG, "onPermissionsResult counts: " + permissions.length + ":" + grantResults.length); in onRequestPermissionsResult()
173 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestCamera] == in onRequestPermissionsResult()
181 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestMicrophone] == in onRequestPermissionsResult()
189 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestLocation] == 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/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/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/WallpaperPicker2/src/com/android/wallpaper/picker/
DStandalonePreviewActivity.java98 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
103 && grantResults.length > 0 in onRequestPermissionsResult()
104 && 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/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/apps/Car/Calendar/src/com/android/car/calendar/
DCarCalendarActivity.java132 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
133 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
136 int grantResult = grantResults[i]; 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/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/services/Telephony/testapps/SmsManagerTestApp/src/com/android/phone/testapps/smsmanagertestapp/
DSmsManagerTestApp.java108 int[] grantResults) { in onRequestPermissionsResult() argument
111 if (grantResults.length > 0 in onRequestPermissionsResult()
112 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDeletionHelperActivity.java81 int requestCode, String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
82 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
83 mFragment.onRequestPermissionsResult(requestCode, permissions, grantResults); 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/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/apps/Dialer/java/com/android/dialer/searchfragment/list/
DNewSearchFragment.java347 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
349 if (grantResults.length >= 1 && PackageManager.PERMISSION_GRANTED == grantResults[0]) { in onRequestPermissionsResult()
355 if (grantResults.length >= 1 && PackageManager.PERMISSION_GRANTED == grantResults[0]) { 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/Contacts/src/com/android/contacts/activities/
DRequestPermissionsActivity.java80 int requestCode, String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
82 && isAllGranted(permissions, grantResults)) { in onRequestPermissionsResult()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettingsActivity.java85 …public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
86 … PermissionsManager.get(this).onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DAudioMediaChooser.java123 final int requestCode, final String permissions[], final int[] grantResults) { in onRequestPermissionsResult() argument
125 final boolean permissionGranted = grantResults[0] == PackageManager.PERMISSION_GRANTED; in onRequestPermissionsResult()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryComposerFragment.java253 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
258 && grantResults.length > 0 in onRequestPermissionsResult()
259 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DGrantPermissionsActivity.java475 int[] grantResults = new int[resultPermissions.length];
481 grantResults[i] = pm.checkPermission(resultPermissions[i], mCallingPackage);
484 grantResults = new int[0];
488 result.putExtra(PackageManager.EXTRA_REQUEST_PERMISSIONS_RESULTS, grantResults);

123