diff options
| author | Steve Block <steveblock@google.com> | 2011-10-20 11:56:19 +0100 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2011-10-25 18:16:13 +0100 |
| commit | 6a70518b93928d1c91457ff805e375c82d76b0e5 (patch) | |
| tree | 8c3a43fa892003e7ac137a34bba9c6bc0de64946 /audio/A2dpAudioInterface.cpp | |
| parent | 497fb4566204c88bd247aafc2412ddef8f85e480 (diff) | |
| download | hardware_libhardware_legacy-6a70518b93928d1c91457ff805e375c82d76b0e5.tar.gz hardware_libhardware_legacy-6a70518b93928d1c91457ff805e375c82d76b0e5.tar.bz2 hardware_libhardware_legacy-6a70518b93928d1c91457ff805e375c82d76b0e5.zip | |
Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/143865
Bug: 5449033
Change-Id: I953e5eabaf5023a4dcd76339c336d9132f257f8c
Diffstat (limited to 'audio/A2dpAudioInterface.cpp')
| -rw-r--r-- | audio/A2dpAudioInterface.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/audio/A2dpAudioInterface.cpp b/audio/A2dpAudioInterface.cpp index 2d78858..57c23bb 100644 --- a/audio/A2dpAudioInterface.cpp +++ b/audio/A2dpAudioInterface.cpp @@ -64,7 +64,7 @@ AudioStreamOut* A2dpAudioInterface::openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) { if (!AudioSystem::isA2dpDevice((AudioSystem::audio_devices)devices)) { - LOGV("A2dpAudioInterface::openOutputStream() open HW device: %x", devices); + ALOGV("A2dpAudioInterface::openOutputStream() open HW device: %x", devices); return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); } @@ -137,7 +137,7 @@ status_t A2dpAudioInterface::setParameters(const String8& keyValuePairs) String8 key; status_t status = NO_ERROR; - LOGV("setParameters() %s", keyValuePairs.string()); + ALOGV("setParameters() %s", keyValuePairs.string()); key = "bluetooth_enabled"; if (param.get(key, value) == NO_ERROR) { @@ -195,7 +195,7 @@ String8 A2dpAudioInterface::getParameters(const String8& keys) keyValuePairs += mHardwareInterface->getParameters(param.toString()); } - LOGV("getParameters() %s", keyValuePairs.string()); + ALOGV("getParameters() %s", keyValuePairs.string()); return keyValuePairs; } @@ -267,9 +267,9 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::set( A2dpAudioInterface::A2dpAudioStreamOut::~A2dpAudioStreamOut() { - LOGV("A2dpAudioStreamOut destructor"); + ALOGV("A2dpAudioStreamOut destructor"); close(); - LOGV("A2dpAudioStreamOut destructor returning from close()"); + ALOGV("A2dpAudioStreamOut destructor returning from close()"); } ssize_t A2dpAudioInterface::A2dpAudioStreamOut::write(const void* buffer, size_t bytes) @@ -281,7 +281,7 @@ ssize_t A2dpAudioInterface::A2dpAudioStreamOut::write(const void* buffer, size_t size_t remaining = bytes; if (!mBluetoothEnabled || mClosing || mSuspended) { - LOGV("A2dpAudioStreamOut::write(), but bluetooth disabled \ + ALOGV("A2dpAudioStreamOut::write(), but bluetooth disabled \ mBluetoothEnabled %d, mClosing %d, mSuspended %d", mBluetoothEnabled, mClosing, mSuspended); goto Error; @@ -316,7 +316,7 @@ ssize_t A2dpAudioInterface::A2dpAudioStreamOut::write(const void* buffer, size_t // NOTE: It is likely that the A2DP headset is being disconnected nsecs_t now = systemTime(); if ((uint32_t)ns2us(now - mLastWriteTime) < (mBufferDurationUs >> 2)) { - LOGV("A2DP sink runs too fast"); + ALOGV("A2DP sink runs too fast"); usleep(mBufferDurationUs - (uint32_t)ns2us(now - mLastWriteTime)); } mLastWriteTime = now; @@ -359,7 +359,7 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::standby_l() int result = NO_ERROR; if (!mStandby) { - LOGV_IF(mClosing || !mBluetoothEnabled, "Standby skip stop: closing %d enabled %d", + ALOGV_IF(mClosing || !mBluetoothEnabled, "Standby skip stop: closing %d enabled %d", mClosing, mBluetoothEnabled); if (!mClosing && mBluetoothEnabled) { result = a2dp_stop(mData); @@ -378,7 +378,7 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::setParameters(const String8& ke String8 key = String8("a2dp_sink_address"); status_t status = NO_ERROR; int device; - LOGV("A2dpAudioStreamOut::setParameters() %s", keyValuePairs.string()); + ALOGV("A2dpAudioStreamOut::setParameters() %s", keyValuePairs.string()); if (param.get(key, value) == NO_ERROR) { if (value.length() != strlen("00:00:00:00:00:00")) { @@ -428,7 +428,7 @@ String8 A2dpAudioInterface::A2dpAudioStreamOut::getParameters(const String8& key param.addInt(key, (int)mDevice); } - LOGV("A2dpAudioStreamOut::getParameters() %s", param.toString().string()); + ALOGV("A2dpAudioStreamOut::getParameters() %s", param.toString().string()); return param.toString(); } @@ -461,7 +461,7 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::setBluetoothEnabled(bool enable status_t A2dpAudioInterface::A2dpAudioStreamOut::setSuspended(bool onOff) { - LOGV("setSuspended %d", onOff); + ALOGV("setSuspended %d", onOff); mSuspended = onOff; standby(); return NO_ERROR; @@ -470,7 +470,7 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::setSuspended(bool onOff) status_t A2dpAudioInterface::A2dpAudioStreamOut::close() { Mutex::Autolock lock(mLock); - LOGV("A2dpAudioStreamOut::close() calling close_l()"); + ALOGV("A2dpAudioStreamOut::close() calling close_l()"); return close_l(); } @@ -478,7 +478,7 @@ status_t A2dpAudioInterface::A2dpAudioStreamOut::close_l() { standby_l(); if (mData) { - LOGV("A2dpAudioStreamOut::close_l() calling a2dp_cleanup(mData)"); + ALOGV("A2dpAudioStreamOut::close_l() calling a2dp_cleanup(mData)"); a2dp_cleanup(mData); mData = NULL; } |
