File: flex_hwis.h

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (68 lines) | stat: -rw-r--r-- 3,265 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright 2024 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SYSTEM_API_CONSTANTS_FLEX_HWIS_H_
#define SYSTEM_API_CONSTANTS_FLEX_HWIS_H_

namespace flex_hwis {

// There are several places where we pass key-value (string-string) pairs of
// hardware data for surfacing to SWEs/QE/(T)P(g)Ms. We'd like the formatting
// and handling to be consistent. This header provides consistent key names and
// a shared storage location. See platform2/flex_hwis for additional details.

// Leave off the initial '/' because many projects do testing injection with
// base::FilePath.Append which doesn't like absolute paths.
inline constexpr char kFlexHardwareCacheDir[] = "run/flex_hardware/";

inline constexpr char kFlexProductNameKey[] = "chromeosflex_product_name";
inline constexpr char kFlexProductVendorKey[] = "chromeosflex_product_vendor";
inline constexpr char kFlexProductVersionKey[] = "chromeosflex_product_version";

inline constexpr char kFlexTotalMemoryKey[] = "chromeosflex_total_memory";

inline constexpr char kFlexBiosVersionKey[] = "chromeosflex_bios_version";
inline constexpr char kFlexSecurebootKey[] = "chromeosflex_secureboot";
inline constexpr char kFlexUefiKey[] = "chromeosflex_uefi";

inline constexpr char kFlexCpuNameKey[] = "chromeosflex_cpu_name";

inline constexpr char kFlexBluetoothDriverKey[] =
    "chromeosflex_bluetooth_driver";
inline constexpr char kFlexBluetoothIdKey[] = "chromeosflex_bluetooth_id";
inline constexpr char kFlexBluetoothNameKey[] = "chromeosflex_bluetooth_name";

inline constexpr char kFlexEthernetDriverKey[] = "chromeosflex_ethernet_driver";
inline constexpr char kFlexEthernetIdKey[] = "chromeosflex_ethernet_id";
inline constexpr char kFlexEthernetNameKey[] = "chromeosflex_ethernet_name";

inline constexpr char kFlexWirelessDriverKey[] = "chromeosflex_wireless_driver";
inline constexpr char kFlexWirelessIdKey[] = "chromeosflex_wireless_id";
inline constexpr char kFlexWirelessNameKey[] = "chromeosflex_wireless_name";

inline constexpr char kFlexGpuDriverKey[] = "chromeosflex_gpu_driver";
inline constexpr char kFlexGpuIdKey[] = "chromeosflex_gpu_id";
inline constexpr char kFlexGpuNameKey[] = "chromeosflex_gpu_name";

inline constexpr char kFlexGlExtensionsKey[] = "chromeosflex_gl_extensions";
inline constexpr char kFlexGlRendererKey[] = "chromeosflex_gl_renderer";
inline constexpr char kFlexGlShadingVersionKey[] =
    "chromeosflex_gl_shading_version";
inline constexpr char kFlexGlVendorKey[] = "chromeosflex_gl_vendor";
inline constexpr char kFlexGlVersionKey[] = "chromeosflex_gl_version";

inline constexpr char kFlexTpmAllowListedKey[] =
    "chromeosflex_tpm_allow_listed";
inline constexpr char kFlexTpmDidVidKey[] = "chromeosflex_tpm_did_vid";
inline constexpr char kFlexTpmManufacturerKey[] =
    "chromeosflex_tpm_manufacturer";
inline constexpr char kFlexTpmOwnedKey[] = "chromeosflex_tpm_owned";
inline constexpr char kFlexTpmSpecLevelKey[] = "chromeosflex_tpm_spec_level";
inline constexpr char kFlexTpmVersionKey[] = "chromeosflex_tpm_version";

inline constexpr char kFlexTouchpadStackKey[] = "chromeosflex_touchpad";

}  // namespace flex_hwis

#endif  // SYSTEM_API_CONSTANTS_FLEX_HWIS_H_