Home
last modified time | relevance | path

Searched refs:mt (Results 1 - 25 of 62) sorted by relevance

123

/foundation/ability/idl_tool/test/unittest/cpp_code_emitter_test/
H A Dcpp_code_emitter_test.cpp70 MetaType *mt = new MetaType; in HWTEST_F() local
72 mc.types_[0] = mt; in HWTEST_F()
76 mt->kind_ = TypeKind::Byte; in HWTEST_F()
82 mt->kind_ = TypeKind::String; in HWTEST_F()
88 mt->kind_ = TypeKind::Array; in HWTEST_F()
94 mt->kind_ = TypeKind::Map; in HWTEST_F()
100 mt->kind_ = TypeKind::Unknown; in HWTEST_F()
105 delete mt; in HWTEST_F()
180 MetaType mt { .kind_ = TypeKind::Boolean }; in HWTEST_F()
183 codeEmitter.EmitWriteVariable(parcelName, name, &mt, s in HWTEST_F()
1327 MetaType mt; HWTEST_F() local
1376 MetaType mt; HWTEST_F() local
[all...]
/foundation/ability/idl_tool/test/unittest/metadata_dumper_test/
H A Dmetadata_dumper_test.cpp81 MetaType mt = {TypeKind::Char, 0, 1, new (std::nothrow) int(0)}; in HWTEST_F() local
82 metadataDumper->DumpMetaType(&mt); in HWTEST_F()
96 MetaType mt = {TypeKind::Boolean, 0, 1, new (std::nothrow) int(0)}; in HWTEST_F() local
97 metadataDumper->DumpMetaType(&mt); in HWTEST_F()
111 MetaType mt = {TypeKind::Byte, 0, 1, new (std::nothrow) int(0)}; in HWTEST_F() local
112 metadataDumper->DumpMetaType(&mt); in HWTEST_F()
126 MetaType mt = {TypeKind::Short, 0, 1, new (std::nothrow) int(0)}; in HWTEST_F() local
127 metadataDumper->DumpMetaType(&mt); in HWTEST_F()
141 MetaType mt = {TypeKind::Integer, 0, 1, new (std::nothrow) int(0)}; in HWTEST_F() local
142 metadataDumper->DumpMetaType(&mt); in HWTEST_F()
156 MetaType mt = {TypeKind::Long, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
171 MetaType mt = {TypeKind::Float, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
186 MetaType mt = {TypeKind::Double, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
201 MetaType mt = {TypeKind::String, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
[all...]
/foundation/ability/idl_tool/test/ts/unittest/ts_code_emitter_interface_test/
H A Dts_code_emitter_interface_test.cpp1218 MetaType mt = {TypeKind::Boolean, 0, 1, new (std::nothrow) int(0)}; in HWTEST_F() local
1219 tsCodeGen_->metaComponent_->types_[mt.nestedTypeIndexes_[0]]->kind_ = TypeKind::Boolean; in HWTEST_F()
1221 tsCodeGen_->EmitReadArrayVariable("parcelName", "name", &mt, 0, stringBuilder, CodeEmitter::TAB); in HWTEST_F()
1223 if (mt.nestedTypeIndexes_ != nullptr) { in HWTEST_F()
1224 delete mt.nestedTypeIndexes_; in HWTEST_F()
1225 mt.nestedTypeIndexes_ = nullptr; in HWTEST_F()
1245 MetaType mt = {TypeKind::Char, 0, 1, new (std::nothrow) int(0)}; in HWTEST_F() local
1246 tsCodeGen_->metaComponent_->types_[mt.nestedTypeIndexes_[0]]->kind_ = TypeKind::Char; in HWTEST_F()
1248 tsCodeGen_->EmitReadArrayVariable("parcelName", "name", &mt, 0, stringBuilder, CodeEmitter::TAB); in HWTEST_F()
1250 if (mt in HWTEST_F()
1272 MetaType mt = {TypeKind::Byte, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1299 MetaType mt = {TypeKind::Short, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1326 MetaType mt = {TypeKind::Integer, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1353 MetaType mt = {TypeKind::Long, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1380 MetaType mt = {TypeKind::Float, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1407 MetaType mt = {TypeKind::Double, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1434 MetaType mt = {TypeKind::String, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1461 MetaType mt = {TypeKind::Sequenceable, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1525 MetaType mt = {TypeKind::Boolean, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1551 MetaType mt = {TypeKind::Char, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1577 MetaType mt = {TypeKind::Byte, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1603 MetaType mt = {TypeKind::Short, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1629 MetaType mt = {TypeKind::Integer, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1655 MetaType mt = {TypeKind::Long, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1681 MetaType mt = {TypeKind::Float, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1707 MetaType mt = {TypeKind::Double, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1733 MetaType mt = {TypeKind::String, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1759 MetaType mt = {TypeKind::Sequenceable, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1785 MetaType mt = {TypeKind::Interface, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1811 MetaType mt = {TypeKind::List, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1837 MetaType mt = {TypeKind::Map, 0, 1, new (std::nothrow) int[2] {0}}; HWTEST_F() local
1865 MetaType mt = {TypeKind::Array, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1892 MetaType mt = {TypeKind::Boolean, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1918 MetaType mt = {TypeKind::Char, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1944 MetaType mt = {TypeKind::Byte, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1970 MetaType mt = {TypeKind::Short, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
1996 MetaType mt = {TypeKind::Integer, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
2022 MetaType mt = {TypeKind::Long, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
2048 MetaType mt = {TypeKind::Float, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
2074 MetaType mt = {TypeKind::Double, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
2100 MetaType mt = {TypeKind::String, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
2126 MetaType mt = {TypeKind::Sequenceable, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
2152 MetaType mt = {TypeKind::Interface, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
2178 MetaType mt = {TypeKind::Map, 0, 1, new (std::nothrow) int[2] {0}}; HWTEST_F() local
2206 MetaType mt = {TypeKind::Array, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
2233 MetaType mt = {TypeKind::Array, 0, 1, new (std::nothrow) int(0)}; HWTEST_F() local
[all...]
/foundation/ability/idl_tool/codegen/
H A Drust_code_emitter.cpp110 MetaType* mt = metaComponent_->types_[i]; in EmitCommonHeaders() local
111 switch (mt->kind_) { in EmitCommonHeaders()
330 String RustCodeEmitter::ConvertType(MetaType* mt, bool pt) in ConvertType() argument
332 switch (mt->kind_) { in ConvertType()
355 return metaComponent_->sequenceables_[mt->index_]->name_; in ConvertType()
357 return metaComponent_->interfaces_[mt->index_]->name_; in ConvertType()
360 ConvertType(metaComponent_->types_[mt->nestedTypeIndexes_[0]]).string(), in ConvertType()
361 ConvertType(metaComponent_->types_[mt->nestedTypeIndexes_[1]]).string()); in ConvertType()
365 ConvertType(metaComponent_->types_[mt->nestedTypeIndexes_[0]]).string()); in ConvertType()
394 void RustCodeEmitter::ReadListFromParcel(StringBuilder& sb, MetaType* mt, cons argument
401 ReadMapFromParcel(StringBuilder& sb, MetaType* mt, const String& result, const String& name, const String& prefix) ReadMapFromParcel() argument
420 ReadFromParcel(StringBuilder& sb, MetaType* mt, const String& result, const String& name, const String& prefix) ReadFromParcel() argument
433 WriteListToParcel(StringBuilder& sb, MetaType* mt, const String& result, const String& name, const String& prefix) WriteListToParcel() argument
439 WriteMapToParcel(StringBuilder& sb, MetaType* mt, const String& result, const String& name, const String& prefix) WriteMapToParcel() argument
449 WriteToParcel(StringBuilder& sb, MetaType* mt, const String& result, const String& name, const String& prefix) WriteToParcel() argument
470 MetaType* mt = metaComponent_->types_[mm->returnTypeIndex_]; AddRemoteRequestMethods() local
548 MetaType* mt = metaComponent_->types_[mm->returnTypeIndex_]; AppendProxyMethods() local
[all...]
H A Dcpp_code_emitter.h65 void EmitInterfaceMethodReturn(MetaType* mt, StringBuilder& sb, const String& prefix);
139 void EmitWriteVariable(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb,
142 void EmitWriteVariableFloat(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb,
145 void EmitWriteVariableComplex(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb,
148 void EmitWriteVariableObject(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb,
151 void EmitReadVariable(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb,
154 void EmitReadVariableFloat(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb,
157 void EmitReadVariableComplex(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb,
160 void EmitReadVariableList(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb,
163 void EmitReadVariableObject(const String& parcelName, const std::string& name, MetaType* mt, StringBuilde
[all...]
H A Dcpp_code_emitter.cpp70 MetaType* mt = metaComponent_->types_[i]; in EmitInterfaceStdlibInclusions() local
71 switch (mt->kind_) { in EmitInterfaceStdlibInclusions()
255 MetaType* mt = metaComponent_->types_[mp->typeIndex_]; in EmitInterfaceMethodParameter() local
257 sb.AppendFormat("%s %s", EmitType(mt, mp->attributes_, false).string(), name.c_str()); in EmitInterfaceMethodParameter()
260 void CppCodeEmitter::EmitInterfaceMethodReturn(MetaType* mt, StringBuilder& sb, const String& prefix) in EmitInterfaceMethodReturn() argument
262 sb.Append(prefix).AppendFormat("%s result", EmitType(mt, ATTR_OUT, false).string()); in EmitInterfaceMethodReturn()
659 MetaType* mt = metaComponent_->types_[mp->typeIndex_]; in EmitWriteMethodParameter() local
661 EmitWriteVariable(parcelName, name, mt, sb, prefix); in EmitWriteMethodParameter()
667 MetaType* mt = metaComponent_->types_[mp->typeIndex_]; in EmitReadMethodParameter() local
669 EmitReadVariable(parcelName, name, mt, s in EmitReadMethodParameter()
834 MetaType* mt = metaComponent_->types_[mp->typeIndex_]; EmitInterfaceStubMethodImpl() local
927 EmitWriteVariable(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix) EmitWriteVariable() argument
967 EmitWriteVariableFloat( const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix) EmitWriteVariableFloat() argument
995 EmitWriteVariableComplex( const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix) EmitWriteVariableComplex() argument
1048 EmitWriteVariableObject( const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix) EmitWriteVariableObject() argument
1092 EmitReadVariable(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix, bool emitType) EmitReadVariable() argument
1138 EmitReadVariableFloat(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix, bool emitType) EmitReadVariableFloat() argument
1164 EmitReadVariableComplex(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix, bool emitType) EmitReadVariableComplex() argument
1197 EmitReadVariableList(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix, bool emitType) EmitReadVariableList() argument
1237 EmitReadVariableObject(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& sb, const String& prefix, bool emitType) EmitReadVariableObject() argument
1291 MetaType* mt = metaComponent_->types_[mp->typeIndex_]; EmitLocalVariable() local
1302 EmitReturnParameter(const String& name, MetaType* mt, StringBuilder& sb) EmitReturnParameter() argument
1326 EmitType(MetaType* mt, unsigned int attributes, bool isInnerType) EmitType() argument
1377 EmitFloatType(MetaType* mt, unsigned int attributes, bool isInnerType) EmitFloatType() argument
1402 EmitComplexType(MetaType* mt, unsigned int attributes, bool isInnerType) EmitComplexType() argument
1438 EmitListType(MetaType* mt, unsigned int attributes, bool isInnerType) EmitListType() argument
1463 EmitObjectType(MetaType* mt, unsigned int attributes, bool isInnerType) EmitObjectType() argument
[all...]
H A Drust_code_emitter.h79 String ConvertType(MetaType* mt, bool pt = false);
83 void ReadListFromParcel(StringBuilder& sb, MetaType* mt, const String& result,
86 void ReadMapFromParcel(StringBuilder& sb, MetaType* mt, const String& result,
89 void ReadFromParcel(StringBuilder& sb, MetaType* mt, const String& result,
92 void WriteListToParcel(StringBuilder& sb, MetaType* mt, const String& result,
95 void WriteMapToParcel(StringBuilder& sb, MetaType* mt, const String& result,
98 void WriteToParcel(StringBuilder& sb, MetaType* mt, const String& result,
H A Dts_code_emitter.h126 void EmitWriteVariable(const String& parcelName, const std::string& name, MetaType* mt,
129 void EmitWriteVariableObject(const String& parcelName, const std::string& name, MetaType* mt,
132 void EmitReadVariable(const String& parcelName, const std::string& name, MetaType* mt, unsigned int attributes,
135 void EmitReadVariableObject(const String& parcelName, const std::string& name, MetaType* mt,
138 void EmitReadOutVariable(const String& parcelName, const std::string& name, MetaType* mt,
141 void EmitReadOutVariableObject(const String& parcelName, const std::string& name, MetaType* mt,
144 void EmitReadArrayVariable(const String& parcelName, const std::string& name, MetaType* mt,
149 void EmitWriteArrayVariable(const String& parcelName, const std::string& name, MetaType* mt,
153 void EmitReadOutArrayVariable(const String& parcelName, const std::string& name, MetaType* mt,
157 String EmitType(MetaType* mt);
[all...]
H A Dts_code_emitter.cpp451 MetaType* mt = metaComponent_->types_[mp->typeIndex_]; in EmitWriteMethodParameter() local
453 EmitWriteVariable(parcelName, name, mt, stringBuilder, prefix); in EmitWriteMethodParameter()
459 MetaType* mt = metaComponent_->types_[mp->typeIndex_]; in EmitReadMethodParameter() local
461 EmitReadOutVariable(parcelName, name, mt, stringBuilder, prefix); in EmitReadMethodParameter()
564 MetaType* mt = metaComponent_->types_[mp->typeIndex_]; in EmitInterfaceStubMethodImpl() local
565 EmitReadVariable("data", SuffixAdded(mp->name_), mt, ATTR_IN, stringBuilder, prefix + TAB); in EmitInterfaceStubMethodImpl()
661 void TsCodeEmitter::EmitWriteVariable(const String& parcelName, const std::string& name, MetaType* mt, in EmitWriteVariable() argument
664 switch (mt->kind_) { in EmitWriteVariable()
684 EmitWriteVariableObject(parcelName, name, mt, stringBuilder, prefix); in EmitWriteVariable()
689 void TsCodeEmitter::EmitWriteVariableObject(const String& parcelName, const std::string& name, MetaType* mt, in EmitWriteVariableObject() argument
738 EmitWriteArrayVariable(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& stringBuilder, const String& prefix) EmitWriteArrayVariable() argument
791 EmitReadVariable(const String& parcelName, const std::string& name, MetaType* mt, unsigned int attributes, StringBuilder& stringBuilder, const String& prefix) EmitReadVariable() argument
822 EmitReadVariableObject(const String& parcelName, const std::string& name, MetaType* mt, unsigned int attributes, StringBuilder& stringBuilder, const String& prefix) EmitReadVariableObject() argument
872 EmitReadArrayVariable(const String& parcelName, const std::string& name, MetaType* mt, unsigned int attributes, StringBuilder& stringBuilder, const String& prefix) EmitReadArrayVariable() argument
911 EmitReadOutArrayVariable(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& stringBuilder, const String& prefix) EmitReadOutArrayVariable() argument
951 EmitReadOutVariable(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& stringBuilder, const String& prefix) EmitReadOutVariable() argument
984 EmitReadOutVariableObject(const String& parcelName, const std::string& name, MetaType* mt, StringBuilder& stringBuilder, const String& prefix) EmitReadOutVariableObject() argument
1036 EmitType(MetaType* mt) EmitType() argument
[all...]
/foundation/ability/idl_tool/metadata/
H A Dmetadata_serializer.cpp57 MetaType* mt = mc->types_[i]; in SerializeMetaComponent() local
58 SerializeMetaType(mt); in SerializeMetaComponent()
59 mc->types_[i] = reinterpret_cast<MetaType*>(SerializeAdjust(mt)); in SerializeMetaComponent()
133 void MetadataSerializer::SerializeMetaType(MetaType* mt) in SerializeMetaType() argument
135 if (mt == nullptr) { in SerializeMetaType()
138 mt->nestedTypeIndexes_ = reinterpret_cast<int*>(SerializeAdjust(mt->nestedTypeIndexes_)); in SerializeMetaType()
186 MetaType* mt = mc->types_[i]; in DeserializeMetaComponent() local
187 DeserializeMetaType(mt); in DeserializeMetaComponent()
262 void MetadataSerializer::DeserializeMetaType(MetaType* mt) in DeserializeMetaType() argument
[all...]
H A Dmetadata_builder.cpp409 MetaType* mt = reinterpret_cast<MetaType*>(baseAddr_); in WriteMetaType() local
410 mt->kind_ = Type2Kind(type); in WriteMetaType()
412 mt->index_ = module_->IndexOf(static_cast<ASTSequenceableType*>(type)); in WriteMetaType()
414 mt->index_ = module_->IndexOf(static_cast<ASTInterfaceType*>(type)); in WriteMetaType()
416 mt->index_ = module_->IndexOf(type); in WriteMetaType()
420 mt->nestedTypeNumber_ = 1; in WriteMetaType()
423 mt->nestedTypeIndexes_ = reinterpret_cast<int*>(baseAddr_); in WriteMetaType()
425 mt->nestedTypeIndexes_[0] = module_->IndexOf(elementType); in WriteMetaType()
430 mt->nestedTypeNumber_ = static_cast<int>(typeNumber); in WriteMetaType()
433 mt in WriteMetaType()
[all...]
H A Dmetadata_serializer.h74 void SerializeMetaType(MetaType* mt);
90 void DeserializeMetaType(MetaType* mt);
H A Dmetadata_dumper.cpp225 String MetadataDumper::DumpMetaType(MetaType* mt) in DumpMetaType() argument
227 switch (mt->kind_) { in DumpMetaType()
249 MetaSequenceable* mp = metaComponent_->sequenceables_[mt->index_]; in DumpMetaType()
253 MetaInterface* mi = metaComponent_->interfaces_[mt->index_]; in DumpMetaType()
257 MetaType* elementMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in DumpMetaType()
261 MetaType* keyMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in DumpMetaType()
262 MetaType* valueMt = metaComponent_->types_[mt->nestedTypeIndexes_[1]]; in DumpMetaType()
266 MetaType* elementMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in DumpMetaType()
H A Dmetadata_dumper.h54 String DumpMetaType(MetaType* mt);
/foundation/ability/idl_tool/idl_tool_2/metadata/
H A Dmetadata_serializer.cpp54 MetaType* mt = mc->types_[i]; in SerializeMetaComponent() local
55 SerializeMetaType(mt); in SerializeMetaComponent()
56 mc->types_[i] = reinterpret_cast<MetaType*>(SerializeAdjust(mt)); in SerializeMetaComponent()
130 void MetadataSerializer::SerializeMetaType(MetaType* mt) in SerializeMetaType() argument
132 if (mt == nullptr) { in SerializeMetaType()
135 mt->nestedTypeIndexes_ = reinterpret_cast<int*>(SerializeAdjust(mt->nestedTypeIndexes_)); in SerializeMetaType()
179 MetaType* mt = mc->types_[i]; in DeserializeMetaComponent() local
180 DeserializeMetaType(mt); in DeserializeMetaComponent()
253 void MetadataSerializer::DeserializeMetaType(MetaType* mt) in DeserializeMetaType() argument
[all...]
H A Dmetadata_reader.cpp206 std::string MetadataReader::MetaTypeName(MetaType* mt) in MetaTypeName() argument
208 switch (mt->kind_) { in MetaTypeName()
230 MetaSequenceable* mp = metaComponent_->sequenceables_[mt->index_]; in MetaTypeName()
234 MetaInterface* mi = metaComponent_->interfaces_[mt->index_]; in MetaTypeName()
238 MetaType* elementMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in MetaTypeName()
242 MetaType* keyMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in MetaTypeName()
243 MetaType* valueMt = metaComponent_->types_[mt->nestedTypeIndexes_[1]]; in MetaTypeName()
247 MetaType* elementMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in MetaTypeName()
252 printf("Unknown %d\n", mt->index_); in MetaTypeName()
H A Dmetadata_builder.cpp401 MetaType* mt = reinterpret_cast<MetaType*>(baseAddr_); in WriteMetaType() local
402 mt->kind_ = Type2Kind(type); in WriteMetaType()
404 mt->index_ = module_->IndexOf(static_cast<ASTSequenceableType*>(type)); in WriteMetaType()
406 mt->index_ = module_->IndexOf(static_cast<ASTInterfaceType*>(type)); in WriteMetaType()
408 mt->index_ = module_->IndexOf(type); in WriteMetaType()
412 mt->nestedTypeNumber_ = 1; in WriteMetaType()
415 mt->nestedTypeIndexes_ = reinterpret_cast<int*>(baseAddr_); in WriteMetaType()
417 mt->nestedTypeIndexes_[0] = module_->IndexOf(elementType); in WriteMetaType()
422 mt->nestedTypeNumber_ = static_cast<int>(typeNumber); in WriteMetaType()
425 mt in WriteMetaType()
[all...]
H A Dmetadata_serializer.h74 void SerializeMetaType(MetaType* mt);
90 void DeserializeMetaType(MetaType* mt);
H A Dmetadata_dumper.cpp238 std::string MetadataDumper::DumpMetaType(MetaType* mt) in DumpMetaType() argument
240 switch (mt->kind_) { in DumpMetaType()
262 MetaSequenceable* mp = metaComponent_->sequenceables_[mt->index_]; in DumpMetaType()
266 MetaInterface* mi = metaComponent_->interfaces_[mt->index_]; in DumpMetaType()
270 MetaType* elementMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in DumpMetaType()
274 MetaType* keyMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in DumpMetaType()
275 MetaType* valueMt = metaComponent_->types_[mt->nestedTypeIndexes_[1]]; in DumpMetaType()
279 MetaType* elementMt = metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in DumpMetaType()
284 printf("Unknown %d\n", mt->index_); in DumpMetaType()
H A Dmetadata_reader.h44 std::string MetaTypeName(MetaType* mt);
H A Dmetadata_dumper.h59 std::string DumpMetaType(MetaType* mt);
/foundation/resourceschedule/ffrt/src/sync/
H A Dmutex.cpp87 if (mt.try_lock()) { in try_lock()
110 if (mt.try_lock()) { in try_lock()
138 mt.lock(); in lock()
153 mt.lock(); in lock()
178 mt.unlock(); in unlock()
196 mt.unlock(); in unlock()
/foundation/ability/idl_tool/test/ts/unittest/ts_code_emitter_proxy_test/
H A Dts_code_emitter_proxy_test.cpp66 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; in HWTEST_F() local
67 if (mt->kind_ == TypeKind::Array && (mp->attributes_ & ATTR_IN) != 0) { in HWTEST_F()
68 MetaType* innerType = tsCodeGen_->metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in HWTEST_F()
107 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; in HWTEST_F() local
108 if (mt->kind_ == TypeKind::Array && (mp->attributes_ & ATTR_IN) != 0) { in HWTEST_F()
109 MetaType* innerType = tsCodeGen_->metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in HWTEST_F()
148 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; in HWTEST_F() local
149 if (mt->kind_ == TypeKind::Array && (mp->attributes_ & ATTR_IN) != 0) { in HWTEST_F()
150 MetaType* innerType = tsCodeGen_->metaComponent_->types_[mt->nestedTypeIndexes_[0]]; in HWTEST_F()
189 MetaType* mt in HWTEST_F() local
232 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
275 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
315 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
356 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
397 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
438 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
835 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
874 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
914 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
954 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
985 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
1072 MetaType* mt = tsCodeGen_->metaComponent_->types_[mp->typeIndex_]; HWTEST_F() local
[all...]
/foundation/resourceschedule/device_standby/services/test/unittest/
H A Dallow_record_unit_test.cpp20 using namespace testing::mt;
/foundation/ability/ability_runtime/test/unittest/window_visibility_changed_listener_test/
H A Dwindow_visibility_changed_listener_test.cpp29 using namespace testing::mt;

Completed in 17 milliseconds

123