1syntax = "proto2"; 2 3package chre_audio_concurrency_test; 4 5option java_package = "com.google.android.chre.nanoapp.proto"; 6option java_outer_classname = "ChreAudioConcurrencyTest"; 7 8import "chre_test_common.proto"; 9 10// Nanoappp message type can be either host to chre (H2C) or chre to host (C2H) 11enum MessageType { 12 // Reserved for corrupted messages 13 UNDEFINED = 0; 14 15 // H2C: A message to start a test step. 16 // Payload must be TestCommand. 17 TEST_COMMAND = 1; 18 19 // C2H: A message indicating the test result. 20 // Payload must be chre_test_common.TestResult. 21 TEST_RESULT = 2; 22 23 // C2H: A message indicating that CHRE audio has been enabled and 24 // data has been received, after a previously received ENABLE_AUDIO 25 // step from a TEST_COMMAND message. No payload. 26 TEST_AUDIO_ENABLED = 3; 27} 28 29// A message to start a test step. 30message TestCommand { 31 enum Step { 32 UNDEFINED = 0; 33 // Sets up the test by enabling CHRE audio and verifying data reception. 34 ENABLE_AUDIO = 1; 35 // The host will send this step when the AP has held and released access 36 // to the mic. The nanoapp should verify that audio data reception resumes. 37 // This occurs with no verification of any gap between audio data events. 38 // See ENABLE_AUDIO_WITH_GAP_VERIFICATION. 39 VERIFY_AUDIO_RESUME = 2; 40 // Sets up the test by enabling CHRE audio and verifying data reception. 41 // Also verifies that a gap between CHRE audio data events triggers the 42 // appropriate audio sampling status change event. 43 ENABLE_AUDIO_WITH_GAP_VERIFICATION = 3; 44 } 45 46 // The test step. 47 optional Step step = 1; 48} 49