Home
last modified time | relevance | path

Searched refs:GetEnv (Results 1 – 25 of 170) sorted by relevance

1234567

/external/webrtc/sdk/android/src/jni/
Djvm.cc41 JNIEnv* GetEnv() { in GetEnv() function
43 jint status = g_jvm->GetEnv(&env, JNI_VERSION_1_6); in GetEnv()
58 if (!GetEnv()) in ThreadDestructor()
61 RTC_CHECK(GetEnv() == prev_jni_ptr) in ThreadDestructor()
62 << "Detaching from another thread: " << prev_jni_ptr << ":" << GetEnv(); in ThreadDestructor()
65 RTC_CHECK(!GetEnv()) << "Detaching was a successful no-op???"; in ThreadDestructor()
81 if (jvm->GetEnv(reinterpret_cast<void**>(&jni), JNI_VERSION_1_6) != JNI_OK) in InitGlobalJniVariables()
107 JNIEnv* jni = GetEnv(); in AttachCurrentThreadIfNeeded()
Djvm.h22 JNIEnv* GetEnv();
Dclass_reference_holder.h24 webrtc::InitClassLoader(GetEnv()); in LoadGlobalClassReferenceHolder()
/external/curl/src/
Dtool_homedir.c41 static char *GetEnv(const char *variable) in GetEnv() function
79 home = GetEnv("CURL_HOME"); in homedir()
84 home = GetEnv("XDG_CONFIG_HOME"); in homedir()
99 home = GetEnv("HOME"); in homedir()
117 home = GetEnv("APPDATA"); in homedir()
119 char *env = GetEnv("USERPROFILE"); in homedir()
/external/libtextclassifier/native/utils/utf8/
Dunilib-javaicu.cc88 JNIEnv* jenv = jni_cache_->GetEnv(); in Length()
170 JNIEnv* jenv = jni_cache_->GetEnv(); in LockedInitializeIfNotAlready()
201 JNIEnv* env = jni_cache_->GetEnv(); in Matcher()
239 const bool result = jni_cache_->GetEnv()->CallBooleanMethod( in Matches()
255 jni_cache_->GetEnv()->CallObjectMethod(matcher_.get(), in ApproximatelyMatches()
266 const int found_start = jni_cache_->GetEnv()->CallIntMethod( in ApproximatelyMatches()
273 const int found_end = jni_cache_->GetEnv()->CallIntMethod( in ApproximatelyMatches()
280 int context_length_bmp = jni_cache_->GetEnv()->CallIntMethod( in ApproximatelyMatches()
299 const int find_offset = jni_cache_->GetEnv()->CallIntMethod( in UpdateLastFindOffset()
305 const int codepoint_count = jni_cache_->GetEnv()->CallIntMethod( in UpdateLastFindOffset()
[all …]
Dunilib-javaicu.h121 JStringToUtf8String(jni_cache_->GetEnv(), text_.get()); in Text()
209 JNIEnv* env = jni_cache_->GetEnv(); in ParseInt()
/external/libtextclassifier/native/utils/intents/
Djni.cc46 JNIEnv* env = jni_cache->GetEnv(); in Create()
97 return {{nullptr, jni_cache_->GetEnv()}}; in AsUTF8String()
105 return {{nullptr, jni_cache_->GetEnv()}}; in AsInteger()
110 JniHelper::NewObject(jni_cache_->GetEnv(), integer_class_.get(), in AsInteger()
120 return {{nullptr, jni_cache_->GetEnv()}}; in AsStringArray()
125 JniHelper::NewObjectArray(jni_cache_->GetEnv(), values.size(), in AsStringArray()
132 jni_cache_->GetEnv(), result.get(), k, value_str.get())); in AsStringArray()
141 return {{nullptr, jni_cache_->GetEnv()}}; in AsFloatArray()
146 JniHelper::NewFloatArray(jni_cache_->GetEnv(), values.size())); in AsFloatArray()
149 jni_cache_->GetEnv(), result.get(), /*start=*/0, in AsFloatArray()
[all …]
/external/icing/icing/tokenization/reverse_jni/
Dreverse-jni-break-iterator.cc66 JNIEnv* jenv = jni_cache->GetEnv(); in Create()
125 const int first_index = jni_cache_->GetEnv()->CallIntMethod( in First()
135 const int preceding_index = jni_cache_->GetEnv()->CallIntMethod( in Preceding()
145 const int following_index = jni_cache_->GetEnv()->CallIntMethod( in Following()
158 jni_cache_->GetEnv(), iterator_batcher_.get(), in FetchNextBatch()
164 jint num_indices = jni_cache_->GetEnv()->GetArrayLength(break_indices.get()); in FetchNextBatch()
169 static_cast<jint*>(jni_cache_->GetEnv()->GetPrimitiveArrayCritical( in FetchNextBatch()
174 jni_cache_->GetEnv()->ReleasePrimitiveArrayCritical(break_indices.get(), in FetchNextBatch()
/external/llvm-project/llvm/unittests/Support/
DProcessTest.cpp48 Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__")); in TEST()
55 Process::GetEnv("__LLVM_TEST_ENVIRON_NO_SUCH_VAR__")); in TEST()
64 Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__")); in TEST()
71 Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__")); in TEST()
/external/googletest/googletest/test/
Dgtest_premature_exit_test.cc40 using ::testing::internal::posix::GetEnv;
56 premature_exit_file_path_ = GetEnv("TEST_PREMATURE_EXIT_FILE"); in PrematureExitTest()
115 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main()
/external/llvm-project/openmp/libomptarget/plugins/amdgpu/impl/
Dutils.cpp97 std::string var = GetEnv("ATMI_HELP"); in GetEnvAll()
105 var = GetEnv("ATMI_MAX_HSA_QUEUE_SIZE"); in GetEnvAll()
109 var = GetEnv("ATMI_DEBUG"); in GetEnvAll()
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/test/
Dgtest_premature_exit_test.cc40 using ::testing::internal::posix::GetEnv;
56 premature_exit_file_path_ = GetEnv("TEST_PREMATURE_EXIT_FILE"); in PrematureExitTest()
115 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main()
/external/llvm/unittests/Support/
DProcessTest.cpp36 Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__")); in TEST()
43 Process::GetEnv("__LLVM_TEST_ENVIRON_NO_SUCH_VAR__")); in TEST()
51 Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__")); in TEST()
/external/webrtc/modules/utility/source/
Dhelpers_android.cc27 JNIEnv* GetEnv(JavaVM* jvm) { in GetEnv() function
29 jint status = jvm->GetEnv(&env, JNI_VERSION_1_6); in GetEnv()
93 env_ = GetEnv(jvm); in AttachThreadScoped()
110 RTC_CHECK(!GetEnv(jvm_)); in ~AttachThreadScoped()
/external/compiler-rt/lib/asan/
Dasan_flags.cc65 cf.external_symbolizer_path = GetEnv("ASAN_SYMBOLIZER_PATH"); in InitializeFlags()
111 asan_parser.ParseString(GetEnv("ASAN_OPTIONS")); in InitializeFlags()
113 lsan_parser.ParseString(GetEnv("LSAN_OPTIONS")); in InitializeFlags()
116 ubsan_parser.ParseString(GetEnv("UBSAN_OPTIONS")); in InitializeFlags()
/external/curl/lib/
Dgetenv.c30 static char *GetEnv(const char *variable) in GetEnv() function
76 return GetEnv(v); in curl_getenv()
/external/compiler-rt/lib/lsan/
Dlsan.cc44 cf.external_symbolizer_path = GetEnv("LSAN_SYMBOLIZER_PATH"); in InitializeFlags()
59 parser.ParseString(GetEnv("LSAN_OPTIONS")); in InitializeFlags()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_flags.cpp57 cf.external_symbolizer_path = GetEnv("ASAN_SYMBOLIZER_PATH"); in InitializeFlags()
94 if (GetEnv("MallocScribble")) { in InitializeFlags()
97 if (GetEnv("MallocPreScribble")) { in InitializeFlags()
/external/tensorflow/tensorflow/core/kernels/batching_util/
Dadaptive_shared_batch_scheduler.h200 Env* GetEnv() const { return options_.env; } in GetEnv() function
399 GetEnv(), options.thread_pool_name, options.num_batch_threads)); in AdaptiveSharedBatchScheduler()
440 int64 delay_micros = batch->schedulable_time_micros() - GetEnv()->NowMicros(); in AddBatch()
450 GetEnv()->SchedClosureAfter( in AddBatch()
476 int64 now_micros = GetEnv()->NowMicros(); in MaybeScheduleNextBatch()
545 int64 end_time = GetEnv()->NowMicros(); in CallbackWrapper()
614 scheduler_->GetEnv()->SleepForMicroseconds(kSleepMicros); in ~ASBSQueue()
676 this, scheduler_->GetEnv()->NowMicros(), in Schedule()
/external/icing/icing/jni/
Djni-cache.cc182 JNIEnv* JniCache::GetEnv() const { in GetEnv() function in icing::lib::JniCache
184 if (JNI_OK == jvm->GetEnv(&env, JNI_VERSION_1_4)) { in GetEnv()
193 return libtextclassifier3::JniExceptionCheckAndClear(GetEnv()); in ExceptionCheckAndClear()
200 JNIEnv* jenv = GetEnv(); in ConvertToJavaString()
/external/libtextclassifier/native/utils/java/
Djni-cache.cc270 JNIEnv* JniCache::GetEnv() const { in GetEnv() function in libtextclassifier3::JniCache
272 if (JNI_OK == jvm->GetEnv(&env, JNI_VERSION_1_4)) { in GetEnv()
281 return JniExceptionCheckAndClear(GetEnv()); in ExceptionCheckAndClear()
287 JNIEnv* jenv = GetEnv(); in ConvertToJavaString()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares_android.c94 res = (*android_jvm)->GetEnv(android_jvm, (void **)&env, JNI_VERSION_1_6); in ares_library_init_android()
212 res = (*android_jvm)->GetEnv(android_jvm, (void **)&env, JNI_VERSION_1_6); in ares_library_cleanup_android()
266 res = (*android_jvm)->GetEnv(android_jvm, (void **)&env, JNI_VERSION_1_6); in ares_get_android_server_list()
379 res = (*android_jvm)->GetEnv(android_jvm, (void **)&env, JNI_VERSION_1_6); in ares_get_android_search_domains_list()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/templates/
Dgen_knobs.cpp52 const std::string var = GetEnv(text.substr(start + 2, end - start - 2));
61 const std::string var = GetEnv(text.substr(start + 1, end - start - 1));
/external/webrtc/sdk/android/native_api/base/
Dinit.cc21 InitClassLoader(jni::GetEnv()); in InitAndroid()
/external/skia/modules/androidkit/src/
DAndroidKit.cpp22 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()

1234567