Home
last modified time | relevance | path

Searched refs:Manifest (Results 1 – 25 of 27) sorted by relevance

12

/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyPermissionUtil.java19 import android.Manifest;
47 Manifest.permission_group.CALENDAR, Manifest.permission_group.CAMERA,
48 Manifest.permission_group.CONTACTS, Manifest.permission_group.LOCATION,
49 Manifest.permission_group.SENSORS, Manifest.permission_group.SMS,
50 Manifest.permission_group.PHONE, Manifest.permission_group.MICROPHONE,
51 Manifest.permission_group.STORAGE
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/
DMainActivity.java26 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/
DMainActivity.java21 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/
DMainActivity.java21 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/
DPhonePermissionRequestActivity.java19 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()
DIncomingRequestPhoneService.java19 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()
DMainPhoneActivity.java19 import android.Manifest;
169 ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) in onResume()
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DPermissionRequestFragment.java19 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/
DCalendarWatchFacePermissionActivity.java3 import android.Manifest;
35 new String[]{Manifest.permission.READ_CALENDAR}, in onClickEnablePermission()
DCalendarWatchFaceService.java19 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/
Dmanifest-library.mf1 Manifest-Version: 1.0
Dmanifest-tests.mf1 Manifest-Version: 1.0
/development/tools/apkcheck/etc/
Dmanifest.txt1 Manifest-Version: 1.0
/development/tools/rmtypedefs/etc/
Dmanifest.txt1 Manifest-Version: 1.0
/development/samples/ApiDemos/src/com/example/android/apis/content/
DMediaContentObserver.java19 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/
DAttractionListActivity.java19 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/
DIncomingRequestWearService.java19 import android.Manifest;
86 ActivityCompat.checkSelfPermission(this, Manifest.permission.BODY_SENSORS) in promptUserForSensorPermission()
107 ActivityCompat.checkSelfPermission(this, Manifest.permission.BODY_SENSORS) in respondWithSensorInformation()
DMainWearActivity.java19 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/WiFiDirectDemo/src/com/example/android/wifidirect/
DWiFiDirectActivity.java19 import android.Manifest;
101 && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) in onCreate()
103 requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION}, in onCreate()
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DMainActivity.java19 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/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DHdrViewfinderActivity.java19 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/
DUtils.java19 import android.Manifest;
65 context, Manifest.permission.ACCESS_FINE_LOCATION); in checkFineLocationPermission()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/
DWearableMainActivity.java31 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/
DCamera2BasicFragment.java19 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},
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java19 import android.Manifest;
80 Manifest.permission.CAMERA,
81 Manifest.permission.RECORD_AUDIO,

12