summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Solano <csolano@gmail.com>2020-12-09 14:12:10 +0100
committerHemant Sharma <hemantbeast@gmail.com>2022-07-05 22:46:46 +0530
commitd354205e9637b4104bc2b0b388f2258eb99efa63 (patch)
treebe612492cf9c2eabafcf3fff76f146ddd19a9bbb
parentce6a9ab1767403745dfc62296e2843459e5cc537 (diff)
cheeseburger: Add hw keys overlays and PartsBin stuff
Change-Id: I22357660022b6f7c653831f66751dfde8f6f08a5
-rw-r--r--overlay-aicp/frameworks/base/core/res/res/values/config.xml14
-rw-r--r--overlay-aicp/frameworks/base/packages/SystemUI/res/values/dimens.xml31
-rw-r--r--overlay-aicp/packages/apps/PartsBin/res/values/config.xml25
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml56
4 files changed, 112 insertions, 14 deletions
diff --git a/overlay-aicp/frameworks/base/core/res/res/values/config.xml b/overlay-aicp/frameworks/base/core/res/res/values/config.xml
index ebedb68..253ed65 100644
--- a/overlay-aicp/frameworks/base/core/res/res/values/config.xml
+++ b/overlay-aicp/frameworks/base/core/res/res/values/config.xml
@@ -17,20 +17,6 @@
-->
<resources>
- <!-- Hardware keys present on the device, stored as a bit field.
- This integer should equal the sum of the corresponding value for each
- of the following keys present:
- 1 - Home
- 2 - Back
- 4 - Menu
- 8 - Assistant (search)
- 16 - App switch
- 32 - Camera
- 64 - Volume rocker
- For example, a device with Home, Back and Menu keys would set this
- config to 7. -->
- <integer name="config_deviceHardwareKeys">83</integer>
-
<bool name="config_audioPanelOnLeftSide">true</bool>
<!-- Support long press power for torch -->
diff --git a/overlay-aicp/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay-aicp/frameworks/base/packages/SystemUI/res/values/dimens.xml
new file mode 100644
index 0000000..817da17
--- /dev/null
+++ b/overlay-aicp/frameworks/base/packages/SystemUI/res/values/dimens.xml
@@ -0,0 +1,31 @@
+<?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="rounded_corner_content_padding">0dp</dimen>
+
+ <!-- Tri-state UI -->
+ <dimen name="tri_state_down_dialog_position">210.0px</dimen>
+ <dimen name="tri_state_down_dialog_position_l">215.375px</dimen>
+ <dimen name="tri_state_middle_dialog_position">105.0px</dimen>
+ <dimen name="tri_state_middle_dialog_position_l">225.375px</dimen>
+ <dimen name="tri_state_up_dialog_position">5.0px</dimen>
+ <dimen name="tri_state_up_dialog_position_l">240.375px</dimen>
+ <dimen name="tri_state_up_dialog_position_deep">21.0px</dimen>
+ <dimen name="tri_state_up_dialog_position_deep_land">21.0px</dimen>
+</resources>
+
diff --git a/overlay-aicp/packages/apps/PartsBin/res/values/config.xml b/overlay-aicp/packages/apps/PartsBin/res/values/config.xml
new file mode 100644
index 0000000..77c0ad0
--- /dev/null
+++ b/overlay-aicp/packages/apps/PartsBin/res/values/config.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2012 The Android Open Source Project
+ (C) 2015 The CyanogenMod Project
+ (C) 2017 The LineageOS 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.
+-->
+
+<!-- DeviceParts app resources that may need to be customized
+ for different hardware or product builds. -->
+<resources>
+
+ <!-- Whether device supports disabling hwkeys. Leave empty for not supported -->
+ <string name="pathHWKToggle">/proc/touchpanel/key_disable</string>
+
+</resources>
+
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..9e4bde8
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2013, The Android Open Source Project
+** Copyright 2018, Ground Zero Roms
+**
+** 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <!-- Hardware keys present on the device, stored as a bit field.
+ This integer should equal the sum of the corresponding value for each
+ of the following keys present:
+ 1 - Home
+ 2 - Back
+ 4 - Menu
+ 8 - Assistant (search)
+ 16 - App switch
+ 32 - Camera
+ 64 - Volume rocker
+ For example, a device with Home, Back and Menu keys would set this
+ config to 7. -->
+ <integer name="config_deviceHardwareKeys">83</integer>
+
+ <!-- Hardware keys present on the device with the ability to wake, stored as a bit field.
+ This integer should equal the sum of the corresponding value for each
+ of the following keys present:
+ 1 - Home
+ 2 - Back
+ 4 - Menu
+ 8 - Assistant (search)
+ 16 - App switch
+ 32 - Camera
+ 64 - Volume rocker
+ For example, a device with Home, Back and Menu keys would set this
+ config to 7. -->
+ <integer name="config_deviceHardwareWakeKeys">64</integer>
+
+ <bool name="config_button_brightness_support">true</bool>
+ <integer name="config_button_brightness_default">128</integer>
+
+ <!-- Internal default to navigation bar value -->
+ <bool name="config_defaultToNavigationBar">false</bool>
+</resources>