Home
last modified time | relevance | path

Searched refs:LocationErrCode (Results 1 – 25 of 53) sorted by relevance

123

/base/location/interfaces/inner_api/include/
Dlocator_proxy.h83 LocationErrCode UpdateSaAbilityV9();
84 LocationErrCode GetSwitchStateV9(bool &isEnabled);
85 LocationErrCode EnableAbilityV9(bool isEnabled);
86 LocationErrCode RegisterSwitchCallbackV9(const sptr<IRemoteObject> &callback);
87 LocationErrCode UnregisterSwitchCallbackV9(const sptr<IRemoteObject> &callback);
88 LocationErrCode RegisterGnssStatusCallbackV9(const sptr<IRemoteObject> &callback);
89 LocationErrCode UnregisterGnssStatusCallbackV9(const sptr<IRemoteObject> &callback);
90 LocationErrCode RegisterNmeaMessageCallbackV9(const sptr<IRemoteObject> &callback);
91 LocationErrCode UnregisterNmeaMessageCallbackV9(const sptr<IRemoteObject> &callback);
92 LocationErrCode StartLocatingV9(std::unique_ptr<RequestConfig>& requestConfig,
[all …]
Dlocator_impl.h87 LocationErrCode IsLocationEnabledV9(bool &isEnabled);
88 LocationErrCode EnableAbilityV9(bool enable);
89 LocationErrCode StartLocatingV9(std::unique_ptr<RequestConfig>& requestConfig,
91 LocationErrCode StopLocatingV9(sptr<ILocatorCallback>& callback);
92 LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc);
93 LocationErrCode RegisterSwitchCallbackV9(const sptr<IRemoteObject>& callback);
94 LocationErrCode UnregisterSwitchCallbackV9(const sptr<IRemoteObject>& callback);
95 LocationErrCode RegisterGnssStatusCallbackV9(const sptr<IRemoteObject>& callback);
96 LocationErrCode UnregisterGnssStatusCallbackV9(const sptr<IRemoteObject>& callback);
97 LocationErrCode RegisterNmeaMessageCallbackV9(const sptr<IRemoteObject>& callback);
[all …]
Dlocator.h80 virtual LocationErrCode IsLocationEnabledV9(bool &isEnabled) = 0;
81 virtual LocationErrCode EnableAbilityV9(bool enable) = 0;
82 virtual LocationErrCode StartLocatingV9(std::unique_ptr<RequestConfig>& requestConfig,
84 virtual LocationErrCode StopLocatingV9(sptr<ILocatorCallback>& callback) = 0;
85 virtual LocationErrCode GetCachedLocationV9(std::unique_ptr<Location> &loc) = 0;
86 virtual LocationErrCode RegisterSwitchCallbackV9(const sptr<IRemoteObject>& callback) = 0;
87 virtual LocationErrCode UnregisterSwitchCallbackV9(const sptr<IRemoteObject>& callback) = 0;
88 virtual LocationErrCode IsGeoServiceAvailableV9(bool &isAvailable) = 0;
89 virtual LocationErrCode GetAddressByCoordinateV9(MessageParcel &data,
91 virtual LocationErrCode GetAddressByLocationNameV9(MessageParcel &data,
[all …]
Dlocation_data_manager.h32 LocationErrCode ReportSwitchState(bool isEnabled);
33 LocationErrCode RegisterSwitchCallback(const sptr<IRemoteObject>& callback, pid_t uid);
34 LocationErrCode UnregisterSwitchCallback(const sptr<IRemoteObject>& callback);
35 LocationErrCode QuerySwitchState(bool &isEnabled);
Dlocation_data_rdb_helper.h38LocationErrCode RegisterDataObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &data…
39LocationErrCode UnregisterDataObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &da…
40 LocationErrCode GetValue(Uri &uri, const std::string &column, int32_t &value);
41 LocationErrCode SetValue(Uri &uri, const std::string &column, int &value);
/base/location/test/location_gnss/mock/include/
Dmock_gnss_ability_stub.h39 MOCK_METHOD(LocationErrCode, RefrashRequirements, ());
40 …MOCK_METHOD(LocationErrCode, RegisterGnssStatusCallback, (const sptr<IRemoteObject>& callback, pid…
41 … MOCK_METHOD(LocationErrCode, UnregisterGnssStatusCallback, (const sptr<IRemoteObject>& callback));
42 …MOCK_METHOD(LocationErrCode, RegisterNmeaMessageCallback, (const sptr<IRemoteObject>& callback, pi…
43 …MOCK_METHOD(LocationErrCode, UnregisterNmeaMessageCallback, (const sptr<IRemoteObject>& callback));
44 …MOCK_METHOD(LocationErrCode, RegisterCachedCallback, (const std::unique_ptr<CachedGnssLocationsReq…
46 MOCK_METHOD(LocationErrCode, UnregisterCachedCallback, (const sptr<IRemoteObject>& callback));
47 MOCK_METHOD(LocationErrCode, GetCachedGnssLocationsSize, (int &size));
48 MOCK_METHOD(LocationErrCode, FlushCachedGnssLocations, ());
49 MOCK_METHOD(LocationErrCode, SendCommand, (std::unique_ptr<LocationCommand>& commands));
[all …]
/base/location/services/location_locator/locator/include/
Dgnss_ability_proxy.h34 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override;
35 LocationErrCode SetEnable(bool state) override;
36 LocationErrCode RefrashRequirements() override;
37LocationErrCode RegisterGnssStatusCallback(const sptr<IRemoteObject>& callback, pid_t uid) overrid…
38 LocationErrCode UnregisterGnssStatusCallback(const sptr<IRemoteObject>& callback) override;
39LocationErrCode RegisterNmeaMessageCallback(const sptr<IRemoteObject>& callback, pid_t uid) overri…
40 LocationErrCode UnregisterNmeaMessageCallback(const sptr<IRemoteObject>& callback) override;
41LocationErrCode RegisterCachedCallback(const std::unique_ptr<CachedGnssLocationsRequest>& request,
43 LocationErrCode UnregisterCachedCallback(const sptr<IRemoteObject>& callback) override;
44 LocationErrCode GetCachedGnssLocationsSize(int &size) override;
[all …]
Dlocator_ability.h65 LocationErrCode UpdateSaAbility();
66 LocationErrCode GetSwitchState(int& state);
67 LocationErrCode EnableAbility(bool isEnabled);
68 LocationErrCode RegisterSwitchCallback(const sptr<IRemoteObject>& callback, pid_t uid);
69 LocationErrCode UnregisterSwitchCallback(const sptr<IRemoteObject>& callback);
71 LocationErrCode RegisterGnssStatusCallback(const sptr<IRemoteObject>& callback, pid_t uid);
72 LocationErrCode UnregisterGnssStatusCallback(const sptr<IRemoteObject>& callback);
73 LocationErrCode RegisterNmeaMessageCallback(const sptr<IRemoteObject>& callback, pid_t uid);
74 LocationErrCode UnregisterNmeaMessageCallback(const sptr<IRemoteObject>& callback);
75LocationErrCode RegisterCachedLocationCallback(std::unique_ptr<CachedGnssLocationsRequest>& reques…
[all …]
Dnetwork_ability_proxy.h37 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override;
38 LocationErrCode SetEnable(bool state) override;
39 LocationErrCode SelfRequest(bool state) override;
40 LocationErrCode EnableMock() override;
41 LocationErrCode DisableMock() override;
42LocationErrCode SetMocked(const int timeInterval, const std::vector<std::shared_ptr<Location>> &lo…
Dpassive_ability_proxy.h37 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override;
38 LocationErrCode SetEnable(bool state) override;
39 LocationErrCode EnableMock() override;
40 LocationErrCode DisableMock() override;
41LocationErrCode SetMocked(const int timeInterval, const std::vector<std::shared_ptr<Location>> &lo…
Dsubability_common.h33 virtual LocationErrCode SendLocationRequest(WorkRecord &workrecord) = 0;
34 virtual LocationErrCode SetEnable(bool state) = 0;
35 virtual LocationErrCode EnableMock() = 0;
36 virtual LocationErrCode DisableMock() = 0;
37 virtual LocationErrCode SetMocked(const int timeInterval,
/base/location/services/location_gnss/gnss/include/
Dgnss_ability_skeleton.h33 virtual LocationErrCode RefrashRequirements() = 0;
34 …virtual LocationErrCode RegisterGnssStatusCallback(const sptr<IRemoteObject>& callback, pid_t uid)…
35 virtual LocationErrCode UnregisterGnssStatusCallback(const sptr<IRemoteObject>& callback) = 0;
36 …virtual LocationErrCode RegisterNmeaMessageCallback(const sptr<IRemoteObject>& callback, pid_t uid…
37 virtual LocationErrCode UnregisterNmeaMessageCallback(const sptr<IRemoteObject>& callback) = 0;
38 …virtual LocationErrCode RegisterCachedCallback(const std::unique_ptr<CachedGnssLocationsRequest>& …
40 virtual LocationErrCode UnregisterCachedCallback(const sptr<IRemoteObject>& callback) = 0;
42 virtual LocationErrCode GetCachedGnssLocationsSize(int &size) = 0;
43 virtual LocationErrCode FlushCachedGnssLocations() = 0;
44 virtual LocationErrCode SendCommand(std::unique_ptr<LocationCommand>& commands) = 0;
[all …]
Dgnss_ability.h82 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override;
83 LocationErrCode SetEnable(bool state) override;
84 LocationErrCode RefrashRequirements() override;
85LocationErrCode RegisterGnssStatusCallback(const sptr<IRemoteObject>& callback, pid_t uid) overrid…
86 LocationErrCode UnregisterGnssStatusCallback(const sptr<IRemoteObject>& callback) override;
87LocationErrCode RegisterNmeaMessageCallback(const sptr<IRemoteObject>& callback, pid_t uid) overri…
88 LocationErrCode UnregisterNmeaMessageCallback(const sptr<IRemoteObject>& callback) override;
89LocationErrCode RegisterCachedCallback(const std::unique_ptr<CachedGnssLocationsRequest>& request,
91 LocationErrCode UnregisterCachedCallback(const sptr<IRemoteObject>& callback) override;
93 LocationErrCode GetCachedGnssLocationsSize(int &size) override;
[all …]
/base/web/webview/ohos_wrapper/src/
Dnweb_location_wrapper.cpp33 LocationErrCode ret = NWeb::g_locatorProxy->IsLocationEnabledV9(isEnabled); in IsLocationEnable()
34 if (ret != LocationErrCode::ERRCODE_SUCCESS) { in IsLocationEnable()
49 LocationErrCode ret = NWeb::g_locatorProxy->StartLocatingV9( in StartLocating()
51 if (ret != LocationErrCode::ERRCODE_SUCCESS) { in StartLocating()
64 LocationErrCode ret = NWeb::g_locatorProxy->StopLocatingV9(callback); in StopLocating()
65 if (ret != LocationErrCode::ERRCODE_SUCCESS) { in StopLocating()
78 LocationErrCode ret = NWeb::g_locatorProxy->EnableAbilityV9(enable); in EnableAbility()
79 if (ret != LocationErrCode::ERRCODE_SUCCESS) { in EnableAbility()
/base/location/test/location_network/mock/include/
Dmock_network_ability_stub.h39 MOCK_METHOD(LocationErrCode, SelfRequest, (bool state));
40 MOCK_METHOD(LocationErrCode, SendLocationRequest, (WorkRecord &workrecord));
41 MOCK_METHOD(LocationErrCode, SetEnable, (bool state));
42 MOCK_METHOD(LocationErrCode, EnableMock, ());
43 MOCK_METHOD(LocationErrCode, DisableMock, ());
44 MOCK_METHOD(LocationErrCode, SetMocked, (const int timeInterval,
/base/location/services/location_locator/locator/source/
Dgnss_ability_proxy.cpp32 LocationErrCode GnssAbilityProxy::SendLocationRequest(WorkRecord &workrecord) in SendLocationRequest()
47 return LocationErrCode(reply.ReadInt32()); in SendLocationRequest()
50 LocationErrCode GnssAbilityProxy::SetEnable(bool state) in SetEnable()
63 return LocationErrCode(reply.ReadInt32()); in SetEnable()
66 LocationErrCode GnssAbilityProxy::RefrashRequirements() in RefrashRequirements()
78 return LocationErrCode(reply.ReadInt32()); in RefrashRequirements()
81 LocationErrCode GnssAbilityProxy::RegisterGnssStatusCallback(const sptr<IRemoteObject>& callback, p… in RegisterGnssStatusCallback()
94 return LocationErrCode(reply.ReadInt32()); in RegisterGnssStatusCallback()
97 LocationErrCode GnssAbilityProxy::UnregisterGnssStatusCallback(const sptr<IRemoteObject>& callback) in UnregisterGnssStatusCallback()
110 return LocationErrCode(reply.ReadInt32()); in UnregisterGnssStatusCallback()
[all …]
Dnetwork_ability_proxy.cpp33 LocationErrCode NetworkAbilityProxy::SendLocationRequest(WorkRecord &workrecord) in SendLocationRequest()
48 return LocationErrCode(reply.ReadInt32()); in SendLocationRequest()
51 LocationErrCode NetworkAbilityProxy::SetEnable(bool state) in SetEnable()
64 return LocationErrCode(reply.ReadInt32()); in SetEnable()
67 LocationErrCode NetworkAbilityProxy::SelfRequest(bool state) in SelfRequest()
80 return LocationErrCode(reply.ReadInt32()); in SelfRequest()
83 LocationErrCode NetworkAbilityProxy::EnableMock() in EnableMock()
100 return LocationErrCode(reply.ReadInt32()); in EnableMock()
103 LocationErrCode NetworkAbilityProxy::DisableMock() in DisableMock()
120 return LocationErrCode(reply.ReadInt32()); in DisableMock()
[all …]
Dpassive_ability_proxy.cpp33 LocationErrCode PassiveAbilityProxy::SendLocationRequest(WorkRecord &workrecord) in SendLocationRequest()
48 return LocationErrCode(reply.ReadInt32()); in SendLocationRequest()
51 LocationErrCode PassiveAbilityProxy::SetEnable(bool state) in SetEnable()
64 return LocationErrCode(reply.ReadInt32()); in SetEnable()
67 LocationErrCode PassiveAbilityProxy::EnableMock() in EnableMock()
84 return LocationErrCode(reply.ReadInt32()); in EnableMock()
87 LocationErrCode PassiveAbilityProxy::DisableMock() in DisableMock()
104 return LocationErrCode(reply.ReadInt32()); in DisableMock()
107 LocationErrCode PassiveAbilityProxy::SetMocked( in SetMocked()
131 return LocationErrCode(reply.ReadInt32()); in SetMocked()
Dlocator_ability.cpp309 LocationErrCode LocatorAbility::UpdateSaAbility() in UpdateSaAbility()
359 LocationErrCode LocatorAbility::EnableAbility(bool isEnabled) in EnableAbility()
368 LocationErrCode errCode = DelayedSingleton<LocationDataRdbHelper>::GetInstance()-> in EnableAbility()
380 LocationErrCode LocatorAbility::GetSwitchState(int& state) in GetSwitchState()
390 LocationErrCode errCode = DelayedSingleton<LocationDataRdbHelper>::GetInstance()-> in QuerySwitchState()
400 LocationErrCode LocatorAbility::IsLocationPrivacyConfirmed(const int type, bool& isConfirmed) in IsLocationPrivacyConfirmed()
405 LocationErrCode LocatorAbility::SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed) in SetLocationPrivacyConfirmStatus()
410 LocationErrCode LocatorAbility::RegisterSwitchCallback(const sptr<IRemoteObject>& callback, pid_t u… in RegisterSwitchCallback()
431 LocationErrCode LocatorAbility::UnregisterSwitchCallback(const sptr<IRemoteObject>& callback) in UnregisterSwitchCallback()
459 LocationErrCode LocatorAbility::SendGnssRequest(int type, MessageParcel &data, MessageParcel &reply) in SendGnssRequest()
[all …]
/base/location/frameworks/native/source/
Dlocator_proxy.cpp490 LocationErrCode LocatorProxy::GetSwitchStateV9(bool &isEnabled) in GetSwitchStateV9()
493 LocationErrCode errorCode = in GetSwitchStateV9()
505 LocationErrCode LocatorProxy::EnableAbilityV9(bool isEnabled) in EnableAbilityV9()
513 LocationErrCode errorCode = in EnableAbilityV9()
519 LocationErrCode LocatorProxy::UpdateSaAbilityV9() in UpdateSaAbilityV9()
521LocationErrCode errorCode = SendSimpleMsgV9(static_cast<int>(LocatorInterfaceCode::UPDATE_SA_ABILI… in UpdateSaAbilityV9()
526 LocationErrCode LocatorProxy::SendMsgWithDataReplyV9(const int msgId, MessageParcel& data, MessageP… in SendMsgWithDataReplyV9()
540 return LocationErrCode(reply.ReadInt32()); in SendMsgWithDataReplyV9()
543 LocationErrCode LocatorProxy::SendMsgWithReplyV9(const int msgId, MessageParcel& reply) in SendMsgWithReplyV9()
553 LocationErrCode LocatorProxy::SendSimpleMsgV9(const int msgId) in SendSimpleMsgV9()
[all …]
Dlocator_impl.cpp116 LocationErrCode errCode = proxy->EnableAbilityV9(enable); in EnableAbility()
624 LocationErrCode LocatorImpl::IsLocationEnabledV9(bool &isEnabled) in IsLocationEnabledV9()
630 LocationErrCode errCode = locationDataManager_->QuerySwitchState(isEnabled); in IsLocationEnabledV9()
634 LocationErrCode LocatorImpl::EnableAbilityV9(bool enable) in EnableAbilityV9()
645 LocationErrCode errCode = proxy->EnableAbilityV9(enable); in EnableAbilityV9()
655 LocationErrCode LocatorImpl::StartLocatingV9(std::unique_ptr<RequestConfig>& requestConfig, in StartLocatingV9()
667 LocationErrCode errCode = proxy->StartLocatingV9(requestConfig, callback); in StartLocatingV9()
671 LocationErrCode LocatorImpl::StopLocatingV9(sptr<ILocatorCallback>& callback) in StopLocatingV9()
682 LocationErrCode errCode = proxy->StopLocatingV9(callback); in StopLocatingV9()
686 LocationErrCode LocatorImpl::GetCachedLocationV9(std::unique_ptr<Location> &loc) in GetCachedLocationV9()
[all …]
/base/location/test/location_passive/mock/include/
Dmock_passive_ability_stub.h39 MOCK_METHOD(LocationErrCode, SendLocationRequest, (WorkRecord &workrecord));
40 MOCK_METHOD(LocationErrCode, SetEnable, (bool state));
41 MOCK_METHOD(LocationErrCode, EnableMock, ());
42 MOCK_METHOD(LocationErrCode, DisableMock, ());
43 MOCK_METHOD(LocationErrCode, SetMocked, (const int timeInterval,
/base/location/frameworks/js/napi/include/
Dlocation_napi_event.h89 LocationErrCode SubscribeLocationServiceStateV9(const napi_env& env,
91 LocationErrCode SubscribeGnssStatusV9(const napi_env& env, const napi_ref& handlerRef,
93 LocationErrCode SubscribeNmeaMessageV9(const napi_env& env, const napi_ref& handlerRef,
95 LocationErrCode SubscribeLocationChangeV9(const napi_env& env, const napi_value& object,
97 LocationErrCode SubscribeCacheLocationChangeV9(const napi_env& env, const napi_value& object,
99 LocationErrCode SubscribeFenceStatusChangeV9(const napi_env& env, const napi_value& object, const n…
100 LocationErrCode SubscribeLocatingRequiredDataChange(const napi_env& env, const napi_value& object,
102 LocationErrCode UnSubscribeLocationChangeV9(sptr<ILocatorCallback>& callback);
103 LocationErrCode UnSubscribeFenceStatusChangeV9(const napi_env& env,
105 LocationErrCode UnSubscribeCacheLocationChangeV9(sptr<ICachedLocationsCallback>& callback);
[all …]
/base/location/services/location_network/network/include/
Dnetwork_ability.h59 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override;
60 LocationErrCode SetEnable(bool state) override;
61 LocationErrCode SelfRequest(bool state) override;
64 LocationErrCode EnableMock() override;
65 LocationErrCode DisableMock() override;
66LocationErrCode SetMocked(const int timeInterval, const std::vector<std::shared_ptr<Location>> &lo…
/base/location/services/location_passive/passive/include/
Dpassive_ability.h56 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override;
57 LocationErrCode SetEnable(bool state) override;
60 LocationErrCode EnableMock() override;
61 LocationErrCode DisableMock() override;
62LocationErrCode SetMocked(const int timeInterval, const std::vector<std::shared_ptr<Location>> &lo…

123