Home
last modified time | relevance | path

Searched refs:grantResults (Results 1 – 7 of 7) 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.java125 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[0]); in testInteractiveGrant()
126 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[1]); in testInteractiveGrant()
DBasePermissionsTest.java91 : 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/tests/tests/telephony/TestSmsApp/src/android/telephony/cts/sms/
DMainActivity.java45 int[] grantResults) { in onRequestPermissionsResult() argument
49 if (grantResults[0] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
74 super.onRequestPermissionsResult(requestCode, permissions, grantResults); 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.java146 assertTrue(Arrays.equals(result.grantResults, new int[0])); in testNoRuntimePrompt()