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:
Steve Block
2011-12-20 16:24:34 +00:00
parent 4b10b77fa1
commit efe632956d
7 changed files with 49 additions and 49 deletions

View File

@@ -76,7 +76,7 @@ WVMDrmPlugin::~WVMDrmPlugin() {
* Returns DRM_NO_ERROR for success, DRM_ERROR_UNKNOWN for failure
*/
status_t WVMDrmPlugin::onInitialize(int uniqueId) {
//LOGD("WVMDrmPlugin::onInitialize : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onInitialize : %d", uniqueId);
return DRM_NO_ERROR;
}
@@ -89,7 +89,7 @@ status_t WVMDrmPlugin::onInitialize(int uniqueId) {
* Returns DRM_NO_ERROR for success, DRM_ERROR_UNKNOWN for failure
*/
status_t WVMDrmPlugin::onTerminate(int uniqueId) {
//LOGD("WVMDrmPlugin::onTerminate : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onTerminate : %d", uniqueId);
for (size_t i = 0; i < sNativeListeners->size(); i++) {
if ((*sNativeListeners)[i].GetUniqueId() == uniqueId) {
@@ -125,7 +125,7 @@ status_t WVMDrmPlugin::onTerminate(int uniqueId) {
*/
status_t WVMDrmPlugin::onSetOnInfoListener(
int uniqueId, const IDrmEngine::OnInfoListener* infoListener) {
//LOGD("WVMDrmPlugin::onSetOnInfoListener : add %d", uniqueId);
//ALOGD("WVMDrmPlugin::onSetOnInfoListener : add %d", uniqueId);
Listener newListener = Listener(const_cast<IDrmEngine::OnInfoListener *>(infoListener), uniqueId);
bool found = false;
@@ -205,7 +205,7 @@ bool WVMDrmPlugin::SendEvent(WVDRMPluginAPI::EventType type,
if (destination == WVDRMPluginAPI::EventDestination_JavaAPI) {
for (size_t i = 0; i < sJavaAPIListeners->size(); i++) {
DrmInfoEvent event((*sJavaAPIListeners)[i].GetUniqueId(), code, message);
//LOGD("WVMDrmPlugin::SendEvent [Java]: uniqueId=%d type=%d, code=%d, msg=%s",
//ALOGD("WVMDrmPlugin::SendEvent [Java]: uniqueId=%d type=%d, code=%d, msg=%s",
// (*sJavaAPIListeners)[i].GetUniqueId(), type, code, msg.c_str());
(*sJavaAPIListeners)[i].GetListener()->onInfo(event);
}
@@ -213,7 +213,7 @@ bool WVMDrmPlugin::SendEvent(WVDRMPluginAPI::EventType type,
} else if (destination == WVDRMPluginAPI::EventDestination_MediaPlayer) {
for (size_t i = 0; i < sNativeListeners->size(); i++) {
DrmInfoEvent event((*sNativeListeners)[i].GetUniqueId(), code, message);
//LOGD("WVMDrmPlugin::SendEvent [Native]: uniqueId=%d type=%d, code=%d, msg=%s",
//ALOGD("WVMDrmPlugin::SendEvent [Native]: uniqueId=%d type=%d, code=%d, msg=%s",
// (*sNativeListeners)[i].GetUniqueId(), type, code, msg.c_str());
(*sNativeListeners)[i].GetListener()->onInfo(event);
}
@@ -233,7 +233,7 @@ bool WVMDrmPlugin::SendEvent(WVDRMPluginAPI::EventType type,
* instance as a result of processing given input
*/
DrmInfo* WVMDrmPlugin::onAcquireDrmInfo(int uniqueId, const DrmInfoRequest* drmInfoRequest) {
//LOGD("WVMDrmPlugin::onAcquireDrmInfo : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onAcquireDrmInfo : %d", uniqueId);
DrmInfo* drmInfo = NULL;
std::string assetPath;
@@ -357,7 +357,7 @@ DrmInfo* WVMDrmPlugin::onAcquireDrmInfo(int uniqueId, const DrmInfoRequest* drmI
* instance as a result of processing given input
*/
DrmInfoStatus* WVMDrmPlugin::onProcessDrmInfo(int uniqueId, const DrmInfo* drmInfo) {
//LOGD("WVMDrmPlugin::onProcessDrmInfo: %d", uniqueId);
//ALOGD("WVMDrmPlugin::onProcessDrmInfo: %d", uniqueId);
int status = DrmInfoStatus::STATUS_ERROR;
@@ -404,7 +404,7 @@ DrmInfoStatus* WVMDrmPlugin::onProcessDrmInfo(int uniqueId, const DrmInfo* drmIn
*/
DrmConstraints* WVMDrmPlugin::onGetConstraints(int uniqueId, const String8* path, int action)
{
//LOGD("WVMDrmPlugin::onGetConstraints : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onGetConstraints : %d", uniqueId);
if ( (Action::DEFAULT != action) && (Action::PLAY != action) ) {
LOGE("onGetConstraints : action %d not supported", action);
@@ -466,7 +466,7 @@ DrmConstraints* WVMDrmPlugin::onGetConstraints(int uniqueId, const String8* path
* instance which holds the capabilities of a plug-in
*/
DrmSupportInfo* WVMDrmPlugin::onGetSupportInfo(int uniqueId) {
//LOGD("WVMDrmPlugin::onGetSupportInfo : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onGetSupportInfo : %d", uniqueId);
DrmSupportInfo* drmSupportInfo = new DrmSupportInfo();
// Add mimetype's
drmSupportInfo->addMimeType(String8("video/wvm"));
@@ -487,7 +487,7 @@ DrmSupportInfo* WVMDrmPlugin::onGetSupportInfo(int uniqueId) {
* key-value pairs of meta data; NULL if failed
*/
DrmMetadata* WVMDrmPlugin::onGetMetadata(int uniqueId, const String8* path) {
//LOGD("WVDrmPlugin::onGetMetadata returns NULL\n");
//ALOGD("WVDrmPlugin::onGetMetadata returns NULL\n");
return NULL;
}
@@ -504,7 +504,7 @@ DrmMetadata* WVMDrmPlugin::onGetMetadata(int uniqueId, const String8* path) {
*/
status_t WVMDrmPlugin::onSaveRights(int uniqueId, const DrmRights& drmRights,
const String8& rightsPath, const String8& contentPath) {
//LOGD("WVMDrmPlugin::onSaveRights : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onSaveRights : %d", uniqueId);
return DRM_NO_ERROR;
}
@@ -517,7 +517,7 @@ status_t WVMDrmPlugin::onSaveRights(int uniqueId, const DrmRights& drmRights,
* Returns true if this plugin can handle , false in case of not able to handle
*/
bool WVMDrmPlugin::onCanHandle(int uniqueId, const String8& path) {
//LOGD("WVMDrmPlugin::canHandle('%s') ", path.string());
//ALOGD("WVMDrmPlugin::canHandle('%s') ", path.string());
String8 extension = path.getPathExtension();
extension.toLower();
return (String8(".wvm") == extension || String8("") == extension);
@@ -532,7 +532,7 @@ bool WVMDrmPlugin::onCanHandle(int uniqueId, const String8& path) {
* Returns mime-type of the original content, such as "video/mpeg"
*/
String8 WVMDrmPlugin::onGetOriginalMimeType(int uniqueId, const String8& path) {
//LOGD("WVMDrmPlugin::onGetOriginalMimeType() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onGetOriginalMimeType() : %d", uniqueId);
return String8("video/wvm");
}
@@ -549,7 +549,7 @@ String8 WVMDrmPlugin::onGetOriginalMimeType(int uniqueId, const String8& path) {
*/
int WVMDrmPlugin::onGetDrmObjectType(
int uniqueId, const String8& path, const String8& mimeType) {
//LOGD("WVMDrmPlugin::onGetDrmObjectType() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onGetDrmObjectType() : %d", uniqueId);
return DrmObjectType::UNKNOWN;
}
@@ -563,7 +563,7 @@ int WVMDrmPlugin::onGetDrmObjectType(
* such as RightsStatus::RIGHTS_VALID, RightsStatus::RIGHTS_EXPIRED, etc.
*/
int WVMDrmPlugin::onCheckRightsStatus(int uniqueId, const String8& path, int action) {
//LOGD("WVMDrmPlugin::onCheckRightsStatus() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onCheckRightsStatus() : %d", uniqueId);
if ( (Action::DEFAULT != action) && (Action::PLAY != action) ) {
LOGE("onCheckRightsStatus : action %d not supported", action);
@@ -604,7 +604,7 @@ int WVMDrmPlugin::onCheckRightsStatus(int uniqueId, const String8& path, int act
*/
status_t WVMDrmPlugin::onConsumeRights(int uniqueId, DecryptHandle* decryptHandle,
int action, bool reserve) {
//LOGD("WVMDrmPlugin::onConsumeRights() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onConsumeRights() : %d", uniqueId);
return DRM_NO_ERROR;
}
@@ -621,7 +621,7 @@ status_t WVMDrmPlugin::onConsumeRights(int uniqueId, DecryptHandle* decryptHandl
*/
status_t WVMDrmPlugin::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle,
int playbackStatus, off64_t position) {
//LOGD("WVMDrmPlugin::onSetPlaybackStatus");
//ALOGD("WVMDrmPlugin::onSetPlaybackStatus");
int op;
@@ -657,7 +657,7 @@ status_t WVMDrmPlugin::onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptH
*/
bool WVMDrmPlugin::onValidateAction(int uniqueId, const String8& path,
int action, const ActionDescription& description) {
//LOGD("WVMDrmPlugin::onValidateAction() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onValidateAction() : %d", uniqueId);
return true;
}
@@ -670,7 +670,7 @@ bool WVMDrmPlugin::onValidateAction(int uniqueId, const String8& path,
* Returns DRM_NO_ERROR for success, DRM_ERROR_UNKNOWN for failure
*/
status_t WVMDrmPlugin::onRemoveRights(int uniqueId, const String8& path) {
//LOGD("WVMDrmPlugin::onRemoveRights() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onRemoveRights() : %d", uniqueId);
std::string assetPath(path.string());
if (mDrmPluginImpl->RemoveRights(assetPath))
@@ -688,7 +688,7 @@ status_t WVMDrmPlugin::onRemoveRights(int uniqueId, const String8& path) {
* Returns DRM_NO_ERROR for success, DRM_ERROR_UNKNOWN for failure
*/
status_t WVMDrmPlugin::onRemoveAllRights(int uniqueId) {
//LOGD("WVMDrmPlugin::onRemoveAllRights() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onRemoveAllRights() : %d", uniqueId);
if (mDrmPluginImpl->RemoveAllRights())
return DRM_NO_ERROR;
@@ -712,7 +712,7 @@ status_t WVMDrmPlugin::onOpenDecryptSession(
{
status_t result = DRM_ERROR_CANNOT_HANDLE;
//LOGD("onOpenDecryptSession: fd=%d, offset=%lld, length=%lld", fd, offset, length);
//ALOGD("onOpenDecryptSession: fd=%d, offset=%lld, length=%lld", fd, offset, length);
char buffer[64 * 1024];
int dupfd = dup(fd);
@@ -733,7 +733,7 @@ status_t WVMDrmPlugin::onOpenDecryptSession(
}
if (WV_IsWidevineMedia(buffer, sizeof(buffer))) {
//LOGD("WVMDrmPlugin::onOpenDecryptSession - WV_IsWidevineMedia: true");
//ALOGD("WVMDrmPlugin::onOpenDecryptSession - WV_IsWidevineMedia: true");
decryptHandle->mimeType = String8("video/wvm");
decryptHandle->decryptApiType = DecryptApiType::WV_BASED;
decryptHandle->status = DRM_NO_ERROR;
@@ -742,7 +742,7 @@ status_t WVMDrmPlugin::onOpenDecryptSession(
mDrmPluginImpl->OpenSession(NULL);
result = DRM_NO_ERROR;
} else {
//LOGD("WVMDrmPlugin::onOpenDecryptSession - not Widevine media");
//ALOGD("WVMDrmPlugin::onOpenDecryptSession - not Widevine media");
}
return result;
@@ -766,7 +766,7 @@ status_t WVMDrmPlugin::onOpenDecryptSession(
return result;
if (mDrmPluginImpl->IsSupportedMediaType(uri)) {
//LOGD("WVMDrmPlugin::onOpenDecryptSession(uri) : %d - match", uniqueId);
//ALOGD("WVMDrmPlugin::onOpenDecryptSession(uri) : %d - match", uniqueId);
decryptHandle->mimeType = String8("video/wvm");
decryptHandle->decryptApiType = DecryptApiType::WV_BASED;
decryptHandle->status = DRM_NO_ERROR;
@@ -776,7 +776,7 @@ status_t WVMDrmPlugin::onOpenDecryptSession(
result = DRM_NO_ERROR;
}
} else {
//LOGD("WVMDrmPlugin::onOpenDecryptSession(uri) - not Widevine media");
//ALOGD("WVMDrmPlugin::onOpenDecryptSession(uri) - not Widevine media");
}
return result;
@@ -792,7 +792,7 @@ status_t WVMDrmPlugin::onOpenDecryptSession(
* Returns DRM_NO_ERROR for success, DRM_ERROR_UNKNOWN for failure
*/
status_t WVMDrmPlugin::onCloseDecryptSession(int uniqueId, DecryptHandle* decryptHandle) {
//LOGD("WVMDrmPlugin::onCloseDecryptSession() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onCloseDecryptSession() : %d", uniqueId);
if (NULL != decryptHandle) {
if (NULL != decryptHandle->decryptInfo) {
delete decryptHandle->decryptInfo; decryptHandle->decryptInfo = NULL;
@@ -816,7 +816,7 @@ status_t WVMDrmPlugin::onCloseDecryptSession(int uniqueId, DecryptHandle* decryp
*/
status_t WVMDrmPlugin::onInitializeDecryptUnit(int uniqueId, DecryptHandle* decryptHandle,
int decryptUnitId, const DrmBuffer* headerInfo) {
//LOGD("WVMDrmPlugin::onInitializeDecryptUnit(): %d", uniqueId);
//ALOGD("WVMDrmPlugin::onInitializeDecryptUnit(): %d", uniqueId);
if (!mDrmPluginImpl->Prepare(headerInfo->data, headerInfo->length))
return DRM_ERROR_CANNOT_HANDLE;
@@ -844,7 +844,7 @@ status_t WVMDrmPlugin::onDecrypt(int uniqueId, DecryptHandle* decryptHandle, int
const DrmBuffer* encBuffer, DrmBuffer** decBuffer,
DrmBuffer *ivBuffer)
{
//LOGD("WVMDrmPlugin::onDecrypt\n");
//ALOGD("WVMDrmPlugin::onDecrypt\n");
#define AES_BLOCK_SIZE 16
char iv[AES_BLOCK_SIZE];
memcpy(iv, ivBuffer->data, sizeof(iv));
@@ -882,7 +882,7 @@ status_t WVMDrmPlugin::onDecrypt(int uniqueId, DecryptHandle* decryptHandle, int
*/
status_t WVMDrmPlugin::onFinalizeDecryptUnit(
int uniqueId, DecryptHandle* decryptHandle, int decryptUnitId) {
//LOGD("WVMDrmPlugin::onFinalizeDecryptUnit() : %d", uniqueId);
//ALOGD("WVMDrmPlugin::onFinalizeDecryptUnit() : %d", uniqueId);
return DRM_NO_ERROR;
}

View File

@@ -21,5 +21,5 @@
void android_printbuf(const char *buf)
{
LOGD("%s", buf);
ALOGD("%s", buf);
}