summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Huang <calhuang@google.com>2023-12-05 14:37:05 -0800
committerCalvin Huang <calhuang@google.com>2023-12-06 14:48:57 -0800
commit0a39f24be91480e154a3c06538c7881b035e69fe (patch)
tree8ddcf168c545b96f80ee7bdbaf0ebcada40dcf5f
parent2cb909a6798cae62415cefcc0d80f95176f27f78 (diff)
downloadcar-0a39f24be91480e154a3c06538c7881b035e69fe.tar.gz
Add basic skins for 3 presets
These skins only defined dimensions. 1. automotive_landscape 2. automotive_ultrawide 3. automotive_portrait Add extar margin in layouts so user can use it to move the emu. TODO: Add background/foregounds Bug: 315032735 Test: Add skin absolute path to config.ini then boots emu Change-Id: I92620006af0e4273b28fa0ec89911c3f107137b0
-rw-r--r--emulator/skins/automotive_landscape/layout38
-rw-r--r--emulator/skins/automotive_portrait/layout35
-rw-r--r--emulator/skins/automotive_ultrawide/layout35
3 files changed, 108 insertions, 0 deletions
diff --git a/emulator/skins/automotive_landscape/layout b/emulator/skins/automotive_landscape/layout
new file mode 100644
index 0000000..be1e1a8
--- /dev/null
+++ b/emulator/skins/automotive_landscape/layout
@@ -0,0 +1,38 @@
+# Copyright (C) 2023 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.
+#
+parts {
+ device {
+ display {
+ width 1408
+ height 792
+ }
+ }
+ landscape {
+ background {
+ image back.png
+ }
+ }
+}
+layouts {
+ landscape {
+ width 1500
+ height 837
+ part1 {
+ name device
+ x 50
+ y 30
+ }
+ }
+}
diff --git a/emulator/skins/automotive_portrait/layout b/emulator/skins/automotive_portrait/layout
new file mode 100644
index 0000000..a4c22b6
--- /dev/null
+++ b/emulator/skins/automotive_portrait/layout
@@ -0,0 +1,35 @@
+# Copyright (C) 2023 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.
+#
+parts {
+ device {
+ display {
+ width 1280
+ height 1606
+ x 0
+ y 0
+ }
+ }
+}
+layouts {
+ landscape {
+ width 1280
+ height 1650
+ part1 {
+ name device
+ x 0
+ y 0
+ }
+ }
+}
diff --git a/emulator/skins/automotive_ultrawide/layout b/emulator/skins/automotive_ultrawide/layout
new file mode 100644
index 0000000..6135b9f
--- /dev/null
+++ b/emulator/skins/automotive_ultrawide/layout
@@ -0,0 +1,35 @@
+# Copyright (C) 2023 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.
+#
+parts {
+ device {
+ display {
+ width 3904
+ height 1320
+ x 0
+ y 0
+ }
+ }
+}
+layouts {
+ landscape {
+ width 3904
+ height 1340
+ part1 {
+ name device
+ x 0
+ y 0
+ }
+ }
+}