Home
last modified time | relevance | path

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

12345678

/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()
135 void sendStringToHost(MessageType messageType, const char *message, in sendStringToHost() argument
137 if (message == nullptr) { in sendStringToHost()
141 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/core/trusty/keymaster/
Dtrusty_keymaster_device_test.cpp184 UniquePtr<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 UniquePtr<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 UniquePtr<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 …]
Dtrusty_keymaster_main.cpp189 std::unique_ptr<uint8_t[]> message(new uint8_t[message_len]); in test_import_rsa() local
190 memset(message.get(), 'a', message_len); in test_import_rsa()
191 keymaster_blob_t input = {message.get(), message_len}, signature; in test_import_rsa()
225 std::unique_ptr<uint8_t[]> message(new uint8_t[message_len]); in test_rsa() local
226 memset(message.get(), 'a', message_len); in test_rsa()
227 keymaster_blob_t input = {message.get(), message_len}, signature; in test_rsa()
264 if (EVP_PKEY_verify(ctx.get(), signature.data, signature.data_length, message.get(), in test_rsa()
294 std::unique_ptr<uint8_t[]> message(new uint8_t[message_len]); in test_import_ecdsa() local
295 memset(message.get(), 'a', message_len); in test_import_ecdsa()
296 keymaster_blob_t input = {message.get(), message_len}, signature; in test_import_ecdsa()
[all …]
/system/keymaster/
Dandroid_keymaster_test.cpp511 string message = "12345678901234567890123456789012"; in TEST_P() local
513 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
525 string message(1024, 'a'); in TEST_P() local
527 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
538 string message = "12345678901234567890123456789012"; in TEST_P() local
555 string message(1024, 'a'); in TEST_P() local
557 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
568 string message(53, 'a'); in TEST_P() local
570 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
581 string message(54, 'a'); in TEST_P() local
[all …]
Dandroid_keymaster_test_utils.cpp264 keymaster_error_t Keymaster2Test::UpdateOperation(const string& message, string* output, in UpdateOperation() argument
267 keymaster_blob_t input = {reinterpret_cast<const uint8_t*>(message.c_str()), message.length()}; in UpdateOperation()
279 const string& message, in UpdateOperation() argument
283 keymaster_blob_t input = {reinterpret_cast<const uint8_t*>(message.c_str()), message.length()}; in UpdateOperation()
361 string Keymaster2Test::ProcessMessage(keymaster_purpose_t purpose, const string& message) { in ProcessMessage() argument
365 EXPECT_EQ(KM_ERROR_OK, FinishOperation(message, "" /* signature */, &result)); in ProcessMessage()
369 string Keymaster2Test::ProcessMessage(keymaster_purpose_t purpose, const string& message, in ProcessMessage() argument
376 EXPECT_EQ(KM_ERROR_OK, FinishOperation(update_params, message, "" /* signature */, &result)); in ProcessMessage()
380 string Keymaster2Test::ProcessMessage(keymaster_purpose_t purpose, const string& message, in ProcessMessage() argument
387 EXPECT_EQ(KM_ERROR_OK, FinishOperation(update_params, message, signature, &result)); in ProcessMessage()
[all …]
/system/netd/client/
DFwmarkClient.cpp83 msghdr message; in send() local
84 memset(&message, 0, sizeof(message)); in send()
85 message.msg_iov = iov; in send()
86 message.msg_iovlen = ARRAY_SIZE(iov); in send()
95 message.msg_control = cmsgu.cmsg; in send()
96 message.msg_controllen = sizeof(cmsgu.cmsg); in send()
98 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in send()
105 if (TEMP_FAILURE_RETRY(sendmsg(mChannel, &message, 0)) == -1) { in send()
/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/chre/host/common/
Dhost_protocol_host.cc60 const void *message, size_t messageLen, IChreMessageHandlers& handlers) { in decodeMessageFromChre() argument
61 bool success = verifyMessage(message, messageLen); in decodeMessageFromChre()
63 const fbs::MessageContainer *container = fbs::GetMessageContainer(message); in decodeMessageFromChre()
68 container->message()); in decodeMessageFromChre()
71 const flatbuffers::Vector<uint8_t> *msgData = nanoappMsg->message(); in decodeMessageFromChre()
80 container->message()); in decodeMessageFromChre()
96 container->message()); in decodeMessageFromChre()
105 container->message()); in decodeMessageFromChre()
114 container->message()); in decodeMessageFromChre()
123 container->message()); in decodeMessageFromChre()
[all …]
/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/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 {
46 message LostSituation {
51 message File {
62 message Thread {
68 message Record {
/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_chre.cc31 bool HostProtocolChre::decodeMessageFromHost(const void *message, in decodeMessageFromHost() argument
33 bool success = verifyMessage(message, messageLen); in decodeMessageFromHost()
38 const fbs::MessageContainer *container = fbs::GetMessageContainer(message); in decodeMessageFromHost()
44 container->message()); in decodeMessageFromHost()
47 const flatbuffers::Vector<uint8_t> *msgData = nanoappMsg->message(); in decodeMessageFromHost()
64 container->message()); in decodeMessageFromHost()
75 container->message()); in decodeMessageFromHost()
84 container->message()); in decodeMessageFromHost()
166 auto message = fbs::CreateLogMessage(builder, logBufferOffset); in encodeLogMessages() local
167 finalize(builder, fbs::ChreMessage::LogMessage, message.Union()); in encodeLogMessages()
[all …]
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 …]
/system/netd/server/
DFwmarkServer.cpp66 msghdr message; in processClient() local
67 memset(&message, 0, sizeof(message)); in processClient()
68 message.msg_iov = iov; in processClient()
69 message.msg_iovlen = ARRAY_SIZE(iov); in processClient()
77 message.msg_control = cmsgu.cmsg; in processClient()
78 message.msg_controllen = sizeof(cmsgu.cmsg); in processClient()
80 … int messageLength = TEMP_FAILURE_RETRY(recvmsg(client->getSocket(), &message, MSG_CMSG_CLOEXEC)); in processClient()
100 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in processClient()
/system/chre/core/
Dhost_comms_manager.cc52 msgToHost->message.wrap(static_cast<uint8_t *>(messageData), messageSize); in sendMessageToHostFromNanoapp()
79 } else if (!msgFromHost->message.copy_array( in deliverNanoappMessageFromHost()
89 msgFromHost->fromHostData.message = msgFromHost->message.data(); in deliverNanoappMessageFromHost()
127 void HostCommsManager::onMessageToHostComplete(const MessageToHost *message) { in onMessageToHostComplete() argument
130 auto *msgToHost = const_cast<MessageToHost *>(message); in onMessageToHostComplete()
173 msgToHost->message.data(), msgToHost->message.size()); in freeMessageToHost()

12345678