/external/tensorflow/tensorflow/lite/tools/ |
D | test_utils.py | 32 builder = flatbuffers.Builder(1024) 34 schema_fb.BufferStart(builder) 35 buffer0_offset = schema_fb.BufferEnd(builder) 37 schema_fb.BufferStartDataVector(builder, 10) 38 builder.PrependUint8(9) 39 builder.PrependUint8(8) 40 builder.PrependUint8(7) 41 builder.PrependUint8(6) 42 builder.PrependUint8(5) 43 builder.PrependUint8(4) [all …]
|
D | verifier_test.cc | 161 flatbuffers::FlatBufferBuilder builder; in TEST() local 162 auto model = CreateModel(builder, /*version=*/TFLITE_SCHEMA_VERSION, in TEST() 165 ::tflite::FinishModelBuffer(builder, model); in TEST() 168 ASSERT_FALSE(Verify(builder.GetBufferPointer(), builder.GetSize(), in TEST() 175 TfLiteFlatbufferModelBuilder builder({}, {"test"}); in TEST() local 176 builder.AddOperator({0, 1}, {3}, BuiltinOperator_CUSTOM, "test"); in TEST() 177 builder.AddTensor({2, 3}, TensorType_UINT8, {1, 2, 3, 4, 5, 6}, "input"); in TEST() 178 builder.AddTensor({}, TensorType_UINT8, {}, "empty_vector"); in TEST() 179 builder.AddTensor( in TEST() 183 builder.AddTensor({2, 3}, TensorType_INT32, {}, "output"); in TEST() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | Proto2MessageFactory.java | 78 Proto2Message.Builder builder = Proto2Message.newBuilder(); in newMessage() local 79 builder.setFieldDouble1(data.getDouble()); in newMessage() 80 builder.setFieldFloat2(data.getFloat()); in newMessage() 81 builder.setFieldInt643(data.getLong()); in newMessage() 82 builder.setFieldUint644(data.getLong()); in newMessage() 83 builder.setFieldInt325(data.getInt()); in newMessage() 84 builder.setFieldFixed646(data.getLong()); in newMessage() 85 builder.setFieldFixed327(data.getInt()); in newMessage() 86 builder.setFieldBool8(data.getBool()); in newMessage() 87 builder.setFieldString9(data.getString()); in newMessage() [all …]
|
D | Proto2MessageLiteFactory.java | 80 Proto2MessageLite.Builder builder = Proto2MessageLite.newBuilder(); in newMessage() local 81 builder.setFieldDouble1(data.getDouble()); in newMessage() 82 builder.setFieldFloat2(data.getFloat()); in newMessage() 83 builder.setFieldInt643(data.getLong()); in newMessage() 84 builder.setFieldUint644(data.getLong()); in newMessage() 85 builder.setFieldInt325(data.getInt()); in newMessage() 86 builder.setFieldFixed646(data.getLong()); in newMessage() 87 builder.setFieldFixed327(data.getInt()); in newMessage() 88 builder.setFieldBool8(data.getBool()); in newMessage() 89 builder.setFieldString9(data.getString()); in newMessage() [all …]
|
D | Proto3MessageLiteFactory.java | 78 Proto3MessageLite.Builder builder = Proto3MessageLite.newBuilder(); in newMessage() local 79 builder.setFieldDouble1(data.getDouble()); in newMessage() 80 builder.setFieldFloat2(data.getFloat()); in newMessage() 81 builder.setFieldInt643(data.getLong()); in newMessage() 82 builder.setFieldUint644(data.getLong()); in newMessage() 83 builder.setFieldInt325(data.getInt()); in newMessage() 84 builder.setFieldFixed646(data.getLong()); in newMessage() 85 builder.setFieldFixed327(data.getInt()); in newMessage() 86 builder.setFieldBool8(data.getBool()); in newMessage() 87 builder.setFieldString9(data.getString()); in newMessage() [all …]
|
D | Proto3MessageFactory.java | 76 Proto3Message.Builder builder = Proto3Message.newBuilder(); in newMessage() local 77 builder.setFieldDouble1(data.getDouble()); in newMessage() 78 builder.setFieldFloat2(data.getFloat()); in newMessage() 79 builder.setFieldInt643(data.getLong()); in newMessage() 80 builder.setFieldUint644(data.getLong()); in newMessage() 81 builder.setFieldInt325(data.getInt()); in newMessage() 82 builder.setFieldFixed646(data.getLong()); in newMessage() 83 builder.setFieldFixed327(data.getInt()); in newMessage() 84 builder.setFieldBool8(data.getBool()); in newMessage() 85 builder.setFieldString9(data.getString()); in newMessage() [all …]
|
D | Proto3MessageInfoFactory.java | 79 StructuralMessageInfo.Builder builder = StructuralMessageInfo.newBuilder(48); in newMessageInfoForProto3Message() local 80 lookupFieldsByName(builder); in newMessageInfoForProto3Message() 81 return builder.build(); in newMessageInfoForProto3Message() 84 private static void lookupFieldsByName(StructuralMessageInfo.Builder builder) { in lookupFieldsByName() argument 85 builder.withDefaultInstance(Proto3Message.getDefaultInstance()); in lookupFieldsByName() 86 builder.withSyntax(ProtoSyntax.PROTO3); in lookupFieldsByName() 87 builder.withField(forField(field("fieldDouble1_"), 1, FieldType.DOUBLE, true)); in lookupFieldsByName() 88 builder.withField(forField(field("fieldFloat2_"), 2, FieldType.FLOAT, true)); in lookupFieldsByName() 89 builder.withField(forField(field("fieldInt643_"), 3, FieldType.INT64, true)); in lookupFieldsByName() 90 builder.withField(forField(field("fieldUint644_"), 4, FieldType.UINT64, true)); in lookupFieldsByName() [all …]
|
D | Proto2MessageInfoFactory.java | 105 StructuralMessageInfo.Builder builder = StructuralMessageInfo.newBuilder(50); in newMessageInfoForProto2Message() local 106 builder.withCheckInitialized( in newMessageInfoForProto2Message() 110 lookupFieldsByName(builder); in newMessageInfoForProto2Message() 111 return builder.build(); in newMessageInfoForProto2Message() 114 private static void lookupFieldsByName(StructuralMessageInfo.Builder builder) { in lookupFieldsByName() argument 117 builder.withDefaultInstance(Proto2Message.getDefaultInstance()); in lookupFieldsByName() 118 builder.withSyntax(ProtoSyntax.PROTO2); in lookupFieldsByName() 119 builder.withField( in lookupFieldsByName() 122 builder.withField( in lookupFieldsByName() 125 builder.withField( in lookupFieldsByName() [all …]
|
D | Proto3MessageLiteInfoFactory.java | 170 StructuralMessageInfo.Builder builder = StructuralMessageInfo.newBuilder(48); in newMessageInfoForProto3MessageLite() local 171 lookupFieldsByName(builder); in newMessageInfoForProto3MessageLite() 172 return builder.build(); in newMessageInfoForProto3MessageLite() 175 private static void lookupFieldsByName(StructuralMessageInfo.Builder builder) { in lookupFieldsByName() argument 176 builder.withDefaultInstance(Proto3MessageLite.getDefaultInstance()); in lookupFieldsByName() 177 builder.withSyntax(ProtoSyntax.PROTO3); in lookupFieldsByName() 178 builder.withField( in lookupFieldsByName() 180 builder.withField( in lookupFieldsByName() 182 builder.withField( in lookupFieldsByName() 184 builder.withField( in lookupFieldsByName() [all …]
|
D | GeneratedMessageTest.java | 92 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMessageOrBuilder() local 93 TestUtil.setAllFields(builder); in testMessageOrBuilder() 94 TestAllTypes message = builder.build(); in testMessageOrBuilder() 99 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUsingBuilderMultipleTimes() local 101 builder.setOptionalSfixed64(100); in testUsingBuilderMultipleTimes() 102 builder.addRepeatedInt32(100); in testUsingBuilderMultipleTimes() 104 builder.setOptionalImportEnum(UnittestImport.ImportEnum.IMPORT_BAR); in testUsingBuilderMultipleTimes() 105 builder.addRepeatedImportEnum(UnittestImport.ImportEnum.IMPORT_BAR); in testUsingBuilderMultipleTimes() 107 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes() 108 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | AbstractManagedChannelImplBuilderTest.java | 70 private Builder builder = new Builder("fake"); field in AbstractManagedChannelImplBuilderTest 71 private Builder directAddressBuilder = new Builder(new SocketAddress(){}, "fake"); 75 assertNotNull(builder.executorPool); in executor_default() 81 assertEquals(builder, builder.executor(executor)); in executor_normal() 82 assertEquals(executor, builder.executorPool.getObject()); in executor_normal() 87 ObjectPool<? extends Executor> defaultValue = builder.executorPool; in executor_null() 88 builder.executor(mock(Executor.class)); in executor_null() 89 assertEquals(builder, builder.executor(null)); in executor_null() 90 assertEquals(defaultValue, builder.executorPool); in executor_null() 95 assertEquals(builder, builder.directExecutor()); in directExecutor() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | ImmutableTableTest.java | 34 ImmutableTable.Builder<String, Integer, Character> builder = ImmutableTable.builder(); in create() local 36 builder.put((String) data[i], (Integer) data[i + 1], (Character) data[i + 2]); in create() 38 return builder.build(); in create() 42 ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>(); in testBuilder() local 43 assertEquals(ImmutableTable.of(), builder.build()); in testBuilder() 44 assertEquals(ImmutableTable.of('a', 1, "foo"), builder.put('a', 1, "foo").build()); in testBuilder() 52 assertEquals(expectedTable, builder.putAll(otherTable).build()); in testBuilder() 56 ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>(); in testBuilder_withImmutableCell() local 58 ImmutableTable.of('a', 1, "foo"), builder.put(Tables.immutableCell('a', 1, "foo")).build()); in testBuilder_withImmutableCell() 62 ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>(); in testBuilder_withImmutableCellAndNullContents() local [all …]
|
/external/protobuf/java/lite/src/test/java/com/google/protobuf/ |
D | Proto2MessageLiteInfoFactory.java | 228 StructuralMessageInfo.Builder builder = StructuralMessageInfo.newBuilder(48); in newMessageInfoForProto2MessageLite() local 229 builder.withCheckInitialized( in newMessageInfoForProto2MessageLite() 233 lookupFieldsByName(builder); in newMessageInfoForProto2MessageLite() 234 return builder.build(); in newMessageInfoForProto2MessageLite() 237 private static void lookupFieldsByName(StructuralMessageInfo.Builder builder) { in lookupFieldsByName() argument 240 builder.withDefaultInstance(Proto2MessageLite.getDefaultInstance()); in lookupFieldsByName() 241 builder.withSyntax(ProtoSyntax.PROTO2); in lookupFieldsByName() 242 builder.withField( in lookupFieldsByName() 251 builder.withField( in lookupFieldsByName() 260 builder.withField( in lookupFieldsByName() [all …]
|
D | LiteTest.java | 159 TestAllTypesLite.Builder expected = TestAllTypesLite.newBuilder().setOptionalInt32(123); in testClone() 162 TestAllExtensionsLite.Builder expected2 = in testClone() 206 // instance, we attempt to verify that we can't cause the builder to modify in testSanityCopyOnWrite() 209 TestAllTypesLite.Builder builder = TestAllTypesLite.newBuilder(); in testSanityCopyOnWrite() local 210 TestAllTypesLite message = builder.build(); in testSanityCopyOnWrite() 212 builder.setOptionalBool(true); in testSanityCopyOnWrite() 214 assertEquals(true, builder.getOptionalBool()); in testSanityCopyOnWrite() 215 messageAfterBuild = builder.build(); in testSanityCopyOnWrite() 218 builder.clearOptionalBool(); in testSanityCopyOnWrite() 219 assertEquals(false, builder.getOptionalBool()); in testSanityCopyOnWrite() [all …]
|
/external/llvm/lib/DebugInfo/CodeView/ |
D | TypeTableBuilder.cpp | 25 TypeRecordBuilder Builder(Record.getKind()); in writeModifier() local 27 Builder.writeTypeIndex(Record.getModifiedType()); in writeModifier() 28 Builder.writeUInt16(static_cast<uint16_t>(Record.getModifiers())); in writeModifier() 30 return writeRecord(Builder); in writeModifier() 34 TypeRecordBuilder Builder(Record.getKind()); in writeProcedure() local 36 Builder.writeTypeIndex(Record.getReturnType()); in writeProcedure() 37 Builder.writeUInt8(static_cast<uint8_t>(Record.getCallConv())); in writeProcedure() 38 Builder.writeUInt8(static_cast<uint8_t>(Record.getOptions())); in writeProcedure() 39 Builder.writeUInt16(Record.getParameterCount()); in writeProcedure() 40 Builder.writeTypeIndex(Record.getArgumentList()); in writeProcedure() [all …]
|
/external/flatbuffers/tests/ |
D | monster_test_generated.ts | 107 * @param flatbuffers.Builder builder 109 static startInParentNamespace(builder:flatbuffers.Builder) { 110 builder.startObject(0); 114 * @param flatbuffers.Builder builder 117 static endInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset { 118 var offset = builder.endObject(); 122 static createInParentNamespace(builder:flatbuffers.Builder):flatbuffers.Offset { 123 InParentNamespace.startInParentNamespace(builder); 124 return InParentNamespace.endInParentNamespace(builder); 167 * @param flatbuffers.Builder builder [all …]
|
/external/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 42 static void DefineBuiltinMacro(MacroBuilder &Builder, StringRef Macro, in DefineBuiltinMacro() argument 58 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro() 60 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro() 63 Builder.defineMacro(Macro); in DefineBuiltinMacro() 71 static void AddImplicitInclude(MacroBuilder &Builder, StringRef File) { in AddImplicitInclude() argument 72 Builder.append(Twine("#include \"") + File + "\""); in AddImplicitInclude() 75 static void AddImplicitIncludeMacros(MacroBuilder &Builder, StringRef File) { in AddImplicitIncludeMacros() argument 76 Builder.append(Twine("#__include_macros \"") + File + "\""); in AddImplicitIncludeMacros() 78 Builder.append("##"); // ##? in AddImplicitIncludeMacros() 83 static void AddImplicitIncludePTH(MacroBuilder &Builder, Preprocessor &PP, in AddImplicitIncludePTH() argument [all …]
|
/external/llvm-project/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 39 static void DefineBuiltinMacro(MacroBuilder &Builder, StringRef Macro, in DefineBuiltinMacro() argument 55 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro() 57 Builder.defineMacro(MacroName, MacroBody); in DefineBuiltinMacro() 60 Builder.defineMacro(Macro); in DefineBuiltinMacro() 68 static void AddImplicitInclude(MacroBuilder &Builder, StringRef File) { in AddImplicitInclude() argument 69 Builder.append(Twine("#include \"") + File + "\""); in AddImplicitInclude() 72 static void AddImplicitIncludeMacros(MacroBuilder &Builder, StringRef File) { in AddImplicitIncludeMacros() argument 73 Builder.append(Twine("#__include_macros \"") + File + "\""); in AddImplicitIncludeMacros() 75 Builder.append("##"); // ##? in AddImplicitIncludeMacros() 80 static void AddImplicitIncludePCH(MacroBuilder &Builder, Preprocessor &PP, in AddImplicitIncludePCH() argument [all …]
|
/external/flatbuffers/tests/MyGame/Example/ |
D | Monster.php | 687 * @param FlatBufferBuilder $builder 690 public static function startMonster(FlatBufferBuilder $builder) argument 692 $builder->StartObject(49); 696 * @param FlatBufferBuilder $builder 699 …public static function createMonster(FlatBufferBuilder $builder, $pos, $mana, $hp, $name, $invento… argument 701 $builder->startObject(49); 702 self::addPos($builder, $pos); 703 self::addMana($builder, $mana); 704 self::addHp($builder, $hp); 705 self::addName($builder, $name); [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ImmutableTableTest.java | 40 ImmutableTable.Builder<String, Integer, Character> builder = ImmutableTable.builder(); in create() local 42 builder.put((String) data[i], (Integer) data[i + 1], (Character) data[i + 2]); in create() 44 return builder.build(); in create() 56 new ImmutableTable.Builder<String, String, Integer>() in testToImmutableTable() 127 new ImmutableTable.Builder<String, String, Integer>() in testToImmutableTableMerging() 197 ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>(); in testBuilder() local 198 assertEquals(ImmutableTable.of(), builder.build()); in testBuilder() 199 assertEquals(ImmutableTable.of('a', 1, "foo"), builder.put('a', 1, "foo").build()); in testBuilder() 207 assertEquals(expectedTable, builder.putAll(otherTable).build()); in testBuilder() 211 ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>(); in testBuilder_withImmutableCell() local [all …]
|
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | GeneratedMessageTest.java | 88 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMessageOrBuilder() local 89 TestUtil.setAllFields(builder); in testMessageOrBuilder() 90 TestAllTypes message = builder.build(); in testMessageOrBuilder() 95 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUsingBuilderMultipleTimes() local 97 builder.setOptionalSfixed64(100); in testUsingBuilderMultipleTimes() 98 builder.addRepeatedInt32(100); in testUsingBuilderMultipleTimes() 100 builder.setOptionalImportEnum(UnittestImport.ImportEnum.IMPORT_BAR); in testUsingBuilderMultipleTimes() 101 builder.addRepeatedImportEnum(UnittestImport.ImportEnum.IMPORT_BAR); in testUsingBuilderMultipleTimes() 103 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes() 104 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes() [all …]
|
/external/auto/value/userguide/ |
D | builders-howto.md | 1 # How do I... (Builder edition) 5 **with the builder option**. You should read and understand [AutoValue with 8 If you are not using a builder, see [Introduction](index.md) and 17 `builder()`/`Builder`/`build()`?](#build_names) 19 * ... [initialize a builder to the same property values as an **existing** 25 * ... [expose **both** a builder and a factory method?](#both) 28 * ... [let my builder **accumulate** values for a collection-valued 45 your builder methods, but omit the `get`/`is` prefixes from all your accessors. 55 static Builder builder() { 56 return new AutoValue_Animal.Builder(); [all …]
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | while_test.cc | 57 XlaBuilder builder("condition"); in XLA_TEST_F() local 58 auto prev = Parameter(&builder, 0, result_shape, "prev"); in XLA_TEST_F() 59 Gt(ConstantR0<int32>(&builder, 5), prev); in XLA_TEST_F() 60 condition = builder.Build().ConsumeValueOrDie(); in XLA_TEST_F() 66 XlaBuilder builder("body"); in XLA_TEST_F() local 67 auto prev = Parameter(&builder, 0, result_shape, "prev"); in XLA_TEST_F() 68 auto input = ConstantR0<int32>(&builder, 1); in XLA_TEST_F() 70 body = builder.Build().ConsumeValueOrDie(); in XLA_TEST_F() 74 XlaBuilder builder(TestName()); in XLA_TEST_F() local 75 auto init = ConstantR0<int32>(&builder, 0); in XLA_TEST_F() [all …]
|
/external/flatbuffers/tests/FlatBuffers.Test/ |
D | FlatBuffersFuzzTests.cs | 35 var builder = new FlatBufferBuilder(1); in TestNumbers() 36 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.ToFullArray()); in TestNumbers() 37 builder.AddBool(true); in TestNumbers() 38 Assert.ArrayEqual(new byte[] { 1 }, builder.DataBuffer.ToFullArray()); in TestNumbers() 39 builder.AddSbyte(-127); in TestNumbers() 40 Assert.ArrayEqual(new byte[] { 129, 1 }, builder.DataBuffer.ToFullArray()); in TestNumbers() 41 builder.AddByte(255); in TestNumbers() 42 … Assert.ArrayEqual(new byte[] { 0, 255, 129, 1 }, builder.DataBuffer.ToFullArray()); // First pad in TestNumbers() 43 builder.AddShort(-32222); in TestNumbers() 44 …Assert.ArrayEqual(new byte[] { 0, 0, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.ToFullArray(… in TestNumbers() [all …]
|
/external/flatbuffers/tests/union_vector/ |
D | union_vector_generated.ts | 77 * @param flatbuffers.Builder builder 79 static startAttacker(builder:flatbuffers.Builder) { 80 builder.startObject(1); 84 * @param flatbuffers.Builder builder 87 static addSwordAttackDamage(builder:flatbuffers.Builder, swordAttackDamage:number) { 88 builder.addFieldInt32(0, swordAttackDamage, 0); 92 * @param flatbuffers.Builder builder 95 static endAttacker(builder:flatbuffers.Builder):flatbuffers.Offset { 96 var offset = builder.endObject(); 100 static createAttacker(builder:flatbuffers.Builder, swordAttackDamage:number):flatbuffers.Offset { [all …]
|