Searched defs:builder (Results 1 - 4 of 4) sorted by relevance
/art/compiler/utils/ |
H A D | test_dex_file_builder_test.cc | 26 TestDexFileBuilder builder; local 27 builder.AddString("Arbitrary string"); 28 builder.AddType("Ljava/lang/Class;"); 29 builder.AddField("LTestClass;", "[I", "intField"); 30 builder.AddMethod("LTestClass;", "()I", "foo"); 31 builder.AddMethod("LTestClass;", "(Ljava/lang/Object;[Ljava/lang/Object;)LTestClass;", "bar"); 33 std::unique_ptr<const DexFile> dex_file(builder.Build(dex_location)); 78 EXPECT_EQ(0u, builder.GetStringIdx("Arbitrary string")); 79 EXPECT_EQ(2u, builder.GetTypeIdx("Ljava/lang/Class;")); 80 EXPECT_EQ(0u, builder [all...] |
/art/runtime/ |
H A D | leb128_test.cc | 97 Leb128EncodingVector builder; local 98 builder.PushBackUnsigned(uleb128_tests[i].decoded); 99 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), builder.GetData().size()); 101 const uint8_t* encoded_data_ptr = &builder.GetData()[0]; 103 if (j < builder.GetData().size()) { 134 Leb128EncodingVector builder; local 136 builder.PushBackUnsigned(uleb128_tests[i].decoded); 138 const uint8_t* encoded_data_ptr = &builder.GetData()[0]; 149 EXPECT_EQ(builder.GetData().size(), 150 static_cast<size_t>(encoded_data_ptr - &builder 178 Leb128EncodingVector builder; local 215 Leb128EncodingVector builder; local 278 Leb128EncodingVector builder; local [all...] |
/art/compiler/ |
H A D | elf_writer_quick.cc | 70 static void WriteDebugSymbols(ElfBuilder<ElfTypes>* builder, OatWriter* oat_writer); 148 // Setup the builder with the main OAT sections (.rodata .text .bss). 154 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>( 158 // They are allocated here (in the same scope as the builder), 159 // but they are registered with the builder only if they are used. 161 const auto* text = builder->GetText(); 202 builder->RegisterSection(eh_frame.get()); 203 builder->RegisterSection(eh_frame_hdr.get()); 211 builder->RegisterSection(debug_frame.get()); 214 builder 253 WriteDebugSymbols(ElfBuilder<ElfTypes>* builder, OatWriter* oat_writer) argument [all...] |
/art/cmdline/ |
H A D | cmdline_parser.h | 54 static void AppendCompletedArgument(Builder& builder, detail::CmdlineParseArgumentAny* arg); 198 // Ensure we always move this when returning a new builder. 202 // Used by builder to internally ignore arguments by dropping them on the floor after parsing. 238 // Called by any function that doesn't chain back into this builder. 239 // Completes the argument builder and save the information into the main builder. 315 // Ensure we always move this when returning a new builder. 395 auto&& builder = Define(ignore_name).template WithType<std::string>().IntoIgnore(); local 396 assert(&builder == this); 397 (void)builder; // Ignor 400 auto&& builder = Define(ignore_name).template WithType<Unit>().IntoIgnore(); local 626 AppendCompletedArgument( CmdlineParser<TVariantMap, TVariantMapKey>::Builder& builder, detail::CmdlineParseArgumentAny* arg) argument [all...] |
Completed in 106 milliseconds