Home
last modified time | relevance | path

Searched refs:grantResults (Results 1 – 25 of 53) 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/Car/SystemUpdater/src/com/android/car/systemupdater/
DSystemUpdaterActivity.java91 int[] grantResults) { in onRequestPermissionsResult() argument
92 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
94 if (grantResults.length == 0) { in onRequestPermissionsResult()
97 for (int grantResult : 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/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.java94 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
99 && grantResults.length > 0 in onRequestPermissionsResult()
100 && grantResults[0] == PackageManager.PERMISSION_GRANTED; in onRequestPermissionsResult()
DWallpaperPickerDelegate.java402 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
406 && grantResults.length > 0) { in onRequestPermissionsResult()
407 if (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/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/services/Telephony/testapps/SmsManagerTestApp/src/com/android/phone/testapps/smsmanagertestapp/
DSmsManagerTestApp.java102 int[] grantResults) { in onRequestPermissionsResult() argument
105 if (grantResults.length > 0 in onRequestPermissionsResult()
106 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { 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/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/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/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsFragment.java347 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument
349 if (grantResults.length >= 1 && PackageManager.PERMISSION_GRANTED == grantResults[0]) { in onRequestPermissionsResult()

123