Home
last modified time | relevance | path

Searched refs:Callback (Results 1 – 25 of 51) sorted by relevance

123

/base/telephony/state_registry/interfaces/kits/js/
D@ohos.telephony.observer.d.ts16 import {Callback} from "./basic";
60 function on(type: 'networkStateChange', callback: Callback<NetworkState>): void;
80 …function on(type: 'networkStateChange', options: { slotId: number }, callback: Callback<NetworkSta…
95 function off(type: 'networkStateChange', callback?: Callback<NetworkState>): void;
111 function on(type: 'signalInfoChange', callback: Callback<Array<SignalInformation>>): void;
129 …function on(type: 'signalInfoChange', options: { slotId: number }, callback: Callback<Array<Signal…
144 function off(type: 'signalInfoChange', callback?: Callback<Array<SignalInformation>>): void;
164 function on(type: 'cellInfoChange', callback: Callback<Array<CellInformation>>): void;
186 …function on(type: 'cellInfoChange', options: { slotId: number }, callback: Callback<Array<CellInfo…
204 function off(type: 'cellInfoChange', callback?: Callback<Array<CellInformation>>): void;
[all …]
/base/update/updater/services/ui/control/
Devent_listener.h25 struct Callback { struct
39 explicit CallBackDecorator(Callback cb) : cb_(cb) {} in CallBackDecorator()
43 static void CallbackWithGuard(Callback cb, OHOS::UIView &view);
44 Callback cb_;
50 LabelOnTouchListener(Callback cb, bool isConsumed) in LabelOnTouchListener()
56 Callback cb_;
62 BtnOnEventListener(Callback cb, bool isConsumed) in BtnOnEventListener()
70 Callback cb_;
77 BtnOnDragListener(Callback cb, bool isConsumed) in BtnOnDragListener()
86 Callback cb_;
Dcallback_manager.h33 static bool RegisterFunc(const std::string &name, Callback cb);
35 static std::unordered_map<std::string, Callback> &GetFuncs();
45 CallbackManager::RegisterFunc(#name, Callback{&name, async}); \
Dcallback_manager.cpp52 bool CallbackManager::RegisterFunc(const std::string &name, Callback cb) in RegisterFunc()
61 std::unordered_map<std::string, Callback> &CallbackManager::GetFuncs() in GetFuncs()
63 static std::unordered_map<std::string, Callback> funcs; in GetFuncs()
/base/sensors/medical_sensor/interfaces/jsapi/
D@ohos.medical.d.ts15 import { Callback } from './basic';
33 …function on(type: MedicalSensorType.TYPE_ID_PHOTOPLETHYSMOGRAPH, callback: Callback<PpgResponse>, …
41 …function off(type: MedicalSensorType.TYPE_ID_PHOTOPLETHYSMOGRAPH, callback?: Callback<PpgResponse>…
/base/telephony/call_manager/interfaces/kits/js/
D@ohos.telephony.call.d.ts16 import {AsyncCallback, Callback} from "./basic";
1162 function on(type: 'callDetailsChange', callback: Callback<CallAttributeOptions>): void;
1182 function off(type: 'callDetailsChange', callback?: Callback<CallAttributeOptions>): void;
1201 function on(type: 'callEventChange', callback: Callback<CallEventOptions>): void;
1220 function off(type: 'callEventChange', callback?: Callback<CallEventOptions>): void;
1239 function on(type: 'callDisconnectedCause', callback: Callback<DisconnectedDetails>): void;
1259 function off(type: 'callDisconnectedCause', callback?: Callback<DisconnectedDetails>): void;
1278 function on(type: 'mmiCodeResult', callback: Callback<MmiCodeResults>): void;
1297 function off(type: 'mmiCodeResult', callback?: Callback<MmiCodeResults>): void;
1316 function on(type: 'audioDeviceChange', callback: Callback<AudioDeviceInfo>): void;
[all …]
/base/time/time_service/services/time/src/
Dtime_tick_notify.cpp67 auto callback = [this]() { this->Callback(); }; in Init()
74 void TimeTickNotify::Callback() in Callback() function in OHOS::MiscServices::TimeTickNotify
80 auto callback = [this]() { this->Callback(); }; in Callback()
90 auto callback = [this]() { this->Callback(); }; in PowerCallback()
/base/msdp/device_status/services/interaction/coordination/include/
Dcoordination_event_handler.h31 bool ProxyPostTask(const Callback &callback, int64_t delayTime);
32 …bool ProxyPostTask(const Callback &callback, const std::string &name = std::string(), int64_t dela…
/base/security/access_token/services/tokensyncmanager/include/service/
Dtoken_sync_event_handler.h32 bool ProxyPostTask(const Callback &callback, int64_t delayTime);
34 …bool ProxyPostTask(const Callback &callback, const std::string &name = std::string(), int64_t dela…
/base/notification/eventhandler/interfaces/inner_api/
Devent_handler.h66 using Callback = InnerEvent::Callback; variable
412 …inline bool PostTask(const Callback &callback, const std::string &name = std::string(), int64_t de…
423 void SetDeliveryTimeoutCallback(const Callback &callback) in SetDeliveryTimeoutCallback()
433 void SetDistributeTimeoutCallback(const Callback &callback) in SetDistributeTimeoutCallback()
445 inline bool PostTask(const Callback &callback, Priority priority, Caller caller = {})
458 …inline bool PostTask(const Callback &callback, int64_t delayTime, Priority priority = Priority::LO…
471 inline bool PostImmediateTask(const Callback &callback, const std::string &name = std::string(),
485 …inline bool PostHighPriorityTask(const Callback &callback, const std::string &name = std::string(),
498 … inline bool PostHighPriorityTask(const Callback &callback, int64_t delayTime, Caller caller = {})
511 …inline bool PostIdleTask(const Callback &callback, const std::string &name = std::string(), int64_…
[all …]
Dinner_event.h44 using Callback = std::function<void()>; variable
202 static Pointer Get(const Callback &callback, const std::string &name = std::string());
386 inline const Callback &GetTaskCallback() const in GetTaskCallback()
396 inline const Callback &GetTask() const in GetTask()
552 Callback taskCallback_;
/base/msdp/device_status/services/interaction/coordination/src/
Dcoordination_event_handler.cpp30 bool CoordinationEventHandler::ProxyPostTask(const Callback &callback, int64_t delayTime) in ProxyPostTask()
36 bool CoordinationEventHandler::ProxyPostTask(const Callback &callback, const std::string &name, in ProxyPostTask()
/base/security/access_token/services/tokensyncmanager/src/service/
Dtoken_sync_event_handler.cpp35 bool TokenSyncEventHandler::ProxyPostTask(const Callback &callback, int64_t delayTime) in ProxyPostTask()
42 const Callback &callback, const std::string &name, int64_t delayTime) in ProxyPostTask()
/base/powermgr/battery_manager/charger/include/
Dbattery_thread.h58 using Callback = std::function<void(BatteryThread*, void*)>; variable
59 std::map<int32_t, Callback> callbacks_;
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_context_pool_listener.h36 using Callback = std::function<void(Action action, const std::shared_ptr<Context> &context)>; variable
38 static std::shared_ptr<ContextPool::ContextPoolListener> Create(const Callback &callback) in Create()
Dmock_resource_node_pool_listener.h38 …using Callback = std::function<void(Action action, const std::shared_ptr<ResourceNode> &resource)>; variable
40 …static std::shared_ptr<ResourceNodePool::ResourceNodePoolListener> Create(const Callback &callback) in Create()
/base/powermgr/thermal_manager/application/protector/include/
Dthermal_protector_timer.h31 using Callback = std::function<void(ThermalProtectorTimer*, void*)>;
54 std::map<int32_t, Callback> callbackHandler_;
Dthermal_sensor_provider.h39 using Callback = std::function<void(ThermalSensorProvider*, void*)>;
72 std::map<int32_t, Callback> callbackHandler_;
/base/msdp/device_status/libs/include/
Ddevicestatus_msdp_mock.h66 using Callback = std::function<void(DeviceStatusMsdpMock*)>;
68 std::map<int32_t, Callback> callbacks_;
/base/powermgr/thermal_manager/services/native/include/thermal_observer/
Dthermal_observer.h37 using Callback = std::function<void(const TypeTempMap&)>;
59 void SetRegisterCallback(Callback& callback);
111 Callback callback_;
/base/telephony/core_service/interfaces/kits/js/
Dbasic.d.ts24 export interface Callback<T> { interface
/base/time/time_service/services/time/include/
Dtime_tick_notify.h29 void Callback();
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_thread_module_test.cpp46 using Callback = OHOS::AppExecFwk::InnerEvent::Callback; typedef in AppAccountManagerServiceThreadModuleTest
203Callback callbackSetTwo = std::bind(&AppAccountManagerServiceThreadModuleTest::SetAssociatedDataTw…
219 Callback callbackDel = std::bind(&AppAccountManagerServiceThreadModuleTest::DeleteAccount, this,
/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dsec_event_handler.h30 …bool ProxyPostTask(const Callback &callback, const std::string &name = std::string(), int64_t dela…
Dsec_event_handler.cpp29 const Callback &callback, const std::string &name, int64_t delayTime) in ProxyPostTask()

123