/base/telephony/state_registry/interfaces/kits/js/ |
D | @ohos.telephony.observer.d.ts | 16 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/ |
D | event_listener.h | 25 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_;
|
D | callback_manager.h | 33 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}); \
|
D | callback_manager.cpp | 52 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.ts | 15 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.ts | 16 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/ |
D | time_tick_notify.cpp | 67 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/ |
D | coordination_event_handler.h | 31 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/ |
D | token_sync_event_handler.h | 32 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/ |
D | event_handler.h | 66 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 …]
|
D | inner_event.h | 44 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/ |
D | coordination_event_handler.cpp | 30 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/ |
D | token_sync_event_handler.cpp | 35 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/ |
D | battery_thread.h | 58 using Callback = std::function<void(BatteryThread*, void*)>; variable 59 std::map<int32_t, Callback> callbacks_;
|
/base/useriam/user_auth_framework/test/unittest/services/mocks/ |
D | mock_context_pool_listener.h | 36 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()
|
D | mock_resource_node_pool_listener.h | 38 …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/ |
D | thermal_protector_timer.h | 31 using Callback = std::function<void(ThermalProtectorTimer*, void*)>; 54 std::map<int32_t, Callback> callbackHandler_;
|
D | thermal_sensor_provider.h | 39 using Callback = std::function<void(ThermalSensorProvider*, void*)>; 72 std::map<int32_t, Callback> callbackHandler_;
|
/base/msdp/device_status/libs/include/ |
D | devicestatus_msdp_mock.h | 66 using Callback = std::function<void(DeviceStatusMsdpMock*)>; 68 std::map<int32_t, Callback> callbacks_;
|
/base/powermgr/thermal_manager/services/native/include/thermal_observer/ |
D | thermal_observer.h | 37 using Callback = std::function<void(const TypeTempMap&)>; 59 void SetRegisterCallback(Callback& callback); 111 Callback callback_;
|
/base/telephony/core_service/interfaces/kits/js/ |
D | basic.d.ts | 24 export interface Callback<T> { interface
|
/base/time/time_service/services/time/include/ |
D | time_tick_notify.h | 29 void Callback();
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | app_account_manager_service_thread_module_test.cpp | 46 using Callback = OHOS::AppExecFwk::InnerEvent::Callback; typedef in AppAccountManagerServiceThreadModuleTest 203 …Callback 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/ |
D | sec_event_handler.h | 30 …bool ProxyPostTask(const Callback &callback, const std::string &name = std::string(), int64_t dela…
|
D | sec_event_handler.cpp | 29 const Callback &callback, const std::string &name, int64_t delayTime) in ProxyPostTask()
|