Home | History | Annotate | Download | only in BroadcastRadio
      1 /**
      2  * Copyright (C) 2017 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_SERVER_BROADCASTRADIO_REGIONS_H
     18 #define _ANDROID_SERVER_BROADCASTRADIO_REGIONS_H
     19 
     20 #include "types.h"
     21 
     22 #include <android/hardware/broadcastradio/1.1/types.h>
     23 
     24 namespace android {
     25 namespace server {
     26 namespace BroadcastRadio {
     27 namespace regions {
     28 
     29 namespace V1_0 = hardware::broadcastradio::V1_0;
     30 
     31 struct RegionalBandConfig {
     32     Region region;
     33     V1_0::BandConfig bandConfig;
     34 };
     35 
     36 std::vector<RegionalBandConfig>
     37 mapRegions(const hardware::hidl_vec<V1_0::BandConfig>& bands);
     38 
     39 } // namespace regions
     40 } // namespace BroadcastRadio
     41 } // namespace server
     42 } // namespace android
     43 
     44 #endif // _ANDROID_SERVER_BROADCASTRADIO_REGIONS_H
     45