/foundation/multimodalinput/input/frameworks/napi/input_monitor/src/ |
H A D | js_input_monitor_module.cpp | 58 char typeName[MAX_STRING_LEN] = { 0 }; in JsOnApi9() local 60 CHKRP(napi_get_value_string_utf8(env, argv[0], typeName, MAX_STRING_LEN - 1, &len), GET_VALUE_STRING_UTF8); in JsOnApi9() 61 if (ACTION_TYPE.find(typeName) == ACTION_TYPE.end()) { in JsOnApi9() 66 if (std::strcmp(typeName, "key") == 0) { in JsOnApi9() 81 JS_INPUT_MONITOR_MGR.AddMonitor(env, typeName, argv[1]); in JsOnApi9() 82 MMI_HILOGI("Add Monitor success, type: %{public}s", typeName); in JsOnApi9() 129 char typeName[MAX_STRING_LEN] = { 0 }; in AddMonitor() local 131 CHKRP(napi_get_value_string_utf8(env, argv[0], typeName, MAX_STRING_LEN - 1, &len), GET_VALUE_STRING_UTF8); in AddMonitor() 132 if (ACTION_TYPE.find(typeName) == ACTION_TYPE.end()) { in AddMonitor() 136 if (strcmp(typeName, "mous in AddMonitor() 197 char typeName[MAX_STRING_LEN] = { 0 }; JsOffApi9() local 245 char typeName[MAX_STRING_LEN] = { 0 }; RemoveMonitor() local [all...] |
H A D | js_input_monitor_manager.cpp | 39 void JsInputMonitorManager::AddMonitor(napi_env jsEnv, const std::string &typeName, in AddMonitor() argument 50 auto monitor = std::make_shared<JsInputMonitor>(jsEnv, typeName, hotRectArea, in AddMonitor() 52 int32_t ret = monitor->Start(typeName); in AddMonitor() 61 void JsInputMonitorManager::AddMonitor(napi_env jsEnv, const std::string &typeName, in AddMonitor() argument 72 auto monitor = std::make_shared<JsInputMonitor>(jsEnv, typeName, callback, nextId_++, fingers); in AddMonitor() 73 int32_t ret = monitor->Start(typeName); in AddMonitor() 82 void JsInputMonitorManager::RemoveMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, in RemoveMonitor() argument 94 if (IsFindJsInputMonitor(*it, jsEnv, typeName, callback, fingers)) { in RemoveMonitor() 108 void JsInputMonitorManager::RemoveMonitor(napi_env jsEnv, const std::string &typeName, const int32_t fingers) in RemoveMonitor() argument 119 if (IsFindJsInputMonitor(*it, jsEnv, typeName, finger in RemoveMonitor() 370 IsFindJsInputMonitor(const std::shared_ptr<JsInputMonitor> monitor, napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers) IsFindJsInputMonitor() argument 381 IsFindJsInputMonitor(const std::shared_ptr<JsInputMonitor> monitor, napi_env jsEnv, const std::string &typeName, const int32_t fingers) IsFindJsInputMonitor() argument [all...] |
H A D | js_input_monitor.cpp | 168 int32_t InputMonitor::Start(const std::string &typeName) in Start() argument 173 auto it = TO_GESTURE_TYPE.find(typeName); in Start() 205 void InputMonitor::SetTypeName(const std::string &typeName) in SetTypeName() argument 207 typeName_ = typeName; in SetTypeName() 239 auto typeName = JS_INPUT_MONITOR_MGR.GetMonitorTypeName(id_, fingers_); in OnInputEvent() local 240 if (typeName == INVALID_TYPE_NAME) { in OnInputEvent() 245 if (typeName != "touch" && typeName != TOUCH_SWIPE_GESTURE && in OnInputEvent() 246 typeName != TOUCH_PINCH_GESTURE && typeName ! in OnInputEvent() 342 auto typeName = JS_INPUT_MONITOR_MGR.GetMonitorTypeName(id_, fingers_); OnInputEvent() local 371 JsInputMonitor(napi_env jsEnv, const std::string &typeName, std::vector<Rect> rectParam, int32_t rectTotal, napi_value callback, int32_t id, int32_t fingers) JsInputMonitor() argument 390 JsInputMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, int32_t id, int32_t fingers) JsInputMonitor() argument 1425 Start(const std::string &typeName) Start() argument 1615 OnPointerEventInJsThread(const std::string &typeName, int32_t fingers) OnPointerEventInJsThread() argument 1777 OnKeyEventInJsThread(const std::string &typeName, const int32_t fingers) OnKeyEventInJsThread() argument 2010 IsKeyEvent(const std::string &typeName) IsKeyEvent() argument [all...] |
/foundation/arkui/ace_engine/frameworks/base/memory/ |
H A D | memory_monitor.cpp | 64 auto& info = typeMap_[it->second.typeName]; 71 void Update(void* ptr, size_t size, const std::string& typeName) final 80 it->second.typeName = typeName; 83 auto& info = typeMap_[typeName]; 97 for (auto&& [typeName, info] : typeMap_) { 101 out = typeName + ": total = " + std::to_string(info.total) + ", count = " + std::to_string(info.count); 109 std::string typeName = "Unknown"; member
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_collection_ffi.h | 44 #define VECTOR_H(typeName) \ 45 using Vector##typeName##Handle = void*; \ 47 CJ_EXPORT Vector##typeName##Handle FFICJCommonCreateVector##typeName(int64_t size); \ 48 CJ_EXPORT void FFICJCommonVector##typeName##Delete(Vector##typeName##Handle vec); \ 49 CJ_EXPORT int64_t FFICJCommonVector##typeName##GetSize(Vector##typeName##Handle vec); \
|
/foundation/multimodalinput/input/frameworks/napi/input_monitor/include/ |
H A D | js_input_monitor_manager.h | 38 void AddMonitor(napi_env jsEnv, const std::string &typeName, 40 void AddMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers = 0); 41 void RemoveMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers = 0); 42 void RemoveMonitor(napi_env jsEnv, const std::string &typeName, const int32_t fingers = 0); 61 napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers); 63 napi_env jsEnv, const std::string &typeName, const int32_t fingers);
|
H A D | js_input_monitor.h | 45 int32_t Start(const std::string &typeName); 62 void SetTypeName(const std::string &typeName); 86 JsInputMonitor(napi_env jsEnv, const std::string &typeName, std::vector<Rect> hotRectArea, 88 JsInputMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, int32_t id, int32_t fingers); 91 int32_t Start(const std::string &typeName); 98 void OnPointerEventInJsThread(const std::string &typeName, const int32_t fingers); 102 void OnKeyEventInJsThread(const std::string &typeName, const int32_t fingers); 162 bool IsKeyEvent(const std::string &typeName);
|
/foundation/arkui/ace_engine/frameworks/core/components/declaration/input/ |
H A D | input_declaration.cpp | 71 std::string typeName = attr.second; in SetSpecializedAttr() local 72 if (typeName.empty() || inputCategory.find(typeName) == inputCategory.end()) { in SetSpecializedAttr() 73 typeName = INPUT_TYPE_TEXT; in SetSpecializedAttr() 75 specializedAttr.type.second = ShouldCreateNewComponent(specializedAttr.type.first, typeName); in SetSpecializedAttr() 76 specializedAttr.type.first = typeName; in SetSpecializedAttr()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | node_context_descriptor_set_manager.cpp | 43 string typeName; in ReduceAndValidateDescriptorCounts() local 45 typeName = "CORE_DESCRIPTOR_TYPE_SAMPLER"; in ReduceAndValidateDescriptorCounts() 47 typeName = "CORE_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER"; in ReduceAndValidateDescriptorCounts() 49 typeName = "CORE_DESCRIPTOR_TYPE_SAMPLED_IMAGE"; in ReduceAndValidateDescriptorCounts() 51 typeName = "CORE_DESCRIPTOR_TYPE_STORAGE_IMAGE"; in ReduceAndValidateDescriptorCounts() 53 typeName = "CORE_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER"; in ReduceAndValidateDescriptorCounts() 55 typeName = "CORE_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER"; in ReduceAndValidateDescriptorCounts() 57 typeName = "CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER"; in ReduceAndValidateDescriptorCounts() 59 typeName = "CORE_DESCRIPTOR_TYPE_STORAGE_BUFFER"; in ReduceAndValidateDescriptorCounts() 61 typeName in ReduceAndValidateDescriptorCounts() [all...] |
H A D | render_node_graph_manager.cpp | 271 auto node = renderNodeMgr_->CreateRenderNode(nodeDesc.typeName.c_str()); 275 nodeDesc.typeName, 283 renderNodeMgr_->GetRenderNodeTypeInfoFlags(nodeDesc.typeName.c_str()); 291 PLUGIN_LOG_W("render node type: %s, named: %s, not found and not used", nodeDesc.typeName.c_str(), 409 if (auto node = renderNodeMgr_->CreateRenderNode(desc.typeName.c_str()); node) { 424 renderNodeMgr_->GetRenderNodeTypeInfoFlags(desc.typeName.c_str()); 432 ValidateBackendFlags(desc.typeName, device_.GetBackendType(), tiFlags.backendFlags); 436 { move(node), desc.typeName, combinedNodeName, desc.nodeName, 441 PLUGIN_LOG_W("RNT: %s, named: %s, insert pos NF", desc.typeName.c_str(), desc.nodeName.c_str()); 444 PLUGIN_LOG_W("RN type: %s, named: %s, not found", desc.typeName [all...] |
H A D | render_node_manager.cpp | 61 factories_.insert({ typeInfo.typeName, typeInfo }); in AddRenderNodeFactory() 71 factories_.erase(string_view(typeInfo.typeName)); in RemoveRenderNodeFactory()
|
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/datastore/ |
H A D | intf_render_data_store_pod.h | 49 * @param typeName A typename for POD data. (e.g. "PostProcess"). This is not the RenderDataStore::TYPE_NAME 53 virtual void CreatePod(const BASE_NS::string_view typeName, const BASE_NS::string_view name, 57 * @param typeName A typename for POD data. (e.g. "PostProcess"). This is not the RenderDataStore::TYPE_NAME 60 virtual void DestroyPod(const BASE_NS::string_view typeName, const BASE_NS::string_view name) = 0; 75 * @param typeName A name type name. 77 virtual BASE_NS::array_view<const BASE_NS::string> GetPodNames(const BASE_NS::string_view typeName) const = 0;
|
/foundation/ability/idl_tool/idl_tool_2/ast/ |
H A D | ast_struct_type.cpp | 34 void ASTStructType::AddMember(const AutoPtr<ASTType> &typeName, std::string name)
in AddMember() argument 41 members_.push_back(std::make_tuple(name, typeName));
in AddMember() 43 if (!typeName->IsPod()) {
in AddMember()
|
H A D | ast_union_type.cpp | 22 void ASTUnionType::AddMember(const AutoPtr<ASTType> &typeName, std::string name)
in AddMember() argument 29 members_.push_back(std::make_tuple(name, typeName));
in AddMember()
|
H A D | ast.cpp | 227 AutoPtr<ASTType> AST::FindType(const std::string &typeName, bool lookImports) in FindType() argument 229 if (typeName.empty()) { in FindType() 234 if ((typeName.find('.') == std::string::npos && type.second->GetName() == typeName) || in FindType() 235 type.first == typeName) { in FindType() 240 auto basicTypePair = basicTypes_.find(typeName); in FindType() 251 type = importPair.second->FindType(typeName, false); in FindType()
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/cpp/ |
H A D | cpp_custom_types_code_emitter.cpp | 253 std::string typeName = GetTypeEmitter(type.Get())->EmitCppType();
in EmitCustomTypeMarshallingImpl() local 257 typeName.c_str(), objName.c_str());
in EmitCustomTypeMarshallingImpl() 262 objName.c_str(), typeName.c_str());
in EmitCustomTypeMarshallingImpl() 283 std::string typeName = GetTypeEmitter(type.Get())->EmitCppType();
in EmitCustomTypeUnmarshallingImpl() local 287 typeName.c_str(), objName.c_str());
in EmitCustomTypeUnmarshallingImpl() 293 typeName.c_str(), objPtrName.c_str(), typeName.c_str(), typeName.c_str());
in EmitCustomTypeUnmarshallingImpl() 298 typeName.c_str(), objPtrName.c_str(), typeName in EmitCustomTypeUnmarshallingImpl() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_gesture_judge_function.h | 52 JSRef<JSObject>& obj, GestureTypeName typeName, const std::shared_ptr<BaseGestureEvent>& info); 53 JSRef<JSObject> CreateGestureEventObject(const std::shared_ptr<BaseGestureEvent>& info, GestureTypeName typeName);
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/ |
H A D | render_data_store_pod.h | 52 void CreatePod(const BASE_NS::string_view typeName, const BASE_NS::string_view name, 54 void DestroyPod(const BASE_NS::string_view typeName, const BASE_NS::string_view name) override; 59 BASE_NS::array_view<const BASE_NS::string> GetPodNames(const BASE_NS::string_view typeName) const override;
|
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/plugin/ |
H A D | intf_plugin.h | 61 char const* const typeName { "" }; 79 char const* const typeName { "" }; 110 char const* const typeName { "" };
|
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/c/ |
H A D | c_custom_types_code_emitter.cpp | 239 std::string typeName = GetTypeEmitter(type.Get())->EmitCType();
in EmitCustomTypeMarshallingImpl() local 242 typeName.c_str(), objName.c_str());
in EmitCustomTypeMarshallingImpl() 250 objName.c_str(), typeName.c_str());
in EmitCustomTypeMarshallingImpl() 253 objName.c_str(), typeName.c_str());
in EmitCustomTypeMarshallingImpl() 273 std::string typeName = GetTypeEmitter(type.Get())->EmitCType();
in EmitCustomTypeUnmarshallingImpl() local 277 typeName.c_str(), objName.c_str());
in EmitCustomTypeUnmarshallingImpl() 283 EmitPodTypeUnmarshalling(typeName, objName, sb, TAB);
in EmitCustomTypeUnmarshallingImpl() 349 const std::string &typeName, const std::string &name, StringBuilder &sb, const std::string &prefix) const
in EmitPodTypeUnmarshalling() 360 "if (%s == NULL || %s != sizeof(%s)) {\n", objPtrName.c_str(), lenName.c_str(), typeName.c_str());
in EmitPodTypeUnmarshalling() 366 typeName in EmitPodTypeUnmarshalling() 348 EmitPodTypeUnmarshalling( const std::string &typeName, const std::string &name, StringBuilder &sb, const std::string &prefix) const EmitPodTypeUnmarshalling() argument [all...] |
/foundation/multimedia/media_foundation/engine/pipeline/filters/common/ |
H A D | plugin_utils.cpp | 56 int32_t FixedCapKeyStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, in FixedCapKeyStringiness() argument 60 auto ret = snprintf_truncated_s(buf, maxLen, "%s:(%s)", name, typeName); in FixedCapKeyStringiness() 74 int32_t IntervalCapKeyStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, in IntervalCapKeyStringiness() argument 78 auto ret = snprintf_truncated_s(buf, maxLen, "%s:(%s)[", name, typeName); in IntervalCapKeyStringiness() 98 int32_t DiscreteCapKeyStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, in DiscreteCapKeyStringiness() argument 102 auto ret = snprintf_truncated_s(buf, maxLen, "%s:(%s){", name, typeName); in DiscreteCapKeyStringiness() 128 int32_t CapKeyStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, in CapKeyStringiness() argument 132 return FixedCapKeyStringiness<T>(buf, maxLen, name, typeName, val); in CapKeyStringiness() 134 return IntervalCapKeyStringiness<T>(buf, maxLen, name, typeName, val); in CapKeyStringiness() 136 return DiscreteCapKeyStringiness<T>(buf, maxLen, name, typeName, va in CapKeyStringiness() 240 MetaIDStringiness(char* buf, size_t maxLen, const char* name, const char* typeName, const Plugin::ValueType& val) MetaIDStringiness() argument [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/loader/ |
H A D | system_graph_loader.cpp | 72 if (static_cast<const TYPEINFO*>(info)->typeName == name) { in FindTypeInfo() 309 string typeName; in ParseSystem() local 310 SafeGetJsonValue(jsonData, "typeName", error, typeName); in ParseSystem() 316 const auto* typeInfo = FindTypeInfo<SystemTypeInfo>(typeName, systemMetadata); in ParseSystem() 320 error += "Failed to resolve component dependencies: (" + typeName + ".\n"; in ParseSystem() 324 error += "Failed to resolve read-only component dependencies: (" + typeName + ".\n"; in ParseSystem() 334 CORE_LOG_W("Cannot find system: %s (optional: %s)", typeName.c_str(), (optional ? "true" : "false")); in ParseSystem() 336 error += "Cannot find system: " + typeName + ".\n"; in ParseSystem()
|
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/ |
H A D | intf_plugin.h | 45 char const* const typeName { "" }; 65 char const* const typeName { "" };
|
/foundation/arkui/ace_engine/adapter/ohos/tools/raw_input_injector/ |
H A D | raw_input_command.cpp | 125 std::string typeName = GetReadableCommandTypeName(GetCommandType()); in ToString() local 128 result = typeName + "(" + std::to_string(GetTargetDisplayX()) + ", " + std::to_string(GetTargetDisplayY()) + in ToString() 132 typeName + "(" + std::to_string(GetTargetDisplayX()) + ", " + std::to_string(GetTargetDisplayY()) + ")"; in ToString()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_bloom.cpp | 71 if (jsonInputs_.renderDataStore.typeName != RenderDataStorePod::TYPE_NAME) { in InitNode() 73 jsonInputs_.renderDataStore.typeName.data(), RenderDataStorePod::TYPE_NAME); in InitNode() 127 if (jsonInputs_.renderDataStore.typeName == RenderDataStorePod::TYPE_NAME) { in ProcessPostProcessConfiguration()
|