Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 90) sorted by relevance

1234

/device/generic/goldfish/radio/librilutils/proto/
Dsap-api.proto12 // the actual message being sent, as described by the type and id
16 // RIL_SIM_SAP_CONNECT_REQ message.
20 // Each SAP message stream will always be prepended with a MsgHeader
21 message MsgHeader {
41 // Message: message RIL_SIM_SAP_CONNECT_REQ
43 // Message: message RIL_SIM_SAP_CONNECT_RSP
49 // Message: message RIL_SIM_SAP_DISCONNECT_REQ
51 // Message: message RIL_SIM_SAP_DISCONNECT_RSP
53 // Message: message RIL_SIM_SAP_DISCONNECT_IND
59 // Message: message RIL_SIM_SAP_APDU_REQ
[all …]
/device/generic/goldfish/dhcp/common/
Dmessage.cpp55 Message message(OP_BOOTREQUEST, in discover() local
59 message.addOption(OPT_PARAMETER_LIST, kRequestParameters); in discover()
60 message.endOptions(); in discover()
62 return message; in discover()
69 Message message(OP_BOOTREQUEST, in request() local
73 message.addOption(OPT_PARAMETER_LIST, kRequestParameters); in request()
74 message.addOption(OPT_REQUESTED_IP, requestAddress); in request()
75 message.addOption(OPT_SERVER_ID, serverAddress); in request()
76 message.endOptions(); in request()
78 return message; in request()
[all …]
Dsocket.cpp124 const Message& message) { in sendOnInterface() argument
141 iov.iov_base = const_cast<uint8_t*>(message.data()); in sendOnInterface()
142 iov.iov_len = message.size(); in sendOnInterface()
171 const Message& message) { in sendRawUdp() argument
178 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + message.size()); in sendRawUdp()
190 udp.len = htons(sizeof(udp) + message.size()); in sendRawUdp()
199 udpChecksum = addChecksum(message.data(), message.size(), udpChecksum); in sendRawUdp()
209 iov[2].iov_base = static_cast<void*>(const_cast<uint8_t*>(message.data())); in sendRawUdp()
210 iov[2].iov_len = message.size(); in sendRawUdp()
234 Result Socket::receiveFromInterface(Message* message, in receiveFromInterface() argument
[all …]
/device/google/cuttlefish/common/libs/security/
Dgatekeeper_channel.cpp31 auto message = reinterpret_cast<GatekeeperRawMessage*>(memory); in CreateGatekeeperMessage() local
32 message->cmd = command; in CreateGatekeeperMessage()
33 message->is_response = is_response; in CreateGatekeeperMessage()
34 message->payload_size = payload_size; in CreateGatekeeperMessage()
35 return ManagedGatekeeperMessage(message); in CreateGatekeeperMessage()
49 uint32_t command, const gatekeeper::GateKeeperMessage& message) { in SendRequest() argument
50 return SendMessage(command, false, message); in SendRequest()
54 uint32_t command, const gatekeeper::GateKeeperMessage& message) { in SendResponse() argument
55 return SendMessage(command, true, message); in SendResponse()
61 const gatekeeper::GateKeeperMessage& message) { in SendMessage() argument
[all …]
Dkeymaster_channel.cpp29 auto message = reinterpret_cast<keymaster_message*>(memory); in CreateKeymasterMessage() local
30 message->cmd = command; in CreateKeymasterMessage()
31 message->is_response = is_response; in CreateKeymasterMessage()
32 message->payload_size = payload_size; in CreateKeymasterMessage()
33 return ManagedKeymasterMessage(message); in CreateKeymasterMessage()
47 AndroidKeymasterCommand command, const keymaster::Serializable& message) { in SendRequest() argument
48 return SendMessage(command, false, message); in SendRequest()
52 AndroidKeymasterCommand command, const keymaster::Serializable& message) { in SendResponse() argument
53 return SendMessage(command, true, message); in SendResponse()
59 const keymaster::Serializable& message) { in SendMessage() argument
[all …]
/device/google/cuttlefish/host/frontend/gcastv2/signaling_server/
Dclient_handler.cpp32 Json::Value message; in SendDeviceMessage() local
33 message[webrtc_signaling::kTypeField] = webrtc_signaling::kDeviceMessageType; in SendDeviceMessage()
34 message[webrtc_signaling::kPayloadField] = device_message; in SendDeviceMessage()
35 Reply(message); in SendDeviceMessage()
39 const Json::Value& message) { in handleMessage() argument
41 return handleConnectionRequest(message); in handleMessage()
43 return handleForward(message); in handleMessage()
50 int ClientHandler::handleConnectionRequest(const Json::Value& message) { in handleConnectionRequest() argument
56 if (!message.isMember(webrtc_signaling::kDeviceIdField) || in handleConnectionRequest()
57 !message[webrtc_signaling::kDeviceIdField].isString()) { in handleConnectionRequest()
[all …]
Ddevice_handler.cpp43 const Json::Value& message) { in handleMessage() argument
45 return HandleRegistrationRequest(message); in handleMessage()
47 return HandleForward(message); in handleMessage()
55 int DeviceHandler::HandleRegistrationRequest(const Json::Value& message) { in HandleRegistrationRequest() argument
60 if (!message.isMember(webrtc_signaling::kDeviceIdField) || in HandleRegistrationRequest()
61 !message[webrtc_signaling::kDeviceIdField].isString() || in HandleRegistrationRequest()
62 message[webrtc_signaling::kDeviceIdField].asString().empty()) { in HandleRegistrationRequest()
66 device_id_ = message[webrtc_signaling::kDeviceIdField].asString(); in HandleRegistrationRequest()
67 if (message.isMember(webrtc_signaling::kDeviceInfoField)) { in HandleRegistrationRequest()
68 device_info_ = message[webrtc_signaling::kDeviceInfoField]; in HandleRegistrationRequest()
[all …]
DReadme.md19 recommended. The same holds true for creating new message types.
59 * **Device** sends **register** message
61 * **Server** sends **config** message to **Device**
65 * **Client** sends **connect** message
67 * **Server** sends **config** message to **Client**
69 * **Server** sends **device_info** message to **Client**
71 * **Client** sends **forward** message
73 * **Server** sends **client_msg** message to **Device** (at this point the
77 * **Device** sends **forward** message
79 * **Server** sends **device_msg** message to client
[all …]
Dclient_handler.h34 void SendDeviceMessage(const Json::Value& message);
37 const Json::Value& message) override;
40 int handleConnectionRequest(const Json::Value& message);
41 int handleForward(const Json::Value& message);
Ddevice_handler.h43 void SendClientMessage(size_t client_id, const Json::Value& message);
46 const Json::Value& message) override;
49 int HandleRegistrationRequest(const Json::Value& message);
50 int HandleForward(const Json::Value& message);
/device/google/cuttlefish/guest/commands/vtpm_manager/
Dmain.cpp45 std::vector<char> message; in ReadResponseLoop() local
52 message.resize(response_size, '\0'); in ReadResponseLoop()
53 CHECK(cuttlefish::ReadExact(in_fd, &message) == response_size) in ReadResponseLoop()
55 auto header = reinterpret_cast<tpm_message_header*>(message.data()); in ReadResponseLoop()
62 CHECK(cuttlefish::WriteAll(out_fd, message) == message.size()) in ReadResponseLoop()
83 std::vector<char> message(8192, '\0'); in SendCommandLoop() local
89 while ((data_length = in_fd->Read(message.data(), message.size())) < 0) { in SendCommandLoop()
92 message.resize((message.size() + 1) * 2, '\0'); in SendCommandLoop()
94 message.resize(data_length, 0); in SendCommandLoop()
95 auto header = reinterpret_cast<tpm_message_header*>(message.data()); in SendCommandLoop()
[all …]
/device/google/cuttlefish/common/libs/utils/
Dtee_logging.cpp85 static std::pair<int, int> CountSizeAndNewLines(const char* message) { in CountSizeAndNewLines() argument
88 while (*message != '\0') { in CountSizeAndNewLines()
90 if (*message == '\n') { in CountSizeAndNewLines()
93 ++message; in CountSizeAndNewLines()
118 unsigned int line, const char* message) { in StderrOutputGenerator() argument
135 auto [size, new_lines] = CountSizeAndNewLines(message); in StderrOutputGenerator()
139 auto concat_lines = [&](const char* message, int size) { in StderrOutputGenerator() argument
142 output_string.append(message); in StderrOutputGenerator()
144 output_string.append(message, size); in StderrOutputGenerator()
148 SplitByLines(message, concat_lines); in StderrOutputGenerator()
[all …]
/device/google/cuttlefish/host/frontend/gcastv2/signaling_server/assets/js/
Dcf_webrtc.js181 _onWebsocketMessage(message) { argument
182 const type = message.message_type;
183 if (message.error) {
184 console.error(message.error);
189 this._infra_config = message;
193 this._on_device_available(message.device_info);
200 this._onDeviceMessage(message.payload);
204 console.error(message);
208 _onDeviceMessage(message) { argument
209 let type = message.type;
[all …]
/device/google/contexthub/util/nanotool/
Dandroidcontexthub.cpp216 const std::vector<uint8_t>& message) { in WriteEvent() argument
219 LOGD("Writing %zu bytes", message.size()); in WriteEvent()
220 LOGD_BUF(message.data(), message.size()); in WriteEvent()
221 int ret = write(sensor_fd_, message.data(), message.size()); in WriteEvent()
223 LOGE("Couldn't write %zu bytes to device file: %s", message.size(), in WriteEvent()
226 } else if (ret != (int) message.size()) { in WriteEvent()
227 LOGW("Write returned %d, expected %zu", ret, message.size()); in WriteEvent()
238 std::vector<uint8_t>& message, int timeout_ms) { in ReadEvent() argument
270 result = ReadEventFromFd(read_fd, message); in ReadEvent()
362 int fd, std::vector<uint8_t>& message) { in ReadEventFromFd() argument
[all …]
/device/generic/goldfish/wifi/wifi_hal/
Dnetlink.cpp155 bool Netlink::sendMessage(const NetlinkMessage& message, in sendMessage() argument
163 mHandlers[message.sequence()] = handler; in sendMessage()
165 int bytesSent = ::send(mSocket, message.data(), message.size(), 0); in sendMessage()
166 if (bytesSent > 0 && static_cast<size_t>(bytesSent) == message.size()) { in sendMessage()
174 mHandlers.erase(message.sequence()); in sendMessage()
249 NetlinkMessage message(data, size); in notifyHandler() local
254 auto handler = mHandlers.find(message.sequence()); in notifyHandler()
263 replyHandler(message); in notifyHandler()
Dinterface.cpp91 NetlinkMessage message(RTM_GETLINK, mNetlink.getSequenceNumber()); in getLinkStats() local
93 ifinfomsg* info = message.payload<ifinfomsg>(); in getLinkStats()
100 bool success = mNetlink.sendMessage(message, in getLinkStats()
262 const NetlinkMessage& message) { in onLinkStatsReply() argument
263 if (message.size() < sizeof(nlmsghdr) + sizeof(ifinfomsg)) { in onLinkStatsReply()
267 if (message.type() != RTM_NEWLINK) { in onLinkStatsReply()
269 static_cast<unsigned int>(message.type())); in onLinkStatsReply()
283 if (message.getAttribute(IFLA_STATS64, &netlinkStats64)) { in onLinkStatsReply()
286 } else if (message.getAttribute(IFLA_STATS, &netlinkStats)) { in onLinkStatsReply()
/device/generic/goldfish/dhcp/common/include/
Dresult.h29 static Result error(std::string message) { in error() argument
30 return Result(message); in error()
48 explicit Result(std::string message) in Result() argument
49 : mMessage(message), mSuccess(false) { in Result()
Dsocket.h49 const Message& message);
59 const Message& message);
62 Result receiveFromInterface(Message* message, unsigned int* interfaceIndex);
70 Message* message,
/device/generic/goldfish/network/netmgr/
Dresult.h29 static Result error(std::string message) { in error() argument
30 return Result(message); in error()
48 explicit Result(std::string message) in Result() argument
49 : mMessage(message), mSuccess(false) { in Result()
/device/generic/goldfish/network/wifi_forwarder/
Dresult.h29 static Result error(std::string message) { in error() argument
30 return Result(message); in error()
48 explicit Result(std::string message) in Result() argument
49 : mMessage(message), mSuccess(false) { in Result()
/device/google/contexthub/contexthubhal/
Dnanohubhal.h71 message = data; in HubMessage()
77 message = data_.get(); in HubMessage()
88 message = msg->message; in HubMessage()
91 if (msg->message_len > 0 && msg->message != nullptr) { in HubMessage()
93 memcpy(data_.get(), msg->message, msg->message_len); in HubMessage()
94 message = data_.get(); in HubMessage()
107 other.message = nullptr;
/device/sample/apps/tv/SetupCustomizationSample/app/src/main/java/com/google/android/tv/setup/customizationsample/
DBaseActivity.java61 protected void log(String message) { in log() argument
62 Log.d(TAG, message); in log()
110 StringBuilder message = new StringBuilder(); in registerKeyHandler() local
111 message.append("finish() and send " + resultCodeAsString(resultCode)); in registerKeyHandler()
113 message.append(" - ").append(addendum); in registerKeyHandler()
118 message.append(" ("); in registerKeyHandler()
121 message.append(key).append('=').append(value).append(','); in registerKeyHandler()
123 message.append(')'); in registerKeyHandler()
133 keyDescriptions.put(keyCode, message.toString()); in registerKeyHandler()
/device/sample/apps/tv/SetupValidation/app/src/main/java/com/google/android/tv/setup/customizationsample/
DBaseActivity.java61 protected void log(String message) { in log() argument
62 Log.d(TAG, message); in log()
110 StringBuilder message = new StringBuilder(); in registerKeyHandler() local
111 message.append("finish() and send " + resultCodeAsString(resultCode)); in registerKeyHandler()
113 message.append(" - ").append(addendum); in registerKeyHandler()
118 message.append(" ("); in registerKeyHandler()
121 message.append(key).append('=').append(value).append(','); in registerKeyHandler()
123 message.append(')'); in registerKeyHandler()
133 keyDescriptions.put(keyCode, message.toString()); in registerKeyHandler()
/device/google/cuttlefish/common/libs/net/
Dnetlink_client.cpp36 virtual bool Send(const NetlinkRequest& message);
106 bool NetlinkClientImpl::Send(const NetlinkRequest& message) { in Send() argument
109 message.RequestData(), in Send()
110 message.RequestLength() in Send()
128 return CheckResponse(message.SeqNo()); in Send()
/device/google/cuttlefish/guest/monitoring/cuttlefish_service/java/com/android/google/gce/gceservice/
DBootReporter.java111 public void reportMessage(String message) { in reportMessage() argument
112 Log.i(LOG_TAG, message); in reportMessage()
113 mKmsgWriter.printf(KLOG_FORMAT, KLOG_NOTICE, LOG_TAG, message); in reportMessage()
117 mMessageList.add("[" + date + "] " + message); in reportMessage()

1234