Lines Matching refs:ResponseCode
88 ResponseCode UserState::initialize(const android::String8& pw) { in initialize()
90 return ResponseCode::SYSTEM_ERROR; in initialize()
92 ResponseCode response = writeMasterKey(pw); in initialize()
93 if (response != ResponseCode::NO_ERROR) { in initialize()
97 return ResponseCode::NO_ERROR; in initialize()
100 ResponseCode UserState::copyMasterKey(LockedUserState<UserState>* src) { in copyMasterKey()
102 return ResponseCode::SYSTEM_ERROR; in copyMasterKey()
105 return ResponseCode::SYSTEM_ERROR; in copyMasterKey()
112 ResponseCode UserState::copyMasterKeyFile(LockedUserState<UserState>* src) { in copyMasterKeyFile()
118 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
123 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
128 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
132 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
137 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
139 return ResponseCode::NO_ERROR; in copyMasterKeyFile()
142 ResponseCode UserState::writeMasterKey(const android::String8& pw) { in writeMasterKey()
151 ResponseCode UserState::readMasterKey(const android::String8& pw) { in readMasterKey()
157 return ResponseCode::SYSTEM_ERROR; in readMasterKey()
165 return ResponseCode::SYSTEM_ERROR; in readMasterKey()
183 ResponseCode response; in readMasterKey()
186 if (response == ResponseCode::SYSTEM_ERROR) { in readMasterKey()
192 if (response == ResponseCode::NO_ERROR && masterKeyBlobLength == masterKeySize) { in readMasterKey()
196 return ResponseCode::SYSTEM_ERROR; in readMasterKey()
200 if (response == ResponseCode::NO_ERROR) { in readMasterKey()
210 return ResponseCode::UNINITIALIZED; in readMasterKey()
215 return ResponseCode::WRONG_PASSWORD_0; in readMasterKey()
217 return ResponseCode::WRONG_PASSWORD_1; in readMasterKey()
219 return ResponseCode::WRONG_PASSWORD_2; in readMasterKey()
221 return ResponseCode::WRONG_PASSWORD_3; in readMasterKey()
223 return ResponseCode::WRONG_PASSWORD_3; in readMasterKey()