You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add lots of java APIs needed for Whatsapp
This commit is contained in:
@@ -17,3 +17,10 @@ JNIEXPORT jlong JNICALL Java_android_os_SystemClock_uptimeMillis(JNIEnv *env, jc
|
||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||
return now.tv_sec * 1000 + lround(now.tv_nsec / 1e6);
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL Java_android_os_SystemClock_elapsedRealtimeNanos(JNIEnv *env, jclass this)
|
||||
{
|
||||
struct timespec t;
|
||||
clock_gettime(CLOCK_BOOTTIME, &t);
|
||||
return t.tv_sec * 1000000000 + t.tv_nsec;
|
||||
}
|
||||
|
||||
@@ -273,14 +273,6 @@ JNIEXPORT void JNICALL Java_android_os_Process_readProcLines
|
||||
JNIEXPORT jintArray JNICALL Java_android_os_Process_getPids
|
||||
(JNIEnv *, jclass, jstring, jintArray);
|
||||
|
||||
/*
|
||||
* Class: android_os_Process
|
||||
* Method: readProcFile
|
||||
* Signature: (Ljava/lang/String;[I[Ljava/lang/String;[J[F)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL Java_android_os_Process_readProcFile
|
||||
(JNIEnv *, jclass, jstring, jintArray, jobjectArray, jlongArray, jfloatArray);
|
||||
|
||||
/*
|
||||
* Class: android_os_Process
|
||||
* Method: parseProcLine
|
||||
|
||||
Reference in New Issue
Block a user