Searched refs:mDeviceCallback (Results 1 – 14 of 14) sorted by relevance
177 : 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()
61 std::unique_ptr<DeviceCallback> mDeviceCallback; variable
192 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()
324 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()
143 const android::sp<StreamDeviceCallback> mDeviceCallback; variable
285 mAudioRecord->addAudioDeviceCallback(mDeviceCallback); in open()294 mAudioRecord->removeAudioDeviceCallback(mDeviceCallback); in release_l()
227 mAudioTrack->addAudioDeviceCallback(mDeviceCallback); in open()256 mAudioTrack->removeAudioDeviceCallback(mDeviceCallback); in release_l()
38 , mDeviceCallback(new StreamDeviceCallback(this)) { in AudioStreamLegacy()
83 sp<JNIDeviceCallback> mDeviceCallback; member in AudioTrackJniStorage1248 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()
85 private final StateCallback mDeviceCallback; field in CameraDeviceImpl151 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()
753 wp<AudioSystem::AudioDeviceCallback> mDeviceCallback; variable
1254 wp<AudioSystem::AudioDeviceCallback> mDeviceCallback; variable
179 wp<AudioSystem::AudioDeviceCallback> mDeviceCallback; variable
1785 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()