/base/sensors/sensor/utils/common/include/ |
H A D | sensor_delayed_sp_singleton.h | 41 static std::mutex mutex_; 48 std::mutex SensorDelayedSpSingleton<T>::mutex_; 53 std::lock_guard<std::mutex> lock(mutex_); in GetInstance() 65 std::lock_guard<std::mutex> lock(mutex_); in DestroyInstance()
|
/base/startup/init/device_info/ |
H A D | device_info_stub.h | 35 bool CheckPermission(MessageParcel &data, const std::string &permission);
47 int32_t GetUdid(std::string& result) override;
48 int32_t GetSerialID(std::string& result) override;
52 int Dump(int fd, const std::vector<std::u16string>& args) override;
54 std::atomic_bool threadStarted_ { false };
|
/base/security/security_guard/test/unittest/data_collect/sa/ |
H A D | acquire_data_subscribe_manager.h | 59 std::shared_ptr<IDbListener> listener_{}; 60 std::mutex mutex_{}; 61 std::map<int64_t, std::set<sptr<IRemoteObject>>> eventIdToSubscriberMap_{}; 62 std::unordered_map<int64_t, std::shared_ptr<SecurityCollectorSubscriber>> scSubscribeMap_{};
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/interface/include/ |
H A D | vibrator_hdi_connection.h | 31 int32_t Start(const std::string &effectType) override;
37 std::optional<HdfEffectInfo> GetEffectInfo(const std::string &effect) override;
44 int32_t StartByIntensity(const std::string &effect, int32_t intensity) override;
46 int32_t GetAllWaveInfo(std::vector<HdfWaveInformation> &waveInfos) override;
51 std::unique_ptr<IVibratorHdiConnection> iVibratorHdiConnection_ = nullptr;
|
/base/sensors/sensor/services/include/ |
H A D | sensor_manager.h | 38 void InitSensorMap(const std::unordered_map<int32_t, Sensor> &sensorMap, sptr<SensorDataProcesser> dataProcesser, 44 void InitSensorMap(const std::unordered_map<int32_t, Sensor> &sensorMap); 50 void GetPackageName(AccessTokenID tokenId, std::string &packageName); 55 std::thread dataThread_; 60 std::unordered_map<int32_t, Sensor> sensorMap_; 61 std::mutex sensorMapMutex_;
|
/base/security/security_component_manager/frameworks/inner_api/security_component/include/ |
H A D | sec_comp_client.h | 33 int32_t RegisterSecurityComponent(SecCompType type, const std::string& componentInfo, int32_t& scId); 34 int32_t UpdateSecurityComponent(int32_t scId, const std::string& componentInfo); 37 const std::string& componentInfo, const SecCompClickEvent& clickInfo, 63 std::mutex cvLock_; 65 std::condition_variable secComCon_; 66 std::mutex proxyMutex_;
|
/base/security/security_component_manager/test/fuzztest/security_component/mock/ |
H A D | first_use_dialog.cpp | 47 bool FirstUseDialog::ReadCfgContent(std::string& content) in ReadCfgContent() 52 void FirstUseDialog::WriteCfgContent(const std::string& content) in WriteCfgContent() 88 void FirstUseDialog::StartDialogAbility(std::shared_ptr<SecCompEntity> entity, in StartDialogAbility() 99 bool FirstUseDialog::SetFirstUseMap(std::shared_ptr<SecCompEntity> entity) in SetFirstUseMap() 104 int32_t FirstUseDialog::NotifyFirstUseDialog(std::shared_ptr<SecCompEntity> entity, in NotifyFirstUseDialog() 110 void FirstUseDialog::Init(std::shared_ptr<SecEventHandler> secHandler) in Init()
|
/base/sensors/miscdevice/utils/common/include/ |
H A D | miscdevice_delayed_sp_singleton.h | 41 static std::mutex mutex_; 48 std::mutex MiscdeviceDelayedSpSingleton<T>::mutex_; 53 std::lock_guard<std::mutex> lock(mutex_); in GetInstance() 65 std::lock_guard<std::mutex> lock(mutex_); in DestroyInstance()
|
/base/telephony/sms_mms/services/sms/include/gsm/ |
H A D | gsm_sms_tpdu_encode.h | 25 GsmSmsTpduEncode(std::shared_ptr<GsmUserDataPdu> dataCodec, std::shared_ptr<GsmSmsParamCodec> paramCodec, 26 std::shared_ptr<GsmSmsTpduCodec> tpdu); 46 std::shared_ptr<GsmUserDataPdu> uDataCodec_ = nullptr; 47 std::shared_ptr<GsmSmsParamCodec> paramCodec_ = nullptr; 48 std::shared_ptr<GsmSmsTpduCodec> tpdu_ = nullptr;
|
/base/telephony/cellular_data/services/include/apn_manager/ |
H A D | apn_item.h | 34 std::vector<std::string> GetApnTypes() const; 35 bool CanDealWithType(const std::string &type) const; 38 static sptr<ApnItem> MakeDefaultApn(const std::string &apnType); 65 std::vector<std::string> apnTypes_;
|
/base/update/updater/services/flashd/daemon/ |
H A D | flashd_main.cpp | 36 std::vector<std::string> args = Updater::Utils::ParseParams(argc, argv); in FlashdMain() 43 for (std::string arg : args) { in FlashdMain() 44 if (arg.find("-l") != std::string::npos) { in FlashdMain() 50 } else if (arg.find("-t") != std::string::npos || strncmp(modeSet, "tcp", 3) == 0) { // 3 tcp in FlashdMain() 52 } else if (arg.find("-u") != std::string::npos) { in FlashdMain()
|
/base/update/updater/test/unittest/script/script_instruction/user_instruction/ |
H A D | user_instruction.cpp | 21 using namespace std; 53 int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name) override 56 instr = new (std::nothrow) UserInstruction1(); // 为何不加nothrow??? 58 instr = new (std::nothrow) UserInstruction2(); 62 instr = new (std::nothrow) UserInstructionAbort(); // mock reserved error 79 return new (std::nothrow) UserInstructionFactory; in GetInstructionFactory()
|
/base/update/updater/services/ui/driver/ |
H A D | graphic_engine.h | 46 std::thread flushLoop_; 47 std::unique_ptr<OHOS::BufferInfo> buffInfo_ = nullptr; 48 std::unique_ptr<uint8_t[]> virAddr_ = nullptr; 49 std::unique_ptr<SurfaceDev> sfDev_ = nullptr; 56 std::mutex mtx_ {}; 65 void PostInitSurfDev(std::unique_ptr<SurfaceDev> &surfDev, GrSurface &surface);
|
/base/update/updater/services/ui/view/component/ |
H A D | img_view_adapter.h | 27 std::string resPath; 28 std::string filePrefix; 65 std::string currPath_ {}; 66 std::string dir_ {}; 67 std::string filePrefix_ {}; 68 std::unique_ptr<ImgAnimatorCallback> cb_ {};
|
H A D | component_factory.h | 48 using Type = std::variant<typename Components::SpecificInfoType...>; 53 static std::unique_ptr<ComponentInterface> CreateUxComponent(const UxViewInfo &info); 57 using SpecificInfoFunc = std::function<SpecificInfo<COMPONENT_TYPE_LIST>::Type()>; 62 const static std::unordered_map<std::string, SpecificInfoFunc> specificInfoMap { in GetSpecificInfoMap() 75 inline constexpr bool CHECK_COMPONENT_LIST = (std::is_same_v<T, Components> || ...);
|
/base/update/updateservice/frameworks/js/napi/update/include/ |
H A D | session_manager.h | 36 void AddSession(std::shared_ptr<BaseSession> session); 39 int32_t ProcessUnsubscribe(const std::string &eventType, size_t argc, napi_value arg); 42 BaseSession *FindSessionByHandle(napi_env env, const std::string &eventType, napi_value arg); 55 std::map<uint32_t, std::shared_ptr<BaseSession>> sessions_; 56 std::recursive_mutex sessionMutex_;
|
/base/update/updateservice/services/engine/include/ |
H A D | update_notify.h | 41 bool ConnectToAppService(const std::string &eventInfo, const std::string &subscribeInfo); 45 bool HandleMessage(const std::string &message); 50 static std::mutex instanceLock_; 53 std::mutex connectMutex_; 54 std::condition_variable conditionVal_;
|
/base/update/updateservice/services/firmware/upgrade/flow/include/ |
H A D | firmware_manager.h | 41 std::vector<ScheduleTask> GetScheduleTasks(); 66 void HandleBootUpdateSuccess(const FirmwareTask &task, const std::map<std::string, UpdateResult> &resultMap); 67 void HandleBootUpdateFail(const FirmwareTask &task, const std::map<std::string, UpdateResult> &resultMap); 74 std::shared_ptr<FirmwarePreferencesUtil> preferencesUtil_ =
|
/base/update/updateservice/services/firmware/upgrade/install/src/ |
H A D | firmware_install.cpp | 32 void FirmwareInstall::StartInstall(const std::vector<FirmwareComponent> &componentList, FirmwareInstallCallback &cb) in StartInstall() 55 std::lock_guard<std::mutex> lock(mutex_); in IsInstalling() 61 std::lock_guard<std::mutex> lock(mutex_); in SetIsInstalling() 65 void FirmwareInstall::CallbackFailedResult(FirmwareInstallCallback &cb, const std::string &errorMsg, int32_t errCode) in CallbackFailedResult()
|
/base/usb/usb_manager/services/native/include/ |
H A D | usb_function_switch_window.h | 46 static std::shared_ptr<UsbFunctionSwitchWindow> GetInstance();
68 static std::shared_ptr<UsbFunctionSwitchWindow> instance_;
71 static std::mutex insMutex_;
72 std::mutex opMutex_;
73 const std::string functionSwitchBundleName_ = "com.usb.right";
74 const std::string functionSwitchExtAbility_ = "UsbFunctionSwitchExtAbility";
|
H A D | usb_port_manager.h | 38 int32_t GetPorts(std::vector<UsbPort> &ports); 46 void Dump(int32_t fd, const std::vector<std::string> &args); 52 void DumpSetPortRoles(int32_t fd, const std::string &args); 55 std::mutex mutex_; 56 std::map<int32_t, UsbPort> portMap_;
|
/base/useriam/user_auth_framework/services/ipc/inc/ |
H A D | co_auth_service.h | 32 static std::shared_ptr<CoAuthService> GetInstance(); 36 int Dump(int fd, const std::vector<std::u16string> &args) override; 49 std::shared_ptr<ExecutorCallbackInterface> callback); 56 static std::shared_ptr<CoAuthService> instance_; 57 std::recursive_mutex mutex_;
|
/base/useriam/user_auth_framework/test/fuzztest/dummy/ |
H A D | mock_ipc_common.h | 46 static int32_t GetActiveUserId(std::optional<int32_t> &userId); 47 static int32_t GetAllUserId(std::vector<int32_t> &userIds); 50 static bool GetCallerName(IPCObjectStub &stub, std::string &callerName, int32_t &callerType); 51 static bool GetCallingAppID(IPCObjectStub &stub, std::string &callingAppID); 58 static bool CheckForegroundApplication(const std::string &bundleName); 62 static std::set<Permission> permSet_;
|
/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb_select_popup_menu.h | 55 virtual std::string GetLabel() = 0; 59 virtual std::string GetToolTip() = 0; 74 virtual std::vector<std::shared_ptr<NWebSelectPopupMenuItem>> GetMenuItems() = 0; 84 virtual std::shared_ptr<NWebSelectMenuBound> GetSelectMenuBound() = 0; 93 virtual void Continue(const std::vector<int32_t>& indices) = 0;
|
H A D | nweb_value_callback.h | 46 virtual void OnReceiveValue(const std::string& value) = 0; 53 virtual void OnReceiveValue(const std::vector<std::string>& value) = 0; 60 virtual void OnReceiveValue(std::shared_ptr<NWebMessage> value) = 0; 67 virtual void OnReceiveValue(const std::vector<std::shared_ptr<NWebWebStorageOrigin>>& value) = 0;
|