Commit Graph

21809 Commits

Author SHA1 Message Date
Neil Fuller
4a6663c10a Changes to location settings for geotz
This change adds a new entry for geolocation-based time zone detection
(shorthand: "geotz") to the location settings.

The UI code uses information retrieved via the TimeManager API to keep
the conditional logic in one place, i.e. to avoid the UI needing to know
too much about the various conditions that affect the availability /
applicability of the toggle.

Screen variations / conditions / other info:

Location settings screen:

1) The entry only shows up on a device at all if geotz detection is
enabled for the device (currently a compile time setting, off by
default).
2) The new entry is hidden on the screen when the user first opens it.
To see it, the user has to expand "Advanced". The setting is in the
shared (non-GMS) section of the screen.
3) When visible, the entry has a summary that shows the current status:
either a reason why the setting is not applicable, or the user's current
setting value.
4) Selecting the entry opens a sub-screen.

The code included here distinguishes between different cases with the
summary message (i.e. the text underneath the entry). See strings.xml
for the placeholder text. Some strings will not show up currently, but
are included in case the rules change as they are valid possibilities
from the TimeManager API.

The same changes have been made for the "personal" tab when a work
profile is enabled.

Location Time Zone Detection settings screen:

1) The toggle is always enabled and always shows the user's current
configuration setting.

All manual tests run with the geotz feature enabled with:

adb shell setprop \
    persist.sys.location_time_zone_detection_feature_enabled 1

Bug: 152746236
Test: Manual: build / boot / toggle switch in SettingsUI / inspect output of adb shell dumpsys time_zone_detector
Test: Manual: build / boot / install TestDPC / toggle switch in work profile in SettingsUI / inspect output of adb shell dumpsys time_zone_detector
Test: m -j30 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.location.TimeZoneDetectionPreferenceControllerTest"
Test: m -j30 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.location.LocationTimeZoneDetectionPreferenceControllerTest"
Test: m -j30 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.location.TimeZoneDetectionSettingsTest"
Change-Id: Ia853d30bc54a113000b30f48776418f262d98358
2020-10-22 15:48:55 +01:00
Tsung-Mao Fang
757e756896 Refine search ui and avatar based on spec am: ebc3a3e881
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12898361

Change-Id: I4fb8835f9b4964332bca7fc0a9cdac346a88bbd7
2020-10-22 14:12:22 +00:00
Bill Yi
b0cb20f643 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I44ced221aa06d7e94415837f7ebeb9cc188113e0
2020-10-22 10:18:58 +00:00
Tsung-Mao Fang
ebc3a3e881 Refine search ui and avatar based on spec
This is the first version, we will keep tweaking
the details later.

Bug: 171278055
Test: Screenshot - https://screenshot.googleplex.com/ApRgDZknkvX9PWo
Change-Id: Ie99cf9e187aa2440486cc2eae90e04287daf0a1d
2020-10-22 18:07:20 +08:00
Bill Yi
eeaa6e4eaf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If13f8df62726ec63be5165fa8c8ee55d24c958c4
2020-10-22 09:38:52 +00:00
Sally
b9ff672a31 Add a setting page for Reduce Bright Colors under A11y
This is essentially a copy page of ToggleDaltonizerPreferenceFragment.
We extend ToggleFeaturePreferenceFragment to maintain consistency with
other shortcut assignable a11y feature.

UI is a draft

This CL:
1) allows users to enabled/disable RBC with the a11y shortcut (button,
gestures, volume keys), if assigned
2) adds a slider and persist switch to the template
ToggleFeaturePreferenceFragment page (which already contains a feature
switch, shortcut preference, and footer description)
3) enables/disables the intensity slider when RBC is on/off
4) sets placeholders for calling into ColorDisplayService in
controllers and tests
5) follows convention set by other color transformations settings and
places feature under Experimental section in A11y settings page if
transformations can't be efficiently performed by hardware

Test: A11y setting and page appears, tested activation with shortcut,
preference controller tests
Bug: b/128465252

Change-Id: I291bb86ce3d855ce052ca70dc7a941a888e2c723
2020-10-21 23:08:53 +00:00
Julia Reynolds
0aef57d67e Add 'Recent Conversations' to the conversation page
Test: atest
Bug: 171191376
Change-Id: Id7208312dff0cc022c2f16b3872fae1a9dc09ed7
2020-10-21 16:39:04 -04:00
Yanting Yang
35a4b76108 Merge "Remove subtitles for the homepage IA" am: 3f92484ce8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12846875

Change-Id: I6007bea78716652c95abfd56775e198c002c4328
2020-10-21 03:53:15 +00:00
Yanting Yang
3f92484ce8 Merge "Remove subtitles for the homepage IA" 2020-10-21 03:24:31 +00:00
Yanting Yang
9aa4a5463f Remove subtitles for the homepage IA
Remove the summary of the homepage IA if silky home enabled.

Fixes: 170933968
Test: robotest & visual with turning on/off silky home
Change-Id: I502b6590cece9b80e9923109fe0582cc4d9a1c56
2020-10-20 23:54:03 +08:00
Bill Yi
8995e8b9e9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I60fe8a4ec1b33665a298365ac74d7622825d3ba7
2020-10-20 06:19:23 -07:00
Bill Yi
0e41e1a5d4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I28e7c337cac0995e72c01cb8349febbbe1abaf72
2020-10-20 04:45:30 -07:00
TreeHugger Robot
676db42f51 Merge "Add string for text of bluetooth switch" am: 868a15350a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12797033

Change-Id: I33be40196bf1a193024d758836640a35b2a2870c
2020-10-19 09:29:47 +00:00
TreeHugger Robot
868a15350a Merge "Add string for text of bluetooth switch" 2020-10-19 09:19:42 +00:00
Jason Hsu
695c94c2e3 Merge "Set the minimum height to the CheckBox" am: 3a90feaa26
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12797031

Change-Id: I3703501658d1337388212e962e8aafab10495992
2020-10-19 07:53:05 +00:00
Jason Hsu
3a90feaa26 Merge "Set the minimum height to the CheckBox" 2020-10-19 07:28:54 +00:00
TreeHugger Robot
42a891460e Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-10-17 22:22:51 +00:00
Bill Yi
75f213e982 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id409765908bccc30904d26ded670edfc84a535ed
2020-10-17 12:46:22 +00:00
Bill Yi
be13719177 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id851db5d79ae223b802e053b8a3dd120c3fa4b20
2020-10-17 12:10:53 +00:00
Bill Yi
e0c58e9b1b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ide6e88b9dfe1253577e04f8a0d664530db31842d
2020-10-17 11:35:11 +00:00
Kevin Chyn
6c31f27d5a Merge "Fix biometric string" am: 0a270aba11
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12863847

Change-Id: I9af1cf35ddf58cdc7ab25b57dbdf9c2a5d21c316
2020-10-16 23:16:41 +00:00
Kevin Chyn
0a270aba11 Merge "Fix biometric string" 2020-10-16 23:00:44 +00:00
Oscar Shu
9be7e466d4 Merge "Increase mac rand char limit for translation" am: f0d864ac5a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12854080

Change-Id: I452273c8101b4f2b691ae421bb943b4bf04a7647
2020-10-16 22:51:51 +00:00
Oscar Shu
f0d864ac5a Merge "Increase mac rand char limit for translation" 2020-10-16 22:30:44 +00:00
Kevin Chyn
3b6410c92b Fix biometric string
Fixes: 169163181

Test: Builds
Change-Id: I8ae5cdc32957fa63849213fb04f10c8fb2e00211
2020-10-16 12:47:30 -07:00
xshu
1246f4c42c Increase mac rand char limit for translation
Per request in b/170679746

Bug: 170679746
Test: compile
Change-Id: I909cbd3818ce126ab6341da26fd15961ec897ae9
2020-10-15 15:55:17 -07:00
TreeHugger Robot
647666a50f Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-10-15 14:49:31 +00:00
Neil Fuller
8a339e82cd Merge "Adjust wording for auto time / time zone detection" am: 0b71d1ef94
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12792959

Change-Id: I53f533d6d541f55da29dc3652cdbdc575bf77ad7
2020-10-15 12:40:21 +00:00
Neil Fuller
0b71d1ef94 Merge "Adjust wording for auto time / time zone detection" 2020-10-15 12:19:44 +00:00
TreeHugger Robot
93070ad7dc Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-10-15 07:08:11 +00:00
Bill Yi
8378a840c1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3d0868dfdbcae216cf3c4d4b0c127e7c967ef634
2020-10-14 21:12:09 -07:00
Bill Yi
2867070754 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9d42c43812a2a842517fd383c50be6c4da941093
2020-10-14 20:25:26 -07:00
Bill Yi
5a1be6612c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ic14ca287b29a6287c1541c308e33ddcede2717f7
2020-10-14 19:39:32 -07:00
TreeHugger Robot
a55eed414f Merge "Launch customized panic setting intent when configured." am: 0e7d09fc8c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12818073

Change-Id: Id5e2d6da26b3a9e52574c6a0e339a6251170d80c
2020-10-15 00:42:35 +00:00
TreeHugger Robot
0e7d09fc8c Merge "Launch customized panic setting intent when configured." 2020-10-15 00:09:53 +00:00
TreeHugger Robot
d21394f379 Merge "Remove "Edit emergency contact" tile from panic settings." am: 0b5dd5e88a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12839157

Change-Id: I14a1332fc6a34e96b08e7b7cef452ae4d1ab22e1
2020-10-14 21:13:00 +00:00
TreeHugger Robot
0b5dd5e88a Merge "Remove "Edit emergency contact" tile from panic settings." 2020-10-14 20:30:31 +00:00
Fan Zhang
c63a13c858 Launch customized panic setting intent when configured.
When RRO provides a custom intent package for panic settings and there
is an app to handle it, launch the custom intent instead of the AOSP
version.

Bug: 169946508
Test: robotests
Change-Id: I8479c6e0dd4a90b5a03640035b710ae4ccc7809c
2020-10-14 12:20:33 -07:00
Fan Zhang
f7b6a236a4 Remove "Edit emergency contact" tile from panic settings.
Fix: 170636818
Test: manual
Change-Id: I428dbe784be3ac6af045b045a709815eafaae4a9
2020-10-14 10:16:54 -07:00
Sally Yuen
9d1107df02 Merge "Add Bold Text to Accessibility settings screen" am: 80c5b8ffe3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12783543

Change-Id: If4d44a7d728cb51d0b8758a891746b2969da4254
2020-10-14 16:27:46 +00:00
Sally Yuen
80c5b8ffe3 Merge "Add Bold Text to Accessibility settings screen" 2020-10-14 16:08:13 +00:00
Yi Jiang
ef232594fd Merge "Merge Screen Attention and Screen timeout Settings." am: 79dc82fb6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12560323

Change-Id: I83e6697a26bc46734d13ec5976939d3d102dcd3b
2020-10-14 05:34:34 +00:00
Sally
904a8fa369 Add Bold Text to Accessibility settings screen
Bug: b/110991537
Test: setting appears, atest ForceBoldTextPreferenceControllerTest
Change-Id: I001b078cafd2b6da62929ffa1a7a09ddb28c9854
2020-10-13 16:57:00 +00:00
Yi Jiang
f5d1841c9d Merge Screen Attention and Screen timeout Settings.
Bug: 155051311
Test: atest
Change-Id: I6f6ee52618eab629a41b28982be32ead5f9ba08d
2020-10-13 00:47:13 -07:00
TreeHugger Robot
4cee165533 Merge "Merge ab/6749736 in stage." into stage-aosp-master 2020-10-13 03:31:33 +00:00
Hugh Chen
3c33b6ea41 Add string for text of bluetooth switch
Bug: 153888620
Test: manually test
Change-Id: I60a791190abf535162f7ed1b80fe265482515137
2020-10-12 16:42:01 +08:00
jasonwshsu
fee9c2663a Set the minimum height to the CheckBox
Root Cause: Touch target of "container" is too small, reported by
accessibility scanner. Suggest to enlarge bigger than 48dp.

Solution: Set the minimum height to the CheckBox layout. If the
container text in CheckBox is bigger than 48dp, it will follow the
layout_height="wrap_content".

Bug: 168264410
Test: manual test
Change-Id: I50362baefd692e6bfbef1778eb2a5b72dd35ab7a
2020-10-12 15:00:35 +08:00
Jiashen Wang
f5a9cc2f03 Merge "[SIM Dialog Migration] Migrate eSIM erase dialog" am: 6265cf8e6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12750116

Change-Id: Ic49f018c26eb61708036e0fb936acec35182d713
2020-10-09 17:09:50 +00:00
Jiashen Wang
6265cf8e6c Merge "[SIM Dialog Migration] Migrate eSIM erase dialog" 2020-10-09 16:38:58 +00:00
Xin Li
8656492241 Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: I8e3eb6c072488fdc33fae1ebabd17980a67f5d7d
Change-Id: I0411c2f1dbc2fa47b23ff52cacca990f3141f52f
2020-10-08 23:40:50 -07:00