/art/test/927-timers/ |
D | timers.cc | 66 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/ |
D | source_file.cc | 47 jstring ret = env->NewStringUTF(file); in Java_art_Test992_getSourceFileName() 60 jstring ret = env->NewStringUTF(ext); in Java_art_Test992_getSourceDebugExtension()
|
/art/test/925-threadgroups/ |
D | threadgroups.cc | 73 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/libnativeloader/ |
D | native_loader_test.cpp | 254 inf->NewStringUTF = [](JNIEnv*, const char* bytes) -> jstring { in CreateJNINativeInterface() 439 env(), target_sdk_version, env()->NewStringUTF(class_loader.c_str()), is_shared, in RunTest() 440 env()->NewStringUTF(dex_path.c_str()), env()->NewStringUTF(library_path.c_str()), in RunTest() 441 env()->NewStringUTF(permitted_path.c_str())); in RunTest() 448 FindNamespaceByClassLoader(env(), env()->NewStringUTF(class_loader.c_str())); in RunTest() 454 FindNativeLoaderNamespaceByClassLoader(env(), env()->NewStringUTF(class_loader.c_str())); in RunTest() 579 env(), second_app_target_sdk_version, env()->NewStringUTF(second_app_class_loader.c_str()), in TEST_P() 580 second_app_is_shared, env()->NewStringUTF(second_app_dex_path.c_str()), in TEST_P() 581 env()->NewStringUTF(second_app_library_path.c_str()), in TEST_P() 582 env()->NewStringUTF(second_app_permitted_path.c_str())); in TEST_P() [all …]
|
/art/test/918-fields/ |
D | fields.cc | 50 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/ |
D | stack_trace.cc | 93 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/ |
D | properties.cc | 46 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/test/2009-structural-local-ref/ |
D | local-ref.cc | 69 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/runtime/native/ |
D | dalvik_system_VMDebug.cc | 67 ScopedLocalRef<jstring> jfeature(env, env->NewStringUTF(features[i])); in VMDebug_getVmFeatureList() 462 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 466 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 470 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 474 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 478 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 482 return env->NewStringUTF(output.c_str()); in VMDebug_getRuntimeStatInternal() 487 return env->NewStringUTF(output.str().c_str()); in VMDebug_getRuntimeStatInternal() 492 return env->NewStringUTF(output.str().c_str()); in VMDebug_getRuntimeStatInternal() 503 ScopedLocalRef<jstring> jvalue(env, env->NewStringUTF(value.c_str())); in SetRuntimeStatValue()
|
D | dalvik_system_BaseDexClassLoader.cc | 29 ScopedLocalRef<jstring> jstring(env, env->NewStringUTF(string.c_str())); in append_string()
|
D | dalvik_system_DexFile.cc | 341 return env->NewStringUTF(str_context.c_str()); in DexFile_getClassLoaderContext() 515 ScopedLocalRef<jstring> jdescriptor(env, env->NewStringUTF(descriptor.c_str())); in DexFile_getClassNameList() 612 return env->NewStringUTF(oat_file_assistant.GetStatusDump().c_str()); in DexFile_getDexFileStatus() 645 ScopedLocalRef<jstring> j_compilation_filter(env, env->NewStringUTF(compilation_filter.c_str())); in DexFile_getDexFileOptimizationStatus() 649 ScopedLocalRef<jstring> j_compilation_reason(env, env->NewStringUTF(compilation_reason.c_str())); in DexFile_getDexFileOptimizationStatus() 771 return env->NewStringUTF(new_filter_str.c_str()); in DexFile_getNonProfileGuidedCompilerFilter() 796 return env->NewStringUTF(new_filter_str.c_str()); in DexFile_getSafeModeCompilerFilter() 844 ScopedLocalRef<jstring> jvdexFilename(env, env->NewStringUTF(vdex_filename.c_str())); in DexFile_getDexFileOutputPaths() 848 ScopedLocalRef<jstring> joatFilename(env, env->NewStringUTF(oat_filename.c_str())); in DexFile_getDexFileOutputPaths()
|
D | dalvik_system_VMRuntime.cc | 206 ScopedLocalRef<jstring> str(env, env->NewStringUTF(properties[i].c_str())); in VMRuntime_properties() 228 return env->NewStringUTF(DefaultToDot(boot_class_path)); in VMRuntime_bootClassPath() 232 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetClassPathString())); in VMRuntime_classPath() 236 return env->NewStringUTF(Runtime::GetVersion()); in VMRuntime_vmVersion() 240 return env->NewStringUTF(kIsDebugBuild ? "libartd.so" : "libart.so"); in VMRuntime_vmLibrary() 246 return env->NewStringUTF(isa_string); in VMRuntime_vmInstructionSet() 679 return env->NewStringUTF(GetInstructionSetString(kRuntimeISA)); in VMRuntime_getCurrentInstructionSet()
|
/art/test/910-methods/ |
D | methods.cc | 47 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/ |
D | threads.cc | 105 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/runtime/jni/ |
D | jni_internal_test.cc | 385 jobject object = env_->NewStringUTF("Test String"); in GetPrimitiveArrayElementsOfWrongType() 453 jobject object = env_->NewStringUTF("Test String"); in ReleasePrimitiveArrayElementsOfWrongType() 471 jobject object = env_->NewStringUTF("Test String"); in GetReleasePrimitiveArrayCriticalOfWrongType() 531 jobject object = env_->NewStringUTF("Test String"); in GetPrimitiveArrayRegionElementsOfWrongType() 589 jobject object = env_->NewStringUTF("Test String"); in SetPrimitiveArrayRegionElementsOfWrongType() 962 jstring s = env_->NewStringUTF("poop"); in TEST_F() 967 jstring s_16 = env_->NewStringUTF("\u0444\u0444"); in TEST_F() 1020 s = env_->NewStringUTF("poop"); in TEST_F() 1339 jstring s = env_->NewStringUTF("poop"); in TEST_F() 1372 jstring s = env_->NewStringUTF("poop"); in TEST_F() [all …]
|
/art/test/ti-agent/ |
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/983-source-transform-verify/ |
D | source_transform.cc | 39 ScopedLocalRef<jstring> data(env, env->NewStringUTF(msg)); in Println()
|
/art/test/1972-jni-id-swap-indices/ |
D | jni_id.cc | 48 return env->NewStringUTF(oss.str().c_str()); in Java_Main_GetJniType()
|
/art/libnativebridge/ |
D | native_bridge.cc | 353 jstring str = env->NewStringUTF(value); in SetCpuAbi() 408 env->CallStaticVoidMethod(sclass_id, set_prop_id, env->NewStringUTF("os.arch"), in SetupEnvironment() 409 env->NewStringUTF(env_values->os_arch)); in SetupEnvironment()
|
/art/test/1957-error-ext/ |
D | lasterror.cc | 98 return env->NewStringUTF(msg); in Java_art_Test1957_getLastError()
|
/art/test/1919-vminit-thread-start-timing/ |
D | vminit.cc | 83 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/906-iterate-heap/ |
D | iterate_heap.cc | 233 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/ |
D | native_bind.cc | 70 ScopedLocalRef<jstring> sym_name(env, env->NewStringUTF(addr_info.dli_sname)); in doJvmtiMethodBind()
|
/art/runtime/ |
D | hidden_api.cc | 277 ScopedLocalRef<jstring> package_str(env, env->NewStringUTF(package_name.c_str())); in LogAccessToEventLog() 285 env->NewStringUTF(signature_str.str().c_str())); in LogAccessToEventLog() 330 soa.Env()->NewStringUTF(member_signature_str.str().c_str())); in NotifyHiddenApiListener()
|
/art/test/1946-list-descriptors/ |
D | descriptors.cc | 80 env->SetObjectArrayElement(arr.get(), i, env->NewStringUTF(classes[i])); in Java_art_Test1946_getClassloaderDescriptors()
|