Commit Graph

58115 Commits

Author SHA1 Message Date
Yi-Ling Chuang
72da4a81f4 Make contextual card count configurable.
Decide how many card we should show at once on the homepage based on the
value in Settings Global for more flexibility. Fall back to the default
value if there is nothing set up.

Bug: 138754406
Test: robotests
Change-Id: I8d31d98eafb636a5e72af76ffec7e3dae0be3cbc
2020-01-16 16:20:56 +08:00
Automerger Merge Worker
d2fe041281 Merge "[Settings] Remove unused ImsStatusPreferenceController" am: b36f57ae5a am: 4a16d794e8 am: 40bd05a1b9
Change-Id: Ifb92c6944769ee58d45e16f6a9bde870c23bf27e
2020-01-15 23:32:17 +00:00
Automerger Merge Worker
40bd05a1b9 Merge "[Settings] Remove unused ImsStatusPreferenceController" am: b36f57ae5a am: 4a16d794e8
Change-Id: I2f2a31f5dff7b3b22794152d774e664569b2a2d8
2020-01-15 23:22:36 +00:00
Bonian Chen
4a16d794e8 Merge "[Settings] Remove unused ImsStatusPreferenceController"
am: b36f57ae5a

Change-Id: I564cb43149136f5913877497abc256a19adf02b3
2020-01-15 15:08:44 -08:00
Bonian Chen
b36f57ae5a Merge "[Settings] Remove unused ImsStatusPreferenceController" 2020-01-15 22:46:00 +00:00
Etan Cohen
903f933356 Merge "[DPP] Fix intent dispatching" 2020-01-15 19:38:56 +00:00
TreeHugger Robot
08957569be Merge "Tie new category key to the adaptive battery settings page." 2020-01-15 17:47:55 +00:00
Etan Cohen
245ced4b78 [DPP] Fix intent dispatching
Bug: 139381558
Test: verified with test app WifiEasyConnect.apk
Change-Id: If0588695b591e7ba5ba664586813c4a264a9779e
2020-01-15 17:43:14 +00:00
Automerger Merge Worker
ee683a4a73 Merge "[Settings] Replacing accessing of PhoneConstants$DataState" am: e9324b48ab am: 96e43012a1 am: dc5b5a0000
Change-Id: I8dbc15bb01fc815aa9cde6fe332903d4166289e9
2020-01-15 15:27:58 +00:00
Automerger Merge Worker
dc5b5a0000 Merge "[Settings] Replacing accessing of PhoneConstants$DataState" am: e9324b48ab am: 96e43012a1
Change-Id: I82f77b82685111e05235e8b4bdc03efe469c23bc
2020-01-15 15:13:09 +00:00
Bonian Chen
96e43012a1 Merge "[Settings] Replacing accessing of PhoneConstants$DataState"
am: e9324b48ab

Change-Id: I972571956394d81619edae2a0450dd36a68b0236
2020-01-15 07:02:18 -08:00
Bonian Chen
e9324b48ab Merge "[Settings] Replacing accessing of PhoneConstants$DataState" 2020-01-15 14:56:36 +00:00
Bonian Chen
368c885b98 [Settings] Remove unused ImsStatusPreferenceController
Legacy code clean up.

Bug: 147534443
Test: build pass
Change-Id: I4dd9c1c623296385eab6e14c10956cea27a04f75
2020-01-15 20:50:24 +08:00
TreeHugger Robot
4bc2ba2cb9 Merge "Fix tabLayout swipe direction" 2020-01-15 11:36:22 +00:00
Minche Li
8b1bf8a477 Merge "Create settings for window magnification (3/n)" 2020-01-15 11:00:04 +00:00
SongFerng Wang
92e7009d8b Merge "Mainline: removed legacy UI for network selection mode." 2020-01-15 10:12:22 +00:00
Jason Hsu
747de7edd7 Merge "Accessibility shortcut secondary action - correct magnification shortcut logic" 2020-01-15 09:45:03 +00:00
Raff Tsai
751f63a635 Fix tabLayout swipe direction
- Fix swipe direction by add layoutDirection=ltr in xml
- Reverse viewPager tab index when layoutDirection is rtl

Fixes: 147415514
Test: 1. change to rtl language
      2. Settings -> Account
      3. Swipe from left to right, should move tab to left.
      4. Swipe from right to left, should move tab to right

Change-Id: Ib5a080f4706161fd9c0f4d7f2da4d7b98946d960
2020-01-15 17:22:43 +08:00
mincheli
5b59e62ecb Create settings for window magnification (3/n)
This change is for internal test.
Add a switch preference for magnification enable mode.

Bug: 146019459
Bug: 146473544
Test: make RunSettingsRoboTests ROBOTEST_FILTER=MagnificationEnablePreferenceControllerTest -j64
Change-Id: I85fdbb5b0efc106d5301d95802b8d6b7dbe8145d
2020-01-15 16:11:38 +08:00
jasonwshsu
64426cc868 Accessibility shortcut secondary action - correct magnification shortcut logic
- correct magnification shortcut logic
- add magnification tests

Bug: 142530063
Test: make RunSettingsRoboTests -j52 ROBOTEST_FILTER=ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I15f8bccde63570e93e28399bc1730fb1afdb1242
2020-01-15 15:15:38 +08:00
TreeHugger Robot
5fae0c617c Merge "Update api name" 2020-01-15 07:03:22 +00:00
TreeHugger Robot
e5c5d3754a Merge changes I669f379d,Idd5fb950
* changes:
  Fix ConcurrentModificationException
  Update output switch UI
2020-01-15 06:26:17 +00:00
Lee Chou
162e2b92b8 Merge "Ignoring more Telephony related tests" 2020-01-15 06:24:56 +00:00
TreeHugger Robot
8415bc7ca7 Merge "[Wi-Fi] Change comment of the string "wifi_auto_connect_title"" 2020-01-15 05:13:49 +00:00
Tsung-Mao Fang
d9ca17c315 Merge "Ignore failed test cases" 2020-01-15 01:35:27 +00:00
Tsung-Mao Fang
b45c47d42d Ignore failed test cases
Test: run robotest
Bug: 14746840
Change-Id: I28b8013512b93bb64aa6dfed7c4181f19e8c3cd7
2020-01-15 09:26:24 +08:00
hughchen
1045823b3c Fix ConcurrentModificationException
Use CopyOnWriteArrayList instead of Arraylist to
avoid ConcurrentModificationException.

Bug: 147334979
Test: make -j42 RunSettingsRoboTests

Change-Id: I669f379d3eba6a086c6bd97cde2b78d92fb5c481
2020-01-15 09:23:28 +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
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
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