1 /* 2 * Copyright 2022 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 #pragma once 18 19 #include "jni.h" 20 21 typedef struct { 22 jmethodID deviceAvailable; 23 jmethodID deviceUnavailable; 24 jmethodID streamConfigsChanged; 25 jmethodID firstFrameCaptured; 26 jmethodID tvMessageReceived; 27 } gTvInputHalClassInfoType; 28 29 typedef struct { 30 jclass clazz; 31 } gTvStreamConfigClassInfoType; 32 33 typedef struct { 34 jclass clazz; 35 jmethodID constructor; 36 jmethodID putByteArray; 37 jmethodID putString; 38 jmethodID putInt; 39 } gBundleClassInfoType; 40 41 typedef struct { 42 jclass clazz; 43 44 jmethodID constructor; 45 jmethodID streamId; 46 jmethodID type; 47 jmethodID maxWidth; 48 jmethodID maxHeight; 49 jmethodID generation; 50 jmethodID build; 51 } gTvStreamConfigBuilderClassInfoType; 52 53 typedef struct { 54 jclass clazz; 55 56 jmethodID constructor; 57 jmethodID deviceId; 58 jmethodID type; 59 jmethodID hdmiPortId; 60 jmethodID cableConnectionStatus; 61 jmethodID audioType; 62 jmethodID audioAddress; 63 jmethodID build; 64 } gTvInputHardwareInfoBuilderClassInfoType; 65