Searched defs:env (Results 126 - 150 of 199) sorted by relevance

12345678

/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp138 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_init(JNIEnv * env, jobject obj, jint width, jint height);
139 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_step(JNIEnv * env, jobject obj);
140 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_changeBackground(JNIEnv * env, jobject obj);
143 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
149 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_step(JNIEnv * env, jobject obj) argument
180 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_changeBackground(JNIEnv * env, jobject obj) argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaCrypto.cpp40 static sp<JCrypto> getCrypto(JNIEnv *env, jobject thiz) { argument
41 return (JCrypto *)env->GetIntField(thiz, gFields.context);
45 JNIEnv *env, jobject thiz,
47 mObject = env->NewWeakGlobalRef(thiz);
55 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
57 env->DeleteWeakGlobalRef(mObject);
126 sp<ICrypto> JCrypto::GetCrypto(JNIEnv *env, jobject obj) { argument
127 jclass clazz = env->FindClass("android/media/MediaCrypto");
130 if (!env->IsInstanceOf(obj, clazz)) {
134 sp<JCrypto> jcrypto = getCrypto(env, ob
44 JCrypto( JNIEnv *env, jobject thiz, const uint8_t uuid[16], const void *initData, size_t initSize) argument
147 setCrypto( JNIEnv *env, jobject thiz, const sp<JCrypto> &crypto) argument
161 android_media_MediaCrypto_release(JNIEnv *env, jobject thiz) argument
165 android_media_MediaCrypto_native_init(JNIEnv *env) argument
173 android_media_MediaCrypto_native_setup( JNIEnv *env, jobject thiz, jbyteArray uuidObj, jbyteArray initDataObj) argument
221 android_media_MediaCrypto_native_finalize( JNIEnv *env, jobject thiz) argument
226 android_media_MediaCrypto_isCryptoSchemeSupportedNative( JNIEnv *env, jobject thiz, jbyteArray uuidObj) argument
249 android_media_MediaCrypto_requiresSecureDecoderComponent( JNIEnv *env, jobject thiz, jstring mimeObj) argument
294 register_android_media_Crypto(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaScanner.cpp50 static status_t checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
51 if (env->ExceptionCheck()) {
53 LOGE_EX(env);
54 env->ExceptionClear();
63 MyMediaScannerClient(JNIEnv *env, jobject client) argument
64 : mEnv(env),
65 mClient(env->NewGlobalRef(client)),
72 env->FindClass(kClassMediaScannerClient);
77 mScanFileMethodID = env->GetMethodID(
82 mHandleStringTagMethodID = env
183 getNativeScanner_l(JNIEnv* env, jobject thiz) argument
188 setNativeScanner_l(JNIEnv* env, jobject thiz, MediaScanner *s) argument
194 android_media_MediaScanner_processDirectory( JNIEnv *env, jobject thiz, jstring path, jobject client) argument
223 android_media_MediaScanner_processFile( JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument
266 android_media_MediaScanner_setLocale( JNIEnv *env, jobject thiz, jstring locale) argument
290 android_media_MediaScanner_extractAlbumArt( JNIEnv *env, jobject thiz, jobject fileDescriptor) argument
332 android_media_MediaScanner_native_init(JNIEnv *env) argument
347 android_media_MediaScanner_native_setup(JNIEnv *env, jobject thiz) argument
361 android_media_MediaScanner_native_finalize(JNIEnv *env, jobject thiz) argument
418 register_android_media_MediaScanner(JNIEnv *env) argument
[all...]
H A Dandroid_media_Utils.cpp30 JNIEnv *env, jobjectArray keys, jobjectArray values,
36 nKeyValuePairs = env->GetArrayLength(keys);
37 failed = (nKeyValuePairs != env->GetArrayLength(values));
47 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
54 jstring key = (jstring) env->GetObjectArrayElement(keys, i);
55 jstring value = (jstring) env->GetObjectArrayElement(values, i);
57 const char* keyStr = env->GetStringUTFChars(key, NULL);
62 const char* valueStr = env->GetStringUTFChars(value, NULL);
64 env->ReleaseStringUTFChars(key, keyStr);
70 env
29 ConvertKeyValueArraysToKeyedVector( JNIEnv *env, jobjectArray keys, jobjectArray values, KeyedVector<String8, String8>* keyedVector) argument
78 makeIntegerObject(JNIEnv *env, int32_t value) argument
88 makeLongObject(JNIEnv *env, int64_t value) argument
98 makeFloatObject(JNIEnv *env, float value) argument
108 makeByteBufferObject( JNIEnv *env, const void *data, size_t size) argument
128 SetMapInt32( JNIEnv *env, jobject hashMapObj, jmethodID hashMapPutID, const char *key, int32_t value) argument
141 ConvertMessageToMap( JNIEnv *env, const sp<AMessage> &msg, jobject *map) argument
276 ConvertKeyValueArraysToMessage( JNIEnv *env, jobjectArray keys, jobjectArray values, sp<AMessage> *out) argument
[all...]
H A Dandroid_media_MediaMetadataRetriever.cpp50 static void process_media_retriever_call(JNIEnv *env, status_t opStatus, const char* exception, const char *message) argument
53 jniThrowException(env, "java/lang/IllegalStateException", NULL);
57 jniThrowException( env, exception, message);
62 jniThrowException( env, exception, msg);
67 static MediaMetadataRetriever* getRetriever(JNIEnv* env, jobject thiz) argument
70 MediaMetadataRetriever* retriever = (MediaMetadataRetriever*) env->GetIntField(thiz, fields.context);
74 static void setRetriever(JNIEnv* env, jobject thiz, int retriever) argument
77 MediaMetadataRetriever *old = (MediaMetadataRetriever*) env->GetIntField(thiz, fields.context);
78 env->SetIntField(thiz, fields.context, retriever);
83 JNIEnv *env, jobjec
82 android_media_MediaMetadataRetriever_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument
134 android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
218 android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env, jobject thiz, jlong timeUs, jint option) argument
299 android_media_MediaMetadataRetriever_getEmbeddedPicture( JNIEnv *env, jobject thiz, jint pictureType) argument
339 android_media_MediaMetadataRetriever_extractMetadata(JNIEnv *env, jobject thiz, jint keyCode) argument
356 android_media_MediaMetadataRetriever_release(JNIEnv *env, jobject thiz) argument
365 android_media_MediaMetadataRetriever_native_finalize(JNIEnv *env, jobject thiz) argument
375 android_media_MediaMetadataRetriever_native_init(JNIEnv *env) argument
430 android_media_MediaMetadataRetriever_native_setup(JNIEnv *env, jobject thiz) argument
461 register_android_media_MediaMetadataRetriever(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaRecorder.cpp45 extern sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, struct JNICameraContext** context);
64 JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
73 JNIMediaRecorderListener::JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
78 jclass clazz = env->GetObjectClass(thiz);
81 jniThrowException(env, "java/lang/Exception", NULL);
84 mClass = (jclass)env->NewGlobalRef(clazz);
88 mObject = env->NewGlobalRef(weak_thiz);
94 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
95 env->DeleteGlobalRef(mObject);
96 env
103 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
109 get_surface(JNIEnv* env, jobject clazz) argument
117 process_media_recorder_call(JNIEnv *env, status_t opStatus, const char* exception, const char* message) argument
130 getMediaRecorder(JNIEnv* env, jobject thiz) argument
137 setMediaRecorder(JNIEnv* env, jobject thiz, const sp<MediaRecorder>& recorder) argument
152 android_media_MediaRecorder_setCamera(JNIEnv* env, jobject thiz, jobject camera) argument
166 android_media_MediaRecorder_setVideoSource(JNIEnv *env, jobject thiz, jint vs) argument
178 android_media_MediaRecorder_setAudioSource(JNIEnv *env, jobject thiz, jint as) argument
191 android_media_MediaRecorder_setOutputFormat(JNIEnv *env, jobject thiz, jint of) argument
203 android_media_MediaRecorder_setVideoEncoder(JNIEnv *env, jobject thiz, jint ve) argument
215 android_media_MediaRecorder_setAudioEncoder(JNIEnv *env, jobject thiz, jint ae) argument
227 android_media_MediaRecorder_setParameter(JNIEnv *env, jobject thiz, jstring params) argument
250 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
264 android_media_MediaRecorder_setVideoSize(JNIEnv *env, jobject thiz, jint width, jint height) argument
277 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument
289 android_media_MediaRecorder_setMaxDuration(JNIEnv *env, jobject thiz, jint max_duration_ms) argument
301 android_media_MediaRecorder_setMaxFileSize( JNIEnv *env, jobject thiz, jlong max_filesize_bytes) argument
314 android_media_MediaRecorder_prepare(JNIEnv *env, jobject thiz) argument
340 android_media_MediaRecorder_native_getMaxAmplitude(JNIEnv *env, jobject thiz) argument
350 android_media_MediaRecorder_start(JNIEnv *env, jobject thiz) argument
358 android_media_MediaRecorder_stop(JNIEnv *env, jobject thiz) argument
366 android_media_MediaRecorder_native_reset(JNIEnv *env, jobject thiz) argument
374 android_media_MediaRecorder_release(JNIEnv *env, jobject thiz) argument
388 android_media_MediaRecorder_native_init(JNIEnv *env) argument
426 android_media_MediaRecorder_native_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument
447 android_media_MediaRecorder_native_finalize(JNIEnv *env, jobject thiz) argument
483 register_android_media_MediaRecorder(JNIEnv *env) argument
[all...]
H A Dandroid_mtp_MtpDevice.cpp88 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice) argument
90 return (MtpDevice*)env->GetIntField(javaDevice, field_context);
93 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
94 if (env->ExceptionCheck()) {
96 LOGE_EX(env);
97 env->ExceptionClear();
104 android_mtp_MtpDevice_open(JNIEnv *env, jobject thiz, jstring deviceName, jint fd) argument
106 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL);
112 env->ReleaseStringUTFChars(deviceName, deviceNameStr);
115 env
120 android_mtp_MtpDevice_close(JNIEnv *env, jobject thiz) argument
131 android_mtp_MtpDevice_get_device_info(JNIEnv *env, jobject thiz) argument
168 android_mtp_MtpDevice_get_storage_ids(JNIEnv *env, jobject thiz) argument
187 android_mtp_MtpDevice_get_storage_info(JNIEnv *env, jobject thiz, jint storageID) argument
221 android_mtp_MtpDevice_get_object_handles(JNIEnv *env, jobject thiz, jint storageID, jint format, jint objectID) argument
241 android_mtp_MtpDevice_get_object_info(JNIEnv *env, jobject thiz, jint objectID) argument
303 JNIEnv *env; member in struct:get_object_callback_data
315 android_mtp_MtpDevice_get_object(JNIEnv *env, jobject thiz, jint objectID, jint objectSize) argument
337 android_mtp_MtpDevice_get_thumbnail(JNIEnv *env, jobject thiz, jint objectID) argument
355 android_mtp_MtpDevice_delete_object(JNIEnv *env, jobject thiz, jint object_id) argument
365 android_mtp_MtpDevice_get_parent(JNIEnv *env, jobject thiz, jint object_id) argument
375 android_mtp_MtpDevice_get_storage_id(JNIEnv *env, jobject thiz, jint object_id) argument
385 android_mtp_MtpDevice_import_file(JNIEnv *env, jobject thiz, jint object_id, jstring dest_path) argument
428 register_android_mtp_MtpDevice(JNIEnv *env) argument
[all...]
/frameworks/base/media/jni/soundpool/
H A Dandroid_media_SoundPool.cpp36 static inline SoundPool* MusterSoundPool(JNIEnv *env, jobject thiz) { argument
37 return (SoundPool*)env->GetIntField(thiz, fields.mNativeContext);
42 android_media_SoundPool_load_URL(JNIEnv *env, jobject thiz, jstring path, jint priority) argument
45 SoundPool *ap = MusterSoundPool(env, thiz);
47 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
50 const char* s = env->GetStringUTFChars(path, NULL);
52 env->ReleaseStringUTFChars(path, s);
57 android_media_SoundPool_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, argument
61 SoundPool *ap = MusterSoundPool(env, thiz);
63 return ap->load(jniGetFDFromFileDescriptor(env, fileDescripto
68 android_media_SoundPool_unload(JNIEnv *env, jobject thiz, jint sampleID) argument
76 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, jfloat rate) argument
87 android_media_SoundPool_pause(JNIEnv *env, jobject thiz, jint channelID) argument
96 android_media_SoundPool_resume(JNIEnv *env, jobject thiz, jint channelID) argument
105 android_media_SoundPool_autoPause(JNIEnv *env, jobject thiz) argument
114 android_media_SoundPool_autoResume(JNIEnv *env, jobject thiz) argument
123 android_media_SoundPool_stop(JNIEnv *env, jobject thiz, jint channelID) argument
132 android_media_SoundPool_setVolume(JNIEnv *env, jobject thiz, jint channelID, float leftVolume, float rightVolume) argument
142 android_media_SoundPool_setPriority(JNIEnv *env, jobject thiz, jint channelID, int priority) argument
152 android_media_SoundPool_setLoop(JNIEnv *env, jobject thiz, jint channelID, int loop) argument
162 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, float rate) argument
174 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
179 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, jobject weakRef, jint maxChannels, jint streamType, jint srcQuality) argument
197 android_media_SoundPool_release(JNIEnv *env, jobject thiz) argument
286 JNIEnv* env = NULL; local
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_environment.cpp65 jboolean Java_android_filterfw_core_GLEnvironment_nativeAllocate(JNIEnv* env, jobject thiz) { argument
66 return ToJBool(WrapObjectInJava(new GLEnv(), env, thiz, true));
69 jboolean Java_android_filterfw_core_GLEnvironment_nativeDeallocate(JNIEnv* env, jobject thiz) { argument
70 return ToJBool(DeleteNativeObject<GLEnv>(env, thiz));
73 jboolean Java_android_filterfw_core_GLEnvironment_nativeInitWithNewContext(JNIEnv* env, argument
75 GLEnv* gl_env = ConvertFromJava<GLEnv>(env, thiz);
79 jboolean Java_android_filterfw_core_GLEnvironment_nativeInitWithCurrentContext(JNIEnv* env, argument
81 GLEnv* gl_env = ConvertFromJava<GLEnv>(env, thiz);
85 jboolean Java_android_filterfw_core_GLEnvironment_nativeIsActive(JNIEnv* env, jobject thiz) { argument
86 GLEnv* gl_env = ConvertFromJava<GLEnv>(env, thi
90 Java_android_filterfw_core_GLEnvironment_nativeIsContextActive(JNIEnv* env, jobject thiz) argument
95 Java_android_filterfw_core_GLEnvironment_nativeIsAnyContextActive(JNIEnv* env, jclass clazz) argument
100 Java_android_filterfw_core_GLEnvironment_nativeActivate(JNIEnv* env, jobject thiz) argument
105 Java_android_filterfw_core_GLEnvironment_nativeDeactivate(JNIEnv* env, jobject thiz) argument
110 Java_android_filterfw_core_GLEnvironment_nativeSwapBuffers(JNIEnv* env, jobject thiz) argument
116 getMediaRecorder(JNIEnv* env, jobject jmediarecorder) argument
133 Java_android_filterfw_core_GLEnvironment_nativeAddSurface(JNIEnv* env, jobject thiz, jobject surface) argument
193 Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument
268 Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder( JNIEnv* env, jobject thiz, jobject jmediarecorder) argument
357 Java_android_filterfw_core_GLEnvironment_nativeActivateSurfaceId(JNIEnv* env, jobject thiz, jint surfaceId) argument
364 Java_android_filterfw_core_GLEnvironment_nativeRemoveSurfaceId(JNIEnv* env, jobject thiz, jint surfaceId) argument
371 Java_android_filterfw_core_GLEnvironment_nativeSetSurfaceTimestamp(JNIEnv* env, jobject thiz, jlong timestamp) argument
[all...]
H A Djni_gl_frame.cpp44 jboolean Java_android_filterfw_core_GLFrame_nativeAllocate(JNIEnv* env, argument
49 GLEnv* gl_env_ptr = ConvertFromJava<GLEnv>(env, gl_env);
53 return ToJBool(WrapObjectInJava(frame, env, thiz, true));
60 jboolean Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture(JNIEnv* env, argument
66 GLEnv* gl_env_ptr = ConvertFromJava<GLEnv>(env, gl_env);
70 return ToJBool(WrapObjectInJava(frame, env, thiz, true));
77 jboolean Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo(JNIEnv* env, argument
83 GLEnv* gl_env_ptr = ConvertFromJava<GLEnv>(env, gl_env);
87 return ToJBool(WrapObjectInJava(frame, env, thiz, true));
94 jboolean Java_android_filterfw_core_GLFrame_nativeAllocateExternal(JNIEnv* env, argument
108 Java_android_filterfw_core_GLFrame_nativeDeallocate(JNIEnv* env, jobject thiz) argument
112 Java_android_filterfw_core_GLFrame_setNativeData(JNIEnv* env, jobject thiz, jbyteArray data, jint offset, jint length) argument
129 Java_android_filterfw_core_GLFrame_getNativeData(JNIEnv* env, jobject thiz) argument
141 Java_android_filterfw_core_GLFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints) argument
158 Java_android_filterfw_core_GLFrame_getNativeInts(JNIEnv* env, jobject thiz) argument
170 Java_android_filterfw_core_GLFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument
194 Java_android_filterfw_core_GLFrame_getNativeFloats(JNIEnv* env, jobject thiz) argument
216 Java_android_filterfw_core_GLFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size) argument
233 Java_android_filterfw_core_GLFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap) argument
248 Java_android_filterfw_core_GLFrame_setNativeViewport(JNIEnv* env, jobject thiz, jint x, jint y, jint width, jint height) argument
258 Java_android_filterfw_core_GLFrame_getNativeTextureId(JNIEnv* env, jobject thiz) argument
263 Java_android_filterfw_core_GLFrame_getNativeFboId(JNIEnv* env, jobject thiz) argument
268 Java_android_filterfw_core_GLFrame_generateNativeMipMap(JNIEnv* env, jobject thiz) argument
273 Java_android_filterfw_core_GLFrame_setNativeTextureParam(JNIEnv* env, jobject thiz, jint param, jint value) argument
281 Java_android_filterfw_core_GLFrame_nativeResetParams(JNIEnv* env, jobject thiz) argument
286 Java_android_filterfw_core_GLFrame_nativeCopyFromNative(JNIEnv* env, jobject thiz, jobject frame) argument
297 Java_android_filterfw_core_GLFrame_nativeCopyFromGL(JNIEnv* env, jobject thiz, jobject frame) argument
308 Java_android_filterfw_core_GLFrame_nativeFocus(JNIEnv* env, jobject thiz) argument
313 Java_android_filterfw_core_GLFrame_nativeReattachTexToFbo(JNIEnv* env, jobject thiz) argument
318 Java_android_filterfw_core_GLFrame_nativeDetachTexFromFbo(JNIEnv* env, jobject thiz) argument
[all...]
H A Djni_native_frame.cpp35 jboolean Java_android_filterfw_core_NativeFrame_nativeAllocate(JNIEnv* env, argument
38 return ToJBool(WrapObjectInJava(new NativeFrame(size), env, thiz, true));
41 jboolean Java_android_filterfw_core_NativeFrame_nativeDeallocate(JNIEnv* env, jobject thiz) { argument
42 return ToJBool(DeleteNativeObject<NativeFrame>(env, thiz));
53 jboolean Java_android_filterfw_core_NativeFrame_setNativeData(JNIEnv* env, argument
58 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz);
60 jbyte* bytes = env->GetByteArrayElements(data, NULL);
65 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
72 jbyteArray Java_android_filterfw_core_NativeFrame_getNativeData(JNIEnv* env, argument
75 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thi
87 Java_android_filterfw_core_NativeFrame_getNativeBuffer(JNIEnv* env, jobject thiz, jobject buffer) argument
98 Java_android_filterfw_core_NativeFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints) argument
116 Java_android_filterfw_core_NativeFrame_getNativeInts(JNIEnv* env, jobject thiz, jint size) argument
132 Java_android_filterfw_core_NativeFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument
150 Java_android_filterfw_core_NativeFrame_getNativeFloats(JNIEnv* env, jobject thiz, jint size) argument
166 Java_android_filterfw_core_NativeFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument
216 Java_android_filterfw_core_NativeFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument
268 Java_android_filterfw_core_NativeFrame_getNativeCapacity(JNIEnv* env, jobject thiz) argument
273 Java_android_filterfw_core_NativeFrame_nativeCopyFromNative(JNIEnv* env, jobject thiz, jobject frame) argument
284 Java_android_filterfw_core_NativeFrame_nativeCopyFromGL(JNIEnv* env, jobject thiz, jobject frame) argument
[all...]
H A Djni_util.h51 JavaObject(jobject object, JNIEnv* env);
130 int GetObjectID(JNIEnv* env, jobject j_object) { argument
131 jclass cls = env->GetObjectClass(j_object);
132 jfieldID id_field = env->GetFieldID(cls, id_field_name_.c_str(), "I");
133 const int result = env->GetIntField(j_object, id_field);
134 env->DeleteLocalRef(cls);
141 bool WrapObject(T* c_object, JNIEnv* env, jobject j_object, bool owns) { argument
143 jclass cls = env->GetObjectClass(j_object);
144 jfieldID id_field = env->GetFieldID(cls, id_field_name_.c_str(), "I");
145 env
165 CreateJavaObject(JNIEnv* env) argument
212 WrapObjectInJava(T* c_object, JNIEnv* env, jobject j_object, bool owns) argument
221 WrapNewObjectInJava(T* c_object, JNIEnv* env, bool owns) argument
235 ConvertFromJava(JNIEnv* env, jobject j_object) argument
245 DeleteNativeObject(JNIEnv* env, jobject j_object) argument
[all...]
H A Djni_shader_program.cpp38 jboolean Java_android_filterfw_core_ShaderProgram_allocate(JNIEnv* env, argument
44 GLEnv* gl_env_ptr = ConvertFromJava<GLEnv>(env, gl_env);
52 ToCppString(env, fragment_shader)),
53 env,
59 ToCppString(env, vertex_shader),
60 ToCppString(env, fragment_shader)),
61 env,
66 jboolean Java_android_filterfw_core_ShaderProgram_deallocate(JNIEnv* env, jobject thiz) { argument
67 return ToJBool(DeleteNativeObject<ShaderProgram>(env, thiz));
70 jboolean Java_android_filterfw_core_ShaderProgram_compileAndLink(JNIEnv* env, jobjec argument
75 Java_android_filterfw_core_ShaderProgram_setUniformValue(JNIEnv* env, jobject thiz, jstring key, jobject value) argument
90 Java_android_filterfw_core_ShaderProgram_getUniformValue(JNIEnv* env, jobject thiz, jstring key) argument
98 Java_android_filterfw_core_ShaderProgram_shaderProcess(JNIEnv* env, jobject thiz, jobjectArray inputs, jobject output) argument
135 Java_android_filterfw_core_ShaderProgram_nativeCreateIdentity(JNIEnv* env, jclass, jobject gl_env) argument
143 Java_android_filterfw_core_ShaderProgram_setSourceRegion(JNIEnv* env, jobject thiz, jfloat x0, jfloat y0, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) argument
161 Java_android_filterfw_core_ShaderProgram_setTargetRegion(JNIEnv* env, jobject thiz, jfloat x0, jfloat y0, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) argument
179 Java_android_filterfw_core_ShaderProgram_setShaderClearsOutput(JNIEnv* env, jobject thiz, jboolean clears) argument
190 Java_android_filterfw_core_ShaderProgram_setShaderBlendEnabled(JNIEnv* env, jobject thiz, jboolean enable) argument
201 Java_android_filterfw_core_ShaderProgram_setShaderBlendFunc(JNIEnv* env, jobject thiz, jint sfactor, jint dfactor) argument
213 Java_android_filterfw_core_ShaderProgram_setShaderClearColor(JNIEnv* env, jobject thiz, jfloat r, jfloat g, jfloat b) argument
226 Java_android_filterfw_core_ShaderProgram_setShaderDrawMode(JNIEnv* env, jobject thiz, jint draw_mode) argument
237 Java_android_filterfw_core_ShaderProgram_setShaderTileCounts(JNIEnv* env, jobject thiz, jint x_count, jint y_count) argument
249 Java_android_filterfw_core_ShaderProgram_setShaderVertexCount(JNIEnv* env, jobject thiz, jint vertex_count) argument
260 Java_android_filterfw_core_ShaderProgram_beginShaderDrawing(JNIEnv* env, jobject thiz) argument
265 Java_android_filterfw_core_ShaderProgram_setShaderAttributeValues( JNIEnv* env, jobject thiz, jstring attr_name, jfloatArray values, jint component_count) argument
294 Java_android_filterfw_core_ShaderProgram_setShaderAttributeVertexFrame( JNIEnv* env, jobject thiz, jstring attr_name, jobject vertex_frame, jint type, jint component_count, jint stride, jint offset, jboolean normalize) argument
[all...]
/frameworks/base/native/android/
H A Dasset_manager.cpp72 AAssetManager* AAssetManager_fromJava(JNIEnv* env, jobject assetManager) argument
78 jclass amClass = env->FindClass("android/content/res/AssetManager");
79 gAssetManagerOffsets.mObject = env->GetFieldID(amClass, "mObject", "I");
84 return (AAssetManager*) env->GetIntField(assetManager, gAssetManagerOffsets.mObject);
/frameworks/base/core/jni/android/graphics/
H A DRegion.cpp32 static inline SkRegion* GetSkRegion(JNIEnv* env, jobject regionObject) { argument
33 SkRegion* rgn = (SkRegion*)env->GetIntField(regionObject, gRegion_nativeInstanceFieldID);
38 static SkRegion* Region_constructor(JNIEnv* env, jobject) { argument
42 static void Region_destructor(JNIEnv* env, jobject, SkRegion* region) { argument
47 static void Region_setRegion(JNIEnv* env, jobject, SkRegion* dst, const SkRegion* src) { argument
52 static jboolean Region_setRect(JNIEnv* env, jobject, SkRegion* dst, int left, int top, int right, int bottom) { argument
56 static jboolean Region_setPath(JNIEnv* env, jobject, SkRegion* dst, argument
62 static jboolean Region_getBounds(JNIEnv* env, jobject, SkRegion* region, jobject rectBounds) { argument
63 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds);
67 static jboolean Region_getBoundaryPath(JNIEnv* env, jobjec argument
71 Region_op0(JNIEnv* env, jobject, SkRegion* dst, int left, int top, int right, int bottom, int op) argument
78 Region_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) argument
84 Region_op2(JNIEnv* env, jobject, SkRegion* dst, const SkRegion* region1, const SkRegion* region2, int op) argument
90 Region_isEmpty(JNIEnv* env, jobject region) argument
94 Region_isRect(JNIEnv* env, jobject region) argument
98 Region_isComplex(JNIEnv* env, jobject region) argument
102 Region_contains(JNIEnv* env, jobject region, int x, int y) argument
106 Region_quickContains(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument
110 Region_quickRejectIIII(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument
116 Region_quickRejectRgn(JNIEnv* env, jobject region, jobject other) argument
120 Region_translate(JNIEnv* env, jobject region, int x, int y, jobject dst) argument
150 Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) argument
158 Region_toString(JNIEnv* env, jobject clazz, SkRegion* region) argument
170 Region_createFromParcel(JNIEnv* env, jobject clazz, jobject parcel) argument
185 Region_writeToParcel(JNIEnv* env, jobject clazz, const SkRegion* region, jobject parcel) argument
202 Region_equals(JNIEnv* env, jobject clazz, const SkRegion *r1, const SkRegion* r2) argument
220 RegionIter_constructor(JNIEnv* env, jobject, const SkRegion* region) argument
226 RegionIter_destructor(JNIEnv* env, jobject, RgnIterPair* pair) argument
232 RegionIter_next(JNIEnv* env, jobject, RgnIterPair* pair, jobject rectObject) argument
283 register_android_graphics_Region(JNIEnv* env) argument
300 android_graphics_Region_getSkRegion(JNIEnv* env, jobject regionObj) argument
[all...]
H A DBitmap.cpp80 bool GraphicsJNI::SetPixels(JNIEnv* env, jintArray srcColors, argument
92 const jint* array = env->GetIntArrayElements(srcColors, NULL);
106 env->ReleaseIntArrayElements(srcColors, const_cast<jint*>(array),
214 static jobject Bitmap_creator(JNIEnv* env, jobject, jintArray jColors, argument
218 size_t n = env->GetArrayLength(jColors);
220 doThrowAIOOBE(env);
229 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
235 GraphicsJNI::SetPixels(env, jColors, offset, stride,
239 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL, NULL);
242 static jobject Bitmap_copy(JNIEnv* env, jobjec argument
254 Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) argument
264 Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) argument
281 Bitmap_compress(JNIEnv* env, jobject clazz, SkBitmap* bitmap, int format, int quality, jobject jstream, jbyteArray jstorage) argument
323 Bitmap_erase(JNIEnv* env, jobject, SkBitmap* bitmap, jint color) argument
327 Bitmap_width(JNIEnv* env, jobject, SkBitmap* bitmap) argument
331 Bitmap_height(JNIEnv* env, jobject, SkBitmap* bitmap) argument
335 Bitmap_rowBytes(JNIEnv* env, jobject, SkBitmap* bitmap) argument
339 Bitmap_config(JNIEnv* env, jobject, SkBitmap* bitmap) argument
343 Bitmap_getGenerationId(JNIEnv* env, jobject, SkBitmap* bitmap) argument
347 Bitmap_hasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap) argument
351 Bitmap_setHasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasAlpha) argument
356 Bitmap_hasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap) argument
360 Bitmap_setHasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasMipMap) argument
367 Bitmap_createFromParcel(JNIEnv* env, jobject, jobject parcel) argument
432 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument
485 Bitmap_extractAlpha(JNIEnv* env, jobject clazz, const SkBitmap* src, const SkPaint* paint, jintArray offsetXY) argument
512 Bitmap_getPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y) argument
530 Bitmap_getPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument
557 Bitmap_setPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, SkColor color) argument
573 Bitmap_setPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument
580 Bitmap_copyPixelsToBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument
593 Bitmap_copyPixelsFromBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument
606 Bitmap_sameAs(JNIEnv* env, jobject, const SkBitmap* bm0, const SkBitmap* bm1) argument
653 Bitmap_prepareToDraw(JNIEnv* env, jobject, SkBitmap* bitmap) argument
702 register_android_graphics_Bitmap(JNIEnv* env) argument
[all...]
H A DMatrix.cpp34 static void finalizer(JNIEnv* env, jobject clazz, SkMatrix* obj) { argument
38 static SkMatrix* create(JNIEnv* env, jobject clazz, const SkMatrix* src) { argument
47 static jboolean isIdentity(JNIEnv* env, jobject clazz, SkMatrix* obj) { argument
51 static jboolean rectStaysRect(JNIEnv* env, jobject clazz, SkMatrix* obj) { argument
55 static void reset(JNIEnv* env, jobject clazz, SkMatrix* obj) { argument
59 static void set(JNIEnv* env, jobject clazz, SkMatrix* obj, SkMatrix* other) { argument
63 static void setTranslate(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat dx, jfloat dy) { argument
69 static void setScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument
77 static void setScale__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy) { argument
83 static void setRotate__FFF(JNIEnv* env, jobjec argument
90 setRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) argument
95 setSinCos__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sinValue, jfloat cosValue, jfloat px, jfloat py) argument
103 setSinCos__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sinValue, jfloat cosValue) argument
109 setSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) argument
117 setSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky) argument
123 setConcat(JNIEnv* env, jobject clazz, SkMatrix* obj, SkMatrix* a, SkMatrix* b) argument
127 preTranslate(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat dx, jfloat dy) argument
133 preScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) argument
141 preScale__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy) argument
147 preRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) argument
154 preRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) argument
159 preSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) argument
167 preSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky) argument
173 preConcat(JNIEnv* env, jobject clazz, SkMatrix* obj, SkMatrix* other) argument
177 postTranslate(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat dx, jfloat dy) argument
183 postScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) argument
191 postScale__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy) argument
197 postRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) argument
204 postRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) argument
209 postSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) argument
217 postSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat kx, jfloat ky) argument
223 postConcat(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* other) argument
227 setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject dst, SkMatrix::ScaleToFit stf) argument
235 setPolyToPoly(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray jsrc, int srcIndex, jfloatArray jdst, int dstIndex, int ptCount) argument
262 invert(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* inverse) argument
266 mapPoints(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray dst, int dstIndex, jfloatArray src, int srcIndex, int ptCount, bool isPts) argument
308 mapRect__RectFRectF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobjectArray dst, jobject src) argument
316 mapRadius(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat radius) argument
320 getValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument
338 setValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument
356 equals(JNIEnv* env, jobject clazz, const SkMatrix* a, const SkMatrix* b) argument
407 register_android_graphics_Matrix(JNIEnv* env) argument
417 android_graphics_Matrix_getSkMatrix(JNIEnv* env, jobject matrixObj) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp47 static void throwExceptionWithRowCol(JNIEnv* env, jint row, jint column) { argument
52 jniThrowException(env, "java/lang/IllegalStateException", msg.string());
55 static void throwUnknownTypeException(JNIEnv * env, jint type) { argument
58 jniThrowException(env, "java/lang/IllegalStateException", msg.string());
61 static jint nativeCreate(JNIEnv* env, jclass clazz, jstring nameObj, jint cursorWindowSize) { argument
63 const char* nameStr = env->GetStringUTFChars(nameObj, NULL);
65 env->ReleaseStringUTFChars(nameObj, nameStr);
79 static jint nativeCreateFromParcel(JNIEnv* env, jclass clazz, jobject parcelObj) { argument
80 Parcel* parcel = parcelForJavaObject(env, parcelObj);
94 static void nativeDispose(JNIEnv* env, jclas argument
102 nativeGetName(JNIEnv* env, jclass clazz, jint windowPtr) argument
107 nativeWriteToParcel(JNIEnv * env, jclass clazz, jint windowPtr, jobject parcelObj) argument
120 nativeClear(JNIEnv * env, jclass clazz, jint windowPtr) argument
129 nativeGetNumRows(JNIEnv* env, jclass clazz, jint windowPtr) argument
134 nativeSetNumColumns(JNIEnv* env, jclass clazz, jint windowPtr, jint columnNum) argument
141 nativeAllocRow(JNIEnv* env, jclass clazz, jint windowPtr) argument
147 nativeFreeLastRow(JNIEnv* env, jclass clazz, jint windowPtr) argument
152 nativeGetType(JNIEnv* env, jclass clazz, jint windowPtr, jint row, jint column) argument
167 nativeGetBlob(JNIEnv* env, jclass clazz, jint windowPtr, jint row, jint column) argument
202 nativeGetString(JNIEnv* env, jclass clazz, jint windowPtr, jint row, jint column) argument
246 allocCharArrayBuffer(JNIEnv* env, jobject bufferObj, size_t size) argument
269 fillCharArrayBufferUTF(JNIEnv* env, jobject bufferObj, const char* str, size_t len) argument
287 clearCharArrayBuffer(JNIEnv* env, jobject bufferObj) argument
294 nativeCopyStringToBuffer(JNIEnv* env, jclass clazz, jint windowPtr, jint row, jint column, jobject bufferObj) argument
333 nativeGetLong(JNIEnv* env, jclass clazz, jint windowPtr, jint row, jint column) argument
364 nativeGetDouble(JNIEnv* env, jclass clazz, jint windowPtr, jint row, jint column) argument
395 nativePutBlob(JNIEnv* env, jclass clazz, jint windowPtr, jbyteArray valueObj, jint row, jint column) argument
413 nativePutString(JNIEnv* env, jclass clazz, jint windowPtr, jstring valueObj, jint row, jint column) argument
435 nativePutLong(JNIEnv* env, jclass clazz, jint windowPtr, jlong value, jint row, jint column) argument
449 nativePutDouble(JNIEnv* env, jclass clazz, jint windowPtr, jdouble value, jint row, jint column) argument
463 nativePutNull(JNIEnv* env, jclass clazz, jint windowPtr, jint row, jint column) argument
532 register_android_database_CursorWindow(JNIEnv * env) argument
[all...]
H A Dandroid_net_LocalSocketImpl.cpp53 socket_create (JNIEnv *env, jobject object, jboolean stream) argument
60 jniThrowIOException(env, errno);
64 return jniCreateFileDescriptor(env,ret);
71 socket_connect_local(JNIEnv *env, jobject object, argument
78 nameUtf8 = env->GetStringUTFChars(name, NULL);
80 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
82 if (env->ExceptionOccurred() != NULL) {
92 env->ReleaseStringUTFChars(name, nameUtf8);
95 jniThrowIOException(env, errno);
107 socket_bind_local (JNIEnv *env, jobjec argument
139 socket_listen(JNIEnv *env, jobject object, jobject fileDescriptor, int backlog) argument
163 socket_accept(JNIEnv *env, jobject object, jobject fileDescriptor, jobject s) argument
204 socket_shutdown(JNIEnv *env, jobject object, jobject fileDescriptor, jboolean shutdownInput) argument
259 socket_getOption(JNIEnv *env, jobject object, jobject fileDescriptor, int optID) argument
306 socket_setOption( JNIEnv *env, jobject object, jobject fileDescriptor, int optID, jint boolValue, jint intValue) argument
375 socket_available(JNIEnv *env, jobject object, jobject fileDescriptor) argument
424 socket_close(JNIEnv *env, jobject object, jobject fileDescriptor) argument
456 socket_process_cmsg(JNIEnv *env, jobject thisJ, struct msghdr * pMsg) argument
517 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument
575 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
655 socket_read(JNIEnv *env, jobject object, jobject fileDescriptor) argument
688 socket_readba(JNIEnv *env, jobject object, jbyteArray buffer, jint off, jint len, jobject fileDescriptor) argument
733 socket_write(JNIEnv *env, jobject object, jint b, jobject fileDescriptor) argument
755 socket_writeba(JNIEnv *env, jobject object, jbyteArray buffer, jint off, jint len, jobject fileDescriptor) argument
793 socket_get_peer_credentials(JNIEnv *env, jobject object, jobject fileDescriptor) argument
909 register_android_net_LocalSocketImpl(JNIEnv *env) argument
[all...]
H A Dandroid_net_TrafficStats.cpp144 static jlong getTotalStat(JNIEnv* env, jclass clazz, jint type) { argument
148 static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type) { argument
150 const char* ifaceChars = env->GetStringUTFChars(iface, NULL);
153 env->ReleaseStringUTFChars(iface, ifaceChars);
163 static jlong getUidBytes(JNIEnv* env, jobject clazz, jint uid, argument
204 static jlong getUidPkts(JNIEnv* env, jobject clazz, jint uid, argument
245 static jlong getUidRxBytes(JNIEnv* env, jobject clazz, jint uid) { argument
246 return getUidBytes(env, clazz, uid, RX, TCP_AND_UDP);
249 static jlong getUidTxBytes(JNIEnv* env, jobject clazz, jint uid) { argument
250 return getUidBytes(env, claz
254 getUidTxPackets(JNIEnv* env, jobject clazz, jint uid) argument
259 getUidRxPackets(JNIEnv* env, jobject clazz, jint uid) argument
263 getUidTcpTxBytes(JNIEnv* env, jobject clazz, jint uid) argument
267 getUidTcpRxBytes(JNIEnv* env, jobject clazz, jint uid) argument
271 getUidUdpTxBytes(JNIEnv* env, jobject clazz, jint uid) argument
275 getUidUdpRxBytes(JNIEnv* env, jobject clazz, jint uid) argument
279 getUidTcpTxSegments(JNIEnv* env, jobject clazz, jint uid) argument
283 getUidTcpRxSegments(JNIEnv* env, jobject clazz, jint uid) argument
287 getUidUdpTxPackets(JNIEnv* env, jobject clazz, jint uid) argument
291 getUidUdpRxPackets(JNIEnv* env, jobject clazz, jint uid) argument
316 register_android_net_TrafficStats(JNIEnv* env) argument
[all...]
H A Dandroid_os_SELinux.cpp33 static void throw_NullPointerException(JNIEnv *env, const char* msg) { argument
35 clazz = env->FindClass("java/lang/NullPointerException");
36 env->ThrowNew(clazz, msg);
46 static jboolean isSELinuxEnabled(JNIEnv *env, jobject classz) { argument
58 static jboolean isSELinuxEnforced(JNIEnv *env, jobject clazz) { argument
73 static jboolean setSELinuxEnforce(JNIEnv *env, jobject clazz, jboolean value) { argument
94 static jstring getPeerCon(JNIEnv *env, jobject clazz, jobject fileDescriptor) { argument
100 throw_NullPointerException(env, "Trying to check security context of a null peer socket.");
107 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
109 if (env
140 setFSCreateCon(JNIEnv *env, jobject clazz, jstring context) argument
180 setFileCon(JNIEnv *env, jobject clazz, jstring path, jstring con) argument
226 getFileCon(JNIEnv *env, jobject clazz, jstring path) argument
268 getCon(JNIEnv *env, jobject clazz) argument
302 getPidCon(JNIEnv *env, jobject clazz, jint pid) argument
337 getBooleanNames(JNIEnv *env, JNIEnv clazz) argument
375 getBooleanValue(JNIEnv *env, jobject clazz, jstring name) argument
403 setBooleanValue(JNIEnv *env, jobject clazz, jstring name, jboolean value) argument
438 checkSELinuxAccess(JNIEnv *env, jobject clazz, jstring scon, jstring tcon, jstring tclass, jstring perm) argument
484 native_restorecon(JNIEnv *env, jobject clazz, jstring pathname) argument
528 register_android_os_SELinux(JNIEnv *env) argument
[all...]
H A Dcom_android_internal_content_NativeLibraryHelper.cpp146 sumFiles(JNIEnv* env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char* fileName) argument
166 copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char* fileName) argument
169 ScopedUtfChars nativeLibPath(env, *javaNativeLibPath);
270 iterateOverNativeFiles(JNIEnv *env, jstring javaFilePath, jstring javaCpuAbi, jstring javaCpuAbi2, argument
272 ScopedUtfChars filePath(env, javaFilePath);
273 ScopedUtfChars cpuAbi(env, javaCpuAbi);
274 ScopedUtfChars cpuAbi2(env, javaCpuAbi2);
349 install_status_t ret = callFunc(env, callArg, &zipFile, entry, lastSlash + 1);
362 com_android_internal_content_NativeLibraryHelper_copyNativeBinaries(JNIEnv *env, jclass clazz, argument
365 return (jint) iterateOverNativeFiles(env, javaFilePat
370 com_android_internal_content_NativeLibraryHelper_sumNativeBinaries(JNIEnv *env, jclass clazz, jstring javaFilePath, jstring javaCpuAbi, jstring javaCpuAbi2) argument
390 register_com_android_internal_content_NativeLibraryHelper(JNIEnv *env) argument
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_BatteryService.cpp159 static void setBooleanField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
170 env->SetBooleanField(obj, fieldID, value);
173 static void setIntField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
182 env->SetIntField(obj, fieldID, value);
185 static void setVoltageField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
195 env->SetIntField(obj, fieldID, value);
199 static void android_server_BatteryService_update(JNIEnv* env, jobject obj) argument
201 setBooleanField(env, obj, gPaths.acOnlinePath, gFieldIds.mAcOnline);
202 setBooleanField(env, obj, gPaths.usbOnlinePath, gFieldIds.mUsbOnline);
203 setBooleanField(env, ob
231 register_android_server_BatteryService(JNIEnv* env) argument
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/
H A Djni_stochastic_linear_ranker.cpp30 void CreateSparseWeightVector(JNIEnv* env, const jobjectArray keys, const float* values, argument
35 jstring s = (jstring) env->GetObjectArrayElement(keys, i);
36 const char *key = env->GetStringUTFChars(s, &iscopy);
38 env->ReleaseStringUTFChars(s,key);
42 void ConvertParameter2Object(JNIEnv* env, jobjectArray *keys, jobjectArray *values, argument
45 jstring jstrK = env->NewStringUTF(name);
46 jstring jstrV = env->NewStringUTF(paramValue);
47 env->SetObjectArrayElement(*keys, index, jstrK);
48 env->SetObjectArrayElement(*values, index, jstrV);
51 void DecomposeSparseWeightVector(JNIEnv* env, jobjectArra argument
69 Java_android_bordeaux_learning_StochasticLinearRanker_nativeSetWeightClassifier( JNIEnv* env, jobject thiz, jobjectArray key_array_model, jfloatArray value_array_model, jfloat normalizer_model, jint paPtr) argument
95 Java_android_bordeaux_learning_StochasticLinearRanker_nativeSetParameterClassifier( JNIEnv* env, jobject thiz, jstring key, jstring value, jint paPtr) argument
229 Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetLengthClassifier( JNIEnv* env, jobject thiz, jint paPtr) argument
249 Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier( JNIEnv* env, jobject thiz, jobjectArray key_array_param, jobjectArray value_array_param, jint paPtr) argument
368 Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetWeightClassifier( JNIEnv* env, jobject thiz, jobjectArray key_array_model, jfloatArray value_array_model, jfloat normalizer, jint paPtr) argument
386 Java_android_bordeaux_learning_StochasticLinearRanker_initNativeClassifier(JNIEnv* env, jobject thiz) argument
392 Java_android_bordeaux_learning_StochasticLinearRanker_deleteNativeClassifier(JNIEnv* env, jobject thiz, jint paPtr) argument
400 Java_android_bordeaux_learning_StochasticLinearRanker_nativeUpdateClassifier( JNIEnv* env, jobject thiz, jobjectArray key_array_positive, jfloatArray value_array_positive, jobjectArray key_array_negative, jfloatArray value_array_negative, jint paPtr) argument
439 Java_android_bordeaux_learning_StochasticLinearRanker_nativeScoreSample( JNIEnv* env, jobject thiz, jobjectArray key_array, jfloatArray value_array, jint paPtr) argument
[all...]
/frameworks/wilhelm/tests/native-media/jni/
H A Dnative-media-jni.c268 void Java_com_example_nativemedia_NativeMedia_createEngine(JNIEnv* env, jclass clazz) argument
340 jboolean Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer(JNIEnv* env, argument
346 const char *utf8 = (*env)->GetStringUTFChars(env, filename, NULL);
393 (*env)->ReleaseStringUTFChars(env, filename, utf8);
455 void Java_com_example_nativemedia_NativeMedia_setPlayingStreamingMediaPlayer(JNIEnv* env, argument
474 void Java_com_example_nativemedia_NativeMedia_shutdown(JNIEnv* env, jclass clazz) argument
514 void Java_com_example_nativemedia_NativeMedia_setSurface(JNIEnv *env, jclass clazz, jobject surface) argument
517 theNativeWindow = ANativeWindow_fromSurface(env, surfac
522 Java_com_example_nativemedia_NativeMedia_rewindStreamingMediaPlayer(JNIEnv *env, jclass clazz) argument
[all...]

Completed in 364 milliseconds

12345678