Home
last modified time | relevance | path

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

123

/packages/apps/Camera2/src/com/android/camera/
DPermissionsActivity.java174 String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
175 Log.v(TAG, "onPermissionsResult counts: " + permissions.length + ":" + grantResults.length); in onRequestPermissionsResult()
182 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestCamera] == in onRequestPermissionsResult()
190 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestMicrophone] == in onRequestPermissionsResult()
198 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestStorage] == in onRequestPermissionsResult()
207 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestLocation] == in onRequestPermissionsResult()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesDeletionActivity.java65 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
69 if (grantResults.length > 0 in onRequestPermissionsResult()
70 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
83 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.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/TV/src/com/android/tv/ui/
DDetailsActivity.java182 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
186 if (grantResults.length > 0 in onRequestPermissionsResult()
187 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
198 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DLiveTvTunerSetupActivity.java95 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
97 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
DLocationFragment.java151 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
153 if (grantResults.length > 0 in onRequestPermissionsResult()
154 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { 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()
/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/services/Telephony/testapps/SmsManagerTestApp/src/com/android/phone/testapps/smsmanagertestapp/
DSmsManagerTestApp.java98 int[] grantResults) { in onRequestPermissionsResult() argument
101 if (grantResults.length > 0 in onRequestPermissionsResult()
102 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/packages/apps/TV/src/com/android/tv/onboarding/
DOnboardingActivity.java125 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument
127 if (grantResults.length > 0 && 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