Home
last modified time | relevance | path

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

12345678910>>...82

/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java116 assertEquals(Manifest.permission.READ_EXTERNAL_STORAGE, result.permissions[0]); in testInteractiveGrant()
117 assertEquals(Manifest.permission.WRITE_EXTERNAL_STORAGE, result.permissions[1]); in testInteractiveGrant()
142 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; in testRuntimeGroupGrantSpecificity() local
145 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantSpecificity()
159 permissions, new boolean[] {true}); in testRuntimeGroupGrantSpecificity()
174 String[] permissions = new String[] {Manifest.permission.RECEIVE_SMS}; in testRuntimeGroupGrantExpansion() local
179 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantExpansion()
193 permissions, new boolean[] {true}); in testRuntimeGroupGrantExpansion()
207 String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS}; in testCancelledPermissionRequest() local
210 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.java140 int requestCode, String[] permissions, boolean[] granted) { in assertPermissionRequestResult() argument
142 for (int i = 0; i < permissions.length; i++) { in assertPermissionRequestResult()
143 assertEquals(permissions[i], result.permissions[i]); in assertPermissionRequestResult()
187 String[] permissions, int requestCode, Class<?> clazz, Runnable postRequestAction) in requestPermissions() argument
196 activity.requestPermissions(permissions, requestCode); in requestPermissions()
239 protected void grantPermissions(String[] permissions) throws Exception { in grantPermissions() argument
240 setPermissionGrantState(permissions, true, false); in grantPermissions()
247 protected void revokePermissions(String[] permissions, boolean legacyApp) throws Exception { in revokePermissions() argument
248 setPermissionGrantState(permissions, false, legacyApp); in revokePermissions()
261 private void setPermissionGrantState(String[] permissions, boolean granted, in setPermissionGrantState() argument
[all …]
/cts/common/host-side/manifest-generator/tests/src/com/android/compatibility/common/generator/
DManifestGeneratorTest.java53 List<String> permissions = new ArrayList<>(); in testManifest() local
54 permissions.add(PERMISSION_A); in testManifest()
55 permissions.add(PERMISSION_B); in testManifest()
72 permissions, activities); in testManifest()
/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/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/
DManifestGenerator.java45 List<String> permissions = new ArrayList<>(); in main() local
59 permissions.add(args[++i]); in main()
80 generate(out, pkgName, instrumentName, minSdk, targetSdk, permissions, activities); in main()
95 String minSdk, String targetSdk, List<String> permissions, List<String> activities) in generate() argument
111 for (String permission : permissions) { in generate()
/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/hostsidetests/services/activityandwindowmanager/windowmanager/dndtargetapp/src/android/wm/cts/dndtargetapp/
DDropTarget.java173 DragAndDropPermissions permissions = null; in processDrop() local
175 permissions = requestDragAndDropPermissions(event); in processDrop()
176 if (permissions == null) { in processDrop()
184 if (permissions != null) { in processDrop()
185 permissions.release(); in processDrop()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java57 for (PermissionInfo declaredPermission : platformPackage.permissions) { in testPlatformPermissionPolicyUnaltered()
132 List<PermissionInfo> permissions = new ArrayList<>(); in loadExpectedPermissions() local
153 permissions.add(permissionInfo); in loadExpectedPermissions()
159 return permissions; in loadExpectedPermissions()
/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/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_virtual/d/
DT_invoke_virtual_16.d12 ; See the License for the specific language governing permissions and
/cts/tests/openglperf2/
DREADME10 or implied. See the License for the specific language governing permissions and limitations under
/cts/tests/openglperf2/assets/fragment/
Dbasic11 * or implied. See the License for the specific language governing permissions and limitations under
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_interface/d/
DT_invoke_interface_18.d12 ; See the License for the specific language governing permissions and
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/d/
DTestAbstractClass.d12 ; See the License for the specific language governing permissions and
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/
DT_invoke_super_16.d12 ; See the License for the specific language governing permissions and
/cts/tests/openglperf2/assets/vertex/
Dbasic11 * or implied. See the License for the specific language governing permissions and limitations under
Dblur11 * or implied. See the License for the specific language governing permissions and limitations under
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_virtual_range/d/
DT_invoke_virtual_range_16.d12 ; See the License for the specific language governing permissions and
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/
DT_invoke_super_range_16.d12 ; See the License for the specific language governing permissions and
/cts/tools/vm-tests-tf/src/dot/junit/verify/a1/d/
DT_a1_1.d12 ; See the License for the specific language governing permissions and
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_interface_range/d/
DT_invoke_interface_range_18.d12 ; See the License for the specific language governing permissions and
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_void/d/
DT_return_void_5.d12 ; See the License for the specific language governing permissions and
DT_return_void_7.d12 ; See the License for the specific language governing permissions and
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/
DT_invoke_static_19.d12 ; See the License for the specific language governing permissions and

12345678910>>...82