1231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu/* 2231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * Copyright 2015 The Android Open Source Project 3231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * 4231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * Licensed under the Apache License, Version 2.0 (the "License"); 5231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * you may not use this file except in compliance with the License. 6231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * You may obtain a copy of the License at 7231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * 8231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * http://www.apache.org/licenses/LICENSE-2.0 9231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * 10231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * Unless required by applicable law or agreed to in writing, software 11231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * distributed under the License is distributed on an "AS IS" BASIS, 12231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * See the License for the specific language governing permissions and 14231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu * limitations under the License. 15231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu */ 16231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 17231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 18231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu#ifndef ANDROID_MEDIA_RESOURCE_POLICY_H 19231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu#define ANDROID_MEDIA_RESOURCE_POLICY_H 20231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 21231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu#include <binder/Parcel.h> 22231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu#include <utils/String8.h> 23231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 24231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wunamespace android { 25231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 26231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wuextern const char kPolicySupportsMultipleSecureCodecs[]; 27231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wuextern const char kPolicySupportsSecureWithNonSecureCodec[]; 28231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 29231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wuclass MediaResourcePolicy { 30231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wupublic: 31231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu MediaResourcePolicy(); 329ba21b9418d10ddcc39f08901e24fbf43d82b2bcRonghua Wu MediaResourcePolicy(String8 type, String8 value); 33231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 34231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu void readFromParcel(const Parcel &parcel); 35231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu void writeToParcel(Parcel *parcel) const; 36231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 37231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu String8 toString() const; 38231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 39231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu String8 mType; 409ba21b9418d10ddcc39f08901e24fbf43d82b2bcRonghua Wu String8 mValue; 41231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu}; 42231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 43231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu}; // namespace android 44231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu 45231c3d169ad029689f9d688b68179af7e96b8d78Ronghua Wu#endif // ANDROID_MEDIA_RESOURCE_POLICY_H 46