mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: parts: jni: Link against libc++ fs
Also fix Kotlin src issues Also clang-format the cpp src
This commit is contained in:
parent
0a612ac913
commit
0faf51929d
10 changed files with 57 additions and 55 deletions
|
|
@ -12,17 +12,18 @@ static sp<ISwapOnData> service = ISwapOnData::getService();
|
|||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Java_com_eurekateam_samsungextras_interfaces_Swap_setSize(JNIEnv *env,
|
||||
jclass clazz,
|
||||
jint size) {
|
||||
jclass clazz,
|
||||
jint size) {
|
||||
service->setSwapSize(size);
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Java_com_eurekateam_samsungextras_interfaces_Swap_setSwapOn(
|
||||
JNIEnv *env, jclass clazz, jboolean enable) {
|
||||
if (enable){
|
||||
service->setSwapOn();
|
||||
} else {
|
||||
service->setSwapOff();
|
||||
}
|
||||
Java_com_eurekateam_samsungextras_interfaces_Swap_setSwapOn(JNIEnv *env,
|
||||
jclass clazz,
|
||||
jboolean enable) {
|
||||
if (enable) {
|
||||
service->setSwapOn();
|
||||
} else {
|
||||
service->setSwapOff();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue