Home
last modified time | relevance | path

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

12345678910>>...141

/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.java94 int requestCode, String[] permissions, boolean[] granted) { in assertPermissionRequestResult() argument
96 for (int i = 0; i < permissions.length; i++) { in assertPermissionRequestResult()
97 assertEquals(permissions[i], result.permissions[i]); in assertPermissionRequestResult()
309 String[] permissions, int requestCode, Class<?> clazz, Runnable postRequestAction) in requestPermissions() argument
318 activity.requestPermissions(permissions, requestCode); in requestPermissions()
414 protected void grantPermissions(String[] permissions) throws Exception { in grantPermissions() argument
415 setPermissionGrantState(permissions, true, false); in grantPermissions()
422 protected void revokePermissions(String[] permissions, boolean legacyApp) throws Exception { in revokePermissions() argument
423 setPermissionGrantState(permissions, false, legacyApp); in revokePermissions()
448 private void setPermissionGrantState(String[] permissions, boolean granted, in setPermissionGrantState() argument
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DShellIdentityUtils.java114 ShellPermissionMethodHelper<T, U> methodHelper, String... permissions) { in invokeMethodWithShellPermissions() argument
118 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions()
135 Class<E> clazz, String... permissions) throws E { in invokeThrowableMethodWithShellPermissions() argument
139 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeThrowableMethodWithShellPermissions()
155 String... permissions) { in invokeMethodWithShellPermissionsNoReturn() argument
159 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissionsNoReturn()
196 Class<E> clazz, String... permissions) throws E { in invokeThrowableMethodWithShellPermissionsNoReturn() argument
200 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeThrowableMethodWithShellPermissionsNoReturn()
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/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/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/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/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/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/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/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/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.java244 List<ExpectedPermissionInfo> permissions = new ArrayList<>(); in loadExpectedPermissions() local
265 permissions.add(permissionInfo); in loadExpectedPermissions()
274 Iterator<ExpectedPermissionInfo> it = permissions.iterator(); in loadExpectedPermissions()
286 return permissions; in loadExpectedPermissions()
427 for (PermissionInfo declaredPermission : packageInfo.permissions) { in getPermissionsForPackage()
/cts/tests/tests/content/
DAndroid.bp12 // See the License for the specific language governing permissions and
20 // REQUIRED_MULTI_DENY permissions in AndroidManifest.xml
/cts/hostsidetests/appbinding/app/
DAndroid.bp12 // See the License for the specific language governing permissions and
25 // See the License for the specific language governing permissions and

12345678910>>...141