Lines Matching refs:int32Values

49     if (propValue.value.int32Values.size() < minInt32Values) {  in verifyPropValue()
51 << " values, received " << propValue.value.int32Values.size(); in verifyPropValue()
56 Result<void> parseUserInfo(const hidl_vec<int32_t>& int32Values, size_t startPos, in parseUserInfo() argument
58 if (int32Values.size() < startPos + kNumFieldsPerUserInfo) { in parseUserInfo()
60 << int32Values.size(); 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()
86 << int32Values.size(); in parseUsersInfo()
88 auto ret = parseUserInfo(int32Values, startPos, &usersInfo->currentUser); in parseUsersInfo()
92 usersInfo->numberUsers = int32Values[startPos + 2]; in parseUsersInfo()
95 ret = parseUserInfo(int32Values, startPos + 3 + (kNumFieldsPerUserInfo * i), in parseUsersInfo()
105 const hidl_vec<int32_t>& int32Values, size_t startPos, size_t numberAssociationTypes, in parseUserAssociationTypes() argument
108 if (int32Values.size() < minInt32Values) { in parseUserAssociationTypes()
110 << " values, received " << int32Values.size(); in parseUserAssociationTypes()
115 auto type = verifyAndCast<UserIdentificationAssociationType>(int32Values[pos]); in parseUserAssociationTypes()
124 Result<void> parseUserAssociations(const hidl_vec<int32_t>& int32Values, size_t startPos, in parseUserAssociations() argument
128 if (int32Values.size() < minInt32Values) { in parseUserAssociations()
130 << " values, received " << int32Values.size(); in parseUserAssociations()
135 auto type = verifyAndCast<UserIdentificationAssociationType>(int32Values[pos]); in parseUserAssociations()
140 auto value = verifyAndCast<UserIdentificationAssociationSetValue>(int32Values[pos + 1]); in parseUserAssociations()
169 request.requestId = propValue.value.int32Values[0]; in toInitialUserInfoRequest()
170 auto requestType = verifyAndCast<InitialUserInfoRequestType>(propValue.value.int32Values[1]); in toInitialUserInfoRequest()
175 ret = parseUsersInfo(propValue.value.int32Values, 2, &request.usersInfo); in toInitialUserInfoRequest()
188 auto messageType = verifyAndCast<SwitchUserMessageType>(propValue.value.int32Values[1]); in toSwitchUserRequest()
198 request.requestId = propValue.value.int32Values[0]; in toSwitchUserRequest()
200 ret = parseUserInfo(propValue.value.int32Values, 2, &request.targetUser); in toSwitchUserRequest()
204 ret = parseUsersInfo(propValue.value.int32Values, 4, &request.usersInfo); in toSwitchUserRequest()
217 request.requestId = propValue.value.int32Values[0]; in toCreateUserRequest()
218 ret = parseUserInfo(propValue.value.int32Values, 1, &request.newUserInfo); in toCreateUserRequest()
223 ret = parseUsersInfo(propValue.value.int32Values, 3, &request.usersInfo); in toCreateUserRequest()
236 request.requestId = propValue.value.int32Values[0]; in toRemoveUserRequest()
237 ret = parseUserInfo(propValue.value.int32Values, 1, &request.removedUserInfo); in toRemoveUserRequest()
241 ret = parseUsersInfo(propValue.value.int32Values, 3, &request.usersInfo); in toRemoveUserRequest()
255 request.requestId = propValue.value.int32Values[0]; in toUserIdentificationGetRequest()
256 ret = parseUserInfo(propValue.value.int32Values, 1, &request.userInfo); in toUserIdentificationGetRequest()
260 request.numberAssociationTypes = propValue.value.int32Values[3]; in toUserIdentificationGetRequest()
261 ret = parseUserAssociationTypes(propValue.value.int32Values, 4, request.numberAssociationTypes, in toUserIdentificationGetRequest()
276 request.requestId = propValue.value.int32Values[0]; in toUserIdentificationSetRequest()
277 ret = parseUserInfo(propValue.value.int32Values, 1, &request.userInfo); in toUserIdentificationSetRequest()
281 request.numberAssociations = propValue.value.int32Values[3]; in toUserIdentificationSetRequest()
282 ret = parseUserAssociations(propValue.value.int32Values, 4, request.numberAssociations, in toUserIdentificationSetRequest()
299 propValue->value.int32Values.resize(3); in toVehiclePropValue()
300 propValue->value.int32Values[0] = static_cast<int32_t>(request.requestId); in toVehiclePropValue()
301 propValue->value.int32Values[1] = static_cast<int32_t>(request.messageType); in toVehiclePropValue()
302 propValue->value.int32Values[2] = static_cast<int32_t>(request.targetUser.userId); in toVehiclePropValue()
310 propValue->value.int32Values.resize(4); in toVehiclePropValue()
311 propValue->value.int32Values[0] = static_cast<int32_t>(response.requestId); in toVehiclePropValue()
312 propValue->value.int32Values[1] = static_cast<int32_t>(response.action); in toVehiclePropValue()
313 propValue->value.int32Values[2] = static_cast<int32_t>(response.userToSwitchOrCreate.userId); in toVehiclePropValue()
314 propValue->value.int32Values[3] = static_cast<int32_t>(response.userToSwitchOrCreate.flags); in toVehiclePropValue()
324 propValue->value.int32Values.resize(3); in toVehiclePropValue()
325 propValue->value.int32Values[0] = static_cast<int32_t>(response.requestId); in toVehiclePropValue()
326 propValue->value.int32Values[1] = static_cast<int32_t>(response.messageType); in toVehiclePropValue()
327 propValue->value.int32Values[2] = static_cast<int32_t>(response.status); in toVehiclePropValue()
338 propValue->value.int32Values.resize(2); in toVehiclePropValue()
339 propValue->value.int32Values[0] = static_cast<int32_t>(response.requestId); in toVehiclePropValue()
340 propValue->value.int32Values[1] = static_cast<int32_t>(response.status); in toVehiclePropValue()
351 propValue->value.int32Values.resize(2 + (response.numberAssociation * 2)); in toVehiclePropValue()
352 propValue->value.int32Values[0] = static_cast<int32_t>(response.requestId); in toVehiclePropValue()
353 propValue->value.int32Values[1] = static_cast<int32_t>(response.numberAssociation); in toVehiclePropValue()
356 propValue->value.int32Values[int32ValuesPos] = in toVehiclePropValue()
358 propValue->value.int32Values[int32ValuesPos + 1] = in toVehiclePropValue()