OSDN Git Service

Merge "Cleanup background activity starts for release." into qt-dev
authorAlan Stokes <alanstokes@google.com>
Tue, 4 Jun 2019 14:26:29 +0000 (14:26 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Tue, 4 Jun 2019 14:26:29 +0000 (14:26 +0000)
1  2 
res/values/strings.xml
res/xml/development_settings.xml
src/com/android/settings/development/DevelopmentSettingsDashboardFragment.java

diff --combined res/values/strings.xml
      <!-- Title for the accessibility preference screen to enable triple-tap gesture screen magnification. [CHAR LIMIT=35] -->
      <string name="accessibility_screen_magnification_gestures_title">Magnify with triple-tap</string>
      <!-- Title for the accessibility preference screen to enable navigation bar screen magnification. [CHAR LIMIT=35] -->
 -    <string name="accessibility_screen_magnification_navbar_title">Magnify with button</string>
 +    <string name="accessibility_screen_magnification_navbar_title">Magnify with shortcut</string>
      <!-- Summary for the accessibility magnification setting indicating both "Magnify with button" and "Magnify with triple-tap" are enabled [CHAR LIMIT=50] -->
 -    <string name="accessibility_screen_magnification_state_navbar_gesture">Magnify with button &amp; triple-tap</string>
 +    <string name="accessibility_screen_magnification_state_navbar_gesture">Magnify with shortcut &amp; triple-tap</string>
      <!-- Summary for the accessibility preference to enable screen magnification. [CHAR LIMIT=25] -->
      <string name="accessibility_preference_magnification_summary">Zoom in on screen</string>
      <!-- Short summary for Magnification gesture. Tells the user that this feature allows the user to magnify the screen by tapping 3 times. Appears in accessibility portion of setup wizard -->
      <!-- Summary for the accessibility preference screen to enable screen magnification gestures. [CHAR LIMIT=none] -->
      <string name="accessibility_screen_magnification_summary"><b>To zoom</b>, quickly tap the screen 3 times.\n<ul><li>Drag 2 or more fingers to scroll</li>\n<li>Pinch 2 or more fingers to adjust zoom</li></ul>\n\n<b>To zoom temporarily</b>, quickly tap the screen 3 times and hold down your finger on the third tap.\n<ul><li>Drag to move around the screen</li>\n<li>Lift finger to zoom out</li></ul>\n\nYou can\'t zoom in on the keyboard and navigation bar.</string>
      <!-- Summary for the accessibility preference screen to enable screen magnification via the nav bar. [CHAR LIMIT=none] -->
 -    <string name="accessibility_screen_magnification_navbar_summary">When magnification is turned on, use the Accessibility button at the bottom of the screen to quickly magnify.\n\n<b>To zoom</b>, tap the Accessibility button, then tap anywhere on the screen.\n<ul><li>Drag 2 or more fingers to scroll</li>\n<li>Pinch 2 or more fingers to adjust zoom</li></ul>\n\n<b>To zoom temporarily</b>, tap the Accessibility button, then touch &amp; hold anywhere on the screen.\n<ul><li>Drag to move around the screen</li>\n<li>Lift finger to zoom out</li></ul>\n\nYou can’t zoom in on the keyboard or navigation bar.</string>
 +    <string name="accessibility_screen_magnification_navbar_summary">When magnification is turned on, you can zoom in on your screen.\n\n<b>To zoom</b>, start magnification, then tap anywhere on the screen.\n<ul><li>•  Drag 2 or more fingers to scroll</li>\n<li>•  Pinch 2 or more fingers to adjust zoom</li></ul>\n\n<b>To zoom temporarily</b>, start magnification, then touch &amp; hold anywhere on the screen.\n<ul><li>•  Drag to move around the screen</li>\n<li>•  Lift finger to zoom out</li></ul>\n\nYou can’t zoom in on the keyboard or navigation bar.</string>
 +    <!-- Title for the Accessibility tutorial dialog in Accessibility service with button. [CHAR LIMIT=50] -->
 +    <string name="accessibility_tutorial_dialog_title_button">Use accessibility button to open</string>
 +    <!-- Title for the Accessibility tutorial dialog in Accessibility service with gesture. [CHAR LIMIT=50] -->
 +    <string name="accessibility_tutorial_dialog_title_gesture">Use gesture to open</string>
 +    <!-- Title for the Accessibility tutorial dialog in gesture navigation settings. [CHAR LIMIT=50] -->
 +    <string name="accessibility_tutorial_dialog_title_gesture_settings">Use new accessibility gesture</string>
 +    <!-- Message for the Accessibility tutorial dialog when user enables an accessibility service while using the 3-button nav bar. [CHAR LIMIT=NONE] -->
 +    <string name="accessibility_tutorial_dialog_message_button">To turn this service on or off, tap the accessibility button<xliff:g id="accessibility_icon" example="[Icon]">%s</xliff:g>on the bottom of your screen.\n\nTo switch between services, touch &amp; hold the accessibility button.</string>
 +    <!-- Message for the Accessibility tutorial dialog when user enables an accessibility service while using gesture navigation and touch exploration is not enabled. [CHAR LIMIT=NONE] -->
 +    <string name="accessibility_tutorial_dialog_message_gesture_without_talkback">To turn this service on or off, swipe up from the bottom of the screen with two fingers.\n\nTo switch between services, swipe up with two fingers and hold.</string>
 +    <!-- Message for the Accessibility tutorial dialog when user enables an accessibility service while using gesture navigation and touch exploration is enabled. [CHAR LIMIT=NONE] -->
 +    <string name="accessibility_tutorial_dialog_message_gesture_with_talkback">To turn this service on or off, swipe up from the bottom of the screen with three fingers.\n\nTo switch between services, swipe up with three fingers and hold.</string>
 +    <!-- Message for the Accessibility tutorial dialog when user chooses gesture navigation in navigation settings, an accessibility service is using the accessibility button, and touch exploration is disabled. [CHAR LIMIT=NONE] -->
 +    <string name="accessibility_tutorial_dialog_message_gesture_settings_without_talkback">To turn an accessibility service on or off, swipe up from the bottom of the screen with two fingers.\n\nTo switch between services, swipe up with two fingers and hold.</string>
 +    <!-- Message for the Accessibility tutorial dialog when user chooses gesture navigation in navigation settings, an accessibility service is using the accessibility button, and touch exploration is enabled. [CHAR LIMIT=NONE] -->
 +    <string name="accessibility_tutorial_dialog_message_gesture_settings_with_talkback">To turn an accessibility service on or off, swipe up from the bottom of the screen with three fingers.\n\nTo switch between services, swipe up with three fingers and hold.</string>
 +    <!-- Button for the Accessibility tutorial dialog to dismiss the dialog when user clicks it. [CHAR LIMIT=10] -->
 +    <string name="accessibility_tutorial_dialog_button">Got it</string>
      <!-- Summary text appearing on the accessibility preference screen to enable screen magnification from the nav bar when the feature is enabled, but the accessibility button is not configured correctly for the feature to be used [CHAR LIMIT=none] -->
      <string name="accessibility_screen_magnification_navbar_configuration_warning">The Accessibility button is set to <xliff:g id="service" example="Select to Speak">%1$s</xliff:g>. To use magnification, touch &amp; hold the Accessibility button, then select magnification.</string>
      <!-- Title for the preference to configure the accessibility shortcut, which uses the volume keys. [CHAR LIMIT=35] -->
      <string name="keywords_assist_gesture_launch">gesture</string>
      <string name="keywords_face_unlock">face, unlock, auth, sign in</string>
      <string name="keywords_imei_info">imei, meid, min, prl version, imei sv</string>
 -    <string name="keywords_sim_status">network, mobile network state, service state, signal strength, mobile network type, roaming, iccid</string>
 +    <string name="keywords_sim_status">network, mobile network state, service state, signal strength, mobile network type, roaming, iccid, eid</string>
      <string name="keywords_model_and_hardware">serial number, hardware version</string>
      <string name="keywords_android_version">android security patch level, baseband version, kernel version</string>
      <!-- Search keywords for dark mode settings [CHAR LIMIT=NONE] -->
      <!-- Configure Notifications: section header for prioritizer settings  [CHAR LIMIT=80] -->
      <string name="smart_notifications_title">Adaptive notifications</string>
  
 -    <!-- Configure Notifications: setting title [CHAR LIMIT=80] -->
 -    <string name="asst_capability_prioritizer_title">Automatic Prioritization</string>
 +    <!-- Configure Notifications: setting title [CHAR LIMIT=80 BACKUP_MESSAGE_ID=6691908606916292167] -->
 +    <string name="asst_capability_prioritizer_title">Adaptive notification priority</string>
  
      <!-- Configure Notifications: setting summary [CHAR LIMIT=200] -->
      <string name="asst_capability_prioritizer_summary">Automatically set lower priority notifications to Gentle</string>
      <!-- Configure Notifications: setting summary [CHAR LIMIT=200] -->
      <string name="asst_capabilities_actions_replies_summary">Automatically show suggested actions &amp; replies</string>
  
 +    <!-- Configure Notifications: setting title, whether the snooze menu is shown on notifications [CHAR LIMIT=80] -->
 +    <string name="snooze_options_title">Allow notification snoozing</string>
 +
      <!-- Configure Notifications: setting title [CHAR LIMIT=80] -->
      <string name="hide_silent_icons_title">Hide icons from gentle notifications</string>
  
      <string name="notification_silence_title">Silent</string>
  
      <!-- [CHAR LIMIT=100] Notification Importance title -->
 -    <string name="notification_alert_title">Prioritized</string>
 +    <string name="notification_alert_title">Alerting</string>
  
      <!-- [CHAR LIMIT=40] Notification importance title. This setting controls how notifications in older apps may alert the user (eg, sound, visual, vibrate). -->
      <string name="allow_interruption">Allow interruptions</string>
      <!-- Search keywords for System Navigation settings. [CHAR_LIMIT=NONE]-->
      <string name="keywords_system_navigation">system navigation, 2 button navigation, 3 button navigation, gesture navigation</string>
  
 +    <!-- Message for the alert dialog which says that the current default home app does not support gesture navigation. [CHAR LIMIT=NONE] -->
 +    <string name="gesture_not_supported_dialog_message">Not supported by your default home app, <xliff:g id="default_home_app" example="Pixel Launcher">%s</xliff:g></string>
 +
 +    <!-- Positive button for the alert dialog when gesture nav not supported by launcher [CHAR LIMIT=60] -->
 +    <string name="gesture_not_supported_positive_button">Switch default home app</string>
 +
 +    <!-- Content description for the Information icon [CHAR LIMIT=30] -->
 +    <string name="information_label">Information</string>
 +
      <!-- Preference and settings suggestion title text for ambient display double tap (phone) [CHAR LIMIT=60]-->
      <string name="ambient_display_title" product="default">Double-tap to check phone</string>
      <!-- Preference and settings suggestion title text for ambient display double tap (tablet) [CHAR LIMIT=60]-->
      <!-- UI debug setting: preference summary - describes the behavior of forcing full raw GNSS satellite measurements [CHAR LIMIT=NONE] -->
      <string name="enable_gnss_raw_meas_full_tracking_summary">Track all GNSS constellations and frequencies with no duty cycling</string>
  
-     <!-- UI debug setting: preference title - allow background activity starts [CHAR LIMIT=60] -->
-     <string name="allow_background_activity_starts">Allow background activity starts</string>
-     <!-- UI debug setting: preference summary - describes the behavior of allowing background activity starts [CHAR LIMIT=NONE] -->
-     <string name="allow_background_activity_starts_summary">Allows all background activity starts</string>
      <!-- UI debug setting: preference title - show all crash dialogs [CHAR LIMIT=60] -->
      <string name="show_first_crash_dialog">Always show crash dialog</string>
      <!-- UI debug setting: preference summary - describes the behavior of showing a dialog every time an app crashes [CHAR LIMIT=NONE] -->
           subscription in various places in the Settings app. The default name is typically just the
           carrier name, but especially in multi-SIM configurations users may want to use a different
           name. [CHAR LIMIT=40] -->
 -    <string name="mobile_network_sim_name">SIM name</string>
 -    <!-- Label on the confirmation button of a dialog that lets a user set the display name of a
 -         mobile network subscription [CHAR LIMIT=20] -->
 -    <string name="mobile_network_sim_name_rename">Rename</string>
 +    <string name="mobile_network_sim_name">SIM name &amp; color</string>
 +    <!-- Label for an item listing the name of the SIM that the user has specified. [CHAR LIMIT=40] -->
 +    <string name="mobile_network_sim_name_label">Name</string>
 +    <!-- Label for an item listing the color of the SIM that the user has specified. [CHAR LIMIT=40] -->
 +    <string name="mobile_network_sim_color_label">Color (used by compatible apps)</string>
 +    <!-- Label on the confirmation button of a dialog that lets a user set the display name and
 +         color of a mobile network subscription [CHAR LIMIT=20] -->
 +    <string name="mobile_network_sim_name_rename">Save</string>
      <!-- Label for the on position of a switch on the mobile network details page which allows
           disabling/enabling a SIM. The SIM is enabled in this state. [CHAR LIMIT=40] -->
      <string name="mobile_network_use_sim_on">Use SIM</string>
              android:summary="@string/wifi_verbose_logging_summary" />
  
          <SwitchPreference
 +            android:key="wifi_scan_throttling"
 +            android:title="@string/wifi_scan_throttling"
 +            android:summary="@string/wifi_scan_throttling_summary" />
 +
 +        <SwitchPreference
              android:key="mobile_data_always_on"
              android:title="@string/mobile_data_always_on"
              android:summary="@string/mobile_data_always_on_summary" />
              android:title="@string/background_check_pref" />
  
          <SwitchPreference
-             android:key="allow_background_activity_starts"
-             android:title="@string/allow_background_activity_starts"
-             android:summary="@string/allow_background_activity_starts_summary" />
-         <SwitchPreference
              android:key="show_first_crash_dialog"
              android:title="@string/show_first_crash_dialog"
              android:summary="@string/show_first_crash_dialog_summary" />
              android:title="@string/show_notification_channel_warnings"
              android:summary="@string/show_notification_channel_warnings_summary" />
  
 +        <SwitchPreference
 +            android:key="asst_capability_prioritizer"
 +            android:title="@string/asst_capability_prioritizer_title"
 +            settings:controller="com.android.settings.notification.AssistantCapabilityPreferenceController" />
 +
          <Preference
              android:key="inactive_apps"
              android:title="@string/inactive_apps_title"
@@@ -432,7 -432,6 +432,7 @@@ public class DevelopmentSettingsDashboa
          controllers.add(new CameraLaserSensorPreferenceController(context));
          controllers.add(new WifiDisplayCertificationPreferenceController(context));
          controllers.add(new WifiVerboseLoggingPreferenceController(context));
 +        controllers.add(new WifiScanThrottlingPreferenceController(context));
          controllers.add(new MobileDataAlwaysOnPreferenceController(context));
          controllers.add(new TetheringHardwareAccelPreferenceController(context));
          controllers.add(new BluetoothDeviceNoNamePreferenceController(context));
          controllers.add(new ProfileGpuRenderingPreferenceController(context));
          controllers.add(new KeepActivitiesPreferenceController(context));
          controllers.add(new BackgroundProcessLimitPreferenceController(context));
-         controllers.add(new AllowBackgroundActivityStartsPreferenceController(context));
          controllers.add(new ShowFirstCrashDialogPreferenceController(context));
          controllers.add(new AppsNotRespondingPreferenceController(context));
          controllers.add(new NotificationChannelWarningsPreferenceController(context));