/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 …]
|
/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_MediaPlayer2.cpp | 65 var = env->FindClass(className); \ 69 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \ 109 JNIEnv *env, jobjectArray keys, jobjectArray values, in ConvertKeyValueArraysToKeyedVector() argument 115 nKeyValuePairs = env->GetArrayLength(keys); in ConvertKeyValueArraysToKeyedVector() 116 failed = (nKeyValuePairs != env->GetArrayLength(values)); in ConvertKeyValueArraysToKeyedVector() 126 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in ConvertKeyValueArraysToKeyedVector() 133 jstring key = (jstring) env->GetObjectArrayElement(keys, i); in ConvertKeyValueArraysToKeyedVector() 134 jstring value = (jstring) env->GetObjectArrayElement(values, i); in ConvertKeyValueArraysToKeyedVector() 136 const char* keyStr = env->GetStringUTFChars(key, NULL); in ConvertKeyValueArraysToKeyedVector() 141 const char* valueStr = env->GetStringUTFChars(value, NULL); in ConvertKeyValueArraysToKeyedVector() [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 …]
|
/frameworks/av/media/libmediaplayer2/ |
D | JAudioTrack.cpp | 41 JNIEnv *env = JavaVMHelper::getJNIEnv(); in JAudioTrack() local 43 jclass jAudioTrackCls = env->FindClass("android/media/AudioTrack"); in JAudioTrack() 44 mAudioTrackCls = reinterpret_cast<jclass>(env->NewGlobalRef(jAudioTrackCls)); in JAudioTrack() 45 env->DeleteLocalRef(jAudioTrackCls); in JAudioTrack() 57 env->GetStaticMethodID(mAudioTrackCls, "getMinBufferSize", "(III)I"); in JAudioTrack() 58 bufferSizeInBytes = env->CallStaticIntMethod(mAudioTrackCls, jGetMinBufferSize, in JAudioTrack() 64 jclass jBuilderCls = env->FindClass("android/media/AudioTrack$Builder"); in JAudioTrack() 65 jmethodID jBuilderCtor = env->GetMethodID(jBuilderCls, "<init>", "()V"); in JAudioTrack() 66 jobject jBuilderObj = env->NewObject(jBuilderCls, jBuilderCtor); in JAudioTrack() 74 JAudioAttributes::createAudioAttributesObj(env, NULL)); in JAudioTrack() [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/opt/gamesdk/src/tuningfork/ |
D | clearcut_backend.cpp | 46 JNIEnv* env; in Process() local 48 int envStatus = vm_->GetEnv((void**)&env, JNI_VERSION_1_6); in Process() 57 int attachStatus = vm_->AttachCurrentThread(&env, (void *) NULL); in Process() 71 jbyteArray output = env->NewByteArray(length); in Process() 72 env->SetByteArrayRegion(output, 0, length, reinterpret_cast<const jbyte *>(evt_ser.data())); in Process() 75 jobject newBuilder = env->CallObjectMethod(clearcut_logger_, new_event_, output); in Process() 76 env->CallVoidMethod(newBuilder, log_method_); in Process() 77 bool hasException = CheckException(env); in Process() 85 bool ClearcutBackend::Init(JNIEnv *env, jobject activity, ProtoPrint* proto_print) { in Init() argument 89 env->GetJavaVM(&vm_); in Init() [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_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_util_Binder.cpp | 176 static void gcIfManyNewRefs(JNIEnv* env) in gcIfManyNewRefs() argument 190 env->CallStaticVoidMethod(gBinderInternalOffsets.mClass, in gcIfManyNewRefs() 198 static JavaVM* jnienv_to_javavm(JNIEnv* env) in jnienv_to_javavm() argument 201 return env->GetJavaVM(&vm) >= 0 ? vm : NULL; in jnienv_to_javavm() 206 JNIEnv* env; in javavm_to_jnienv() local 207 return vm->GetEnv((void **)&env, JNI_VERSION_1_4) >= 0 ? env : NULL; in javavm_to_jnienv() 212 static void report_java_lang_error_fatal_error(JNIEnv* env, jthrowable error, in report_java_lang_error_fatal_error() argument 221 ScopedLocalRef<jclass> exc_class(env, env->GetObjectClass(error)); in report_java_lang_error_fatal_error() 222 jmethodID method_id = env->GetMethodID(exc_class.get(), "toString", in report_java_lang_error_fatal_error() 225 env, in report_java_lang_error_fatal_error() [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_os_HwParcel.cpp | 54 void signalExceptionForError(JNIEnv *env, status_t err, bool canThrowRemoteException) { in signalExceptionForError() argument 61 jniThrowException(env, "java/lang/OutOfMemoryError", NULL); in signalExceptionForError() 68 env, "java/lang/UnsupportedOperationException", NULL); in signalExceptionForError() 74 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in signalExceptionForError() 81 jniThrowException(env, "java/lang/IndexOutOfBoundsException", NULL); in signalExceptionForError() 87 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in signalExceptionForError() 93 jniThrowException(env, "java/util/NoSuchElementException", NULL); in signalExceptionForError() 99 jniThrowException(env, "java/lang/SecurityException", NULL); in signalExceptionForError() 106 env, "java/lang/RuntimeException", "Not initialized"); in signalExceptionForError() 113 env, "java/lang/RuntimeException", "Item already exists"); in signalExceptionForError() [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 | 56 static void throwErrnoException(JNIEnv* env, const char* functionName, int error) { in throwErrnoException() argument 57 ScopedLocalRef<jstring> detailMessage(env, env->NewStringUTF(functionName)); in throwErrnoException() 61 env->ExceptionClear(); in throwErrnoException() 64 MakeGlobalRefOrDie(env, FindClassOrDie(env, "android/system/ErrnoException")); in throwErrnoException() 67 GetMethodIDOrDie(env, errnoExceptionClass, in throwErrnoException() 70 jobject exception = env->NewObject(errnoExceptionClass, in throwErrnoException() 74 env->Throw(reinterpret_cast<jthrowable>(exception)); in throwErrnoException() 77 static void android_net_utils_attachDropAllBPFFilter(JNIEnv *env, jobject clazz, jobject javaFd) in android_net_utils_attachDropAllBPFFilter() argument 88 int fd = jniGetFDFromFileDescriptor(env, javaFd); in android_net_utils_attachDropAllBPFFilter() 90 jniThrowExceptionFmt(env, "java/net/SocketException", in android_net_utils_attachDropAllBPFFilter() [all …]
|
D | AndroidRuntime.cpp | 57 extern int register_android_os_Binder(JNIEnv* env); 58 extern int register_android_os_Process(JNIEnv* env); 62 extern int register_android_graphics_ByteBufferStreamAdaptor(JNIEnv* env); 63 extern int register_android_graphics_Camera(JNIEnv* env); 64 extern int register_android_graphics_CreateJavaOutputStreamAdaptor(JNIEnv* env); 65 extern int register_android_graphics_GraphicBuffer(JNIEnv* env); 66 extern int register_android_graphics_Graphics(JNIEnv* env); 69 extern int register_android_graphics_Interpolator(JNIEnv* env); 70 extern int register_android_graphics_MaskFilter(JNIEnv* env); 71 extern int register_android_graphics_Movie(JNIEnv* env); [all …]
|
D | android_media_AudioSystem.cpp | 205 JNIAudioPortCallback(JNIEnv* env, jobject thiz, jobject weak_thiz); 219 JNIAudioPortCallback::JNIAudioPortCallback(JNIEnv* env, jobject thiz, jobject weak_thiz) in JNIAudioPortCallback() argument 224 jclass clazz = env->GetObjectClass(thiz); in JNIAudioPortCallback() 229 mClass = (jclass)env->NewGlobalRef(clazz); in JNIAudioPortCallback() 233 mObject = env->NewGlobalRef(weak_thiz); in JNIAudioPortCallback() 239 JNIEnv *env = AndroidRuntime::getJNIEnv(); in ~JNIAudioPortCallback() local 240 if (env == NULL) { in ~JNIAudioPortCallback() 243 env->DeleteGlobalRef(mObject); in ~JNIAudioPortCallback() 244 env->DeleteGlobalRef(mClass); in ~JNIAudioPortCallback() 249 JNIEnv *env = AndroidRuntime::getJNIEnv(); in sendEvent() local [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 …]
|