summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Lin <shawnlin@google.com>2022-12-01 07:34:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-12-01 07:34:42 +0000
commit6fefe18bb24c29c7ffe9106cc53f6df65ed82543 (patch)
treeeeab7cfc9e431d33b66d57c753123f6449be7215
parent27491b946b9a1f95024ab57618f46a507c81efed (diff)
parent16954c5c131dbad7cdbc95c8c59a4877e8fec236 (diff)
downloadbramble-6fefe18bb24c29c7ffe9106cc53f6df65ed82543.tar.gz
Merge "Add display shape config"
-rwxr-xr-xbramble/overlay/frameworks/base/core/res/res/values/config.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/bramble/overlay/frameworks/base/core/res/res/values/config.xml b/bramble/overlay/frameworks/base/core/res/res/values/config.xml
index 7099d5e..123a7f6 100755
--- a/bramble/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/bramble/overlay/frameworks/base/core/res/res/values/config.xml
@@ -245,4 +245,17 @@
<!-- the number of the max cached processes in the system. -->
<integer name="config_customizedMaxCachedProcesses">64</integer>
+
+ <!-- A string config in svg path format for the main display shape.
+ (@see https://www.w3.org/TR/SVG/paths.html#PathData).
+
+ This config must be set unless:
+ 1. {@link Configuration#isScreenRound} is true which means the display shape is circular
+ and the system will auto-generate a circular shape.
+ 2. The display has no rounded corner and the system will auto-generate a rectangular shape.
+ (@see DisplayShape#createDefaultDisplayShape)
+
+ Note: If the display supports multiple resolutions, please define the path config based on
+ the highest resolution so that it can be scaled correctly in each resolution. -->
+ <string name="config_mainDisplayShape">M 202 0 C 186.538 -1.8503699e-17 171.07633 -0.0090768392 155.2832 0.11132812 C 139.48005 0.22169933 123.3246 0.3920003 107.74219 1.1445312 C 76.567319 2.6295259 48.974256 6.141255 27.572266 27.533203 C 22.214242 32.881191 17.529428 39.351842 14.308594 45.261719 C 11.097793 51.161562 8.6690884 57.493843 6.8730469 64.15625 C 3.2809639 77.4911 2.0764819 92.3107 1.3339844 107.87305 C 0.59148674 123.43538 0.33073003 139.58996 0.16015625 155.37305 C -0.010417528 171.14609 3.700736e-17 186.57814 0 202 L 0 2339.8496 L 0.0390625 2102 C 0.0390625 2122.8 0.03039087 2143.7497 0.15039062 2163.0195 C 0.25039044 2180.8795 0.37929814 2197.1803 1.0292969 2212.5703 L 1.0292969 2212.7207 C 1.0792967 2213.8907 1.1294533 2215.0492 1.1894531 2216.1992 C 1.9794515 2232.6592 3.4601652 2248.5005 7.9101562 2263.7305 C 9.020154 2267.5405 10.320082 2271.2909 11.830078 2274.9609 C 13.340076 2278.6209 14.920318 2281.9495 17.070312 2285.7695 C 21.370304 2293.4095 26.799387 2300.5999 33.109375 2306.9199 C 39.429363 2313.2299 46.61978 2318.6609 54.259766 2322.9609 C 54.669764 2323.1909 55.080236 2323.4206 55.490234 2323.6406 C 67.58021 2330.2206 81.009714 2334.0106 94.679688 2336.1406 C 99.359678 2336.8706 104.06986 2337.4194 108.83984 2337.8594 C 113.76984 2338.2994 118.76055 2338.5996 123.81055 2338.8496 C 125.94053 2338.9496 128.08 2339.0391 130.25 2339.1191 C 132.49 2339.1991 134.73953 2339.2701 137.01953 2339.3301 C 146.43951 2339.5901 156.30066 2339.7303 166.64062 2339.8203 C 170.03062 2339.8503 173.48025 2339.8706 176.99023 2339.8906 C 196.26021 2340.0106 217.20004 2340 238 2340 L 842 2340 C 862.79996 2340 883.73979 2340.0106 903.00977 2339.8906 C 906.51975 2339.8706 909.96938 2339.8503 913.35938 2339.8203 C 923.69934 2339.7303 933.56049 2339.5901 942.98047 2339.3301 C 945.26047 2339.2701 947.51 2339.1991 949.75 2339.1191 C 951.92 2339.0391 954.05947 2338.9496 956.18945 2338.8496 C 961.23945 2338.5996 966.23016 2338.2994 971.16016 2337.8594 C 975.93014 2337.4194 980.64033 2336.8706 985.32031 2336.1406 C 998.99029 2334.0106 1012.4198 2330.2206 1024.5098 2323.6406 C 1024.9198 2323.4206 1025.3302 2323.1909 1025.7402 2322.9609 C 1033.3802 2318.6609 1040.5706 2313.2299 1046.8906 2306.9199 C 1053.2006 2300.5999 1058.6297 2293.4095 1062.9297 2285.7695 C 1065.0797 2281.9495 1066.6599 2278.6209 1068.1699 2274.9609 C 1069.6799 2271.2909 1070.9798 2267.5405 1072.0898 2263.7305 C 1076.5398 2248.5005 1078.0205 2232.6592 1078.8105 2216.1992 C 1078.8705 2215.0492 1078.9207 2213.8907 1078.9707 2212.7207 L 1078.9707 2212.5703 C 1079.6207 2197.1803 1079.7496 2180.8795 1079.8496 2163.0195 C 1079.9696 2143.7497 1079.9609 2122.8 1079.9609 2102 L 1080 2339.8496 L 1080 202 C 1080 186.57814 1080.0103 171.14609 1079.8398 155.37305 C 1079.6692 139.58996 1079.4085 123.43538 1078.666 107.87305 C 1077.9235 92.310708 1076.7189 77.491094 1073.127 64.15625 C 1071.3309 57.493834 1068.9022 51.161567 1065.6914 45.261719 C 1062.4706 39.351841 1057.7857 32.881183 1052.4277 27.533203 C 1031.0259 6.1412555 1003.4327 2.6295284 972.25781 1.1445312 C 956.6754 0.3920028 940.51995 0.2216979 924.7168 0.11132812 C 908.92367 -0.0090416292 893.462 0 878 0 L 202 0 z M 1080 2339.8496 L 842 2340 L 1080 2340 L 1080 2339.8496 z M 238 2340 L 0 2339.8496 L 0 2340 L 238 2340 z</string>
</resources>