Lines Matching refs:ResponseCode

85 ResponseCode UserState::initialize(const android::String8& pw) {  in initialize()
87 return ResponseCode::SYSTEM_ERROR; in initialize()
89 ResponseCode response = writeMasterKey(pw); in initialize()
90 if (response != ResponseCode::NO_ERROR) { in initialize()
94 return ResponseCode::NO_ERROR; in initialize()
97 ResponseCode UserState::copyMasterKey(LockedUserState<UserState>* src) { in copyMasterKey()
99 return ResponseCode::SYSTEM_ERROR; in copyMasterKey()
102 return ResponseCode::SYSTEM_ERROR; in copyMasterKey()
109 ResponseCode UserState::copyMasterKeyFile(LockedUserState<UserState>* src) { in copyMasterKeyFile()
115 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
120 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
125 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
129 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
134 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
136 return ResponseCode::NO_ERROR; in copyMasterKeyFile()
139 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::WRONG_PASSWORD_0; in readMasterKey()