Home
last modified time | relevance | path

Searched refs:mDeviceCallback (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/cmds/hid/jni/
Dcom_android_commands_hid_Device.cpp177 : mId(id), mFd(std::move(fd)), mDeviceCallback(std::move(callback)) { in Device()
234 mDeviceCallback->onDeviceError(); in handleEvents()
241 mDeviceCallback->onDeviceError(); in handleEvents()
247 mDeviceCallback->onDeviceOpen(); in handleEvents()
251 mDeviceCallback->onDeviceGetReport(ev.u.get_report.id, ev.u.get_report.rnum); in handleEvents()
269 mDeviceCallback->onDeviceOutput(data); in handleEvents()
Dcom_android_commands_hid_Device.h61 std::unique_ptr<DeviceCallback> mDeviceCallback; variable
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp192 if (mDeviceCallback != 0 && mInput != AUDIO_IO_HANDLE_NONE) { in ~AudioRecord()
896 if (mDeviceCallback != 0) { in createRecord_l()
1450 if (mDeviceCallback.unsafe_get() == callback.get()) { in addAudioDeviceCallback()
1456 if (mDeviceCallback != 0) { in addAudioDeviceCallback()
1462 mDeviceCallback = callback; in addAudioDeviceCallback()
1474 if (mDeviceCallback.unsafe_get() != callback.get()) { in removeAudioDeviceCallback()
1478 mDeviceCallback.clear(); in removeAudioDeviceCallback()
1494 callback = mDeviceCallback.promote(); in onAudioDeviceUpdate()
DAudioTrack.cpp324 if (mDeviceCallback != 0 && mOutput != AUDIO_IO_HANDLE_NONE) { in ~AudioTrack()
1639 if (mDeviceCallback != 0) { in createTrack_l()
3107 if (mDeviceCallback.unsafe_get() == callback.get()) { in addAudioDeviceCallback()
3113 if (mDeviceCallback != 0) { in addAudioDeviceCallback()
3119 mDeviceCallback = callback; in addAudioDeviceCallback()
3131 if (mDeviceCallback.unsafe_get() != callback.get()) { in removeAudioDeviceCallback()
3135 mDeviceCallback.clear(); in removeAudioDeviceCallback()
3152 callback = mDeviceCallback.promote(); in onAudioDeviceUpdate()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamLegacy.h143 const android::sp<StreamDeviceCallback> mDeviceCallback; variable
DAudioStreamRecord.cpp285 mAudioRecord->addAudioDeviceCallback(mDeviceCallback); in open()
294 mAudioRecord->removeAudioDeviceCallback(mDeviceCallback); in release_l()
DAudioStreamTrack.cpp227 mAudioTrack->addAudioDeviceCallback(mDeviceCallback); in open()
256 mAudioTrack->removeAudioDeviceCallback(mDeviceCallback); in release_l()
DAudioStreamLegacy.cpp38 , mDeviceCallback(new StreamDeviceCallback(this)) { in AudioStreamLegacy()
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp83 sp<JNIDeviceCallback> mDeviceCallback; member in AudioTrackJniStorage
1248 if (pJniStorage == NULL || pJniStorage->mDeviceCallback != 0) { in android_media_AudioTrack_enableDeviceCallback()
1251 pJniStorage->mDeviceCallback = in android_media_AudioTrack_enableDeviceCallback()
1254 lpTrack->addAudioDeviceCallback(pJniStorage->mDeviceCallback); in android_media_AudioTrack_enableDeviceCallback()
1266 if (pJniStorage == NULL || pJniStorage->mDeviceCallback == 0) { in android_media_AudioTrack_disableDeviceCallback()
1269 lpTrack->removeAudioDeviceCallback(pJniStorage->mDeviceCallback); in android_media_AudioTrack_disableDeviceCallback()
1270 pJniStorage->mDeviceCallback.clear(); in android_media_AudioTrack_disableDeviceCallback()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraDeviceImpl.java85 private final StateCallback mDeviceCallback; field in CameraDeviceImpl
151 mDeviceCallback.onOpened(CameraDeviceImpl.this);
215 mDeviceCallback.onClosed(CameraDeviceImpl.this);
247 mDeviceCallback.onDisconnected(CameraDeviceImpl.this);
257 mDeviceCallback = callback; in CameraDeviceImpl()
356 mDeviceCallback.onError(CameraDeviceImpl.this, code); in setRemoteFailure()
358 mDeviceCallback.onDisconnected(CameraDeviceImpl.this); in setRemoteFailure()
1629 mDeviceCallback.onError(CameraDeviceImpl.this, code); in notifyError()
2263 mDeviceCallback.onError(CameraDeviceImpl.this, in binderDied()
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h753 wp<AudioSystem::AudioDeviceCallback> mDeviceCallback; variable
DAudioTrack.h1254 wp<AudioSystem::AudioDeviceCallback> mDeviceCallback; variable
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.h179 wp<AudioSystem::AudioDeviceCallback> mDeviceCallback; variable
DMediaPlayerService.cpp1785 mDeviceCallback(deviceCallback) in AudioOutput()
2305 mTrack->addAudioDeviceCallback(mDeviceCallback.promote()); in updateTrack()
2552 status = mTrack->addAudioDeviceCallback(mDeviceCallback.promote()); in enableAudioDeviceCallback()
2554 status = mTrack->removeAudioDeviceCallback(mDeviceCallback.promote()); in enableAudioDeviceCallback()