Home
last modified time | relevance | path

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

123

/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubTestConstants.java249 public enum MessageType { enum in ContextHubTestConstants
324 MessageType(int value) { in MessageType() method in ContextHubTestConstants.MessageType
352 public static MessageType fromInt(int value, String errorMessage) { in fromInt()
353 for (MessageType type : MessageType.values()) { in fromInt()
362 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()
DContextHubEstimatedHostTimeTestExecutor.java45 ContextHubTestConstants.MessageType type, byte[] data) { in handleMessageFromNanoApp()
46 if (type != ContextHubTestConstants.MessageType.CONTINUE) { in handleMessageFromNanoApp()
54 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()
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()
/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.cc62 static_cast<uint32_t>(MessageType::kFailure), in fatalError()
97 static void *prependMessageType(MessageType messageType, void *memory) { in prependMessageType()
109 static void internalSendMessage(MessageType messageType, void *data, in internalSendMessage()
122 void sendMessageToHost(MessageType messageType, const void *data, in sendMessageToHost()
135 void sendStringToHost(MessageType messageType, const char *message, in sendStringToHost()
191 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()
Dsimple_heap_alloc_test.cc29 using nanoapp_testing::MessageType;
156 sendMessageToHost(MessageType::kContinue); in setUp()
164 MessageType::kContinue, 0); in handleEvent()
Destimated_host_time_test.cc62 nanoapp_testing::MessageType::kContinue, sizeof(givenHostTime)); in handleEvent()
90 nanoapp_testing::MessageType::kContinue); in verifyIncreasingTime()
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.cc38 sendMessageToHost(nanoapp_testing::MessageType::kSkipped); in testSetUp()
88 nanoapp_testing::MessageType expectedMessageType, in getMessageDataFromHostEvent()
/system/chre/apps/power_test/common/
Drequest_manager.cc105 static_cast<power_test::MessageType>(hostMessage.messageType))); in verifyMessage()
117 using power_test::MessageType;
305 switch (static_cast<MessageType>(hostMessage.messageType)) { in handleMessageFromHost()
306 case MessageType::TIMER_TEST: { in handleMessageFromHost()
314 case MessageType::WIFI_SCAN_TEST: { in handleMessageFromHost()
325 case MessageType::GNSS_LOCATION_TEST: { in handleMessageFromHost()
334 case MessageType::CELL_QUERY_TEST: { in handleMessageFromHost()
342 case MessageType::AUDIO_REQUEST_TEST: { in handleMessageFromHost()
349 case MessageType::SENSOR_REQUEST_TEST: { in handleMessageFromHost()
358 case MessageType::BREAK_IT_TEST: { in handleMessageFromHost()
[all …]
/system/chre/apps/power_test/common/include/generated/
Dchre_power_test_generated.h42 enum class MessageType : uint32_t { enum
66 inline const MessageType (&EnumValuesMessageType())[10] { in EnumValuesMessageType()
67 static const MessageType values[] = { in EnumValuesMessageType()
68 MessageType::UNSPECIFIED, in EnumValuesMessageType()
69 MessageType::TIMER_TEST, in EnumValuesMessageType()
70 MessageType::WIFI_SCAN_TEST, in EnumValuesMessageType()
71 MessageType::GNSS_LOCATION_TEST, in EnumValuesMessageType()
72 MessageType::CELL_QUERY_TEST, in EnumValuesMessageType()
73 MessageType::AUDIO_REQUEST_TEST, in EnumValuesMessageType()
74 MessageType::SENSOR_REQUEST_TEST, in EnumValuesMessageType()
[all …]
/system/connectivity/wificond/net/
Dnetlink_manager.h40 struct MessageType { struct
42 MessageType() {}; in MessageType() argument
43 explicit MessageType(uint16_t id) { in MessageType() function
329 std::map<std::string, MessageType> message_types_;
/system/chre/java/test/settings/src/com/google/android/chre/test/setting/
DContextHubSettingsTestExecutor.java92 case ChreSettingsTest.MessageType.TEST_RESULT_VALUE: { in onMessageFromNanoApp()
103 case ChreSettingsTest.MessageType.TEST_SETUP_COMPLETE_VALUE: { in onMessageFromNanoApp()
152 mNanoAppId, ChreSettingsTest.MessageType.TEST_COMMAND_VALUE, in setupTestAssertSuccess()
185 mNanoAppId, ChreSettingsTest.MessageType.TEST_COMMAND_VALUE, in startTestAssertSuccess()
/system/chre/host/common/test/power_test/
Dchre_power_test_client.cc126 using chre::power_test::MessageType;
179 std::unordered_map<string, MessageType> messageTypeMap{
180 {"timer", MessageType::TIMER_TEST},
181 {"wifi", MessageType::WIFI_SCAN_TEST},
182 {"gnss", MessageType::GNSS_LOCATION_TEST},
183 {"cell", MessageType::CELL_QUERY_TEST},
184 {"audio", MessageType::AUDIO_REQUEST_TEST},
185 {"sensor", MessageType::SENSOR_REQUEST_TEST},
186 {"breakit", MessageType::BREAK_IT_TEST},
187 {"gnss_meas", MessageType::GNSS_MEASUREMENT_TEST}};
[all …]
/system/chre/java/test/stress/src/com/google/android/chre/test/stress/
DContextHubStressTestExecutor.java91 case ChreStressTest.MessageType.TEST_RESULT_VALUE: { in onMessageFromNanoApp()
101 case ChreStressTest.MessageType.TEST_WIFI_SCAN_MONITOR_TRIGGERED_VALUE: { in onMessageFromNanoApp()
219 mNanoAppId, ChreStressTest.MessageType.TEST_HOST_RESTARTED_VALUE, in runWifiScanMonitorRestartTest()
267 mNanoAppId, ChreStressTest.MessageType.TEST_COMMAND_VALUE, in sendTestMessage()
/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/
DChreCrossValidatorWifi.java166 int messageType = ChreCrossValidationWifi.MessageType.STEP_START_VALUE; in makeStepStartMessage()
219 int messageType = ChreCrossValidationWifi.MessageType.USE_SCAN_RESULTS_SIZE_THRESHOLD_VALUE; in sendMessageUseScanResultsThresholdMessage()
230 int messageType = ChreCrossValidationWifi.MessageType.SCAN_RESULT_VALUE; in makeWifiScanResultMessage()
244 == ChreCrossValidationWifi.MessageType.STEP_RESULT_VALUE) { in parseDataFromNanoAppMessage()
265 == ChreCrossValidationWifi.MessageType.WIFI_CAPABILITIES_VALUE) { in parseDataFromNanoAppMessage()

123