/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
BasePermissionActivity.java | 36 public final int[] grantResults; 38 public Result(int requestCode, String[] permissions, int[] grantResults) { 41 this.grantResults = grantResults; 58 int[] grantResults) { 60 mResult.offer(new Result(requestCode, permissions, grantResults), 5, TimeUnit.SECONDS);
|
/developers/build/prebuilts/gradle/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/ |
PermissionUtil.java | 34 public static boolean verifyPermissions(int[] grantResults) { 36 if(grantResults.length < 1){ 41 for (int result : grantResults) {
|
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
CalendarWatchFacePermissionActivity.java | 45 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 50 if ((grantResults.length == 1) 51 && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {
|
/developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/ |
PermissionUtil.java | 34 public static boolean verifyPermissions(int[] grantResults) { 36 if(grantResults.length < 1){ 41 for (int result : grantResults) {
|
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
CalendarWatchFacePermissionActivity.java | 45 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 50 if ((grantResults.length == 1) 51 && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {
|
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/ |
PermissionUtil.java | 34 public static boolean verifyPermissions(int[] grantResults) { 36 if(grantResults.length < 1){ 41 for (int result : grantResults) {
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
CalendarWatchFacePermissionActivity.java | 45 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 50 if ((grantResults.length == 1) 51 && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {
|
/packages/apps/Camera2/src/com/android/camera/ |
PermissionsActivity.java | 174 String permissions[], int[] grantResults) { 175 Log.v(TAG, "onPermissionsResult counts: " + permissions.length + ":" + grantResults.length); 182 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestCamera] == 190 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestMicrophone] == 198 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestStorage] == 207 if (grantResults.length > 0 && grantResults[mIndexPermissionRequestLocation] = [all...] |
/packages/apps/StorageManager/src/com/android/storagemanager/ |
DeletionHelperActivity.java | 58 int[] grantResults) { 59 super.onRequestPermissionsResult(requestCode, permissions, grantResults); 60 f.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
/cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/ |
PermissionActivity.java | 70 int[] grantResults) { 77 Log.d(TAG, "Received valid permission result: " + grantResults[0]); 78 sendResultBroadcast(grantResults[0]);
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
RegularSearchFragment.java | 136 int[] grantResults) { 139 if (grantResults != null && grantResults.length == 1 140 && PackageManager.PERMISSION_GRANTED == grantResults[0]) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/activity/ |
RequestPermissionsActivity.java | 63 int requestCode, String permissions[], int[] grantResults) { 65 && isAllGranted(permissions, grantResults)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
SpellCheckerSettingsActivity.java | 57 int requestCode, String[] permissions, int[] grantResults) { 59 requestCode, permissions, grantResults);
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
MediaContentObserver.java | 106 int[] grantResults) { 108 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
|
/frameworks/support/v13/java/android/support/v13/app/ |
FragmentCompat.java | 56 final int[] grantResults = new int[permissions.length]; 65 grantResults[i] = packageManager.checkPermission( 69 Arrays.fill(grantResults, PackageManager.PERMISSION_DENIED); 73 requestCode, permissions, grantResults); 144 * @param grantResults The grant results for the corresponding permissions 151 @NonNull int[] grantResults);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/ |
PermissionsActivity.java | 91 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 94 requestCode, permissions, grantResults);
|
PermissionsManager.java | 84 int requestCode, String[] permissions, int[] grantResults) { 88 boolean allGranted = PermissionsUtil.allGranted(grantResults);
|
PermissionsUtil.java | 67 public static boolean allGranted(@NonNull int[] grantResults) { 68 for (int result : grantResults) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
SettingsActivity.java | 85 public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { 86 PermissionsManager.get(this).onRequestPermissionsResult(requestCode, permissions, grantResults);
|
/packages/apps/TV/src/com/android/tv/onboarding/ |
OnboardingActivity.java | 116 @NonNull int[] grantResults) { 118 if (grantResults != null && grantResults.length > 0 119 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
|
/packages/experimental/PermissionApp/src/foo/bar/permission/ |
PermissionActivity.java | 174 int[] grantResults) { 177 if (grantResults[0] == PackageManager.PERMISSION_GRANTED) { 183 if (grantResults[0] == PackageManager.PERMISSION_GRANTED) { 190 if (grantResults[i] == PackageManager.PERMISSION_GRANTED) {
|
/developers/build/prebuilts/gradle/RuntimePermissionsWear/Application/src/main/java/com/example/android/wearable/runtimepermissions/ |
PhonePermissionRequestActivity.java | 84 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 87 + ", Results: " + grantResults;
|
/developers/samples/android/wearable/wear/RuntimePermissionsWear/Application/src/main/java/com/example/android/wearable/runtimepermissions/ |
PhonePermissionRequestActivity.java | 84 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 87 + ", Results: " + grantResults;
|
/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/ |
PhonePermissionRequestActivity.java | 84 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { 87 + ", Results: " + grantResults;
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
PermissionCheckActivity.java | 105 final int requestCode, final String permissions[], final int[] grantResults) { 107 // We do not use grantResults as some of the granted permissions might have been
|