Home
last modified time | relevance | path

Searched refs:jstring (Results 1 – 25 of 76) sorted by relevance

1234

/art/libnativeloader/include/nativeloader/
Dnative_loader.h39 __attribute__((visibility("default"))) jstring CreateClassLoaderNamespace(
40 JNIEnv* env, int32_t target_sdk_version, jobject class_loader, bool is_shared, jstring dex_path,
41 jstring library_path, jstring permitted_path, jstring uses_library_list);
45 const char* caller_location, jstring library_path, bool* needs_native_bridge, char** error_msg);
/art/test/2009-structural-local-ref/
Dlocal-ref.cc34 extern "C" JNIEXPORT jstring JNICALL Java_art_Test2009_NativeLocalCallStatic( in Java_art_Test2009_NativeLocalCallStatic()
44 return reinterpret_cast<jstring>(env->CallStaticObjectMethod(obj_klass, new_method)); in Java_art_Test2009_NativeLocalCallStatic()
48 extern "C" JNIEXPORT jstring JNICALL Java_art_Test2009_NativeLocalCallVirtual( in Java_art_Test2009_NativeLocalCallVirtual()
57 return reinterpret_cast<jstring>(env->CallObjectMethod(obj, new_method)); in Java_art_Test2009_NativeLocalCallVirtual()
60 extern "C" JNIEXPORT jstring JNICALL Java_art_Test2009_NativeLocalGetIField( in Java_art_Test2009_NativeLocalGetIField()
70 return reinterpret_cast<jstring>(env->GetObjectField(obj, new_field)); in Java_art_Test2009_NativeLocalGetIField()
73 extern "C" JNIEXPORT jstring JNICALL Java_art_Test2009_NativeLocalGetSField( in Java_art_Test2009_NativeLocalGetSField()
83 return reinterpret_cast<jstring>(env->GetStaticObjectField(obj_klass, new_field)); in Java_art_Test2009_NativeLocalGetSField()
/art/test/922-properties/
Dproperties.cc41 auto callback = [&](jint i) -> jstring { in Java_art_Test922_getSystemProperties()
46 jstring ret = env->NewStringUTF(data); in Java_art_Test922_getSystemProperties()
57 extern "C" JNIEXPORT jstring JNICALL Java_art_Test922_getSystemProperty( in Java_art_Test922_getSystemProperty()
58 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring key) { in Java_art_Test922_getSystemProperty()
70 jstring ret = (value == nullptr) ? nullptr : env->NewStringUTF(value); in Java_art_Test922_getSystemProperty()
78 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring key, jstring value) { in Java_art_Test922_setSystemProperty()
/art/runtime/native/
Djava_lang_String.cc41 static jint String_compareTo(JNIEnv* env, jobject java_this, jstring java_rhs) { in String_compareTo()
51 static jstring String_concat(JNIEnv* env, jobject java_this, jstring java_string_arg) { in String_concat()
65 return soa.AddLocalReference<jstring>(result); in String_concat()
68 return reinterpret_cast<jstring>(string_original); in String_concat()
71 static jstring String_fastSubstring(JNIEnv* env, jobject java_this, jint start, jint length) { in String_fastSubstring()
81 return soa.AddLocalReference<jstring>(result); in String_fastSubstring()
92 static jstring String_intern(JNIEnv* env, jobject java_this) { in String_intern()
95 return soa.AddLocalReference<jstring>(result); in String_intern()
98 static jstring String_doReplace(JNIEnv* env, jobject java_this, jchar old_c, jchar new_c) { in String_doReplace()
103 return soa.AddLocalReference<jstring>(result); in String_doReplace()
Djava_lang_StringFactory.cc33 static jstring StringFactory_newStringFromBytes(JNIEnv* env, jclass, jbyteArray java_data, in StringFactory_newStringFromBytes()
56 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromBytes()
60 static jstring StringFactory_newStringFromChars(JNIEnv* env, jclass, jint offset, in StringFactory_newStringFromChars()
72 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromChars()
75 static jstring StringFactory_newStringFromString(JNIEnv* env, jclass, jstring to_copy) { in StringFactory_newStringFromString()
89 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromString()
Ddalvik_system_BaseDexClassLoader.cc29 ScopedLocalRef<jstring> jstring(env, env->NewStringUTF(string.c_str())); in append_string() local
30 if (jstring.get() == nullptr) { in append_string()
34 env->SetObjectArrayElement(array, i++, jstring.get()); in append_string()
Ddalvik_system_DexFile.cc136 NullableScopedUtfChars(JNIEnv* env, jstring s) : mEnv(env), mString(s) { in NullableScopedUtfChars()
161 jstring mString;
307 jstring javaSourceName, in DexFile_openDexFileNative()
308 jstring javaOutputName ATTRIBUTE_UNUSED, in DexFile_openDexFileNative()
328 static jstring DexFile_getClassLoaderContext(JNIEnv* env, in DexFile_getClassLoaderContext()
348 jstring class_loader_context) { in DexFile_verifyInBackgroundNative()
422 jstring javaName, in DexFile_defineClassNative()
515 ScopedLocalRef<jstring> jdescriptor(env, env->NewStringUTF(descriptor.c_str())); in DexFile_getClassNameList()
587 static jstring DexFile_getDexFileStatus(JNIEnv* env, in DexFile_getDexFileStatus()
589 jstring javaFilename, in DexFile_getDexFileStatus()
[all …]
Ddalvik_system_VMRuntime.cc91 jstring exemption = reinterpret_cast<jstring>(env->GetObjectArrayElement(exemptions, i)); in VMRuntime_setHiddenApiExemptions()
206 ScopedLocalRef<jstring> str(env, env->NewStringUTF(properties[i].c_str())); in VMRuntime_properties()
226 static jstring VMRuntime_bootClassPath(JNIEnv* env, jobject) { in VMRuntime_bootClassPath()
231 static jstring VMRuntime_classPath(JNIEnv* env, jobject) { in VMRuntime_classPath()
235 static jstring VMRuntime_vmVersion(JNIEnv* env, jobject) { in VMRuntime_vmVersion()
239 static jstring VMRuntime_vmLibrary(JNIEnv* env, jobject) { in VMRuntime_vmLibrary()
243 static jstring VMRuntime_vmInstructionSet(JNIEnv* env, jobject) { in VMRuntime_vmInstructionSet()
645 jstring profile_file, in VMRuntime_registerAppInfo()
650 jstring code_path = reinterpret_cast<jstring>(env->GetObjectArrayElement(code_paths, i)); in VMRuntime_registerAppInfo()
663 static jboolean VMRuntime_isBootClassPathOnDisk(JNIEnv* env, jclass, jstring java_instruction_set) { in VMRuntime_isBootClassPathOnDisk()
[all …]
Dlibcore_util_CharsetUtils.cc157 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, in charsToBytes()
184 static jbyteArray CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toAsciiBytes()
189 static jbyteArray CharsetUtils_toIsoLatin1Bytes(JNIEnv* env, jclass, jstring java_string, in CharsetUtils_toIsoLatin1Bytes()
194 static jbyteArray CharsetUtils_toUtf8Bytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toUtf8Bytes()
/art/test/992-source-data/
Dsource_file.cc40 jstring JNICALL Java_art_Test992_getSourceFileName(JNIEnv* env, in Java_art_Test992_getSourceFileName()
47 jstring ret = env->NewStringUTF(file); in Java_art_Test992_getSourceFileName()
53 jstring JNICALL Java_art_Test992_getSourceDebugExtension(JNIEnv* env, in Java_art_Test992_getSourceDebugExtension()
60 jstring ret = env->NewStringUTF(ext); in Java_art_Test992_getSourceDebugExtension()
/art/libnativeloader/
Dnative_loader_lazy.cpp52 jstring CreateClassLoaderNamespace(JNIEnv* env, int32_t target_sdk_version, jobject class_loader, in CreateClassLoaderNamespace()
53 bool is_shared, jstring dex_path, jstring library_path, in CreateClassLoaderNamespace()
54 jstring permitted_path, jstring uses_library_list) { in CreateClassLoaderNamespace()
61 jobject class_loader, const char* caller_location, jstring library_path, in OpenNativeLibrary()
Dlibrary_namespaces.h57 jobject class_loader, bool is_shared, jstring dex_path,
58 jstring java_library_path, jstring java_permitted_path,
59 jstring uses_library_list);
Dnative_loader.cpp78 jstring CreateClassLoaderNamespace(JNIEnv* env, int32_t target_sdk_version, jobject class_loader, in CreateClassLoaderNamespace()
79 bool is_shared, jstring dex_path, jstring library_path, in CreateClassLoaderNamespace()
80 jstring permitted_path, jstring uses_library_list) { in CreateClassLoaderNamespace()
96 jobject class_loader, const char* caller_location, jstring library_path, in OpenNativeLibrary()
/art/test/907-get-loaded-classes/
Dget_loaded_classes.cc37 static jstring GetClassName(JNIEnv* jni_env, jclass cls) { in GetClassName()
40 return reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid)); in GetClassName()
57 jstring class_name = GetClassName(env, classes[i]); in Java_art_Test907_getLoadedClasses()
/art/test/570-checker-osr/
Dosr.cc33 void ProcessMethodWithName(JNIEnv* env, jstring method_name, const Handler& handler) { in ProcessMethodWithName()
56 jstring method_name) { in Java_Main_isInOsrCode()
79 jstring method_name) { in Java_Main_isInInterpreter()
103 jstring method_name) { in Java_Main_ensureHasProfilingInfo()
118 jstring method_name) { in Java_Main_ensureHasOsrCode()
/art/test/647-jni-get-field-id/
Dget_field_id.cc26 jstring name, in Java_Main_getFieldId()
27 jstring signature) { in Java_Main_getFieldId()
/art/test/929-search/
Dsearch.cc34 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring segment) { in Java_Main_addToBootClassLoader()
44 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring segment) { in Java_Main_addToSystemClassLoader()
/art/test/674-hiddenapi/
Dhiddenapi.cc56 JNIEnv* env, jclass klass, jstring jpath, jboolean is_core_platform) { in Java_Main_appendToBootClassLoader()
105 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canDiscoverField()
118 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canGetField()
148 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canSetField()
178 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canDiscoverMethod()
191 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canInvokeMethodA()
222 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canInvokeMethodV()
256 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canDiscoverConstructor()
268 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canInvokeConstructorA()
293 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canInvokeConstructorV()
/art/test/004-JniTest/
Djni_test.cc137 jstring field_name = env->NewStringUTF("testReflectFieldGetFromAttachedNativeThreadField"); in testReflectFieldGetFromAttachedNativeThread()
608 jstring s = reinterpret_cast<jstring>(env->NewObject(c, mid2, byte_array)); in Java_Main_testNewStringObject()
617 jstring s1 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
619 jstring s2 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
621 jstring s3 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
623 jstring s4 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
627 jstring string_arg = env->NewStringUTF("helloworld"); in Java_Main_testNewStringObject()
642 jstring s5 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
644 s5 = reinterpret_cast<jstring>(env->NewGlobalRef(s5)); in Java_Main_testNewStringObject()
645 jstring s6 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
[all …]
/art/test/ti-agent/
Dscoped_utf_chars.h32 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars()
84 jstring string_;
Dagent_startup.cc29 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jstring className, jobject classLoader) { in Java_art_Main_bindAgentJNI()
/art/test/1972-jni-id-swap-indices/
Djni_id.cc33 jstring name, in Java_Main_GetMethodId()
34 jstring sig) { in Java_Main_GetMethodId()
/art/test/595-profile-saving/
Dprofile-saving.cc53 jstring filename, in Java_Main_presentInProfile()
68 jstring filename) { in Java_Main_isForBootImage()
/art/test/912-classes/
Dclasses_art.cc100 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring class_name) { in Java_art_Test912Art_isLoadedClass()
133 jstring method_name);
137 JNIEnv* env, jclass klass, jclass test_class, jstring name) { in Java_art_Test912Art_ensureJitCompiled()
/art/test/986-native-method-bind/
Dnative_bind.cc70 ScopedLocalRef<jstring> sym_name(env, env->NewStringUTF(addr_info.dli_sname)); in doJvmtiMethodBind()
79 ScopedLocalRef<jstring> new_symbol(env, in doJvmtiMethodBind()
80 reinterpret_cast<jstring>( in doJvmtiMethodBind()

1234