mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 20:15:32 -04:00
universal7885: interfaces: Forgot to rename package name
* Also, fix errors Change-Id: Iafa0a6f6c34c9b13aff464765ef00cffbc6330dd Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
45e292f408
commit
0885f01f81
12 changed files with 22 additions and 19 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#include <hidl/HidlSupport.h>
|
||||
#include <hidl/LegacySupport.h>
|
||||
#include <hidl/Status.h>
|
||||
#include <vendor/eureka/hardware/parts/1.0/IFlashlight.h>
|
||||
#include <vendor/eureka/hardware/parts/1.0/IFlashLight.h>
|
||||
#include "jni.h"
|
||||
|
||||
using android::sp;
|
||||
|
|
@ -13,7 +13,7 @@ using vendor::eureka::hardware::parts::V1_0::Number;
|
|||
|
||||
extern "C" JNIEXPORT void JNICALL Java_com_eurekateam_samsungextras_interfaces_Flashlight_setFlash(
|
||||
JNIEnv* env, __unused jobject obj, jint value) {
|
||||
android::sp<IFlashlight> service = IFlashLight::getService();
|
||||
android::sp<IFlashLight> service = IFlashLight::getService();
|
||||
service->setFlashlightEnable(Number::ENABLE);
|
||||
switch (value) {
|
||||
case 1:
|
||||
|
|
@ -52,7 +52,7 @@ extern "C" JNIEXPORT void JNICALL Java_com_eurekateam_samsungextras_interfaces_F
|
|||
}
|
||||
extern "C" JNIEXPORT jint JNICALL Java_com_eurekateam_samsungextras_interfaces_Flashlight_getFlash(
|
||||
JNIEnv* env, jobject clazz, jint isA10) {
|
||||
android::sp<IFlashlight> service = IFlashLight::getService();
|
||||
android::sp<IFlashLight> service = IFlashLight::getService();
|
||||
int ret;
|
||||
if (isA10 == 1) {
|
||||
ret = service->readFlashlightstats(Device::A10);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
#include "jni.h"
|
||||
|
||||
using android::sp;
|
||||
using vendor::eureka::hardware::parts::V1_0::Enable;
|
||||
using vendor::eureka::hardware::parts::V1_0::Number;
|
||||
using vendor::eureka::hardware::parts::V1_0::IGpu;
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
|
|
|
|||
Loading…
Reference in a new issue