/external/protobuf/src/google/protobuf/ |
D | test_util_lite.cc | 49 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields() argument 50 message->set_optional_int32 (101); in SetAllFields() 51 message->set_optional_int64 (102); in SetAllFields() 52 message->set_optional_uint32 (103); in SetAllFields() 53 message->set_optional_uint64 (104); in SetAllFields() 54 message->set_optional_sint32 (105); in SetAllFields() 55 message->set_optional_sint64 (106); in SetAllFields() 56 message->set_optional_fixed32 (107); in SetAllFields() 57 message->set_optional_fixed64 (108); in SetAllFields() 58 message->set_optional_sfixed32(109); in SetAllFields() [all …]
|
D | map_test_util_impl.h | 56 static void SetMapFields(MapMessage* message); 61 static void SetArenaMapFields(MapMessage* message); 65 static void SetMapFieldsInitialized(MapMessage* message); 70 static void ModifyMapFields(MapMessage* message); 76 static void ExpectMapFieldsSet(const MapMessage& message); 82 static void ExpectArenaMapFieldsSet(const MapMessage& message); 87 static void ExpectMapFieldsSetInitialized(const MapMessage& message); 93 static void ExpectMapFieldsModified(const MapMessage& message); 97 static void ExpectClear(const MapMessage& message); 114 void MapTestUtilImpl::SetMapFields(MapMessage* message) { in SetMapFields() argument [all …]
|
D | test_util.cc | 53 void TestUtil::SetAllFields(unittest::TestAllTypes* message) { in SetAllFields() argument 54 SetOptionalFields(message); in SetAllFields() 55 AddRepeatedFields1(message); in SetAllFields() 56 AddRepeatedFields2(message); in SetAllFields() 57 SetDefaultFields(message); in SetAllFields() 58 SetOneofFields(message); in SetAllFields() 61 void TestUtil::SetOptionalFields(unittest::TestAllTypes* message) { in SetOptionalFields() argument 62 message->set_optional_int32 (101); in SetOptionalFields() 63 message->set_optional_int64 (102); in SetOptionalFields() 64 message->set_optional_uint32 (103); in SetOptionalFields() [all …]
|
D | reflection_ops_unittest.cc | 52 unittest::TestAllTypes message; in TEST() local 54 TestUtil::SetAllFields(&message); in TEST() 55 TestUtil::ExpectAllFieldsSet(message); in TEST() 59 unittest::TestAllTypes message, message2; in TEST() local 61 TestUtil::SetAllFields(&message); in TEST() 63 ReflectionOps::Copy(message, &message2); in TEST() 73 unittest::TestAllExtensions message, message2; in TEST() local 75 TestUtil::SetAllExtensions(&message); in TEST() 77 ReflectionOps::Copy(message, &message2); in TEST() 83 unittest::TestOneof2 message, message2; in TEST() local [all …]
|
D | test_util.h | 52 static void SetAllFields(unittest::TestAllTypes* message); 53 static void SetOptionalFields(unittest::TestAllTypes* message); 54 static void AddRepeatedFields1(unittest::TestAllTypes* message); 55 static void AddRepeatedFields2(unittest::TestAllTypes* message); 56 static void SetDefaultFields(unittest::TestAllTypes* message); 57 static void SetOneofFields(unittest::TestAllTypes* message); 58 static void SetAllExtensions(unittest::TestAllExtensions* message); 59 static void SetOneofFields(unittest::TestAllExtensions* message); 60 static void SetAllFieldsAndExtensions(unittest::TestFieldOrderings* message); 61 static void SetPackedFields(unittest::TestPackedTypes* message); [all …]
|
D | map_test_util.cc | 39 void MapTestUtil::SetMapFields(unittest::TestMap* message) { in SetMapFields() argument 41 unittest::MAP_ENUM_BAZ>(message); in SetMapFields() 44 void MapTestUtil::SetArenaMapFields(unittest::TestArenaMap* message) { in SetArenaMapFields() argument 46 unittest::MAP_ENUM_BAZ>(message); in SetArenaMapFields() 49 void MapTestUtil::SetMapFieldsInitialized(unittest::TestMap* message) { in SetMapFieldsInitialized() argument 50 MapTestUtilImpl::SetMapFieldsInitialized(message); in SetMapFieldsInitialized() 53 void MapTestUtil::ModifyMapFields(unittest::TestMap* message) { in ModifyMapFields() argument 55 message); in ModifyMapFields() 58 void MapTestUtil::ExpectClear(const unittest::TestMap& message) { in ExpectClear() argument 59 MapTestUtilImpl::ExpectClear(message); in ExpectClear() [all …]
|
D | no_field_presence_test.cc | 236 proto2_nofieldpresence_unittest::TestAllTypes message; in TEST() local 240 CheckDefaultValues(message); in TEST() 241 FillValues(&message); in TEST() 242 CheckNonDefaultValues(message); in TEST() 245 message.Clear(); in TEST() 246 CheckDefaultValues(message); in TEST() 251 proto2_nofieldpresence_unittest::TestAllTypes message; in TEST() local 252 EXPECT_EQ(false, message.has_optional_nested_message()); in TEST() 255 EXPECT_EQ(0, message.optional_nested_message().bb()); in TEST() 256 EXPECT_EQ(false, message.has_optional_nested_message()); in TEST() [all …]
|
D | preserve_unknown_enum_test.cc | 43 proto3_preserve_unknown_enum_unittest::MyMessagePlusExtra* message) { in FillMessage() argument 44 message->set_e( in FillMessage() 46 message->add_repeated_e( in FillMessage() 48 message->add_repeated_packed_e( in FillMessage() 50 message->add_repeated_packed_unexpected_e( in FillMessage() 52 message->set_oneof_e_1( in FillMessage() 57 const proto3_preserve_unknown_enum_unittest::MyMessagePlusExtra& message) { in CheckMessage() argument 59 message.e()); in CheckMessage() 60 EXPECT_EQ(1, message.repeated_e_size()); in CheckMessage() 62 message.repeated_e(0)); in CheckMessage() [all …]
|
D | text_format_unittest.cc | 243 unittest::TestEmptyMessage message; in TEST_F() local 244 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F() 267 message.DebugString()); in TEST_F() 273 unittest::OneString message; in TEST_F() local 274 message.set_data("data"); in TEST_F() 275 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F() 290 printer.PrintToString(message, &output); in TEST_F() 298 protobuf_unittest::TestAllTypes message; in TEST_F() local 305 message.add_repeated_string("abc"); in TEST_F() 310 message.add_repeated_string("def"); in TEST_F() [all …]
|
D | generated_message_reflection.h | 214 const UnknownFieldSet& GetUnknownFields(const Message& message) const; 215 UnknownFieldSet* MutableUnknownFields(Message* message) const; 217 int SpaceUsed(const Message& message) const; 219 bool HasField(const Message& message, const FieldDescriptor* field) const; 220 int FieldSize(const Message& message, const FieldDescriptor* field) const; 221 void ClearField(Message* message, const FieldDescriptor* field) const; 222 bool HasOneof(const Message& message, 224 void ClearOneof(Message* message, const OneofDescriptor* field) const; 225 void RemoveLast(Message* message, const FieldDescriptor* field) const; 226 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const; [all …]
|
D | extension_set_unittest.cc | 65 unittest::TestAllExtensions message; in TEST() local 67 TestUtil::ExpectExtensionsClear(message); in TEST() 73 &message.GetExtension(unittest::optionalgroup_extension)); in TEST() 75 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST() 77 &message.GetExtension( in TEST() 80 &message.GetExtension(unittest::optional_import_message_extension)); in TEST() 86 unittest::TestAllExtensions message; in TEST() local 88 TestUtil::SetAllExtensions(&message); in TEST() 89 TestUtil::ExpectAllExtensionsSet(message); in TEST() 91 TestUtil::ModifyRepeatedExtensions(&message); in TEST() [all …]
|
D | generated_message_reflection_unittest.cc | 75 unittest::TestAllTypes message; in TEST() local 79 reflection_tester.ExpectClearViaReflection(message); in TEST() 81 const Reflection* reflection = message.GetReflection(); in TEST() 87 &reflection->GetMessage(message, F("optionalgroup"))); in TEST() 89 &reflection->GetMessage(message, F("optional_nested_message"))); in TEST() 91 &reflection->GetMessage(message, F("optional_foreign_message"))); in TEST() 93 &reflection->GetMessage(message, F("optional_import_message"))); in TEST() 99 unittest::TestAllTypes message; in TEST() local 103 reflection_tester.SetAllFieldsViaReflection(&message); in TEST() 104 TestUtil::ExpectAllFieldsSet(message); in TEST() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | TestUtil.java | 314 public static void setAllFields(TestAllTypes.Builder message) { in setAllFields() argument 315 message.setOptionalInt32 (101); in setAllFields() 316 message.setOptionalInt64 (102); in setAllFields() 317 message.setOptionalUint32 (103); in setAllFields() 318 message.setOptionalUint64 (104); in setAllFields() 319 message.setOptionalSint32 (105); in setAllFields() 320 message.setOptionalSint64 (106); in setAllFields() 321 message.setOptionalFixed32 (107); in setAllFields() 322 message.setOptionalFixed64 (108); in setAllFields() 323 message.setOptionalSfixed32(109); in setAllFields() [all …]
|
D | TestUtilLite.java | 345 public static void setAllExtensions(TestAllExtensionsLite.Builder message) { in setAllExtensions() argument 346 message.setExtension(optionalInt32ExtensionLite , 101); in setAllExtensions() 347 message.setExtension(optionalInt64ExtensionLite , 102L); in setAllExtensions() 348 message.setExtension(optionalUint32ExtensionLite , 103); in setAllExtensions() 349 message.setExtension(optionalUint64ExtensionLite , 104L); in setAllExtensions() 350 message.setExtension(optionalSint32ExtensionLite , 105); in setAllExtensions() 351 message.setExtension(optionalSint64ExtensionLite , 106L); in setAllExtensions() 352 message.setExtension(optionalFixed32ExtensionLite , 107); in setAllExtensions() 353 message.setExtension(optionalFixed64ExtensionLite , 108L); in setAllExtensions() 354 message.setExtension(optionalSfixed32ExtensionLite, 109); in setAllExtensions() [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 50 def IsProto2(message): argument 51 return message.DESCRIPTOR.syntax == "proto2" 53 def SetAllNonLazyFields(message): argument 64 message.optional_int32 = 101 65 message.optional_int64 = 102 66 message.optional_uint32 = 103 67 message.optional_uint64 = 104 68 message.optional_sint32 = 105 69 message.optional_sint64 = 106 70 message.optional_fixed32 = 107 [all …]
|
D | json_format_test.py | 59 def FillAllFields(self, message): argument 60 message.int32_value = 20 61 message.int64_value = -20 62 message.uint32_value = 3120987654 63 message.uint64_value = 12345678900 64 message.float_value = float('-inf') 65 message.double_value = 3.1415 66 message.bool_value = True 67 message.string_value = 'foo' 68 message.bytes_value = b'bar' [all …]
|
D | text_format_test.py | 103 message = message_module.TestAllTypes() 104 message.repeated_int64.append(-9223372036854775808) 105 message.repeated_uint64.append(18446744073709551615) 106 message.repeated_double.append(123.456) 107 message.repeated_double.append(1.23e22) 108 message.repeated_double.append(1.23e-18) 109 message.repeated_string.append('\000\001\a\b\f\n\r\t\v\\\'"') 110 message.repeated_string.append(u'\u00fc\ua71f') 112 self.RemoveRedundantZeros(text_format.MessageToString(message)), 125 message = message_module.TestAllTypes() [all …]
|
/external/protobuf/objectivec/Tests/ |
D | GPBTestUtilities.m | 95 - (void)modifyRepeatedExtensions:(TestAllExtensions *)message { 96 [message setExtension:[UnittestRoot repeatedInt32Extension] 99 [message setExtension:[UnittestRoot repeatedInt64Extension] 102 [message setExtension:[UnittestRoot repeatedUint32Extension] 105 [message setExtension:[UnittestRoot repeatedUint64Extension] 108 [message setExtension:[UnittestRoot repeatedSint32Extension] 111 [message setExtension:[UnittestRoot repeatedSint64Extension] 114 [message setExtension:[UnittestRoot repeatedFixed32Extension] 117 [message setExtension:[UnittestRoot repeatedFixed64Extension] 120 [message setExtension:[UnittestRoot repeatedSfixed32Extension] [all …]
|
D | GPBPerfTests.m | 57 TestAllTypes* message = [[TestAllTypes alloc] init]; 58 [self setAllFields:message repeatedCount:kRepeatedCount]; 59 NSData* rawBytes = [message data]; 60 [message release]; 61 message = [[TestAllTypes alloc] initWithData:rawBytes error:NULL]; 62 [message release]; 70 TestAllExtensions* message = [[TestAllExtensions alloc] init]; 71 [self setAllExtensions:message repeatedCount:kRepeatedCount]; 72 NSData* rawBytes = [message data]; 73 [message release]; [all …]
|
D | GPBMessageTests.m | 54 TestAllTypes *message = [TestAllTypes message]; 55 [message setOptionalInt32:1]; 56 [message setOptionalString:@"foo"]; 57 [message setOptionalForeignMessage:[ForeignMessage message]]; 58 [message.repeatedStringArray addObject:@"bar"]; 59 return message; 63 TestAllTypes *message = [TestAllTypes message]; 64 [message setOptionalInt64:2]; 65 [message setOptionalString:@"baz"]; 66 ForeignMessage *foreignMessage = [ForeignMessage message]; [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/lang/ |
D | wpa_gui_de.ts | 6 <message> 10 </message> 11 <message> 15 </message> 16 <message> 20 </message> 21 <message> 25 </message> 26 <message> 30 </message> [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 46 var message = SampleMessages.CreateFullTestAllTypes(); in GetValue() 48 …Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue() 49 …Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue() 50 …Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue() 51 …Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue() 52 …Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue() 53 …Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue() 54 …Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue() 55 …Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue() 56 …Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue() [all …]
|
/external/conscrypt/common/src/jni/main/include/ |
D | Errors.h | 88 static int jniThrowOutOfMemory(JNIEnv* env, const char* message) { in jniThrowOutOfMemory() argument 89 return jniThrowException(env, "java/lang/OutOfMemoryError", message); in jniThrowOutOfMemory() 95 static int throwBadPaddingException(JNIEnv* env, const char* message) { in throwBadPaddingException() argument 96 JNI_TRACE("throwBadPaddingException %s", message); in throwBadPaddingException() 97 return jniThrowException(env, "javax/crypto/BadPaddingException", message); in throwBadPaddingException() 103 static int throwSignatureException(JNIEnv* env, const char* message) { in throwSignatureException() argument 104 JNI_TRACE("throwSignatureException %s", message); in throwSignatureException() 105 return jniThrowException(env, "java/security/SignatureException", message); in throwSignatureException() 111 static int throwInvalidKeyException(JNIEnv* env, const char* message) { in throwInvalidKeyException() argument 112 JNI_TRACE("throwInvalidKeyException %s", message); in throwInvalidKeyException() [all …]
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | mbim_message_unittest.py | 55 message = TestMessage() 66 message = TestMessage(message_type=4, fake=5) 74 message = TestMessage(message_type=3) 75 self.assertEqual(message.message_length, 0) 76 self.assertEqual(message.transaction_id, 0) 77 self.assertEqual(message.message_type, 3) 86 message = TestMessage(message_type=3, transaction_id=4) 87 self.assertEqual(message.message_length, 0) 88 self.assertEqual(message.transaction_id, 4) 89 self.assertEqual(message.message_type, 3) [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_unittest.cc | 103 const string& message) { in AddError() argument 105 filename, line, column, message); in AddError() 159 unittest::TestAllTypes message; in TEST() local 161 TestUtil::ExpectClear(message); in TEST() 167 &message.optionalgroup()); in TEST() 169 &message.optional_nested_message()); in TEST() 171 &message.optional_foreign_message()); in TEST() 173 &message.optional_import_message()); in TEST() 233 unittest::TestAllTypes message; in TEST() local 235 TestUtil::SetAllFields(&message); in TEST() [all …]
|