/frameworks/base/services/core/jni/ |
D | onload.cpp | 26 int register_android_server_AlarmManagerService(JNIEnv* env); 27 int register_android_server_BatteryStatsService(JNIEnv* env); 28 int register_android_server_ConsumerIrService(JNIEnv *env); 29 int register_android_server_InputManager(JNIEnv* env); 30 int register_android_server_LightsService(JNIEnv* env); 31 int register_android_server_PowerManagerService(JNIEnv* env); 32 int register_android_server_storage_AppFuse(JNIEnv* env); 33 int register_android_server_SerialService(JNIEnv* env); 34 int register_android_server_SystemServer(JNIEnv* env); 35 int register_android_server_UsbAlsaJackDetector(JNIEnv* env); [all …]
|
D | com_android_server_net_NetworkStatsFactory.cpp | 63 static jobjectArray get_string_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) in get_string_array() argument 66 jobjectArray array = (jobjectArray)env->GetObjectField(obj, field); in get_string_array() 71 return env->NewObjectArray(size, gStringClass, NULL); in get_string_array() 74 static jintArray get_int_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) in get_int_array() argument 77 jintArray array = (jintArray)env->GetObjectField(obj, field); in get_int_array() 82 return env->NewIntArray(size); in get_int_array() 85 static jlongArray get_long_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) in get_long_array() argument 88 jlongArray array = (jlongArray)env->GetObjectField(obj, field); in get_long_array() 93 return env->NewLongArray(size); in get_long_array() 208 static int statsLinesToNetworkStats(JNIEnv* env, jclass clazz, jobject stats, in statsLinesToNetworkStats() argument [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Graphics.cpp | 20 void doThrowNPE(JNIEnv* env) { in doThrowNPE() argument 21 jniThrowNullPointerException(env, NULL); in doThrowNPE() 24 void doThrowAIOOBE(JNIEnv* env) { in doThrowAIOOBE() argument 25 jniThrowException(env, "java/lang/ArrayIndexOutOfBoundsException", NULL); in doThrowAIOOBE() 28 void doThrowRE(JNIEnv* env, const char* msg) { in doThrowRE() argument 29 jniThrowRuntimeException(env, msg); in doThrowRE() 32 void doThrowIAE(JNIEnv* env, const char* msg) { in doThrowIAE() argument 33 jniThrowException(env, "java/lang/IllegalArgumentException", msg); in doThrowIAE() 36 void doThrowISE(JNIEnv* env, const char* msg) { in doThrowISE() argument 37 jniThrowException(env, "java/lang/IllegalStateException", msg); in doThrowISE() [all …]
|
D | SurfaceTexture.cpp | 83 static void SurfaceTexture_setSurfaceTexture(JNIEnv* env, jobject thiz, in SurfaceTexture_setSurfaceTexture() argument 87 (SurfaceTexture*)env->GetLongField(thiz, fields.surfaceTexture); in SurfaceTexture_setSurfaceTexture() 94 env->SetLongField(thiz, fields.surfaceTexture, (jlong)surfaceTexture.get()); in SurfaceTexture_setSurfaceTexture() 97 static void SurfaceTexture_setProducer(JNIEnv* env, jobject thiz, in SurfaceTexture_setProducer() argument 101 (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); in SurfaceTexture_setProducer() 108 env->SetLongField(thiz, fields.producer, (jlong)producer.get()); in SurfaceTexture_setProducer() 111 static void SurfaceTexture_setFrameAvailableListener(JNIEnv* env, in SurfaceTexture_setFrameAvailableListener() argument 116 env->GetLongField(thiz, fields.frameAvailableListener); in SurfaceTexture_setFrameAvailableListener() 123 env->SetLongField(thiz, fields.frameAvailableListener, (jlong)listener.get()); in SurfaceTexture_setFrameAvailableListener() 126 sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz) { in SurfaceTexture_getSurfaceTexture() argument [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaRecorder.cpp | 56 extern sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, struct JNICameraContext** context); 58 android_media_MediaCodec_getPersistentInputSurface(JNIEnv* env, jobject object); 81 JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 90 JNIMediaRecorderListener::JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz) in JNIMediaRecorderListener() argument 95 jclass clazz = env->GetObjectClass(thiz); in JNIMediaRecorderListener() 98 jniThrowException(env, "java/lang/Exception", NULL); in JNIMediaRecorderListener() 101 mClass = (jclass)env->NewGlobalRef(clazz); in JNIMediaRecorderListener() 105 mObject = env->NewGlobalRef(weak_thiz); in JNIMediaRecorderListener() 111 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JNIMediaRecorderListener() local 112 env->DeleteGlobalRef(mObject); in ~JNIMediaRecorderListener() [all …]
|
D | android_media_MediaPlayer.cpp | 61 var = env->FindClass(className); \ 65 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \ 107 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 116 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz) in JNIMediaPlayerListener() argument 121 jclass clazz = env->GetObjectClass(thiz); in JNIMediaPlayerListener() 124 jniThrowException(env, "java/lang/Exception", NULL); in JNIMediaPlayerListener() 127 mClass = (jclass)env->NewGlobalRef(clazz); in JNIMediaPlayerListener() 131 mObject = env->NewGlobalRef(weak_thiz); in JNIMediaPlayerListener() 137 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JNIMediaPlayerListener() local 138 env->DeleteGlobalRef(mObject); in ~JNIMediaPlayerListener() [all …]
|
D | android_mtp_MtpDevice.cpp | 112 JavaArrayWriter(JNIEnv* env, jbyteArray array) : in JavaArrayWriter() argument 113 mEnv(env), mArray(array), mSize(mEnv->GetArrayLength(mArray)) {} in JavaArrayWriter() 133 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice) in get_device_from_object() argument 135 return (MtpDevice*)env->GetLongField(javaDevice, field_context); in get_device_from_object() 138 void fill_jobject_from_object_info(JNIEnv* env, jobject object, MtpObjectInfo* objectInfo) { in fill_jobject_from_object_info() argument 140 env->SetIntField(object, field_objectInfo_handle, objectInfo->mHandle); in fill_jobject_from_object_info() 142 env->SetIntField(object, field_objectInfo_storageId, objectInfo->mStorageID); in fill_jobject_from_object_info() 144 env->SetIntField(object, field_objectInfo_format, objectInfo->mFormat); in fill_jobject_from_object_info() 146 env->SetIntField(object, field_objectInfo_protectionStatus, objectInfo->mProtectionStatus); in fill_jobject_from_object_info() 148 env->SetIntField(object, field_objectInfo_compressedSize, objectInfo->mCompressedSize); in fill_jobject_from_object_info() [all …]
|
D | android_media_MediaDrm.cpp | 45 var = env->FindClass(className); \ 49 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \ 53 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \ 57 var = env->GetStaticFieldID(clazz, fieldName, fieldDescriptor); \ 61 var = env->GetStaticMethodID(clazz, fieldName, fieldDescriptor); \ 65 var = env->GetStaticObjectField(clazz, fieldId); \ 212 jobject nativeToJavaPersistableBundle(JNIEnv *env, jobject thiz, in nativeToJavaPersistableBundle() argument 214 if (env == NULL || thiz == NULL || nativeBundle == NULL) { in nativeToJavaPersistableBundle() 221 jobject jParcel = android::createJavaParcelObject(env); in nativeToJavaPersistableBundle() 227 android::Parcel* nativeParcel = android::parcelForJavaObject(env, jParcel); in nativeToJavaPersistableBundle() [all …]
|
D | android_media_MediaCodec.cpp | 134 JNIEnv *env, jobject thiz, in JMediaCodec() argument 138 jclass clazz = env->GetObjectClass(thiz); in JMediaCodec() 141 mClass = (jclass)env->NewGlobalRef(clazz); in JMediaCodec() 142 mObject = env->NewWeakGlobalRef(thiz); in JMediaCodec() 144 cacheJavaObjects(env); in JMediaCodec() 166 void JMediaCodec::cacheJavaObjects(JNIEnv *env) { in cacheJavaObjects() argument 167 jclass clazz = (jclass)env->FindClass("java/nio/ByteBuffer"); in cacheJavaObjects() 168 mByteBufferClass = (jclass)env->NewGlobalRef(clazz); in cacheJavaObjects() 172 env, env->FindClass("java/nio/ByteOrder")); in cacheJavaObjects() 175 jmethodID nativeOrderID = env->GetStaticMethodID( in cacheJavaObjects() [all …]
|
D | android_media_MediaExtractor.cpp | 62 JMediaExtractor::JMediaExtractor(JNIEnv *env, jobject thiz) in JMediaExtractor() argument 65 jclass clazz = env->GetObjectClass(thiz); in JMediaExtractor() 68 mClass = (jclass)env->NewGlobalRef(clazz); in JMediaExtractor() 69 mObject = env->NewWeakGlobalRef(thiz); in JMediaExtractor() 75 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JMediaExtractor() local 77 env->DeleteWeakGlobalRef(mObject); in ~JMediaExtractor() 79 env->DeleteGlobalRef(mClass); in ~JMediaExtractor() 98 status_t JMediaExtractor::setMediaCas(JNIEnv *env, jobject casBinderObj) { in setMediaCas() argument 104 JHwRemoteBinder::GetNativeContext(env, casBinderObj)->getBinder(); in setMediaCas() 133 JNIEnv *env = AndroidRuntime::getJNIEnv(); in getTrackFormat() local [all …]
|
/frameworks/base/drm/jni/ |
D | android_drm_DrmManagerClient.cpp | 47 static String8 getStringValue(JNIEnv* env, jobject object, const char* fieldName); 50 JNIEnv* env, jobject object, const char* fieldName, int* dataLength); 53 JNIEnv* env, jbyteArray byteArray, int* dataLength); 55 static String8 getStringValue(JNIEnv* env, jstring string); 57 static int getIntValue(JNIEnv* env, jobject object, const char* fieldName); 60 String8 Utility::getStringValue(JNIEnv* env, jobject object, const char* fieldName) { in getStringValue() argument 63 = env->GetFieldID(env->GetObjectClass(object), fieldName , "Ljava/lang/String;"); in getStringValue() 66 jstring valueString = (jstring) env->GetObjectField(object, fieldID); in getStringValue() 67 return Utility::getStringValue(env, valueString); in getStringValue() 74 String8 Utility::getStringValue(JNIEnv* env, jstring string) { in getStringValue() argument [all …]
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | convert.cpp | 58 static JavaRef<jobject> BandDescriptorFromHal(JNIEnv *env, const RegionalBandConfig &config); 59 static JavaRef<jobject> BandDescriptorFromHal(JNIEnv *env, const V1_0::BandConfig &config, Region r… 166 static jstring CastToString(JNIEnv *env, jobject obj) { in CastToString() argument 167 if (env->IsInstanceOf(obj, gjni.String.clazz)) { in CastToString() 176 bool ThrowIfFailed(JNIEnv *env, const hardware::Return<void> &hidlResult) { in ThrowIfFailed() argument 177 return __ThrowIfFailedHidl(env, hidlResult); in ThrowIfFailed() 180 bool __ThrowIfFailedHidl(JNIEnv *env, const hardware::details::return_status &hidlResult) { in __ThrowIfFailedHidl() argument 183 ThrowParcelableRuntimeException(env, "HIDL call failed: " + hidlResult.description()); in __ThrowIfFailedHidl() 187 bool __ThrowIfFailed(JNIEnv *env, const Result halResult) { in __ThrowIfFailed() argument 192 ThrowParcelableRuntimeException(env, "Result::NOT_INITIALIZED"); in __ThrowIfFailed() [all …]
|
/frameworks/base/core/jni/ |
D | android_util_Binder.cpp | 180 static void gcIfManyNewRefs(JNIEnv* env) in gcIfManyNewRefs() argument 194 env->CallStaticVoidMethod(gBinderInternalOffsets.mClass, in gcIfManyNewRefs() 202 static JavaVM* jnienv_to_javavm(JNIEnv* env) in jnienv_to_javavm() argument 205 return env->GetJavaVM(&vm) >= 0 ? vm : NULL; in jnienv_to_javavm() 210 JNIEnv* env; in javavm_to_jnienv() local 211 return vm->GetEnv((void **)&env, JNI_VERSION_1_4) >= 0 ? env : NULL; in javavm_to_jnienv() 214 static const char* GetErrorTypeName(JNIEnv* env, jthrowable error) { in GetErrorTypeName() argument 215 if (env->IsInstanceOf(error, gErrorOffsets.mOutOfMemory)) { in GetErrorTypeName() 218 if (env->IsInstanceOf(error, gErrorOffsets.mStackOverflow)) { in GetErrorTypeName() 226 static void report_java_lang_error_fatal_error(JNIEnv* env, jthrowable error, in report_java_lang_error_fatal_error() argument [all …]
|
D | android_net_LocalSocketImpl.cpp | 57 socket_connect_local(JNIEnv *env, jobject object, in socket_connect_local() argument 64 jniThrowNullPointerException(env, NULL); in socket_connect_local() 68 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_connect_local() 70 if (env->ExceptionCheck()) { in socket_connect_local() 74 ScopedUtfChars nameUtf8(env, name); in socket_connect_local() 83 jniThrowIOException(env, errno); in socket_connect_local() 95 socket_bind_local (JNIEnv *env, jobject object, jobject fileDescriptor, in socket_bind_local() argument 102 jniThrowNullPointerException(env, NULL); in socket_bind_local() 106 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_bind_local() 108 if (env->ExceptionCheck()) { in socket_bind_local() [all …]
|
D | android_hardware_SoundTrigger.cpp | 172 JNISoundTriggerCallback(JNIEnv* env, jobject thiz, jobject weak_thiz); 185 JNISoundTriggerCallback::JNISoundTriggerCallback(JNIEnv* env, jobject thiz, jobject weak_thiz) in JNISoundTriggerCallback() argument 190 jclass clazz = env->GetObjectClass(thiz); in JNISoundTriggerCallback() 195 mClass = (jclass)env->NewGlobalRef(clazz); in JNISoundTriggerCallback() 199 mObject = env->NewGlobalRef(weak_thiz); in JNISoundTriggerCallback() 205 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JNISoundTriggerCallback() local 206 env->DeleteGlobalRef(mObject); in ~JNISoundTriggerCallback() 207 env->DeleteGlobalRef(mClass); in ~JNISoundTriggerCallback() 212 JNIEnv *env = AndroidRuntime::getJNIEnv(); in onRecognitionEvent() local 217 jData = env->NewByteArray(event->data_size); in onRecognitionEvent() [all …]
|
D | android_media_AudioSystem.cpp | 206 JNIAudioPortCallback(JNIEnv* env, jobject thiz, jobject weak_thiz); 220 JNIAudioPortCallback::JNIAudioPortCallback(JNIEnv* env, jobject thiz, jobject weak_thiz) in JNIAudioPortCallback() argument 225 jclass clazz = env->GetObjectClass(thiz); in JNIAudioPortCallback() 230 mClass = (jclass)env->NewGlobalRef(clazz); in JNIAudioPortCallback() 234 mObject = env->NewGlobalRef(weak_thiz); in JNIAudioPortCallback() 240 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JNIAudioPortCallback() local 241 if (env == NULL) { in ~JNIAudioPortCallback() 244 env->DeleteGlobalRef(mObject); in ~JNIAudioPortCallback() 245 env->DeleteGlobalRef(mClass); in ~JNIAudioPortCallback() 250 JNIEnv *env = AndroidRuntime::getJNIEnv(); in sendEvent() local [all …]
|
D | android_os_HwParcel.cpp | 57 void signalExceptionForError(JNIEnv *env, status_t err, bool canThrowRemoteException) { in signalExceptionForError() argument 64 jniThrowException(env, "java/lang/OutOfMemoryError", NULL); in signalExceptionForError() 71 env, "java/lang/UnsupportedOperationException", NULL); in signalExceptionForError() 77 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in signalExceptionForError() 84 jniThrowException(env, "java/lang/IndexOutOfBoundsException", NULL); in signalExceptionForError() 90 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in signalExceptionForError() 96 jniThrowException(env, "java/util/NoSuchElementException", NULL); in signalExceptionForError() 102 jniThrowException(env, "java/lang/SecurityException", NULL); in signalExceptionForError() 109 env, "java/lang/RuntimeException", "Not initialized"); in signalExceptionForError() 116 env, "java/lang/RuntimeException", "Item already exists"); in signalExceptionForError() [all …]
|
D | AndroidRuntime.cpp | 58 extern int register_android_os_Binder(JNIEnv* env); 59 extern int register_android_os_Process(JNIEnv* env); 63 extern int register_android_graphics_ByteBufferStreamAdaptor(JNIEnv* env); 64 extern int register_android_graphics_Camera(JNIEnv* env); 65 extern int register_android_graphics_CreateJavaOutputStreamAdaptor(JNIEnv* env); 66 extern int register_android_graphics_GraphicBuffer(JNIEnv* env); 67 extern int register_android_graphics_Graphics(JNIEnv* env); 70 extern int register_android_graphics_Interpolator(JNIEnv* env); 71 extern int register_android_graphics_MaskFilter(JNIEnv* env); 72 extern int register_android_graphics_Movie(JNIEnv* env); [all …]
|
D | android_hardware_Camera.cpp | 74 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera); 84 void postMetadata(JNIEnv *env, int32_t msgType, camera_frame_metadata_t *metadata); 85 void addCallbackBuffer(JNIEnv *env, jbyteArray cbb, int msgType); 86 void setCallbackMode(JNIEnv *env, bool installed, bool manualMode); 92 void copyAndPost(JNIEnv* env, const sp<IMemory>& dataPtr, int msgType); 93 void clearCallbackBuffers_l(JNIEnv *env, Vector<jbyteArray> *buffers); 94 void clearCallbackBuffers_l(JNIEnv *env); 95 jbyteArray getCallbackBuffer(JNIEnv *env, Vector<jbyteArray> *buffers, size_t bufferSize); 130 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext) in get_native_camera() argument 134 …JNICameraContext* context = reinterpret_cast<JNICameraContext*>(env->GetLongField(thiz, fields.con… in get_native_camera() [all …]
|
D | android_net_NetUtils.cpp | 55 static void throwErrnoException(JNIEnv* env, const char* functionName, int error) { in throwErrnoException() argument 56 ScopedLocalRef<jstring> detailMessage(env, env->NewStringUTF(functionName)); in throwErrnoException() 60 env->ExceptionClear(); in throwErrnoException() 63 MakeGlobalRefOrDie(env, FindClassOrDie(env, "android/system/ErrnoException")); in throwErrnoException() 66 GetMethodIDOrDie(env, errnoExceptionClass, in throwErrnoException() 69 jobject exception = env->NewObject(errnoExceptionClass, in throwErrnoException() 73 env->Throw(reinterpret_cast<jthrowable>(exception)); in throwErrnoException() 76 static void android_net_utils_attachDropAllBPFFilter(JNIEnv *env, jobject clazz, jobject javaFd) in android_net_utils_attachDropAllBPFFilter() argument 87 int fd = jniGetFDFromFileDescriptor(env, javaFd); in android_net_utils_attachDropAllBPFFilter() 89 jniThrowExceptionFmt(env, "java/net/SocketException", in android_net_utils_attachDropAllBPFFilter() [all …]
|
D | android_view_InputChannel.cpp | 52 void invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj); 74 void NativeInputChannel::invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj) { in invokeAndRemoveDisposeCallback() argument 76 mDisposeCallback(env, obj, mInputChannel, mDisposeData); in invokeAndRemoveDisposeCallback() 84 static NativeInputChannel* android_view_InputChannel_getNativeInputChannel(JNIEnv* env, in android_view_InputChannel_getNativeInputChannel() argument 86 jlong longPtr = env->GetLongField(inputChannelObj, gInputChannelClassInfo.mPtr); in android_view_InputChannel_getNativeInputChannel() 90 static void android_view_InputChannel_setNativeInputChannel(JNIEnv* env, jobject inputChannelObj, in android_view_InputChannel_setNativeInputChannel() argument 92 env->SetLongField(inputChannelObj, gInputChannelClassInfo.mPtr, in android_view_InputChannel_setNativeInputChannel() 96 sp<InputChannel> android_view_InputChannel_getInputChannel(JNIEnv* env, jobject inputChannelObj) { in android_view_InputChannel_getInputChannel() argument 98 android_view_InputChannel_getNativeInputChannel(env, inputChannelObj); in android_view_InputChannel_getInputChannel() 102 void android_view_InputChannel_setDisposeCallback(JNIEnv* env, jobject inputChannelObj, in android_view_InputChannel_setDisposeCallback() argument [all …]
|
D | android_media_AudioRecord.cpp | 97 JNIEnv *env = AndroidRuntime::getJNIEnv(); in recorderCallback() local 98 if (user != NULL && env != NULL) { in recorderCallback() 99 env->CallStaticVoidMethod( in recorderCallback() 103 if (env->ExceptionCheck()) { in recorderCallback() 104 env->ExceptionDescribe(); in recorderCallback() 105 env->ExceptionClear(); in recorderCallback() 111 JNIEnv *env = AndroidRuntime::getJNIEnv(); in recorderCallback() local 112 if (user != NULL && env != NULL) { in recorderCallback() 113 env->CallStaticVoidMethod( in recorderCallback() 117 if (env->ExceptionCheck()) { in recorderCallback() [all …]
|
D | android_media_MicrophoneInfo.cpp | 48 jint convertMicrophoneInfoFromNative(JNIEnv *env, jobject *jMicrophoneInfo, in convertMicrophoneInfoFromNative() argument 59 jDeviceId = env->NewStringUTF(String8(microphoneInfo->getDeviceId()).string()); in convertMicrophoneInfoFromNative() 60 jAddress = env->NewStringUTF(String8(microphoneInfo->getAddress()).string()); in convertMicrophoneInfoFromNative() 66 jGeometricLocation = env->NewObject(gMicrophoneInfoCoordinateClass, in convertMicrophoneInfoFromNative() 71 jOrientation = env->NewObject(gMicrophoneInfoCoordinateClass, in convertMicrophoneInfoFromNative() 83 jFrequencyResponses = env->NewObject(gArrayListClass, gArrayListCstor); in convertMicrophoneInfoFromNative() 85 jobject jFrequency = env->NewObject(gFloatClass, gFloatCstor, in convertMicrophoneInfoFromNative() 87 jobject jResponse = env->NewObject(gFloatClass, gFloatCstor, in convertMicrophoneInfoFromNative() 89 jobject jFrequencyResponse = env->NewObject(gPairClass, gPairCstor, jFrequency, jResponse); in convertMicrophoneInfoFromNative() 90 env->CallBooleanMethod(jFrequencyResponses, gArrayListMethods.add, jFrequencyResponse); in convertMicrophoneInfoFromNative() [all …]
|
D | android_view_KeyEvent.cpp | 56 jobject android_view_KeyEvent_fromNative(JNIEnv* env, const KeyEvent* event) { in android_view_KeyEvent_fromNative() argument 57 jobject eventObj = env->CallStaticObjectMethod(gKeyEventClassInfo.clazz, in android_view_KeyEvent_fromNative() 71 if (env->ExceptionCheck()) { in android_view_KeyEvent_fromNative() 73 LOGE_EX(env); in android_view_KeyEvent_fromNative() 74 env->ExceptionClear(); in android_view_KeyEvent_fromNative() 80 status_t android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj, in android_view_KeyEvent_toNative() argument 82 jint deviceId = env->GetIntField(eventObj, gKeyEventClassInfo.mDeviceId); in android_view_KeyEvent_toNative() 83 jint source = env->GetIntField(eventObj, gKeyEventClassInfo.mSource); in android_view_KeyEvent_toNative() 84 jint displayId = env->GetIntField(eventObj, gKeyEventClassInfo.mDisplayId); in android_view_KeyEvent_toNative() 85 jint metaState = env->GetIntField(eventObj, gKeyEventClassInfo.mMetaState); in android_view_KeyEvent_toNative() [all …]
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_util.cpp | 35 JavaObject::JavaObject(jobject object, JNIEnv* env) 39 object_ = env->NewGlobalRef(object_); 66 JNIEnv* env = GetCurrentJNIEnv(); 67 if (!env) 70 env->DeleteGlobalRef(object_); 91 JNIEnv* env = NULL; 92 const jint result = vm->GetEnv(reinterpret_cast<void**>(&env), 94 return result == JNI_OK ? env : NULL; 98 jstring ToJString(JNIEnv* env, const std::string& value) { in ToJString() argument 99 return env->NewStringUTF(value.c_str()); in ToJString() [all …]
|