Home
last modified time | relevance | path

Searched refs:std (Results 21851 - 21875 of 65967) sorted by relevance

1...<<871872873874875876877878879880>>...2639

/foundation/multimedia/av_session/frameworks/js/napi/session/include/
H A Dnapi_async_callback.h31 using NapiArgsGetter = std::function<void(napi_env env, int& argc, napi_value* argv)>;
40 void CallWithFlag(napi_ref& method, std::shared_ptr<bool> isValid, NapiArgsGetter getter = NapiArgsGetter());
42 void CallWithFunc(napi_ref& method, std::shared_ptr<bool> isValid,
43 const std::function<bool()>& checkCallbackValid,
61 std::shared_ptr<bool> isValid;
67 std::shared_ptr<bool> isValid;
69 std::function<bool()> checkCallbackValid;
H A Dnapi_avcall_state.h33 using GetterType = std::function<napi_status(napi_env, napi_value in, AVCallState& out)>;
34 using SetterType = std::function<napi_status(napi_env env, const AVCallState& in, napi_value& out)>;
43 static std::map<std::string, GetterType> getterMap_;
44 static std::map<int32_t, SetterType> setterMap_;
45 static std::map<std::string, int32_t> filterMap_;
/foundation/multimedia/av_session/services/session/adapter/
H A Dparams_config_operator.cpp44 std::string content; in InitConfig()
55 configIntParams.insert(std::pair<std::string, int32_t>(config.key(), config.value())); in InitConfig()
58 configStringParams.insert(std::pair<std::string, std::string>(config.key(), config.value())); in InitConfig()
64 int32_t ParamsConfigOperator::GetValueIntByKey(const std::string& key, int32_t *value) in GetValueIntByKey()
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/restore/
H A Dphotos_dao.h29 std::string data;
31 std::string burstKey;
40 explicit PhotosDao(std::shared_ptr<NativeRdb::RdbStore> mediaLibraryRdb) : mediaLibraryRdb_(mediaLibraryRdb) in PhotosDao()
66 std::shared_ptr<NativeRdb::RdbStore> mediaLibraryRdb_;
69 const std::string SQL_PHOTOS_BASIC_INFO = "\
75 const std::string SQL_PHOTOS_FIND_SAME_FILE_IN_ALBUM = "\
103 const std::string SQL_PHOTOS_FIND_SAME_FILE_WITHOUT_ALBUM = "\
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/restore/
H A Ddb_upgrade_utils.cpp28 bool DbUpgradeUtils::IsTableExists(NativeRdb::RdbStore &store, const std::string &tableName) in IsTableExists()
30 std::string querySql = this->SQL_SQLITE_MASTER_QUERY; in IsTableExists()
31 std::vector<NativeRdb::ValueObject> bindArgs = {tableName}; in IsTableExists()
47 NativeRdb::RdbStore &store, const std::string &tableName, const std::string &columnName) in IsColumnExists()
49 std::string querySql = this->SQL_PRAGMA_TABLE_INFO_QUERY; in IsColumnExists()
50 std::vector<NativeRdb::ValueObject> bindArgs = {tableName, columnName}; in IsColumnExists()
/foundation/multimedia/media_library/interfaces/kits/js/include/
H A Dpicture_handle_client.h30 static std::shared_ptr<Media::Picture> RequestPicture(const int32_t &fileId);
34 static int32_t ReadPicture(const int32_t &fd, const int32_t &fileId, std::shared_ptr<Media::Picture> &picture);
35 static std::shared_ptr<PixelMap> ReadPixelMap(MessageParcel &data);
36 static bool ReadAuxiliaryPicture(MessageParcel &data, std::unique_ptr<Media::Picture> &picture);
40 static bool ReadSurfaceBuffer(MessageParcel &data, std::unique_ptr<PixelMap> &pixelMap);
42 static bool ReadExifMetadata(MessageParcel &data, std::unique_ptr<Media::Picture> &picture);
43 static bool ReadMaintenanceData(MessageParcel &data, std::unique_ptr<Media::Picture> &picture);
/foundation/multimedia/player_framework/services/utils/include/
H A Dplayer_xcollie.h28 int32_t SetTimer(const std::string &name, bool recovery = false, uint32_t timeout = 10); // 10s
29 int32_t SetTimerByLog(const std::string &name, uint32_t timeout = 10); // 10s
38 std::mutex mutex_;
39 std::map<int32_t, std::string> dfxDumper_;
45 XcollieTimer(const std::string &name, bool recovery = false, uint32_t timeout = 10) in XcollieTimer()
50 XcollieTimer(const std::string &name, uint32_t timeout) in XcollieTimer()
/foundation/multimodalinput/input/intention/ipc/socket/include/
H A Dsocket_session.h29 SocketSession(const std::string &programName, int32_t moduleType,
38 std::string ToString() const override;
39 std::string GetProgramName() const override;
40 void SetProgramName(const std::string &programName) override;
53 std::string programName_;
71 inline std::string SocketSession::GetProgramName() const in GetProgramName()
76 inline void SocketSession::SetProgramName(const std::string &programName) in SetProgramName()
/foundation/multimodalinput/input/tools/event_inject/include/
H A Dprocessing_touch_screen_device.h30 std::string eventType;
31 std::string reportType;
41 std::vector<TouchScreenCoordinates> events;
46 std::vector<TouchScreenInputEvent> eventArray;
55 void AnalysisTouchScreenDate(const std::vector<DeviceEvent> &inputData,
57 void AnalysisSingleTouchScreenDate(const std::vector<DeviceEvent> &inputData,
58 std::vector<TouchSingleEventData> &touchSingleEventDatas);
H A Dprocessing_pen_device.h26 std::string eventType;
42 void TransformPenEventToInputEvent(const std::vector<PenEvent>& penEventArray, InputEventArray& inputEventArray);
46 int32_t AnalysisPenPadEvent(const std::vector<DeviceEvent>& inputData, std::vector<PenEvent>& penEventArray);
47 int32_t AnalysisPenApproachPadEvent(const DeviceEvent& event, std::vector<PenEvent>& penEventArray);
48 int32_t AnalysisPenSlidePadEvent(const DeviceEvent& event, std::vector<PenEvent>& penEventArray);
49 int32_t AnalysisPenLeavePadEvent(const DeviceEvent& event, std::vector<PenEvent>& penEventArray);
/foundation/multimedia/player_framework/test/unittest/observer_test/observer_unittest/
H A Daccount_observer_func_unittest.cpp22 using namespace std;
68 std::cout << "[SetUp]: SetUp!!!, test: "<< std::endl; in SetUp()
73 std::cout << "[TearDown]: over!!!" << std::endl; in TearDown()
94 auto accountObserverCallBack = std::make_shared<AccountObserverTestCallBack>(); in HWTEST_F()
110 auto accountObserverCallBack = std::make_shared<AccountObserverTestCallBack>(); in HWTEST_F()
/foundation/multimodalinput/input/intention/services/test/unittest/src/
H A Denumerator_test.cpp37 const std::string TEST_DEV_NODE {"TestDeviceNode"};
55 std::this_thread::sleep_for(std::chrono::milliseconds(TIME_WAIT_FOR_OP_MS)); in TearDown()
62 void AddDevice(const std::string &devNode) override
66 void RemoveDevice(const std::string &devNode) override
83 std::shared_ptr<TestDeviceMgr> testDevMgr = std::make_shared<TestDeviceMgr>(); in HWTEST_F()
/foundation/multimodalinput/input/service/message_handle/include/
H A Dauthorize_helper.h35 using AuthorizeExitCallback = std::function<void(int32_t)>;
48 std::lock_guard<std::mutex> lock(mutex_); in GetAuthorizeState()
51 static std::shared_ptr<AuthorizeHelper> GetInstance();
60 std::atomic_bool isInit_ { false };
62 static std::mutex mutex_;
63 static std::shared_ptr<AuthorizeHelper> instance_;
/foundation/resourceschedule/ffrt/src/queue/
H A Dqueue_monitor.h48 std::shared_mutex mutex_;
49 std::vector<std::pair<uint64_t, TimePoint>> queuesRunningInfo_;
50 std::vector<QueueHandler*> queuesStructInfo_;
51 std::atomic_bool exit_ { false };
52 std::atomic_bool abortSendTimer_ { false };
53 std::vector<uint64_t> lastReportedTask_;
/foundation/resourceschedule/ffrt/src/tm/
H A Dtask_base.h26 static std::atomic_uint64_t s_gid(0);
57 std::string label;
58 std::vector<std::string> traceTag;
67 std::atomic<pthread_t> runningTid = 0;
70 std::mutex mutex_; // used in coroute
71 std::condition_variable waitCond_; // cv for thread wait
/foundation/resourceschedule/qos_manager/test/unittest/phone/
H A Dconcurrent_task_client_test.cpp59 std::unordered_map<std::string, std::string> payload; in HWTEST_F()
97 std::unordered_map<pid_t, uint32_t> payload; in HWTEST_F()
110 std::unordered_map<std::string, std::string> payload; in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/include/
H A Dresources_subscriber_mgr.h47 class ResourcesSubscriberMgr : public std::enable_shared_from_this<ResourcesSubscriberMgr> {
52 void OnResourceChanged(const std::shared_ptr<ResourceCallbackInfo> &callbackInfo,
57 void HiSysEventResources(const std::shared_ptr<ResourceCallbackInfo> callbackInfo,
59 void HiSysEventSubmit(const std::shared_ptr<ResourceCallbackInfo> callbackInfo,
60 int32_t hiSysEventType, const std::string &eventType);
62 std::mutex subscriberLock_;
63 std::list<sptr<IBackgroundTaskSubscriber>> subscriberList_ {};
/foundation/resourceschedule/memmgr/common/src/config/
H A Dpurgeablemem_config.cpp25 const std::string TAG = "PurgeablememConfig";
35 std::string nodeName; in ParseConfig()
36 std::string procName; in ParseConfig()
41 std::map<std::string, std::string> param; in ParseConfig()
43 nodeName = std::string(reinterpret_cast<const char *>(currNode->name)); in ParseConfig()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/common/include/
H A Dcgroup_sched_common.h29 using Clock = std::chrono::high_resolution_clock;
30 using MilliSecondsType = std::chrono::duration<double, std::milli>;
34 explicit ChronoScope(const std::string outmsg) : outmsg_(outmsg) in ChronoScope()
40 ChronoScope(const std::string outmsg, double* out) : outmsg_(outmsg), out_(out) in ChronoScope()
48 MilliSecondsType time_span = std::chrono::duration_cast<MilliSecondsType>(t2 - t1); in ~ChronoScope()
61 std::string outmsg_;
/foundation/communication/netmanager_base/services/common/src/
H A Dnet_settings.cpp45 std::lock_guard<std::mutex> lock(mutex_); in IsSystem()
46 return std::find(systemUids_.begin(), systemUids_.end(), uid) != systemUids_.end(); in IsSystem()
51 std::lock_guard<std::mutex> lock(mutex_); in AddSystemUid()
57 std::lock_guard<std::mutex> lock(mutex_); in RemoveSystemUid()
/foundation/communication/netmanager_base/services/netmanagernative/fwmarkclient/src/
H A Dnetsys_sock_client.cpp31 std::atomic_int g_netIdForApp(0);
32 std::atomic<const SocketDispatchType*> g_dispatch(&defaultSocketDispatchType);
33 std::atomic_bool g_hookFlag(false);
34 std::once_flag g_onceFlag;
37 return g_dispatch.load(std::memory_order_relaxed); in GetDispatch()
55 fd, g_netIdForApp.load(std::memory_order_relaxed)); in HookSocket()
65 std::call_once(g_onceFlag, [&]() { in ohos_socket_hook_initialize()
/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnetsys_policy_wrapper.h35 int32_t BandwidthSetIfaceQuota(const std::string &iface, int64_t bytes);
36 int32_t BandwidthRemoveIfaceQuota(const std::string &iface);
42 int32_t FirewallSetUidsAllowedListChain(uint32_t chain, const std::vector<uint32_t> &uids);
43 int32_t FirewallSetUidsDeniedListChain(uint32_t chain, const std::vector<uint32_t> &uids);
44 int32_t FirewallSetUidRule(uint32_t chain, const std::vector<uint32_t> &uids, uint32_t firewallRule);
49 int32_t SetNicTrafficAllowed(const std::vector<std::string> &ifaceNames, bool status);
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_distributed_test/
H A Dnet_manager_native_test.cpp38 static inline std::shared_ptr<NetManagerNative> instance_ = nullptr;
43 instance_ = std::make_shared<NetManagerNative>(); in SetUpTestCase()
54 std::string virnicAddr = "1.189.55.61"; in HWTEST_F()
55 std::string iif = "lo"; in HWTEST_F()
66 std::string iif = "lo"; in HWTEST_F()
67 std::string devIface = "lo"; in HWTEST_F()
68 std::string dstAddr = "1.189.55.61"; in HWTEST_F()
/foundation/communication/ipc/ipc/native/src/napi_common/include/
H A Dnapi_remote_object_holder.h29 explicit NAPIRemoteObjectHolder(napi_env env, const std::u16string &descriptor, napi_value thisVar);
33 void attachLocalInterface(napi_value localInterface, std::string &descriptor);
34 napi_value queryLocalInterface(std::string &descriptor);
61 std::u16string GetDescriptor() in GetDescriptor()
69 std::mutex mutex_;
71 std::thread::id jsThreadId_;
72 std::u16string descriptor_;
/foundation/communication/netstack/utils/napi_utils/include/
H A Devent_listener.h33 EventListener(long tid, napi_env env, std::string type, napi_value callback, bool once, bool asyncCallback);
39 void Emit(const std::string &eventType, size_t argc, napi_value *argv) const;
41 [[nodiscard]] bool Match(const std::string &type, napi_value callback) const;
43 [[nodiscard]] bool MatchOnce(const std::string &type) const;
45 [[nodiscard]] bool MatchType(const std::string &type) const;
49 void EmitByUv(const std::string &type, void *data, void(Handler)(uv_work_t *, int status)) const;
58 std::string type_;

Completed in 28 milliseconds

1...<<871872873874875876877878879880>>...2639