/base/location/interfaces/inner_api/include/ |
D | locator_proxy.h | 83 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 …]
|
D | locator_impl.h | 87 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 …]
|
D | locator.h | 80 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 …]
|
D | location_data_manager.h | 32 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);
|
D | location_data_rdb_helper.h | 38 …LocationErrCode RegisterDataObserver(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &data… 39 …LocationErrCode 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/ |
D | mock_gnss_ability_stub.h | 39 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/ |
D | gnss_ability_proxy.h | 34 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override; 35 LocationErrCode SetEnable(bool state) override; 36 LocationErrCode RefrashRequirements() override; 37 …LocationErrCode RegisterGnssStatusCallback(const sptr<IRemoteObject>& callback, pid_t uid) overrid… 38 LocationErrCode UnregisterGnssStatusCallback(const sptr<IRemoteObject>& callback) override; 39 …LocationErrCode RegisterNmeaMessageCallback(const sptr<IRemoteObject>& callback, pid_t uid) overri… 40 LocationErrCode UnregisterNmeaMessageCallback(const sptr<IRemoteObject>& callback) override; 41 … LocationErrCode RegisterCachedCallback(const std::unique_ptr<CachedGnssLocationsRequest>& request, 43 LocationErrCode UnregisterCachedCallback(const sptr<IRemoteObject>& callback) override; 44 LocationErrCode GetCachedGnssLocationsSize(int &size) override; [all …]
|
D | locator_ability.h | 65 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); 75 …LocationErrCode RegisterCachedLocationCallback(std::unique_ptr<CachedGnssLocationsRequest>& reques… [all …]
|
D | network_ability_proxy.h | 37 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; 42 …LocationErrCode SetMocked(const int timeInterval, const std::vector<std::shared_ptr<Location>> &lo…
|
D | passive_ability_proxy.h | 37 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override; 38 LocationErrCode SetEnable(bool state) override; 39 LocationErrCode EnableMock() override; 40 LocationErrCode DisableMock() override; 41 …LocationErrCode SetMocked(const int timeInterval, const std::vector<std::shared_ptr<Location>> &lo…
|
D | subability_common.h | 33 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/ |
D | gnss_ability_skeleton.h | 33 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 …]
|
D | gnss_ability.h | 82 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override; 83 LocationErrCode SetEnable(bool state) override; 84 LocationErrCode RefrashRequirements() override; 85 …LocationErrCode RegisterGnssStatusCallback(const sptr<IRemoteObject>& callback, pid_t uid) overrid… 86 LocationErrCode UnregisterGnssStatusCallback(const sptr<IRemoteObject>& callback) override; 87 …LocationErrCode RegisterNmeaMessageCallback(const sptr<IRemoteObject>& callback, pid_t uid) overri… 88 LocationErrCode UnregisterNmeaMessageCallback(const sptr<IRemoteObject>& callback) override; 89 … LocationErrCode 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/ |
D | nweb_location_wrapper.cpp | 33 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/ |
D | mock_network_ability_stub.h | 39 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/ |
D | gnss_ability_proxy.cpp | 32 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 …]
|
D | network_ability_proxy.cpp | 33 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 …]
|
D | passive_ability_proxy.cpp | 33 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()
|
D | locator_ability.cpp | 309 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/ |
D | locator_proxy.cpp | 490 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() 521 …LocationErrCode 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 …]
|
D | locator_impl.cpp | 116 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/ |
D | mock_passive_ability_stub.h | 39 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/ |
D | location_napi_event.h | 89 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/ |
D | network_ability.h | 59 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; 66 …LocationErrCode SetMocked(const int timeInterval, const std::vector<std::shared_ptr<Location>> &lo…
|
/base/location/services/location_passive/passive/include/ |
D | passive_ability.h | 56 LocationErrCode SendLocationRequest(WorkRecord &workrecord) override; 57 LocationErrCode SetEnable(bool state) override; 60 LocationErrCode EnableMock() override; 61 LocationErrCode DisableMock() override; 62 …LocationErrCode SetMocked(const int timeInterval, const std::vector<std::shared_ptr<Location>> &lo…
|