Lines Matching refs:ResponseCode
81 ResponseCode UserState::initialize(const android::String8& pw, Entropy* entropy) { in initialize()
83 return ResponseCode::SYSTEM_ERROR; in initialize()
85 ResponseCode response = writeMasterKey(pw, entropy); in initialize()
86 if (response != ResponseCode::NO_ERROR) { in initialize()
90 return ResponseCode::NO_ERROR; in initialize()
93 ResponseCode UserState::copyMasterKey(UserState* src) { in copyMasterKey()
95 return ResponseCode::SYSTEM_ERROR; in copyMasterKey()
98 return ResponseCode::SYSTEM_ERROR; in copyMasterKey()
105 ResponseCode UserState::copyMasterKeyFile(UserState* src) { in copyMasterKeyFile()
111 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
116 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
121 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
125 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
130 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
132 return ResponseCode::NO_ERROR; in copyMasterKeyFile()
135 ResponseCode UserState::writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey()
144 ResponseCode UserState::readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey()
147 return ResponseCode::SYSTEM_ERROR; in readMasterKey()
155 return ResponseCode::SYSTEM_ERROR; in readMasterKey()
169 ResponseCode response = masterKeyBlob.readBlob(mMasterKeyFile, &passwordAesKey, STATE_NO_ERROR); in readMasterKey()
170 if (response == ResponseCode::SYSTEM_ERROR) { in readMasterKey()
173 if (response == ResponseCode::NO_ERROR && masterKeyBlob.getLength() == MASTER_KEY_SIZE_BYTES) { in readMasterKey()
177 return ResponseCode::SYSTEM_ERROR; in readMasterKey()
181 if (response == ResponseCode::NO_ERROR) { in readMasterKey()
189 return ResponseCode::UNINITIALIZED; in readMasterKey()
194 return ResponseCode::WRONG_PASSWORD_0; in readMasterKey()
196 return ResponseCode::WRONG_PASSWORD_1; in readMasterKey()
198 return ResponseCode::WRONG_PASSWORD_2; in readMasterKey()
200 return ResponseCode::WRONG_PASSWORD_3; in readMasterKey()
202 return ResponseCode::WRONG_PASSWORD_3; in readMasterKey()