• Home
  • Raw
  • Download

Lines Matching refs:ResponseCode

72 ResponseCode KeyStore::initialize() {  in initialize()
78 return ResponseCode::NO_ERROR; in initialize()
81 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser()
86 ResponseCode KeyStore::copyMasterKey(uid_t srcUser, uid_t dstUser) { in copyMasterKey()
92 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey()
97 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey()
149 ResponseCode rc; in resetUser()
155 if (rc != ResponseCode::NO_ERROR) { in resetUser()
165 ResponseCode rc; in resetUser()
170 case ResponseCode::SYSTEM_ERROR: in resetUser()
171 case ResponseCode::VALUE_CORRUPTED: in resetUser()
176 case ResponseCode::NO_ERROR: in resetUser()
177 case ResponseCode::LOCKED: in resetUser()
220 ResponseCode rc; in isEmpty()
227 return rc == ResponseCode::SYSTEM_ERROR || matches.size() == 0; in isEmpty()
242 std::tuple<ResponseCode, Blob, Blob> KeyStore::get(const LockedKeyBlobEntry& blobfile) { in get()
243 std::tuple<ResponseCode, Blob, Blob> result; in get()
247 ResponseCode& rc = std::get<0>(result); in get()
252 if (rc == ResponseCode::VALUE_CORRUPTED) { in get()
258 if (rc != ResponseCode::NO_ERROR) { in get()
272 if ((rc = this->put(blobfile, keyBlob, {})) != ResponseCode::NO_ERROR || in get()
274 rc) != ResponseCode::NO_ERROR) { in get()
283 ResponseCode KeyStore::put(const LockedKeyBlobEntry& blobfile, Blob keyBlob, in put()
290 ResponseCode KeyStore::del(const LockedKeyBlobEntry& blobfile) { in del()
293 ResponseCode rc; in del()
303 if (rc != ResponseCode::NO_ERROR) { in del()
355 std::tuple<ResponseCode, Blob, Blob, LockedKeyBlobEntry>
357 std::tuple<ResponseCode, Blob, Blob, LockedKeyBlobEntry> result; in getKeyForName()
362 if (!lockedEntry) return rc = ResponseCode::KEY_NOT_FOUND, std::move(result); in getKeyForName()
366 if (rc == ResponseCode::NO_ERROR) { in getKeyForName()
367 if (keyBlob.getType() != type) return rc = ResponseCode::KEY_NOT_FOUND, std::move(result); in getKeyForName()