• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 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 #pragma once
17 
18 #include <string>
19 
20 namespace clearkeydrm {
21 static const std::string kVendorKey("vendor");
22 static const std::string kVendorValue("Google");
23 static const std::string kVersionKey("version");
24 static const std::string kVersionValue("14"); // sync with Android OS version
25 static const std::string kPluginDescriptionKey("description");
26 static const std::string kPluginDescriptionValue("ClearKey CDM");
27 static const std::string kAlgorithmsKey("algorithms");
28 static const std::string kAlgorithmsValue("");
29 static const std::string kListenerTestSupportKey("listenerTestSupport");
30 static const std::string kListenerTestSupportValue("true");
31 static const std::string kDrmErrorTestKey("drmErrorTest");
32 static const std::string kDrmErrorTestValue("");
33 static const std::string kResourceContentionValue("resourceContention");
34 static const std::string kLostStateValue("lostState");
35 static const std::string kFrameTooLargeValue("frameTooLarge");
36 static const std::string kInvalidStateValue("invalidState");
37 static const std::string kAidlVersionKey("aidlVersion");
38 static const std::string kOemErrorKey("oemError");
39 static const std::string kErrorContextKey("errorContext");
40 
41 static const std::string kDeviceIdKey("deviceId");
42 static const uint8_t kTestDeviceIdData[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7,
43                                             0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf};
44 
45 // settable byte array property
46 static const std::string kClientIdKey("clientId");
47 
48 // TODO stub out metrics for nw
49 static const std::string kMetricsKey("metrics");
50 static const uint8_t kMetricsData[] = {0};
51 
52 }  // namespace clearkeydrm
53