diff options
author | Elliott Hughes <enh@google.com> | 2015-04-16 13:03:25 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-04-16 13:12:52 -0700 |
commit | 91b872537645a0bf307cc4ee73cc4591f749fd4c (patch) | |
tree | e57e5107a9ce71caf880ea34e34d9e1e227c7bdd /luni/src/main/native | |
parent | 29faa03fc0ac5733a82f0f098aabd41848abe1f2 (diff) | |
download | libcore-91b872537645a0bf307cc4ee73cc4591f749fd4c.zip libcore-91b872537645a0bf307cc4ee73cc4591f749fd4c.tar.gz libcore-91b872537645a0bf307cc4ee73cc4591f749fd4c.tar.bz2 |
Implement mapLibraryName in Java.
No need for native code here.
Change-Id: Iaeb0369b5638a6681fd94fd999641801719aaea2
Diffstat (limited to 'luni/src/main/native')
-rw-r--r-- | luni/src/main/native/java_lang_System.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/luni/src/main/native/java_lang_System.cpp b/luni/src/main/native/java_lang_System.cpp index 3b995e7..306adab 100644 --- a/luni/src/main/native/java_lang_System.cpp +++ b/luni/src/main/native/java_lang_System.cpp @@ -124,22 +124,9 @@ static jlong System_nanoTime(JNIEnv*, jclass) { #endif } -static jstring System_mapLibraryName(JNIEnv* env, jclass, jstring javaName) { - ScopedUtfChars name(env, javaName); - if (name.c_str() == NULL) { - return NULL; - } - char* mappedName = NULL; - asprintf(&mappedName, "lib%s.so", name.c_str()); - jstring result = env->NewStringUTF(mappedName); - free(mappedName); - return result; -} - static JNINativeMethod gMethods[] = { NATIVE_METHOD(System, currentTimeMillis, "!()J"), NATIVE_METHOD(System, log, "(CLjava/lang/String;Ljava/lang/Throwable;)V"), - NATIVE_METHOD(System, mapLibraryName, "(Ljava/lang/String;)Ljava/lang/String;"), NATIVE_METHOD(System, nanoTime, "!()J"), NATIVE_METHOD(System, setFieldImpl, "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V"), NATIVE_METHOD(System, specialProperties, "()[Ljava/lang/String;"), |