1 #ifndef ANDROID_HARDWARE_AUTOMOTIVE_AUDIOCONTROL_V1_0_AUDIOCONTROL_H 2 #define ANDROID_HARDWARE_AUTOMOTIVE_AUDIOCONTROL_V1_0_AUDIOCONTROL_H 3 4 #include <android/hardware/automotive/audiocontrol/1.0/IAudioControl.h> 5 #include <hidl/MQDescriptor.h> 6 #include <hidl/Status.h> 7 8 namespace android { 9 namespace hardware { 10 namespace automotive { 11 namespace audiocontrol { 12 namespace V1_0 { 13 namespace implementation { 14 15 using ::android::hardware::hidl_array; 16 using ::android::hardware::hidl_memory; 17 using ::android::hardware::hidl_string; 18 using ::android::hardware::hidl_vec; 19 using ::android::hardware::Return; 20 using ::android::hardware::Void; 21 using ::android::sp; 22 23 struct AudioControl : public IAudioControl { 24 public: 25 // Methods from ::android::hardware::automotive::audiocontrol::V1_0::IAudioControl follow. 26 Return<int32_t> getBusForContext(ContextNumber contextNumber) override; 27 Return<void> setBalanceTowardRight(float value) override; 28 Return<void> setFadeTowardFront(float value) override; 29 30 // Implementation details 31 AudioControl(); 32 }; 33 34 } // namespace implementation 35 } // namespace V1_0 36 } // namespace audiocontrol 37 } // namespace automotive 38 } // namespace hardware 39 } // namespace android 40 41 #endif // ANDROID_HARDWARE_AUTOMOTIVE_AUDIOCONTROL_V1_0_AUDIOCONTROL_H 42