Home
last modified time | relevance | path

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

123456789

/system/core/fastboot/
Dsocket_mock.cpp52 std::string message(reinterpret_cast<const char*>(data), length); in Send()
53 if (events_.front().message != message) { in Send()
54 ADD_FAILURE() << "Send() expected " << events_.front().message << ", but got " << message; in Send()
85 const std::string& message = event.message; in Receive() local
86 if (message.length() > length) { in Receive()
87 ADD_FAILURE() << "Receive(): not enough bytes (" << length << ") for " << message; in Receive()
92 ssize_t return_value = message.length(); in Receive()
95 if (message.empty()) { in Receive()
98 memcpy(data, message.data(), message.length()); in Receive()
125 void SocketMock::ExpectSend(std::string message) { in ExpectSend() argument
[all …]
/system/chre/apps/chqts/src/shared/
Dsend_message.cc34 static void freeDumbAllocMessage(void *message, size_t messageSize) { in freeDumbAllocMessage() argument
40 if (!gDumbAlloc.free(message)) { in freeDumbAllocMessage()
42 reinterpret_cast<size_t>(message) & UINT32_C(0xFFFFFFFF); in freeDumbAllocMessage()
48 static void freeHeapMessage(void *message, size_t /* messageSize */) { in freeHeapMessage() argument
49 if (gDumbAlloc.contains(message)) { in freeHeapMessage()
51 reinterpret_cast<size_t>(message) & UINT32_C(0xFFFFFFFF); in freeHeapMessage()
55 chreHeapFree(message); in freeHeapMessage()
136 void sendStringToHost(MessageType messageType, const char *message, in sendStringToHost() argument
138 if (message == nullptr) { in sendStringToHost()
142 const size_t messageStrlen = strlen(message); in sendStringToHost()
[all …]
Dsend_message.h133 void sendStringToHost(MessageType messageType, const char *message,
139 inline void sendFailureToHost(const char *message,
141 sendStringToHost(MessageType::kFailure, message, value);
148 void sendFatalFailureToHost(const char *message,
156 void sendInternalFailureToHost(const char *message,
/system/chre/platform/android/
Dhost_link.cc54 void sendFlatbufferToHost(T& message, uint16_t hostClientId) { in sendFlatbufferToHost() argument
61 container.message.Set(std::move(message)); in sendFlatbufferToHost()
77 void handleNanoappMessage(const fbs::NanoappMessageT& message) { in handleNanoappMessage() argument
82 message.app_id, message.message_type, message.host_endpoint, in handleNanoappMessage()
83 message.message.data(), message.message.size()); in handleNanoappMessage()
182 bool handleMessageFromHost(void *message, size_t length) { in handleMessageFromHost() argument
183 bool success = HostProtocolCommon::verifyMessage(message, length); in handleMessageFromHost()
186 fbs::GetMessageContainer(message)->UnPackTo(&container); in handleMessageFromHost()
188 switch (container.message.type) { in handleMessageFromHost()
190 handleNanoappMessage(*container.message.AsNanoappMessage()); in handleMessageFromHost()
[all …]
/system/keymaster/tests/
Dandroid_keymaster_test.cpp462 string message = "12345678901234567890123456789012"; in TEST_P() local
464 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
476 string message(1024, 'a'); in TEST_P() local
478 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
489 string message = "12345678901234567890123456789012"; in TEST_P() local
506 string message(1024, 'a'); in TEST_P() local
508 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
519 string message(53, 'a'); in TEST_P() local
521 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
532 string message(54, 'a'); in TEST_P() local
[all …]
/system/core/trusty/keymaster/
Dtrusty_keymaster_device_test.cpp184 std::unique_ptr<uint8_t[]> message(build_message(message_len)); in TEST_F() local
187 EXPECT_EQ(KM_ERROR_OK, device.sign_data(&sig_params, ptr, size, message.get(), message_len, in TEST_F()
203 std::unique_ptr<uint8_t[]> message(build_message(message_len)); in TEST_F() local
206 EXPECT_EQ(KM_ERROR_UNKNOWN_ERROR, device.sign_data(&sig_params, ptr, size, message.get(), in TEST_F()
220 std::unique_ptr<uint8_t[]> message(build_message(message_len)); in TEST_F() local
223 EXPECT_EQ(KM_ERROR_UNKNOWN_ERROR, device.sign_data(&sig_params, ptr, size, message.get(), in TEST_F()
236 uint8_t message[] = "12345678901234567890123456789012"; in TEST_F() local
239 ASSERT_EQ(KM_ERROR_OK, device.sign_data(&sig_params, ptr, size, message, in TEST_F()
240 array_size(message) - 1, &signature, &siglen)); in TEST_F()
255 uint8_t message[] = ""; in TEST_F() local
[all …]
/system/iot/attestation/atap/libatap/
Datap_util.h71 #define atap_debug(message) \ argument
77 message, \
80 #define atap_debugv(message, ...) \ argument
86 message, \
90 #define atap_debug(message)
91 #define atap_debugv(message, ...)
97 #define atap_error(message) \ argument
103 message, \
106 #define atap_errorv(message, ...) \ argument
112 message, \
[all …]
Datap_sysdeps_posix.c37 void atap_print(const char* message) { in atap_print() argument
38 fprintf(stderr, "%s", message); in atap_print()
41 void atap_printv(const char* message, ...) { in atap_printv() argument
45 va_start(ap, message); in atap_printv()
46 for (m = message; m != NULL; m = va_arg(ap, const char*)) { in atap_printv()
/system/media/camera/docs/
Dcamera_device_info.mako13 message CameraDeviceInfo {
23 message PerCameraInfo {
24 message Rational {
29 message Size {
34 message SizeF {
39 message Rect {
46 message StreamConfigurations {
47 message StreamConfig {
57 message RangeInt {
62 message RangeLong {
[all …]
Dcamera_device_info.proto13 message CameraDeviceInfo {
23 message PerCameraInfo {
24 message Rational {
29 message Size {
34 message SizeF {
39 message Rect {
46 message StreamConfigurations {
47 message StreamConfig {
57 message RangeInt {
62 message RangeLong {
[all …]
/system/netd/client/
DFwmarkClient.cpp94 msghdr message; in send() local
95 memset(&message, 0, sizeof(message)); in send()
96 message.msg_iov = iov; in send()
97 message.msg_iovlen = ARRAY_SIZE(iov); in send()
106 message.msg_control = cmsgu.cmsg; in send()
107 message.msg_controllen = sizeof(cmsgu.cmsg); in send()
109 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in send()
116 if (TEMP_FAILURE_RETRY(sendmsg(mChannel, &message, 0)) == -1) { in send()
/system/core/storaged/
Dstoraged.proto7 message IOUsage {
18 message TaskIOUsage {
23 message UidRecord {
30 message UidIORecords {
35 message UidIOItem {
40 message UidIOUsage {
44 message IOPerfHistory {
54 message StoragedProto {
/system/chre/apps/chqts/src/general_test/
Dsend_message_to_host_test.cc93 void SendMessageToHostTest::smallMessageCallback(void *message, in smallMessageCallback() argument
100 if (message == nullptr) { in smallMessageCallback()
108 const uint8_t *msg = static_cast<const uint8_t*>(message); in smallMessageCallback()
140 void SendMessageToHostTest::smallMessageCallback0(void *message, in smallMessageCallback0() argument
142 smallMessageCallback<0>(message, messageSize); in smallMessageCallback0()
145 void SendMessageToHostTest::smallMessageCallback1(void *message, in smallMessageCallback1() argument
147 smallMessageCallback<1>(message, messageSize); in smallMessageCallback1()
162 void SendMessageToHostTest::largeMessageCallback(void *message, in largeMessageCallback() argument
169 if (message == nullptr) { in largeMessageCallback()
173 if (message == sLargeMessageData[0]) { in largeMessageCallback()
[all …]
Dsend_message_to_host_test.h57 void setUp(uint32_t messageSize, const void *message) override;
85 static void smallMessageCallback(void *message, size_t messageSize);
87 static void smallMessageCallback0(void *message, size_t messageSize);
88 static void smallMessageCallback1(void *message, size_t messageSize);
90 static void largeMessageCallback(void *message, size_t messageSize);
96 static bool sendMessageToHost(void *message, uint32_t messageSize,
Dcell_info_base.cc31 void CellInfoBase::sendFatalFailureInt32(const char *message, int32_t value) { in sendFatalFailureInt32() argument
33 nanoapp_testing::sendFatalFailureToHost(message, &val); in sendFatalFailureInt32()
36 void CellInfoBase::sendFatalFailureUint8(const char *message, uint8_t value) { in sendFatalFailureUint8() argument
38 nanoapp_testing::sendFatalFailureToHost(message, &val); in sendFatalFailureUint8()
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DDistroException.java24 public DistroException(String message) { in DistroException() argument
25 super(message); in DistroException()
28 public DistroException(String message, Throwable cause) { in DistroException() argument
29 super(message, cause); in DistroException()
/system/tpm/attestation/common/
Dinterface.proto34 message CreateGoogleAttestedKeyRequest {
50 message CreateGoogleAttestedKeyReply {
62 message GetKeyInfoRequest {
67 message GetKeyInfoReply {
81 message GetEndorsementInfoRequest {
85 message GetEndorsementInfoReply {
93 message GetAttestationKeyInfoRequest {
97 message GetAttestationKeyInfoReply {
111 message ActivateAttestationKeyRequest {
117 message ActivateAttestationKeyReply {
[all …]
Dattestation_ca.proto23 // This message holds all information to be sent to the attestation server in
25 message AttestationEnrollmentRequest {
55 message AttestationEnrollmentResponse {
57 // Detail response message. Included when the result is not OK.
63 message AttestationCertificateRequest {
72 // A message identifier to be included in the response.
85 message AttestationCertificateResponse {
87 // Detail response message. Included when the result is not OK.
93 // A message identifier from the request this message is responding to.
105 message AttestationResetRequest {
[all …]
/system/core/init/
Dsubcontext.proto20 message SubcontextCommand {
21 message ExecuteCommand { repeated string args = 1; }
22 message ExpandArgsCommand { repeated string args = 1; }
29 message SubcontextReply {
30 message Failure {
34 message ExpandArgsReply { repeated string expanded_args = 1; }
42 message PropertyToSet {
/system/extras/simpleperf/
DUnixSocket.h64 bool StoreMessage(const UnixSocketMessage& message) { in StoreMessage() argument
65 uint32_t aligned_len = Align(message.len, UnixSocketMessageAlignment); in StoreMessage()
70 if (message.len <= data_.size() - write_head) { in StoreMessage()
71 memcpy(data_.data() + write_head, &message, message.len); in StoreMessage()
74 memcpy(data_.data() + write_head, &message, len1); in StoreMessage()
75 memcpy(data_.data(), reinterpret_cast<const char*>(&message) + len1, in StoreMessage()
76 message.len - len1); in StoreMessage()
166 bool SendMessage(const UnixSocketMessage& message, bool undelayed) { in SendMessage() argument
168 if (no_more_message_ || !send_buffer_.StoreMessage(message)) { in SendMessage()
Dreport_sample.proto3 // message Record(record_0) (having record_size_0 bytes)
5 // message Record(record_1) (having record_size_1 bytes)
8 // message Record(record_N) (having record_size_N bytes)
17 message Sample {
23 message CallChainEntry {
56 message LostSituation {
61 message File {
72 message Thread {
78 message MetaInfo {
82 message Record {
/system/chre/host/common/
Dhost_protocol_host.cc47 const void *message, size_t messageLen, IChreMessageHandlers& handlers) { in decodeMessageFromChre() argument
48 bool success = verifyMessage(message, messageLen); in decodeMessageFromChre()
51 fbs::UnPackMessageContainer(message); in decodeMessageFromChre()
52 fbs::ChreMessageUnion& msg = container->message; in decodeMessageFromChre()
54 switch (container->message.type) { in decodeMessageFromChre()
132 const void *message, size_t messageLen, uint16_t *hostClientId, in extractHostClientIdAndType() argument
136 success = verifyMessage(message, messageLen); in extractHostClientIdAndType()
139 const fbs::MessageContainer *container = fbs::GetMessageContainer(message); in extractHostClientIdAndType()
150 bool HostProtocolHost::mutateHostClientId(void *message, size_t messageLen, in mutateHostClientId() argument
152 bool success = verifyMessage(message, messageLen); in mutateHostClientId()
[all …]
/system/core/adb/
Dprotocol.txt31 struct message {
40 Receipt of an invalid message header, corrupt message payload, or an
43 message stream will result in state getting out of sync.
45 The following sections describe the six defined message types in
51 *sender* of the message, so for a receiver, the meanings are effectively
60 The CONNECT message establishes the presence of a remote system.
62 declares the maximum message body size that the remote system
70 Both sides send a CONNECT message when the connection between them is
71 established. Until a CONNECT message is received no other messages may
72 be sent. Any messages received before a CONNECT message MUST be ignored.
[all …]
/system/chre/platform/shared/
Dhost_protocol_common.cc48 flatbuffers::Offset<void> message, uint16_t hostClientId) { in finalize() argument
51 builder, messageType, message, &hostAddr); in finalize()
55 bool HostProtocolCommon::verifyMessage(const void *message, size_t messageLen) { in verifyMessage() argument
58 if (message != nullptr) { in verifyMessage()
59 flatbuffers::Verifier verifier(static_cast<const uint8_t *>(message), in verifyMessage()
/system/tpm/tpm_manager/common/
Dtpm_manager.proto96 message NvramPolicyRecord {
114 message LocalData {
125 message DefineSpaceRequest {
133 message DefineSpaceReply {
137 message DestroySpaceRequest {
141 message DestroySpaceReply {
145 message WriteSpaceRequest {
152 message WriteSpaceReply {
156 message ReadSpaceRequest {
162 message ReadSpaceReply {
[all …]

123456789