Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I2d28198c2fc4622a090f4d830cbb311fe522749c
This commit is contained in:
@@ -91,7 +91,7 @@ WVMExtractorImpl::WVMExtractorImpl(sp<DataSource> dataSource)
|
||||
{
|
||||
dataSource->getDrmInfo(sDecryptHandle, &sDrmManagerClient);
|
||||
|
||||
//LOGD("WVMExtractorImpl::WVMExtractorImpl: uniqueId = %d", sDrmManagerClient->mUniqueId);
|
||||
//ALOGD("WVMExtractorImpl::WVMExtractorImpl: uniqueId = %d", sDrmManagerClient->mUniqueId);
|
||||
|
||||
_ah006(android_printbuf);
|
||||
_ah002(_cb1);
|
||||
@@ -112,7 +112,7 @@ WVMExtractorImpl::WVMExtractorImpl(sp<DataSource> dataSource)
|
||||
|
||||
void WVMExtractorImpl::Initialize()
|
||||
{
|
||||
//LOGD("WVMExtractorImpl::Initialize(%d)\n", getAdaptiveStreamingMode());
|
||||
//ALOGD("WVMExtractorImpl::Initialize(%d)\n", getAdaptiveStreamingMode());
|
||||
WVCredentials credentials;
|
||||
WVStatus result;
|
||||
|
||||
@@ -340,7 +340,7 @@ status_t WVMExtractorImpl::readESDSMetaData(sp<MetaData> audioMetaData)
|
||||
char *filename = "/data/wvm/esds";
|
||||
FILE *f = fopen(filename, "w");
|
||||
if (!f)
|
||||
LOGD("Failed to open %s", filename);
|
||||
ALOGD("Failed to open %s", filename);
|
||||
else {
|
||||
fwrite(config, size, 1, f);
|
||||
fclose(f);
|
||||
@@ -456,13 +456,13 @@ int64_t WVMExtractorImpl::getCachedDurationUs(status_t *finalStatus) {
|
||||
|
||||
void WVMExtractorImpl::setAdaptiveStreamingMode(bool adaptive)
|
||||
{
|
||||
//LOGD("WVMExtractorImpl::setAdaptiveStreamingMode(%d)", adaptive);
|
||||
//ALOGD("WVMExtractorImpl::setAdaptiveStreamingMode(%d)", adaptive);
|
||||
mUseAdaptiveStreaming = adaptive;
|
||||
}
|
||||
|
||||
bool WVMExtractorImpl::getAdaptiveStreamingMode() const
|
||||
{
|
||||
//LOGD("WVMExtractorImpl::getAdaptiveStreamingMode - %d", mUseAdaptiveStreaming);
|
||||
//ALOGD("WVMExtractorImpl::getAdaptiveStreamingMode - %d", mUseAdaptiveStreaming);
|
||||
return mUseAdaptiveStreaming;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ void WVMInfoListener::setSession(WVSession *session)
|
||||
|
||||
void WVMInfoListener::onInfo(const DrmInfoEvent &event)
|
||||
{
|
||||
//LOGD("WVMMediaSource::onInfo: type=%d, msg=%s!!!",
|
||||
//ALOGD("WVMMediaSource::onInfo: type=%d, msg=%s!!!",
|
||||
// event.getType(), event.getMessage().string());
|
||||
|
||||
if (event.getType() == MessageType_HeartbeatServer)
|
||||
@@ -60,7 +60,7 @@ void WVMInfoListener::configureHeartbeat()
|
||||
{
|
||||
// send the first time we have all the info
|
||||
if (mSession && mHaveInfo) {
|
||||
//LOGD("WVMMediaSource::calling WV_ConfigureHeartbeat()");
|
||||
//ALOGD("WVMMediaSource::calling WV_ConfigureHeartbeat()");
|
||||
WV_ConfigureHeartbeat(mSession, mServerUrl, mPeriod, mAssetId,
|
||||
mDeviceId, mStreamId, mUserData);
|
||||
mSession = NULL;
|
||||
|
||||
@@ -22,5 +22,5 @@
|
||||
|
||||
void android_printbuf(const char *buf)
|
||||
{
|
||||
LOGD("%s", buf);
|
||||
ALOGD("%s", buf);
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ status_t WVMMediaSource::setBuffers(const Vector<MediaBuffer *> &buffers) {
|
||||
|
||||
status_t WVMMediaSource::start(MetaData *)
|
||||
{
|
||||
//LOGD("WVMMediaSource::start()");
|
||||
//ALOGD("WVMMediaSource::start()");
|
||||
Mutex::Autolock autoLock(mLock);
|
||||
|
||||
CHECK(!mStarted);
|
||||
@@ -144,7 +144,7 @@ status_t WVMMediaSource::start(MetaData *)
|
||||
|
||||
status_t WVMMediaSource::stop()
|
||||
{
|
||||
//LOGD("WVMMediaSource::stop()");
|
||||
//ALOGD("WVMMediaSource::stop()");
|
||||
Mutex::Autolock autoLock(mLock);
|
||||
|
||||
CHECK(mStarted);
|
||||
@@ -221,7 +221,7 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options)
|
||||
// When doing a seek, use a longer timeout since we need to set up a new connection
|
||||
retryLimit = 1500;
|
||||
|
||||
//LOGD("%s seek mode=%d, seek time=%lld lateby=%lld",
|
||||
//ALOGD("%s seek mode=%d, seek time=%lld lateby=%lld",
|
||||
// (mESSelector == WV_EsSelector_Video) ? "video" : "audio",
|
||||
// mode, seekTimeUs, options->getLateBy());
|
||||
if (mode == ReadOptions::SEEK_NEXT_SYNC) {
|
||||
@@ -351,12 +351,12 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options)
|
||||
break;
|
||||
|
||||
#ifdef REQUIRE_SECURE_BUFFERS
|
||||
LOGD("buffer overflow");
|
||||
ALOGD("buffer overflow");
|
||||
mediaBuf->release();
|
||||
return ERROR_IO;
|
||||
#endif
|
||||
|
||||
//LOGD("Resizing...");
|
||||
//ALOGD("Resizing...");
|
||||
|
||||
// This buffer is too small, allocate a larger buffer twice the size
|
||||
// and copy the data from the current buffer into the first part of
|
||||
@@ -395,11 +395,11 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options)
|
||||
fwrite(mediaBuf->data(), bytesRead + offset, 1, f);
|
||||
fclose(f);
|
||||
}
|
||||
LOGD("WVMMediaSource::read writing (%d bytes to %s)", bytesRead + offset, filename);
|
||||
ALOGD("WVMMediaSource::read writing (%d bytes to %s)", bytesRead + offset, filename);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
LOGD("[%p] %s packet length=%d kKeyTime=%lld %s\n", mediaBuf,
|
||||
ALOGD("[%p] %s packet length=%d kKeyTime=%lld %s\n", mediaBuf,
|
||||
(mESSelector == WV_EsSelector_Video ? "video" : "audio"),
|
||||
bytesRead + offset, keyTime, syncFrame ? "sync" : "");
|
||||
#endif
|
||||
@@ -416,7 +416,7 @@ WVMMediaSource::DecryptContext WVMMediaSource::sDecryptContext[2] = {};
|
||||
void WVMMediaSource::DecryptCallback(WVEsSelector esType, void* input, void* output,
|
||||
size_t length, int key)
|
||||
{
|
||||
//LOGD("DecryptCallback(type=%d, in=%p, out=%p, len=%d, key=%d\n",
|
||||
//ALOGD("DecryptCallback(type=%d, in=%p, out=%p, len=%d, key=%d\n",
|
||||
// (int)esType, input, output, length, key);
|
||||
DecryptContext &context = sDecryptContext[esType];
|
||||
OEMCrypto_UINT32 copied = length;
|
||||
@@ -437,7 +437,7 @@ void WVMMediaSource::DecryptCallback(WVEsSelector esType, void* input, void* out
|
||||
}
|
||||
|
||||
if (result != OEMCrypto_SUCCESS) {
|
||||
LOGD("OEMCrypto decrypt failure: %d", result);
|
||||
ALOGD("OEMCrypto decrypt failure: %d", result);
|
||||
}
|
||||
|
||||
context.mOffset += copied;
|
||||
@@ -447,7 +447,7 @@ void WVMMediaSource::DecryptCallback(WVEsSelector esType, void* input, void* out
|
||||
|
||||
WVMMediaSource::~WVMMediaSource()
|
||||
{
|
||||
//LOGD("WVMMediaSource::~WVMMediaSource()");
|
||||
//ALOGD("WVMMediaSource::~WVMMediaSource()");
|
||||
|
||||
if (mStarted) {
|
||||
stop();
|
||||
|
||||
@@ -64,7 +64,7 @@ void TestLibWVM::Load()
|
||||
|
||||
// Basic test - just see if we can instantiate the object and call a method
|
||||
if (getInstanceFunc) {
|
||||
LOGD("Found GetInstanceFunc");
|
||||
ALOGD("Found GetInstanceFunc");
|
||||
} else {
|
||||
LOGE("Failed to locate GetInstance in libwvm.so");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user