Home
last modified time | relevance | path

Searched refs:pJniStorage (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/jni/
Dandroid_media_AudioRecord.cpp605 const auto pJniStorage = in android_media_AudioRecord_enableDeviceCallback() local
607 if (pJniStorage == nullptr || pJniStorage->getDeviceCallback() != nullptr) { in android_media_AudioRecord_enableDeviceCallback()
611 pJniStorage->setDeviceCallback( in android_media_AudioRecord_enableDeviceCallback()
612 sp<JNIDeviceCallback>::make(env, thiz, pJniStorage->getAudioTrackWeakRef(), in android_media_AudioRecord_enableDeviceCallback()
614 lpRecorder->addAudioDeviceCallback(pJniStorage->getDeviceCallback()); in android_media_AudioRecord_enableDeviceCallback()
623 const auto pJniStorage = in android_media_AudioRecord_disableDeviceCallback() local
626 if (pJniStorage == nullptr || pJniStorage->getDeviceCallback() == nullptr) { in android_media_AudioRecord_disableDeviceCallback()
629 lpRecorder->removeAudioDeviceCallback(pJniStorage->getDeviceCallback()); in android_media_AudioRecord_disableDeviceCallback()
630 pJniStorage->setDeviceCallback(nullptr); in android_media_AudioRecord_disableDeviceCallback()
Dandroid_media_AudioTrack.cpp1211 const auto pJniStorage = in android_media_AudioTrack_enableDeviceCallback() local
1213 if (pJniStorage == nullptr || pJniStorage->mDeviceCallback != nullptr) { in android_media_AudioTrack_enableDeviceCallback()
1217 pJniStorage->mDeviceCallback = in android_media_AudioTrack_enableDeviceCallback()
1218 sp<JNIDeviceCallback>::make(env, thiz, pJniStorage->getAudioTrackWeakRef(), in android_media_AudioTrack_enableDeviceCallback()
1220 lpTrack->addAudioDeviceCallback(pJniStorage->mDeviceCallback); in android_media_AudioTrack_enableDeviceCallback()
1230 const auto pJniStorage = in android_media_AudioTrack_disableDeviceCallback() local
1233 if (pJniStorage == nullptr || pJniStorage->mDeviceCallback == nullptr) { in android_media_AudioTrack_disableDeviceCallback()
1236 lpTrack->removeAudioDeviceCallback(pJniStorage->mDeviceCallback); in android_media_AudioTrack_disableDeviceCallback()
1237 pJniStorage->mDeviceCallback.clear(); in android_media_AudioTrack_disableDeviceCallback()