Lines Matching refs:error
47 int error = SendMsgWithReply(GET_SWITCH_STATE, reply); in GetSwitchState() local
48 LBSLOGD(LOCATOR_STANDARD, "Proxy::GetSwitchState Transact ErrCode = %{public}d", error); in GetSwitchState()
50 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in GetSwitchState()
65 int error = SendMsgWithDataReply(ENABLE_ABILITY, data, reply); in EnableAbility() local
66 LBSLOGD(LOCATOR_STANDARD, "Proxy::EnableAbility Transact ErrCodes = %{public}d", error); in EnableAbility()
77 int error; in SendMsgWithDataReply() local
85 error = remote->SendRequest(msgId, data, reply, option); in SendMsgWithDataReply()
87 return error; in SendMsgWithDataReply()
131 int error = SendRegisterMsgToRemote(REG_SWITCH_CALLBACK, callback, uid); in RegisterSwitchCallback() local
132 … LBSLOGD(LOCATOR_STANDARD, "Proxy::RegisterSwitchCallback Transact ErrCodes = %{public}d", error); in RegisterSwitchCallback()
137 int error = SendRegisterMsgToRemote(UNREG_SWITCH_CALLBACK, callback, 0); in UnregisterSwitchCallback() local
138 …LBSLOGD(LOCATOR_STANDARD, "Proxy::UnregisterSwitchCallback Transact ErrCodes = %{public}d", error); in UnregisterSwitchCallback()
143 int error = SendRegisterMsgToRemote(REG_GNSS_STATUS_CALLBACK, callback, uid); in RegisterGnssStatusCallback() local
144 …SLOGD(LOCATOR_STANDARD, "Proxy::RegisterGnssStatusCallback Transact ErrCodes = %{public}d", error); in RegisterGnssStatusCallback()
149 int error = SendRegisterMsgToRemote(UNREG_GNSS_STATUS_CALLBACK, callback, 0); in UnregisterGnssStatusCallback() local
150 …OGD(LOCATOR_STANDARD, "Proxy::UnregisterGnssStatusCallback Transact ErrCodes = %{public}d", error); in UnregisterGnssStatusCallback()
155 int error = SendRegisterMsgToRemote(REG_NMEA_CALLBACK, callback, uid); in RegisterNmeaMessageCallback() local
156 …LOGD(LOCATOR_STANDARD, "Proxy::RegisterNmeaMessageCallback Transact ErrCodes = %{public}d", error); in RegisterNmeaMessageCallback()
161 int error = SendRegisterMsgToRemote(UNREG_NMEA_CALLBACK, callback, 0); in UnregisterNmeaMessageCallback() local
162 …GD(LOCATOR_STANDARD, "Proxy::UnregisterNmeaMessageCallback Transact ErrCodes = %{public}d", error); in UnregisterNmeaMessageCallback()
167 int error = SendRegisterMsgToRemote(REG_COUNTRY_CODE_CALLBACK, callback, uid); in RegisterCountryCodeCallback() local
168 …LOGD(LOCATOR_STANDARD, "Proxy::RegisterCountryCodeCallback Transact ErrCodes = %{public}d", error); in RegisterCountryCodeCallback()
173 int error = SendRegisterMsgToRemote(UNREG_COUNTRY_CODE_CALLBACK, callback, 0); in UnregisterCountryCodeCallback() local
174 …GD(LOCATOR_STANDARD, "Proxy::UnregisterCountryCodeCallback Transact ErrCodes = %{public}d", error); in UnregisterCountryCodeCallback()
193 int error = SendMsgWithDataReply(START_LOCATING, data, reply); in StartLocating() local
194 LBSLOGD(LOCATOR_STANDARD, "Proxy::StartLocating Transact ErrCodes = %{public}d", error); in StartLocating()
195 return error; in StartLocating()
204 int error = SendRegisterMsgToRemote(STOP_LOCATING, callback->AsObject(), 0); in StopLocating() local
205 …GD(LOCATOR_STANDARD, "Proxy::UnregisterCountryCodeCallback Transact ErrCodes = %{public}d", error); in StopLocating()
206 return error; in StopLocating()
211 int error = SendMsgWithReply(GET_CACHE_LOCATION, reply); in GetCacheLocation() local
212 LBSLOGD(LOCATOR_STANDARD, "Proxy::GetCacheLocation Transact ErrCodes = %{public}d", error); in GetCacheLocation()
213 return error; in GetCacheLocation()
239 int error = SendMsgWithDataReply(IS_PRIVACY_COMFIRMED, data, reply); in IsLocationPrivacyConfirmed() local
240 …BSLOGD(LOCATOR_STANDARD, "Proxy::IsLocationPrivacyConfirmed Transact ErrCode = %{public}d", error); in IsLocationPrivacyConfirmed()
242 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in IsLocationPrivacyConfirmed()
260 int error = reply.ReadInt32(); in SetLocationPrivacyConfirmStatus() local
261 …(LOCATOR_STANDARD, "Proxy::SetLocationPrivacyConfirmStatus Transact ErrCodes = %{public}d", error); in SetLocationPrivacyConfirmStatus()
262 return error; in SetLocationPrivacyConfirmStatus()
281 int error = SendMsgWithDataReply(REG_CACHED_CALLBACK, data, reply); in RegisterCachedLocationCallback() local
282 …D(LOCATOR_STANDARD, "Proxy::RegisterCachedLocationCallback Transact ErrCodes = %{public}d", error); in RegisterCachedLocationCallback()
283 return error; in RegisterCachedLocationCallback()
288 int error = SendRegisterMsgToRemote(UNREG_CACHED_CALLBACK, callback->AsObject(), 0); in UnregisterCachedLocationCallback() local
289 …LOCATOR_STANDARD, "Proxy::UnregisterCachedLocationCallback Transact ErrCodes = %{public}d", error); in UnregisterCachedLocationCallback()
290 return error; in UnregisterCachedLocationCallback()
296 int error = SendMsgWithReply(GET_CACHED_LOCATION_SIZE, reply); in GetCachedGnssLocationsSize() local
297 …BSLOGD(LOCATOR_STANDARD, "Proxy::GetCachedGnssLocationsSize Transact ErrCode = %{public}d", error); in GetCachedGnssLocationsSize()
299 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in GetCachedGnssLocationsSize()
309 int error = SendMsgWithReply(FLUSH_CACHED_LOCATIONS, reply); in FlushCachedGnssLocations() local
310 …LBSLOGD(LOCATOR_STANDARD, "Proxy::FlushCachedGnssLocations Transact ErrCodes = %{public}d", error); in FlushCachedGnssLocations()
311 if (error == NO_ERROR) { in FlushCachedGnssLocations()
326 int error = SendMsgWithDataReply(SEND_COMMAND, data, reply); in SendCommand() local
327 LBSLOGD(LOCATOR_STANDARD, "Proxy::SendCommand Transact ErrCodes = %{public}d", error); in SendCommand()
342 int error = SendMsgWithDataReply(ADD_FENCE, data, reply); in AddFence() local
343 LBSLOGD(LOCATOR_STANDARD, "Proxy::AddFence Transact ErrCodes = %{public}d", error); in AddFence()
358 int error = SendMsgWithDataReply(REMOVE_FENCE, data, reply); in RemoveFence() local
359 LBSLOGD(LOCATOR_STANDARD, "Proxy::RemoveFence Transact ErrCodes = %{public}d", error); in RemoveFence()
365 int error = SendMsgWithReply(GET_ISO_COUNTRY_CODE, reply); in GetIsoCountryCode() local
366 LBSLOGD(LOCATOR_STANDARD, "Proxy::GetIsoCountryCode Transact ErrCodes = %{public}d", error); in GetIsoCountryCode()
367 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in GetIsoCountryCode()
386 int error = SendMsgWithDataReply(ENABLE_LOCATION_MOCK, data, reply); in EnableLocationMock() local
387 LBSLOGD(LOCATOR_STANDARD, "Proxy::EnableLocationMock Transact ErrCodes = %{public}d", error); in EnableLocationMock()
389 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in EnableLocationMock()
402 int error = SendMsgWithDataReply(DISABLE_LOCATION_MOCK, data, reply); in DisableLocationMock() local
403 LBSLOGD(LOCATOR_STANDARD, "Proxy::DisableLocationMock Transact ErrCodes = %{public}d", error); in DisableLocationMock()
405 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in DisableLocationMock()
425 int error = SendMsgWithDataReply(SET_MOCKED_LOCATIONS, data, reply); in SetMockedLocations() local
426 LBSLOGD(LOCATOR_STANDARD, "Proxy::SetMockedLocations Transact ErrCodes = %{public}d", error); in SetMockedLocations()
428 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in SetMockedLocations()
438 int error = SendMsgWithReply(ENABLE_REVERSE_GEOCODE_MOCK, reply); in EnableReverseGeocodingMock() local
439 …SLOGD(LOCATOR_STANDARD, "Proxy::EnableReverseGeocodingMock Transact ErrCodes = %{public}d", error); in EnableReverseGeocodingMock()
440 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in EnableReverseGeocodingMock()
450 int error = SendMsgWithReply(DISABLE_REVERSE_GEOCODE_MOCK, reply); in DisableReverseGeocodingMock() local
451 …LOGD(LOCATOR_STANDARD, "Proxy::DisableReverseGeocodingMock Transact ErrCodes = %{public}d", error); in DisableReverseGeocodingMock()
452 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in DisableReverseGeocodingMock()
470 int error = SendMsgWithDataReply(SET_REVERSE_GEOCODE_MOCKINFO, data, reply); in SetReverseGeocodingMockInfo() local
471 …LOGD(LOCATOR_STANDARD, "Proxy::SetReverseGeocodingMockInfo Transact ErrCodes = %{public}d", error); in SetReverseGeocodingMockInfo()
472 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in SetReverseGeocodingMockInfo()
491 int error = SendMsgWithDataReply(PROXY_UID_FOR_FREEZE, data, reply); in ProxyUidForFreeze() local
492 LBSLOGD(LOCATOR_STANDARD, "Proxy::ProxyUid Transact ErrCodes = %{public}d", error); in ProxyUidForFreeze()
493 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in ProxyUidForFreeze()
503 int error = SendMsgWithReply(RESET_ALL_PROXY, reply); in ResetAllProxy() local
504 LBSLOGD(LOCATOR_STANDARD, "Proxy::ResetAllProxy Transact ErrCodes = %{public}d", error); in ResetAllProxy()
505 if (error == NO_ERROR && reply.ReadInt32() == ERRCODE_SUCCESS) { in ResetAllProxy()
553 int error = remote->SendRequest(msgId, data, reply, option); in SendMsgWithDataReplyV9() local
554 if (error != NO_ERROR) { in SendMsgWithDataReplyV9()
555 … LBSLOGE(LOCATOR_STANDARD, "msgid = %{public}d, send request error: %{public}d", msgId, error); in SendMsgWithDataReplyV9()
597 int error = remote->SendRequest(msgId, data, reply, option); in SendRegisterMsgToRemoteV9() local
598 if (error != NO_ERROR) { in SendRegisterMsgToRemoteV9()
599 … LBSLOGE(LOCATOR_STANDARD, "msgid = %{public}d, send request error: %{public}d", msgId, error); in SendRegisterMsgToRemoteV9()