OSDN Git Service

resolve merge conflicts of 259b6a8029 to master.
authorSteve Pfetsch <spfetsch@google.com>
Sat, 23 Jan 2016 01:43:33 +0000 (17:43 -0800)
committerSteve Pfetsch <spfetsch@google.com>
Sat, 23 Jan 2016 01:43:33 +0000 (17:43 -0800)
Change-Id: I5aa772839591d6f09d672a04ab8606fd39dd4a97

1  2 
res/values/strings.xml
src/com/android/settings/DevelopmentSettings.java

      <!-- Description of setting that controls gesture to open camera by double tapping the power button [CHAR LIMIT=NONE] -->
      <string name="camera_double_tap_power_gesture_desc">Quickly open camera without unlocking your screen</string>
  
 -    <!-- Name of each color mode for the display. [CHAR LIMIT=40] -->
 -    <string-array name="color_mode_names">
 -        <item>Vibrant (default)</item>
 -        <item>Natural</item>
 -        <item>Standard</item>
 -    </string-array>
 +    <!-- Title of setting that controls screen zoom (e.g. how large interface elements appear). [CHAR LIMIT=40] -->
 +    <string name="screen_zoom_title">Magnify display</string>
 +    <!-- Keywords for setting that controls screen zoom (e.g. how large interface elements appear). [CHAR LIMIT=NONE] -->
 +    <string name="screen_zoom_keywords">display density, screen zoom, scale, scaling</string>
 +    <!-- Summary of screen zoom setting screen. [CHAR LIMIT=NONE] -->
 +    <string name="screen_zoom_summary">Make all items on screen smaller or larger. Some apps on your home screen may change position after changing this setting.</string>
 +    <!-- Title of the screen zoom preview activity. -->
 +    <string name="screen_zoom_preview_title">Preview</string>
 +    <!-- Description for the button that makes interface elements smaller. [CHAR_LIMIT=NONE] -->
 +    <string name="screen_zoom_make_smaller_desc">Make smaller</string>
 +    <!-- Description for the button that makes interface elements larger. [CHAR_LIMIT=NONE] -->
 +    <string name="screen_zoom_make_larger_desc">Make larger</string>
 +
 +    <!-- Description for the screen zoom level that makes interface elements small. [CHAR LIMIT=24] -->
 +    <string name="screen_zoom_summary_small">Small</string>
 +    <!-- Description for the device's default screen zoom level. [CHAR LIMIT=24] -->
 +    <string name="screen_zoom_summary_normal">Normal</string>
 +    <!-- Description for the screen zoom level that makes interface elements large. [CHAR LIMIT=24] -->
 +    <string name="screen_zoom_summary_large">Large</string>
 +    <!-- Description for the screen zoom level that makes interface elements larger. [CHAR LIMIT=24] -->
 +    <string name="screen_zoom_summary_very_large">Larger</string>
 +    <!-- Description for the screen zoom level that makes interface elements largest. [CHAR LIMIT=24] -->
 +    <string name="screen_zoom_summary_extremely_large">Largest</string>
 +    <!-- Description for a custom screen zoom level. This shows the requested display
 +         density in raw pixels per inch rather than using a relative description. [CHAR LIMIT=24] -->
 +    <string name="screen_zoom_summary_custom">Custom (<xliff:g id="densityDpi" example="160">%d</xliff:g>)</string>
  
 -    <!-- Description of each color mode for the display. [CHAR LIMIT=NONE] -->
 -    <string-array name="color_mode_descriptions">
 -        <item>Enhanced colors</item>
 -        <item>Natural colors as seen by the eye</item>
 -        <item>Colors optimized for digital content</item>
 -    </string-array>
 +    <!-- Button to show all top-level settings items [CHAR LIMIT=20] -->
 +    <string name="see_all">See all</string>
 +    <!-- Button to show less top-level settings items [CHAR LIMIT=20] -->
 +    <string name="see_less">See less</string>
 +
 +    <!-- Wi-Fi state - Disconnected [CHAR LIMIT=NONE] -->
 +    <string name="disconnected">Disconnected</string>
 +
 +    <!-- Summary of data usage [CHAR LIMIT=NONE] -->
 +    <string name="data_usage_summary_format"><xliff:g id="amount" example="50%">%1$s</xliff:g> of data used</string>
 +
 +    <!-- Summary of apps [CHAR LIMIT=NONE] -->
 +    <string name="apps_summary"><xliff:g id="count" example="24">%1$d</xliff:g> apps installed</string>
 +
 +    <!-- Summary of storage usage [CHAR LIMIT=NONE] -->
 +    <string name="storage_summary"><xliff:g id="size1" example="8GB">%1$s</xliff:g> of <xliff:g id="size2" example="32GB">%2$s</xliff:g> used</string>
 +
 +    <!-- Summary of display with adaptive brightness on [CHAR LIMIT=NONE] -->
 +    <string name="display_summary_on">Adaptive brightness is ON</string>
 +
 +    <!-- Summary of display with adaptive brightness off [CHAR LIMIT=NONE] -->
 +    <string name="display_summary_off">Adaptive brightness is OFF</string>
 +
 +    <!-- Summary of memory screen [CHAR LIMIT=NONE] -->
 +    <string name="memory_summary">Avg <xliff:g id="used_memory" example="1.7GB">%1$s</xliff:g> of <xliff:g id="total_memory" example="2GB">%2$s</xliff:g> memory used</string>
 +
 +    <!-- Summary of user screen [CHAR LIMIT=NONE] -->
 +    <string name="user_summary">Signed in as <xliff:g id="user_name" example="Jason">%1$s</xliff:g></string>
 +
 +    <!-- Summary of payment screen [CHAR LIMIT=NONE] -->
 +    <string name="payment_summary"><xliff:g id="app_name" example="Payment App">%1$s</xliff:g> is default</string>
 +
 +    <!-- Summary of location screen [CHAR LIMIT=NONE] -->
 +    <string name="location_on_summary">ON / <xliff:g id="location_mode" example="High accuracy">%1$s</xliff:g></string>
 +
 +    <!-- Location off [CHAR LIMIT=NONE] -->
 +    <string name="location_off_summary">OFF</string>
 +
 +    <!-- Backup disabled summary [CHAR LIMIT=NONE] -->
 +    <string name="backup_disabled">Back up disabled</string>
  
 -    <!-- Name of feature to change color setting for the display [CHAR LIMIT=60] -->
 -    <string name="picture_color_mode">Picture color mode</string>
 +    <!-- Summary of device info page [CHAR LIMIT=NONE] -->
 +    <string name="about_summary">Android <xliff:g id="version" example="6.0">%1$s</xliff:g></string>
  
 -    <!-- Description of feature to change color setting for the display [CHAR LIMIT=NONE] -->
 -    <string name="picture_color_mode_desc">Use sRGB</string>
 +    <!-- TODO: Update these strings with the finalized ones. -->
 +    <!-- Title for dialog displayed when user clicks on a setting locked by an admin [CHAR LIMIT=30] -->
 +    <string name="disabled_by_policy_title">Disabled by policy</string>
 +    <!-- Shown when the user tries to change a settings locked by an admin [CHAR LIMIT=200] -->
 +    <string name="default_admin_support_msg">Disabled by your organisation\'s administrator.\nContact them to learn more.</string>
 +    <!-- Shown in dialog to allow user to see more information about the device admin [CHAR LIMIT=30] -->
 +    <string name="admin_support_more_info">More details</string>
 +    <!-- Shown in admin details page to warn user about policies the admin can set in a work profile. [CHAR LIMIT=NONE] -->
 +    <string name="admin_profile_owner_message">Your administrator has the ability to monitor and manage settings, corporate access, apps, permissions, and data associated with the profile, including network activity and your device\'s location information.</string>
 +    <!-- Shown in admin details page to warn user about policies the admin can set on a user. [CHAR LIMIT=NONE] -->
 +    <string name="admin_profile_owner_user_message">Your administrator has the ability to monitor and manage settings, corporate access, apps, permissions, and data associated with this user, including network activity and your device\'s location information.</string>
 +    <!-- Shown in admin details page to warn user about policies the admin can set on a device. [CHAR LIMIT=NONE] -->
 +    <string name="admin_device_owner_message">Your administrator has the ability to monitor and manage settings, corporate access, apps, permissions, and data associated with this device, including network activity and your device\'s location information.</string>
 +
 +    <!-- Turn off a conditional state of the device (e.g. airplane mode, or hotspot) [CHAR LIMIT=30] -->
 +    <string name="condition_turn_off">Turn off</string>
 +
 +    <!-- Turn on a conditional state of the device (e.g. cellular data) [CHAR LIMIT=30] -->
 +    <string name="condition_turn_on">Turn on</string>
 +
 +    <!-- Title of condition that hotspot is on [CHAR LIMIT=30] -->
 +    <string name="condition_hotspot_title">Hotspot is on</string>
 +
 +    <!-- Summary of condition that hotspot is on [CHAR LIMIT=NONE] -->
 +    <string name="condition_hotspot_summary">Portable Wi-Fi hotspot <xliff:g name="ap_name" example="AndroidAP">%1$s</xliff:g> is active, Wi-Fi for this device is turned off.</string>
 +
 +    <!-- Title of condition that airplane mode is on [CHAR LIMIT=30] -->
 +    <string name="condition_airplane_title">Airplane mode is on</string>
 +
 +    <!-- Summary of condition that airplane mode is on [CHAR LIMIT=NONE] -->
 +    <string name="condition_airplane_summary">Wi-Fi, Bluetooth, and cellular network are turned off. You can\'t make phone calls or connect to the Internet.</string>
 +
 +    <!-- Title of condition that do not disturb is on [CHAR LIMIT=30] -->
 +    <string name="condition_zen_title">Do not disturb is on (<xliff:g name="zen_mode_type" example="Alarms only">%1$s</xliff:g>)</string>
 +
 +    <!-- Title of condition that battery saver is on [CHAR LIMIT=30] -->
 +    <string name="condition_battery_title">Battery Saver is on</string>
 +
 +    <!-- Summary of condition that battery saver is on [CHAR LIMIT=NONE] -->
 +    <string name="condition_battery_summary">Performance is reduced. Location services and background data are turned off.</string>
 +
 +    <!-- Title of condition that cellular data is off [CHAR LIMIT=30] -->
 +    <string name="condition_cellular_title">Cellular data is off</string>
 +
 +    <!-- Summary of condition that cellular data is off [CHAR LIMIT=NONE] -->
 +    <string name="condition_cellular_summary">Internet is available only via Wi-Fi</string>
 +
 +    <!-- Title of condition that background data is off [CHAR LIMIT=30] -->
 +    <string name="condition_bg_data_title">Background data is off</string>
 +
 +    <!-- Summary of condition that background data is off [CHAR LIMIT=NONE] -->
 +    <string name="condition_bg_data_summary">Background data is only available via Wi-Fi. This may affect some apps or services when Wi-Fi is not available.</string>
 +
 +    <!-- Title of condition that work mode is off [CHAR LIMIT=30] -->
 +    <string name="condition_work_title">Work profile is off</string>
 +
 +    <!-- Summary of condition that work mode is off [CHAR LIMIT=NONE] -->
 +    <string name="condition_work_summary">Apps, background sync, and other features related to your work profile are turned off.</string>
 +
 +    <!-- Title for the suggestions section on the dashboard [CHAR LIMIT=30] -->
 +    <string name="suggestions_title">Suggestions (<xliff:g name="count" example="3">%1$d</xliff:g>)</string>
 +
 +    <!-- Name of option to remove a suggestion from the list [CHAR LIMIT=30] -->
 +    <string name="suggestion_remove">Remove</string>
  
      <!-- Name of the setting to change the display's color temperature -->
-     <string name="color_temperature">Display color temperature</string>
+     <string name="color_temperature">Cool color temperature</string>
  
      <!-- Description of the setting to change the display's color temperature -->
-     <string name="color_temperature_desc">Enable cool temperature</string>
+     <string name="color_temperature_desc">Use cooler display colors</string>
+     <!-- Toast message letting the user know the color temperature setting is not immediate -->
+     <string name="color_temperature_toast">To apply color change, turn off screen</string>
 +
 +    <!-- Label for category for data usage [CHAR LIMIT=30] -->
 +    <string name="usage">Usage</string>
 +
 +    <!-- Label for cellular data usage in data usage screen [CHAR LIMIT=60] -->
 +    <string name="cellular_data_usage">Cellular data usage</string>
 +
 +    <!-- Label for wifi data usage in data usage screen [CHAR LIMIT=60] -->
 +    <string name="wifi_data_usage">Wi-Fi data usage</string>
 +
 +    <!-- Label for ethernet data usage in data usage screen [CHAR LIMIT=60] -->
 +    <string name="ethernet_data_usage">Ethernet data usage</string>
 +
 +    <!-- Label for section about wifi in data usage screen [CHAR LIMIT=60] -->
 +    <string name="wifi">Wi-Fi</string>
 +
 +    <!-- Label for section about ethernet in data usage screen [CHAR LIMIT=60] -->
 +    <string name="ethernet">Ethernet</string>
 +
 +    <!-- Format string for amount of cellular data used [CHAR LIMIT=30] -->
 +    <string name="cell_data_template"><xliff:g name="units" example="GB">%1$s</xliff:g> cellular data</string>
 +
 +    <!-- Format string for amount of wifi data used [CHAR LIMIT=30] -->
 +    <string name="wifi_data_template"><xliff:g name="units" example="GB">%1$s</xliff:g> Wi-Fi data</string>
 +
 +    <!-- Format string for amount of ethernet data used [CHAR LIMIT=30] -->
 +    <string name="ethernet_data_template"><xliff:g name="units" example="GB">%1$s</xliff:g> ethernet data</string>
 +
 +    <!-- Format for a summary describing the amount of data before the user is warned [CHAR LIMIT=NONE] -->
 +    <string name="cell_warning_only"><xliff:g name="amount" example="1 GB">%1$s</xliff:g> Data warning</string>
 +
 +    <!-- Format for a summary describing the amount of data before the user is warned or limited [CHAR LIMIT=NONE] -->
 +    <string name="cell_warning_and_limit"><xliff:g name="amount" example="1 GB">%1$s</xliff:g> Data warning / <xliff:g name="amount" example="2 GB">%2$s</xliff:g> Data limit</string>
 +
 +    <!-- Title of button and screen for billing cycle preferences [CHAR LIMIT=30 -->
 +    <string name="billing_cycle">Billing cycle</string>
 +
 +    <!-- Summary describing when the billing cycle for their phone carrier starts [CHAR LIMIT=NONE] -->
 +    <string name="billing_cycle_summary">Monthly cycle starts on the <xliff:g name="day" example="1st">%1$s</xliff:g> of every month</string>
 +
 +    <!-- Summary describing when the billing cycle for their phone carrier starts [CHAR LIMIT=NONE] -->
 +    <string name="billing_cycle_fragment_summary">Monthly starting <xliff:g name="day_of_month" example="1st">%1$s</xliff:g></string>
 +
 +    <!-- Title of button and screen for which wifi networks have data restrictions [CHAR LIMIT=30 -->
 +    <string name="network_restrictions">Network restrictions</string>
 +
 +    <!-- A summary shown on data usage screens to indicate inaccuracy of data tracking [CHAR LIMIT=NONE] -->
 +    <string name="operator_warning">Operator data accounting may differ from your device.</string>
 +
 +    <!-- Format string describing how much data has been used [CHAR LIMIT=20] -->
 +    <string name="data_used_template"><xliff:g name="amount" example="1 GB">%1$s</xliff:g> used</string>
 +
 +    <!-- Label for button to set the amount of data before user is warned about usage [CHAR LIMIT=30] -->
 +    <string name="data_warning">Data warning</string>
 +
 +    <!-- Label for switch about whether to limit how much data can be used [CHAR LIMIT=30] -->
 +    <string name="set_data_limit">Set data limit</string>
 +
 +    <!-- Label for button to set the amount of data before user is limited [CHAR LIMIT=30] -->
 +    <string name="data_limit">Data limit</string>
 +
 +    <!-- Summary about how much data has been used in a date range [CHAR LIMIT=NONE] -->
 +    <string name="data_usage_template"><xliff:g name="amount" example="200 MB">%1$s</xliff:g> used between <xliff:g name="date_range" example="Jan 1 -- Feb 2">%2$s</xliff:g></string>
 +
 +    <!-- Accessibility label for button that leads to screen with more configuration options [CHAR LIMIT=NONE] -->
 +    <string name="configure">Configure</string>
 +
 +    <!-- TODO: Actually figure out what to do with the extra apps, and update
 +         the code to do that -->
 +    <string name="data_usage_other_apps" translatable="false">Other apps included in usage</string>
 +
  </resources>
@@@ -72,14 -69,11 +72,15 @@@ import android.view.LayoutInflater
  import android.view.View;
  import android.view.ViewGroup;
  import android.view.accessibility.AccessibilityManager;
 +import android.webkit.IWebViewUpdateService;
 +import android.webkit.WebViewProviderInfo;
  import android.widget.Switch;
  import android.widget.TextView;
+ import android.widget.Toast;
  
 +import com.android.internal.app.LocalePicker;
  import com.android.internal.logging.MetricsLogger;
 +import com.android.settings.applications.BackgroundCheckSummary;
  import com.android.settings.fuelgauge.InactiveApps;
  import com.android.settings.search.BaseSearchIndexProvider;
  import com.android.settings.search.Indexable;