mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-24 04:45:32 -04:00
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:
parent
b8e119aaf8
commit
308a5d49c8
148 changed files with 1385 additions and 1222 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue