1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef CLEARKEY_DRM_PROPERTIES_H_
18 #define CLEARKEY_DRM_PROPERTIES_H_
19 
20 #include <string.h>
21 
22 namespace android {
23 namespace hardware {
24 namespace drm {
25 namespace V1_1 {
26 namespace clearkey {
27 
28 static const std::string kVendorKey("vendor");
29 static const std::string kVendorValue("Google");
30 static const std::string kVersionKey("version");
31 static const std::string kVersionValue("1.1");
32 static const std::string kPluginDescriptionKey("description");
33 static const std::string kPluginDescriptionValue("ClearKey CDM");
34 static const std::string kAlgorithmsKey("algorithms");
35 static const std::string kAlgorithmsValue("");
36 static const std::string kListenerTestSupportKey("listenerTestSupport");
37 static const std::string kListenerTestSupportValue("true");
38 
39 static const std::string kDeviceIdKey("deviceId");
40 static const uint8_t kTestDeviceIdData[] =
41         {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7,
42          0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf};
43 // TODO stub out metrics for nw
44 static const std::string kMetricsKey("metrics");
45 static const uint8_t kMetricsData[] = { 0 };
46 
47 } // namespace clearkey
48 } // namespace V1_1
49 } // namespace drm
50 } // namespace hardware
51 } // namespace android
52 
53 #endif // CLEARKEY_DRM_PROPERTIES_H_
54 
55