Home
last modified time | relevance | path

Searched refs:grantResults (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DBasePermissionActivity.java36 public final int[] grantResults; field in BasePermissionActivity.Result
38 public Result(int requestCode, String[] permissions, int[] grantResults) { in Result() argument
41 this.grantResults = grantResults; in Result()
58 int[] grantResults) { in onRequestPermissionsResult() argument
60 mResult.offer(new Result(requestCode, permissions, grantResults), 5, TimeUnit.SECONDS); in onRequestPermissionsResult()
DUsePermissionTest23.java107 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[0]); in testInteractiveGrant()
108 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[1]); in testInteractiveGrant()
DBasePermissionsTest.java142 : PackageManager.PERMISSION_DENIED, result.grantResults[i]); in assertPermissionRequestResult()
/cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/
DPermissionActivity.java70 int[] grantResults) { in onRequestPermissionsResult() argument
77 Log.d(TAG, "Received valid permission result: " + grantResults[0]); in onRequestPermissionsResult()
78 sendResultBroadcast(grantResults[0]); in onRequestPermissionsResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListActivity.java105 int requestCode, String permissions[], int[] grantResults) { in onRequestPermissionsResult() argument
107 if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/
DUsePermissionTest22.java160 assertTrue(Arrays.equals(result.grantResults, new int[0])); in testNoRuntimePrompt()