Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 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 | |
Manasi Navare | 3f0c01a | 2024-10-04 18:01:55 +0000 | [diff] [blame] | 17 | #include <drm/drm_mode.h> |
Sean Paul | 468a754 | 2024-07-16 19:50:58 +0000 | [diff] [blame] | 18 | #define LOG_TAG "drmhwc" |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 19 | |
Roman Stratiienko | 13cc366 | 2020-08-29 21:35:39 +0300 | [diff] [blame] | 20 | #include "DrmConnector.h" |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 21 | |
Roman Stratiienko | 13cc366 | 2020-08-29 21:35:39 +0300 | [diff] [blame] | 22 | #include <xf86drmMode.h> |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 23 | |
Roman Kovalivskyi | df88299 | 2019-11-04 17:43:40 +0200 | [diff] [blame] | 24 | #include <array> |
Roman Stratiienko | e2f2c92 | 2021-02-13 10:57:47 +0200 | [diff] [blame] | 25 | #include <cerrno> |
| 26 | #include <cstdint> |
Roman Kovalivskyi | df88299 | 2019-11-04 17:43:40 +0200 | [diff] [blame] | 27 | #include <sstream> |
| 28 | |
Roman Stratiienko | 13cc366 | 2020-08-29 21:35:39 +0300 | [diff] [blame] | 29 | #include "DrmDevice.h" |
Tim Van Patten | a2f3efa | 2024-10-15 17:44:54 -0600 | [diff] [blame^] | 30 | #include "compositor/DisplayInfo.h" |
Roman Stratiienko | d518a05 | 2021-02-25 19:15:14 +0200 | [diff] [blame] | 31 | #include "utils/log.h" |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 32 | |
Yongqin Liu | cdee4f2 | 2021-11-28 08:46:30 +0800 | [diff] [blame] | 33 | #ifndef DRM_MODE_CONNECTOR_SPI |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 34 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
Yongqin Liu | cdee4f2 | 2021-11-28 08:46:30 +0800 | [diff] [blame] | 35 | #define DRM_MODE_CONNECTOR_SPI 19 |
| 36 | #endif |
| 37 | |
| 38 | #ifndef DRM_MODE_CONNECTOR_USB |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 39 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
Yongqin Liu | cdee4f2 | 2021-11-28 08:46:30 +0800 | [diff] [blame] | 40 | #define DRM_MODE_CONNECTOR_USB 20 |
| 41 | #endif |
| 42 | |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 43 | namespace android { |
| 44 | |
Yongqin Liu | cdee4f2 | 2021-11-28 08:46:30 +0800 | [diff] [blame] | 45 | constexpr size_t kTypesCount = 21; |
Roman Kovalivskyi | e606a62 | 2019-11-25 19:13:05 +0200 | [diff] [blame] | 46 | |
Sasha McIntosh | 173247b | 2024-09-18 18:06:52 -0400 | [diff] [blame] | 47 | auto DrmConnector::GetConnectorProperty(const char *prop_name, |
| 48 | DrmProperty *property, |
| 49 | bool is_optional) -> bool { |
| 50 | auto err = drm_->GetProperty(GetId(), DRM_MODE_OBJECT_CONNECTOR, prop_name, |
| 51 | property); |
| 52 | if (err == 0) |
| 53 | return true; |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 54 | |
Sasha McIntosh | 173247b | 2024-09-18 18:06:52 -0400 | [diff] [blame] | 55 | if (is_optional) { |
| 56 | ALOGV("Could not get optional %s property from connector %d", prop_name, |
| 57 | GetId()); |
| 58 | } else { |
| 59 | ALOGE("Could not get %s property from connector %d", prop_name, GetId()); |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 60 | } |
Sasha McIntosh | 173247b | 2024-09-18 18:06:52 -0400 | [diff] [blame] | 61 | return false; |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | auto DrmConnector::CreateInstance(DrmDevice &dev, uint32_t connector_id, |
| 65 | uint32_t index) |
| 66 | -> std::unique_ptr<DrmConnector> { |
Roman Stratiienko | 7689278 | 2023-01-16 17:15:53 +0200 | [diff] [blame] | 67 | auto conn = MakeDrmModeConnectorUnique(*dev.GetFd(), connector_id); |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 68 | if (!conn) { |
| 69 | ALOGE("Failed to get connector %d", connector_id); |
| 70 | return {}; |
Sean Paul | 877be97 | 2015-06-03 14:08:27 -0400 | [diff] [blame] | 71 | } |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 72 | |
| 73 | auto c = std::unique_ptr<DrmConnector>( |
| 74 | new DrmConnector(std::move(conn), &dev, index)); |
| 75 | |
Sasha McIntosh | 173247b | 2024-09-18 18:06:52 -0400 | [diff] [blame] | 76 | if (!c->Init()) { |
| 77 | ALOGE("Failed to initialize connector %d", connector_id); |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 78 | return {}; |
| 79 | } |
| 80 | |
| 81 | return c; |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 82 | } |
| 83 | |
Sasha McIntosh | 173247b | 2024-09-18 18:06:52 -0400 | [diff] [blame] | 84 | auto DrmConnector::Init()-> bool { |
| 85 | if (!GetConnectorProperty("DPMS", &dpms_property_) || |
| 86 | !GetConnectorProperty("CRTC_ID", &crtc_id_property_)) { |
| 87 | return false; |
| 88 | } |
| 89 | |
| 90 | UpdateEdidProperty(); |
| 91 | |
| 92 | if (IsWriteback() && |
| 93 | (!GetConnectorProperty("WRITEBACK_PIXEL_FORMATS", |
| 94 | &writeback_pixel_formats_) || |
| 95 | !GetConnectorProperty("WRITEBACK_FB_ID", &writeback_fb_id_) || |
| 96 | !GetConnectorProperty("WRITEBACK_OUT_FENCE_PTR", |
| 97 | &writeback_out_fence_))) { |
| 98 | return false; |
| 99 | } |
| 100 | |
Sasha McIntosh | 5294f09 | 2024-09-18 18:14:54 -0400 | [diff] [blame] | 101 | if (GetConnectorProperty("Colorspace", &colorspace_property_, |
| 102 | /*is_optional=*/true)) { |
| 103 | colorspace_property_.AddEnumToMap("Default", Colorspace::kDefault, |
| 104 | colorspace_enum_map_); |
| 105 | colorspace_property_.AddEnumToMap("SMPTE_170M_YCC", Colorspace::kSmpte170MYcc, |
| 106 | colorspace_enum_map_); |
| 107 | colorspace_property_.AddEnumToMap("BT709_YCC", Colorspace::kBt709Ycc, |
| 108 | colorspace_enum_map_); |
| 109 | colorspace_property_.AddEnumToMap("XVYCC_601", Colorspace::kXvycc601, |
| 110 | colorspace_enum_map_); |
| 111 | colorspace_property_.AddEnumToMap("XVYCC_709", Colorspace::kXvycc709, |
| 112 | colorspace_enum_map_); |
| 113 | colorspace_property_.AddEnumToMap("SYCC_601", Colorspace::kSycc601, |
| 114 | colorspace_enum_map_); |
| 115 | colorspace_property_.AddEnumToMap("opYCC_601", Colorspace::kOpycc601, |
| 116 | colorspace_enum_map_); |
| 117 | colorspace_property_.AddEnumToMap("opRGB", Colorspace::kOprgb, |
| 118 | colorspace_enum_map_); |
| 119 | colorspace_property_.AddEnumToMap("BT2020_CYCC", Colorspace::kBt2020Cycc, |
| 120 | colorspace_enum_map_); |
| 121 | colorspace_property_.AddEnumToMap("BT2020_RGB", Colorspace::kBt2020Rgb, |
| 122 | colorspace_enum_map_); |
| 123 | colorspace_property_.AddEnumToMap("BT2020_YCC", Colorspace::kBt2020Ycc, |
| 124 | colorspace_enum_map_); |
| 125 | colorspace_property_.AddEnumToMap("DCI-P3_RGB_D65", Colorspace::kDciP3RgbD65, |
| 126 | colorspace_enum_map_); |
| 127 | colorspace_property_.AddEnumToMap("DCI-P3_RGB_Theater", Colorspace::kDciP3RgbTheater, |
| 128 | colorspace_enum_map_); |
| 129 | colorspace_property_.AddEnumToMap("RGB_WIDE_FIXED", Colorspace::kRgbWideFixed, |
| 130 | colorspace_enum_map_); |
| 131 | colorspace_property_.AddEnumToMap("RGB_WIDE_FLOAT", Colorspace::kRgbWideFloat, |
| 132 | colorspace_enum_map_); |
| 133 | colorspace_property_.AddEnumToMap("BT601_YCC", Colorspace::kBt601Ycc, |
| 134 | colorspace_enum_map_); |
| 135 | } |
| 136 | |
Sasha McIntosh | 173247b | 2024-09-18 18:06:52 -0400 | [diff] [blame] | 137 | GetConnectorProperty("content type", &content_type_property_, |
| 138 | /*is_optional=*/true); |
| 139 | |
Tim Van Patten | a2f3efa | 2024-10-15 17:44:54 -0600 | [diff] [blame^] | 140 | if (GetConnectorProperty("panel orientation", &panel_orientation_, |
| 141 | /*is_optional=*/true)) { |
| 142 | panel_orientation_ |
| 143 | .AddEnumToMapReverse("Normal", |
| 144 | PanelOrientation::kModePanelOrientationNormal, |
| 145 | panel_orientation_enum_map_); |
| 146 | panel_orientation_ |
| 147 | .AddEnumToMapReverse("Upside Down", |
| 148 | PanelOrientation::kModePanelOrientationBottomUp, |
| 149 | panel_orientation_enum_map_); |
| 150 | panel_orientation_ |
| 151 | .AddEnumToMapReverse("Left Side Up", |
| 152 | PanelOrientation::kModePanelOrientationLeftUp, |
| 153 | panel_orientation_enum_map_); |
| 154 | panel_orientation_ |
| 155 | .AddEnumToMapReverse("Right Side Up", |
| 156 | PanelOrientation::kModePanelOrientationRightUp, |
| 157 | panel_orientation_enum_map_); |
| 158 | } |
| 159 | |
Sasha McIntosh | 173247b | 2024-09-18 18:06:52 -0400 | [diff] [blame] | 160 | return true; |
| 161 | } |
| 162 | |
Andrii Chepurnyi | adc5d82 | 2020-07-10 16:07:03 +0300 | [diff] [blame] | 163 | int DrmConnector::UpdateEdidProperty() { |
Sasha McIntosh | 173247b | 2024-09-18 18:06:52 -0400 | [diff] [blame] | 164 | return GetConnectorProperty("EDID", &edid_property_, /*is_optional=*/true) |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 165 | ? 0 |
| 166 | : -EINVAL; |
Andrii Chepurnyi | adc5d82 | 2020-07-10 16:07:03 +0300 | [diff] [blame] | 167 | } |
| 168 | |
Roman Stratiienko | 3e8ce57 | 2021-09-29 12:46:28 +0300 | [diff] [blame] | 169 | auto DrmConnector::GetEdidBlob() -> DrmModePropertyBlobUnique { |
Roman Stratiienko | abd8e53 | 2022-12-06 23:31:33 +0200 | [diff] [blame] | 170 | auto ret = UpdateEdidProperty(); |
Roman Stratiienko | 3e8ce57 | 2021-09-29 12:46:28 +0300 | [diff] [blame] | 171 | if (ret != 0) { |
Roman Stratiienko | 780f7da | 2022-01-10 16:04:15 +0200 | [diff] [blame] | 172 | return {}; |
Andrii Chepurnyi | adc5d82 | 2020-07-10 16:07:03 +0300 | [diff] [blame] | 173 | } |
| 174 | |
Roman Stratiienko | abd8e53 | 2022-12-06 23:31:33 +0200 | [diff] [blame] | 175 | auto blob_id = GetEdidProperty().GetValue(); |
| 176 | if (!blob_id) { |
Roman Stratiienko | 780f7da | 2022-01-10 16:04:15 +0200 | [diff] [blame] | 177 | return {}; |
Andrii Chepurnyi | adc5d82 | 2020-07-10 16:07:03 +0300 | [diff] [blame] | 178 | } |
| 179 | |
Roman Stratiienko | 7689278 | 2023-01-16 17:15:53 +0200 | [diff] [blame] | 180 | return MakeDrmModePropertyBlobUnique(*drm_->GetFd(), *blob_id); |
Andrii Chepurnyi | adc5d82 | 2020-07-10 16:07:03 +0300 | [diff] [blame] | 181 | } |
| 182 | |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 183 | bool DrmConnector::IsInternal() const { |
| 184 | auto type = connector_->connector_type; |
Lingkai Dong | 63ed807 | 2023-10-06 15:45:45 +0100 | [diff] [blame] | 185 | return type == DRM_MODE_CONNECTOR_Unknown || |
| 186 | type == DRM_MODE_CONNECTOR_LVDS || type == DRM_MODE_CONNECTOR_eDP || |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 187 | type == DRM_MODE_CONNECTOR_DSI || type == DRM_MODE_CONNECTOR_VIRTUAL || |
| 188 | type == DRM_MODE_CONNECTOR_DPI || type == DRM_MODE_CONNECTOR_SPI; |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 189 | } |
| 190 | |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 191 | bool DrmConnector::IsExternal() const { |
| 192 | auto type = connector_->connector_type; |
| 193 | return type == DRM_MODE_CONNECTOR_HDMIA || |
| 194 | type == DRM_MODE_CONNECTOR_DisplayPort || |
| 195 | type == DRM_MODE_CONNECTOR_DVID || type == DRM_MODE_CONNECTOR_DVII || |
| 196 | type == DRM_MODE_CONNECTOR_VGA || type == DRM_MODE_CONNECTOR_USB; |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 197 | } |
| 198 | |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 199 | bool DrmConnector::IsWriteback() const { |
Alexandru Gheorghe | 364f957 | 2018-03-21 11:40:01 +0000 | [diff] [blame] | 200 | #ifdef DRM_MODE_CONNECTOR_WRITEBACK |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 201 | return connector_->connector_type == DRM_MODE_CONNECTOR_WRITEBACK; |
Alexandru Gheorghe | 364f957 | 2018-03-21 11:40:01 +0000 | [diff] [blame] | 202 | #else |
| 203 | return false; |
| 204 | #endif |
| 205 | } |
| 206 | |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 207 | bool DrmConnector::IsValid() const { |
| 208 | return IsInternal() || IsExternal() || IsWriteback(); |
Robert Foss | 610d989 | 2017-11-01 12:50:04 -0500 | [diff] [blame] | 209 | } |
| 210 | |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 211 | std::string DrmConnector::GetName() const { |
Roman Stratiienko | e2f2c92 | 2021-02-13 10:57:47 +0200 | [diff] [blame] | 212 | constexpr std::array<const char *, kTypesCount> kNames = |
Yongqin Liu | cdee4f2 | 2021-11-28 08:46:30 +0800 | [diff] [blame] | 213 | {"None", "VGA", "DVI-I", "DVI-D", "DVI-A", "Composite", |
| 214 | "SVIDEO", "LVDS", "Component", "DIN", "DP", "HDMI-A", |
| 215 | "HDMI-B", "TV", "eDP", "Virtual", "DSI", "DPI", |
| 216 | "Writeback", "SPI", "USB"}; |
Roman Kovalivskyi | df88299 | 2019-11-04 17:43:40 +0200 | [diff] [blame] | 217 | |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 218 | if (connector_->connector_type < kTypesCount) { |
Roman Kovalivskyi | d6a6e6e | 2019-11-25 19:17:53 +0200 | [diff] [blame] | 219 | std::ostringstream name_buf; |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 220 | name_buf << kNames[connector_->connector_type] << "-" |
| 221 | << connector_->connector_type_id; |
Roman Kovalivskyi | d6a6e6e | 2019-11-25 19:17:53 +0200 | [diff] [blame] | 222 | return name_buf.str(); |
Roman Kovalivskyi | d6a6e6e | 2019-11-25 19:17:53 +0200 | [diff] [blame] | 223 | } |
Roman Stratiienko | e2f2c92 | 2021-02-13 10:57:47 +0200 | [diff] [blame] | 224 | |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 225 | ALOGE("Unknown type in connector %d, could not make his name", GetId()); |
Roman Stratiienko | e2f2c92 | 2021-02-13 10:57:47 +0200 | [diff] [blame] | 226 | return "None"; |
Roman Kovalivskyi | df88299 | 2019-11-04 17:43:40 +0200 | [diff] [blame] | 227 | } |
| 228 | |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 229 | int DrmConnector::UpdateModes() { |
Roman Stratiienko | 7689278 | 2023-01-16 17:15:53 +0200 | [diff] [blame] | 230 | auto conn = MakeDrmModeConnectorUnique(*drm_->GetFd(), GetId()); |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 231 | if (!conn) { |
| 232 | ALOGE("Failed to get connector %d", GetId()); |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 233 | return -ENODEV; |
| 234 | } |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 235 | connector_ = std::move(conn); |
Roman Stratiienko | ad29ee9 | 2022-01-17 18:44:22 +0200 | [diff] [blame] | 236 | |
Roman Stratiienko | a148f21 | 2021-11-16 18:23:18 +0200 | [diff] [blame] | 237 | modes_.clear(); |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 238 | for (int i = 0; i < connector_->count_modes; ++i) { |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 239 | bool exists = false; |
Zach Reizner | ff30b52 | 2015-10-28 19:08:45 -0700 | [diff] [blame] | 240 | for (const DrmMode &mode : modes_) { |
Roman Stratiienko | 650299a | 2022-01-30 23:46:10 +0200 | [diff] [blame] | 241 | if (mode == connector_->modes[i]) { |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 242 | exists = true; |
| 243 | break; |
| 244 | } |
| 245 | } |
Roman Stratiienko | a148f21 | 2021-11-16 18:23:18 +0200 | [diff] [blame] | 246 | |
Andrii Chepurnyi | 1b1e35e | 2019-02-19 21:38:13 +0200 | [diff] [blame] | 247 | if (!exists) { |
Roman Stratiienko | a7913de | 2022-10-20 13:18:57 +0300 | [diff] [blame] | 248 | modes_.emplace_back(&connector_->modes[i]); |
Andrii Chepurnyi | 1b1e35e | 2019-02-19 21:38:13 +0200 | [diff] [blame] | 249 | } |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 250 | } |
Roman Stratiienko | a148f21 | 2021-11-16 18:23:18 +0200 | [diff] [blame] | 251 | |
Sean Paul | 6a55e9f | 2015-04-30 15:31:06 -0400 | [diff] [blame] | 252 | return 0; |
| 253 | } |
| 254 | |
Manasi Navare | 3f0c01a | 2024-10-04 18:01:55 +0000 | [diff] [blame] | 255 | bool DrmConnector::IsLinkStatusGood() { |
| 256 | if (GetConnectorProperty("link-status", &link_status_property_, false)) { |
| 257 | auto link_status_property_value = link_status_property_.GetValue(); |
| 258 | if (link_status_property_value && |
| 259 | (link_status_property_value == DRM_MODE_LINK_STATUS_BAD)) |
| 260 | return false; |
| 261 | } |
| 262 | |
| 263 | return true; |
| 264 | } |
Tim Van Patten | a2f3efa | 2024-10-15 17:44:54 -0600 | [diff] [blame^] | 265 | |
| 266 | std::optional<PanelOrientation> DrmConnector::GetPanelOrientation() { |
| 267 | if (!panel_orientation_.GetValue().has_value()) { |
| 268 | ALOGW("No panel orientation property available."); |
| 269 | return {}; |
| 270 | } |
| 271 | |
| 272 | /* The value_or(0) satisfies the compiler warning. However, |
| 273 | * panel_orientation_.GetValue() is guaranteed to have a value since we check |
| 274 | * has_value() and return early otherwise. |
| 275 | */ |
| 276 | uint64_t panel_orientation_value = panel_orientation_.GetValue().value_or(0); |
| 277 | |
| 278 | if (panel_orientation_enum_map_.count(panel_orientation_value) == 1) { |
| 279 | return panel_orientation_enum_map_[panel_orientation_value]; |
| 280 | } |
| 281 | |
| 282 | ALOGE("Unknown panel orientation: panel_orientation = %lu", |
| 283 | panel_orientation_value); |
| 284 | return {}; |
| 285 | } |
| 286 | |
Sean Paul | f72cccd | 2018-08-27 13:59:08 -0400 | [diff] [blame] | 287 | } // namespace android |