Lines Matching defs:key
91 private KeyBlob access(int uid, String key, boolean createIfNotExist) {
96 if (map.containsKey(key)) {
97 return map.get(key);
101 map.put(key, blob);
109 public KeyBlob getKeyBlob(int uid, String key) {
110 return access(uid, key, false);
113 private boolean put(String key, byte[] value, int uid, int flags) {
114 access(uid, key, true).update(value, flags);
118 private boolean importKey(String keyName, byte[] key, int uid, int flags) {
119 return put(keyName, key, uid, flags);
122 private boolean delete(String key, int uid) {
124 mStore.get(uid).remove(key);
129 private boolean contains(String key, int uid) {
130 return access(uid, key, false) != null;
135 int key = mStore.keyAt(i);
137 if (srcKey.equals(destKey) && key == destUid) {
140 if (srcUid == -1 || srcUid == key) {
141 HashMap<String, KeyBlob> map = mStore.get(key);