Lines Matching refs:OHOS
29 namespace OHOS::uitest {
30 class IApiCaller : public OHOS::IRemoteBroker {
38 virtual bool SetBackCaller(const OHOS::sptr<OHOS::IRemoteObject> &caller) = 0;
42 class ApiCaller : public OHOS::IRemoteStub<IApiCaller> {
46 virtual int OnRemoteRequest(uint32_t code, OHOS::MessageParcel &data,
47 OHOS::MessageParcel &reply, OHOS::MessageOption &option) override;
49 bool SetBackCaller(const OHOS::sptr<IRemoteObject> &caller) override;
52 void SetBackCallerHandler(std::function<void(OHOS::sptr<OHOS::IRemoteObject>)> handler);
56 std::function<void(OHOS::sptr<OHOS::IRemoteObject>)> backcallerHandler_ = nullptr;
59 class ApiCallerProxy : public OHOS::IRemoteProxy<IApiCaller> {
61 explicit ApiCallerProxy(const OHOS::sptr<OHOS::IRemoteObject> &impl);
64 bool SetBackCaller(const OHOS::sptr<IRemoteObject> &caller) override;
65 bool SetRemoteDeathCallback(const sptr<OHOS::IRemoteObject::DeathRecipient> &callback);
66 bool UnsetRemoteDeathCallback(const sptr<OHOS::IRemoteObject::DeathRecipient> &callback);
69 static inline OHOS::BrokerDelegator<ApiCallerProxy> delegator_;
74 using BroadcastCommandHandler = std::function<void(const OHOS::AAFwk::Want &cmd, ApiCallErr &err)>;
86 static void SendBroadcastCommand(const OHOS::AAFwk::Want &cmd, ApiCallErr &err);
99 sptr<OHOS::IRemoteObject::DeathRecipient> peerDeathCallback_ = nullptr;
103 } // namespace OHOS::uitest