OSDN Git Service

Add visibility config for assistant, home and emergency role.
authorHai Zhang <zhanghai@google.com>
Tue, 19 Feb 2019 21:00:59 +0000 (13:00 -0800)
committerHai Zhang <zhanghai@google.com>
Tue, 19 Feb 2019 21:11:22 +0000 (13:11 -0800)
Default assistant, home and emergency could be hidden from users, so
keep this ability when we migrate to roles.

Bug: 124452117
Bug: 124260975
Test: manual
Change-Id: I8408c6eb56e39f2dc7b38e61d27418efcba9010a

api/system-current.txt
core/res/res/values/config.xml
core/res/res/values/public.xml

index 128ee99..b6d513d 100644 (file)
@@ -216,6 +216,9 @@ package android {
 
   public static final class R.bool {
     field public static final int config_sendPackageName = 17891328; // 0x1110000
+    field public static final int config_showDefaultAssistant = 17891329; // 0x1110001
+    field public static final int config_showDefaultEmergency = 17891330; // 0x1110002
+    field public static final int config_showDefaultHome = 17891331; // 0x1110003
   }
 
   public static final class R.color {
index e65e7da..6571cd2 100644 (file)
 
     <!-- The name of the package that will hold the assistant role by default. -->
     <string name="config_defaultAssistant" translatable="false" />
+    <!-- Whether the default assistant settings should be shown. -->
+    <bool name="config_showDefaultAssistant">true</bool>
     <!-- The name of the package that will hold the browser role by default. -->
     <string name="config_defaultBrowser" translatable="false">@string/default_browser</string>
     <!-- The name of the package that will hold the dialer role by default. -->
     <string name="config_defaultDialer" translatable="false">com.android.phone</string>
     <!-- The name of the package that will hold the SMS role by default. -->
     <string name="config_defaultSms" translatable="false">@string/default_sms_application</string>
+    <!-- Whether the default emergency settings should be shown. -->
+    <bool name="config_showDefaultEmergency">false</bool>
+    <!-- Whether the default home settings should be shown. -->
+    <bool name="config_showDefaultHome">true</bool>
     <!-- The name of the package that will hold the music role by default. -->
     <string name="config_defaultMusic" translatable="false">com.android.music</string>
     <!-- The name of the package that will hold the gallery role by default. -->
index 3580dd4..e1ce2f6 100644 (file)
     <public-group type="bool" first-id="0x01110000">
         <!-- @hide @SystemApi -->
         <public name="config_sendPackageName" />
+      <!-- @hide @SystemApi -->
+      <public name="config_showDefaultAssistant" />
+      <!-- @hide @SystemApi -->
+      <public name="config_showDefaultEmergency" />
+      <!-- @hide @SystemApi -->
+      <public name="config_showDefaultHome" />
     </public-group>
 
     <public-group type="dimen" first-id="0x01050007">