Searched defs:env (Results 176 - 200 of 282) sorted by relevance

1234567891011>>

/frameworks/base/core/jni/
H A Dandroid_view_RenderNodeAnimator.cpp41 JNIEnv* env; local
42 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
45 return env;
63 AnimationListenerBridge(JNIEnv* env, jobject finishListener) { argument
64 mFinishListener = env->NewGlobalRef(finishListener);
65 env->GetJavaVM(&mJvm);
76 JNIEnv* env = getEnv(mJvm); local
77 env->CallStaticVoidMethod(
86 JNIEnv* env = getEnv(mJvm); local
87 env
108 createAnimator(JNIEnv* env, jobject clazz, jint propertyRaw, jfloat finalValue) argument
116 createCanvasPropertyFloatAnimator(JNIEnv* env, jobject clazz, jlong canvasPropertyPtr, jfloat finalValue) argument
124 createCanvasPropertyPaintAnimator(JNIEnv* env, jobject clazz, jlong canvasPropertyPtr, jint paintFieldRaw, jfloat finalValue) argument
135 createRevealAnimator(JNIEnv* env, jobject clazz, jint centerX, jint centerY, jfloat startRadius, jfloat endRadius) argument
142 setStartValue(JNIEnv* env, jobject clazz, jlong animatorPtr, jfloat startValue) argument
147 setDuration(JNIEnv* env, jobject clazz, jlong animatorPtr, jlong duration) argument
153 getDuration(JNIEnv* env, jobject clazz, jlong animatorPtr) argument
158 setStartDelay(JNIEnv* env, jobject clazz, jlong animatorPtr, jlong startDelay) argument
164 setInterpolator(JNIEnv* env, jobject clazz, jlong animatorPtr, jlong interpolatorPtr) argument
170 setAllowRunningAsync(JNIEnv* env, jobject clazz, jlong animatorPtr, jboolean mayRunAsync) argument
175 setListener(JNIEnv* env, jobject clazz, jlong animatorPtr, jobject finishListener) argument
180 start(JNIEnv* env, jobject clazz, jlong animatorPtr) argument
185 end(JNIEnv* env, jobject clazz, jlong animatorPtr) argument
212 register_android_view_RenderNodeAnimator(JNIEnv* env) argument
[all...]
H A Dandroid_view_VelocityTracker.cpp142 static jlong android_view_VelocityTracker_nativeInitialize(JNIEnv* env, jclass clazz, argument
145 ScopedUtfChars strategy(env, strategyStr);
151 static void android_view_VelocityTracker_nativeDispose(JNIEnv* env, jclass clazz, jlong ptr) { argument
156 static void android_view_VelocityTracker_nativeClear(JNIEnv* env, jclass clazz, jlong ptr) { argument
161 static void android_view_VelocityTracker_nativeAddMovement(JNIEnv* env, jclass clazz, jlong ptr, argument
163 const MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj);
173 static void android_view_VelocityTracker_nativeComputeCurrentVelocity(JNIEnv* env, jclass clazz, argument
179 static jfloat android_view_VelocityTracker_nativeGetXVelocity(JNIEnv* env, jclass clazz, argument
187 static jfloat android_view_VelocityTracker_nativeGetYVelocity(JNIEnv* env, jclass clazz, argument
195 static jboolean android_view_VelocityTracker_nativeGetEstimator(JNIEnv* env, jclas argument
246 register_android_view_VelocityTracker(JNIEnv* env) argument
[all...]
H A Dcom_android_internal_net_NetworkStatsFactory.cpp65 static jobjectArray get_string_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument
68 jobjectArray array = (jobjectArray)env->GetObjectField(obj, field);
73 return env->NewObjectArray(size, gStringClass, NULL);
76 static jintArray get_int_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument
79 jintArray array = (jintArray)env->GetObjectField(obj, field);
84 return env->NewIntArray(size);
87 static jlongArray get_long_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument
90 jlongArray array = (jlongArray)env->GetObjectField(obj, field);
95 return env->NewLongArray(size);
98 static int readNetworkStatsDetail(JNIEnv* env, jclas argument
299 register_com_android_internal_net_NetworkStatsFactory(JNIEnv* env) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ExifInterface.cpp45 var = env->FindClass(className); \
49 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \
64 static jobject KeyedVectorToHashMap(JNIEnv *env, KeyedVector<String8, String8> const &map) { argument
66 jobject hashMap = env->NewObject(clazz, gFields.hashMap.init);
68 jstring jkey = env->NewStringUTF(map.keyAt(i).string());
69 jstring jvalue = env->NewStringUTF(map.valueAt(i).string());
70 env->CallObjectMethod(hashMap, gFields.hashMap.put, jkey, jvalue);
71 env->DeleteLocalRef(jkey);
72 env->DeleteLocalRef(jvalue);
81 static void ExifInterface_initRaw(JNIEnv *env) { argument
95 ExifInterface_getThumbnailFromAsset( JNIEnv* env, jclass , jlong jasset, jint jthumbnailOffset, jint jthumbnailLength) argument
120 getRawAttributes(JNIEnv* env, SkStream* stream, bool returnThumbnail) argument
318 ExifInterface_getRawAttributesFromAsset( JNIEnv* env, jclass , jlong jasset) argument
355 ExifInterface_getRawAttributesFromFileDescriptor( JNIEnv* env, jclass , jobject jfileDescriptor) argument
398 ExifInterface_getRawAttributesFromInputStream( JNIEnv* env, jclass , jobject jinputStream) argument
421 register_android_media_ExifInterface(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaCodecList.cpp34 static sp<IMediaCodecList> getCodecList(JNIEnv *env) { argument
39 env, "java/lang/RuntimeException", "cannot get MediaCodecList");
45 JNIEnv *env, jobject /* thiz */) {
46 sp<IMediaCodecList> mcl = getCodecList(env);
55 JNIEnv *env, jobject /* thiz */, jint index) {
56 sp<IMediaCodecList> mcl = getCodecList(env);
64 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
69 return env->NewStringUTF(name);
73 JNIEnv *env, jobject /* thiz */, jstring name) {
75 jniThrowException(env, "jav
44 android_media_MediaCodecList_getCodecCount( JNIEnv *env, jobject ) argument
54 android_media_MediaCodecList_getCodecName( JNIEnv *env, jobject , jint index) argument
72 android_media_MediaCodecList_findCodecByName( JNIEnv *env, jobject , jstring name) argument
97 android_media_MediaCodecList_isEncoder( JNIEnv *env, jobject , jint index) argument
114 android_media_MediaCodecList_getSupportedTypes( JNIEnv *env, jobject , jint index) argument
146 android_media_MediaCodecList_getCodecCapabilities( JNIEnv *env, jobject , jint index, jstring type) argument
265 android_media_MediaCodecList_getGlobalSettings(JNIEnv *env, jobject ) argument
311 register_android_media_MediaCodecList(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaCrypto.cpp41 static sp<JCrypto> getCrypto(JNIEnv *env, jobject thiz) { argument
42 return (JCrypto *)env->GetLongField(thiz, gFields.context);
46 JNIEnv *env, jobject thiz,
48 mObject = env->NewWeakGlobalRef(thiz);
56 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
58 env->DeleteWeakGlobalRef(mObject);
122 sp<ICrypto> JCrypto::GetCrypto(JNIEnv *env, jobject obj) { argument
123 jclass clazz = env->FindClass("android/media/MediaCrypto");
126 if (!env->IsInstanceOf(obj, clazz)) {
130 sp<JCrypto> jcrypto = getCrypto(env, ob
45 JCrypto( JNIEnv *env, jobject thiz, const uint8_t uuid[16], const void *initData, size_t initSize) argument
140 JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray) argument
152 setCrypto( JNIEnv *env, jobject thiz, const sp<JCrypto> &crypto) argument
166 android_media_MediaCrypto_release(JNIEnv *env, jobject thiz) argument
170 android_media_MediaCrypto_native_init(JNIEnv *env) argument
178 android_media_MediaCrypto_native_setup( JNIEnv *env, jobject thiz, jbyteArray uuidObj, jbyteArray initDataObj) argument
226 android_media_MediaCrypto_native_finalize( JNIEnv *env, jobject thiz) argument
231 android_media_MediaCrypto_isCryptoSchemeSupportedNative( JNIEnv *env, jobject , jbyteArray uuidObj) argument
254 android_media_MediaCrypto_requiresSecureDecoderComponent( JNIEnv *env, jobject thiz, jstring mimeObj) argument
282 android_media_MediaCrypto_setMediaDrmSession( JNIEnv *env, jobject thiz, jbyteArray jsessionId) argument
335 register_android_media_Crypto(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaMuxer.cpp44 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jobjectArray keys,
48 jniThrowException(env, "java/lang/IllegalStateException",
54 status_t err = ConvertKeyValueArraysToMessage(env, keys, values,
57 jniThrowException(env, "java/lang/IllegalArgumentException",
66 jniThrowException(env, "java/lang/IllegalStateException",
74 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint trackIndex,
78 jniThrowException(env, "java/lang/IllegalStateException",
84 void *dst = env->GetDirectBufferAddress(byteBuf);
92 (jbyteArray)env->CallObjectMethod(byteBuf, gFields.arrayID);
95 jniThrowException(env, "jav
43 android_media_MediaMuxer_addTrack( JNIEnv *env, jclass , jlong nativeObject, jobjectArray keys, jobjectArray values) argument
73 android_media_MediaMuxer_writeSampleData( JNIEnv *env, jclass , jlong nativeObject, jint trackIndex, jobject byteBuf, jint offset, jint size, jlong timeUs, jint flags) argument
135 android_media_MediaMuxer_native_setup( JNIEnv *env, jclass clazz, jobject fileDescriptor, jint format) argument
148 android_media_MediaMuxer_setOrientationHint( JNIEnv *env, jclass , jlong nativeObject, jint degrees) argument
166 android_media_MediaMuxer_setLocation( JNIEnv *env, jclass , jlong nativeObject, jint latitude, jint longitude) argument
178 android_media_MediaMuxer_start(JNIEnv *env, jclass , jlong nativeObject) argument
196 android_media_MediaMuxer_stop(JNIEnv *env, jclass , jlong nativeObject) argument
250 register_android_media_MediaMuxer(JNIEnv *env) argument
[all...]
/frameworks/base/media/jni/soundpool/
H A Dandroid_media_SoundPool.cpp35 static inline SoundPool* MusterSoundPool(JNIEnv *env, jobject thiz) { argument
36 return (SoundPool*)env->GetLongField(thiz, fields.mNativeContext);
50 android_media_SoundPool_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, argument
54 SoundPool *ap = MusterSoundPool(env, thiz);
56 return (jint) ap->load(jniGetFDFromFileDescriptor(env, fileDescriptor),
61 android_media_SoundPool_unload(JNIEnv *env, jobject thiz, jint sampleID) { argument
63 SoundPool *ap = MusterSoundPool(env, thiz);
69 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, argument
74 SoundPool *ap = MusterSoundPool(env, thiz);
80 android_media_SoundPool_pause(JNIEnv *env, jobjec argument
89 android_media_SoundPool_resume(JNIEnv *env, jobject thiz, jint channelID) argument
98 android_media_SoundPool_autoPause(JNIEnv *env, jobject thiz) argument
107 android_media_SoundPool_autoResume(JNIEnv *env, jobject thiz) argument
116 android_media_SoundPool_stop(JNIEnv *env, jobject thiz, jint channelID) argument
125 android_media_SoundPool_setVolume(JNIEnv *env, jobject thiz, jint channelID, jfloat leftVolume, jfloat rightVolume) argument
135 android_media_SoundPool_setPriority(JNIEnv *env, jobject thiz, jint channelID, jint priority) argument
145 android_media_SoundPool_setLoop(JNIEnv *env, jobject thiz, jint channelID, int loop) argument
155 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, jfloat rate) argument
167 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
172 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, jobject weakRef, jint maxChannels, jobject jaa) argument
214 android_media_SoundPool_release(JNIEnv *env, jobject thiz) argument
299 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
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...]
/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", "J");
84 return (AAssetManager*) env->GetLongField(assetManager, gAssetManagerOffsets.mObject);
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp475 int register_android_server_AlarmManagerService(JNIEnv* env) argument
477 return jniRegisterNativeMethods(env, "com/android/server/AlarmManagerService",
H A Dcom_android_server_UsbHostManager.cpp50 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
51 if (env->ExceptionCheck()) {
53 LOGE_EX(env);
54 env->ExceptionClear();
68 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
77 jstring deviceName = env->NewStringUTF(devname);
78 jstring manufacturerName = AndroidRuntime::NewStringLatin1(env, manufacturer);
79 jstring productName = AndroidRuntime::NewStringLatin1(env, product);
80 jstring serialNumber = AndroidRuntime::NewStringLatin1(env, serial);
82 jboolean result = env
142 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
163 android_server_UsbHostManager_openDevice(JNIEnv *env, jobject , jstring deviceName) argument
195 register_android_server_UsbHostManager(JNIEnv *env) argument
[all...]
H A Dcom_android_server_connectivity_Vpn.cpp216 static bool modifyAddress(JNIEnv *env, jobject thiz, jstring jName, jstring jAddress, argument
220 const char *name = jName ? env->GetStringUTFChars(jName, NULL) : NULL;
221 const char *address = jAddress ? env->GetStringUTFChars(jAddress, NULL) : NULL;
224 jniThrowNullPointerException(env, "name");
226 jniThrowNullPointerException(env, "address");
242 env->ReleaseStringUTFChars(jName, name);
245 env->ReleaseStringUTFChars(jAddress, address);
252 static void throwException(JNIEnv *env, int error, const char *message) argument
255 jniThrowException(env, "java/lang/IllegalStateException", message);
257 jniThrowException(env, "jav
261 create(JNIEnv *env, jobject , jint mtu) argument
271 getName(JNIEnv *env, jobject , jint tun) argument
281 setAddresses(JNIEnv *env, jobject , jstring jName, jstring jAddresses) argument
314 reset(JNIEnv *env, jobject , jstring jName) argument
327 check(JNIEnv *env, jobject , jstring jName) argument
339 addAddress(JNIEnv *env, jobject thiz, jstring jName, jstring jAddress, jint jPrefixLength) argument
345 delAddress(JNIEnv *env, jobject thiz, jstring jName, jstring jAddress, jint jPrefixLength) argument
363 register_android_server_connectivity_Vpn(JNIEnv *env) argument
[all...]
H A Dcom_android_server_fingerprint_FingerprintService.cpp66 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
67 env->CallVoidMethod(gCallback, gFingerprintServiceClassInfo.notify, type, arg1, arg2, arg3);
127 static void nativeInit(JNIEnv *env, jobject clazz, jobject mQueue, jobject callbackObj) { argument
129 gCallback = MakeGlobalRefOrDie(env, callbackObj);
130 gLooper = android_os_MessageQueue_getMessageQueue(env, mQueue)->getLooper();
133 static jint nativeEnroll(JNIEnv* env, jobject clazz, jbyteArray token, jint groupId, jint timeout) { argument
135 const int tokenSize = env->GetArrayLength(token);
136 jbyte* tokenData = env->GetByteArrayElements(token, 0);
143 env->ReleaseByteArrayElements(token, tokenData, 0);
147 static jlong nativePreEnroll(JNIEnv* env, jobjec argument
153 nativeStopEnrollment(JNIEnv* env, jobject clazz) argument
159 nativeAuthenticate(JNIEnv* env, jobject clazz, jlong sessionId, jint groupId) argument
165 nativeStopAuthentication(JNIEnv* env, jobject clazz) argument
171 nativeRemove(JNIEnv* env, jobject clazz, jint fingerId, jint groupId) argument
184 nativeSetActiveGroup(JNIEnv *env, jobject clazz, jint gid, jbyteArray path) argument
199 nativeOpenHal(JNIEnv* env, jobject clazz) argument
247 nativeCloseHal(JNIEnv* env, jobject clazz) argument
271 register_android_server_fingerprint_FingerprintService(JNIEnv* env) argument
[all...]
H A Dcom_android_server_input_InputWindowHandle.cpp71 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
72 env->DeleteWeakGlobalRef(mObjWeak);
75 jobject NativeInputWindowHandle::getInputWindowHandleObjLocalRef(JNIEnv* env) { argument
76 return env->NewLocalRef(mObjWeak);
80 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
81 jobject obj = env->NewLocalRef(mObjWeak);
93 jobject inputChannelObj = env->GetObjectField(obj,
96 mInfo->inputChannel = android_view_InputChannel_getInputChannel(env, inputChannelObj);
97 env->DeleteLocalRef(inputChannelObj);
102 jstring nameObj = jstring(env
169 android_server_InputWindowHandle_getHandle( JNIEnv* env, jobject inputWindowHandleObj) argument
200 android_server_InputWindowHandle_nativeDispose(JNIEnv* env, jobject obj) argument
227 register_android_server_InputWindowHandle(JNIEnv* env) argument
[all...]
H A Dcom_android_server_tv_TvUinputBridge.cpp187 static jlong nativeOpen(JNIEnv* env, jclass clazz, argument
190 ScopedUtfChars name(env, nameStr);
191 ScopedUtfChars uniqueId(env, uniqueIdStr);
198 static void nativeClose(JNIEnv* env, jclass clazz, jlong ptr) { argument
203 static void nativeSendTimestamp(JNIEnv* env, jclass clazz, jlong ptr, jlong timestamp) { argument
210 static void nativeSendKey(JNIEnv* env, jclass clazz, jlong ptr, jint keyCode, jboolean down) { argument
220 static void nativeSendPointerDown(JNIEnv* env, jclass clazz, jlong ptr, argument
236 static void nativeSendPointerUp(JNIEnv* env, jclass clazz, jlong ptr, argument
248 static void nativeSendPointerSync(JNIEnv* env, jclass clazz, jlong ptr) { argument
253 static void nativeClear(JNIEnv* env, jclas argument
298 register_android_server_tv_TvUinputBridge(JNIEnv* env) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dcolorspace.cpp57 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) {
58 uint8* const pInput = static_cast<uint8*>(env->GetDirectBufferAddress(input));
59 Rgba* const pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output));
96 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) {
97 Rgba* pInput = static_cast<Rgba*>(env->GetDirectBufferAddress(input));
98 Rgba* pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output));
111 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) {
112 Rgba* pInput = static_cast<Rgba*>(env->GetDirectBufferAddress(input));
113 Rgba* pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output));
154 JNIEnv* env, jclas
56 nativeYuv420pToRgba8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument
95 nativeArgb8888ToRgba8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument
110 nativeRgba8888ToHsva8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument
153 nativeRgba8888ToYcbcra8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument
[all...]
/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/opt/net/wifi/service/jni/
H A Dcom_android_server_wifi_nan_WifiNanNative.cpp211 static jint android_net_wifi_nan_register_handler(JNIEnv *env, jclass cls, argument
214 JNIHelper helper(env);
232 env->GetJavaVM(&mVM);
233 mCls = (jclass) env->NewGlobalRef(cls);
239 static jint android_net_wifi_nan_enable_request(JNIEnv *env, jclass cls, argument
244 JNIHelper helper(env);
263 static jint android_net_wifi_nan_get_capabilities(JNIEnv *env, jclass cls, argument
267 JNIHelper helper(env);
276 static jint android_net_wifi_nan_disable_request(JNIEnv *env, jclass cls, argument
280 JNIHelper helper(env);
289 android_net_wifi_nan_publish(JNIEnv *env, jclass cls, jshort transaction_id, jint publish_id, jclass wifi_native_cls, jint iface, jobject publish_data, jobject publish_settings) argument
357 android_net_wifi_nan_subscribe(JNIEnv *env, jclass cls, jshort transaction_id, jint subscribe_id, jclass wifi_native_cls, jint iface, jobject subscribe_data, jobject subscribe_settings) argument
425 android_net_wifi_nan_send_message(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface, jint pub_sub_id, jint req_instance_id, jbyteArray dest, jbyteArray message, jint message_length) argument
460 android_net_wifi_nan_stop_publish(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface, jint pub_sub_id) argument
478 android_net_wifi_nan_stop_subscribe(JNIEnv *env, jclass cls, jshort transaction_id, jclass wifi_native_cls, jint iface, jint pub_sub_id) argument
518 Java_com_android_server_wifi_nan_WifiNanNative_registerNanNatives(JNIEnv* env, jclass clazz) argument
[all...]
/frameworks/webview/chromium/loader/
H A Dloader.cpp108 jint DoLoadWithRelroFile(JNIEnv* env, const char* lib, const char* relro, argument
116 android::FindNamespaceByClassLoader(env, clazzLoader);
146 jboolean CreateRelroFile(JNIEnv* env, jclass, jstring lib32, jstring lib64, argument
158 const char* lib_utf8 = env->GetStringUTFChars(lib, NULL);
160 const char* relro_utf8 = env->GetStringUTFChars(relro, NULL);
163 env->ReleaseStringUTFChars(relro, relro_utf8);
165 env->ReleaseStringUTFChars(lib, lib_utf8);
170 jint LoadWithRelroFile(JNIEnv* env, jclass, jstring lib32, jstring lib64, argument
182 const char* lib_utf8 = env->GetStringUTFChars(lib, NULL);
184 const char* relro_utf8 = env
208 RegisterWebViewFactory(JNIEnv* env) argument
240 JNIEnv* env = NULL; local
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp85 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
87 if (env == NULL) {
89 env->ExceptionClear();
93 jclass mediahttpclass = env->FindClass("android/media/MediaHTTPService");
96 env->ExceptionClear();
100 jmethodID mediaHttpCreateMethod = env->GetStaticMethodID(mediahttpclass,
104 env->ExceptionClear();
108 jstring jloc = env->NewStringUTF(location);
110 service = env->CallStaticObjectMethod(mediahttpclass, mediaHttpCreateMethod, jloc);
111 env
[all...]
/frameworks/base/core/jni/android/graphics/
H A DShader.cpp12 static void ThrowIAE_IfNull(JNIEnv* env, void* ptr) { argument
14 doThrowIAE(env);
18 static void Color_RGBToHSV(JNIEnv* env, jobject, jint red, jint green, jint blue, jfloatArray hsvArray) argument
23 AutoJavaFloatArray autoHSV(env, hsvArray, 3);
30 static jint Color_HSVToColor(JNIEnv* env, jobject, jint alpha, jfloatArray hsvArray) argument
32 AutoJavaFloatArray autoHSV(env, hsvArray, 3);
44 static void Shader_destructor(JNIEnv* env, jobject o, jlong shaderHandle, jlong shaderWithLMHandle) argument
50 static jlong Shader_setLocalMatrix(JNIEnv* env, jobject o, jlong shaderHandle, jlong matrixHandle) argument
88 static jlong BitmapShader_constructor(JNIEnv* env, jobject o, jobject jbitmap, argument
95 GraphicsJNI::getSkBitmap(env, jbitma
107 LinearGradient_create1(JNIEnv* env, jobject o, jfloat x0, jfloat y0, jfloat x1, jfloat y1, jintArray colorArray, jfloatArray posArray, jint tileMode) argument
134 LinearGradient_create2(JNIEnv* env, jobject o, jfloat x0, jfloat y0, jfloat x1, jfloat y1, jint color0, jint color1, jint tileMode) argument
154 RadialGradient_create1(JNIEnv* env, jobject, jfloat x, jfloat y, jfloat radius, jintArray colorArray, jfloatArray posArray, jint tileMode) argument
179 RadialGradient_create2(JNIEnv* env, jobject, jfloat x, jfloat y, jfloat radius, jint color0, jint color1, jint tileMode) argument
196 SweepGradient_create1(JNIEnv* env, jobject, jfloat x, jfloat y, jintArray jcolors, jfloatArray jpositions) argument
216 SweepGradient_create2(JNIEnv* env, jobject, jfloat x, jfloat y, int color0, int color1) argument
228 ComposeShader_create1(JNIEnv* env, jobject o, jlong shaderAHandle, jlong shaderBHandle, jlong modeHandle) argument
238 ComposeShader_create2(JNIEnv* env, jobject o, jlong shaderAHandle, jlong shaderBHandle, jint xfermodeHandle) argument
285 register_android_graphics_Shader(JNIEnv* env) argument
[all...]

Completed in 461 milliseconds

1234567891011>>