Searched defs:message (Results 1 - 25 of 82) sorted by relevance

1234

/system/chre/platform/linux/
H A Dhost_link.cc25 bool HostLink::sendMessage(const MessageToHost *message) { argument
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
H A DTestFailException.java20 public TestFailException(String message) { argument
21 super(message);
/system/core/liblog/tests/
H A Dlibc_test.cpp26 static const char message[] = "libc.__pstore_append\n"; local
27 ASSERT_EQ((size_t)1, fwrite(message, sizeof(message), 1, fp));
/system/timezone/distro/core/src/main/com/android/timezone/distro/
H A DDistroException.java24 public DistroException(String message) { argument
25 super(message);
28 public DistroException(String message, Throwable cause) { argument
29 super(message, cause);
/system/chre/apps/chqts/src/general_test/
H A Dnanoapp_info_by_app_id_test.cc34 const void * /* message */) {
43 const void *message = local
49 nanoapp_testing::memcpy(&appVersion, message, sizeof(appVersion));
H A Dnanoapp_info_by_instance_id_test.cc34 const void * /* message */) {
43 const void *message = local
49 nanoapp_testing::memcpy(&appVersion, message, sizeof(appVersion));
H A Dcell_info_base.cc31 void CellInfoBase::sendFatalFailureInt32(const char *message, int32_t value) { argument
33 nanoapp_testing::sendFatalFailureToHost(message, &val);
36 void CellInfoBase::sendFatalFailureUint8(const char *message, uint8_t value) { argument
38 nanoapp_testing::sendFatalFailureToHost(message, &val);
H A Destimated_host_time_test.cc34 const void * /* message */) {
57 // TODO: Estimate message RTT to allow stricter accuracy check
61 const void *message = local
67 nanoapp_testing::memcpy(&givenHostTime, message, sizeof(givenHostTime));
H A Devent_between_apps_test.cc44 const void * /* message */) {
47 "Initial message expects 0 additional bytes, got ",
58 const void *message = local
67 nanoapp_testing::memcpy(&app1InstanceId, message, sizeof(app1InstanceId));
84 const void * /* message */) {
87 "Initial message expects 0 additional bytes, got ",
98 const void *message = local
108 nanoapp_testing::memcpy(&mApp0InstanceId, message,
H A Dnanoapp_info_events_test_observer.cc29 const void * /* message */) {
53 const void *message = getMessageDataFromHostEvent( local
57 nanoapp_testing::memcpy(&performerInstanceId, message,
H A Dtest.cc33 void Test::testSetUp(uint32_t messageSize, const void *message) { argument
35 setUp(messageSize, message);
74 return data->message;
/system/core/fastboot/
H A Dtcp_test.cpp61 EXPECT_NE(std::string::npos, error.find("Failed to send initialization message"));
71 EXPECT_NE(std::string::npos, error.find("No initialization message received"));
81 EXPECT_NE(std::string::npos, error.find("Unrecognized initialization message"));
108 // Writes |message| to |transport_|, returns true on success.
109 bool Write(const std::string& message) { argument
110 return transport_->Write(message.data(), message.length()) ==
111 static_cast<ssize_t>(message.length());
114 // Reads from |transport_|, returns true if it matches |message|.
115 bool Read(const std::string& message) { argument
[all...]
H A Dsocket_mock.h66 void ExpectSend(std::string message);
69 void ExpectSendFailure(std::string message);
72 void AddReceive(std::string message);
91 std::string message; member in struct:SocketMock::Event
H A Dsocket_test.cpp64 static bool SendString(Socket* sock, const std::string& message) { argument
65 return sock->Send(message.c_str(), message.length());
70 static bool ReceiveString(Socket* sock, const std::string& message) { argument
71 std::string received(message.length(), '\0');
73 return static_cast<size_t>(bytes) == received.length() && received == message;
137 std::string message(1024, '\0');
145 // Use a different message each iteration to prevent false positives.
146 for (size_t j = 0; j < message.length(); ++j) {
147 message[
[all...]
/system/libfmq/
H A DFmqInternal.cpp28 void logError(const std::string &message) { argument
29 LOG(ERROR) << message;
/system/chre/apps/chqts/src/shared/
H A Dsend_message.h85 * A generic message indicating that the test should continue.
87 * The meaning of this generic message depends on the specific test.
95 // Tests wanting to add custom message types for their protocols should
101 * Sends a message to the host with the given data.
109 * @param messageType The type of the message.
119 * Sends a message to the host, optionally with the 'value' appended as in
122 * This method will make a copy of 'message' and 'value', so there's no
128 * @param messageType The type of the message.
129 * @param message The text of the message
139 sendFailureToHost(const char *message, const uint32_t *value = nullptr) argument
[all...]
/system/chre/apps/message_world/
H A Dmessage_world.cc34 void messageFreeCallback(void *message, size_t messageSize) { argument
35 LOGI("Got message free callback for message @"
37 message, (message == gMessageData),
53 LOGI("Sent message to host from start callback, result %d", success);
62 LOGI("Got message from host with type %" PRIu32 " size %" PRIu32
64 msg->messageType, msg->messageSize, msg->message, msg->hostEndpoint);
/system/chre/chre_api/legacy/v1_0/chre/
H A Devent.h38 * a message sent to chreSendMessageToHost(). This must be at least
71 * The format of the 'message' part of this structure is left undefined,
125 * In future releases, this will be a message type provided by the host.
130 * The size, in bytes of the following 'message'.
137 * The message from the host.
145 const void *message; member in struct:chreMessageFromHostData
164 * Callback which frees a message.
167 * as a means for freeing the message. When this callback is invoked,
168 * 'message' is no longer needed and can be released. Note that this in
169 * no way assures that said message di
[all...]
/system/chre/core/include/chre/core/
H A Dhost_comms_manager.h32 //! message is not specified.
35 //! Only valid for messages from CHRE to host - delivers the message to all
40 * Data associated with a message either to or from the host.
46 // Fields use when the message was received from the host
51 //! Application-specific message ID
61 //! Identifier for the host-side entity that should receive this message, or
70 //! Application-defined message data
71 DynamicVector<uint8_t> message; member in struct:chre::HostMessage
90 * Formulates a MessageToHost using the supplied message contents and passes
93 * @param nanoapp The sender of this message
[all...]
/system/chre/platform/shared/
H A Dhost_protocol_common.cc48 flatbuffers::Offset<void> message, uint16_t hostClientId) {
51 builder, messageType, message, &hostAddr);
55 bool HostProtocolCommon::verifyMessage(const void *message, size_t messageLen) { argument
58 if (message != nullptr) {
59 flatbuffers::Verifier verifier(static_cast<const uint8_t *>(message),
46 finalize( FlatBufferBuilder& builder, fbs::ChreMessage messageType, flatbuffers::Offset<void> message, uint16_t hostClientId) argument
H A Dchre_api_core.cc70 DLL_EXPORT bool chreSendMessageToHost(void *message, uint32_t messageSize, argument
74 message, static_cast<size_t>(messageSize), messageType,
79 void *message, size_t messageSize, uint32_t messageType,
87 LOGW("Rejecting message to host from app instance %" PRIu32 " because it's "
93 nanoapp, message, messageSize, messageType, hostEndpoint, freeCallback);
97 freeCallback(message, messageSize);
78 chreSendMessageToHostEndpoint( void *message, size_t messageSize, uint32_t messageType, uint16_t hostEndpoint, chreMessageFreeFunction *freeCallback) argument
/system/connectivity/wifilogd/
H A Dmessage_buffer.cpp34 bool MessageBuffer::Append(const uint8_t* message, uint16_t message_len) { argument
42 AppendRawBytes(message, message_len);
/system/connectivity/wifilogd/tests/
H A Dmemory_reader_unittest.cpp188 } message{5, 'c'}; struct
189 MemoryReader memory_reader(&message, sizeof(message));
/system/chre/apps/spammer/
H A Dspammer.cc52 void messageFreeCallback(void *message, size_t messageSize) { argument
56 LOGE("Couldn't send event from message free callback");
73 LOGE("Couldn't send message from start callback");
99 //LOGE("Couldn't send message");
/system/chre/core/
H A Dhost_comms_manager.cc39 LOGW("Rejecting malformed message (null data but non-zero size)");
41 LOGW("Rejecting message of size %zu bytes (max %d)",
44 LOGW("Rejecting message to invalid host endpoint");
49 LOGE("Couldn't allocate message to host");
52 msgToHost->message.wrap(static_cast<uint8_t *>(messageData), messageSize);
57 // Populate a special value to help disambiguate message direction when
78 LOGE("Couldn't allocate message from host");
79 } else if (!msgFromHost->message.copy_array(
81 LOGE("Couldn't allocate %" PRIu32 " bytes for message data from host "
89 msgFromHost->fromHostData.message
127 onMessageToHostComplete(const MessageToHost *message) argument
[all...]

Completed in 464 milliseconds

1234