/external/libmojo/base/android/ |
jni_string_unittest.cc | 17 JNIEnv* env = AttachCurrentThread(); local 19 ConvertJavaStringToUTF8(ConvertUTF8ToJavaString(env, kSimpleString)); 25 JNIEnv* env = AttachCurrentThread(); local 27 ConvertJavaStringToUTF16(ConvertUTF16ToJavaString(env, kSimpleString)); 33 JNIEnv* env = AttachCurrentThread(); local 35 ConvertJavaStringToUTF8(ConvertUTF8ToJavaString(env, kEmptyString)); 41 JNIEnv* env = AttachCurrentThread(); local 43 ConvertJavaStringToUTF16(ConvertUTF16ToJavaString(env, kEmptyString));
|
locale_utils.cc | 15 JNIEnv* env = base::android::AttachCurrentThread(); local 16 return ConvertJavaStringToUTF8(Java_LocaleUtils_getDefaultCountryCode(env)); 20 JNIEnv* env = base::android::AttachCurrentThread(); local 22 Java_LocaleUtils_getDefaultLocaleString(env);
|
/external/tensorflow/tensorflow/compiler/xla/tools/ |
convert_computation.cc | 27 #include "tensorflow/core/platform/env.h" 37 tensorflow::Env* env = tensorflow::Env::Default(); local 39 TF_CHECK_OK(tensorflow::ReadTextProto(env, path, &module)); 40 TF_CHECK_OK(tensorflow::WriteBinaryProto(env, path, module)); 42 TF_CHECK_OK(tensorflow::ReadBinaryProto(env, path, &module));
|
/external/tensorflow/tensorflow/core/lib/io/ |
random_inputstream_test.cc | 19 #include "tensorflow/core/platform/env.h" 27 Env* env = Env::Default(); local 29 TF_ASSERT_OK(WriteStringToFile(env, fname, "0123456789")); 32 TF_ASSERT_OK(env->NewRandomAccessFile(fname, &file)); 56 Env* env = Env::Default(); local 58 TF_ASSERT_OK(WriteStringToFile(env, fname, "0123456789")) 87 Env* env = Env::Default(); local [all...] |
/external/tensorflow/tensorflow/core/platform/posix/ |
test.cc | 41 const char* env = getenv("TEST_SRCDIR"); local 43 if (env && env[0] != '\0') { 45 return strings::StrCat(env, "/", workspace, "/tensorflow"); 47 return strings::StrCat(env, "/tensorflow");
|
/external/tensorflow/tensorflow/core/platform/windows/ |
test.cc | 35 const char* env = getenv("TEST_SRCDIR"); local 37 if (env && env[0] != '\0') { 39 return strings::StrCat(env, "/", workspace, "/tensorflow"); 41 return strings::StrCat(env, "/tensorflow");
|
/external/tensorflow/tensorflow/core/public/ |
session_options.h | 25 class Env; 30 Env* env; member in struct:tensorflow::SessionOptions
|
/external/tensorflow/tensorflow/core/util/ |
reporter.cc | 56 Env* env = Env::Default(); local 57 if (env->FileExists(mangled_fname).ok()) { 61 TF_RETURN_IF_ERROR(env->NewWritableFile(mangled_fname, &log_file_));
|
/external/toybox/toys/other/ |
printenv.c | 24 char **env, **var = toys.optargs; local 32 for (env = environ; *env; env++) { 33 char *out = *env;
|
/external/turbine/java/com/google/turbine/binder/env/ |
Env.java | 17 package com.google.turbine.binder.env; 27 * Env<BoundClass>} is used. 29 * <p>The indirection through env makes it possible to represent a graph with cycles using immutable 35 public interface Env<S extends Symbol, V> {
|
CompoundEnv.java | 17 package com.google.turbine.binder.env; 21 /** An {@link Env} that chains two existing envs together. */ 22 public class CompoundEnv<S extends Symbol, V> implements Env<S, V> { 24 private final Env<S, ? extends V> base; 25 private final Env<S, ? extends V> env; field in class:CompoundEnv 27 private CompoundEnv(Env<S, ? extends V> base, Env<S, ? extends V> env) { 29 this.env = env [all...] |
/frameworks/base/core/jni/ |
android_media_DeviceCallback.cpp | 34 JNIDeviceCallback::JNIDeviceCallback(JNIEnv* env, jobject thiz, jobject weak_thiz, 40 jclass clazz = env->GetObjectClass(thiz); 44 mClass = (jclass)env->NewGlobalRef(clazz); 48 mObject = env->NewGlobalRef(weak_thiz); 56 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 57 if (env == NULL) { 60 env->DeleteGlobalRef(mObject); 61 env->DeleteGlobalRef(mClass); 67 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 68 if (env == NULL) [all...] |
/libcore/luni/src/main/native/ |
Register.cpp | 29 JNIEnv* env; local 30 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { 34 JniConstants::init(env); 36 ScopedLocalFrame localFrame(env); 38 #define REGISTER(FN) extern void FN(JNIEnv*); FN(env) 64 JNIEnv* env; local 65 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { 71 ScopedLocalFrame localFrame(env); 73 #define UNREGISTER(FN) extern void FN(JNIEnv*); FN(env)
|
/packages/inputmethods/LatinIME/native/jni/ |
jni_common.cpp | 31 JNIEnv *env = 0; local 33 if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) { 37 ASSERT(env); 38 if (!env) { 42 if (!latinime::register_BinaryDictionary(env)) { 46 if (!latinime::register_BinaryDictionaryUtils(env)) { 50 if (!latinime::register_DicTraverseSession(env)) { 54 if (!latinime::register_ProximityInfo(env)) { 63 int registerNativeMethods(JNIEnv *env, const char *const className, const JNINativeMethod *methods, 65 jclass clazz = env->FindClass(className) [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.file_size/ |
file_size.pass.cpp | 49 scoped_test_env env; local 50 const path p = env.create_file("file", 42);
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
TestActionHandler.java | 42 public TestActionHandler(TestEnv env) { 44 TestActivity.create(env), 45 env.state, 46 env.providers, 47 env.docs, 48 env.searchViewManager, 50 env.injector); 52 mEnv = env;
|
/art/test/900-hello-plugin/ |
load_unload.cc | 61 uintptr_t env = 0; local 62 jint res = vm->GetEnv(reinterpret_cast<void**>(&env), TEST_900_ENV_VERSION_NUMBER); 66 printf("GetEnv returned '%" PRIdPTR "' environment!\n", env);
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
e_sqrtl.c | 81 fenv_t env; local 99 feholdexcept(&env); 142 fesetenv(&env); 156 feupdateenv(&env); /* Restore env and raise inexact */
|
/build/soong/env/ |
env.go | 15 // env implements the environment JSON file handling for the soong_env command line tool run before 16 // the builder and for the env writer in the builder. 17 package env package
|
/cts/hostsidetests/jvmti/base/jni/ |
cts_agent.cpp | 29 JNIEnv* env, 33 ScopedLocalRef<jclass> klass(env, FindClass(jenv, env, class_name, nullptr)); 36 jmethodID method = env->GetStaticMethodID(klass.get(), method_name, "()V"); 39 env->CallStaticVoidMethod(klass.get(), method); 59 JNIEnv* env; local 60 CHECK_EQ(0, vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6)) 68 InformMainAttach(jvmti_env, env, kMainClass, kMainClassStartup);
|
/cts/hostsidetests/os/test-apps/StaticSharedNativeLibConsumer/jni/ |
version.cpp | 33 static int registerNativeMethods(JNIEnv* env, const char* className, 36 clazz = env->FindClass(className); 41 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) { 49 JNIEnv *env; local 50 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { 58 registerNativeMethods(env, "android/os/lib/consumer/UseSharedLibraryTest",
|
/external/compiler-rt/test/tsan/ |
longjmp3.cc | 11 void bar(jmp_buf env) { 13 longjmp(env, 42); 17 void foo(jmp_buf env) { 19 bar(env); 31 jmp_buf env; local 32 if (setjmp(env) == 42) { 36 foo(env);
|
longjmp4.cc | 12 void bar(jmp_buf env) { 15 memcpy(env2, env, sizeof(jmp_buf)); 20 void foo(jmp_buf env) { 22 bar(env); 34 jmp_buf env; local 35 if (setjmp(env) == 42) { 39 foo(env);
|
/external/conscrypt/common/src/jni/main/include/conscrypt/ |
bio_input_stream.h | 55 JNIEnv *env = jniutil::getJNIEnv(); local 56 if (env == nullptr) { 61 if (env->ExceptionCheck()) { 66 ScopedLocalRef<jbyteArray> javaBytes(env, env->NewByteArray(len)); 72 jint read = env->CallIntMethod(getStream(), method, javaBytes.get()); 73 if (env->ExceptionCheck()) { 83 env->GetByteArrayRegion(javaBytes.get(), 0, read, reinterpret_cast<jbyte *>(buf));
|
/external/curl/src/ |
tool_homedir.c | 34 char *env = NULL; local 44 env = buf1; 52 env = buf2; 57 env = getenv(variable); 59 return (env && env[0]) ? strdup(env) : NULL;
|