Home
last modified time | relevance | path

Searched refs:field2 (Results 1 – 25 of 77) sorted by relevance

1234

/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DInternalNano.java143 public static boolean equals(int[] field1, int[] field2) { in equals() argument
145 return field2 == null || field2.length == 0; in equals()
147 return Arrays.equals(field1, field2); in equals()
155 public static boolean equals(long[] field1, long[] field2) { in equals() argument
157 return field2 == null || field2.length == 0; in equals()
159 return Arrays.equals(field1, field2); in equals()
167 public static boolean equals(float[] field1, float[] field2) { in equals() argument
169 return field2 == null || field2.length == 0; in equals()
171 return Arrays.equals(field1, field2); in equals()
179 public static boolean equals(double[] field1, double[] field2) { in equals() argument
[all …]
/external/protobuf/src/google/protobuf/
Darenastring_unittest.cc70 ArenaStringPtr field2; in TEST() local
71 field2.UnsafeSetDefault(&default_value); in TEST()
72 ::std::string* mut = field2.Mutable(&default_value, NULL); in TEST()
73 EXPECT_EQ(mut, field2.Mutable(&default_value, NULL)); in TEST()
74 EXPECT_EQ(mut, &field2.Get(&default_value)); in TEST()
78 EXPECT_EQ(string("Test long long long long value"), field2.Get(&default_value)); in TEST()
79 field2.Destroy(&default_value, NULL); in TEST()
96 ArenaStringPtr field2; in TEST() local
97 field2.UnsafeSetDefault(&default_value); in TEST()
98 ::std::string* mut = field2.Mutable(&default_value, &arena); in TEST()
[all …]
Drepeated_field_unittest.cc125 RepeatedField<int> field2; in TEST() local
135 EXPECT_TRUE(field2.empty()); in TEST()
136 EXPECT_EQ(field2.size(), 0); in TEST()
138 field1.Swap(&field2); in TEST()
143 EXPECT_FALSE(field2.empty()); in TEST()
144 EXPECT_EQ(field2.size(), 2); in TEST()
145 EXPECT_EQ(field2.Get(0), 5); in TEST()
146 EXPECT_EQ(field2.Get(1), 42); in TEST()
151 RepeatedField<int> field2; in TEST() local
156 field2.Add(5); in TEST()
[all …]
/external/vogar/test/vogar/target/junit4/
DParameterizedTest.java31 private final int field2; field in ParameterizedTest
33 public ParameterizedTest(int field1, int field2) { in ParameterizedTest() argument
35 this.field2 = field2; in ParameterizedTest()
47 assertEquals(10, field2); in params()
/external/clang/test/Sema/
Darm-layout.c24 char field2; member
29 check(s2_offset_1, __builtin_offsetof(struct s2, field2) == 7);
33 check(s2_offset_1, __builtin_offsetof(struct s2, field2) == 5);
39 char field2; member
43 check(s3_offset_1, __builtin_offsetof(struct s3, field2) == 7);
/external/protobuf/src/google/protobuf/compiler/java/
Djava_context.cc62 const FieldDescriptor* field2, const string& name2, in IsConflicting() argument
65 if (field2->is_repeated()) { in IsConflicting()
72 "field \"" + field2->name() + "\" generates the method \"" + in IsConflicting()
78 "field \"" + field2->name() + "\" generates the method \"" + in IsConflicting()
90 if (field2->is_repeated()) { in IsConflicting()
91 return IsConflicting(field2, name2, field1, name1, info); in IsConflicting()
/external/clang/test/Rewriter/
Dobjc-modern-property-bitfield.m22 @property BOOL field2; property
28 @synthesize field2 = _field2;
36 f.field2 = 0x3;
37 f.field1 = f.field1 & f.field2;
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dtest_support.py26 def FieldsAreEqual(field1, field2): argument
27 if field1 == field2:
29 return field1.name == field2.name and \
30 KindsAreEqual(field1.kind, field2.kind) and \
31 field1.ordinal == field2.ordinal and \
32 field1.default == field2.default
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyFieldLiteTest.java148 LazyFieldLite field2 = createLazyFieldLiteFromMessage(message2); in testMergeBeforeParsing() local
150 field1.merge(field2); in testMergeBeforeParsing()
165 LazyFieldLite field2 = createLazyFieldLiteFromMessage(message2); in testMergeOneNotParsed() local
166 field1.merge(field2); in testMergeOneNotParsed()
171 field2 = createLazyFieldLiteFromMessage(message2); in testMergeOneNotParsed()
172 field2.getValue(TestAllTypes.getDefaultInstance()); // Force parsing. in testMergeOneNotParsed()
173 field1.merge(field2); in testMergeOneNotParsed()
/external/protobuf/objectivec/Tests/
DGPBUnknownFieldSetTest.m185 GPBUnknownField* field2 = [destination.unknownFields getField:123456];
186 XCTAssertEqual(field2.varintList.count, (NSUInteger)1);
187 XCTAssertEqual(654321ULL, [field2.varintList valueAtIndex:0]);
242 GPBUnknownField* field2 = [parsed getField:1];
243 XCTAssertEqual(field2.varintList.count, (NSUInteger)1);
244 XCTAssertEqual(0x7FFFFFFFFFFFFFFFULL, [field2.varintList valueAtIndex:0]);
254 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease];
255 [field2 mergeFromField:field1];
256 XCTAssertEqualObjects(field1, field2);
/external/protobuf/js/
Dmessage.js1144 jspb.Message.compareFields = function(field1, field2) { argument
1146 if (field1 == field2) return true;
1150 if (!goog.isObject(field1) || !goog.isObject(field2)) {
1156 field2 = /** @type {!Object} */(field2);
1157 if (field1.constructor != field2.constructor) return false;
1162 var bytes2 = /** @type {!Uint8Array} */(field2);
1176 var length = Math.max(field1.length, field2.length);
1179 var val2 = field2[i];
1190 goog.asserts.assert(i === field2.length - 1);
1212 return jspb.Message.compareExtensions(field1, field2);
/external/clang/test/CodeGenObjC/
Dbitfield-1.m19 int field2: 3; field
45 field2 = 1;
62 CHECK_IF(field2 == 1);
/external/grpc-grpc/third_party/nanopb/examples/using_double_on_avr/
Ddoubleproto.proto6 required double field2 = 2; field
13 required fixed64 field2 = 2; field
/external/nanopb-c/examples/using_double_on_avr/
Ddoubleproto.proto6 required double field2 = 2; field
13 required fixed64 field2 = 2; field
/external/llvm/test/Assembler/
Ddicompositetype-members.ll18 ; CHECK-NEXT: !5 = !DIDerivedType(tag: DW_TAG_member, name: "field2", scope: !3, file: !1
23 !5 = !DIDerivedType(tag: DW_TAG_member, name: "field2", scope: !3, file: !1, line: 4, baseType: !0,…
30 ; CHECK-NEXT: !10 = !DIDerivedType(tag: DW_TAG_member, name: "field2", scope: !8, file: !1
35 !10 = !DIDerivedType(tag: DW_TAG_member, name: "field2", scope: !8, file: !1, line: 4, baseType: !0…
/external/swiftshader/third_party/llvm-7.0/llvm/test/Assembler/
Ddicompositetype-members.ll18 ; CHECK-NEXT: !5 = !DIDerivedType(tag: DW_TAG_member, name: "field2", scope: !3, file: !1
23 !5 = !DIDerivedType(tag: DW_TAG_member, name: "field2", scope: !3, file: !1, line: 4, baseType: !0,…
30 ; CHECK-NEXT: !10 = !DIDerivedType(tag: DW_TAG_member, name: "field2", scope: !8, file: !1
35 !10 = !DIDerivedType(tag: DW_TAG_member, name: "field2", scope: !8, file: !1, line: 4, baseType: !0…
/external/tensorflow/tensorflow/compiler/xla/tests/
Dlocal_client_aot_test.cc30 int field2 : 14; member
39 *out = opaque_data->field1 + opaque_data->field2 + opaque_data->field3; in SumStructElements()
/external/clang/test/ASTMerge/Inputs/
Dstruct2.c4 float field2; member
12 float field2; member
Dstruct1.c7 Float field2; member
15 int field2; member
/external/protobuf/benchmarks/
Dgoogle_size.proto14 required int32 field2 = 2; field
54 optional int32 field2 = 2 [default=0]; field
82 optional bytes field2 = 2; field
128 optional float field2 = 2; field
Dbenchmark_messages_proto2.proto17 required int32 field2 = 2; field
57 optional int32 field2 = 2 [default=0]; field
85 optional bytes field2 = 2; field
131 optional float field2 = 2; field
Dbenchmark_messages_proto3.proto17 int32 field2 = 2; field
57 int32 field2 = 2; field
/external/protobuf/src/google/protobuf/compiler/
Dparser_unittest.cc2371 const FieldDescriptorProto& field2 = file_.message_type(0).field(1); in TEST_F() local
2379 EXPECT_TRUE(HasSpan('j', 'r', field2)); in TEST_F()
2380 EXPECT_TRUE(HasSpan('j', 'k', field2, "label")); in TEST_F()
2381 EXPECT_TRUE(HasSpan('l', 'm', field2, "type_name")); in TEST_F()
2382 EXPECT_TRUE(HasSpan('n', 'o', field2, "name")); in TEST_F()
2383 EXPECT_TRUE(HasSpan('p', 'q', field2, "number")); in TEST_F()
2402 const FieldDescriptorProto& field2 = file_.extension(1); in TEST_F() local
2412 EXPECT_TRUE(HasSpan('g', 'i', field2)); in TEST_F()
2413 EXPECT_TRUE(HasSpan('g', 'h', field2, "label")); in TEST_F()
2414 EXPECT_TRUE(HasSpan('b', 'c', field2, "extendee")); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc376 const FieldDescriptor* field2) { in FieldBefore() argument
383 if (field2 == NULL) { in FieldBefore()
388 return (field1->number() < field2->number()); in FieldBefore()
565 const FieldDescriptor* field2 = fields2[index2]; in CombineFields() local
567 if (FieldBefore(field1, field2)) { in CombineFields()
572 } else if (FieldBefore(field2, field1)) { in CombineFields()
600 const FieldDescriptor* field2 = message2_fields[field_index2]; in CompareWithFieldsInternal() local
603 if (field1 == NULL && field2 == NULL) { in CompareWithFieldsInternal()
608 if (FieldBefore(field1, field2)) { in CompareWithFieldsInternal()
646 } else if (FieldBefore(field2, field1)) { in CompareWithFieldsInternal()
[all …]
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerIntegrationTest.java199 JsonObject field2 = fields2.get(0).getAsJsonObject(); in exportToJaeger() local
200 assertThat(field2.get("key").getAsString()).isEqualTo("description"); in exportToJaeger()
201 assertThat(field2.get("type").getAsString()).isEqualTo("string"); in exportToJaeger()
202 assertThat(field2.get("value").getAsString()).isEqualTo(FINISHED_PROCESSING_VIDEO); in exportToJaeger()

1234