Home
last modified time | relevance | path

Searched refs:jHandle (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/jni/
Dandroid_os_NativeHandle.cpp55 JNIEnv *env, jobject jHandle, EphemeralStorage *storage) { in MakeCppNativeHandle() argument
56 if (jHandle == nullptr) { return nullptr; } in MakeCppNativeHandle()
58 if (!env->IsInstanceOf(jHandle, gNativeHandleFields.clazz)) { in MakeCppNativeHandle()
65 jHandle, gNativeHandleFields.getFdsID)); in MakeCppNativeHandle()
68 jHandle, gNativeHandleFields.getIntsID)); in MakeCppNativeHandle()
Dandroid_hardware_SoundTrigger.cpp523 jobject jSoundModel, jintArray jHandle) in android_hardware_SoundTrigger_loadSoundModel() argument
542 if (jHandle == NULL) { in android_hardware_SoundTrigger_loadSoundModel()
545 jsize jHandleLen = env->GetArrayLength(jHandle); in android_hardware_SoundTrigger_loadSoundModel()
549 jint *nHandle = env->GetIntArrayElements(jHandle, NULL); in android_hardware_SoundTrigger_loadSoundModel()
681 env->ReleaseIntArrayElements(jHandle, nHandle, NULL); in android_hardware_SoundTrigger_loadSoundModel()
691 jint jHandle) in android_hardware_SoundTrigger_unloadSoundModel() argument
699 status = module->unloadSoundModel((sound_model_handle_t)jHandle); in android_hardware_SoundTrigger_unloadSoundModel()
706 jint jHandle, jobject jConfig) in android_hardware_SoundTrigger_startRecognition() argument
793 status = module->startRecognition(jHandle, memory); in android_hardware_SoundTrigger_startRecognition()
799 jint jHandle) in android_hardware_SoundTrigger_stopRecognition() argument
[all …]
Dandroid_os_NativeHandle.h41 static native_handle_t* MakeCppNativeHandle(JNIEnv *env, jobject jHandle,
Dandroid_media_AudioSystem.cpp810 jobject jHandle = env->GetObjectField(jAudioPort, gAudioPortFields.mHandle); in convertAudioPortConfigToNative() local
811 nAudioPortConfig->id = env->GetIntField(jHandle, gAudioHandleFields.mId); in convertAudioPortConfigToNative()
820 env->DeleteLocalRef(jHandle); in convertAudioPortConfigToNative()
875 env->DeleteLocalRef(jHandle); in convertAudioPortConfigToNative()
929 jobject jHandle = env->NewObject(gAudioHandleClass, gAudioHandleCstor, in convertAudioPortConfigFromNative() local
935 if (jHandle == NULL) { in convertAudioPortConfigFromNative()
943 jHandle, // handle in convertAudioPortConfigFromNative()
951 env->DeleteLocalRef(jHandle); in convertAudioPortConfigFromNative()
1123 jobject jHandle = NULL; in convertAudioPortFromNative() local
1268 jHandle = env->NewObject(gAudioHandleClass, gAudioHandleCstor, in convertAudioPortFromNative()
[all …]
Dandroid_os_HwParcel.cpp615 ScopedLocalRef<jobject> jHandle(env, env->GetObjectArrayElement(jHandleArray, i)); in JHwParcel_native_writeNativeHandleVector() local
617 native_handle_t* handle = JNativeHandle::MakeCppNativeHandle(env, jHandle.get(), storage); in JHwParcel_native_writeNativeHandleVector()
872 jobject jHandle = JNativeHandle::MakeJavaNativeHandleObj(env, (*vec)[i].getNativeHandle()); in JHwParcel_native_readNativeHandleVector() local
874 env->SetObjectArrayElement(objArray, i, jHandle); in JHwParcel_native_readNativeHandleVector()
Dandroid_os_HwBlob.cpp482 jlong offset, jobject jHandle) { in JHwBlob_native_putNativeHandle() argument
484 JNativeHandle::MakeCppNativeHandle(env, jHandle, nullptr /* storage */), in JHwBlob_native_putNativeHandle()