127ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi/*
227ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * Copyright (C) 2010 The Android Open Source Project
327ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi *
427ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * Licensed under the Apache License, Version 2.0 (the "License");
527ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * you may not use this file except in compliance with the License.
627ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * You may obtain a copy of the License at
727ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi *
827ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi *      http://www.apache.org/licenses/LICENSE-2.0
927ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi *
1027ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * Unless required by applicable law or agreed to in writing, software
1127ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * distributed under the License is distributed on an "AS IS" BASIS,
1227ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1327ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * See the License for the specific language governing permissions and
1427ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi * limitations under the License.
1527ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi */
1627ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi
1727ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi#include <utils/String8.h>
1827ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi#include <drm/DrmInfoEvent.h>
1927ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi
2027ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshiusing namespace android;
2127ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi
2279cbc13ede26d08ab6633a042843a9d154c3c166Gloria WangDrmInfoEvent::DrmInfoEvent(int uniqueId, int infoType, const String8 message)
2327ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi    : mUniqueId(uniqueId),
2427ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi      mInfoType(infoType),
2527ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi      mMessage(message) {
2627ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi
2727ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi}
2827ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi
2927ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshiint DrmInfoEvent::getUniqueId() const {
3027ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi    return mUniqueId;
3127ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi}
3227ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi
3327ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshiint DrmInfoEvent::getType() const {
3427ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi    return mInfoType;
3527ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi}
3627ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi
3779cbc13ede26d08ab6633a042843a9d154c3c166Gloria Wangconst String8 DrmInfoEvent::getMessage() const {
3827ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi    return mMessage;
3927ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi}
4027ed8ad2db653f6ac07dcf8bcc05e2409c8bb024aimitakeshi
41