/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | UsePermissionTest23.java | 116 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 …]
|
D | BasePermissionActivity.java | 35 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()
|
D | BasePermissionsTest.java | 140 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/ |
D | ManifestGeneratorTest.java | 53 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/ |
D | android_os_cts_NoExecutePermissionTest.cpp | 37 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/ |
D | ManifestGenerator.java | 45 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/ |
D | PermissionActivity.java | 69 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/ |
D | DropTarget.java | 173 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/ |
D | PermissionPolicyTest.java | 57 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/ |
D | README | 12 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/ |
D | T_invoke_virtual_16.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tests/openglperf2/ |
D | README | 10 or implied. See the License for the specific language governing permissions and limitations under
|
/cts/tests/openglperf2/assets/fragment/ |
D | basic | 11 * 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/ |
D | T_invoke_interface_18.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/new_instance/d/ |
D | TestAbstractClass.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/ |
D | T_invoke_super_16.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tests/openglperf2/assets/vertex/ |
D | basic | 11 * or implied. See the License for the specific language governing permissions and limitations under
|
D | blur | 11 * 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/ |
D | T_invoke_virtual_range_16.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/ |
D | T_invoke_super_range_16.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tools/vm-tests-tf/src/dot/junit/verify/a1/d/ |
D | T_a1_1.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_interface_range/d/ |
D | T_invoke_interface_range_18.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_void/d/ |
D | T_return_void_5.d | 12 ; See the License for the specific language governing permissions and
|
D | T_return_void_7.d | 12 ; See the License for the specific language governing permissions and
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/ |
D | T_invoke_static_19.d | 12 ; See the License for the specific language governing permissions and
|