Commit Graph

46722 Commits

Author SHA1 Message Date
Lei Yu
e7dd4197b0 Adjust wifi dialog for better accessibility
For some items, change the minHeight to 48dp. Also update text size
a little bit to fit the new height.

Change-Id: I87d3067c29d0d87eff6eadc4332984171e9fe4b6
Fixes: 79722015
Test: Build
2018-05-17 16:05:09 -07:00
Fan Zhang
36e61e191a Misc style updates to fix some GAR issues
- Increase tap target height for add wifi dialog entries.
- Increase tap height for vpn editor fields
- Tap target area for switchbar toggle

Change-Id: I0d0e350dd4236cd4fe73fa190fb79ca50de2da60
Fixes: 79871635
Fixes: 79887410
Test: visual
2018-05-17 15:03:18 -07:00
Doris Ling
3500784e82 Adjust Lock screen message for better accessibility.
- increase text height to 48dp

Change-Id: Ie3ab56eeed453bb7b131458a3966534a0bf68871
Fixes: 79711251
Test: visual
2018-05-17 14:45:18 -07:00
Lei Yu
4fec12cbbf Fix tethering summary when airplane mode is off
When airplane mode is off, fall back to default summary
(tether off summary). It should be fine because once tether
state get updated again, it will go through original listener
to update the summary.

Change-Id: Iba9b56f452e72365ea964d841ee156a2625c0ae1
Fixes: 79721162
Test: RunSettingsRoboTests
2018-05-17 14:38:22 -07:00
Andrew Sapperstein
d497de27c1 Merge "Make the night display suggestion depend on a flag." into pi-dev am: 96294df2f0
am: 95e789dc58

Change-Id: I732a4d92f23354db44ce294096ad1e38ae0f198b
2018-05-17 13:59:26 -07:00
Jason Monk
2443a96fde Merge "Hook up slice deep links" into pi-dev am: 7e6d495cec
am: 9f6028edde

Change-Id: Ie8ccce9eb7e880c8764a2ce3cb6d1151770c9393
2018-05-17 13:56:03 -07:00
Andrew Sapperstein
95e789dc58 Merge "Make the night display suggestion depend on a flag." into pi-dev
am: 96294df2f0

Change-Id: I1463f360f286e7770d0e7ecd5e7d3ab69ecff837
2018-05-17 13:42:38 -07:00
Jason Monk
9f6028edde Merge "Hook up slice deep links" into pi-dev
am: 7e6d495cec

Change-Id: I0a0bd515a5b43828092ca4ec50ef9d20c660a4da
2018-05-17 13:41:27 -07:00
Andrew Sapperstein
96294df2f0 Merge "Make the night display suggestion depend on a flag." into pi-dev 2018-05-17 20:40:21 +00:00
TreeHugger Robot
7e6d495cec Merge "Hook up slice deep links" into pi-dev 2018-05-17 20:15:39 +00:00
Fan Zhang
fc6ce6de32 Merge "Do not perform device index before device provision." into pi-dev am: 1fe4512596
am: 8a8b58d381

Change-Id: Ie111e38c79735090a0cedae253d97d638f974209
2018-05-17 12:56:44 -07:00
Fan Zhang
8a8b58d381 Merge "Do not perform device index before device provision." into pi-dev
am: 1fe4512596

Change-Id: I2cc6689cd6c80df36c4565fc48b396abb4b16288
2018-05-17 12:50:17 -07:00
TreeHugger Robot
1fe4512596 Merge "Do not perform device index before device provision." into pi-dev 2018-05-17 19:41:43 +00:00
Rubin Xu
785ea86507 Merge "Setting should handle android.settings.SYNC_SETTINGS from managed profile" into pi-dev am: ef088843ae
am: 7ff1a26d03

Change-Id: I19586d174fe2b6b2eac8f68525a81e7cb6039fc0
2018-05-17 12:25:28 -07:00
Rubin Xu
7ff1a26d03 Merge "Setting should handle android.settings.SYNC_SETTINGS from managed profile" into pi-dev
am: ef088843ae

Change-Id: I0b0e7912fcbdcb819a6b7f2e50f91eef18b8092a
2018-05-17 12:14:17 -07:00
Antony Sargent
8cbfbbd44d Update cancel and cast icons
Bug: 77982107
Test: manual
Change-Id: I7f1af280daf8944dbab48929b7fe7d82f680a448
2018-05-17 11:59:16 -07:00
Rubin Xu
ef088843ae Merge "Setting should handle android.settings.SYNC_SETTINGS from managed profile" into pi-dev 2018-05-17 18:57:46 +00:00
Antony Sargent
0d9afde271 Updated delete icon
Also remove the duplicate ic_menu_delete.xml and fix up places where it
was used.

Bug: 77982107
Test: manual
Change-Id: I23ede37b7cdf9bea59b44cd0f817bf0ad0cd1d69
2018-05-17 11:55:40 -07:00
Nathan Harold
c0acff57b3 [Telephony Debug Menu] Redo Layout
Changes to the layout to better group
related fields, add more definite
boundaries, fix some alignment issues,
and put more-often-used fields closer
to the top.

Bug: 78791811
Test: manual
Change-Id: I492abe16a25d1880e4385a78247925805fe5b590
2018-05-17 11:46:23 -07:00
Nathan Harold
0ef72a9416 [Telephony Debug Menu] Remove DcRtInfo
Remove the obsolete and unsupported DcRtInfo
field from the Debug menu. Since it doesn't
do anything and hasn't for a few releases,
we should make space for things that are
supported and minimize clutter.

Bug: 78791811
Test: manual
Change-Id: Id4cc808bf5c7671408cd5297965d93140aeefe97
2018-05-17 11:46:23 -07:00
Nathan Harold
326a5dd6b2 [Telephony Debug Menu] Remove NeighboringCellInfo
This CL removes the long-obsolete NeighboringCellInfo.
From a debug perspective, this info is a subset of the
other info already present, so it just adds clutter
without adding any value.

Bug: 78791811
Test: manual
Change-Id: Iaf275f81e276f63bdd9651ac60a5485bf5bdf160
2018-05-17 11:46:23 -07:00
Nathan Harold
2ad8e91638 [Telephony Debug Menu] Add Link Capacity Estimate
Register for the Link capacity estimate for the
cellular default data connection and report it
in the debug menu.

Bug: 78791811
Test: manual
Merged-In: I73d945dfa192873936107902e0de6d58fc69059b
Change-Id: I73d945dfa192873936107902e0de6d58fc69059b
(cherry picked from commit f10ea32d55)
2018-05-17 11:47:00 -07:00
Nathan Harold
5b63c26dbc [Telephony Debug Menu] Add Physical Channel Config
Add a field to display the PhyChanConfig and register
for this event as part of the PhoneStateListener.

Bug: 78791811
Test: manual
Merged-In: Ic038aa65655f8efa98bf1d6388e7c61761d2eb4a
Change-Id: Ic038aa65655f8efa98bf1d6388e7c61761d2eb4a
(cherry picked from commit 433ca4427c)
2018-05-17 11:46:33 -07:00
Nathan Harold
de3a431abb [Telephony Debug Menu] LTE BW and Serving CellInfo
Add debug menu support for the serving cell status
indication and the LTE bandwidth in the CellInfo
display.

Bug: 78791811
Test: manual
Merged-In: Ic51858131af671317431e0970bdcaeebcb460931
Change-Id: Ic51858131af671317431e0970bdcaeebcb460931
(cherry picked from commit 6e16fdf399)
2018-05-17 11:46:23 -07:00
Matthew Fritze
d9e19a554f [automerger skipped] Add Wifi Slice am: 46aa586610
am: b877c174a6  -s ours

Change-Id: I409a86b3ed0f76e5df9f5d9734a1f8fc286fe710
2018-05-17 11:44:59 -07:00
Matthew Fritze
b877c174a6 Add Wifi Slice
am: 46aa586610

Change-Id: If12651655b7b360ee3ed886a111f35e614a2c818
2018-05-17 11:35:43 -07:00
TreeHugger Robot
f868f86672 Merge "Add Wifi Slice" 2018-05-17 18:21:16 +00:00
TreeHugger Robot
4131e0581f Merge "Import translations. DO NOT MERGE" 2018-05-17 18:18:29 +00:00
Daniel Nishi
4e9d52791b Make the night display suggestion depend on a flag.
This allows it to be enabled/disabled on certain devices.

Change-Id: I7b73bb866b05b92588e15ef7ffc2834cdde041ce
Fixes: 78601616
Test: Settings robotest
2018-05-17 10:29:59 -07:00
Doris Ling
431a506a8f Merge "Add resource for Backup summary." 2018-05-17 17:27:46 +00:00
Matthew Fritze
6feddd6954 Add Wifi Slice
Add a custom Wifi Slice to the Settings Slice Provider.
It needs a custom Slice because of the complicated listener logic
in the MasterSwitchPreferenceController, which makes it hard to
work-in synchronous set/get logic.

The one-off Slice requires extra changes, including:
- Including it in getDescendants
- Handling changes to wifi by the framework

This is the first change that uses SettingsLib's broadcast relay,
which allows settings to (un)register IntentFilters to a Uri,
allowing Settings Slices affected by the framework (quicksettings,
connectivity related, volume, etc) to be updated without action
on the Slice.

Bug: 70622039
Bug: 67997332
Test: robotests
Change-Id: Ibfe4736beecb833e3f6bb871b2eb5228a5fd3a34
2018-05-17 10:16:55 -07:00
Matthew Fritze
46aa586610 Add Wifi Slice
Add a custom Wifi Slice to the Settings Slice Provider.
It needs a custom Slice because of the complicated listener logic
in the MasterSwitchPreferenceController, which makes it hard to
work-in synchronous set/get logic.

The one-off Slice requires extra changes, including:
- Including it in getDescendants
- Handling changes to wifi by the framework

This is the first change that uses SettingsLib's broadcast relay,
which allows settings to (un)register IntentFilters to a Uri,
allowing Settings Slices affected by the framework (quicksettings,
connectivity related, volume, etc) to be updated without action
on the Slice.

Fixes: 70622039
Fixes: 67997332
Test: robotests
Change-Id: Ia76738dd6baacd5522d52df2c61ebad86a600282
Merged-In: Ibfe4736beecb833e3f6bb871b2eb5228a5fd3a34
2018-05-17 09:58:19 -07:00
TreeHugger Robot
4050d35c9f Merge "Grey the previously connected device preference" 2018-05-17 16:30:39 +00:00
TreeHugger Robot
e593ab2f45 Merge "Fuelgauge update comment for StatsManager API" 2018-05-17 15:52:57 +00:00
Beverly
7e99c0d595 Merge "Get rid of divider above ringtone selector" into pi-dev am: 24bbc4bfe1
am: 976c1d9dd3

Change-Id: If38b79abb72a10cc7f42c5b8e8359682c3a0dc1d
2018-05-17 07:00:36 -07:00
Rubin Xu
71560fcba1 Setting should handle android.settings.SYNC_SETTINGS from managed profile
When android.settings.SYNC_SETTINGS is fired from a managed profile, Settings
should handle it properly and displays the UI to manage accounts in the profile.
Since Settings uses a unified page to display both personal and work accounts,
it should redirect the intent to the UserAndAccountDashboardActivity in user 0

Bug: 79561138
Test: adb shell am start -a android.settings.SYNC_SETTINGS --user 10
      verifies the UI is showing work accounts

Change-Id: Ib82a04ad0ec72d58d60569e38538c5dbd6181bf0
2018-05-17 14:55:58 +01:00
Beverly
976c1d9dd3 Merge "Get rid of divider above ringtone selector" into pi-dev
am: 24bbc4bfe1

Change-Id: I3d94d0cc0f7c6ea6c38f4dffed92af9f73d9ebc1
2018-05-17 06:51:31 -07:00
TreeHugger Robot
24bbc4bfe1 Merge "Get rid of divider above ringtone selector" into pi-dev 2018-05-17 13:34:34 +00:00
hughchen
fc6030983f Merge "Add Rename device on Bluetooth screen" into pi-dev am: 667cbc5846
am: 5783578aad

Change-Id: Ibc9a0adc76de9c411391d612238fa39d42d1ddc3
2018-05-17 02:17:55 -07:00
hughchen
b96c346f13 [automerger skipped] Merge "Bluetooth and NFC added back to Connection preferences" into pi-dev am: 273faa216e
am: 32b1a4129e  -s ours

Change-Id: If29cfc933d69a6db92ab7317323ff338bb0366ec
2018-05-17 02:17:20 -07:00
hughchen
5783578aad Merge "Add Rename device on Bluetooth screen" into pi-dev
am: 667cbc5846

Change-Id: Ib44bc3f768769dc9089a33543912faf871fafab5
2018-05-17 02:13:56 -07:00
hughchen
32b1a4129e Merge "Bluetooth and NFC added back to Connection preferences" into pi-dev
am: 273faa216e

Change-Id: I01c054196b04b66677708711be0d298ef2c24041
2018-05-17 02:13:22 -07:00
TreeHugger Robot
667cbc5846 Merge "Add “Rename device” on Bluetooth screen" into pi-dev 2018-05-17 09:08:30 +00:00
TreeHugger Robot
273faa216e Merge "Bluetooth and NFC added back to Connection preferences" into pi-dev 2018-05-17 09:06:18 +00:00
hughchen
0404968d8b Grey the previously connected device preference
* For fix the TreeHugger error in pi-dev, cherry pick the ag/3935357 in
  master and fix TreeHugger error.
* Add PreviouslyConnectedDevicePreferenceController to handle the preference should be
  enable or disable.
  Example: If there are no previously connected devices disable the preference otherwise
  enable it.
* Add PreviouslyConnectedDevicePreferenceControllerTest
  1. Verify the callback can be registered and unregistered
  2. Verify the preference is enable when there
     have more than 1 previously connected device
  3. Verify the preference is disable when there
     have no previously connected device

Bug: 78250052
Test: make -j50 RunSettingsRoboTests
Change-Id: I31b5d416aaf907c3bbf1cb61de6e7401463e3df7
2018-05-17 16:55:31 +08:00
hughchen
1aa4a78374 [automerger skipped] Update DialogFragment UI when BT device is add/remove/rename am: b6ac12eed4
am: 1e1b265e9c  -s ours

Change-Id: I65ec6ba68390c05dc75d50cf5b3ee2eaa156f281
2018-05-17 01:45:08 -07:00
hughchen
1e1b265e9c Update DialogFragment UI when BT device is add/remove/rename
am: b6ac12eed4

Change-Id: I788ef736d4d44d7224add9e2cfbd4a3fa9febc73
2018-05-17 01:41:01 -07:00
hughchen
b6ac12eed4 Update DialogFragment UI when BT device is add/remove/rename
* Add AudioSwitchCallback() in AudioSwitchPreferenceController.
  This callback is used to notify SoudSettings to update the dialogFragment UI.
* Add UpdatableListPreferenceDialogFragment that updates the available
  options when dialog is shown
* Add test to verify the adapter count when
  onListPreferenceUpdated() is called.

Bug: 77783217
Test: make -j50 RunSettingsRoboTests
Change-Id: I8cac1b30ec50df026f4b7722dd1cd2f69e77a4cb
Merged-In: I8cac1b30ec50df026f4b7722dd1cd2f69e77a4cb
2018-05-17 07:40:52 +00:00
Nathan Harold
68300f5a0f Merge changes from topic "pi-telephonydebugmenu" into pi-dev am: 0cf2e41bf8
am: 16f37ed5f0

Change-Id: If69966f603c87a07e506f82bf5d8eabda22e70ae
2018-05-16 22:11:50 -07:00
Nathan Harold
518dd7f2cb [Telephony Debug Menu] Add Physical Channel Config am: 433ca4427c
am: 1c99f9bb7e

Change-Id: I3df4739097f9394178b99ee963f4004bcf877b9c
2018-05-16 22:11:15 -07:00