Home
last modified time | relevance | path

Searched refs:switchState (Results 1 - 25 of 31) sorted by relevance

12

/base/location/frameworks/cj/source/
H A Dlocation_switch_callback.cpp31 auto cFunc = reinterpret_cast<void(*)(int32_t switchState)>(callbackId); in LocationSwitchCallback()
32 callback_ = [ lambda = CJLambda::Create(cFunc)](int switchState) -> in LocationSwitchCallback()
33 void { lambda(static_cast<bool>(switchState)); }; in LocationSwitchCallback()
71 void LocationSwitchCallback::OnSwitchChange(int switchState) in OnSwitchChange() argument
76 callback_(switchState); in OnSwitchChange()
/base/msdp/device_status/rust/subsystem/device_profile/binding/include/
H A Dfusion_device_profile_adapter.h32 void (*onUpdate)(CICrossStateListener* listener, const char* deviceId, int32_t switchState);
41 int32_t UpdateCrossSwitchState(size_t switchState);
42 int32_t SyncCrossSwitchState(size_t switchState, CIStringVector* deviceIds);
/base/location/frameworks/js/napi/include/
H A Dlocation_switch_callback_napi.h38 napi_value PackResult(bool switchState);
39 bool Send(int switchState);
40 void OnSwitchChange(int switchState) override;
H A Dlocation_error_callback_napi.h40 napi_value PackResult(bool switchState);
41 bool Send(int switchState);
/base/msdp/device_status/rust/subsystem/device_profile/binding/src/
H A Dfusion_device_profile_adapter.cpp60 int32_t UpdateCrossSwitchState(bool switchState);
61 int32_t SyncCrossSwitchState(bool switchState, const std::vector<std::string> &deviceIds);
100 bool switchState = DelayedRefSingleton<FusionDeviceProfileAdapter>::GetInstance().GetCrossSwitchState(deviceId); in OnProfileChanged() local
101 listener_->onUpdate(listener_, deviceId.c_str(), switchState); in OnProfileChanged()
130 int32_t FusionDeviceProfileAdapter::UpdateCrossSwitchState(bool switchState) in UpdateCrossSwitchState() argument
139 cJSON_AddItemToObject(data, characteristicsName_.c_str(), cJSON_CreateNumber(switchState)); in UpdateCrossSwitchState()
148 int32_t FusionDeviceProfileAdapter::SyncCrossSwitchState(bool switchState, const std::vector<std::string> &deviceIds) in SyncCrossSwitchState() argument
157 cJSON_AddItemToObject(data, characteristicsName_.c_str(), cJSON_CreateNumber(switchState)); in SyncCrossSwitchState()
295 int32_t UpdateCrossSwitchState(size_t switchState) in UpdateCrossSwitchState() argument
299 static_cast<bool>(switchState)); in UpdateCrossSwitchState()
302 SyncCrossSwitchState(size_t switchState, CIStringVector* deviceIds) SyncCrossSwitchState() argument
323 bool switchState = GetCrossSwitchState() local
[all...]
/base/location/frameworks/cj/include/
H A Dlocation_switch_callback.h36 void OnSwitchChange(int switchState) override;
55 std::function<void(int switchState)> callback_ = nullptr;
/base/telephony/cellular_data/services/src/utils/
H A Dcellular_data_hisysevent.cpp87 const int32_t slotId, const int32_t switchState, const CellularDataErrorCode errorType, const std::string &errorMsg) in WriteDataActivateFaultEvent()
90 DATA_SWITCH_KEY, switchState, UPLINK_DATA_KEY, INVALID_PARAMETER, DOWNLINK_DATA_KEY, INVALID_PARAMETER, in WriteDataActivateFaultEvent()
101 void CellularDataHiSysEvent::JudgingDataActivateTimeOut(const int32_t slotId, const int32_t switchState) in JudgingDataActivateTimeOut() argument
107 WriteDataActivateFaultEvent(slotId, switchState, CellularDataErrorCode::DATA_ERROR_DATA_ACTIVATE_TIME_OUT, in JudgingDataActivateTimeOut()
86 WriteDataActivateFaultEvent( const int32_t slotId, const int32_t switchState, const CellularDataErrorCode errorType, const std::string &errorMsg) WriteDataActivateFaultEvent() argument
/base/telephony/cellular_data/services/include/utils/
H A Dcellular_data_hisysevent.h46 static void WriteDataActivateFaultEvent(const int32_t slotId, const int32_t switchState,
49 void JudgingDataActivateTimeOut(const int32_t slotId, const int32_t switchState);
/base/location/frameworks/js/napi/source/
H A Dlocation_switch_callback_napi.cpp116 napi_value LocationSwitchCallbackNapi::PackResult(bool switchState) in PackResult() argument
119 NAPI_CALL(env_, napi_get_boolean(env_, switchState, &result)); in PackResult()
123 bool LocationSwitchCallbackNapi::Send(int switchState) in Send() argument
151 context->enable = (switchState == 1 ? true : false); in Send()
210 void LocationSwitchCallbackNapi::OnSwitchChange(int switchState) in OnSwitchChange() argument
213 Send(switchState); in OnSwitchChange()
/base/location/frameworks/native/locator_sdk/include/
H A Dlocation_switch_callback_host.h29 void OnSwitchChange(int switchState) override;
/base/location/frameworks/native/locator_sdk/source/
H A Dlocation_switch_callback_host.cpp43 void LocationSwitchCallbackHost::OnSwitchChange(int switchState) in OnSwitchChange() argument
H A Dlocation_data_manager.cpp164 bool switchState = (state == ENABLED); in RegisterLocationSwitchObserver()
165 LBSLOGI(LOCATOR, "LOCATION_SWITCH_MODE changed. switchState %{public}d", switchState); in RegisterLocationSwitchObserver()
166 manager->ReportSwitchState(switchState); in RegisterLocationSwitchObserver()
/base/telephony/call_manager/services/call_earthquake_alarm/src/
H A Dcall_earthquake_alarm_subscriber.cpp24 const std::string LocationSubscriber::SWITCH_STATE = "switchState";
57 std::string switchState = want.GetStringParam(LocationSubscriber::SWITCH_STATE); in OnReceiveEvent() local
60 if (switchState == LocationSubscriber::SWITCH_STATE_START) { in OnReceiveEvent()
66 if (switchState == LocationSubscriber::SWITCH_STATE_STOP) { in OnReceiveEvent()
/base/telephony/core_service/services/core/src/
H A Dcore_service_hisysevent.cpp119 int32_t slotId, int32_t switchState, CellularDataErrorCode errorType, const std::string &errorMsg) in WriteDataActivateFaultEvent()
122 DATA_SWITCH_KEY, switchState, UPLINK_DATA_KEY, INVALID_PARAMETER, DOWNLINK_DATA_KEY, INVALID_PARAMETER, in WriteDataActivateFaultEvent()
118 WriteDataActivateFaultEvent( int32_t slotId, int32_t switchState, CellularDataErrorCode errorType, const std::string &errorMsg) WriteDataActivateFaultEvent() argument
/base/telephony/cellular_data/frameworks/native/
H A Dcellular_data_service_proxy.h147 * @param switchState Returns switch state
150 int32_t GetIntelligenceSwitchState(bool &switchState);
H A Dcellular_data_client.cpp379 int32_t CellularDataClient::GetIntelligenceSwitchState(bool &switchState) in GetIntelligenceSwitchState() argument
386 return proxy->GetIntelligenceSwitchState(switchState); in GetIntelligenceSwitchState()
/base/telephony/cellular_data/services/include/
H A Dcellular_data_controller.h56 int32_t GetIntelligenceSwitchState(bool &switchState);
H A Dcellular_data_service.h87 int32_t GetIntelligenceSwitchState(bool &switchState) override;
/base/telephony/core_service/services/core/include/
H A Dcore_service_hisysevent.h50 int32_t slotId, int32_t switchState, CellularDataErrorCode errorType, const std::string &errorMsg);
/base/telephony/cellular_data/interfaces/innerkits/
H A Dcellular_data_client.h83 * @param switchState Returns IntelligenceSwitch State
86 int32_t GetIntelligenceSwitchState(bool &switchState);
/base/telephony/cellular_data/services/src/
H A Dcellular_data_service_stub.cpp183 bool switchState = false; in OnGetIntelligenceSwitchState() local
184 int32_t result = GetIntelligenceSwitchState(switchState); in OnGetIntelligenceSwitchState()
192 if (!reply.WriteBool(switchState)) { in OnGetIntelligenceSwitchState()
H A Dcellular_data_controller.cpp93 int32_t CellularDataController::GetIntelligenceSwitchState(bool &switchState) in GetIntelligenceSwitchState() argument
99 return cellularDataHandler_->GetIntelligenceSwitchState(switchState); in GetIntelligenceSwitchState()
/base/telephony/call_manager/services/call_earthquake_alarm/include/
H A Dcall_earthquake_alarm_locator.h74 static void BootComplete(bool switchState);
/base/telephony/call_manager/services/call_voice_assistant/src/
H A Dcall_voice_assistant_manager.cpp76 bool CallVoiceAssistantManager::IsSwitchOn(const std::string& switchState) in IsSwitchOn() argument
79 this->QueryValue(switchState, value); in IsSwitchOn()
80 TELEPHONY_LOGI("%{public}s is %{public}s", switchState.c_str(), value.c_str()); in IsSwitchOn()
/base/telephony/call_manager/services/call_voice_assistant/include/
H A Dcall_voice_assistant_manager.h56 bool IsSwitchOn(const std::string& switchState);

Completed in 11 milliseconds

12