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_BROADCASTRADIORADIO_TUNER_H
     18 #define _ANDROID_SERVER_BROADCASTRADIORADIO_TUNER_H
     19 
     20 #include "types.h"
     21 
     22 #include "JavaRef.h"
     23 
     24 #include <android/hardware/broadcastradio/1.1/IBroadcastRadio.h>
     25 #include <android/hardware/broadcastradio/1.1/ITuner.h>
     26 #include <android/hardware/broadcastradio/1.1/ITunerCallback.h>
     27 #include <jni.h>
     28 #include <utils/StrongPointer.h>
     29 
     30 namespace android {
     31 
     32 void register_android_server_broadcastradio_Tuner(JavaVM *vm, JNIEnv *env);
     33 
     34 namespace server {
     35 namespace BroadcastRadio {
     36 namespace Tuner {
     37 
     38 void assignHalInterfaces(JNIEnv *env, JavaRef<jobject> const &jTuner,
     39         sp<hardware::broadcastradio::V1_0::IBroadcastRadio> halModule,
     40         sp<hardware::broadcastradio::V1_0::ITuner> halTuner);
     41 
     42 sp<hardware::broadcastradio::V1_1::ITunerCallback>
     43 getNativeCallback(JNIEnv *env, JavaRef<jobject> const &tuner);
     44 
     45 Region getRegion(JNIEnv *env, jobject obj);
     46 
     47 } // namespace Tuner
     48 } // namespace BroadcastRadio
     49 } // namespace server
     50 } // namespace android
     51 
     52 #endif // _ANDROID_SERVER_BROADCASTRADIORADIO_TUNER_H
     53