Searched refs:grantResults (Results 1 – 6 of 6) 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 | 107 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[0]); in testInteractiveGrant() 108 assertEquals(PackageManager.PERMISSION_GRANTED, result.grantResults[1]); in testInteractiveGrant()
|
D | BasePermissionsTest.java | 142 : 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/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 | 160 assertTrue(Arrays.equals(result.grantResults, new int[0])); in testNoRuntimePrompt()
|