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_2 {
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.2");
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 static const std::string kDrmErrorTestKey("drmErrorTest");
39 static const std::string kDrmErrorTestValue("");
40 static const std::string kResourceContentionValue("resourceContention");
41 static const std::string kLostStateValue("lostState");
42 static const std::string kFrameTooLargeValue("frameTooLarge");
43 static const std::string kInvalidStateValue("invalidState");
44 
45 static const std::string kDeviceIdKey("deviceId");
46 static const uint8_t kTestDeviceIdData[] =
47         {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7,
48          0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf};
49 
50 // settable byte array property
51 static const std::string kClientIdKey("clientId");
52 
53 // TODO stub out metrics for nw
54 static const std::string kMetricsKey("metrics");
55 static const uint8_t kMetricsData[] = { 0 };
56 
57 } // namespace clearkey
58 } // namespace V1_2
59 } // namespace drm
60 } // namespace hardware
61 } // namespace android
62 
63 #endif // CLEARKEY_DRM_PROPERTIES_H_
64 
65