/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/ |
D | PermissionUtil.java | 34 public static boolean verifyPermissions(int[] grantResults) { in verifyPermissions() argument 36 if(grantResults.length < 1){ in verifyPermissions() 41 for (int result : grantResults) { in verifyPermissions()
|
D | MainActivity.java | 265 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 273 if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult() 291 if (PermissionUtil.verifyPermissions(grantResults)) { in onRequestPermissionsResult() 304 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | CalendarWatchFacePermissionActivity.java | 45 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 50 if ((grantResults.length == 1) in onRequestPermissionsResult() 51 && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) { in onRequestPermissionsResult()
|
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/ |
D | MainActivity.java | 80 int[] grantResults) { in onRequestPermissionsResult() argument 84 if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/ |
D | PhonePermissionRequestActivity.java | 84 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 87 + ", Results: " + grantResults; in onRequestPermissionsResult()
|
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
D | PermissionRequestFragment.java | 111 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 115 if (permissions.length != 1 || grantResults.length != 1 || in onRequestPermissionsResult() 116 grantResults[0] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult() 122 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | MediaContentObserver.java | 106 int[] grantResults) { in onRequestPermissionsResult() argument 108 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/ |
D | MainActivity.java | 304 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 316 if ((grantResults.length == 2) in onRequestPermissionsResult() 317 && (grantResults[0] == PackageManager.PERMISSION_GRANTED) in onRequestPermissionsResult() 318 && (grantResults[1] == PackageManager.PERMISSION_GRANTED)) { in onRequestPermissionsResult() 332 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
|
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/ |
D | AttractionListActivity.java | 119 int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument 122 if (grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
D | MainActivity.java | 199 String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument 201 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/ |
D | MainWearActivity.java | 319 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 322 + ", Results: " + grantResults; in onRequestPermissionsResult() 328 if ((grantResults.length == 1) in onRequestPermissionsResult() 329 && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) { in onRequestPermissionsResult()
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
D | WiFiDirectActivity.java | 74 int[] grantResults) { in onRequestPermissionsResult() argument 77 if (grantResults[0] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ |
D | WearableMainActivity.java | 464 int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 472 if ((grantResults.length == 1) in onRequestPermissionsResult() 473 && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) { in onRequestPermissionsResult()
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
D | WiFiServiceDiscoveryActivity.java | 91 int[] grantResults) { in onRequestPermissionsResult() argument 94 if (grantResults[0] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/ |
D | Camera2VideoFragment.java | 383 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 386 if (grantResults.length == VIDEO_PERMISSIONS.length) { in onRequestPermissionsResult() 387 for (int result : grantResults) { in onRequestPermissionsResult() 399 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
D | HdrViewfinderActivity.java | 335 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 338 if (grantResults.length <= 0) { in onRequestPermissionsResult() 342 } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 474 @NonNull int[] grantResults) { in onRequestPermissionsResult() argument 476 if (grantResults.length != 1 || grantResults[0] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult() 481 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | Camera2RawFragment.java | 659 …public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { in onRequestPermissionsResult() argument 661 for (int result : grantResults) { in onRequestPermissionsResult() 668 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
|