/base/notification/common_event_service/frameworks/core/test/unittest/ |
H A D | common_event_proxy_test.cpp | 36 using namespace OHOS::EventFwk; 66 namespace OHOS { namespace 134 OHOS::MessageParcel dataParcel; in HWTEST_F() 135 OHOS::MessageParcel reply; in HWTEST_F() 136 OHOS::sptr<OHOS::IRemoteObject> object = new OHOS::MockIRemoteObject(); in HWTEST_F() 149 EXPECT_EQ(OHOS::ERR_OK, result); in HWTEST_F() 161 OHOS::MessageParcel dataParcel; in HWTEST_F() 162 OHOS in HWTEST_F() [all...] |
H A D | common_event_stub_test.cpp | 33 using namespace OHOS::EventFwk; 51 namespace OHOS { namespace 133 OHOS::MessageParcel dataParcel; in HWTEST_F() 134 OHOS::MessageParcel reply; in HWTEST_F() 135 OHOS::MessageOption option; in HWTEST_F() 139 EXPECT_EQ(OHOS::ERR_TRANSACTION_FAILED, result); in HWTEST_F() 152 OHOS::MessageParcel dataParcel; in HWTEST_F() 153 OHOS::MessageParcel reply; in HWTEST_F() 154 OHOS::MessageOption option; in HWTEST_F() 163 EXPECT_EQ(OHOS in HWTEST_F() [all...] |
/base/security/access_token/services/el5filekeymanager/test/src/ |
H A D | el5_filekey_manager_stub_unittest.cpp | 24 using namespace OHOS::Security::AccessToken;
51 OHOS::MessageParcel data;
in HWTEST_F() 52 OHOS::MessageParcel reply;
in HWTEST_F() 53 OHOS::MessageOption option(OHOS::MessageOption::TF_SYNC);
in HWTEST_F() 58 static_cast<uint32_t>(EFMInterfaceCode::GENERATE_APP_KEY), data, reply, option), OHOS::NO_ERROR);
in HWTEST_F() 69 OHOS::MessageParcel data;
in HWTEST_F() 70 OHOS::MessageParcel reply;
in HWTEST_F() 71 OHOS::MessageOption option(OHOS in HWTEST_F() [all...] |
/base/web/webview/ohos_adapter/multimodalinput_adapter/src/ |
H A D | mmi_keyevent_adapter.cpp | 20 namespace OHOS::NWeb { 22 const int32_t KeyEvent::KEYCODE_0 = OHOS::MMI::KeyEvent::KEYCODE_0; 23 const int32_t KeyEvent::KEYCODE_1 = OHOS::MMI::KeyEvent::KEYCODE_1; 24 const int32_t KeyEvent::KEYCODE_2 = OHOS::MMI::KeyEvent::KEYCODE_2; 25 const int32_t KeyEvent::KEYCODE_3 = OHOS::MMI::KeyEvent::KEYCODE_3; 26 const int32_t KeyEvent::KEYCODE_4 = OHOS::MMI::KeyEvent::KEYCODE_4; 27 const int32_t KeyEvent::KEYCODE_5 = OHOS::MMI::KeyEvent::KEYCODE_5; 28 const int32_t KeyEvent::KEYCODE_6 = OHOS::MMI::KeyEvent::KEYCODE_6; 29 const int32_t KeyEvent::KEYCODE_7 = OHOS::MMI::KeyEvent::KEYCODE_7; 30 const int32_t KeyEvent::KEYCODE_8 = OHOS [all...] |
/base/update/updater/services/ui/control/ |
H A D | event_listener.h | 26 std::function<void(OHOS::UIView &)> func {nullptr}; 41 void operator()(OHOS::UIView &view, bool isAsync) const; 43 static void CallbackWithGuard(Callback cb, OHOS::UIView &view); 48 class LabelOnTouchListener final : public OHOS::UIView::OnTouchListener { 53 bool OnRelease(OHOS::UIView &view, const OHOS::ReleaseEvent &event) override; 60 class BtnOnEventListener final : public OHOS::UIView::OnClickListener, public OHOS::UIView::OnTouchListener { 65 bool OnClick(OHOS::UIView &view, const OHOS [all...] |
H A D | event_listener.cpp | 29 void CallBackDecorator::operator()(OHOS::UIView &view, bool isAsync) const in operator ()() 71 void CallBackDecorator::CallbackWithGuard(Callback cb, OHOS::UIView &view) in CallbackWithGuard() 83 bool LabelOnTouchListener::OnRelease(OHOS::UIView &view, [[maybe_unused]] const OHOS::ReleaseEvent &event) in OnRelease() 90 bool BtnOnEventListener::OnClick(OHOS::UIView &view, [[maybe_unused]] const OHOS::ClickEvent &event) in OnClick() 96 bool BtnOnEventListener::OnPress(OHOS::UIView &view, [[maybe_unused]] const OHOS::PressEvent &event) in OnPress() 102 bool BtnOnEventListener::OnRelease(OHOS::UIView &view, [[maybe_unused]] const OHOS [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_media_codec_decoder_adapter_wrapper.h | 23 namespace OHOS::ArkWeb { 25 class ArkMediaCodecDecoderAdapterWrapper : public OHOS::NWeb::MediaCodecDecoderAdapter { 29 OHOS::NWeb::DecoderAdapterCode CreateVideoDecoderByMime(const std::string& mimetype) override; 31 OHOS::NWeb::DecoderAdapterCode CreateVideoDecoderByName(const std::string& name) override; 33 OHOS::NWeb::DecoderAdapterCode ConfigureDecoder( 34 const std::shared_ptr<OHOS::NWeb::DecoderFormatAdapter> format) override; 36 OHOS::NWeb::DecoderAdapterCode SetParameterDecoder( 37 const std::shared_ptr<OHOS::NWeb::DecoderFormatAdapter> format) override; 39 OHOS::NWeb::DecoderAdapterCode SetOutputSurface(void* window) override; 41 OHOS [all...] |
H A D | ark_media_codec_decoder_adapter_wrapper.cpp | 23 namespace OHOS::ArkWeb { 29 OHOS::NWeb::DecoderAdapterCode ArkMediaCodecDecoderAdapterWrapper::CreateVideoDecoderByMime(const std::string& mimetype) in CreateVideoDecoderByMime() 34 return (OHOS::NWeb::DecoderAdapterCode)result; in CreateVideoDecoderByMime() 37 OHOS::NWeb::DecoderAdapterCode ArkMediaCodecDecoderAdapterWrapper::CreateVideoDecoderByName(const std::string& name) in CreateVideoDecoderByName() 42 return (OHOS::NWeb::DecoderAdapterCode)result; in CreateVideoDecoderByName() 45 OHOS::NWeb::DecoderAdapterCode ArkMediaCodecDecoderAdapterWrapper::ConfigureDecoder( in ConfigureDecoder() 46 const std::shared_ptr<OHOS::NWeb::DecoderFormatAdapter> format) in ConfigureDecoder() 54 return (OHOS::NWeb::DecoderAdapterCode)result; in ConfigureDecoder() 57 OHOS::NWeb::DecoderAdapterCode ArkMediaCodecDecoderAdapterWrapper::SetParameterDecoder( in SetParameterDecoder() 58 const std::shared_ptr<OHOS in SetParameterDecoder() [all...] |
H A D | ark_media_codec_encoder_adapter_wrapper.h | 23 namespace OHOS::ArkWeb { 25 class ArkMediaCodecEncoderAdapterWrapper : public OHOS::NWeb::MediaCodecAdapter { 29 OHOS::NWeb::CodecCodeAdapter CreateVideoCodecByMime(const std::string mimetype) override; 31 OHOS::NWeb::CodecCodeAdapter CreateVideoCodecByName(const std::string name) override; 33 OHOS::NWeb::CodecCodeAdapter SetCodecCallback( 34 const std::shared_ptr<OHOS::NWeb::CodecCallbackAdapter> callback) override; 36 OHOS::NWeb::CodecCodeAdapter Configure(const std::shared_ptr<OHOS::NWeb::CodecConfigParaAdapter> config) override; 38 OHOS::NWeb::CodecCodeAdapter Prepare() override; 40 OHOS [all...] |
H A D | ark_media_codec_encoder_adapter_wrapper.cpp | 24 namespace OHOS::ArkWeb { 30 OHOS::NWeb::CodecCodeAdapter ArkMediaCodecEncoderAdapterWrapper::CreateVideoCodecByMime(const std::string mimetype) in CreateVideoCodecByMime() 35 return (OHOS::NWeb::CodecCodeAdapter)result; in CreateVideoCodecByMime() 38 OHOS::NWeb::CodecCodeAdapter ArkMediaCodecEncoderAdapterWrapper::CreateVideoCodecByName(const std::string name) in CreateVideoCodecByName() 43 return (OHOS::NWeb::CodecCodeAdapter)result; in CreateVideoCodecByName() 46 OHOS::NWeb::CodecCodeAdapter ArkMediaCodecEncoderAdapterWrapper::Configure( in Configure() 47 const std::shared_ptr<OHOS::NWeb::CodecConfigParaAdapter> config) in Configure() 55 return (OHOS::NWeb::CodecCodeAdapter)result; in Configure() 58 OHOS::NWeb::CodecCodeAdapter ArkMediaCodecEncoderAdapterWrapper::Prepare() in Prepare() 61 return (OHOS in Prepare() [all...] |
/base/location/interfaces/inner_api/include/ |
H A D | location_log.h | 21 namespace OHOS { namespace 67 static constexpr OHOS::HiviewDFX::HiLogLabel GEO_CONVERT = {LOG_CORE, LOCATION_LOG_DOMAIN, "GeoConvert"}; 68 static constexpr OHOS::HiviewDFX::HiLogLabel LOCATOR = {LOG_CORE, LOCATION_LOG_DOMAIN, "Locator"}; 69 static constexpr OHOS::HiviewDFX::HiLogLabel LOCATOR_STANDARD = {LOG_CORE, LOCATION_LOG_DOMAIN, "Locator_standard"}; 70 static constexpr OHOS::HiviewDFX::HiLogLabel SWITCH_CALLBACK = {LOG_CORE, LOCATION_LOG_DOMAIN, "SwitchCallback"}; 71 static constexpr OHOS::HiviewDFX::HiLogLabel GNSS_STATUS_CALLBACK = { 74 static constexpr OHOS::HiviewDFX::HiLogLabel NMEA_MESSAGE_CALLBACK = { 77 static constexpr OHOS::HiviewDFX::HiLogLabel CACHED_LOCATIONS_CALLBACK = { 80 static constexpr OHOS::HiviewDFX::HiLogLabel COUNTRY_CODE_CALLBACK = { 83 static constexpr OHOS [all...] |
/base/useriam/user_auth_framework/services/base/inc/ |
H A D | user_auth_hdi.h | 24 namespace OHOS { namespace 27 using IUserAuthInterface = OHOS::HDI::UserAuth::V2_0::IUserAuthInterface; 28 using HdiAuthType = OHOS::HDI::UserAuth::V2_0::AuthType; 29 using HdiExecutorRole = OHOS::HDI::UserAuth::V2_0::ExecutorRole; 30 using HdiExecutorSecureLevel = OHOS::HDI::UserAuth::V2_0::ExecutorSecureLevel; 31 using HdiPinSubType = OHOS::HDI::UserAuth::V2_0::PinSubType; 32 using HdiScheduleMode = OHOS::HDI::UserAuth::V2_0::ScheduleMode; 33 using HdiExecutorRegisterInfo = OHOS::HDI::UserAuth::V2_0::ExecutorRegisterInfo; 34 using HdiExecutorInfo = OHOS::HDI::UserAuth::V2_0::ExecutorInfo; 35 using HdiScheduleInfo = OHOS [all...] |
/base/web/webview/ohos_adapter/display_manager_adapter/src/ |
H A D | display_manager_adapter_impl.cpp | 23 using namespace OHOS::Rosen; 24 using namespace OHOS::NWeb; 26 namespace OHOS::NWeb { 52 OHOS::NWeb::FoldStatus FoldStatusListenerAdapterImpl::ConvertFoldStatus( in ConvertFoldStatus() 57 return OHOS::NWeb::FoldStatus::FULL; in ConvertFoldStatus() 59 return OHOS::NWeb::FoldStatus::MAIN; in ConvertFoldStatus() 61 return OHOS::NWeb::FoldStatus::SUB; in ConvertFoldStatus() 63 return OHOS::NWeb::FoldStatus::COORDINATION; in ConvertFoldStatus() 65 return OHOS::NWeb::FoldStatus::UNKNOWN; in ConvertFoldStatus() 77 DisplayAdapterImpl::DisplayAdapterImpl(sptr<OHOS [all...] |
/base/update/updater/services/ui/view/component/ |
H A D | label_btn_adapter.cpp | 23 struct LabelBtnAdapter::LabelBtnOnFocusListener : public OHOS::UIView::OnFocusListener { 26 LabelBtnOnFocusListener(const OHOS::ColorType &focusedTxtColor, const OHOS::ColorType &unfocusedTxtcolor, in LabelBtnOnFocusListener() 27 const OHOS::ColorType &focusedBgColor, const OHOS::ColorType &unfocusedBgcolor) in LabelBtnOnFocusListener() 34 bool OnFocus(OHOS::UIView &view) override 37 if (view.GetViewType() != OHOS::UI_LABEL_BUTTON) { 42 button->SetLabelStyle(OHOS::STYLE_TEXT_COLOR, focusedTxtcolor_.full); 43 button->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, focusedBgcolor_.full); 48 bool OnBlur(OHOS [all...] |
/base/security/asset/services/os_dependency/src/ |
H A D | system_ability_wrapper.cpp | 32 class SystemAbilityHandler : public OHOS::SystemAbilityStatusChangeStub { 38 if (systemAbilityId != OHOS::COMMON_EVENT_SERVICE_ID) { 50 if (systemAbilityId != OHOS::COMMON_EVENT_SERVICE_ID) { 63 OHOS::sptr<OHOS::ISystemAbilityManager> GetSystemAbility(void) in GetSystemAbility() 66 OHOS::sptr<OHOS::ISystemAbilityManager> samgrProxy = in GetSystemAbility() 67 OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetSystemAbility() 70 samgrProxy = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetSystemAbility() 76 OHOS [all...] |
/base/useriam/face_auth/services/inc/ |
H A D | face_auth_hdi.h | 25 namespace OHOS { namespace 28 using IFaceAuthInterface = OHOS::HDI::FaceAuth::V2_0::IFaceAuthInterface; 30 using IExecutorCallback = OHOS::HDI::FaceAuth::V2_0::IExecutorCallback; 32 using IAllInOneExecutor = OHOS::HDI::FaceAuth::V2_0::IAllInOneExecutor; 34 using AuthType = OHOS::HDI::FaceAuth::V2_0::AuthType; 35 using ExecutorRole = OHOS::HDI::FaceAuth::V2_0::ExecutorRole; 36 using ExecutorSecureLevel = OHOS::HDI::FaceAuth::V2_0::ExecutorSecureLevel; 37 using DriverCommandId = OHOS::HDI::FaceAuth::V2_0::DriverCommandId; 38 using FaceTipsCode = OHOS::HDI::FaceAuth::V2_0::FaceTipsCode; 39 using ExecutorInfo = OHOS [all...] |
/base/telephony/core_service/interfaces/kits/c/telephony_radio/src/ |
H A D | telephony_radio.cpp | 27 using namespace OHOS::Telephony; 29 static Telephony_RadioTechnology Conv2TelRadioTechnology(OHOS::Telephony::RadioTech radioTechType) in Conv2TelRadioTechnology() 32 case OHOS::Telephony::RadioTech::RADIO_TECHNOLOGY_GSM: in Conv2TelRadioTechnology() 34 case OHOS::Telephony::RadioTech::RADIO_TECHNOLOGY_LTE: in Conv2TelRadioTechnology() 36 case OHOS::Telephony::RadioTech::RADIO_TECHNOLOGY_WCDMA: in Conv2TelRadioTechnology() 38 case OHOS::Telephony::RadioTech::RADIO_TECHNOLOGY_1XRTT: in Conv2TelRadioTechnology() 40 case OHOS::Telephony::RadioTech::RADIO_TECHNOLOGY_HSPA: in Conv2TelRadioTechnology() 42 case OHOS::Telephony::RadioTech::RADIO_TECHNOLOGY_HSPAP: in Conv2TelRadioTechnology() 44 case OHOS::Telephony::RadioTech::RADIO_TECHNOLOGY_TD_SCDMA: in Conv2TelRadioTechnology() 46 case OHOS in Conv2TelRadioTechnology() [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 239 namespace OHOS { namespace 250 OHOS::Notification::NotificationRequest request); 253 OHOS::Notification::NotificationRequest request); 256 OHOS::Notification::NotificationRequest request); 257 bool GetNotificationRequestByNumber(CNotificationRequest cjRequest, OHOS::Notification::NotificationRequest &request); 258 bool GetNotificationRequestByString(CNotificationRequest cjRequest, OHOS::Notification::NotificationRequest &request); 259 bool GetNotificationRequestByBool(CNotificationRequest cjRequest, OHOS::Notification::NotificationRequest &request); 260 bool GetNotificationRequestByCustom(CNotificationRequest cjRequest, OHOS::Notification::NotificationRequest &request); 262 std::shared_ptr<OHOS::Notification::NotificationBasicContent> basicContent); 264 OHOS [all...] |
/base/useriam/fingerprint_auth/services/inc/ |
H A D | fingerprint_auth_hdi.h | 25 namespace OHOS { namespace 28 using IFingerprintAuthInterface = OHOS::HDI::FingerprintAuth::V2_0::IFingerprintAuthInterface; 30 using IExecutorCallback = OHOS::HDI::FingerprintAuth::V2_0::IExecutorCallback; 32 using IAllInOneExecutor = OHOS::HDI::FingerprintAuth::V2_0::IAllInOneExecutor; 34 using AuthType = OHOS::HDI::FingerprintAuth::V2_0::AuthType; 35 using ExecutorRole = OHOS::HDI::FingerprintAuth::V2_0::ExecutorRole; 36 using ExecutorSecureLevel = OHOS::HDI::FingerprintAuth::V2_0::ExecutorSecureLevel; 37 using DriverCommandId = OHOS::HDI::FingerprintAuth::V2_0::DriverCommandId; 38 using FingerprintTipsCode = OHOS::HDI::FingerprintAuth::V2_0::FingerprintTipsCode; 39 using ExecutorInfo = OHOS [all...] |
/base/time/time_service/services/timer/src/ |
H A D | timer_database.cpp | 19 namespace OHOS { namespace 53 int errCode = OHOS::NativeRdb::E_OK; in TimeDatabase() 54 OHOS::NativeRdb::RdbStoreConfig config(DB_NAME); in TimeDatabase() 59 store_ = OHOS::NativeRdb::RdbHelper::GetRdbStore(config, DATABASE_OPEN_VERSION_2, timeDBOpenCallback, errCode); in TimeDatabase() 61 if (errCode == OHOS::NativeRdb::E_SQLITE_CORRUPT) { in TimeDatabase() 62 auto ret = OHOS::NativeRdb::RdbHelper::DeleteRdbStore(config); in TimeDatabase() 63 if (ret != OHOS::NativeRdb::E_OK) { in TimeDatabase() 67 store_ = OHOS::NativeRdb::RdbHelper::GetRdbStore(config, DATABASE_OPEN_VERSION_2, timeDBOpenCallback, errCode); in TimeDatabase() 79 OHOS::NativeRdb::RdbStoreConfig config(DB_NAME); in RecoverDataBase() 83 auto ret = OHOS in RecoverDataBase() [all...] |
/base/notification/common_event_service/services/test/unittest/ |
H A D | common_event_unsubscribe_unit_test.cpp | 31 using namespace OHOS::EventFwk; 32 using namespace OHOS::AppExecFwk; 43 static OHOS::sptr<OHOS::IRemoteObject> bundleObject = nullptr; 72 OHOS::DelayedSingleton<BundleManagerHelper>::GetInstance()->sptrBundleMgr_ = in SetUpTestCase() 73 OHOS::iface_cast<OHOS::AppExecFwk::IBundleMgr>(bundleObject); in SetUpTestCase() 101 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() 102 OHOS::sptr<OHOS in HWTEST_F() [all...] |
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
H A D | dump_jsheap_info.cpp | 22 namespace OHOS { namespace 32 bool DumpJsHeapInfo::DumpJsHeapMemory(OHOS::AppExecFwk::JsHeapDumpInfo &info) in DumpJsHeapMemory() 38 OHOS::sptr<OHOS::ISystemAbilityManager> systemAbilityManager = in DumpJsHeapMemory() 39 OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in DumpJsHeapMemory() 40 OHOS::sptr<OHOS::AppExecFwk::IAppMgr> appManager = in DumpJsHeapMemory() 41 OHOS::iface_cast<OHOS::AppExecFwk::IAppMgr>(systemAbilityManager->GetSystemAbility(OHOS in DumpJsHeapMemory() [all...] |
/base/security/device_auth/services/frameworks/src/os_account_adapter/ |
H A D | os_account_adapter.cpp | 40 static std::shared_ptr<OHOS::DevAuth::AccountSubscriber> g_accountSubscriber = nullptr; 41 static OHOS::sptr<OHOS::DevAuth::SaSubscriber> g_saSubscriber = nullptr; 47 static OHOS::DevAuth::OsAccountEventNotifier g_accountEventNotifier; 48 static OHOS::DevAuth::SaEventNotifier g_saEventNotifier; 82 OHOS::EventFwk::MatchingSkills matchingSkills; in SubscribeCommonEvent() 83 matchingSkills.AddEvent(OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_USER_UNLOCKED); in SubscribeCommonEvent() 84 matchingSkills.AddEvent(OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED); in SubscribeCommonEvent() 85 OHOS::EventFwk::CommonEventSubscribeInfo subscribeInfo(matchingSkills); in SubscribeCommonEvent() 86 g_accountSubscriber = std::make_shared<OHOS in SubscribeCommonEvent() [all...] |
/base/useriam/pin_auth/services/modules/common/inc/ |
H A D | pin_auth_hdi.h | 29 namespace OHOS { namespace 32 using IPinAuthInterface = OHOS::HDI::PinAuth::V2_0::IPinAuthInterface; 33 using PinAuthInterfaceService = OHOS::HDI::PinAuth::V2_0::PinAuthInterfaceService; 35 using IAllInOneExecutor = OHOS::HDI::PinAuth::V2_0::IAllInOneExecutor; 36 using ICollector = OHOS::HDI::PinAuth::V2_0::ICollector; 37 using IVerifier = OHOS::HDI::PinAuth::V2_0::IVerifier; 39 using IExecutorCallback = OHOS::HDI::PinAuth::V2_0::IExecutorCallback; 41 using AuthType = OHOS::HDI::PinAuth::V2_0::AuthType; 42 using ExecutorRole = OHOS::HDI::PinAuth::V2_0::ExecutorRole; 43 using ExecutorSecureLevel = OHOS [all...] |
/base/time/time_service/services/timer/include/ |
H A D | timer_database.h | 23 namespace OHOS { namespace 36 int GetInt(std::shared_ptr<OHOS::NativeRdb::ResultSet> resultSet, int line); 37 int64_t GetLong(std::shared_ptr<OHOS::NativeRdb::ResultSet> resultSet, int line); 38 std::string GetString(std::shared_ptr<OHOS::NativeRdb::ResultSet> resultSet, int line); 44 bool Insert(const std::string &table, const OHOS::NativeRdb::ValuesBucket &insertValues); 45 bool Update(const OHOS::NativeRdb::ValuesBucket values, const OHOS::NativeRdb::AbsRdbPredicates &predicates); 46 std::shared_ptr<OHOS::NativeRdb::ResultSet> Query( 47 const OHOS::NativeRdb::AbsRdbPredicates &predicates, const std::vector<std::string> &columns); 48 bool Delete(const OHOS [all...] |