| shubang | 23aa3ac | 2020-09-07 18:56:28 -0700 | [diff] [blame^] | 1 | /** | 
 | 2 |  * Copyright (c) 2020, The Android Open Source Project | 
 | 3 |  * | 
 | 4 |  * Licensed under the Apache License, Version 2.0 (the "License"); | 
 | 5 |  * you may not use this file except in compliance with the License. | 
 | 6 |  * You may obtain a copy of the License at | 
 | 7 |  * | 
 | 8 |  *     http://www.apache.org/licenses/LICENSE-2.0 | 
 | 9 |  * | 
 | 10 |  * Unless required by applicable law or agreed to in writing, software | 
 | 11 |  * distributed under the License is distributed on an "AS IS" BASIS, | 
 | 12 |  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
 | 13 |  * See the License for the specific language governing permissions and | 
 | 14 |  * limitations under the License. | 
 | 15 |  */ | 
 | 16 |  | 
 | 17 | #ifndef ANDROID_MEDIA_TUNERSERVICE_H | 
 | 18 | #define ANDROID_MEDIA_TUNERSERVICE_H | 
 | 19 |  | 
 | 20 | #include <aidl/android/media/tv/tuner/BnTunerService.h> | 
 | 21 | #include <android/hardware/tv/tuner/1.0/ITuner.h> | 
 | 22 |  | 
 | 23 | using Status = ::ndk::ScopedAStatus; | 
 | 24 | using ::aidl::android::media::tv::tuner::BnTunerService; | 
 | 25 | using ::android::hardware::tv::tuner::V1_0::ITuner; | 
 | 26 |  | 
 | 27 | namespace android { | 
 | 28 |  | 
 | 29 | class TunerService : public BnTunerService { | 
 | 30 |  | 
 | 31 | public: | 
 | 32 |     static char const *getServiceName() { return "media.tuner"; } | 
 | 33 |     static void instantiate(); | 
 | 34 |     TunerService(); | 
 | 35 |     virtual ~TunerService(); | 
 | 36 |     Status getFrontendIds(std::vector<int32_t>* ids, int32_t* _aidl_return) override; | 
 | 37 |  | 
 | 38 | private: | 
 | 39 |     static sp<ITuner> mTuner; | 
 | 40 | }; | 
 | 41 |  | 
 | 42 | } // namespace android | 
 | 43 |  | 
 | 44 | #endif // ANDROID_MEDIA_TUNERSERVICE_H |