diff options
author | Ramii Ahmed <ramy@ahmedramy.com> | 2022-04-30 19:00:20 +0000 |
---|---|---|
committer | Ramii Ahmed <ramy@ahmedramy.com> | 2022-05-23 17:19:30 +0000 |
commit | c1570cd3da3b10fa7c2da8bef6f8512d99e12c23 (patch) | |
tree | 10efbf067c511de44d90fd4014736f16a95374b5 /overlay/frameworks | |
parent | f36bb66a1b6b6140f2c753154b87d98b94013cb3 (diff) |
veux: overlay: We got fingerprint on power button
Diffstat (limited to 'overlay/frameworks')
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 3 | ||||
-rw-r--r-- | overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml | 37 |
2 files changed, 40 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 1860b2c..a63f7bf 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -353,4 +353,7 @@ <!-- If true, the display will be shifted around in ambient mode. --> <bool name="config_enableBurnInProtection">true</bool> + <!-- Indicates whether device has a power button fingerprint sensor. --> + <bool name="config_is_powerbutton_fps" translatable="false" >true</bool> + </resources> diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml new file mode 100644 index 0000000..60abc46 --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2006, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ +--> +<resources> + + <!-- 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. + By default, this is set to @null to use the horizontal center of the screen. --> + <dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</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">1030px</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">@dimen/physical_power_button_center_screen_location_y</dimen> + +</resources> |