Commit Graph

58393 Commits

Author SHA1 Message Date
Quang Luong
73c168162b Remove WifiEntry transitional security types
WifiEntry should only supply one security type through getSecurity(),
and transitional types should be converted to the security type that
will be used for connection.

Test: build
Bug: 70983952
Change-Id: I977f6b955b7794124e9b90ad4655cd2a2a30cb6e
2020-01-14 17:08:45 -08:00
Bonian Chen
e90436aa25 Merge "[Settings] Add permission for #getCdmaRoamingMode and use value from TelephonyManager Bug: 145788881 Test: make Change-Id: Idf237f008af2ab6cab07689f1f2a602f6a98c4f1" 2020-01-15 01:04:02 +00:00
Bonian Chen
ba29424fb5 Merge "Remove reference of Phoneconstants for SUBSCRIPTION_KEY" 2020-01-15 01:03:41 +00:00
Bonian Chen
a82788f554 Merge "[Settings] Remove null checking for TelephonyManager" 2020-01-15 01:03:07 +00:00
TreeHugger Robot
709e805e47 Merge "WiFi certificates installable from Wifi sub-preference" 2020-01-14 21:47:37 +00:00
Shafik Nassar
96cb3d732c Merge "Increase char limit for manage_external_storage_title" 2020-01-14 21:47:04 +00:00
Jay Aliomer
c31c35fb19 Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.

Test: run all settings tests
Change-Id: If96fc050159724d553acb09c2da4fab1d5ff519f
2020-01-14 16:31:29 -05:00
David Su
76e22fcc42 Merge "SettingsUnitTests: migrate to @SystemApi Builders for WifiInfo & NetworkSelectionStatus" 2020-01-14 18:06:28 +00:00
Etan Cohen
80c0ca2a27 Merge "[DPP] Read the remote band support EXTRA" 2020-01-14 16:36:44 +00:00
SongFerngWang
521ebeafd3 Mainline: removed legacy UI for network selection mode.
Framework does not support getAvailableNetworks(), so legacy
UI does not work. Removed legacy UI for network selection mode.

Bug: 147404387
Test: 1.make RunSettingsRoboTests ROBOTEST_FILTER=\
NetworkScanHelperTest(PASS)
2.make RunSettingsRoboTests \
ROBOTEST_FILTER=NetworkSelectSettingsTest(PASS)
Change-Id: I421526e844100b08e0c39e6e993ca09d1fad8457
2020-01-14 23:23:29 +08:00
Kenny Guy
1c045dbf49 Tie new category key to the adaptive battery settings page.
Bug: 146438499
Test: Manual, attempted to inject settings via a system app and succeeded

Change-Id: I8e506e82843b08213927b5bffe969e18d2452379
2020-01-14 14:26:59 +00:00
shafik
0f313aecb6 Increase char limit for manage_external_storage_title
Was 30, but was asked by linguists to increase it to 35.
This CL inscreases the limit to 40.

Test: build
Fixes: 147650566
Change-Id: Ia855293cb42bac4c08a23d47be4a3eaa9e13af7c
2020-01-14 14:09:07 +00:00
Alex Johnston
caef4f80a7 WiFi certificates installable from Wifi sub-preference
Updated the intent to use certificate_install_usage as the extra
instead of install_as_uid.

Bug: 147473033
Test: manual testing
Change-Id: Ic2df3c3c3dc213b8761282d64bde528c1616c44a
2020-01-14 12:39:15 +00:00
Arc Wang
4271ee3818 [Wi-Fi] Change comment of the string "wifi_auto_connect_title"
New comment provide more information about the Auto-connect
feature label.

Bug: 136472407
Test: make
Change-Id: I306b61c97cbd6ab9efb0e20dbb06de01ae788fa8
2020-01-14 19:28:50 +08:00
hughchen
c770c9133a Update output switch UI
This CL include following update:

1. Add onDeviceAttributesChanged() callback to update UI
   when device attributes are changed.
2. Fix the top device when user press device to transfer.
3. Update UI when device is on goning call state and receive
   STREAM_DEVICES_CHANGED_ACTION intent.

Bug: 144535188
Test: make -j42 RunSettingsRoboTests
Change-Id: Idd5fb95054db30f8184faf4f6ab75d0b550907a1
2020-01-14 16:45:28 +08:00
hughchen
0ab3283ccf Update api name
Use CachedBluetoothDevice.connect() instead of
CachedBluetoothDevice.connect(boolean) to connect
Bluetooth device.

Fixes: 141582844
Test: manually
Change-Id: I8c50678bdfd6de89fb8d56122bfa38bdd5ac5c9d
2020-01-14 16:10:06 +08:00
zoey chen
698e2ed95e [Settings] To avoid use APIs in IccCard directly, calling APIs through TelephonyManager
Bug: 146983487
Test: manual
Change-Id: I4bf1341f972639829cd9fc64370018127460a65f
2020-01-14 16:02:04 +08:00
Lee Chou
81c46dc9b8 Ignoring more Telephony related tests
Some tests have been broken due to mainline changes, Ignoring them for
now.

Bug: 147464840
Test: m RunSettingsRoboTests
Change-Id: I3dcadb2ae1bcac4e3a47e9a617172b3ecf571eb1
2020-01-14 16:01:50 +08:00
tom hsu
a381196b8b Remove reference of Phoneconstants for SUBSCRIPTION_KEY
- use SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX instead of it

Test: make
Test: m RunSettingsRoboTests
Change-Id: Ic635b11c995077ebf1e143d9562b100d7730fe52
2020-01-14 15:31:02 +08:00
Zhen Zhang
d0811849ec Merge "Create a fragment class for the new "Hotspot & tethering" screen" 2020-01-14 07:03:12 +00:00
tom hsu
72e5cecd2a Remove reference to PhoneConstant.
Create static constant in SimStatusDialogController.

Test: make
Test: m RunSettingsRoboTests
Change-Id: I2e1b9ac5b9ab051876f1bb26866d055f822bac90
2020-01-14 06:40:28 +00:00
Jason Hsu
d53cbefcc0 Merge "Accessibility shortcut secondary action - handle all preferred shortcut type key" 2020-01-14 05:53:38 +00:00
Jason Hsu
d5095abc91 Merge "Accessibility shortcut secondary action - legacy type fragment only have hardware shortcut" 2020-01-14 05:53:19 +00:00
TreeHugger Robot
424b44c6d1 Merge "Include settings app compat config in the build." 2020-01-14 05:44:38 +00:00
Jason Hsu
d8e3fbc5f7 Merge "Accessibility shortcut secondary action - Settings view status link with checkbox" 2020-01-14 04:30:10 +00:00
jasonwshsu
fb576356aa Accessibility shortcut secondary action - handle all preferred shortcut type key
- save and restore all preferredShortcutType: SOFTWARE, HARDWARE, TRIPLETAP

Bug: 142530063
Test: manual
Change-Id: I7dd714d1516f49e89c42822241f9cb2b41ae2d2e
2020-01-14 12:15:14 +08:00
Betty Chang
d60c780c0d Merge "[Mainline] Use SmsManager method instead of ISms" 2020-01-14 03:51:34 +00:00
Jason Hsu
fd17fcbf11 Merge "Accessibility shortcut secondary action - Invisible type fragment need to handle AccessibilityServiceState" 2020-01-14 02:46:46 +00:00
Etan Cohen
af76fb83a2 [DPP] Read the remote band support EXTRA
Bug: 139381558
Test: use demo app (WifiEasyConnect.apk) to send information, observe logs
Change-Id: I23a6e90c450c4b094000fb16c3c2f89eea3b0ef9
2020-01-13 18:31:49 -08:00
Automerger Merge Worker
1d896d97de [automerger skipped] Merge "Add a RTT setting in A11y screen" into qt-qpr1-dev am: fb44d744c3 am: eff77d28b9 -s ours
am skip reason: Change-Id I248654c822284473b8a8265de4a3938af89cdf7a with SHA-1 7f5986b78a is in history

Change-Id: Icde9da69d902fecbdc5bdf6ce826b2c0ac99261a
2020-01-14 01:00:30 +00:00
Automerger Merge Worker
eff77d28b9 Merge "Add a RTT setting in A11y screen" into qt-qpr1-dev am: fb44d744c3
Change-Id: I1716dc3e0b13a430ed4d5ff525b95bb09eb0b90a
2020-01-14 00:49:32 +00:00
TreeHugger Robot
fb44d744c3 Merge "Add a RTT setting in A11y screen" into qt-qpr1-dev 2020-01-14 00:38:29 +00:00
TreeHugger Robot
3225b3255d Merge "Import translations. DO NOT MERGE" 2020-01-14 00:14:48 +00:00
Automerger Merge Worker
8f4b84075a [automerger skipped] Import translations. DO NOT MERGE am: 1389dcfd02 -s ours am: fc8e7f17e1 -s ours
am skip reason: subject contains skip directive

Change-Id: Id7c539e18d0049368bf731fe26bfe9ffaacf586e
2020-01-13 23:15:00 +00:00
Automerger Merge Worker
fc8e7f17e1 [automerger skipped] Import translations. DO NOT MERGE am: 1389dcfd02 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie2ea7d30997627c72db58fc36ff0ad53664d6c27
2020-01-13 23:03:13 +00:00
Bill Yi
05c8bccf61 Import translations. DO NOT MERGE
Change-Id: I9289b815a4ae222ce411f24a3632dd513c06f5ef
Auto-generated-cl: translation import
2020-01-13 14:40:13 -08:00
Bill Yi
1389dcfd02 Import translations. DO NOT MERGE
Change-Id: Ic9b96f52ac79db1805be44d0272709c417c68801
Auto-generated-cl: translation import
2020-01-13 14:00:18 -08:00
Bonian Chen
8845af8a14 [Settings] Replacing accessing of PhoneConstants$DataState
1. Replaced by PhoneStateListner#onPreciseDataConnectionStateChanged().
2. Remove usage of hidden API SubscriptionManager#getPhoneId()

Bug: 147080692
Test: manual
Change-Id: I6e7c9910ed63e027fc02c1835853175745b31b66
2020-01-14 01:18:50 +08:00
Bonian Chen
ec344c6031 [Settings] Remove null checking for TelephonyManager
1. TelephonyManager#createForSubscriptionId(int) never returns null
   Remove null checking.
2. Adopting context#getSystemService(SubscriptionManager.class)

Bug: None
Test: make
Change-Id: Ie36dea80a4dfabbc34d9d25c50e60e4928b2f936
2020-01-14 01:01:51 +08:00
Raff Tsai
cce1a5a1f2 Fix test cases error
Fixes: 147563810
Change-Id: I500f9897c1f8a0e3bdddad15b5f8377d9bb9ded3
Test: robolectric
2020-01-13 22:57:42 +08:00
Mathew Inwood
de401bc144 Include settings app compat config in the build.
This ensures that any compact changes defined in settings work correctly
at runtime.

Include the config in the system_ext partition rather than system to
avoid breaking rules about where we're allowed to put things.

Test: m
Test: Check compat changes appear in dev settings UI.
Change-Id: I4a6dc6bfcc5de1f68e97faf905ee94b35bde5d11
2020-01-13 11:37:00 +00:00
Automerger Merge Worker
65b29905f7 [automerger skipped] Merge "Modify the code logic of OnLayoutChangeListener in Caption preferences" am: 9c79dfb493 am: 658444b986 am: c631bf2ef0 -s ours
am skip reason: Change-Id Ic5711309c5b8af9834e5439d825b4cb2ed55fe01 with SHA-1 8416d8efd7 is in history

Change-Id: I2e6237a3f5dc4623e2c3a26ed3b96aa75bbcbadf
2020-01-13 08:32:05 +00:00
jasonwshsu
802fad998e Accessibility shortcut secondary action - legacy type fragment only have hardware shortcut
- LegacyAccessibilityServicePreferenceFragment only allowed hardware shortcut, software shortcut appear is controlled by flagRequestAccessibilityButton

Bug: 142530063
Test: manual
Change-Id: I90c7246c83b5525613e22ff5f0ad03295288c53d
2020-01-13 16:28:50 +08:00
Automerger Merge Worker
c631bf2ef0 Merge "Modify the code logic of OnLayoutChangeListener in Caption preferences" am: 9c79dfb493 am: 658444b986
Change-Id: I969cf4b26db7c36917bb4b8741db8ad5833c8d7c
2020-01-13 08:20:54 +00:00
changbetty
04a3ef6e67 [Mainline] Use SmsManager method instead of ISms
Bug: 146808981
Test: make
Change-Id: I388f9e9979ce9d83d7e3daf510c9dcb3303cc5c7
2020-01-13 16:15:03 +08:00
Kevin Chang
658444b986 Merge "Modify the code logic of OnLayoutChangeListener in Caption preferences"
am: 9c79dfb493

Change-Id: I709b7be56b5192faf0466098e91911ed655ccb17
2020-01-13 00:06:28 -08:00
Kevin Chang
9c79dfb493 Merge "Modify the code logic of OnLayoutChangeListener in Caption preferences" 2020-01-13 07:44:18 +00:00
Zhen Zhang
b60e8ca294 Create a fragment class for the new "Hotspot & tethering" screen
This fragment class is created to display Wifi tether settings, Usb
tether settings and bluetooth tether settings within the single "Hotspot &
tethering" screen. By creating a new fragemnt, we can safely change the
UI by replace fragment name in xml file.
Right now, it only supports wifi tether settings and mostly copied from
WifiTetherSettings.java.

Bug: 146447611
Test: AllInOneTetherSettingsTest is created and run.
Change-Id: Icdac0d4930451e6956dbf6ef0f4b65bce96fed3f
2020-01-12 23:32:44 -08:00
jasonwshsu
5469cffa58 Accessibility shortcut secondary action - Invisible type fragment need to handle AccessibilityServiceState
- InvisibleToggleAccessibilityServicePreferenceFragment need to set
AccessibilityServiceState according to ShortcutPreference checkbox's stauts.

Bug: 142530063
Test: manual
Change-Id: I9ff21b66ebf72a51e62a958e3e391624c7925c27
2020-01-13 15:22:50 +08:00
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