Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare config_is_powerbutton_fps for Infinix Note 30 #114

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 34 additions & 4 deletions Infinix/Note30-SystemUI/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
<?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>
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080.0px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_y">1130.0px</dimen>
<dimen name="physical_power_button_center_screen_location_y">1130.0px</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.
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 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">1130px</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">@dimen/physical_fingerprint_sensor_center_screen_location_y</dimen>

<dimen name="rounded_corner_content_padding">55px</dimen>
<dimen name="status_bar_padding_start">0px</dimen>
<dimen name="status_bar_padding_end">0px</dimen>
<dimen name="status_bar_padding_start">0px</dimen>
</resources>
1 change: 1 addition & 0 deletions Infinix/Note30/res/values/bools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_is_powerbutton_fps">true</bool>
</resources>
38 changes: 34 additions & 4 deletions Infinix/Note30Pro-SystemUI/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
<?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>
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080.0px</dimen>
<dimen name="physical_fingerprint_sensor_center_screen_location_y">1140.0px</dimen>
<dimen name="physical_power_button_center_screen_location_y">1140.0px</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.
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 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">1140px</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">@dimen/physical_fingerprint_sensor_center_screen_location_y</dimen>

<dimen name="rounded_corner_content_padding">55px</dimen>
<dimen name="status_bar_padding_start">0px</dimen>
<dimen name="status_bar_padding_end">0px</dimen>
<dimen name="status_bar_padding_start">0px</dimen>
</resources>
2 changes: 1 addition & 1 deletion Infinix/Note30Pro/res/values/bools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_is_powerbutton_fps">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_is_powerbutton_fps">true</bool>
</resources>
Loading