summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorHeemin Seog <hseog@google.com>2019-05-07 17:03:42 -0700
committerHeemin Seog <hseog@google.com>2019-05-08 15:38:26 -0700
commit3e82bd5bd3d4eaafc131c7c596127ddab385ba7f (patch)
tree04f3d572e47da1c642efc2a5d182178cbc2a22dc /res
parent36454356ed1256745041705d33fe6493fb121aaf (diff)
downloadandroid_packages_apps_PackageInstaller-3e82bd5bd3d4eaafc131c7c596127ddab385ba7f.tar.gz
android_packages_apps_PackageInstaller-3e82bd5bd3d4eaafc131c7c596127ddab385ba7f.tar.bz2
android_packages_apps_PackageInstaller-3e82bd5bd3d4eaafc131c7c596127ddab385ba7f.zip
Add ability to hide certain roles and overlay car resources
Bug: 130348508 Test: manual Change-Id: Iec392e459c7e9d863050a9e9d12b2720c034c2dd
Diffstat (limited to 'res')
-rw-r--r--res/values/config.xml22
-rw-r--r--res/values/overlayable.xml25
2 files changed, 47 insertions, 0 deletions
diff --git a/res/values/config.xml b/res/values/config.xml
new file mode 100644
index 00000000..9c26d3ea
--- /dev/null
+++ b/res/values/config.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright 2019 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>
+ <bool name="config_showBrowserRole">true</bool>
+ <bool name="config_showDialerRole">true</bool>
+ <bool name="config_showSmsRole">true</bool>
+</resources>
diff --git a/res/values/overlayable.xml b/res/values/overlayable.xml
index b55187da..7f8370c0 100644
--- a/res/values/overlayable.xml
+++ b/res/values/overlayable.xml
@@ -227,6 +227,31 @@
<item type="style" name="PermissionDialog" />
<!-- END THEMES -->
+ <!-- START VISIBILITY CONFIGS -->
+ <!-- Assistant role uses: config_showDefaultAssistant -->
+ <!-- Home role uses: config_showDefaultHome -->
+ <!-- Emergency role uses: config_showDefaultEmergency -->
+ <item type="bool" name="config_showBrowserRole" />
+ <item type="bool" name="config_showDialerRole" />
+ <item type="bool" name="config_showSmsRole" />
+ <!-- END VISIBILITY CONFIGS -->
+
+ <!-- START CAR DIMENS -->
+ <item type="dimen" name="car_action_bar_height" />
+ <item type="dimen" name="car_margin" />
+ <item type="dimen" name="car_icon_size" />
+ <!-- END CAR DIMENS -->
+
+ <!-- START CAR STYLES -->
+ <item type="style" name="CarPreferenceFragment" />
+ <item type="style" name="CarPreferenceFragmentList" />
+ <!-- END CAR STYLES -->
+
+ <!-- START CAR THEMES -->
+ <item type="style" name="CarSettings" />
+ <item type="style" name="CarPreferenceTheme" />
+ <!-- END CAR THEMES -->
+
</policy>
</overlayable>