Browse Source

cupid: overlay: Add physical button/sensor locations

Bug: 181020504
Change-Id: Ifb45b7daeb07246dbc3a80c36c21e40ead87e674
Test: these were physically measured on device
Josh Tsuji 4 years ago
parent
commit
b1b2b1db0a
1 changed files with 11 additions and 1 deletions
  1. 11 1
      overlay/SystemUI/res/values/dimens.xml

+ 11 - 1
overlay/SystemUI/res/values/dimens.xml

@@ -1,9 +1,19 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
-     Copyright (C) 2022 The LineageOS Project
+     Copyright (C) 2022-2024 The LineageOS Project
      SPDX-License-Identifier: Apache-2.0
 -->
 <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
     <dimen name="rounded_corner_content_padding">52.0px</dimen>
     <dimen name="keyguard_indication_margin_bottom">4dp</dimen>
+
+    <!-- Location on the screen of the center of the physical power button. This is a reasonable
+    default that should be overridden by device-specific overlays. -->
+    <dimen name="physical_power_button_center_screen_location_y">995px</dimen>
+
+    <!-- Location on the screen of the center of the fingerprint sensor. For devices with under
+     display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
+     For devices with sensors on the back of the device, this corresponds to the location on the
+     screen directly in front of the sensor. -->
+    <dimen name="physical_fingerprint_sensor_center_screen_location_y">2163px</dimen>
 </resources>