Home
last modified time | relevance | path

Searched refs:jobject (Results 1 – 25 of 67) sorted by relevance

123

/external/webkit/WebCore/bridge/jni/
DJNIUtility.h71 jvalue getJNIField(jobject, JNIType, const char* name, const char* signature);
73 jmethodID getMethodID(jobject, const char* name, const char* sig);
82 static void callA(jobject obj, jmethodID mid, jvalue* args)
86 static void callV(jobject obj, jmethodID mid, va_list args)
92 template<> struct JNICaller<jobject> {
93 static jobject callA(jobject obj, jmethodID mid, jvalue* args)
97 static jobject callV(jobject obj, jmethodID mid, va_list args)
104 static jboolean callA(jobject obj, jmethodID mid, jvalue* args)
108 static jboolean callV(jobject obj, jmethodID mid, va_list args)
119 static jbyte callA(jobject obj, jmethodID mid, jvalue* args)
[all …]
Djni_jsobject.h71 jobject value;
82 jobject call(jstring methodName, jobjectArray args) const;
83 jobject eval(jstring script) const;
84 jobject getMember(jstring memberName) const;
85 void setMember(jstring memberName, jobject value) const;
87 jobject getSlot(jint index) const;
88 void setSlot(jint index, jobject value) const;
94 jobject convertValueToJObject(JSValue) const;
95 JSValue convertJObjectToValue(ExecState*, jobject) const;
117 jobject KJS_JSObject_JSObjectCall(JNIEnv*, jclass, jlong nativeJSObject, jstring jurl, jstring meth…
[all …]
DJNIBridge.cpp56 JavaMethod::JavaMethod(JNIEnv* env, jobject aMethod) in JavaMethod()
60 …if (jobject returnType = callJNIMethod<jobject>(aMethod, "getReturnType", "()Ljava/lang/Class;")) { in JavaMethod()
61 …returnTypeName = static_cast<jstring>(callJNIMethod<jobject>(returnType, "getName", "()Ljava/lang/… in JavaMethod()
71 …jstring methodName = static_cast<jstring>(callJNIMethod<jobject>(aMethod, "getName", "()Ljava/lang… in JavaMethod()
78 …if (jarray jparameters = static_cast<jarray>(callJNIMethod<jobject>(aMethod, "getParameterTypes", … in JavaMethod()
83jobject aParameter = env->GetObjectArrayElement(static_cast<jobjectArray>(jparameters), i); in JavaMethod()
84 …jstring parameterName = static_cast<jstring>(callJNIMethod<jobject>(aParameter, "getName", "()Ljav… in JavaMethod()
183 jmethodID JavaMethod::methodID(jobject obj) const in methodID()
/external/webkit/WebKit/android/jni/
DWebCoreResourceLoader.h38 static PassRefPtr<WebCore::ResourceLoaderAndroid> create(JNIEnv *env, jobject jLoadListener);
60 static void SetResponseHeader(JNIEnv*, jobject, jint, jstring, jstring);
61 static jint CreateResponse(JNIEnv*, jobject, jstring, jint, jstring,
63 static void ReceivedResponse(JNIEnv*, jobject, jint);
64 static void AddData(JNIEnv*, jobject, jbyteArray, jint);
65 static void Finished(JNIEnv*, jobject);
66 static jstring RedirectedToUrl(JNIEnv*, jobject, jstring, jstring, jint);
67 static void Error(JNIEnv*, jobject, jint, jstring, jstring);
70 WebCoreResourceLoader(JNIEnv *env, jobject jLoadListener);
72 jobject mJLoader;
DJavaBridge.cpp68 JavaBridge(JNIEnv* env, jobject obj);
97 static void Constructor(JNIEnv* env, jobject obj);
98 static void Finalize(JNIEnv* env, jobject obj);
99 static void SharedTimerFired(JNIEnv* env, jobject);
100 static void SetCacheSize(JNIEnv* env, jobject obj, jint bytes);
101 static void SetNetworkOnLine(JNIEnv* env, jobject obj, jboolean online);
102 static void SetNetworkType(JNIEnv* env, jobject obj, jstring type, jstring subtype);
103 static void SetDeferringTimers(JNIEnv* env, jobject obj, jboolean defer);
105 …static void UpdatePluginDirectories(JNIEnv* env, jobject obj, jobjectArray array, jboolean reload);
106 static void AddPackageNames(JNIEnv* env, jobject obj, jobject packageNames);
[all …]
DWebCoreJni.h42 jobject get() const { in get()
47 jobject release() { in release()
48 jobject obj = m_obj; in release()
56 AutoJObject(JNIEnv* env, jobject obj) in AutoJObject()
60 jobject m_obj;
61 friend AutoJObject getRealObject(JNIEnv*, jobject);
66 AutoJObject getRealObject(JNIEnv*, jobject);
DGeolocationPermissionsBridge.cpp42 static jobject getOrigins(JNIEnv* env, jobject obj) in getOrigins()
49 jobject set = env->NewObject(setClass, constructor); in getOrigins()
60 static bool getAllowed(JNIEnv* env, jobject obj, jstring origin) in getAllowed()
66 static void clear(JNIEnv* env, jobject obj, jstring origin) in clear()
72 static void allow(JNIEnv* env, jobject obj, jstring origin) in allow()
78 static void clearAll(JNIEnv* env, jobject obj) in clearAll()
DWebStorage.cpp43 static jobject GetOrigins(JNIEnv* env, jobject obj) in GetOrigins()
61 jobject set = env->NewObject(setClass, cid); in GetOrigins()
74 static unsigned long long GetQuotaForOrigin(JNIEnv* env, jobject obj, jstring origin) in GetQuotaForOrigin()
82 static unsigned long long GetUsageForOrigin(JNIEnv* env, jobject obj, jstring origin) in GetUsageForOrigin()
104 static void SetQuotaForOrigin(JNIEnv* env, jobject obj, jstring origin, unsigned long long quota) in SetQuotaForOrigin()
111 static void DeleteOrigin(JNIEnv* env, jobject obj, jstring origin) in DeleteOrigin()
130 static void DeleteAllData(JNIEnv* env, jobject obj) in DeleteAllData()
141 static void SetAppCacheMaximumSize(JNIEnv* env, jobject obj, unsigned long long size) in SetAppCacheMaximumSize()
DWebIconDatabase.cpp52 jobject webcoreImageToJavaBitmap(JNIEnv* env, WebCore::Image* icon) in webcoreImageToJavaBitmap()
134 static void Open(JNIEnv* env, jobject obj, jstring path) in Open()
166 static void Close(JNIEnv* env, jobject obj) in Close()
171 static void RemoveAllIcons(JNIEnv* env, jobject obj) in RemoveAllIcons()
177 static jobject IconForPageUrl(JNIEnv* env, jobject obj, jstring url) in IconForPageUrl()
188 static void RetainIconForPageUrl(JNIEnv* env, jobject obj, jstring url) in RetainIconForPageUrl()
197 static void ReleaseIconForPageUrl(JNIEnv* env, jobject obj, jstring url) in ReleaseIconForPageUrl()
DWebCoreFrameBridge.cpp205 WebFrame::WebFrame(JNIEnv* env, jobject obj, jobject historyList, WebCore::Page* page) in WebFrame()
293 static jobject createJavaMapFromHTTPHeaders(JNIEnv* env, const WebCore::HTTPHeaderMap& map) in createJavaMapFromHTTPHeaders()
299 jobject hashMap = env->NewObject(mapClass, init, map.size()); in createJavaMapFromHTTPHeaders()
458 jobject jHeaderMap = createJavaMapFromHTTPHeaders(env, headers); in startLoadingResource()
485 jobject jLoadListener = in startLoadingResource()
550 jobject favicon = NULL; in loadStarted()
704 jobject bitmap = webcoreImageToJavaBitmap(env, icon); in didReceiveIcon()
778 jobject obj = env->CallObjectMethod(mJavaFrame->frame(env).get(), in createWindow()
846 static void CallPolicyFunction(JNIEnv* env, jobject obj, jint func, jint decision) in CallPolicyFunction()
863 static void CreateFrame(JNIEnv* env, jobject obj, jobject javaview, jobject jAssetManager, jobject in CreateFrame()
[all …]
DWebViewCore.cpp171 jobject WebViewCore::getApplicationContext() { in getApplicationContext()
178 jobject context = gInstanceList[0]->getContext(); in getApplicationContext()
187 jobject result = env->CallObjectMethod(context, appContextMethod); in getApplicationContext()
295 WebViewCore::WebViewCore(JNIEnv* env, jobject javaWebViewCore, WebCore::Frame* mainframe) in WebViewCore()
1926 jobject newString = env->NewString(&labels[i][1], labels[i][0]); in makeLabelArray()
2379 jobject
2450 jobject pluginClass = env->CallObjectMethod(m_javaGlue->object(env).get(), in getPluginClass()
2466 void WebViewCore::showFullScreenPlugin(jobject childView, NPP npp) in showFullScreenPlugin()
2484 jobject WebViewCore::addSurface(jobject view, int x, int y, int width, int height) in addSurface()
2487 jobject result = env->CallObjectMethod(m_javaGlue->object(env).get(), in addSurface()
[all …]
DWebViewCore.h100 WebViewCore(JNIEnv* env, jobject javaView, WebCore::Frame* mainframe);
358 jobject getWebViewJavaObject();
404 void showFullScreenPlugin(jobject webkitPlugin, NPP npp);
410 jobject addSurface(jobject view, int x, int y, int width, int height);
413 void updateSurface(jobject childView, int x, int y, int width, int height);
416 void destroySurface(jobject childView);
419 jobject getContext();
580 static jobject getApplicationContext();
DWebCoreResourceLoader.cpp70 PassRefPtr<WebCore::ResourceLoaderAndroid> WebCoreResourceLoader::create(JNIEnv *env, jobject jLoad… in create()
75 WebCoreResourceLoader::WebCoreResourceLoader(JNIEnv *env, jobject jLoadListener) in WebCoreResourceLoader()
134 void WebCoreResourceLoader::SetResponseHeader(JNIEnv* env, jobject obj, jint nativeResponse, jstrin… in SetResponseHeader()
151 jint WebCoreResourceLoader::CreateResponse(JNIEnv* env, jobject obj, jstring url, jint statusCode, in CreateResponse()
182 void WebCoreResourceLoader::ReceivedResponse(JNIEnv* env, jobject obj, jint nativeResponse) in ReceivedResponse()
200 void WebCoreResourceLoader::AddData(JNIEnv* env, jobject obj, jbyteArray dataArray, jint length) in AddData()
223 void WebCoreResourceLoader::Finished(JNIEnv* env, jobject obj) in Finished()
239 jstring WebCoreResourceLoader::RedirectedToUrl(JNIEnv* env, jobject obj, in RedirectedToUrl()
279 void WebCoreResourceLoader::Error(JNIEnv* env, jobject obj, jint id, jstring description, in Error()
/external/webkit/WebKit/android/nav/
DWebView.cpp135 WebView(JNIEnv* env, jobject javaWebView, int viewImpl) : in WebView()
340 jobject jRect = env->NewObject(rectClass, init, 0, 0, 0, 0); in calcOurContentVisibleRect()
622jobject jRect = env->CallObjectMethod(m_javaGlue.object(env).get(), m_javaGlue.m_getVisibleRect); in getVisibleRect()
1218 static int nativeCacheHitFramePointer(JNIEnv *env, jobject obj) in nativeCacheHitFramePointer()
1224 static jobject nativeCacheHitNodeBounds(JNIEnv *env, jobject obj) in nativeCacheHitNodeBounds()
1230 jobject rect = env->NewObject(rectClass, init, bounds.x(), in nativeCacheHitNodeBounds()
1235 static int nativeCacheHitNodePointer(JNIEnv *env, jobject obj) in nativeCacheHitNodePointer()
1241 static void nativeClearCursor(JNIEnv *env, jobject obj) in nativeClearCursor()
1248 static void nativeCreate(JNIEnv *env, jobject obj, int viewImpl) in nativeCreate()
1255 static jint nativeCursorFramePointer(JNIEnv *env, jobject obj) in nativeCursorFramePointer()
[all …]
/external/webkit/WebKit/android/benchmark/
DMyJavaVM.cpp42 jobject env_callObjectMethodV(JNIEnv*, jobject, jmethodID, va_list) { in env_callObjectMethodV() argument
45 void env_callVoidMethodV(JNIEnv*, jobject, jmethodID, va_list) {} in env_callVoidMethodV() argument
46 void env_deleteRef(JNIEnv*, jobject) {} in env_deleteRef() argument
59 jclass env_getObjectClass(JNIEnv*, jobject) { in env_getObjectClass() argument
74 jobject env_newRef(JNIEnv*, jobject obj) { in env_newRef()
77 jobject env_newObjectV(JNIEnv*, jclass, jmethodID, va_list) { in env_newObjectV()
86 void env_setIntField(JNIEnv*, jobject, jfieldID, jint) {} in env_setIntField() argument
/external/webkit/WebCore/bridge/jni/v8/
DJavaClassV8.cpp32 JavaClass::JavaClass(jobject anInstance) in JavaClass()
34 jobject aClass = callJNIMethod<jobject>(anInstance, "getClass", "()Ljava/lang/Class;"); in JavaClass()
41 …jstring className = static_cast<jstring>(callJNIMethod<jobject>(aClass, "getName", "()Ljava/lang/S… in JavaClass()
50 …jarray fields = static_cast<jarray>(callJNIMethod<jobject>(aClass, "getFields", "()[Ljava/lang/ref… in JavaClass()
53 jobject aJField = env->GetObjectArrayElement(static_cast<jobjectArray>(fields), i); in JavaClass()
62 …jarray methods = static_cast<jarray>(callJNIMethod<jobject>(aClass, "getMethods", "()[Ljava/lang/r… in JavaClass()
65 jobject aJMethod = env->GetObjectArrayElement(static_cast<jobjectArray>(methods), i); in JavaClass()
DJavaInstanceV8.h50 jobject instance() const { return m_instance; } in instance()
51 void setInstance(jobject instance) { m_instance = instance; } in setInstance()
61 JObjectWrapper(jobject);
64 jobject m_instance;
73 JavaInstance(jobject instance);
80 jobject javaInstance() const { return m_instance->m_instance; } in javaInstance()
DJNIBridgeV8.cpp31 JavaField::JavaField(JNIEnv* env, jobject aField) in JavaField()
34 jobject fieldType = callJNIMethod<jobject>(aField, "getType", "()Ljava/lang/Class;"); in JavaField()
35 …jstring fieldTypeName = static_cast<jstring>(callJNIMethod<jobject>(fieldType, "getName", "()Ljava… in JavaField()
40 …jstring fieldName = static_cast<jstring>(callJNIMethod<jobject>(aField, "getName", "()Ljava/lang/S… in JavaField()
/external/webkit/WebCore/bridge/jni/jsc/
DJavaInstanceJSC.h50 jobject instance() const { return m_instance; } in instance()
51 void setInstance(jobject instance) { m_instance = instance; } in setInstance()
61 JObjectWrapper(jobject instance);
64 jobject m_instance;
73 static PassRefPtr<JavaInstance> create(jobject instance, PassRefPtr<RootObject> rootObject) in create()
87 jobject javaInstance() const { return m_instance->m_instance; } in javaInstance()
94 JavaInstance(jobject instance, PassRefPtr<RootObject>);
DJavaClassJSC.cpp38 JavaClass::JavaClass(jobject anInstance) in JavaClass()
40 jobject aClass = callJNIMethod<jobject>(anInstance, "getClass", "()Ljava/lang/Class;"); in JavaClass()
48 …if (jstring className = (jstring)callJNIMethod<jobject>(aClass, "getName", "()Ljava/lang/String;")… in JavaClass()
59 …if (jarray fields = (jarray)callJNIMethod<jobject>(aClass, "getFields", "()[Ljava/lang/reflect/Fie… in JavaClass()
62 jobject aJField = env->GetObjectArrayElement((jobjectArray)fields, i); in JavaClass()
74 …if (jarray methods = (jarray)callJNIMethod<jobject>(aClass, "getMethods", "()[Ljava/lang/reflect/M… in JavaClass()
77 jobject aJMethod = env->GetObjectArrayElement((jobjectArray)methods, i); in JavaClass()
DJNIBridgeJSC.cpp50 JavaField::JavaField(JNIEnv* env, jobject aField) in JavaField()
54 if (jobject fieldType = callJNIMethod<jobject>(aField, "getType", "()Ljava/lang/Class;")) in JavaField()
55 …fieldTypeName = static_cast<jstring>(callJNIMethod<jobject>(fieldType, "getName", "()Ljava/lang/St… in JavaField()
63 …jstring fieldName = static_cast<jstring>(callJNIMethod<jobject>(aField, "getName", "()Ljava/lang/S… in JavaField()
71 JSValue JavaArray::convertJObjectToArray(ExecState* exec, jobject anObject, const char* type, PassR… in convertJObjectToArray()
81 jobject jinstance = instance->javaInstance(); in dispatchValueFromInstance()
82 jobject fieldJInstance = m_field->m_instance; in dispatchValueFromInstance()
117 jobject anObject = result.l; in valueFromInstance()
165 jobject jinstance = instance->javaInstance(); in dispatchSetValueToInstance()
166 jobject fieldJInstance = m_field->m_instance; in dispatchSetValueToInstance()
[all …]
DJNIBridgeJSC.h42 JavaField(JNIEnv*, jobject aField);
64 JavaArray(jobject array, const char* type, PassRefPtr<RootObject>);
73 jobject javaArray() const { return m_array->m_instance; } in javaArray()
75 …static JSValue convertJObjectToArray(ExecState*, jobject, const char* type, PassRefPtr<RootObject>…
/external/quake/quake/src/WinQuake/
DmasterMain.cpp36 qinit(JNIEnv *env, jobject thiz) { in qinit()
42 qevent(JNIEnv *env, jobject thiz, jint type, jint value) { in qevent()
47 qmotionevent(JNIEnv *env, jobject thiz, jlong eventTime, jint action, in qmotionevent()
55 qtrackballevent(JNIEnv *env, jobject thiz, jlong eventTime, jint action, in qtrackballevent()
62 qstep(JNIEnv *env, jobject thiz, jint width, jint height) { in qstep()
67 qquit(JNIEnv *env, jobject thiz) { in qquit()
/external/quake/quake/src/QW/client/
Dmain.cpp38 qinit(JNIEnv *env, jobject thiz, /* jobjectArray config, */ in qinit()
44 qevent(JNIEnv *env, jobject thiz, jint type, jint value) { in qevent()
49 qstep(JNIEnv *env, jobject thiz) { in qstep()
54 qquitting(JNIEnv *env, jobject thiz) { in qquitting()
/external/webkit/WebKit/android/WebCoreSupport/
DMediaPlayerPrivateAndroid.cpp50 jobject m_javaProxy;
285 jobject obj = NULL; in createJavaPlayerIfNeeded()
405 jobject obj = NULL; in createJavaPlayerIfNeeded()
437 static void OnPrepared(JNIEnv* env, jobject obj, int duration, int width, int height, int pointer) { in OnPrepared()
444 static void OnEnded(JNIEnv* env, jobject obj, int pointer) { in OnEnded()
451 static void OnPaused(JNIEnv* env, jobject obj, int pointer) { in OnPaused()
458 static void OnPosterFetched(JNIEnv* env, jobject obj, jobject poster, int pointer) { in OnPosterFetched()
469 static void OnBuffering(JNIEnv* env, jobject obj, int percent, int pointer) { in OnBuffering()
476 static void OnTimeupdate(JNIEnv* env, jobject obj, int position, int pointer) { in OnTimeupdate()

123