Home
last modified time | relevance | path

Searched refs:NewStringUTF (Results 1 – 25 of 52) sorted by relevance

123

/art/libnativeloader/
Dnative_loader_lazy_test.cpp58 env.get()->NewStringUTF(class_loader), in CallCreateClassLoaderNamespace()
60 env.get()->NewStringUTF("/data/app/foo/classes.dex"), in CallCreateClassLoaderNamespace()
61 env.get()->NewStringUTF("/data/app/foo"), in CallCreateClassLoaderNamespace()
81 env.get()->NewStringUTF("my_classloader"), in TEST_F()
100 env.get(), env.get()->NewStringUTF("my_classloader_2")); in TEST_F()
111 EXPECT_EQ(nullptr, FindNamespaceByClassLoader(env.get(), env.get()->NewStringUTF("namespace"))); in TEST_F()
117 FindNativeLoaderNamespaceByClassLoader(env.get(), env.get()->NewStringUTF("namespace"))); in TEST_F()
Dnative_loader_test.cpp271 env(), target_sdk_version, env()->NewStringUTF(class_loader.c_str()), is_shared, in RunTest()
272 env()->NewStringUTF(dex_path.c_str()), env()->NewStringUTF(library_path.c_str()), in RunTest()
273 env()->NewStringUTF(permitted_path.c_str()), /*uses_library_list=*/ nullptr); in RunTest()
280 FindNamespaceByClassLoader(env(), env()->NewStringUTF(class_loader.c_str())); in RunTest()
286 FindNativeLoaderNamespaceByClassLoader(env(), env()->NewStringUTF(class_loader.c_str())); in RunTest()
422 env(), second_app_target_sdk_version, env()->NewStringUTF(second_app_class_loader.c_str()), in TEST_P()
423 second_app_is_shared, env()->NewStringUTF(second_app_dex_path.c_str()), in TEST_P()
424 env()->NewStringUTF(second_app_library_path.c_str()), in TEST_P()
425 env()->NewStringUTF(second_app_permitted_path.c_str()), /*uses_library_list=*/ nullptr); in TEST_P()
432 FindNamespaceByClassLoader(env(), env()->NewStringUTF(second_app_class_loader.c_str())); in TEST_P()
[all …]
/art/test/927-timers/
Dtimers.cc66 return env->NewStringUTF(android::base::StringPrintf("%" PRId64, info.max_value).c_str()); in Java_art_Test927_getTimerInfo()
70 return env->NewStringUTF(info.may_skip_forward == JNI_TRUE ? "true" : "false"); in Java_art_Test927_getTimerInfo()
73 return env->NewStringUTF(info.may_skip_forward == JNI_TRUE ? "true" : "false"); in Java_art_Test927_getTimerInfo()
77 return env->NewStringUTF( in Java_art_Test927_getTimerInfo()
/art/test/992-source-data/
Dsource_file.cc47 jstring ret = env->NewStringUTF(file); in Java_art_Test992_getSourceFileName()
60 jstring ret = env->NewStringUTF(ext); in Java_art_Test992_getSourceDebugExtension()
/art/runtime/native/
Ddalvik_system_VMDebug.cc67 ScopedLocalRef<jstring> jfeature(env, env->NewStringUTF(features[i])); in VMDebug_getVmFeatureList()
326 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
330 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
334 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
338 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
342 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
346 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
351 return env->NewStringUTF(output.str().c_str()); in VMDebug_getRuntimeStatInternal()
356 return env->NewStringUTF(output.str().c_str()); in VMDebug_getRuntimeStatInternal()
360 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal()
[all …]
Ddalvik_system_VMRuntime.cc200 ScopedLocalRef<jstring> str(env, env->NewStringUTF(properties[i].c_str())); in VMRuntime_properties()
222 return env->NewStringUTF(DefaultToDot(boot_class_path)); in VMRuntime_bootClassPath()
226 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetClassPathString())); in VMRuntime_classPath()
230 return env->NewStringUTF(Runtime::GetVersion()); in VMRuntime_vmVersion()
234 return env->NewStringUTF(kIsDebugBuild ? "libartd.so" : "libart.so"); in VMRuntime_vmLibrary()
240 return env->NewStringUTF(isa_string); in VMRuntime_vmInstructionSet()
423 return env->NewStringUTF(GetInstructionSetString(kRuntimeISA)); in VMRuntime_getCurrentInstructionSet()
Ddalvik_system_BaseDexClassLoader.cc29 ScopedLocalRef<jstring> jstring(env, env->NewStringUTF(string.c_str())); in append_string()
Ddalvik_system_DexFile.cc493 ScopedLocalRef<jstring> jdescriptor(env, env->NewStringUTF(descriptor.c_str())); in DexFile_getClassNameList()
596 return env->NewStringUTF(oat_file_assistant.GetStatusDump().c_str()); in DexFile_getDexFileStatus()
629 ScopedLocalRef<jstring> j_compilation_filter(env, env->NewStringUTF(compilation_filter.c_str())); in DexFile_getDexFileOptimizationStatus()
633 ScopedLocalRef<jstring> j_compilation_reason(env, env->NewStringUTF(compilation_reason.c_str())); in DexFile_getDexFileOptimizationStatus()
758 return env->NewStringUTF(new_filter_str.c_str()); in DexFile_getNonProfileGuidedCompilerFilter()
783 return env->NewStringUTF(new_filter_str.c_str()); in DexFile_getSafeModeCompilerFilter()
857 ScopedLocalRef<jstring> jvdexFilename(env, env->NewStringUTF(vdex_filename.c_str())); in DexFile_getDexFileOutputPaths()
861 ScopedLocalRef<jstring> joatFilename(env, env->NewStringUTF(oat_filename.c_str())); in DexFile_getDexFileOutputPaths()
/art/test/925-threadgroups/
Dthreadgroups.cc73 return (info.name == nullptr) ? nullptr : env->NewStringUTF(info.name); in Java_art_Test925_getThreadGroupInfo()
77 return env->NewStringUTF(android::base::StringPrintf("%d", info.max_priority).c_str()); in Java_art_Test925_getThreadGroupInfo()
81 return env->NewStringUTF(info.is_daemon == JNI_TRUE ? "true" : "false"); in Java_art_Test925_getThreadGroupInfo()
/art/test/918-fields/
Dfields.cc50 return name == nullptr ? nullptr : env->NewStringUTF(name); in Java_art_Test918_getFieldName()
52 return sig == nullptr ? nullptr : env->NewStringUTF(sig); in Java_art_Test918_getFieldName()
54 return gen == nullptr ? nullptr : env->NewStringUTF(gen); in Java_art_Test918_getFieldName()
/art/test/911-get-stack-trace/
Dstack_trace.cc93 return (name == nullptr) ? nullptr : env->NewStringUTF(name); in TranslateJvmtiFrameInfoArray()
95 return (sig == nullptr) ? nullptr : env->NewStringUTF(sig); in TranslateJvmtiFrameInfoArray()
97 return env->NewStringUTF(StringPrintf("%" PRId64, frames[method_index].location).c_str()); in TranslateJvmtiFrameInfoArray()
102 return env->NewStringUTF(StringPrintf("%d", line_number).c_str()); in TranslateJvmtiFrameInfoArray()
247 return env->NewStringUTF( in Java_art_Frames_getFrameLocation()
/art/test/922-properties/
Dproperties.cc46 jstring ret = env->NewStringUTF(data); in Java_art_Test922_getSystemProperties()
70 jstring ret = (value == nullptr) ? nullptr : env->NewStringUTF(value); in Java_art_Test922_getSystemProperty()
/art/runtime/jni/
Djni_internal_test.cc386 jobject object = env_->NewStringUTF("Test String"); in GetPrimitiveArrayElementsOfWrongType()
454 jobject object = env_->NewStringUTF("Test String"); in ReleasePrimitiveArrayElementsOfWrongType()
472 jobject object = env_->NewStringUTF("Test String"); in GetReleasePrimitiveArrayCriticalOfWrongType()
532 jobject object = env_->NewStringUTF("Test String"); in GetPrimitiveArrayRegionElementsOfWrongType()
590 jobject object = env_->NewStringUTF("Test String"); in SetPrimitiveArrayRegionElementsOfWrongType()
963 jstring s = env_->NewStringUTF("poop"); in TEST_F()
968 jstring s_16 = env_->NewStringUTF("\u0444\u0444"); in TEST_F()
1021 s = env_->NewStringUTF("poop"); in TEST_F()
1340 jstring s = env_->NewStringUTF("poop"); in TEST_F()
1373 jstring s = env_->NewStringUTF("poop"); in TEST_F()
[all …]
/art/test/2009-structural-local-ref/
Dlocal-ref.cc69 env->SetObjectField(obj, new_field, env->NewStringUTF("VirtualString")); in Java_art_Test2009_NativeLocalGetIField()
82 env->SetStaticObjectField(obj_klass, new_field, env->NewStringUTF("StaticString")); in Java_art_Test2009_NativeLocalGetSField()
/art/test/910-methods/
Dmethods.cc47 return name == nullptr ? nullptr : env->NewStringUTF(name); in Java_art_Test910_getMethodName()
49 return sig == nullptr ? nullptr : env->NewStringUTF(sig); in Java_art_Test910_getMethodName()
51 return gen == nullptr ? nullptr : env->NewStringUTF(gen); in Java_art_Test910_getMethodName()
/art/test/924-threads/
Dthreads.cc105 return (info.name == nullptr) ? nullptr : env->NewStringUTF(info.name); in Java_art_Test924_getThreadInfo()
109 return env->NewStringUTF(android::base::StringPrintf("%d", info.priority).c_str()); in Java_art_Test924_getThreadInfo()
113 return env->NewStringUTF(info.is_daemon == JNI_TRUE ? "true" : "false"); in Java_art_Test924_getThreadInfo()
269 return env->NewStringUTF(gEvents[i].c_str()); in Java_art_Test924_getThreadEventMessages()
/art/test/2037-thread-name-inherit/
Dthread_name_inherit.cc50 jobject str_name = env->NewStringUTF("native-thread-set-java"); in ThreadMain()
57 jobject str_name = env->NewStringUTF(name_chars); in ThreadMain()
/art/test/ti-agent/
Dlocals_helper.cc180 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/983-source-transform-verify/
Dsource_transform.cc39 ScopedLocalRef<jstring> data(env, env->NewStringUTF(msg)); in Println()
/art/test/1972-jni-id-swap-indices/
Djni_id.cc48 return env->NewStringUTF(oss.str().c_str()); in Java_Main_GetJniType()
/art/libnativebridge/
Dnative_bridge.cc406 jstring str = env->NewStringUTF(value); in SetCpuAbi()
461 env->CallStaticVoidMethod(sclass_id, set_prop_id, env->NewStringUTF("os.arch"), in SetupEnvironment()
462 env->NewStringUTF(env_values->os_arch)); in SetupEnvironment()
/art/test/1919-vminit-thread-start-timing/
Dvminit.cc83 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("JVMTI_THREAD-Test1919")); in CreateAgentThread()
167 return env->NewStringUTF(list->events[i].event.c_str()); in Java_art_Test1919_getEventNames()
/art/test/1957-error-ext/
Dlasterror.cc98 return env->NewStringUTF(msg); in Java_art_Test1957_getLastError()
/art/test/906-iterate-heap/
Diterate_heap.cc233 return env->NewStringUTF(fsc.data.c_str()); in Java_art_Test906_iterateThroughHeapString()
321 return env->NewStringUTF(fac.data.c_str()); in Java_art_Test906_iterateThroughHeapPrimitiveArray()
408 return env->NewStringUTF(ffc.data.c_str()); in Java_art_Test906_iterateThroughHeapPrimitiveFields()
/art/test/986-native-method-bind/
Dnative_bind.cc70 ScopedLocalRef<jstring> sym_name(env, env->NewStringUTF(addr_info.dli_sname)); in doJvmtiMethodBind()

123