Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 195) sorted by relevance

12345678

/external/qemu/target-arm/
Dhelper.c34 static inline void set_feature(CPUARMState *env, int feature) in set_feature() argument
36 env->features |= 1u << feature; in set_feature()
39 static void cpu_reset_model_id(CPUARMState *env, uint32_t id) in cpu_reset_model_id() argument
41 env->cp15.c0_cpuid = id; in cpu_reset_model_id()
44 set_feature(env, ARM_FEATURE_VFP); in cpu_reset_model_id()
45 env->vfp.xregs[ARM_VFP_FPSID] = 0x41011090; in cpu_reset_model_id()
46 env->cp15.c0_cachetype = 0x1dd20d2; in cpu_reset_model_id()
47 env->cp15.c1_sys = 0x00090078; in cpu_reset_model_id()
50 set_feature(env, ARM_FEATURE_MPU); in cpu_reset_model_id()
51 env->cp15.c0_cachetype = 0x0f004006; in cpu_reset_model_id()
[all …]
Dmachine.c7 CPUARMState *env = (CPUARMState *)opaque; in cpu_save() local
10 qemu_put_be32(f, env->regs[i]); in cpu_save()
12 qemu_put_be32(f, cpsr_read(env)); in cpu_save()
13 qemu_put_be32(f, env->spsr); in cpu_save()
15 qemu_put_be32(f, env->banked_spsr[i]); in cpu_save()
16 qemu_put_be32(f, env->banked_r13[i]); in cpu_save()
17 qemu_put_be32(f, env->banked_r14[i]); in cpu_save()
20 qemu_put_be32(f, env->usr_regs[i]); in cpu_save()
21 qemu_put_be32(f, env->fiq_regs[i]); in cpu_save()
23 qemu_put_be32(f, env->cp15.c0_cpuid); in cpu_save()
[all …]
Dhelpers.h70 DEF_HELPER_3(v7m_msr, void, env, i32, i32)
71 DEF_HELPER_2(v7m_mrs, i32, env, i32)
73 DEF_HELPER_3(set_cp15, void, env, i32, i32)
74 DEF_HELPER_2(get_cp15, i32, env, i32)
76 DEF_HELPER_3(set_cp, void, env, i32, i32)
77 DEF_HELPER_2(get_cp, i32, env, i32)
79 DEF_HELPER_2(get_r13_banked, i32, env, i32)
80 DEF_HELPER_3(set_r13_banked, void, env, i32, i32)
82 DEF_HELPER_2(mark_exclusive, void, env, i32)
83 DEF_HELPER_2(test_exclusive, i32, env, i32)
[all …]
Dcpu.h215 uint32_t do_arm_semihosting(CPUARMState *env);
222 int cpu_arm_handle_mmu_fault (CPUARMState *env, target_ulong address, int rw,
227 static inline void cpu_set_tls(CPUARMState *env, target_ulong newtls) in cpu_set_tls() argument
229 env->cp15.c13_tls2 = newtls; in cpu_set_tls()
258 uint32_t cpsr_read(CPUARMState *env);
260 void cpsr_write(CPUARMState *env, uint32_t val, uint32_t mask);
263 static inline uint32_t xpsr_read(CPUARMState *env) in xpsr_read() argument
266 ZF = (env->ZF == 0); in xpsr_read()
267 return (env->NF & 0x80000000) | (ZF << 30) in xpsr_read()
268 | (env->CF << 29) | ((env->VF & 0x80000000) >> 3) | (env->QF << 27) in xpsr_read()
[all …]
Dop_helper.c28 env->exception_index = tt; in raise_exception()
54 table = (uint64_t *)&env->vfp.regs[rn]; in HELPER()
92 env = cpu_single_env; in do_unaligned_access()
93 env->cp15.c5_data = 0x00000001; /* corresponds to an alignment fault */ in do_unaligned_access()
94 env->cp15.c6_data = addr; in do_unaligned_access()
95 env->exception_index = EXCP_DATA_ABORT; in do_unaligned_access()
113 saved_env = env; in tlb_fill()
114 env = cpu_single_env; in tlb_fill()
115 ret = cpu_arm_handle_mmu_fault(env, addr, is_write, mmu_idx, 1); in tlb_fill()
124 cpu_restore_state(tb, env, pc, NULL); in tlb_fill()
[all …]
/external/clearsilver/java-jni/
Dj_neo_util.c17 void throwException(JNIEnv *env, const char* class_name, const char *message) { in throwException() argument
18 jclass ex_class = (*env)->FindClass(env, class_name); in throwException()
23 (*env)->ThrowNew(env, ex_class, message); in throwException()
26 void throwNullPointerException(JNIEnv *env, const char *message) { in throwNullPointerException() argument
27 throwException(env, "java/lang/NullPointerException", message); in throwNullPointerException()
30 void throwRuntimeException(JNIEnv *env, const char *message) { in throwRuntimeException() argument
31 throwException(env, "java/lang/RuntimeException", message); in throwRuntimeException()
34 void throwIOException(JNIEnv *env, const char *message) { in throwIOException() argument
35 throwException(env, "java/io/IOException", message); in throwIOException()
38 void throwFileNotFoundException(JNIEnv *env, const char *message) { in throwFileNotFoundException() argument
[all …]
Dj_neo_cs.c21 static void jErr(JNIEnv *env, char *error_string) { in jErr() argument
22 jclass newExcCls = (*env)->FindClass(env, "java/lang/RuntimeException"); in jErr()
28 (*env)->ThrowNew(env, newExcCls, error_string); in jErr()
31 int jNeoErr (JNIEnv *env, NEOERR *err);
34 (JNIEnv *env, jobject obj, jlong hdf_obj_ptr) { in Java_org_clearsilver_CS__1init() argument
45 if (err != STATUS_OK) return jNeoErr(env,err); in Java_org_clearsilver_CS__1init()
47 if (err != STATUS_OK) return jNeoErr(env,err); in Java_org_clearsilver_CS__1init()
53 (JNIEnv *env, jclass objClass, jlong cs_obj_ptr) { in Java_org_clearsilver_CS__1dealloc() argument
59 JNIEXPORT void JNICALL Java_org_clearsilver_CS__1parseFile(JNIEnv *env, in Java_org_clearsilver_CS__1parseFile() argument
70 csClass = (*env)->GetObjectClass(env, objCS); in Java_org_clearsilver_CS__1parseFile()
[all …]
/external/srec/srec_jni/
Dandroid_speech_srec_Recognizer.cpp55 static void JNU_ThrowByName(JNIEnv *env, const char* name, const char* msg) { in JNU_ThrowByName() argument
56 jclass cls = env->FindClass(name); in JNU_ThrowByName()
58 env->ThrowNew(cls, msg); in JNU_ThrowByName()
60 env->DeleteLocalRef(cls); in JNU_ThrowByName()
63 static void unimplemented(JNIEnv* env) { in unimplemented() argument
64 JNU_ThrowByName(env, "java/lang/IllegalStateException", "unimplemented!!!"); in unimplemented()
67 static void checkEsrError(JNIEnv* env, ESR_ReturnCode esr_status) { in checkEsrError() argument
69 JNU_ThrowByName(env, "java/lang/IllegalStateException", ESR_rc2str(esr_status)); in checkEsrError()
79 (JNIEnv *env, jclass clazz) { in Java_android_speech_srec_Recognizer_PMemInit() argument
80 checkEsrError(env, PMemInit()); in Java_android_speech_srec_Recognizer_PMemInit()
[all …]
/external/qemu/
Dcpu-exec.c44 #undef env
45 #define env cpu_single_env macro
53 int qemu_cpu_has_work(CPUState *env) in qemu_cpu_has_work() argument
55 return cpu_has_work(env); in qemu_cpu_has_work()
63 longjmp(env->jmp_env, 1); in cpu_loop_exit()
79 env = env1; in cpu_resume_from_signal()
93 env->exception_index = -1; in cpu_resume_from_signal()
94 longjmp(env->jmp_env, 1); in cpu_resume_from_signal()
109 tb = tb_gen_code(env, orig_tb->pc, orig_tb->cs_base, orig_tb->flags, in cpu_exec_nocache()
111 env->current_tb = tb; in cpu_exec_nocache()
[all …]
Dkqemu.c52 # define LOG_INT_STATE(env) log_cpu_state_mask(CPU_LOG_INT, (env), 0) argument
55 # define LOG_INT_STATE(env) do { } while (0) argument
126 static void kqemu_update_cpuid(CPUState *env) in kqemu_update_cpuid() argument
154 env->cpuid_features = (env->cpuid_features & ~critical_features_mask) | in kqemu_update_cpuid()
156 env->cpuid_ext_features = (env->cpuid_ext_features & ~ext_features_mask) | in kqemu_update_cpuid()
163 int kqemu_init(CPUState *env) in kqemu_init() argument
244 kqemu_update_cpuid(env); in kqemu_init()
245 env->kqemu_enabled = kqemu_allowed; in kqemu_init()
253 void kqemu_flush_page(CPUState *env, target_ulong addr) in kqemu_flush_page() argument
262 void kqemu_flush(CPUState *env, int global) in kqemu_flush() argument
[all …]
Dgdbstub.c514 static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n) in cpu_gdb_read_register() argument
517 GET_REGL(env->regs[gpr_map[n]]); in cpu_gdb_read_register()
521 memcpy(mem_buf, &env->fpregs[n - (CPU_NB_REGS + 8)], 10); in cpu_gdb_read_register()
529 stq_p(mem_buf, env->xmm_regs[n].XMM_Q(0)); in cpu_gdb_read_register()
530 stq_p(mem_buf + 8, env->xmm_regs[n].XMM_Q(1)); in cpu_gdb_read_register()
533 GET_REG32(env->mxcsr); in cpu_gdb_read_register()
538 case 0: GET_REGL(env->eip); in cpu_gdb_read_register()
539 case 1: GET_REG32(env->eflags); in cpu_gdb_read_register()
540 case 2: GET_REG32(env->segs[R_CS].selector); in cpu_gdb_read_register()
541 case 3: GET_REG32(env->segs[R_SS].selector); in cpu_gdb_read_register()
[all …]
/external/webkit/WebKit/android/jni/
DJavaBridge.cpp65 JavaBridge(JNIEnv* env, jobject obj);
94 static void Constructor(JNIEnv* env, jobject obj);
95 static void Finalize(JNIEnv* env, jobject obj);
96 static void SharedTimerFired(JNIEnv* env, jobject);
97 static void SetCacheSize(JNIEnv* env, jobject obj, jint bytes);
98 static void SetNetworkOnLine(JNIEnv* env, jobject obj, jboolean online);
99 static void SetDeferringTimers(JNIEnv* env, jobject obj, jboolean defer);
101 …static void UpdatePluginDirectories(JNIEnv* env, jobject obj, jobjectArray array, jboolean reload);
119 JavaBridge::JavaBridge(JNIEnv* env, jobject obj) in JavaBridge() argument
121 mJavaObject = adoptGlobalRef(env, obj); in JavaBridge()
[all …]
DWebSettings.cpp55 FieldIds(JNIEnv* env, jclass clazz) { in FieldIds()
56 mLayoutAlgorithm = env->GetFieldID(clazz, "mLayoutAlgorithm", in FieldIds()
58 mTextSize = env->GetFieldID(clazz, "mTextSize", in FieldIds()
60 mStandardFontFamily = env->GetFieldID(clazz, "mStandardFontFamily", in FieldIds()
62 mFixedFontFamily = env->GetFieldID(clazz, "mFixedFontFamily", in FieldIds()
64 mSansSerifFontFamily = env->GetFieldID(clazz, "mSansSerifFontFamily", in FieldIds()
66 mSerifFontFamily = env->GetFieldID(clazz, "mSerifFontFamily", in FieldIds()
68 mCursiveFontFamily = env->GetFieldID(clazz, "mCursiveFontFamily", in FieldIds()
70 mFantasyFontFamily = env->GetFieldID(clazz, "mFantasyFontFamily", in FieldIds()
72 mDefaultTextEncoding = env->GetFieldID(clazz, "mDefaultTextEncoding", in FieldIds()
[all …]
DWebCoreFrameBridge.cpp149 AutoJObject frame(JNIEnv* env) { in frame()
150 return getRealObject(env, mObj); in frame()
152 AutoJObject history(JNIEnv* env) { in history()
153 return getRealObject(env, mHistoryList); in history()
158 #define GET_NATIVE_FRAME(env, obj) ((WebCore::Frame*)env->GetIntField(obj, gFrameField)) argument
159 #define SET_NATIVE_FRAME(env, obj, frame) (env->SetIntField(obj, gFrameField, frame)) argument
163 WebFrame::WebFrame(JNIEnv* env, jobject obj, jobject historyList, WebCore::Page* page) in WebFrame() argument
166 jclass clazz = env->GetObjectClass(obj); in WebFrame()
168 mJavaFrame->mObj = adoptGlobalRef(env, obj); in WebFrame()
169 mJavaFrame->mHistoryList = adoptGlobalRef(env, historyList); in WebFrame()
[all …]
DWebCoreResourceLoader.cpp65 #define GET_NATIVE_HANDLE(env, obj) ((WebCore::ResourceHandle*)env->GetIntField(obj, gResourceLoade… argument
66 #define SET_NATIVE_HANDLE(env, obj, handle) (env->SetIntField(obj, gResourceLoader.mObject, handle)) argument
71 WebCoreResourceLoader::WebCoreResourceLoader(JNIEnv *env, jobject jLoadListener) in WebCoreResourceLoader() argument
73 mJLoader = env->NewGlobalRef(jLoadListener); in WebCoreResourceLoader()
78 JNIEnv* env = JSC::Bindings::getJNIEnv(); in ~WebCoreResourceLoader() local
79 SET_NATIVE_HANDLE(env, mJLoader, 0); in ~WebCoreResourceLoader()
80 env->DeleteGlobalRef(mJLoader); in ~WebCoreResourceLoader()
86 JNIEnv* env = JSC::Bindings::getJNIEnv(); in cancel() local
87 env->CallVoidMethod(mJLoader, gResourceLoader.mCancelMethodID); in cancel()
88 checkException(env); in cancel()
[all …]
DWebViewCore.cpp144 #define GET_NATIVE_VIEW(env, obj) ((WebViewCore*)env->GetIntField(obj, gWebViewCoreFields.m_nativeC… argument
194 AutoJObject object(JNIEnv* env) { in object()
195 return getRealObject(env, m_obj); in object()
203 static jmethodID GetJMethod(JNIEnv* env, jclass clazz, const char name[], const char signature[]) in GetJMethod() argument
205 jmethodID m = env->GetMethodID(clazz, name, signature); in GetJMethod()
215 WebViewCore::WebViewCore(JNIEnv* env, jobject javaWebViewCore, WebCore::Frame* mainframe) in WebViewCore() argument
236 jclass clazz = env->GetObjectClass(javaWebViewCore); in WebViewCore()
238 m_javaGlue->m_obj = adoptGlobalRef(env, javaWebViewCore); in WebViewCore()
239 m_javaGlue->m_spawnScrollTo = GetJMethod(env, clazz, "contentSpawnScrollTo", "(II)V"); in WebViewCore()
240 m_javaGlue->m_scrollTo = GetJMethod(env, clazz, "contentScrollTo", "(II)V"); in WebViewCore()
[all …]
DWebCoreJni.cpp42 jobject adoptGlobalRef(JNIEnv* env, jobject obj) in adoptGlobalRef() argument
45 jobject ref = env->NewObject(gWeakRefClass, gWeakRefInit, obj); in adoptGlobalRef()
47 ref = env->NewGlobalRef(ref); in adoptGlobalRef()
51 AutoJObject getRealObject(JNIEnv* env, jobject obj) in getRealObject() argument
53 jobject real = env->CallObjectMethod(obj, gWeakRefGet); in getRealObject()
56 return AutoJObject(env, real); in getRealObject()
63 bool checkException(JNIEnv* env) in checkException() argument
65 if (env->ExceptionCheck() != 0) in checkException()
68 env->ExceptionDescribe(); in checkException()
75 WebCore::String to_string(JNIEnv* env, jstring str) in to_string() argument
[all …]
/external/webkit/WebCore/bridge/jni/
Djni_utility.cpp96 JNIEnv* env; in getJNIEnv() member
103 return u.env; in getJNIEnv()
111 JNIEnv *env = getJNIEnv(); in getMethodID() local
114 if ( env != NULL) { in getMethodID()
115 jclass cls = env->GetObjectClass(obj); in getMethodID()
117 mid = env->GetMethodID(cls, name, sig); in getMethodID()
119 env->ExceptionClear(); in getMethodID()
120 mid = env->GetStaticMethodID(cls, name, sig); in getMethodID()
122 env->ExceptionClear(); in getMethodID()
126 env->DeleteLocalRef(cls); in getMethodID()
[all …]
/external/webkit/WebKit/android/WebCoreSupport/
DMediaPlayerPrivateAndroid.cpp61 JNIEnv* env = JSC::Bindings::getJNIEnv(); in ~MediaPlayerPrivate() local
62 if (env) { in ~MediaPlayerPrivate()
63 env->CallVoidMethod(m_glue->m_javaProxy, m_glue->m_teardown); in ~MediaPlayerPrivate()
64 env->DeleteGlobalRef(m_glue->m_javaProxy); in ~MediaPlayerPrivate()
88 JNIEnv* env = JSC::Bindings::getJNIEnv(); in play() local
89 if (!env || !m_glue->m_javaProxy || !m_url.length()) in play()
93 jstring jUrl = env->NewString((unsigned short *)m_url.characters(), m_url.length()); in play()
94 env->CallVoidMethod(m_glue->m_javaProxy, m_glue->m_play, jUrl); in play()
95 env->DeleteLocalRef(jUrl); in play()
96 checkException(env); in play()
[all …]
/external/webkit/WebKit/android/nav/
DWebView.cpp66 #define GET_NATIVE_VIEW(env, obj) ((WebView*)env->GetIntField(obj, gWebViewField)) argument
78 static jmethodID GetJMethod(JNIEnv* env, jclass clazz, const char name[], const char signature[]) in GetJMethod() argument
80 jmethodID m = env->GetMethodID(clazz, name, signature); in GetJMethod()
118 AutoJObject object(JNIEnv* env) { in object()
119 return getRealObject(env, m_obj); in object()
123 WebView(JNIEnv* env, jobject javaWebView, int viewImpl) in WebView() argument
125 jclass clazz = env->FindClass("android/webkit/WebView"); in WebView()
127 m_javaGlue.m_obj = adoptGlobalRef(env, javaWebView); in WebView()
128 m_javaGlue.m_scrollBy = GetJMethod(env, clazz, "setContentScrollBy", "(IIZ)Z"); in WebView()
129 m_javaGlue.m_clearTextEntry = GetJMethod(env, clazz, "clearTextEntry", "()V"); in WebView()
[all …]
/external/opencore/codecs_v2/audio/aac/dec/src/
Dps_bstr_decoding.cpp137 UInt32 env; in ps_bstr_decoding() local
147 for (env = 0; env < ps_dec->noEnv; env++) in ps_bstr_decoding()
151 if (env == 0) in ps_bstr_decoding()
158 aPrevIidIndex = ps_dec->aaIidIndex[env-1]; in ps_bstr_decoding()
159 aPrevIccIndex = ps_dec->aaIccIndex[env-1]; in ps_bstr_decoding()
166 ps_dec->aaIidIndex[env], in ps_bstr_decoding()
168 ps_dec->abIidDtFlag[env], in ps_bstr_decoding()
178 ps_dec->aaIccIndex[env], in ps_bstr_decoding()
180 ps_dec->abIccDtFlag[env], in ps_bstr_decoding()
238 for (env = 1; env < ps_dec->noEnv; env++) in ps_bstr_decoding()
[all …]
/external/webkit/V8Binding/jni/
Djni_utility.cpp90 JNIEnv* env; in getJNIEnv() member
97 return u.env; in getJNIEnv()
105 JNIEnv *env = getJNIEnv(); in getMethodID() local
108 if ( env != NULL) { in getMethodID()
109 jclass cls = env->GetObjectClass(obj); in getMethodID()
111 mid = env->GetMethodID(cls, name, sig); in getMethodID()
113 env->ExceptionClear(); in getMethodID()
114 mid = env->GetStaticMethodID(cls, name, sig); in getMethodID()
116 env->ExceptionClear(); in getMethodID()
120 env->DeleteLocalRef(cls); in getMethodID()
[all …]
/external/bluetooth/bluez/scripts/
Dbluetooth-hid2hci.rules11 …e0", KERNEL=="mouse*", RUN+="/usr/sbin/hid2hci --method dell -v $env{ID_VENDOR} -p $env{ID_MODEL} …
14 …{ID_MODEL}=="c703" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
15 …{ID_MODEL}=="c704" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
16 …{ID_MODEL}=="c705" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
17 …{ID_MODEL}=="c70a" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
18 …{ID_MODEL}=="c70b" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
19 …{ID_MODEL}=="c70c" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
20 …{ID_MODEL}=="c70e" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
21 …{ID_MODEL}=="c713" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
22 …{ID_MODEL}=="c714" RUN+="/usr/sbin/hid2hci --method logitech -v $env{ID_VENDOR} -p $env{ID_MODEL} …
[all …]
/external/tesseract/api/
Djni.cpp58 static inline native_data_t * get_native_data(JNIEnv *env, jobject object) { in get_native_data() argument
59 return (native_data_t *)(env->GetIntField(object, field_mNativeData)); in get_native_data()
227 ocr_open(JNIEnv *env, jobject thiz, jstring lang) in ocr_open() argument
231 native_data_t *nat = get_native_data(env, thiz); in ocr_open()
238 const char *c_lang = env->GetStringUTFChars(lang, NULL); in ocr_open()
255 env->ReleaseStringUTFChars(lang, c_lang); in ocr_open()
281 ocr_set_encoded(JNIEnv *env, jobject thiz, in ocr_set_encoded() argument
288 native_data_t *nat = get_native_data(env, thiz); in ocr_set_encoded()
295 nat->image_obj = (jbyteArray)env->NewGlobalRef(image); in ocr_set_encoded()
296 nat->image_buffer = env->GetByteArrayElements(nat->image_obj, NULL); in ocr_set_encoded()
[all …]
/external/webkit/WebKitTools/wx/build/
Dsettings.py178 conf.env.append_value('CXXDEFINES', ['BUILDING_WX__=1', 'WTF_USE_WXGC=1'])
181 conf.env.append_value('LIBPATH', os.path.join(msvclibs_dir, 'lib'))
184 conf.env['CXXDEFINES_WX'] = wxdefines
185 conf.env['CPPPATH_WX'] = wxincludes
186 conf.env['LIB_WX'] = wxlibs
187 conf.env['LIBPATH_WX'] = wxlibpaths
190 conf.env['LIB_ICU'] = ['icucore']
192 … conf.env['CPPPATH_ICU'] = [os.path.join(jscore_dir, 'icu'), os.path.join(webcore_dir, 'icu')]
194 conf.env.append_value('CPPPATH', wklibs_dir)
195 conf.env.append_value('LIBPATH', wklibs_dir)
[all …]

12345678