/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyPermissionUtil.java | 19 import android.Manifest; 48 Manifest.permission_group.CALENDAR, Manifest.permission_group.CAMERA, 49 Manifest.permission_group.CONTACTS, Manifest.permission_group.LOCATION, 50 Manifest.permission_group.SENSORS, Manifest.permission_group.SMS, 51 Manifest.permission_group.PHONE, Manifest.permission_group.MICROPHONE, 52 Manifest.permission_group.STORAGE
|
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/ |
D | MainActivity.java | 26 import android.Manifest; 101 private static String[] PERMISSIONS_CONTACT = {Manifest.permission.READ_CONTACTS, 102 Manifest.permission.WRITE_CONTACTS}; 120 if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) in showCamera() 147 Manifest.permission.CAMERA)) { in requestCameraPermission() 159 new String[]{Manifest.permission.CAMERA}, in requestCameraPermission() 167 ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CAMERA}, in requestCameraPermission() 181 if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) in showContacts() 183 || ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_CONTACTS) in showContacts() 206 Manifest.permission.READ_CONTACTS) in requestContactsPermissions() [all …]
|
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/ |
D | MainActivity.java | 21 import android.Manifest; 103 if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) in showCameraPreview() 125 Manifest.permission.CAMERA)) { in requestCameraPermission() 135 new String[]{Manifest.permission.CAMERA}, in requestCameraPermission() 145 ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CAMERA}, in requestCameraPermission()
|
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/ |
D | MainActivity.java | 21 import android.Manifest; 112 ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CALENDAR) in onGetEventsClicked() 116 ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) in onGetEventsClicked() 144 Manifest.permission.READ_CALENDAR); in requestCalendarAndContactPermissions() 147 Manifest.permission.READ_CONTACTS); in requestCalendarAndContactPermissions() 164 Manifest.permission.READ_CALENDAR, in requestCalendarAndContactPermissions() 165 Manifest.permission.READ_CONTACTS}, in requestCalendarAndContactPermissions() 178 Manifest.permission.READ_CALENDAR, in requestCalendarAndContactPermissions() 179 Manifest.permission.READ_CONTACTS in requestCalendarAndContactPermissions()
|
/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/ |
D | PhonePermissionRequestActivity.java | 19 import android.Manifest; 56 if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) in onCreate() 70 new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, in onClickApprovePermissionRequest()
|
D | IncomingRequestPhoneService.java | 19 import android.Manifest; 75 ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) in promptUserForStoragePermission() 100 ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) in respondWithStorageInformation()
|
D | MainPhoneActivity.java | 19 import android.Manifest; 169 ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) in onResume()
|
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
D | PermissionRequestFragment.java | 19 import android.Manifest; 95 if (ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.CAMERA) in onResume() 127 if (shouldShowRequestPermissionRationale(Manifest.permission.CAMERA)) { in requestCameraPermission() 131 requestPermissions(new String[]{Manifest.permission.CAMERA}, REQUEST_CAMERA_PERMISSION); in requestCameraPermission() 205 requestPermissions(new String[]{Manifest.permission.CAMERA}, REQUEST_CAMERA_PERMISSION); in onOkClicked()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | CalendarWatchFacePermissionActivity.java | 3 import android.Manifest; 35 new String[]{Manifest.permission.READ_CALENDAR}, in onClickEnablePermission()
|
D | CalendarWatchFaceService.java | 19 import android.Manifest; 140 Manifest.permission.READ_CALENDAR) == PackageManager.PERMISSION_GRANTED; in onCreate() 206 Manifest.permission.READ_CALENDAR) == PackageManager.PERMISSION_GRANTED; in onVisibilityChanged()
|
/development/tools/bugreport/ |
D | manifest-tests.mf | 1 Manifest-Version: 1.0
|
D | manifest-library.mf | 1 Manifest-Version: 1.0
|
/development/tools/apkcheck/etc/ |
D | manifest.txt | 1 Manifest-Version: 1.0
|
/development/tools/rmtypedefs/etc/ |
D | manifest.txt | 1 Manifest-Version: 1.0
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | MediaContentObserver.java | 19 import android.Manifest; 81 if (checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) in onCreate() 83 requestPermissions(new String[] { Manifest.permission.READ_EXTERNAL_STORAGE }, in onCreate()
|
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/ |
D | AttractionListActivity.java | 19 import android.Manifest; 59 this, Manifest.permission.ACCESS_FINE_LOCATION)) { in onCreate() 133 new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_REQ); in requestFineLocationPermission()
|
/development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/ |
D | IncomingRequestWearService.java | 19 import android.Manifest; 86 ActivityCompat.checkSelfPermission(this, Manifest.permission.BODY_SENSORS) in promptUserForSensorPermission() 107 ActivityCompat.checkSelfPermission(this, Manifest.permission.BODY_SENSORS) in respondWithSensorInformation()
|
D | MainWearActivity.java | 19 import android.Manifest; 159 new String[]{Manifest.permission.BODY_SENSORS}, in onClickWearBodySensors() 197 ActivityCompat.checkSelfPermission(this, Manifest.permission.BODY_SENSORS) in onResume() 495 new String[]{Manifest.permission.BODY_SENSORS}, in launchPermissionDialogForPhone()
|
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/ |
D | MainActivity.java | 19 import android.Manifest; 185 ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO) in checkPermissions() 191 ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.RECORD_AUDIO}, in checkPermissions()
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
D | WiFiDirectActivity.java | 19 import android.Manifest; 101 && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) in onCreate() 103 requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, in onCreate()
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
D | WiFiServiceDiscoveryActivity.java | 4 import android.Manifest; 126 && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) in onCreate() 128 requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, in onCreate()
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
D | HdrViewfinderActivity.java | 19 import android.Manifest; 266 int permissionState = ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA); in checkCameraPermissions() 301 Manifest.permission.CAMERA); in requestCameraPermissions() 314 new String[]{Manifest.permission.CAMERA}, in requestCameraPermissions() 325 new String[]{Manifest.permission.CAMERA}, in requestCameraPermissions()
|
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/ |
D | Utils.java | 19 import android.Manifest; 65 context, Manifest.permission.ACCESS_FINE_LOCATION); in checkFineLocationPermission()
|
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ |
D | WearableMainActivity.java | 31 import android.Manifest; 149 ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) in onCreate() 248 new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, in onGpsPermissionClick()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 19 import android.Manifest; 464 if (FragmentCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.CAMERA)) { in requestCameraPermission() 467 FragmentCompat.requestPermissions(this, new String[]{Manifest.permission.CAMERA}, in requestCameraPermission() 603 if (ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.CAMERA) in openCamera() 1016 new String[]{Manifest.permission.CAMERA},
|