/frameworks/base/core/jni/ |
android_os_SystemProperties.cpp | 37 T ConvertKeyAndForward(JNIEnv *env, jstring keyJ, T defJ, Handler handler) { 42 ScopedUtfChars key_utf(env, keyJ); 53 jstring SystemProperties_getSS(JNIEnv *env, jclass clazz, jstring keyJ, 61 return env->NewStringUTF(prop_val.c_str()); 68 return env->NewStringUTF(""); 70 return ConvertKeyAndForward(env, keyJ, defJ, handler); 73 jstring SystemProperties_getS(JNIEnv *env, jclass clazz, jstring keyJ) 75 return SystemProperties_getSS(env, clazz, keyJ, nullptr); 79 T SystemProperties_get_integral(JNIEnv *env, jclass, jstring keyJ, 85 return ConvertKeyAndForward(env, keyJ, defJ, handler) 123 JNIEnv* env; local [all...] |
/frameworks/base/media/jni/ |
android_media_Media2HTTPConnection.cpp | 36 JMedia2HTTPConnection::JMedia2HTTPConnection(JNIEnv *env, jobject thiz) { 37 mMedia2HTTPConnectionObj = env->NewGlobalRef(thiz); 41 env, env->GetObjectClass(mMedia2HTTPConnectionObj)); 44 mConnectMethod = env->GetMethodID( 50 mDisconnectMethod = env->GetMethodID( 56 mReadAtMethod = env->GetMethodID( 62 mGetSizeMethod = env->GetMethodID( 68 mGetMIMETypeMethod = env->GetMethodID( 74 mGetUriMethod = env->GetMethodID 87 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 104 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 118 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 123 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 144 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 149 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 168 JNIEnv* env = AndroidRuntime::getJNIEnv(); local [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
SmsMessageConverter.java | 71 SmsEnvelope env = new SmsEnvelope(); local 79 //currently not supported by the modem-lib: env.mMessageType 80 env.teleService = cdmaSmsMessage.teleserviceId; 83 env.messageType = SmsEnvelope.MESSAGE_TYPE_BROADCAST; 86 if (SmsEnvelope.TELESERVICE_NOT_SET == env.teleService) { 88 env.messageType = SmsEnvelope.MESSAGE_TYPE_ACKNOWLEDGE; 90 env.messageType = SmsEnvelope.MESSAGE_TYPE_POINT_TO_POINT; 93 env.serviceCategory = cdmaSmsMessage.serviceCategory; 134 env.bearerReply 135 env.replySeqN [all...] |
/libcore/luni/src/test/filesystems/src/mypackage/ |
MockFileSystem.java | 33 private Map<String, ?> env; field in class:MockFileSystem 36 public MockFileSystem(URI uri, Map<String, ?> env) { 38 this.env = env; 41 public MockFileSystem(Path path, Map<String, ?> env) { 43 this.env = env; 55 return env;
|
/libcore/ojluni/src/main/java/java/nio/file/ |
FileSystems.java | 245 * Map<String,String> env = new HashMap<>(); 246 * env.put("capacity", "16G"); 247 * env.put("blockSize", "4k"); 248 * FileSystem fs = FileSystems.newFileSystem(URI.create("memory:///?name=logfs"), env); 253 * @param env 261 * or the {@code env} parameter does not contain properties required 273 public static FileSystem newFileSystem(URI uri, Map<String,?> env) 276 return newFileSystem(uri, env, null); 292 * @param env 303 * or the {@code env} parameter does not contain properties require 385 Map<String,?> env = Collections.emptyMap(); local [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.read_symlink/ |
read_symlink.pass.cpp | 59 scoped_test_env env; local 61 env.make_env_path("dne"), 62 env.create_file("file", 42), 63 env.create_dir("dir") 77 scoped_test_env env; local 78 const path dne = env.make_env_path("dne"); 79 const path file = env.create_file("file", 42); 80 const path dir = env.create_dir("dir"); 81 const path link = env.create_symlink(dne, "link"); 82 const path nested_link = env.make_env_path("nested_link") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.rename/ |
rename.pass.cpp | 57 scoped_test_env env; local 58 const path dne = env.make_env_path("dne"); 59 const path file = env.create_file("file1", 42); 60 const path dir = env.create_dir("dir1"); 83 scoped_test_env env; local 86 const path file = env.create_file("file1", 42); 94 const path sym = env.create_symlink(file, "sym"); 103 const path file2 = env.create_file("file2", 42); 104 const path file3 = env.create_file("file3", 100); 113 const path dne = env.make_env_path("dne") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.status/ |
status.pass.cpp | 60 scoped_test_env env; local 61 const path dir = env.create_dir("dir"); 62 const path file = env.create_file("dir/file", 42); 63 const path sym = env.create_symlink("dir/file", "sym"); 106 scoped_test_env env; local 118 {env.create_socket("socket"), file_type::socket}, 120 {env.create_fifo("fifo"), file_type::fifo}
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.symlink_status/ |
symlink_status.pass.cpp | 59 scoped_test_env env; local 60 const path dir = env.create_dir("dir"); 61 const path file_in_dir = env.create_file("dir/file", 42); 62 const path sym_in_dir = env.create_symlink("dir/file", "dir/bad_sym"); 63 const path sym_points_in_dir = env.create_symlink("dir/file", "sym"); 113 scoped_test_env env; local 126 {env.create_socket("socket"), file_type::socket}, 128 {env.create_fifo("fifo"), file_type::fifo} 163 scoped_test_env env; local 176 const path sym = env.make_env_path("sym") [all...] |
/art/dalvikvm/ |
dalvikvm.cc | 32 static bool IsMethodPublic(JNIEnv* env, jclass c, jmethodID method_id) { 33 ScopedLocalRef<jobject> reflected(env, env->ToReflectedMethod(c, method_id, JNI_FALSE)); 40 jclass method_class = env->FindClass("java/lang/reflect/Method"); 45 jmethodID mid = env->GetMethodID(method_class, "getModifiers", "()I"); 50 int modifiers = env->CallIntMethod(reflected.get(), mid); 59 static int InvokeMain(JNIEnv* env, char** argv) { 63 ScopedLocalRef<jobjectArray> args(env, toStringArray(env, argv + 1)); 65 env->ExceptionDescribe() 176 JNIEnv* env = nullptr; local [all...] |
/art/openjdkjvmti/ |
ti_field.cc | 50 jvmtiError FieldUtil::GetFieldName(jvmtiEnv* env, 73 name_copy = CopyString(env, field_name, &ret); 84 signature_copy = CopyString(env, sig, &ret); 103 JvmtiUniquePtr<char[]> copy = CopyString(env, output_string.c_str(), &ret); 122 jvmtiError FieldUtil::GetFieldDeclaringClass(jvmtiEnv* env ATTRIBUTE_UNUSED, 145 jvmtiError FieldUtil::GetFieldModifiers(jvmtiEnv* env ATTRIBUTE_UNUSED, 168 jvmtiError FieldUtil::IsFieldSynthetic(jvmtiEnv* env ATTRIBUTE_UNUSED, 191 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); local 192 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 199 auto res_pair = env->modify_watched_fields.insert(art::jni::DecodeArtField(field)) 208 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); local 225 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); local 242 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); local [all...] |
/art/runtime/entrypoints/quick/ |
quick_jni_entrypoints.cc | 52 JNIEnvExt* env = self->GetJniEnv(); local 53 DCHECK(env != nullptr); 54 uint32_t saved_local_ref_cookie = bit_cast<uint32_t>(env->GetLocalRefCookie()); 55 env->SetLocalRefCookie(env->GetLocalsSegmentState()); 67 JNIEnvExt* env = self->GetJniEnv(); local 68 DCHECK(env != nullptr); 69 uint32_t saved_local_ref_cookie = bit_cast<uint32_t>(env->GetLocalRefCookie()); 70 env->SetLocalRefCookie(env->GetLocalsSegmentState()) 117 JNIEnvExt* env = self->GetJniEnv(); local [all...] |
/art/runtime/jdwp/ |
object_registry.cc | 112 JNIEnv* env = soa.Env(); local 117 entry->jni_reference = env->NewWeakGlobalRef(local_reference); 123 env->DeleteLocalRef(local_reference); 164 JNIEnv* env = self->GetJniEnv(); local 168 env->DeleteWeakGlobalRef(entry->jni_reference); 170 env->DeleteGlobalRef(entry->jni_reference); 223 JNIEnv* env = self->GetJniEnv(); local 225 entry.jni_reference = env->NewWeakGlobalRef(entry.jni_reference); 227 env->DeleteGlobalRef(global) 234 JNIEnv* env = self->GetJniEnv(); local 249 JNIEnv* env = self->GetJniEnv(); local 266 JNIEnv* env = self->GetJniEnv(); local [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/ |
setlocale.c | 135 const char *env, *r;
local 161 env = __get_locale_env(i);
162 (void)strncpyX(new_categories[i], env,
167 env = __get_locale_env(category);
168 (void)strncpyX(new_categories[category], env,
404 const char *env;
local 409 //env = getenv(categories[0]);
412 //if (!env || !*env)
413 // env = getenv(categories[category]); [all...] |
/device/sample/frameworks/PlatformLibrary/jni/ |
PlatformLibrary.cpp | 50 static void throwException(JNIEnv* env, const char* ex, const char* fmt, 53 if (jclass cls = env->FindClass(ex)) { 57 env->ThrowNew(cls, msg); 59 env->ThrowNew(cls, NULL); 68 env->DeleteLocalRef(cls); 78 static jint PlatformLibrary_getJniInt(JNIEnv* env, jobject thiz, jboolean bad) { 80 throwException(env, "java/lang/IllegalStateException", 84 env->SetIntField(thiz, gCachedState.jniInt, 42); 99 static jstring PlatformLibrary_reverseString(JNIEnv* env, jclass clazz, 103 throwException(env, "java/lang/NullPointerException", NULL, 0) 254 JNIEnv* env = NULL; local [all...] |
/external/aac/libSBRdec/src/ |
psbitdec.cpp | 249 UCHAR gr, env; local 283 for (env = 0; env < pBsData->noEnv; env++) { 289 if (env == 0) { 293 aPrevIidIndex = pBsData->aaIidIndex[env - 1]; 294 aPrevIccIndex = pBsData->aaIccIndex[env - 1]; 297 deltaDecodeArray(pBsData->bEnableIid, pBsData->aaIidIndex[env], 298 aPrevIidIndex, pBsData->abIidDtFlag[env], 302 deltaDecodeArray(pBsData->bEnableIcc, pBsData->aaIccIndex[env], 448 UCHAR gr, env; local [all...] |
/external/compiler-rt/test/asan/TestCases/Linux/ |
swapcontext_annotation.cc | 31 __attribute__((noinline, noreturn)) void LongJump(jmp_buf env) { 32 longjmp(env, 1); 38 jmp_buf env; local 39 if (setjmp(env) != 0) return; 41 LongJump(env);
|
/external/conscrypt/common/src/jni/main/include/conscrypt/ |
app_data.h | 115 JNIEnv* env; member in class:conscrypt::AppData 161 clearApplicationProtocolSelector(env); 168 * @param env The JNIEnv 212 * @param env The JNIEnv 225 env = e; 232 env = nullptr; 239 env(nullptr),
|
jniutil.h | 55 void init(JavaVM* vm, JNIEnv* env); 61 JNIEnv* env; local 64 int ret = gJavaVM->AttachCurrentThread(&env, nullptr); 66 int ret = gJavaVM->AttachCurrentThread(reinterpret_cast<void**>(&env), nullptr); 72 return env; 82 inline jclass getGlobalRefToClass(JNIEnv* env, const char* className) { 83 ScopedLocalRef<jclass> localClass(env, env->FindClass(className)); 84 jclass globalRef = reinterpret_cast<jclass>(env->NewGlobalRef(localClass.get())); 92 inline jmethodID getMethodRef(JNIEnv* env, jclass clazz, const char* name, const char* sig) 292 JNIEnv* env; member in class:conscrypt::jniutil::ErrorQueueChecker [all...] |
/external/curl/tests/libtest/ |
first.c | 89 char *env; local 91 env = curl_getenv("CURL_MEMDEBUG"); 92 if(env) { 95 if(strlen(env) >= CURL_MT_LOGFNAME_BUFSIZE) 96 env[CURL_MT_LOGFNAME_BUFSIZE-1] = '\0'; 97 strcpy(fname, env); 98 curl_free(env); 105 env = curl_getenv("CURL_MEMLIMIT"); 106 if(env) { 108 long num = strtol(env, &endptr, 10) [all...] |
/external/freetype/src/base/ |
ftinit.c | 238 const char* env; local 249 env = ft_getenv( "FREETYPE_PROPERTIES" ); 250 if ( !env ) 253 for ( p = env; *p; p++ )
|
/external/google-breakpad/src/testing/gtest/test/ |
gtest_environment_test.cc | 127 int RunAllTests(MyEnvironment* env, FailureType failure) { 128 env->Reset(); 129 env->set_failure_in_set_up(failure); 142 MyEnvironment* const env = new MyEnvironment; local 143 Check(testing::AddGlobalTestEnvironment(env) == env, 148 Check(RunAllTests(env, NO_FAILURE) != 0, 154 Check(env->tear_down_was_run(), 159 Check(RunAllTests(env, NON_FATAL_FAILURE) != 0, 165 Check(env->tear_down_was_run() [all...] |
/external/googletest/googletest/test/ |
gtest_environment_test.cc | 127 int RunAllTests(MyEnvironment* env, FailureType failure) { 128 env->Reset(); 129 env->set_failure_in_set_up(failure); 142 MyEnvironment* const env = new MyEnvironment; local 143 Check(testing::AddGlobalTestEnvironment(env) == env, 148 Check(RunAllTests(env, NO_FAILURE) != 0, 154 Check(env->tear_down_was_run(), 159 Check(RunAllTests(env, NON_FATAL_FAILURE) != 0, 165 Check(env->tear_down_was_run() [all...] |
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/ |
last_write_time.pass.cpp | 81 scoped_test_env env; local 82 const path file = env.create_file("file", 42); 109 scoped_test_env env; local 110 const path file = env.create_file("file", 42); 205 scoped_test_env env; 207 const path file = env.create_file("file", 42); 208 const path dir = env.create_dir("dir"); 229 env.create_file("dir/file1", 1); 249 scoped_test_env env; 251 const path file = env.create_file("file", 42) [all...] |
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/ |
permissions.pass.cpp | 61 scoped_test_env env; local 62 const path dne = env.make_env_path("dne"); 63 const path dne_sym = env.create_symlink(dne, "dne_sym"); 80 scoped_test_env env; local 81 const path file = env.create_file("file1", 42); 82 const path dir = env.create_dir("dir1"); 83 const path file_for_sym = env.create_file("file2", 42); 84 const path sym = env.create_symlink(file_for_sym, "sym"); 126 scoped_test_env env; local 127 const path file = env.create_file("file", 42) [all...] |