Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 2767) sorted by relevance

12345678910>>...111

/foundation/window/window_manager/utils/include/
Dclass_var_definition.h20 #define DEFINE_VAR(type, memberName) \ argument
22 type memberName##_;
24 #define DEFINE_VAR_WITH_LOCK(type, memberName) \ argument
27 type memberName##_;
29 #define DEFINE_VAR_DEFAULT(type, memberName, defaultValue) \ argument
31 type memberName##_ {defaultValue};
33 #define DEFINE_FUNC_GET(type, funcName, memberName) \ argument
35 type Get##funcName() const \
40 #define DEFINE_FUNC_GET_WITH_LOCK(type, funcName, memberName) \ argument
42 type Get##funcName() \
[all …]
/foundation/communication/dsoftbus/tests/core/transmission/common/trans_pending_pkt_test/
Dtrans_pending_pkt_test.cpp57 int type = -88; variable
58 int32_t ret = PendingInit(type);
61 type = 999;
62 ret = PendingInit(type);
65 type = PENDING_TYPE_DIRECT;
66 ret = PendingInit(type);
78 int type = -21; variable
79 PendingDeinit(type);
81 type = 999;
82 PendingDeinit(type);
[all …]
/foundation/arkui/ace_engine/frameworks/base/thread/
Dtask_executor.h56 bool PostTask(Task&& task, TaskType type) const in PostTask() argument
58 return PostDelayedTask(std::move(task), type, 0); in PostTask()
68 bool PostTask(const Task& task, TaskType type) const in PostTask() argument
70 return PostDelayedTask(task, type, 0); in PostTask()
81 bool PostTaskWithTraceId(Task&& task, TaskType type, int32_t id) const in PostTaskWithTraceId() argument
84 return PostDelayedTask(std::move(wrappedTask), type, 0); in PostTaskWithTraceId()
95 bool PostTaskWithTraceId(const Task& task, TaskType type, int32_t id) const in PostTaskWithTraceId() argument
98 return PostDelayedTask(std::move(wrappedTask), type, 0); in PostTaskWithTraceId()
110 bool PostDelayedTask(Task&& task, TaskType type, uint32_t delayTime) const in PostDelayedTask() argument
112 if (delayTime > 0 && type == TaskType::BACKGROUND) { in PostDelayedTask()
[all …]
/foundation/communication/dsoftbus/core/bus_center/utils/src/
Dlnn_connection_addr_utils.c28 if (addr1->type != addr2->type) { in LnnIsSameConnectionAddr()
31 if (addr1->type == CONNECTION_ADDR_BR) { in LnnIsSameConnectionAddr()
34 if (addr1->type == CONNECTION_ADDR_BLE) { in LnnIsSameConnectionAddr()
38 if (addr1->type == CONNECTION_ADDR_WLAN || addr1->type == CONNECTION_ADDR_ETH) { in LnnIsSameConnectionAddr()
42 if (addr1->type == CONNECTION_ADDR_SESSION) { in LnnIsSameConnectionAddr()
45 (addr1->type == addr2->type)); in LnnIsSameConnectionAddr()
56 if (addr->type == CONNECTION_ADDR_BR) { in LnnConvertAddrToOption()
57 option->type = CONNECT_BR; in LnnConvertAddrToOption()
65 if (addr->type == CONNECTION_ADDR_BLE) { in LnnConvertAddrToOption()
66 option->type = CONNECT_BLE; in LnnConvertAddrToOption()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
Dproperty.h78 #define ACE_DEFINE_PROPERTY_GROUP(group, type) \ argument
80 const std::unique_ptr<type>& GetOrCreate##group() \
83 prop##group##_ = std::make_unique<type>(); \
87 const std::unique_ptr<type>& Get##group() const \
91 std::unique_ptr<type> Clone##group() const \
94 return std::make_unique<type>(*prop##group##_); \
104 std::unique_ptr<type> prop##group##_;
106 #define ACE_DEFINE_PROPERTY_ITEM_WITH_GROUP_GET(group, name, type) \ argument
108 std::optional<type> Get##name() const \
124 type Get##name##Value(const type& defaultValue) const \
[all …]
Dgrid_property.cpp60 bool GridProperty::UpdateSpan(int32_t span, GridSizeType type) in UpdateSpan() argument
62 LOGD("Update grid span. (span=%i, type=%i)", span, type); in UpdateSpan()
68 SetSpan(type, span); in UpdateSpan()
74 auto currentProp = GetTypedProperty(type); // working property in UpdateSpan()
76 return (currentProp->type_ == type || currentType == type) && SetSpan(type, span); in UpdateSpan()
79 bool GridProperty::UpdateOffset(int32_t offset, GridSizeType type) in UpdateOffset() argument
81 LOGD("Update grid span. (offset=%u, type=%i)", offset, type); in UpdateOffset()
83 SetOffset(type, offset); in UpdateOffset()
88 auto currentProp = GetTypedProperty(type); // working property in UpdateOffset()
90 return (currentProp->type_ == type || currentType == type) && SetOffset(type, offset); in UpdateOffset()
[all …]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_monitor/
Dbundle_monitor_callback.cpp37 …d BundleMonitorCallback::BundleMonitorOn(napi_env env, napi_value handler, const std::string &type) in BundleMonitorOn() argument
40 if (type != ADD && type != UPDATE && type != REMOVE) { in BundleMonitorOn()
44 if (type == ADD) { in BundleMonitorOn()
45 EventListenerAdd(env, handler, addListeners, type); in BundleMonitorOn()
46 } else if (type == UPDATE) { in BundleMonitorOn()
47 EventListenerAdd(env, handler, updateListeners, type); in BundleMonitorOn()
49 EventListenerAdd(env, handler, removeListeners, type); in BundleMonitorOn()
54 std::vector<std::shared_ptr<EventListener>> &eventListeners, const std::string &type) in EventListenerAdd() argument
62 std::shared_ptr<EventListener> listener = std::make_shared<EventListener>(env, type); in EventListenerAdd()
67 … BundleMonitorCallback::BundleMonitorOff(napi_env env, napi_value handler, const std::string &type) in BundleMonitorOff() argument
[all …]
/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/
DFieldNodeJsTest.js181 node.type = ddm.value.type.STRING;
182 console.info('type = ' + node.type);
183 expect(node.type === ddm.type.STRING).assertTrue()
199 node.type = ddm.type.INTEGER;
200 console.info('type = ' + node.type);
201 expect(node.type === ddm.type.INTEGER).assertTrue()
217 node.type = ddm.type.FLOAT;
218 console.info('type = ' + node.type);
219 expect(node.type === ddm.type.FLOAT).assertTrue()
235 node.type = ddm.type.BYTE_ARRAY;
[all …]
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
Dvalue_object.cpp23 ValueObject::ValueObject() : type(ValueObjectType::TYPE_NULL) in ValueObject()
32 type = valueObject.type; in ValueObject()
34 valueObject.type = ValueObjectType::TYPE_NULL; in ValueObject()
42 type = valueObject.type; in ValueObject()
50 ValueObject::ValueObject(int val) : type(ValueObjectType::TYPE_INT) in ValueObject()
55 ValueObject::ValueObject(int64_t val) : type(ValueObjectType::TYPE_INT64) in ValueObject()
59 ValueObject::ValueObject(double val) : type(ValueObjectType::TYPE_DOUBLE) in ValueObject()
63 ValueObject::ValueObject(bool val) : type(ValueObjectType::TYPE_BOOL) in ValueObject()
67 ValueObject::ValueObject(const std::string &val) : type(ValueObjectType::TYPE_STRING) in ValueObject()
71 ValueObject::ValueObject(const std::vector<uint8_t> &val) : type(ValueObjectType::TYPE_BLOB) in ValueObject()
[all …]
/foundation/communication/netstack/utils/napi_utils/src/
Devent_manager.cpp43 void EventManager::AddListener(napi_env env, const std::string &type, napi_value callback, bool onc… in AddListener() argument
47 … [type](const EventListener &listener) -> bool { return listener.MatchType(type); }); in AddListener()
52 listeners_.emplace_back(EventListener(env, type, callback, once, asyncCallback)); in AddListener()
55 void EventManager::DeleteListener(const std::string &type, napi_value callback) in DeleteListener() argument
58 …std::remove_if(listeners_.begin(), listeners_.end(), [type, callback](const EventListener &listene… in DeleteListener()
59 return listener.Match(type, callback); in DeleteListener()
64 void EventManager::Emit(const std::string &type, const std::pair<napi_value, napi_value> &argv) in Emit() argument
66 … std::for_each(listeners_.begin(), listeners_.end(), [type, argv](const EventListener &listener) { in Emit()
70 listener.Emit(type, ASYNC_CALLBACK_PARAM_NUM, arg); in Emit()
74 listener.Emit(type, CALLBACK_PARAM_NUM, arg); in Emit()
[all …]
/foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include/
Ddatashare_predicates_object.h37 DataSharePredicatesObject() : type(ObjectType::TYPE_NULL) {} in DataSharePredicatesObject()
39 …DataSharePredicatesObject(DataSharePredicatesObject &&val) noexcept : type(val.type), value(std::m… in DataSharePredicatesObject()
41 val.type = ObjectType::TYPE_NULL; in DataSharePredicatesObject()
43 …DataSharePredicatesObject(const DataSharePredicatesObject &val) : type(val.type), value(val.value)… in DataSharePredicatesObject()
49 type = object.type;
51 object.type = ObjectType::TYPE_NULL;
59 type = object.type;
63 DataSharePredicatesObject(int val) : type(ObjectType::TYPE_INT), value(val) {} in DataSharePredicatesObject()
64 DataSharePredicatesObject(int64_t val) : type(ObjectType::TYPE_LONG), value(val) {} in DataSharePredicatesObject()
65 DataSharePredicatesObject(double val) : type(ObjectType::TYPE_DOUBLE), value(val) {} in DataSharePredicatesObject()
[all …]
Ddatashare_value_object.h38 DataShareValueObject() : type(TYPE_NULL) {}; in DataShareValueObject()
40 …DataShareValueObject(DataShareValueObject &&object) noexcept : type(object.type), value(std::move(… in DataShareValueObject()
42 object.type = DataShareValueObjectType::TYPE_NULL; in DataShareValueObject()
44 …DataShareValueObject(const DataShareValueObject &object) : type(object.type), value(object.value) … in DataShareValueObject()
45 DataShareValueObject(int val) : type(TYPE_INT), value(static_cast<int64_t>(val)) {}; in DataShareValueObject()
46 DataShareValueObject(int64_t val) : type(TYPE_INT64), value(val) {}; in DataShareValueObject()
47 DataShareValueObject(double val) : type(TYPE_DOUBLE), value(val) {}; in DataShareValueObject()
48 DataShareValueObject(bool val) : type(TYPE_BOOL), value(val) {}; in DataShareValueObject()
49 DataShareValueObject(std::string val) : type(TYPE_STRING), value(std::move(val)) {}; in DataShareValueObject()
51 DataShareValueObject(std::vector<uint8_t> blob) : type(TYPE_BLOB), value(std::move(blob)) {}; in DataShareValueObject()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/mock/
Devent_report_mock.cpp27 void EventReport::SendAppStartException(AppStartExcepType type) {} in SendAppStartException() argument
29 void EventReport::SendPageRouterException(PageRouterExcepType type, const std::string& pageUrl) {} in SendPageRouterException() argument
31 void EventReport::SendComponentException(ComponentExcepType type) {} in SendComponentException() argument
33 void EventReport::SendAPIChannelException(APIChannelExcepType type) {} in SendAPIChannelException() argument
35 void EventReport::SendRenderException(RenderExcepType type) {} in SendRenderException() argument
37 void EventReport::SendJsException(JsExcepType type) {} in SendJsException() argument
39 void EventReport::SendAnimationException(AnimationExcepType type) {} in SendAnimationException() argument
41 void EventReport::SendEventException(EventExcepType type) {} in SendEventException() argument
43 void EventReport::SendInternalException(InternalExcepType type) {} in SendInternalException() argument
45 void EventReport::SendAccessibilityException(AccessibilityExcepType type) {} in SendAccessibilityException() argument
[all …]
/foundation/ability/ability_base/interfaces/inner_api/log/include/
Dparcel_macro_base.h25 #define READ_PARCEL_AND_RETURN_FALSE_IF_FAIL(type, parcel, data) \ argument
27 if (!(parcel).Read##type(data)) { \
28 ABILITYBASE_LOGE("fail to read %{public}s type from parcel", #type); \
33 #define WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(type, parcel, data) \ argument
35 if (!(parcel).Write##type(data)) { \
36 ABILITYBASE_LOGE("fail to write %{public}s type into parcel", #type); \
41 #define WRITE_PARCEL_AND_RETURN(type, parcel, data) \ argument
43 if (!(parcel).Write##type(data)) { \
44 ABILITYBASE_LOGE("fail to write %{public}s type into parcel", #type); \
/foundation/communication/netmanager_base/utils/napi_utils/src/
Devent_manager.cpp40 void EventManager::AddListener(napi_env env, const std::string &type, napi_value callback, bool onc… in AddListener() argument
45 … [type](const EventListener &listener) -> bool { return listener.MatchType(type); }); in AddListener()
49 listeners_.emplace_back(EventListener(env, type, callback, once, asyncCallback)); in AddListener()
52 void EventManager::DeleteListener(const std::string &type, napi_value callback) in DeleteListener() argument
56 …std::remove_if(listeners_.begin(), listeners_.end(), [type, callback](const EventListener &listene… in DeleteListener()
57 return listener.Match(type, callback); in DeleteListener()
62 void EventManager::Emit(const std::string &type, const std::pair<napi_value, napi_value> &argv) in Emit() argument
64 … std::for_each(listeners_.begin(), listeners_.end(), [type, argv](const EventListener &listener) { in Emit()
68 listener.Emit(type, ASYNC_CALLBACK_PARAM_NUM, arg); in Emit()
72 listener.Emit(type, CALLBACK_PARAM_NUM, arg); in Emit()
[all …]
/foundation/resourceschedule/work_scheduler/utils/native/include/
Dwork_sched_common.h39 #define READ_PARCEL_NO_RET(parcel, type, out) \ argument
41 if (!(parcel).Read##type(out)) { \
48 #define READ_PARCEL_WITHOUT_RET(parcel, type, out) \ argument
50 if (!(parcel).Read##type(out)) { \
56 #define WRITE_PARCEL_NO_RET(parcel, type, data) \ argument
58 if (!(parcel).Write##type(data)) { \
64 #define READ_PARCEL_WITH_RET(parcel, type, out, retval) \ argument
66 if (!(parcel).Read##type(out)) { \
72 #define WRITE_PARCEL_WITHOUT_RET(parcel, type, data) \ argument
74 if (!(parcel).Write##type(data)) { \
[all …]
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/
Djs_window_register_manager.cpp213 bool JsWindowRegisterManager::IsCallbackRegistered(std::string type, NativeValue* jsListenerObject) in IsCallbackRegistered() argument
215 if (jsCbMap_.empty() || jsCbMap_.find(type) == jsCbMap_.end()) { in IsCallbackRegistered()
216 WLOGFI("[NAPI]Method %{public}s has not been registerted", type.c_str()); in IsCallbackRegistered()
220 for (auto iter = jsCbMap_[type].begin(); iter != jsCbMap_[type].end(); ++iter) { in IsCallbackRegistered()
222 WLOGFE("[NAPI]Method %{public}s has already been registered", type.c_str()); in IsCallbackRegistered()
229 void JsWindowRegisterManager::RegisterListener(sptr<Window> window, std::string type, in RegisterListener() argument
233 if (IsCallbackRegistered(type, value)) { in RegisterListener()
236 if (listenerProcess_[caseType].count(type) == 0) { in RegisterListener()
237 WLOGFE("[NAPI]Type %{public}s is not supported", type.c_str()); in RegisterListener()
247 if (!((this->*listenerProcess_[caseType][type])(windowManagerListener, window, true))) { in RegisterListener()
[all …]
/foundation/multimedia/image_framework/mock/native/include/hilog/
Dlog_c.h58 int HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt,…
61 #define HILOG_DEBUG(type, ...) ((void)HiLogPrint((type), LOG_DEBUG, LOG_DOMAIN, LOG_TAG, __VA_ARGS_… argument
63 #define HILOG_INFO(type, ...) ((void)HiLogPrint((type), LOG_INFO, LOG_DOMAIN, LOG_TAG, __VA_ARGS__)) argument
65 #define HILOG_WARN(type, ...) ((void)HiLogPrint((type), LOG_WARN, LOG_DOMAIN, LOG_TAG, __VA_ARGS__)) argument
67 #define HILOG_ERROR(type, ...) ((void)HiLogPrint((type), LOG_ERROR, LOG_DOMAIN, LOG_TAG, __VA_ARGS_… argument
69 #define HILOG_FATAL(type, ...) ((void)HiLogPrint((type), LOG_FATAL, LOG_DOMAIN, LOG_TAG, __VA_ARGS_… argument
/foundation/deviceprofile/device_info_manager/common/include/
Dparcel_helper.h24 #define PARCEL_WRITE_HELPER(parcel, type, value) \ argument
26 bool ret = parcel.Write##type((value)); \
33 #define PARCEL_WRITE_HELPER_NORET(parcel, type, value) \ argument
35 bool ret = parcel.Write##type((value)); \
42 #define PARCEL_WRITE_HELPER_RET(parcel, type, value, failRet) \ argument
44 bool ret = parcel.Write##type((value)); \
51 #define PARCEL_READ_HELPER(parcel, type, out) \ argument
53 bool ret = parcel.Read##type((out)); \
60 #define PARCEL_READ_HELPER_RET(parcel, type, out, failRet) \ argument
62 bool ret = parcel.Read##type((out)); \
[all …]
/foundation/arkui/ace_engine/adapter/preview/osal/
Devent_report.cpp22 void EventReport::SendAppStartException(AppStartExcepType type) {} in SendAppStartException() argument
24 void EventReport::SendPageRouterException(PageRouterExcepType type, const std::string& pageUrl) {} in SendPageRouterException() argument
26 void EventReport::SendComponentException(ComponentExcepType type) {} in SendComponentException() argument
28 void EventReport::SendAPIChannelException(APIChannelExcepType type) {} in SendAPIChannelException() argument
30 void EventReport::SendRenderException(RenderExcepType type) {} in SendRenderException() argument
32 void EventReport::SendJsException(JsExcepType type) {} in SendJsException() argument
34 void EventReport::SendAnimationException(AnimationExcepType type) {} in SendAnimationException() argument
36 void EventReport::SendEventException(EventExcepType type) {} in SendEventException() argument
38 void EventReport::SendInternalException(InternalExcepType type) {} in SendInternalException() argument
40 void EventReport::SendAccessibilityException(AccessibilityExcepType type) {} in SendAccessibilityException() argument
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/
Ddefault_app_mgr.cpp92 ErrCode DefaultAppMgr::IsDefaultApplication(int32_t userId, const std::string& type, bool& isDefaul… in IsDefaultApplication() argument
94 if (VerifyUserIdAndType(userId, type) != ERR_OK) { in IsDefaultApplication()
100 bool ret = defaultAppDb_->GetDefaultApplicationInfo(userId, type, element); in IsDefaultApplication()
106 ret = IsElementValid(userId, type, element); in IsDefaultApplication()
129 ErrCode DefaultAppMgr::GetDefaultApplication(int32_t userId, const std::string& type, BundleInfo& b… in GetDefaultApplication() argument
131 ErrCode errCode = VerifyUserIdAndType(userId, type); in GetDefaultApplication()
145 if (IsAppType(type)) { in GetDefaultApplication()
146 return GetBundleInfoByAppType(userId, type, bundleInfo); in GetDefaultApplication()
147 } else if (IsFileType(type)) { in GetDefaultApplication()
148 return GetBundleInfoByFileType(userId, type, bundleInfo); in GetDefaultApplication()
[all …]
/foundation/ai/neural_network_runtime/example/drivers/nnrt/hdi_cpu_service/src/
Dnode_registry.cpp30 NodeRegistry::Registrar::Registrar(NodeType type, std::function<PrimUniquePtr(const std::vector<int… in Registrar() argument
33 if (registry.m_nodeRegs.find(type) != registry.m_nodeRegs.end()) { in Registrar()
34 HDF_LOGW("Node has been registered. nodeType=%d", type); in Registrar()
36 registry.m_nodeRegs[type] = nodeFunc; in Registrar()
40 std::function<PrimUniquePtr(const std::vector<int8_t>&)> NodeRegistry::GetNodeFunc(NodeType type) c… in GetNodeFunc()
42 if (m_nodeRegs.find(type) == m_nodeRegs.end()) { in GetNodeFunc()
43 HDF_LOGW("Node type is not found. nodeType=%d", type); in GetNodeFunc()
47 return m_nodeRegs.at(type); in GetNodeFunc()
50 bool NodeRegistry::IsNodeTypeExist(NodeType type) const in IsNodeTypeExist()
52 if (m_nodeRegs.find(type) == m_nodeRegs.end()) { in IsNodeTypeExist()
/foundation/systemabilitymgr/samgr/utils/native/include/
Dparcel_helper.h25 #define PARCEL_WRITE_HELPER(parcel, type, value) \ argument
27 bool ret = parcel.Write##type((value)); \
34 #define PARCEL_WRITE_HELPER_NORET(parcel, type, value) \ argument
36 bool ret = parcel.Write##type((value)); \
43 #define PARCEL_WRITE_HELPER_RET(parcel, type, value, failRet) \ argument
45 bool ret = parcel.Write##type((value)); \
52 #define PARCEL_READ_HELPER(parcel, type, out) \ argument
54 bool ret = parcel.Read##type((out)); \
61 #define PARCEL_READ_HELPER_RET(parcel, type, out, failRet) \ argument
63 bool ret = parcel.Read##type((out)); \
[all …]
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/distributed_ability_runtime/
Ddistributed_parcel_helper.h25 #define PARCEL_WRITE_HELPER(parcel, type, value) \ argument
27 bool ret = parcel.Write##type((value)); \
34 #define PARCEL_WRITE_HELPER_NORET(parcel, type, value) \ argument
36 bool ret = parcel.Write##type((value)); \
43 #define PARCEL_WRITE_HELPER_RET(parcel, type, value, failRet) \ argument
45 bool ret = parcel.Write##type((value)); \
52 #define PARCEL_READ_HELPER(parcel, type, out) \ argument
54 bool ret = parcel.Read##type((out)); \
61 #define PARCEL_READ_HELPER_RET(parcel, type, out, failRet) \ argument
63 bool ret = parcel.Read##type((out)); \
[all …]
/foundation/ability/dmsfwk/services/base/include/
Dparcel_helper.h25 #define PARCEL_WRITE_HELPER(parcel, type, value) \ argument
27 bool ret = parcel.Write##type((value)); \
34 #define PARCEL_WRITE_HELPER_NORET(parcel, type, value) \ argument
36 bool ret = parcel.Write##type((value)); \
43 #define PARCEL_WRITE_HELPER_RET(parcel, type, value, failRet) \ argument
45 bool ret = parcel.Write##type((value)); \
52 #define PARCEL_READ_HELPER(parcel, type, out) \ argument
54 bool ret = parcel.Read##type((out)); \
61 #define PARCEL_READ_HELPER_RET(parcel, type, out, failRet) \ argument
63 bool ret = parcel.Read##type((out)); \
[all …]

12345678910>>...111