universal7885: Add Material you reworked FM app

* UI and function improvements

Change-Id: Ia1ea7aa0caf0ac3838e285952e9be7e79b946e80
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2022-02-27 22:39:25 +09:00
commit 308a5d49c8
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
148 changed files with 1385 additions and 1222 deletions

View file

@ -8,7 +8,7 @@
#include <cerrno>
#include <iostream>
#include "s610_radio.h"
#include "kernel_internal.h"
#include "v4l2_api.h"
#include <algorithm>
#include <jni.h>
#include <hardware/hardware.h>
@ -452,7 +452,8 @@ extern "C"
JNIEXPORT jint JNICALL
Java_com_eurekateam_fmradio_NativeFMInterface_getBeforeChannel
(__unused JNIEnv *env, __unused jobject thiz, jint fd) {
long ret;sp<IFMRadio> service = IFMRadio::getService();
long ret;
sp<IFMRadio> service = IFMRadio::getService();
bool mSysfs = service->isAvailable() == Status::YES;
if (!mSysfs){
fm_radio_channel_searching(fd, 0, 0, FM_CHANNEL_SPACING_100KHZ, &ret);
@ -492,3 +493,10 @@ Java_com_eurekateam_fmradio_NativeFMInterface_closeFMDevice
(__unused JNIEnv *env, __unused jobject thiz, jint fd) {
close(fd);
}
extern "C"
JNIEXPORT jboolean JNICALL
Java_com_eurekateam_fmradio_NativeFMInterface_getSysfsSupport
(__unused JNIEnv *env, __unused jobject thiz) {
sp<IFMRadio> service = IFMRadio::getService();
return service->isAvailable() == Status::YES;
}