Searched refs:grantResults (Results 1 – 7 of 7) sorted by relevance
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | BasePermissionActivity.java | 36 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()
|
D | UsePermissionTest23.java | 125 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[0]); in testInteractiveGrant() 126 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[1]); in testInteractiveGrant()
|
D | BasePermissionsTest.java | 91 : PackageManager.PERMISSION_DENIED, result.grantResults[i]); in assertPermissionRequestResult()
|
/cts/apps/PermissionApp/src/com/android/cts/permission/permissionapp/ |
D | PermissionActivity.java | 70 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/ |
D | MainActivity.java | 45 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/ |
D | TestListActivity.java | 105 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/ |
D | UsePermissionTest22.java | 146 assertTrue(Arrays.equals(result.grantResults, new int[0])); in testNoRuntimePrompt()
|