/cts/tools/release-parser/tests/resources/ |
D | platform.xml.pb.txt | 9 permissions { 12 permissions { 15 permissions { 24 permissions { 31 permissions { 38 permissions { 45 permissions { 52 permissions { 65 permissions { 74 permissions { [all …]
|
D | android.hardware.vulkan.version.xml.pb.txt | 9 permissions {
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/ |
D | UsePermissionTest29.java | 49 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/ |
D | UsePermissionTest23.java | 123 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 …]
|
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 | 86 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/ |
D | UsePermissionTest26.java | 40 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/ |
D | UsePermissionTest28.java | 45 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/ |
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/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/tools/release-parser/src/com/android/cts/releaseparser/ |
D | XmlParser.java | 45 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/ |
D | README.txt | 2 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/ |
D | SystemUtil.java | 159 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()
|
D | AdoptShellPermissionsRule.java | 52 @Nullable String... permissions) { in AdoptShellPermissionsRule() argument 54 mPermissions = permissions; in AdoptShellPermissionsRule()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 173 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()
|
D | AdoptShellPermissionsRule.java | 51 @Nullable String... permissions) { in AdoptShellPermissionsRule() argument 53 mPermissions = permissions; in AdoptShellPermissionsRule()
|
/cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/ |
D | DropTarget.java | 174 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/ |
D | MainlineNetworkStackPermissionTest.java | 57 packageInfo.permissions); in testPackageWithMainlineNetworkStackPermission() 59 for (PermissionInfo permission : packageInfo.permissions) { in testPackageWithMainlineNetworkStackPermission()
|
D | BackgroundPermissionsTest.java | 85 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/ |
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/tests/tests/telephony/TestSmsApp/src/android/telephony/cts/sms/ |
D | MainActivity.java | 44 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/ |
D | PermissionPolicyTest.java | 233 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/ |
D | VerifyDuplicatePermissionTest.java | 44 for (PermissionInfo permInfo : sPm.getPackageInfo(pkg, GET_PERMISSIONS).permissions) { in getDeclaredPermission()
|
/cts/hostsidetests/jvmti/run-tests/test-919/ |
D | Android.bp | 12 // See the License for the specific language governing permissions and
|
/cts/hostsidetests/jvmti/run-tests/test-1904/ |
D | Android.bp | 12 // See the License for the specific language governing permissions and
|