/art/libnativeloader/include/nativeloader/ |
D | native_loader.h | 39 __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/ |
D | local-ref.cc | 34 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/ |
D | properties.cc | 41 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/ |
D | java_lang_String.cc | 41 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()
|
D | java_lang_StringFactory.cc | 33 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()
|
D | dalvik_system_BaseDexClassLoader.cc | 29 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()
|
D | dalvik_system_DexFile.cc | 136 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 …]
|
D | dalvik_system_VMRuntime.cc | 91 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 …]
|
D | libcore_util_CharsetUtils.cc | 157 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/ |
D | source_file.cc | 40 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/ |
D | native_loader_lazy.cpp | 52 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()
|
D | library_namespaces.h | 57 jobject class_loader, bool is_shared, jstring dex_path, 58 jstring java_library_path, jstring java_permitted_path, 59 jstring uses_library_list);
|
D | native_loader.cpp | 78 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/ |
D | get_loaded_classes.cc | 37 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/ |
D | osr.cc | 33 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/ |
D | get_field_id.cc | 26 jstring name, in Java_Main_getFieldId() 27 jstring signature) { in Java_Main_getFieldId()
|
/art/test/929-search/ |
D | search.cc | 34 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/ |
D | hiddenapi.cc | 56 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/ |
D | jni_test.cc | 137 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/ |
D | scoped_utf_chars.h | 32 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars() 84 jstring string_;
|
D | agent_startup.cc | 29 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jstring className, jobject classLoader) { in Java_art_Main_bindAgentJNI()
|
/art/test/1972-jni-id-swap-indices/ |
D | jni_id.cc | 33 jstring name, in Java_Main_GetMethodId() 34 jstring sig) { in Java_Main_GetMethodId()
|
/art/test/595-profile-saving/ |
D | profile-saving.cc | 53 jstring filename, in Java_Main_presentInProfile() 68 jstring filename) { in Java_Main_isForBootImage()
|
/art/test/912-classes/ |
D | classes_art.cc | 100 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/ |
D | native_bind.cc | 70 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()
|