Searched refs:grant (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/keystore/tests/src/android/security/
H A DKeyStoreTest.java294 assertTrue("Should be able to grant key to other user",
295 mKeyStore.grant(TEST_KEYNAME, 0));
304 assertTrue("Should be able to grant key to other user", mKeyStore.grant(TEST_KEYNAME, 0));
311 assertFalse("Should not be able to grant without first initializing the keystore",
312 mKeyStore.grant(TEST_KEYNAME, 0));
316 assertFalse("Should not be able to grant without first initializing the keystore",
317 mKeyStore.grant(TEST_KEYNAME, 0));
327 assertTrue("Should be able to grant key to other user",
328 mKeyStore.grant(TEST_KEYNAM
[all...]
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java212 private boolean grant(byte[] key, byte[] uid) { method in class:KeyStore
217 public boolean grant(String key, int uid) { method in class:KeyStore
218 return grant(getBytes(key), Integer.toString(uid).getBytes());
/frameworks/base/cmds/pm/src/com/android/commands/pm/
H A DPm.java135 if ("grant".equals(op)) {
1218 private void runGrantRevokePermission(boolean grant) { argument
1232 if (grant) {
1371 System.err.println(" pm grant PACKAGE PERMISSION");
1422 System.err.println("pm grant, revoke: these commands either grant or revoke permissions");

Completed in 73 milliseconds