/external/protobuf/src/google/protobuf/ |
D | test_util.cc | 43 #include <google/protobuf/message.h> 52 void TestUtil::SetAllFields(unittest::TestAllTypes* message) { in SetAllFields() argument 53 SetOptionalFields(message); in SetAllFields() 54 AddRepeatedFields1(message); in SetAllFields() 55 AddRepeatedFields2(message); in SetAllFields() 56 SetDefaultFields(message); in SetAllFields() 57 SetOneofFields(message); in SetAllFields() 60 void TestUtil::SetOptionalFields(unittest::TestAllTypes* message) { in SetOptionalFields() argument 61 message->set_optional_int32 (101); in SetOptionalFields() 62 message->set_optional_int64 (102); in SetOptionalFields() [all …]
|
D | test_util_lite.cc | 48 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields() argument 49 message->set_optional_int32 (101); in SetAllFields() 50 message->set_optional_int64 (102); in SetAllFields() 51 message->set_optional_uint32 (103); in SetAllFields() 52 message->set_optional_uint64 (104); in SetAllFields() 53 message->set_optional_sint32 (105); in SetAllFields() 54 message->set_optional_sint64 (106); in SetAllFields() 55 message->set_optional_fixed32 (107); in SetAllFields() 56 message->set_optional_fixed64 (108); in SetAllFields() 57 message->set_optional_sfixed32(109); in SetAllFields() [all …]
|
D | generated_message_reflection.h | 47 #include <google/protobuf/message.h> 86 // - Singular Message fields are stored as a pointer to a Message. These 100 // descriptor: The descriptor for the message type being implemented. 101 // default_instance: The default instance of the message. This is only 104 // sub-message has not been initialized yet. (Thus, all 105 // embedded message fields *must* have non-NULL pointers 108 // the start of the message object, of each field. These can 112 // has_bits_offset: Offset in the message of an array of uint32s of size 115 // corresponding field of the message has been initialized. 118 // unknown_fields_offset: Offset in the message of the UnknownFieldSet for [all …]
|
D | reflection_ops_unittest.cc | 51 unittest::TestAllTypes message; in TEST() local 53 TestUtil::SetAllFields(&message); in TEST() 54 TestUtil::ExpectAllFieldsSet(message); in TEST() 58 unittest::TestAllTypes message, message2; in TEST() local 60 TestUtil::SetAllFields(&message); in TEST() 62 ReflectionOps::Copy(message, &message2); in TEST() 72 unittest::TestAllExtensions message, message2; in TEST() local 74 TestUtil::SetAllExtensions(&message); in TEST() 76 ReflectionOps::Copy(message, &message2); in TEST() 82 unittest::TestOneof2 message, message2; in TEST() local [all …]
|
D | message.h | 35 // Defines Message, the abstract interface implemented by non-lite 36 // protocol message objects. Although it's possible to implement this 42 // Say you have a message defined as: 44 // message Foo { 52 // string data; // Will store a serialized version of the message. 55 // // Create a message and serialize it. 66 // // Parse the serialized message and check that it contains the 79 // // Same as the last block, but do it dynamically via the Message 81 // Message* foo = new Foo; 96 // // Parse the message. [all …]
|
D | test_util.h | 40 #include <google/protobuf/message.h> 51 // Set every field in the message to a unique value. 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); [all …]
|
D | generated_message_reflection.cc | 89 " Message type: " << descriptor->full_name() << "\n" in ReportReflectionUsageError() 115 " Message type: " << descriptor->full_name() << "\n" in ReportReflectionUsageTypeError() 117 " Problem : Field is not the right type for this message:\n" in ReportReflectionUsageTypeError() 128 " Message type: " << descriptor->full_name() << "\n" in ReportReflectionUsageEnumTypeError() 154 METHOD, "Field does not match message type."); 173 const Message* default_instance, in GeneratedMessageReflection() 196 const Message* default_instance, in GeneratedMessageReflection() 224 const Message& message) const { in GetUnknownFields() 225 const void* ptr = reinterpret_cast<const uint8*>(&message) + in GetUnknownFields() 230 Message* message) const { in MutableUnknownFields() [all …]
|
D | extension_set_unittest.cc | 62 // Check that all default values are set correctly in the initial message. in TEST() 63 unittest::TestAllExtensions message; in TEST() local 65 TestUtil::ExpectExtensionsClear(message); in TEST() 71 &message.GetExtension(unittest::optionalgroup_extension)); in TEST() 73 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST() 75 &message.GetExtension( in TEST() 78 &message.GetExtension(unittest::optional_import_message_extension)); in TEST() 84 unittest::TestAllExtensions message; in TEST() local 86 TestUtil::SetAllExtensions(&message); in TEST() 87 TestUtil::ExpectAllExtensionsSet(message); in TEST() [all …]
|
D | lite_unittest.cc | 48 void ExpectMessageMerged(const google::protobuf::unittest::TestAllTypesLite& message) { in ExpectMessageMerged() argument 49 GOOGLE_CHECK(message.optional_int32() == 3); in ExpectMessageMerged() 50 GOOGLE_CHECK(message.optional_int64() == 2); in ExpectMessageMerged() 51 GOOGLE_CHECK(message.optional_string() == "hello"); in ExpectMessageMerged() 66 protobuf_unittest::TestAllTypesLite message; in SetAllTypesInEmptyMessageUnknownFields() local 67 google::protobuf::TestUtilLite::ExpectClear(message); in SetAllTypesInEmptyMessageUnknownFields() 68 google::protobuf::TestUtilLite::SetAllFields(&message); in SetAllTypesInEmptyMessageUnknownFields() 69 string data = message.SerializeAsString(); in SetAllTypesInEmptyMessageUnknownFields() 75 protobuf_unittest::TestAllTypesLite message; in SetSomeTypesInEmptyMessageUnknownFields() local 76 google::protobuf::TestUtilLite::ExpectClear(message); in SetSomeTypesInEmptyMessageUnknownFields() [all …]
|
D | generated_message_reflection_unittest.cc | 36 // generate a full protocol message implementation and then test its 38 // trying to create our own Message class for GeneratedMessageReflection 68 // Check that all default values are set correctly in the initial message. in TEST() 69 unittest::TestAllTypes message; in TEST() local 73 reflection_tester.ExpectClearViaReflection(message); in TEST() 75 const Reflection* reflection = message.GetReflection(); in TEST() 81 &reflection->GetMessage(message, F("optionalgroup"))); in TEST() 83 &reflection->GetMessage(message, F("optional_nested_message"))); in TEST() 85 &reflection->GetMessage(message, F("optional_foreign_message"))); in TEST() 87 &reflection->GetMessage(message, F("optional_import_message"))); in TEST() [all …]
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | TestUtil.java | 265 * These are useful for testing various protocol message features, e.g. 266 * set all fields of a message, serialize it, parse it, and check that all 348 * Set every field of {@code message} to the values expected by 351 public static void setAllFields(TestAllTypes.Builder message) { in setAllFields() argument 352 message.setOptionalInt32 (101); in setAllFields() 353 message.setOptionalInt64 (102); in setAllFields() 354 message.setOptionalUint32 (103); in setAllFields() 355 message.setOptionalUint64 (104); in setAllFields() 356 message.setOptionalSint32 (105); in setAllFields() 357 message.setOptionalSint64 (106); in setAllFields() [all …]
|
/external/boringssl/src/crypto/curve25519/ |
D | ed25519_tests.txt | 9 # (private, public, message, sig_and_message, _) = line.split(':') 15 # print "MESSAGE:", message 21 MESSAGE: 26 MESSAGE: 72 31 MESSAGE: af82 36 MESSAGE: cbc77b 41 MESSAGE: 5f4c8989 46 MESSAGE: 18b6bec097 51 MESSAGE: 89010d855972 56 MESSAGE: b4a8f381e70e7a [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 45 def SetAllNonLazyFields(message): argument 46 """Sets every non-lazy field in the message to a unique value. 49 message: A unittest_pb2.TestAllTypes instance. 56 message.optional_int32 = 101 57 message.optional_int64 = 102 58 message.optional_uint32 = 103 59 message.optional_uint64 = 104 60 message.optional_sint32 = 105 61 message.optional_sint64 = 106 62 message.optional_fixed32 = 107 [all …]
|
D | text_format_test.py | 61 message = unittest_pb2.TestAllTypes() 62 test_util.SetAllFields(message) 64 self.RemoveRedundantZeros(text_format.MessageToString(message)), 68 message = unittest_pb2.TestFieldOrderings() 69 message.my_string = '115' 70 message.my_int = 101 71 message.my_float = 111 74 message, use_index_order=True)), 78 message)), 'my_int: 101\nmy_string: \"115\"\nmy_float: 111\n') 81 message = unittest_pb2.TestAllExtensions() [all …]
|
D | message_test.py | 33 """Tests python protocol buffers against the golden message. 40 sense to call this a test of the "message" module, which only declares an 56 from google.protobuf import message 146 self.assertRaises(message.EncodeError, unpickled_message.SerializeToString) 191 message = unittest_pb2.TestAllTypes() 192 message.ParseFromString(serialized) 193 self.assertTrue(isnan(message.optional_float)) 194 self.assertTrue(isnan(message.optional_double)) 195 self.assertTrue(isnan(message.repeated_float[0])) 196 self.assertTrue(isnan(message.repeated_double[0])) [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/v8/test/mjsunit/regress/ |
D | regress-1200351.js | 41 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 45 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 49 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 53 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 57 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 61 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 65 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 69 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 73 } catch (e) { if (e.message.length > 0) { print (e.message); } }; 77 } catch (e) { if (e.message.length > 0) { print (e.message); } }; [all …]
|
/external/dbus/bus/ |
D | dispatch.c | 2 /* dispatch.c Message dispatcher 54 DBusMessage *message, in send_one_message() argument 62 message, in send_one_message() 66 if (dbus_message_contains_unix_fds(message) && in send_one_message() 72 message)) in send_one_message() 85 DBusMessage *message, in bus_dispatch_matches() argument 102 _dbus_assert (dbus_message_get_sender (message) != NULL); in bus_dispatch_matches() 106 /* First, send the message to the addressed_recipient, if there is one. */ in bus_dispatch_matches() 112 message, error)) in bus_dispatch_matches() 115 if (dbus_message_contains_unix_fds (message) && in bus_dispatch_matches() [all …]
|
/external/dbus/dbus/ |
D | dbus-message.c | 2 /* dbus-message.c DBusMessage object 32 #include "dbus-message-private.h" 47 static void dbus_message_finalize (DBusMessage *message); 92 _dbus_message_trace_ref (DBusMessage *message, in _dbus_message_trace_ref() argument 99 _dbus_trace_ref ("DBusMessage", message, old_refcount, new_refcount, why, in _dbus_message_trace_ref() 117 /** typedef for internals of message iterator */ 123 * Object representing a position in a message. All fields are internal. 127 DBusMessage *message; /**< Message used */ member 158 * Swaps the message to compiler byte order if required 160 * @param message the message [all …]
|
D | dbus-message-factory.c | 2 /* dbus-message-factory.c Generator of valid and invalid message data for test suite 28 #include "dbus-message-factory.h" 29 #include "dbus-message-private.h" 103 set_reply_serial (DBusMessage *message) in set_reply_serial() argument 105 if (message == NULL) in set_reply_serial() 107 if (!dbus_message_set_reply_serial (message, 100)) in set_reply_serial() 115 DBusMessage *message; in generate_trivial_inner() local 120 message = dbus_message_new_method_call ("org.freedesktop.TextEditor", in generate_trivial_inner() 126 message = dbus_message_new (DBUS_MESSAGE_TYPE_METHOD_RETURN); in generate_trivial_inner() 127 set_reply_serial (message); in generate_trivial_inner() [all …]
|
/external/testng/src/main/java/org/testng/ |
D | Assert.java | 21 * The order is always <B>actualValue</B>, <B>expectedValue</B> [, message]. 36 * an AssertionError, with the given message, is thrown. 38 * @param message the assertion error message 40 static public void assertTrue(boolean condition, String message) { in assertTrue() argument 42 failNotEquals(condition, Boolean.TRUE, message); in assertTrue() 57 * an AssertionError, with the given message, is thrown. 59 * @param message the assertion error message 61 static public void assertFalse(boolean condition, String message) { in assertFalse() argument 63 failNotEquals(condition, Boolean.FALSE, message); // TESTNG-81 in assertFalse() 77 * Fails a test with the given message and wrapping the original exception. [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_unittest.cc | 93 const string& message) { in AddError() argument 95 filename, line, column, message); in AddError() 135 // Check that all default values are set correctly in the initial message. in TEST() 136 unittest::TestAllTypes message; in TEST() local 138 TestUtil::ExpectClear(message); in TEST() 144 &message.optionalgroup()); in TEST() 146 &message.optional_nested_message()); in TEST() 148 &message.optional_foreign_message()); in TEST() 150 &message.optional_import_message()); in TEST() 208 unittest::TestAllTypes message; in TEST() local [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_old_handlers.c | 29 * wpas_dbus_new_invalid_opts_error - Return a new invalid options error message 30 * @message: Pointer to incoming dbus message this error refers to 31 * Returns: a dbus error message 35 DBusMessage * wpas_dbus_new_invalid_opts_error(DBusMessage *message, in wpas_dbus_new_invalid_opts_error() argument 41 message, WPAS_ERROR_INVALID_OPTS, in wpas_dbus_new_invalid_opts_error() 42 "Did not receive correct message arguments."); in wpas_dbus_new_invalid_opts_error() 52 * wpas_dbus_new_success_reply - Return a new success reply message 53 * @message: Pointer to incoming dbus message this reply refers to 54 * Returns: a dbus message containing a single UINT32 that indicates 57 * Convenience function to create and return a success reply message [all …]
|
/external/sl4a/Utils/src/com/googlecode/android_scripting/ |
D | Log.java | 40 private static void toast(Context context, String message) { in toast() argument 41 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in toast() 44 public static void notify(Context context, String title, String contentTitle, String message) { in notify() argument 45 android.util.Log.v(getTag(), String.format("%s %s", contentTitle, message)); in notify() 56 .setContentText(message) in notify() 63 public static void showDialog(final Context context, final String title, final String message) { in showDialog() argument 64 android.util.Log.v(getTag(), String.format("%s %s", title, message)); in showDialog() 71 builder.setMessage(message); in showDialog() 85 public static void v(String message) { in v() argument 86 android.util.Log.v(getTag(), message); in v() local [all …]
|
/external/google-tv-pairing-protocol/cpp/src/polo/wire/protobuf/ |
D | protobufwireadapter.cc | 42 // Read the 4 byte preable which contains the length of the next message. in GetNextMessage() 48 const pairing::message::ConfigurationMessage& message) { in SendConfigurationMessage() argument 52 message.encoding().symbol_length()); in SendConfigurationMessage() 55 EncodingTypeToProto(message.encoding().encoding_type())); in SendConfigurationMessage() 57 configuration.set_client_role(RoleToProto(message.client_role())); in SendConfigurationMessage() 64 const pairing::message::ConfigurationAckMessage& message) { in SendConfigurationAckMessage() argument 72 const pairing::message::OptionsMessage& message) { in SendOptionsMessage() argument 73 LOG(INFO) << "Sending " << message.ToString(); in SendOptionsMessage() 77 for (iter = message.input_encodings().begin(); in SendOptionsMessage() 78 iter != message.input_encodings().end(); in SendOptionsMessage() [all …]
|