Lines Matching refs:env

40 DvbManager::DvbManager(JNIEnv *env, jobject)  in DvbManager()  argument
47 jclass clazz = env->FindClass("com/android/tv/tuner/TunerHal"); in DvbManager()
49 env->GetMethodID(clazz, "openDvbFrontEndFd", "()I"); in DvbManager()
50 mOpenDvbDemuxMethodID = env->GetMethodID(clazz, "openDvbDemuxFd", "()I"); in DvbManager()
51 mOpenDvbDvrMethodID = env->GetMethodID(clazz, "openDvbDvrFd", "()I"); in DvbManager()
117 int DvbManager::tune(JNIEnv *env, jobject thiz, in tune() argument
119 return tuneInternal(env, thiz, DELIVERY_SYSTEM_UNDEFINED, frequency, in tune()
123 int DvbManager::tune(JNIEnv *env, jobject thiz, in tune() argument
126 return tuneInternal(env, thiz, deliverySystemType, frequency, in tune()
130 int DvbManager::tuneInternal(JNIEnv *env, jobject thiz, in tuneInternal() argument
135 if (openDvbFe(env, thiz) != 0) { in tuneInternal()
297 openDvbDvr(env, thiz); in tuneInternal()
311 int DvbManager::openDvbFeFromSystemApi(JNIEnv *env, jobject thiz) { in openDvbFeFromSystemApi() argument
312 int fd = (int) env->CallIntMethod(thiz, mOpenDvbFrontEndMethodID); in openDvbFeFromSystemApi()
317 int DvbManager::openDvbDemuxFromSystemApi(JNIEnv *env, jobject thiz) { in openDvbDemuxFromSystemApi() argument
318 int fd = (int) env->CallIntMethod(thiz, mOpenDvbDemuxMethodID); in openDvbDemuxFromSystemApi()
323 int DvbManager::openDvbDvrFromSystemApi(JNIEnv *env, jobject thiz) { in openDvbDvrFromSystemApi() argument
324 int fd = (int) env->CallIntMethod(thiz, mOpenDvbDvrMethodID); in openDvbDvrFromSystemApi()
329 int DvbManager::openDvbFe(JNIEnv *env, jobject thiz) { in openDvbFe() argument
331 if ((mFeFd = openDvbFeFromSystemApi(env, thiz)) < 0) { in openDvbFe()
361 int DvbManager::startTsPidFilter(JNIEnv *env, jobject thiz, int pid, int filterType) { in startTsPidFilter() argument
373 if ((demuxFd = openDvbDemuxFromSystemApi(env, thiz)) < 0) { in startTsPidFilter()
440 int DvbManager::openDvbDvr(JNIEnv *env, jobject thiz) { in openDvbDvr() argument
441 if ((mDvrFd = openDvbDvrFromSystemApi(env, thiz)) < 0) { in openDvbDvr()
477 int DvbManager::readTsStream(JNIEnv *env, jobject thiz, in readTsStream() argument
485 openDvbDvr(env, thiz); in readTsStream()
509 int DvbManager::getDeliverySystemType(JNIEnv *env, jobject thiz) { in getDeliverySystemType() argument
510 getDeliverySystemTypes(env, thiz); in getDeliverySystemType()
514 int* DvbManager::getDeliverySystemTypes(JNIEnv *env, jobject thiz) { in getDeliverySystemTypes() argument
520 if ((mFeFd = openDvbFeFromSystemApi(env, thiz)) < 0) { in getDeliverySystemTypes()
533 if (openDvbFe(env, thiz) == 0) { in getDeliverySystemTypes()