/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 | 40 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 | 32 static jstring StringFactory_newStringFromBytes(JNIEnv* env, jclass, jbyteArray java_data, in StringFactory_newStringFromBytes() 55 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromBytes() 59 static jstring StringFactory_newStringFromChars(JNIEnv* env, jclass, jint offset, in StringFactory_newStringFromChars() 71 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromChars() 74 static jstring StringFactory_newStringFromString(JNIEnv* env, jclass, jstring to_copy) { in StringFactory_newStringFromString() 88 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromString()
|
D | dalvik_system_DexFile.cc | 133 NullableScopedUtfChars(JNIEnv* env, jstring s) : mEnv(env), mString(s) { in NullableScopedUtfChars() 158 jstring mString; 269 jstring javaSourceName, in DexFile_openDexFileNative() 270 jstring javaOutputName ATTRIBUTE_UNUSED, in DexFile_openDexFileNative() 363 jstring javaName, in DexFile_defineClassNative() 456 ScopedLocalRef<jstring> jdescriptor(env, env->NewStringUTF(descriptor.c_str())); in DexFile_getClassNameList() 526 static jstring DexFile_getDexFileStatus(JNIEnv* env, in DexFile_getDexFileStatus() 528 jstring javaFilename, in DexFile_getDexFileStatus() 529 jstring javaInstructionSet) { in DexFile_getDexFileStatus() 558 jstring javaFilename, in DexFile_getDexFileOptimizationStatus() [all …]
|
D | dalvik_system_VMRuntime.cc | 87 jstring exemption = reinterpret_cast<jstring>(env->GetObjectArrayElement(exemptions, i)); in VMRuntime_setHiddenApiExemptions() 205 ScopedLocalRef<jstring> str(env, env->NewStringUTF(properties[i].c_str())); in VMRuntime_properties() 225 static jstring VMRuntime_bootClassPath(JNIEnv* env, jobject) { in VMRuntime_bootClassPath() 229 static jstring VMRuntime_classPath(JNIEnv* env, jobject) { in VMRuntime_classPath() 233 static jstring VMRuntime_vmVersion(JNIEnv* env, jobject) { in VMRuntime_vmVersion() 237 static jstring VMRuntime_vmLibrary(JNIEnv* env, jobject) { in VMRuntime_vmLibrary() 241 static jstring VMRuntime_vmInstructionSet(JNIEnv* env, jobject) { in VMRuntime_vmInstructionSet() 627 jstring profile_file, in VMRuntime_registerAppInfo() 632 jstring code_path = reinterpret_cast<jstring>(env->GetObjectArrayElement(code_paths, i)); in VMRuntime_registerAppInfo() 645 static jboolean VMRuntime_isBootClassPathOnDisk(JNIEnv* env, jclass, jstring java_instruction_set) { in VMRuntime_isBootClassPathOnDisk() [all …]
|
D | libcore_util_CharsetUtils.cc | 156 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, in charsToBytes() 183 static jbyteArray CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toAsciiBytes() 188 static jbyteArray CharsetUtils_toIsoLatin1Bytes(JNIEnv* env, jclass, jstring java_string, in CharsetUtils_toIsoLatin1Bytes() 193 static jbyteArray CharsetUtils_toUtf8Bytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toUtf8Bytes()
|
D | java_lang_reflect_Proxy.cc | 32 static jclass Proxy_generateProxy(JNIEnv* env, jclass, jstring name, jobjectArray interfaces, in Proxy_generateProxy()
|
/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/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/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/674-hiddenapi/ |
D | hiddenapi.cc | 37 JNIEnv* env, jclass, jstring jpath) { in Java_Main_appendToBootClassLoader() 73 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canDiscoverField() 86 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canGetField() 116 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canSetField() 146 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canDiscoverMethod() 159 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canInvokeMethodA() 190 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canInvokeMethodV() 224 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canDiscoverConstructor() 236 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canInvokeConstructorA() 261 JNIEnv* env, jclass, jclass klass, jstring args) { in Java_JNI_canInvokeConstructorV()
|
/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/570-checker-osr/ |
D | osr.cc | 62 jstring method_name) { in Java_Main_isInOsrCode() 78 jstring method_name) { in Java_Main_isInInterpreter() 114 jstring method_name) { in Java_Main_ensureHasProfilingInfo() 154 jstring method_name) { in Java_Main_ensureHasOsrCode()
|
/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()
|
D | locals_helper.cc | 180 ScopedLocalRef<jstring> name_string(env, env->NewStringUTF(vars[i].name)); in Java_art_Locals_GetLocalVariableTable() 181 ScopedLocalRef<jstring> sig_string(env, env->NewStringUTF(vars[i].signature)); in Java_art_Locals_GetLocalVariableTable() 182 ScopedLocalRef<jstring> generic_sig_string(env, env->NewStringUTF(vars[i].generic_signature)); in Java_art_Locals_GetLocalVariableTable()
|
/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()
|
/art/test/common/ |
D | runtime_state.cc | 148 jstring method_name) { in Java_Main_isAotCompiled() 168 jstring method_name) { in Java_Main_hasJitCompiledEntrypoint() 185 jstring method_name) { in Java_Main_hasJitCompiledCode() 202 jstring method_name) { in Java_Main_ensureJitCompiled() 247 jstring method_name) { in Java_Main_hasSingleImplementation() 260 jstring method_name) { in Java_Main_getHotnessCounter()
|
/art/test/004-ThreadStress/ |
D | thread_stress.cc | 26 extern "C" JNIEXPORT void JNICALL Java_Main_printString(JNIEnv*, jclass, jstring s) { in Java_Main_printString()
|
/art/test/904-object-allocation/ |
D | tracking.cc | 41 ScopedLocalRef<jstring> str( in GetClassName() 42 jni_env, reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid))); in GetClassName()
|
/art/openjdkjvm/ |
D | OpenjdkJvm.cc | 291 JNIEXPORT jstring JVM_InternString(JNIEnv* env, jstring jstr) { in JVM_InternString() 294 return soa.AddLocalReference<jstring>(s->Intern()); in JVM_InternString() 323 JNIEXPORT jstring JVM_NativeLoad(JNIEnv* env, in JVM_NativeLoad() 324 jstring javaFilename, in JVM_NativeLoad() 407 JNIEXPORT void JVM_SetNativeThreadName(JNIEnv* env, jobject jthread, jstring java_name) { in JVM_SetNativeThreadName()
|
/art/test/595-profile-saving/ |
D | profile-saving.cc | 53 jstring filename, in Java_Main_presentInProfile()
|
/art/test/983-source-transform-verify/ |
D | source_transform.cc | 39 ScopedLocalRef<jstring> data(env, env->NewStringUTF(msg)); in Println()
|