Searched refs:startPos (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/automotive/vehicle/2.0/utils/ |
D | UserHalHelper.cpp | 56 Result<void> parseUserInfo(const hidl_vec<int32_t>& int32Values, size_t startPos, in parseUserInfo() argument 58 if (int32Values.size() < startPos + kNumFieldsPerUserInfo) { in parseUserInfo() 59 return Error() << "Int32Values must have at least " << startPos + 2 << " values, received " in parseUserInfo() 62 userInfo->userId = int32Values[startPos]; in parseUserInfo() 63 int32_t intUserFlags = int32Values[startPos + 1]; in parseUserInfo() 82 Result<void> parseUsersInfo(const hidl_vec<int32_t>& int32Values, size_t startPos, in parseUsersInfo() argument 84 if (int32Values.size() < startPos + 3) { in parseUsersInfo() 85 return Error() << "Int32Values must have at least " << startPos + 3 << " values, received " in parseUsersInfo() 88 auto ret = parseUserInfo(int32Values, startPos, &usersInfo->currentUser); in parseUsersInfo() 92 usersInfo->numberUsers = int32Values[startPos + 2]; in parseUsersInfo() [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/userhal/src/ |
D | UserHalHelper.cpp | 81 Result<void> parseUserInfo(const std::vector<int32_t>& int32Values, size_t startPos, in parseUserInfo() argument 83 if (int32Values.size() < startPos + kNumFieldsPerUserInfo) { in parseUserInfo() 84 return Error() << "Int32Values must have at least " << startPos + 2 << " values, received " in parseUserInfo() 87 userInfo->userId = int32Values[startPos]; in parseUserInfo() 88 int32_t intUserFlags = int32Values[startPos + 1]; in parseUserInfo() 100 Result<void> parseUsersInfo(const std::vector<int32_t>& int32Values, size_t startPos, in parseUsersInfo() argument 102 if (int32Values.size() < startPos + 3) { in parseUsersInfo() 103 return Error() << "Int32Values must have at least " << startPos + 3 << " values, received " in parseUsersInfo() 106 auto ret = parseUserInfo(int32Values, startPos, &usersInfo->currentUser); in parseUsersInfo() 110 usersInfo->numberUsers = int32Values[startPos + 2]; in parseUsersInfo() [all …]
|