Home
last modified time | relevance | path

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

12345678910>>...120

/external/mesa3d/src/pixelflinger2/
Dllvm_texture.cpp31 static Value * pointSample(IRBuilder<> & builder, Value * textureData, Value * index, const GGLPixe… in pointSample() argument
36 textureData = builder.CreateGEP(textureData, index); in pointSample()
37 texel = builder.CreateLoad(textureData, "texel"); in pointSample()
40 textureData = builder.CreateGEP(textureData, index); in pointSample()
41 texel = builder.CreateLoad(textureData, "texel"); in pointSample()
42 texel = builder.CreateOr(texel, builder.getInt32(0xff000000)); in pointSample()
45 textureData = builder.CreateBitCast(textureData, PointerType::get(builder.getInt16Ty(), 0)); in pointSample()
46 textureData = builder.CreateGEP(textureData, index); in pointSample()
47 texel = builder.CreateLoad(textureData, "texel565"); in pointSample()
48 texel = builder.CreateZExt(texel, Type::getInt32Ty(builder.getContext())); in pointSample()
[all …]
Dllvm_scanline.cpp29 static void StencilOp(IRBuilder<> &builder, const unsigned char op, in StencilOp() argument
32 CondBranch condBranch(builder); in StencilOp()
33 Value * s = builder.CreateLoad(sPtr, "stenciOpS"); in StencilOp()
36 builder.CreateStore(builder.getInt8(0), sPtr); in StencilOp()
39 builder.CreateStore(s, sPtr); in StencilOp()
42 builder.CreateStore(sRef, sPtr); in StencilOp()
45 condBranch.ifCond(builder.CreateICmpEQ(s, builder.getInt8(255))); in StencilOp()
46 builder.CreateStore(s, sPtr); in StencilOp()
48 builder.CreateStore(builder.CreateAdd(s, builder.getInt8(1)), sPtr); in StencilOp()
52 condBranch.ifCond(builder.CreateICmpEQ(s, builder.getInt8(0))); in StencilOp()
[all …]
Dllvm_helper.h32 static Value * minIntScalar(IRBuilder<> &builder, Value * in1, Value * in2) in minIntScalar() argument
34 Value * cmp = builder.CreateICmpSLT(in1, in2); in minIntScalar()
35 return builder.CreateSelect(cmp, in1, in2); in minIntScalar()
38 static Value * maxIntScalar(IRBuilder<> &builder, Value * in1, Value * in2) in maxIntScalar() argument
40 Value * cmp = builder.CreateICmpSGT(in1, in2); in maxIntScalar()
41 return builder.CreateSelect(cmp, in1, in2); in maxIntScalar()
44 static Constant * constFloat(IRBuilder<> & builder, float x) in constFloat() argument
46 return ConstantFP::get(builder.getContext(), APFloat(x)); in constFloat()
49 static VectorType * intVecType(IRBuilder<> & builder) in intVecType() argument
51 return VectorType::get(Type::getInt32Ty(builder.getContext()), 4); in intVecType()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DImmutableTableTest.java28 ImmutableTable.Builder<String, Integer, Character> builder = in create() local
29 ImmutableTable.builder(); in create()
31 builder.put((String) data[i], (Integer) data[i + 1], in create()
34 return builder.build(); in create()
38 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder() local
40 assertEquals(ImmutableTable.of(), builder.build()); in testBuilder()
41 assertEquals(ImmutableTable.of('a', 1, "foo"), builder in testBuilder()
51 assertEquals(expectedTable, builder in testBuilder()
57 ImmutableTable.Builder<Character, Integer, String> builder = in testBuilder_withImmutableCell() local
59 assertEquals(ImmutableTable.of('a', 1, "foo"), builder in testBuilder_withImmutableCell()
[all …]
DImmutableListMultimapTest.java51 Builder<String, Integer> builder = new Builder<String, Integer>(); in testBuilder_withImmutableEntryAndNullContents() local
53 builder.put(Maps.immutableEntry("one", (Integer) null)); in testBuilder_withImmutableEntryAndNullContents()
58 builder.put(Maps.immutableEntry((String) null, 1)); in testBuilder_withImmutableEntryAndNullContents()
69 ImmutableListMultimap.Builder<String, Integer> builder = in testBuilder_withMutableEntry() local
82 builder.put(entry); in testBuilder_withMutableEntry()
84 assertEquals(Arrays.asList(1), builder.build().get("one")); in testBuilder_withMutableEntry()
88 ImmutableListMultimap.Builder<String, Integer> builder in testBuilderPutAllIterable() local
89 = ImmutableListMultimap.builder(); in testBuilderPutAllIterable()
90 builder.putAll("foo", Arrays.asList(1, 2, 3)); in testBuilderPutAllIterable()
91 builder.putAll("bar", Arrays.asList(4, 5)); in testBuilderPutAllIterable()
[all …]
DImmutableSetMultimapTest.java51 Builder<String, Integer> builder = new Builder<String, Integer>(); in testBuilder_withImmutableEntryAndNullContents() local
53 builder.put(Maps.immutableEntry("one", (Integer) null)); in testBuilder_withImmutableEntryAndNullContents()
58 builder.put(Maps.immutableEntry((String) null, 1)); in testBuilder_withImmutableEntryAndNullContents()
69 ImmutableSetMultimap.Builder<String, Integer> builder = in testBuilder_withMutableEntry() local
82 builder.put(entry); in testBuilder_withMutableEntry()
84 assertEquals(ImmutableSet.of(1), builder.build().get("one")); in testBuilder_withMutableEntry()
88 ImmutableSetMultimap.Builder<String, Integer> builder in testBuilderPutAllIterable() local
89 = ImmutableSetMultimap.builder(); in testBuilderPutAllIterable()
90 builder.putAll("foo", Arrays.asList(1, 2, 3)); in testBuilderPutAllIterable()
91 builder.putAll("bar", Arrays.asList(4, 5)); in testBuilderPutAllIterable()
[all …]
/external/protobuf/java/src/test/java/com/google/protobuf/
DGeneratedMessageTest.java72 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testAccessors() local
73 TestUtil.setAllFields(builder); in testAccessors()
74 TestAllTypes message = builder.build(); in testAccessors()
79 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testDoubleBuildError() local
80 builder.build(); in testDoubleBuildError()
82 builder.build(); in testDoubleBuildError()
90 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testClearAfterBuildError() local
91 builder.build(); in testClearAfterBuildError()
93 builder.clear(); in testClearAfterBuildError()
101 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testSettersRejectNull() local
[all …]
DMessageTest.java118 TestRequired.Builder builder = TestRequired.newBuilder(); in testRequired() local
120 assertFalse(builder.isInitialized()); in testRequired()
121 builder.setA(1); in testRequired()
122 assertFalse(builder.isInitialized()); in testRequired()
123 builder.setB(1); in testRequired()
124 assertFalse(builder.isInitialized()); in testRequired()
125 builder.setC(1); in testRequired()
126 assertTrue(builder.isInitialized()); in testRequired()
130 TestRequiredForeign.Builder builder = TestRequiredForeign.newBuilder(); in testRequiredForeign() local
132 assertTrue(builder.isInitialized()); in testRequiredForeign()
[all …]
DDynamicMessageTest.java57 Message.Builder builder = in testDynamicMessageAccessors() local
59 reflectionTester.setAllFieldsViaReflection(builder); in testDynamicMessageAccessors()
60 Message message = builder.build(); in testDynamicMessageAccessors()
65 Message.Builder builder = in testDoubleBuildError() local
67 builder.build(); in testDoubleBuildError()
69 builder.build(); in testDoubleBuildError()
77 Message.Builder builder = in testClearAfterBuildError() local
79 builder.build(); in testClearAfterBuildError()
81 builder.clear(); in testClearAfterBuildError()
89 Message.Builder builder = in testDynamicMessageSettersRejectNull() local
[all …]
DTextFormatTest.java283 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParse() local
284 TextFormat.merge(allFieldsSetText, builder); in testParse()
285 TestUtil.assertAllFieldsSet(builder.build()); in testParse()
289 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParseReader() local
290 TextFormat.merge(new StringReader(allFieldsSetText), builder); in testParseReader()
291 TestUtil.assertAllFieldsSet(builder.build()); in testParseReader()
295 TestAllExtensions.Builder builder = TestAllExtensions.newBuilder(); in testParseExtensions() local
298 builder); in testParseExtensions()
299 TestUtil.assertAllExtensionsSet(builder.build()); in testParseExtensions()
327 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParseCompatibility() local
[all …]
/external/v8/src/
Dconversions.cc74 SimpleStringBuilder builder(buffer.start(), buffer.length()); in DoubleToCString() local
85 if (sign) builder.AddCharacter('-'); in DoubleToCString()
89 builder.AddString(decimal_rep); in DoubleToCString()
90 builder.AddPadding('0', decimal_point - length); in DoubleToCString()
94 builder.AddSubstring(decimal_rep, decimal_point); in DoubleToCString()
95 builder.AddCharacter('.'); in DoubleToCString()
96 builder.AddString(decimal_rep + decimal_point); in DoubleToCString()
100 builder.AddString("0."); in DoubleToCString()
101 builder.AddPadding('0', -decimal_point); in DoubleToCString()
102 builder.AddString(decimal_rep); in DoubleToCString()
[all …]
Djson.js181 function BasicSerializeArray(value, stack, builder) { argument
184 builder.push("[]");
190 builder.push("[");
197 builder[builder.length - 1] = array_string;
201 builder.push(%QuoteJSONString(val));
205 builder.push(%QuoteJSONStringComma(val));
207 builder.push(",");
208 var before = builder.length;
209 BasicJSONSerialize(i, val, stack, builder);
210 if (before == builder.length) builder[before - 1] = ",null";
[all …]
/external/icu4c/common/
Drbbirb.cpp241 RBBIRuleBuilder builder(rules, parseError, status); in createRuleBasedBreakIterator() local
245 builder.fScanner->parse(); in createRuleBasedBreakIterator()
253 builder.fSetBuilder->build(); in createRuleBasedBreakIterator()
259 builder.fForwardTables = new RBBITableBuilder(&builder, &builder.fForwardTree); in createRuleBasedBreakIterator()
260 builder.fReverseTables = new RBBITableBuilder(&builder, &builder.fReverseTree); in createRuleBasedBreakIterator()
261 builder.fSafeFwdTables = new RBBITableBuilder(&builder, &builder.fSafeFwdTree); in createRuleBasedBreakIterator()
262 builder.fSafeRevTables = new RBBITableBuilder(&builder, &builder.fSafeRevTree); in createRuleBasedBreakIterator()
264 && (builder.fForwardTables == NULL || builder.fReverseTables == NULL || in createRuleBasedBreakIterator()
265 builder.fSafeFwdTables == NULL || builder.fSafeRevTables == NULL)) in createRuleBasedBreakIterator()
272 delete builder.fForwardTables; builder.fForwardTables = NULL; in createRuleBasedBreakIterator()
[all …]
/external/webkit/Source/WebCore/platform/graphics/gpu/
DShader.cpp138 StringBuilder builder; in generateVertex() local
141 builder.append( in generateVertex()
146 builder.append( in generateVertex()
151 builder.append( in generateVertex()
160 builder.append( in generateVertex()
165 builder.append( in generateVertex()
169 builder.append( in generateVertex()
172 builder.append( in generateVertex()
175 builder.append( in generateVertex()
181 builder.append( in generateVertex()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableListMultimap.java63 ImmutableListMultimap.Builder<K, V> builder in of() local
64 = ImmutableListMultimap.builder(); in of()
65 builder.put(k1, v1); in of()
66 return builder.build(); in of()
73 ImmutableListMultimap.Builder<K, V> builder in of() local
74 = ImmutableListMultimap.builder(); in of()
75 builder.put(k1, v1); in of()
76 builder.put(k2, v2); in of()
77 return builder.build(); in of()
85 ImmutableListMultimap.Builder<K, V> builder in of() local
[all …]
DImmutableSetMultimap.java68 ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder(); in of() local
69 builder.put(k1, v1); in of()
70 return builder.build(); in of()
79 ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder(); in of() local
80 builder.put(k1, v1); in of()
81 builder.put(k2, v2); in of()
82 return builder.build(); in of()
92 ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder(); in of() local
93 builder.put(k1, v1); in of()
94 builder.put(k2, v2); in of()
[all …]
/external/webkit/Tools/Scripts/webkitpy/common/net/buildbot/
Dbuildbot_unittest.py45 builder=self.builder,
53 self.builder._fetch_build = _mock_fetch_build
57 self.builder = Builder(u"Test Builder \u2661", self.buildbot)
61 regression_window = self.builder.find_regression_window(self.builder.build(10))
65 … regression_window = self.builder.find_regression_window(self.builder.build(10), look_back_limit=2)
70 self.builder._fetch_build = lambda build_number: None
71 regression_window = self.builder.find_regression_window(self.builder.build(10))
77 regression_window = self.builder.find_regression_window(self.builder.build(10))
83 regression_window = self.builder.find_regression_window(self.builder.build(10))
89 regression_window = self.builder.find_regression_window(self.builder.build(10))
[all …]
Dbuildbot.py214 def __init__(self, builder, build_number, revision, is_green): argument
215 self._builder = builder
222 def build_url(builder, build_number): argument
223 return "%s/builds/%s" % (builder.url(), build_number)
226 return self.build_url(self.builder(), self._number)
254 def builder(self): member in Build
297 def _parse_last_build_cell(self, builder, cell): argument
303 builder['built_revision'] = int(revision_string) \
310 builder['is_green'] = not re.search('fail', cell.renderContents()) or \
315 builder['build_number'] = int(link_match.group("build_number"))
[all …]
/external/guava/guava/src/com/google/common/collect/
DImmutableListMultimap.java68 ImmutableListMultimap.Builder<K, V> builder in of() local
69 = ImmutableListMultimap.builder(); in of()
70 builder.put(k1, v1); in of()
71 return builder.build(); in of()
78 ImmutableListMultimap.Builder<K, V> builder in of() local
79 = ImmutableListMultimap.builder(); in of()
80 builder.put(k1, v1); in of()
81 builder.put(k2, v2); in of()
82 return builder.build(); in of()
90 ImmutableListMultimap.Builder<K, V> builder in of() local
[all …]
DImmutableSetMultimap.java73 ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder(); in of() local
74 builder.put(k1, v1); in of()
75 return builder.build(); in of()
84 ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder(); in of() local
85 builder.put(k1, v1); in of()
86 builder.put(k2, v2); in of()
87 return builder.build(); in of()
97 ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder(); in of() local
98 builder.put(k1, v1); in of()
99 builder.put(k2, v2); in of()
[all …]
/external/llvm/examples/ExceptionDemo/
DExceptionDemo.cpp874 llvm::IRBuilder<> &builder, in generateStringPrint() argument
894 stringVar = builder.CreateAlloca(stringConstant->getType()); in generateStringPrint()
895 builder.CreateStore(stringConstant, stringVar); in generateStringPrint()
898 llvm::Value *cast = builder.CreatePointerCast(stringVar, in generateStringPrint()
899 builder.getInt8PtrTy()); in generateStringPrint()
900 builder.CreateCall(printFunct, cast); in generateStringPrint()
918 llvm::IRBuilder<> &builder, in generateIntegerPrint() argument
938 stringVar = builder.CreateAlloca(stringConstant->getType()); in generateIntegerPrint()
939 builder.CreateStore(stringConstant, stringVar); in generateIntegerPrint()
942 llvm::Value *cast = builder.CreateBitCast(stringVar, in generateIntegerPrint()
[all …]
/external/freetype/src/cff/
Dcffgload.c247 cff_builder_init( CFF_Builder* builder, in cff_builder_init() argument
253 builder->path_begun = 0; in cff_builder_init()
254 builder->load_points = 1; in cff_builder_init()
256 builder->face = face; in cff_builder_init()
257 builder->glyph = glyph; in cff_builder_init()
258 builder->memory = face->root.memory; in cff_builder_init()
265 builder->loader = loader; in cff_builder_init()
266 builder->base = &loader->base.outline; in cff_builder_init()
267 builder->current = &loader->current.outline; in cff_builder_init()
270 builder->hints_globals = 0; in cff_builder_init()
[all …]
/external/freetype/src/psaux/
Dt1decode.c196 FT_Outline* base = decoder->builder.base; in t1operator_seac()
201 T1_Face face = (T1_Face)decoder->builder.face; in t1operator_seac()
212 adx += decoder->builder.left_bearing.x; in t1operator_seac()
251 if ( decoder->builder.no_recurse ) in t1operator_seac()
253 FT_GlyphSlot glyph = (FT_GlyphSlot)decoder->builder.glyph; in t1operator_seac()
291 FT_GlyphLoader_Prepare( decoder->builder.loader ); /* prepare loader */ in t1operator_seac()
303 left_bearing = decoder->builder.left_bearing; in t1operator_seac()
304 advance = decoder->builder.advance; in t1operator_seac()
306 decoder->builder.left_bearing.x = 0; in t1operator_seac()
307 decoder->builder.left_bearing.y = 0; in t1operator_seac()
[all …]
/external/webkit/Tools/TestResultServer/handlers/
Dtestfilehandler.py56 builder = self.request.get(PARAM_BUILDER)
62 master, builder, test_type, name, key)
64 TestFile.delete_file(key, master, builder, test_type, name, 100)
68 % (master, builder, test_type, name))
74 def _get_file_list(self, master, builder, test_type, name): argument
84 master, builder, test_type, name, load_data=False, limit=100)
87 master, builder, test_type, name)
94 "builder": builder,
102 def _get_file_content(self, master, builder, test_type, name): argument
112 master, builder, test_type, name, load_data=True, limit=1)
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMapGenerators.java49 Builder<String, Integer> builder = ImmutableMap.builder(); in create() local
51 builder.put(key, 4); in create()
53 return builder.build().keySet(); in create()
67 Builder<Object, String> builder = ImmutableMap.builder(); in create() local
69 builder.put(key, String.valueOf(key)); in create()
71 return builder.build().values(); in create()
90 Builder<Integer, UnhashableObject> builder = ImmutableMap.builder(); in create() local
93 builder.put(key++, value); in create()
95 return builder.build().values(); in create()
108 Builder<String, String> builder = ImmutableMap.builder(); in createFromEntries() local
[all …]

12345678910>>...120