Commit Graph

29640 Commits

Author SHA1 Message Date
jasonwshsu
5fd157b404 Accessibility shortcut secondary action - Settings view status link with checkbox
Lets settings view auto enabled by checkbox click status.

Bug: 142530063
Test: make -j52 RunSettingsRoboTests ROBOTEST_FILTER=ShortcutPreferenceTest
Change-Id: I588d2ada85ae1169f439db9c6ce254c20119b2e5
2020-01-13 15:05:47 +08:00
Menghan Li
7ad9008ce9 Merge "Support accessibility shortcut secondary action (7/n)" 2020-01-13 06:13:10 +00:00
menghanli
334dc4f20b Support accessibility shortcut secondary action (7/n)
Implements sharedPreference to keep the user preferred shortcut for each
service.

Bug: 142530063
Bug: 142531156
Test: make RunSettingsRoboTests ROBOTEST_FILTER=ToggleFeaturePreferenceFragmentTest
Test: make RunSettingsRoboTests2
Change-Id: I2a7c54ddc32764f6d88f2efed87982d469acc183
2020-01-13 12:34:04 +08:00
Jean Chen
4ae8991222 Merge "Support caption second UI structure (3/n)" 2020-01-13 02:24:01 +00:00
Kevin Chang
01357b5b73 Modify the code logic of OnLayoutChangeListener in Caption preferences
Remove the listener and add statement to refresh the text when the caption turns on.

Bug: 142632389
Test: Manual
Change-Id: Ic5711309c5b8af9834e5439d825b4cb2ed55fe01
Merged-In: Ic5711309c5b8af9834e5439d825b4cb2ed55fe01
2020-01-13 10:10:36 +08:00
Kevin Chang
ca149c7d04 Merge "Modify the code logic of OnLayoutChangeListener in Caption preferences" 2020-01-13 02:00:14 +00:00
TreeHugger Robot
82872cb253 Merge "Fix work tab app doesn't launch correct user intent" 2020-01-13 01:55:56 +00:00
Julia Reynolds
b5ea53a981 Visual updates for DND screens
(part 1), emphasizing People

Test: atest, manual
Bug: 137397357
Change-Id: I5672462feb480ea2fced70470ed7c2c8116fadfd
2020-01-11 17:03:22 +00:00
Tom Hsu
452bc35d9c Merge "Remove reference of PhoneConstant." 2020-01-11 09:39:50 +00:00
Raff Tsai
4536fae5b7 Fix work tab app doesn't launch correct user intent
- Pass user.getIndentifier() to intent

Fixes: 147357696
Test: 1. go to Settings -> Storage -> Music&Audio
      2. switch to work tab
      3. tab "Audio files"
      4. should display work profile files

Change-Id: I0d2883c45eb7b883adbaf034c0a49c5e52ba82f6
2020-01-11 09:16:24 +08:00
TreeHugger Robot
01a55e950d Merge "mainline: remove CarrierConfigManager.init" 2020-01-10 18:48:20 +00:00
tom hsu
25f1de88dd Remove reference of PhoneConstant.
Copy constants to ApnEditor from PhoneConstant

Test: make
Test: m RunSettingsRoboTests
Change-Id: I22b85799ad547aca1ce4e63af3f39bc7f29618c6
2020-01-10 17:30:18 +00:00
Sarah Chin
5ce99e22ff Merge "5G meteredness for telephony framework" 2020-01-10 16:36:48 +00:00
SongFerngWang
762e193266 mainline: remove CarrierConfigManager.init
Bug: 147469789
Test:  make RunSettingsRoboTests ROBOTEST_FILTER=\
ApnPreferenceControllerTest (PASS)
make RunSettingsRoboTests ROBOTEST_FILTER=\
CarrierPreferenceControllerTest (PASS)
Change-Id: I2a72d409574fc281e5de57d58a27551dd040d551
2020-01-10 23:12:30 +08:00
Lee Chou
e9a38a37ba Merge "Replaced reference to setPreferredNetworkType" 2020-01-10 14:50:47 +00:00
TreeHugger Robot
424a2595a7 Merge "Removed reference to PhoneConstant PHONE_TYPE_*" 2020-01-10 13:52:32 +00:00
TreeHugger Robot
581c663275 Merge "Update Dark theme slice for new behavior" 2020-01-10 13:44:19 +00:00
Sunny Shao
31c5f39d57 Update Dark theme slice for new behavior
- Add an broadcast receiver to monitor the Home key.
- Add the sClickedInSlice flag to verify Dark theme is changed by slice or not.

Bug: 142476879
Fixes: 146149658
Fixes: 146652692
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.homepage
Change-Id: I174d0c861ea3b3f793201e3b2e0ff65a1e690f4e
2020-01-10 20:12:38 +08:00
TreeHugger Robot
ca47535288 Merge "Removed reference to TelephonyManager#from" 2020-01-10 11:53:28 +00:00
TreeHugger Robot
ecebf0ef61 Merge "[Wi-Fi] Fix Wi-Fi wrong password notification can't launch editor" 2020-01-10 11:39:49 +00:00
Lee Chou
c3a453174e Removed reference to PhoneConstant PHONE_TYPE_*
replaced with TelephonyManager.PHONE_TYPE_*

Bug: 147469330
Test: m RunSettingsRoboTests
Change-Id: I286c4879d55e28707081d4cacba1a2c444f92646
2020-01-10 18:48:00 +08:00
Shafik Nassar
8b1b697711 Merge "Add activities to handle external storage intents" 2020-01-10 10:26:09 +00:00
Raff Tsai
d4089984a1 Merge "Merge work profile storage data together" 2020-01-10 10:01:56 +00:00
Arc Wang
c4b1d0f416 [Wi-Fi] Fix Wi-Fi wrong password notification can't launch editor
WifiPickerTracker gather WifiEntries at onStart but
WifiPickerTracker.getWifiEntries() may still have no WifiEntry
at onResume.

Check if there is a specified wrong password Wi-Fi network at
onWifiEntriesChanged.

Bug: 143328194
Test: manual
      Edit a Wi-Fi network with wrong password, click the wrong
      password notification, should see a Wi-Fi editor for the
      wrong password Wi-Fi network

Change-Id: I7de6e0e3eabb2cb00160709eca4951b655dc04d7
2020-01-10 17:21:00 +08:00
Lee Chou
5415922f32 Removed reference to TelephonyManager#from
Bug: 147469171
Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=MmsMessagePreferenceControllerTest
Change-Id: Icfbcd948cd5072bd2e44942bff79562f540ab2b4
2020-01-10 17:15:25 +08:00
Lee Chou
3555e1707a Replaced reference to setPreferredNetworkType
replaced with @SystemApi setPreferredNetworkTypeBitmask

Bug: 147405973
Test: make RunSettingsRoboTests ROBOTEST_FILTER=EnabledNetworkModePreferenceControllerTest
      make RunSettingsRoboTests ROBOTEST_FILTER=PreferredNetworkModePreferenceControllerTest

Change-Id: I8ae86595b104dcd16daacbf52cc8eaa5e7a3d08b
2020-01-10 16:57:53 +08:00
TreeHugger Robot
c824ef4940 Merge "softap: Use set/getPassphrase to replace set/getWpa2Passphrase" 2020-01-10 08:47:44 +00:00
TreeHugger Robot
7a3ed0ecea Merge "[Wi-Fi] Remove redundant code in WifiSettings2" 2020-01-10 08:34:10 +00:00
TreeHugger Robot
e9f52bce9d Merge "[Wi-Fi] Revert "support SAE password identifier in wifi dialog"" 2020-01-10 08:31:39 +00:00
Tsung-Mao Fang
8a91fbec72 Add a RTT setting in A11y screen
- Add RTT setting in Accessibility screen.
- Create a controller for RTT setting preference.
- Create an array strings to define the subtext.

Test: Rebuild, and visual
Change-Id: I248654c822284473b8a8265de4a3938af89cdf7a
Merged-In: I248654c822284473b8a8265de4a3938af89cdf7a
Fix: 146540478
2020-01-10 07:16:25 +00:00
TreeHugger Robot
02a90deb8f Merge "Add a RTT setting in A11y screen" 2020-01-10 07:13:14 +00:00
Sarah Chin
9ea18281ee 5G meteredness for telephony framework
Bug: 139070884
Test: atest FrameworksTelephonyTests
Change-Id: I0c8e84f74fd1f69ffc7e1046819966fcb04732a6
Merged-In: I0c8e84f74fd1f69ffc7e1046819966fcb04732a6
(cherry picked from commit 0c518d5aab)
2020-01-10 05:53:22 +00:00
Arc Wang
a6ec144392 [Wi-Fi] Revert "support SAE password identifier in wifi dialog"
Revert it because SPEC is not clear now.

Bug: 143379656
Test: manual
      Click "Add network" in wi-Fi picker and edit a WAP3-personal Wi-Fi network

Change-Id: Ifa859d53c29d0fa83f22cc2d0e50294d0a5c7fc9
2020-01-10 11:53:12 +08:00
Curtis Belmonte
5e25500beb Merge "Fix issues with SUW on fingerprint devices" 2020-01-09 22:45:12 +00:00
Raff Tsai
44a39995f2 Merge work profile storage data together
- Storage UI used to have a work profile item. Now the item is
removed, all its size should merge to other item.

Fixes: 147127503
Test: Add work profile user, in Settings -> Storage page. Sum of
each item size should be similar to used size in the top of the page.

Change-Id: I9d4e2c8c53839da22fd0cdd5d2591a3245514191
2020-01-09 19:55:43 +08:00
TreeHugger Robot
4d0fa39b2d Merge "[Wi-Fi] Edit a never connected WifiEntryPreference in WifiSettings2" 2020-01-09 11:42:53 +00:00
lesl
24a505c4eb softap: Use set/getPassphrase to replace set/getWpa2Passphrase
Bug: 142752869
Test: Manual, on/off/setting change for hotspot function
Test: make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
Change-Id: I22c89f15a6ef1c5366394431cc5aa7031a573d45
2020-01-09 19:23:41 +08:00
Arc Wang
5efa92f95f [Wi-Fi] Remove redundant code in WifiSettings2
WifiPickerTracker get WifiEntries at onStart, it's no meaning
to getWifiEntry at WifiSettings2#onActivityCreated.

Bug: 143328194
Test: manual
      Edit a Wi-Fi network by clicking context menu 'Modify',
      rotate the WiFiDialog and see if any thing wrong

Change-Id: I9746879720b72723259e1b59e8b5e8bae183b8cc
2020-01-09 18:51:58 +08:00
Bonian Chen
9ce7bad930 Merge "[Settings] Code refactor" 2020-01-09 10:37:12 +00:00
Arc Wang
50afc70f8f [Wi-Fi] Edit a never connected WifiEntryPreference in WifiSettings2
If the Wi-Fi network is never connected after it's saved,
edit it instead of connecting when users click the WifiEntryPreference.

Bug: 143328194
Test: manual
      Click a saved wrong password Wi-Fi network

Change-Id: If974ce9225fe6b6ed5f8a3c6c0ff619532acc1c2
2020-01-09 18:36:33 +08:00
Bonian Chen
f399bd1a8c [Settings] Code refactor
Bug: 147338143
Test: build pass
Change-Id: Ib4a92f659ceda3584310591f706958a06ba5ab21
2020-01-09 17:07:25 +08:00
Betty Chang
976dca2149 Merge "[Mainline] To use getActiveSubscriptionInfo() instead of get default subscription Info with data/sms/voice" 2020-01-09 08:49:48 +00:00
Betty Chang
595b8f3bc7 Merge "[Mainline] Use public method in SubscriptionManager for mainline" 2020-01-09 08:49:23 +00:00
Tsung-Mao Fang
7f5986b78a Add a RTT setting in A11y screen
- Add RTT setting in Accessibility screen.
- Create a controller for RTT setting preference.
- Create an array strings.

Test: Rebuild, and visual
Change-Id: I248654c822284473b8a8265de4a3938af89cdf7a
Fix: 146540478
2020-01-09 16:43:34 +08:00
Betty Chang
b8104d5e70 Merge "[Mainline] To use @SystemApi to replace non-formal APIs for mainline" 2020-01-09 06:50:13 +00:00
ChenJean
2c37f45a35 Support caption second UI structure (3/n)
Removed unenable behovior when turn off Show captions.

Bug: 143502915
Test: Manual
Change-Id: Idb59172967872f4c8ba76e6cdcb83ba0a7faeadd
2020-01-09 14:45:54 +08:00
Automerger Merge Worker
dc047e5746 Merge "[Settings] Avoid from accessing createManageSubscriptionIntent(int)" am: d792d20001 am: 77cc57d9c2 am: c0b3551310
Change-Id: I340af8aee92498660f7bc65cdf5540d37a2fa148
2020-01-09 06:35:41 +00:00
Automerger Merge Worker
c0b3551310 Merge "[Settings] Avoid from accessing createManageSubscriptionIntent(int)" am: d792d20001 am: 77cc57d9c2
Change-Id: Id34a3b5da71400c651e3a05198210acae155067c
2020-01-09 06:15:54 +00:00
Bonian Chen
d792d20001 Merge "[Settings] Avoid from accessing createManageSubscriptionIntent(int)" 2020-01-09 06:00:05 +00:00
Paul Chang
5d8b2cf314 Merge "Show Settings bugreport handler only when developer option is enabled" 2020-01-09 05:35:51 +00:00