Home
last modified time | relevance | path

Searched refs:permissions (Results 1 – 25 of 2577) sorted by relevance

12345678910>>...104

/cts/tools/release-parser/tests/resources/
Dplatform.xml.pb.txt9 permissions {
12 permissions {
15 permissions {
24 permissions {
31 permissions {
38 permissions {
45 permissions {
52 permissions {
65 permissions {
74 permissions {
[all …]
Dandroid.hardware.vulkan.version.xml.pb.txt9 permissions {
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/
DUsePermissionTest29.java49 private BasePermissionActivity.Result requestPermissions(String[] permissions, in requestPermissions() argument
51 return super.requestPermissions(permissions, in requestPermissions()
67 String[] permissions, boolean... granted) {
69 permissions, granted);
80 String[] permissions = {ACCESS_FINE_LOCATION};
82 BasePermissionActivity.Result result = requestPermissions(permissions,
84 assertPermissionRequestResult(result, permissions, true);
92 String[] permissions = {ACCESS_BACKGROUND_LOCATION};
94 BasePermissionActivity.Result result = requestPermissions(permissions);
95 assertPermissionRequestResult(result, permissions, false);
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java123 assertEquals(Manifest.permission.READ_CALENDAR, result.permissions[0]); in testInteractiveGrant()
124 assertEquals(Manifest.permission.WRITE_CALENDAR, result.permissions[1]); in testInteractiveGrant()
147 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; in testRuntimeGroupGrantSpecificity() local
150 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantSpecificity()
164 permissions, new boolean[] {true}); in testRuntimeGroupGrantSpecificity()
179 String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS}; in testRuntimeGroupGrantExpansion() local
184 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantExpansion()
198 permissions, new boolean[] {true}); in testRuntimeGroupGrantExpansion()
211 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; in testCancelledPermissionRequest() local
214 BasePermissionActivity.Result result = requestPermissions(permissions, in testCancelledPermissionRequest()
[all …]
DBasePermissionActivity.java35 public final String[] permissions; field in BasePermissionActivity.Result
38 public Result(int requestCode, String[] permissions, int[] grantResults) { in Result() argument
40 this.permissions = permissions; in Result()
57 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument
60 mResult.offer(new Result(requestCode, permissions, grantResults), 5, TimeUnit.SECONDS); in onRequestPermissionsResult()
DBasePermissionsTest.java86 int requestCode, String[] permissions, boolean[] granted) { in assertPermissionRequestResult() argument
88 for (int i = 0; i < permissions.length; i++) { in assertPermissionRequestResult()
89 assertEquals(permissions[i], result.permissions[i]); in assertPermissionRequestResult()
272 String[] permissions, int requestCode, Class<?> clazz, Runnable postRequestAction) in requestPermissions() argument
281 activity.requestPermissions(permissions, requestCode); in requestPermissions()
346 protected void grantPermissions(String[] permissions) throws Exception { in grantPermissions() argument
347 setPermissionGrantState(permissions, true, false); in grantPermissions()
354 protected void revokePermissions(String[] permissions, boolean legacyApp) throws Exception { in revokePermissions() argument
355 setPermissionGrantState(permissions, false, legacyApp); in revokePermissions()
369 private void setPermissionGrantState(String[] permissions, boolean granted, in setPermissionGrantState() argument
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp26/src/com/android/cts/usepermission/
DUsePermissionTest26.java40 String[] permissions = new String[]{Manifest.permission.RECEIVE_SMS}; in testRuntimeGroupGrantNoExpansion() local
45 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantNoExpansion()
59 permissions, new boolean[]{true}); in testRuntimeGroupGrantNoExpansion()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp28/src/com/android/cts/usepermission/
DUsePermissionTest28.java45 String[] permissions = {ACCESS_FINE_LOCATION}; in testLocationPermissionWasSplit() local
49 BasePermissionActivity.Result result = requestPermissions(permissions, in testLocationPermissionWasSplit()
60 assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS, permissions, in testLocationPermissionWasSplit()
/cts/tests/tests/os/jni/
Dandroid_os_cts_NoExecutePermissionTest.cpp37 char permissions[10]; in isAddressExecutable() local
38 int scan = sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %9s ", &start, &end, permissions); in isAddressExecutable()
40 retval = (permissions[2] == 'x'); in isAddressExecutable()
/cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/
DPermissionActivity.java69 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument
72 permissions.length != 1 || in onRequestPermissionsResult()
73 !permissions[0].equals(mPermission)) { in onRequestPermissionsResult()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DXmlParser.java45 HashMap<String, PermissionList> permissions = getPermissions(); in setAdditionalInfo() local
46 if (permissions != null) { in setAdditionalInfo()
47 getFileEntryBuilder().putAllDevicePermissions(permissions); in setAdditionalInfo()
/cts/tests/tests/content/BinderPermissionTestService/
DREADME.txt2 check if their caller has certain permissions. This service is used by
6 This service has to be in a separate package so the permissions of the
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DSystemUtil.java159 String... permissions) { in runWithShellPermissionIdentity() argument
161 runWithShellPermissionIdentity(automan, runnable, permissions); in runWithShellPermissionIdentity()
182 @NonNull ThrowingRunnable runnable, String... permissions) { in runWithShellPermissionIdentity() argument
183 automan.adoptShellPermissionIdentity(permissions); in runWithShellPermissionIdentity()
DAdoptShellPermissionsRule.java52 @Nullable String... permissions) { in AdoptShellPermissionsRule() argument
54 mPermissions = permissions; in AdoptShellPermissionsRule()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java173 String... permissions) { in runWithShellPermissionIdentity() argument
175 runWithShellPermissionIdentity(automan, runnable, permissions); in runWithShellPermissionIdentity()
196 @NonNull ThrowingRunnable runnable, String... permissions) { in runWithShellPermissionIdentity() argument
197 automan.adoptShellPermissionIdentity(permissions); in runWithShellPermissionIdentity()
DAdoptShellPermissionsRule.java51 @Nullable String... permissions) { in AdoptShellPermissionsRule() argument
53 mPermissions = permissions; in AdoptShellPermissionsRule()
/cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/
DDropTarget.java174 DragAndDropPermissions permissions = null; in processDrop() local
176 permissions = requestDragAndDropPermissions(event); in processDrop()
177 if (permissions == null) { in processDrop()
185 if (permissions != null) { in processDrop()
186 permissions.release(); in processDrop()
/cts/tests/tests/permission/src/android/permission/cts/
DMainlineNetworkStackPermissionTest.java57 packageInfo.permissions); in testPackageWithMainlineNetworkStackPermission()
59 for (PermissionInfo permission : packageInfo.permissions) { in testPackageWithMainlineNetworkStackPermission()
DBackgroundPermissionsTest.java85 int numPermissions = pkg.permissions.length; in verifybackgroundPermissionsProperties()
87 PermissionInfo permission = pkg.permissions[i]; in verifybackgroundPermissionsProperties()
96 PermissionInfo permission = pkg.permissions[i]; in verifybackgroundPermissionsProperties()
/cts/tests/tests/permission/
DREADME12 See the License for the specific language governing permissions and
15 In the permissions test cases, we just test the negative cases. These tests are to test the behavio…
/cts/tests/tests/telephony/TestSmsApp/src/android/telephony/cts/sms/
DMainActivity.java44 public void onRequestPermissionsResult(int requestCode, String[] permissions, in onRequestPermissionsResult() argument
74 super.onRequestPermissionsResult(requestCode, permissions, grantResults); in onRequestPermissionsResult()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java233 List<ExpectedPermissionInfo> permissions = new ArrayList<>(); in loadExpectedPermissions() local
254 permissions.add(permissionInfo); in loadExpectedPermissions()
263 Iterator<ExpectedPermissionInfo> it = permissions.iterator(); in loadExpectedPermissions()
275 return permissions; in loadExpectedPermissions()
416 for (PermissionInfo declaredPermission : packageInfo.permissions) { in getPermissionsForPackage()
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/
DVerifyDuplicatePermissionTest.java44 for (PermissionInfo permInfo : sPm.getPackageInfo(pkg, GET_PERMISSIONS).permissions) { in getDeclaredPermission()
/cts/hostsidetests/jvmti/run-tests/test-919/
DAndroid.bp12 // See the License for the specific language governing permissions and
/cts/hostsidetests/jvmti/run-tests/test-1904/
DAndroid.bp12 // See the License for the specific language governing permissions and

12345678910>>...104