Home
last modified time | relevance | path

Searched refs:MessageType (Results 1 – 25 of 57) sorted by relevance

123

/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubTestConstants.java254 public enum MessageType { enum in ContextHubTestConstants
329 MessageType(int value) { in MessageType() method in ContextHubTestConstants.MessageType
357 public static MessageType fromInt(int value, String errorMessage) { in fromInt()
358 for (MessageType type : MessageType.values()) { in fromInt()
367 return MessageType.INVALID_MESSAGE_TYPE; in fromInt()
DContextHubSimpleHeapAllocTestExecutor.java46 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp()
47 if (type != ContextHubTestConstants.MessageType.CONTINUE) { in handleMessageFromNanoApp()
60 sendMessageToNanoAppOrFail(nanoAppId, ContextHubTestConstants.MessageType.CONTINUE.asInt(), in handleMessageFromNanoApp()
DContextHubInfoByIdTestExecutor.java46 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp()
47 if (type != ContextHubTestConstants.MessageType.CONTINUE) { in handleMessageFromNanoApp()
59 sendMessageToNanoAppOrFail(nanoAppId, ContextHubTestConstants.MessageType.CONTINUE.asInt(), in handleMessageFromNanoApp()
DContextHubEventBetweenAppsTestExecutor.java70 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp()
71 if (type != ContextHubTestConstants.MessageType.CONTINUE) { in handleMessageFromNanoApp()
114 ContextHubTestConstants.MessageType.CONTINUE.asInt(), buffer.array()); in handleMessageFromNanoApp()
119 ContextHubTestConstants.MessageType.CONTINUE.asInt(), buffer.array()); in handleMessageFromNanoApp()
DContextHubSendMessageToHostTestExecutor.java76 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp()
77 if (type != ContextHubTestConstants.MessageType.CONTINUE) { in handleMessageFromNanoApp()
150 message.getNanoAppId(), ContextHubTestConstants.MessageType.CONTINUE.asInt(), in hackMessageFromNanoApp()
185 sendMessageToNanoAppOrFail(nanoAppId, ContextHubTestConstants.MessageType.CONTINUE.asInt(), in sendEmptyMessage()
DContextHubEstimatedHostTimeTestExecutor.java51 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp()
52 if (type != ContextHubTestConstants.MessageType.CONTINUE) { in handleMessageFromNanoApp()
86 ContextHubTestConstants.MessageType.CONTINUE.asInt(), in handleMessageFromNanoApp()
DContextHubGetTimeTestExecutor.java74 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp()
75 if (type != ContextHubTestConstants.MessageType.CONTINUE) { in handleMessageFromNanoApp()
97 ContextHubTestConstants.MessageType.CONTINUE.asInt(), in handleMessageFromNanoApp()
DContextHubNanoAppInfoEventsTestExecutor.java62 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp()
63 if (type != ContextHubTestConstants.MessageType.CONTINUE) { in handleMessageFromNanoApp()
104 ContextHubTestConstants.MessageType.CONTINUE.asInt(), buffer.array()); in handleMessageFromNanoApp()
DContextHubReliableMessageTestExecutor.java117 case ChreReliableMessageTest.MessageType.TEST_RESULT_VALUE: in messageToHostTest()
132 case ChreReliableMessageTest.MessageType.HOST_ECHO_MESSAGE_VALUE: in messageToHostTest()
162 ChreReliableMessageTest.MessageType.SEND_MESSAGES_VALUE, in messageToHostTest()
198 == ChreReliableMessageTest.MessageType.NANOAPP_ECHO_MESSAGE_VALUE) { in messageToNanoappTest()
213 ChreReliableMessageTest.MessageType.NANOAPP_ECHO_MESSAGE_VALUE, in messageToNanoappTest()
/system/chre/apps/test/chqts/src/shared/
Dsend_message.h37 enum class MessageType : uint32_t { enum
115 void sendMessageToHost(MessageType messageType, const void *data = nullptr,
133 void sendStringToHost(MessageType messageType, const char *message,
141 sendStringToHost(MessageType::kFailure, message, value);
176 sendMessageToHost(MessageType::kSuccess); in sendSuccessToHost()
Dsend_message.cc66 static_cast<uint32_t>(MessageType::kFailure), in fatalError()
101 static void *prependMessageType(MessageType messageType, void *memory) { in prependMessageType()
113 static void internalSendMessage(MessageType messageType, void *data, in internalSendMessage()
126 void sendMessageToHost(MessageType messageType, const void *data, in sendMessageToHost()
139 void sendStringToHost(MessageType messageType, const char *message, in sendStringToHost()
195 sendStringToHost(MessageType::kInternalFailure, message, value); in sendInternalFailureToHost()
/system/chre/apps/test/chqts/src/general_test/
Dget_time_test.cc27 using nanoapp_testing::MessageType;
68 sendMessageToHost(MessageType::kContinue, &prevTime, sizeof(prevTime)); in setUp()
77 MessageType::kContinue, 0); in handleEvent()
84 sendMessageToHost(MessageType::kContinue, &time, sizeof(time)); in handleEvent()
Dnanoapp_info_by_app_id_test.cc33 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp()
43 nanoapp_testing::MessageType::kContinue, sizeof(&appVersion)); in handleEvent()
Dnanoapp_info_by_instance_id_test.cc34 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp()
44 nanoapp_testing::MessageType::kContinue, sizeof(&appVersion)); in handleEvent()
Devent_between_apps_test.cc30 using nanoapp_testing::MessageType;
57 senderInstanceId, eventType, eventData, MessageType::kContinue, in handleEvent()
94 senderInstanceId, eventType, eventData, MessageType::kContinue, in handleEvent()
Destimated_host_time_test.cc55 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue, in handleEvent()
68 nanoapp_testing::MessageType::kContinue); in verifyIncreasingTime()
Dsimple_heap_alloc_test.cc29 using nanoapp_testing::MessageType;
156 sendMessageToHost(MessageType::kContinue); in setUp()
164 MessageType::kContinue, 0); in handleEvent()
Dnanoapp_info_events_test_observer.cc30 nanoapp_testing::sendMessageToHost(nanoapp_testing::MessageType::kContinue); in setUp()
52 nanoapp_testing::MessageType::kContinue, sizeof(performerInstanceId)); in handleEvent()
Dtest.cc42 sendMessageToHost(nanoapp_testing::MessageType::kSkipped); in testSetUp()
91 nanoapp_testing::MessageType expectedMessageType, in getMessageDataFromHostEvent()
/system/chre/apps/power_test/common/
Drequest_manager.cc107 static_cast<power_test::MessageType>(hostMessage.messageType))); in verifyMessage()
119 using power_test::MessageType;
143 static_cast<uint32_t>(MessageType::NANOAPP_RESPONSE), in sendResponseMessageToHost()
345 static_cast<uint32_t>(MessageType::WIFI_NAN_SUB_RESP), in handleNanIdResult()
393 switch (static_cast<MessageType>(hostMessage.messageType)) { in handleMessageFromHost()
394 case MessageType::TIMER_TEST: { in handleMessageFromHost()
402 case MessageType::WIFI_SCAN_TEST: { in handleMessageFromHost()
413 case MessageType::GNSS_LOCATION_TEST: { in handleMessageFromHost()
422 case MessageType::CELL_QUERY_TEST: { in handleMessageFromHost()
430 case MessageType::AUDIO_REQUEST_TEST: { in handleMessageFromHost()
[all …]
/system/chre/apps/power_test/common/include/generated/
Dchre_power_test_generated.h51 enum class MessageType : uint32_t { enum
81 inline const MessageType (&EnumValuesMessageType())[13] { in EnumValuesMessageType()
82 static const MessageType values[] = { in EnumValuesMessageType()
83 MessageType::UNSPECIFIED, in EnumValuesMessageType()
84 MessageType::TIMER_TEST, in EnumValuesMessageType()
85 MessageType::WIFI_SCAN_TEST, in EnumValuesMessageType()
86 MessageType::GNSS_LOCATION_TEST, in EnumValuesMessageType()
87 MessageType::CELL_QUERY_TEST, in EnumValuesMessageType()
88 MessageType::AUDIO_REQUEST_TEST, in EnumValuesMessageType()
89 MessageType::SENSOR_REQUEST_TEST, in EnumValuesMessageType()
[all …]
/system/chre/java/test/stress/src/com/google/android/chre/test/stress/
DContextHubStressTestExecutor.java105 case ChreStressTest.MessageType.TEST_RESULT_VALUE: { in onMessageFromNanoApp()
115 case ChreStressTest.MessageType.TEST_WIFI_SCAN_MONITOR_TRIGGERED_VALUE: { in onMessageFromNanoApp()
120 case ChreStressTest.MessageType.CAPABILITIES_VALUE: { in onMessageFromNanoApp()
242 mNanoAppId, ChreStressTest.MessageType.TEST_HOST_RESTARTED_VALUE, in runWifiScanMonitorRestartTest()
248 mNanoAppId, ChreStressTest.MessageType.GET_CAPABILITIES_VALUE, in runWifiScanMonitorRestartTest()
327 mNanoAppId, ChreStressTest.MessageType.TEST_COMMAND_VALUE, in sendTestMessage()
/system/chre/host/common/test/power_test/
Dchre_power_test_client.cc133 using chre::power_test::MessageType;
196 std::unordered_map<string, MessageType> messageTypeMap{
197 {"timer", MessageType::TIMER_TEST},
198 {"wifi", MessageType::WIFI_SCAN_TEST},
199 {"gnss", MessageType::GNSS_LOCATION_TEST},
200 {"cell", MessageType::CELL_QUERY_TEST},
201 {"audio", MessageType::AUDIO_REQUEST_TEST},
202 {"sensor", MessageType::SENSOR_REQUEST_TEST},
203 {"breakit", MessageType::BREAK_IT_TEST},
204 {"gnss_meas", MessageType::GNSS_MEASUREMENT_TEST},
[all …]
/system/chre/java/test/settings/src/com/google/android/chre/test/setting/
DContextHubSettingsTestExecutor.java91 case ChreSettingsTest.MessageType.TEST_RESULT_VALUE: { in onMessageFromNanoApp()
102 case ChreSettingsTest.MessageType.TEST_SETUP_COMPLETE_VALUE: { in onMessageFromNanoApp()
152 mNanoAppId, ChreSettingsTest.MessageType.TEST_COMMAND_VALUE, in setupTestAssertSuccess()
181 mNanoAppId, ChreSettingsTest.MessageType.TEST_COMMAND_VALUE, in startTestAssertSuccess()
/system/connectivity/wificond/net/
Dnetlink_manager.h41 struct MessageType { struct
43 MessageType() {}; in MessageType() argument
44 explicit MessageType(uint16_t id) { in MessageType() function
339 std::map<std::string, MessageType> message_types_;

123