Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 70) sorted by relevance

123

/art/libartbase/base/
Dmemory_type_table_test.cc173 MemoryTypeTable<int>::Builder builder; in TEST() local
175 EXPECT_EQ(builder.Size(), 0u); in TEST()
176 EXPECT_EQ(builder.Add(range), true); in TEST()
177 EXPECT_EQ(builder.Lookup(range.Start() - 1u), nullptr); in TEST()
178 EXPECT_EQ(builder.Size(), 1u); in TEST()
180 const MemoryTypeRange<int>* first = builder.Lookup(range.Start()); in TEST()
184 const MemoryTypeRange<int>* last = builder.Lookup(range.Limit() - 1u); in TEST()
188 EXPECT_EQ(builder.Lookup(range.Limit()), nullptr); in TEST()
192 MemoryTypeTable<char>::Builder builder; in TEST() local
200 builder.Add(range); in TEST()
[all …]
Dbit_table_test.cc36 BitTableBuilderBase<1> builder(&allocator); in TEST() local
37 builder.Encode(writer); in TEST()
53 BitTableBuilderBase<1> builder(&allocator); in TEST() local
54 builder.Add({42u}); in TEST()
55 builder.Add({kNoValue}); in TEST()
56 builder.Add({1000u}); in TEST()
57 builder.Add({kNoValue}); in TEST()
58 builder.Encode(writer); in TEST()
79 BitTableBuilderBase<1> builder(&allocator); in TEST() local
80 builder.Add({42u}); in TEST()
[all …]
Dleb128_test.cc97 Leb128EncodingVector<> builder; in TEST() local
98 builder.PushBackUnsigned(uleb128_tests[i].decoded); in TEST()
99 EXPECT_EQ(UnsignedLeb128Size(uleb128_tests[i].decoded), builder.GetData().size()); in TEST()
101 const uint8_t* encoded_data_ptr = &builder.GetData()[0]; in TEST()
103 if (j < builder.GetData().size()) { in TEST()
134 Leb128EncodingVector<> builder; in TEST() local
136 builder.PushBackUnsigned(uleb128_tests[i].decoded); in TEST()
138 const uint8_t* encoded_data_ptr = &builder.GetData()[0]; in TEST()
149 EXPECT_EQ(builder.GetData().size(), in TEST()
150 static_cast<size_t>(encoded_data_ptr - &builder.GetData()[0])); in TEST()
[all …]
/art/libdexfile/dex/
Dtest_dex_file_builder_test.cc25 TestDexFileBuilder builder; in TEST() local
26 builder.AddString("Arbitrary string"); in TEST()
27 builder.AddType("Ljava/lang/Class;"); in TEST()
28 builder.AddField("LTestClass;", "[I", "intField"); in TEST()
29 builder.AddMethod("LTestClass;", "()I", "foo"); in TEST()
30 builder.AddMethod("LTestClass;", "(Ljava/lang/Object;[Ljava/lang/Object;)LTestClass;", "bar"); in TEST()
32 std::unique_ptr<const DexFile> dex_file(builder.Build(dex_location)); in TEST()
79 EXPECT_EQ(0u, builder.GetStringIdx("Arbitrary string")); in TEST()
80 EXPECT_EQ(2u, builder.GetTypeIdx("Ljava/lang/Class;")); in TEST()
81 EXPECT_EQ(0u, builder.GetFieldIdx("LTestClass;", "[I", "intField")); in TEST()
[all …]
/art/tools/dexfuzz/src/dexfuzz/
DExecutionResult.java44 StringBuilder builder = new StringBuilder(); in getFlattenedOutput() local
46 builder.append(line); in getFlattenedOutput()
48 flattenedOutput = builder.toString(); in getFlattenedOutput()
58 StringBuilder builder = new StringBuilder(); in getFlattenedOutputWithNewlines() local
60 builder.append(line).append("\n"); in getFlattenedOutputWithNewlines()
62 flattenedOutputWithNewlines = builder.toString(); in getFlattenedOutputWithNewlines()
72 StringBuilder builder = new StringBuilder(); in getFlattenedError() local
74 builder.append(line); in getFlattenedError()
76 flattenedError = builder.toString(); in getFlattenedError()
86 StringBuilder builder = new StringBuilder(); in getFlattenedErrorWithNewlines() local
[all …]
DMutationStats.java60 StringBuilder builder = new StringBuilder(); in getStatsString() local
61 builder.append("{"); in getStatsString()
65 builder.append(", "); in getStatsString()
69 builder.append("\"").append(statName).append("\": ").append(stats.get(statName)); in getStatsString()
71 builder.append("}"); in getStatsString()
72 return builder.toString(); in getStatsString()
/art/compiler/debug/
Delf_debug_writer.cc46 void WriteDebugInfo(ElfBuilder<ElfTypes>* builder, in WriteDebugInfo() argument
49 WriteDebugSymbols(builder, /* mini-debug-info= */ false, debug_info); in WriteDebugInfo()
52 WriteCFISection(builder, debug_info.compiled_methods); in WriteDebugInfo()
92 ElfDebugLineWriter<ElfTypes> line_writer(builder); in WriteDebugInfo()
102 ElfDebugInfoWriter<ElfTypes> info_writer(builder); in WriteDebugInfo()
124 std::unique_ptr<ElfBuilder<ElfTypes>> builder(new ElfBuilder<ElfTypes>(isa, &out)); in MakeMiniDebugInfoInternal() local
125 builder->Start(/* write_program_headers= */ false); in MakeMiniDebugInfoInternal()
128 builder->GetText()->AllocateVirtualMemory(text_section_address, text_section_size); in MakeMiniDebugInfoInternal()
131 builder->GetDex()->AllocateVirtualMemory(dex_section_address, dex_section_size); in MakeMiniDebugInfoInternal()
134 WriteDebugSymbols(builder.get(), /* mini-debug-info= */ true, debug_info); in MakeMiniDebugInfoInternal()
[all …]
Delf_symtab_writer.h48 static void WriteDebugSymbols(ElfBuilder<ElfTypes>* builder, in WriteDebugSymbols() argument
52 const auto* text = builder->GetText(); in WriteDebugSymbols()
53 auto* strtab = builder->GetStrTab(); in WriteDebugSymbols()
54 auto* symtab = builder->GetSymTab(); in WriteDebugSymbols()
104 if (!debug_info.dex_files.empty() && builder->GetDex()->Exists()) { in WriteDebugSymbols()
105 auto dex = builder->GetDex(); in WriteDebugSymbols()
Delf_debug_frame_writer.h171 void WriteCFISection(ElfBuilder<ElfTypes>* builder, in WriteCFISection() argument
204 auto* cfi_section = builder->GetDebugFrame(); in WriteCFISection()
207 const bool is64bit = Is64BitInstructionSet(builder->GetIsa()); in WriteCFISection()
209 WriteCIE(builder->GetIsa(), &buffer); in WriteCFISection()
216 (mi->is_code_address_text_relative ? builder->GetText()->GetAddress() : 0); in WriteCFISection()
245 auto* header_section = builder->GetDebugFrameHdr(); in WriteCFISection()
/art/tools/luci/config/
Dluci-scheduler.cfg33 triggers: "aosp-builder-cc"
34 triggers: "aosp-builder-cms"
62 builder: "angler-armv7-debug"
72 builder: "angler-armv7-non-gen-cc"
82 builder: "angler-armv7-ndebug"
92 builder: "angler-armv8-debug"
102 builder: "angler-armv8-non-gen-cc"
112 builder: "angler-armv8-ndebug"
117 id: "aosp-builder-cc"
122 builder: "aosp-builder-cc"
[all …]
/art/compiler/debug/dwarf/
Ddwarf_test.h67 ElfBuilder<ElfTypes> builder(isa, &output_stream); in Objdump()
68 builder.Start(); in Objdump()
70 builder.WriteSection(".debug_info", &debug_info_data_); in Objdump()
73 builder.WriteSection(".debug_abbrev", &debug_abbrev_data_); in Objdump()
76 builder.WriteSection(".debug_str", &debug_str_data_); in Objdump()
79 builder.WriteSection(".debug_line", &debug_line_data_); in Objdump()
82 builder.WriteSection(".debug_frame", &debug_frame_data_); in Objdump()
84 builder.End(); in Objdump()
85 EXPECT_TRUE(builder.Good()); in Objdump()
/art/tools/dexfuzz/src/dexfuzz/program/
DMutationSerializer.java32 StringBuilder builder = new StringBuilder(); in getMutationString() local
33 builder.append(mutation.mutatorClass.getCanonicalName()).append(" "); in getMutationString()
34 builder.append(mutation.mutatableCodeIdx).append(" "); in getMutationString()
35 builder.append(mutation.getString()); in getMutationString()
36 return builder.toString(); in getMutationString()
/art/dex2oat/
Ddex2oat_options.cc56 static void AddInputMappings(Builder& builder) { in AddInputMappings() argument
57 builder. in AddInputMappings()
75 static void AddGeneratedArtifactMappings(Builder& builder) { in AddGeneratedArtifactMappings() argument
76 builder. in AddGeneratedArtifactMappings()
111 static void AddImageMappings(Builder& builder) { in AddImageMappings() argument
112 builder. in AddImageMappings()
144 static void AddSwapMappings(Builder& builder) { in AddSwapMappings() argument
145 builder. in AddSwapMappings()
160 static void AddCompilerMappings(Builder& builder) { in AddCompilerMappings() argument
161 builder. in AddCompilerMappings()
[all …]
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
DNonsenseStringPrinter.java42 StringBuilder builder = new StringBuilder(); in getString() local
43 builder.append(insertionIdx).append(" "); in getString()
44 builder.append(nonsenseString); in getString()
45 return builder.toString(); in getString()
156 StringBuilder builder = new StringBuilder(); in getRandomString() local
158 builder.append((char) (rng.nextInt((end + 1) - start) + start)); in getRandomString()
160 return builder.toString(); in getRandomString()
DSwitchBranchShifter.java43 StringBuilder builder = new StringBuilder(); in getString() local
44 builder.append(switchInsnIdx).append(" "); in getString()
45 builder.append(switchTargetIdx).append(" "); in getString()
46 builder.append(newTargetIdx); in getString()
47 return builder.toString(); in getString()
DInstructionSwapper.java40 StringBuilder builder = new StringBuilder(); in getString() local
41 builder.append(swapInsnIdx).append(" "); in getString()
42 builder.append(swapWithInsnIdx); in getString()
43 return builder.toString(); in getString()
DVRegChanger.java43 StringBuilder builder = new StringBuilder(); in getString() local
44 builder.append(vregInsnIdx).append(" "); in getString()
45 builder.append(mutatingVreg).append(" "); in getString()
46 builder.append(newVregValue); in getString()
47 return builder.toString(); in getString()
DBranchShifter.java42 StringBuilder builder = new StringBuilder(); in getString() local
43 builder.append(branchInsnIdx).append(" "); in getString()
44 builder.append(newTargetIdx); in getString()
45 return builder.toString(); in getString()
DConstantValueChanger.java42 StringBuilder builder = new StringBuilder(); in getString() local
43 builder.append(constInsnIdx).append(" "); in getString()
44 builder.append(newConstant); in getString()
45 return builder.toString(); in getString()
DFieldFlagChanger.java45 StringBuilder builder = new StringBuilder(); in getString() local
46 builder.append(fieldInsnIdx).append(" "); in getString()
47 builder.append(setVolatile); in getString()
48 return builder.toString(); in getString()
DPoolIndexChanger.java43 StringBuilder builder = new StringBuilder(); in getString() local
44 builder.append(poolIndexInsnIdx).append(" "); in getString()
45 builder.append(newPoolIndex); in getString()
46 return builder.toString(); in getString()
/art/test/552-checker-primitive-typeprop/smali/
DArrayGet.smali22 ## CHECK-START: void ArrayGet.matchingFixedType(float[], float) builder (after)
25 ## CHECK-START-DEBUGGABLE: void ArrayGet.matchingFixedType(float[], float) builder (after)
52 ## CHECK-START: void ArrayGet.conflictingFixedType(float[], int) builder (after)
55 ## CHECK-START-DEBUGGABLE: void ArrayGet.conflictingFixedType(float[], int) builder (after)
79 ## CHECK-START: void ArrayGet.conflictingFixedType2(int[], float) builder (after)
82 ## CHECK-START-DEBUGGABLE: void ArrayGet.conflictingFixedType2(int[], float) builder (after)
85 ## CHECK-START-DEBUGGABLE: void ArrayGet.conflictingFixedType2(int[], float) builder (after)
110 ## CHECK-START: void ArrayGet.matchingFreeType(float[], float) builder (after)
113 ## CHECK-START-DEBUGGABLE: void ArrayGet.matchingFreeType(float[], float) builder (after)
142 ## CHECK-START: void ArrayGet.conflictingFreeType(int[], float) builder (after)
[all …]
DTypePropagation.smali18 …-DEBUGGABLE: void TypePropagation.mergeDeadPhi(boolean, boolean, int, float, float) builder (after)
37 ## CHECK-START-DEBUGGABLE: void TypePropagation.mergeSameType(boolean, int, int) builder (after)
50 ## CHECK-START-DEBUGGABLE: void TypePropagation.mergeVoidInput(boolean, boolean, int, int) builder
67 ## CHECK-START-DEBUGGABLE: void TypePropagation.mergeDifferentSize(boolean, int, long) builder (aft…
79 …RT-DEBUGGABLE: void TypePropagation.mergeRefFloat(boolean, float, java.lang.Object) builder (after)
91 ## CHECK-START-DEBUGGABLE: void TypePropagation.mergeIntFloat_Success(boolean, float) builder (afte…
104 ## CHECK-START-DEBUGGABLE: void TypePropagation.mergeIntFloat_Fail(boolean, int, float) builder (af…
116 …E: void TypePropagation.updateAllUsersOnConflict(boolean, boolean, int, float, int) builder (after)
/art/tools/dexfuzz/src/dexfuzz/listeners/
DBisectionSearchListener.java64 StringBuilder builder = new StringBuilder(); in extractExpectedOutput() local
67 builder.append(result.output.get(i)).append("\n"); in extractExpectedOutput()
69 return builder.toString(); in extractExpectedOutput()
/art/tools/class2greylist/src/com/android/class2greylist/
DClass2Greylist.java192 Builder<String, AnnotationHandler> builder = ImmutableMap.builder(); in createAnnotationHandlers() local
198 builder, in createAnnotationHandlers()
206 return addRepeatedAnnotationHandlers(builder, CovariantReturnTypeHandler.ANNOTATION_NAME, in createAnnotationHandlers()
225 Builder<String, AnnotationHandler> builder, in addRepeatedAnnotationHandlers() argument
228 return builder in addRepeatedAnnotationHandlers()

123