Commit Graph

58356 Commits

Author SHA1 Message Date
Arc Wang
9ac285cfac Merge "[Wi-Fi] Replace some WifiEntryShell methods with WifiEntry version" 2020-01-06 02:01:13 +00:00
Raff Tsai
376ce87f00 Fix battery tip app name is empty
- Top waste app is linux process not android process. Therefore
it doesn't contains application label. Fixed by return the process
name if packages label is empty.

Fixes: 146558570
Test: follow the steps:
1. adb shell settings put global battery_tip_constants test_low_battery_tip=true
2. Unplug usb. Go to Settings -> Battery, it should show an item
"Phone used more than usual"
3. Click "phone used more than usual" item, all the items should
have title and icon.

Change-Id: I85c232bc6a048b3104c4fce0fcec2b944e8ac1b4
2020-01-06 01:14:21 +08:00
Raff Tsai
613f15a799 Add cross profile intent filter for more activities
Fixes: 144909960
Test: adb shell am start --user 10 -a
android.settings.USAGE_ACCESS_SETTINGS should start Settings and
focus on work tab.

Change-Id: I3473d74e73e3b9e8a8bbaf83065a28a4b964e8ac
2020-01-05 21:56:35 +08:00
TreeHugger Robot
fdf29da1cb Merge "Import translations. DO NOT MERGE" 2020-01-03 19:19:34 +00:00
Edgar Wang
9a2629ba84 Update summary in Backup Settings when launch by workprofile
Fixes: 143476057
Test: manual
Change-Id: I73de18e0847aa37653f655a73e1d65382121e025
2020-01-03 19:05:40 +08:00
TreeHugger Robot
da1e6b845a Merge "[Wi-Fi] Fix SavedAccessPointsPreferenceController crash when editing Settings search box" 2020-01-03 10:40:41 +00:00
Arc Wang
d90eac593a [Wi-Fi] Fix SavedAccessPointsPreferenceController crash when editing Settings search box
In getAvailabilityStatus(), refresh mAccessPoints before using it.

Bug: 147096386
Test: make RunSettingsRoboTests ROBOTEST_FILTER=SavedAccessPointsPreferenceControllerTest
Change-Id: Id6818bd7bab1effb2e4e1447b18d5f5f02d7cfca
2020-01-03 17:47:05 +08:00
TreeHugger Robot
4214463f5c Merge "Add 5G icon in manual network selection." 2020-01-03 07:41:12 +00:00
Bill Yi
078e8f62be Import translations. DO NOT MERGE
Change-Id: I674b454b87d6d07a2d18808dab5629a25f8a2bda
Auto-generated-cl: translation import
2020-01-02 22:58:12 -08:00
Jason Chiu
bcaac763d2 Merge "Add preference click metric logs for some special cases" 2020-01-03 03:30:15 +00:00
Arc Wang
644b24ccf3 Merge "[Wi-Fi] Support disconnect button for connected Wi-Fi AP" 2020-01-03 01:45:45 +00:00
Arc Wang
d1dae54f27 Merge "[Wi-Fi] Implement getDialogMetricsCategory in WifiSettings2" 2020-01-03 01:45:42 +00:00
Quang Luong
41ece633c7 Merge "[Wi-Fi] Split WifiEntryCallback into separate callbacks for each action" 2020-01-03 00:54:19 +00:00
Bonian Chen
3446cfebfa [Settings] Replacing accessing of PhoneConstants$DataState
Replaced by PhoneStateListner#onPreciseDataConnectionStateChanged().

Bug: 147080692
Test: manual
Change-Id: I0a00bac335a62079913a95bf5ab6cdb9fbcd069d
2020-01-03 08:14:42 +08:00
Curtis Belmonte
4ac1d25c2a Finish biometric enroll screens when backgrounded
Currently, there are some biometric security setting and enrollment
screens which remain open after the user has backgrounded them. This
means that they can later be resumed without requiring the user to
confirm their device credential as normal.

This commit fixes the issue in AOSP by adding logic to the affected
biometric enrollment/setting activities in to finish() with
RESULT_TIMEOUT in onStop(). We don't want to finish() these activities
prematurely if the user is currently in a wizard setup flow, however. In
that case, this commit ensures that the newly added logic will not run.

Test: Pixel 3 - Background at each step of fingerprint enroll => finish
Test: Pixel 3 - Rotate at each step of fingerprint enroll => no finish
Test: Pixel 3 - Proceed though fingerprint setup wizard => no change

Bug: 142544519
Change-Id: I8ec0fa1e30bafe097d9dc82991ff786ebf24844b
2020-01-02 11:06:29 -08:00
Bonian Chen
e520ec60aa [Settings] Remove PhoneStateIntentReceiver
1. Replace PhoneStateIntentReceiver by adopting PhoneStateListener
2. Replace TelephonyProperties.in_ecm_mode() by
TelephonyManager.getEmergencyCallbackMode()

Bug: 144331663
Change-Id: Ib127cb165c65f50851c4390b05a16dfb8024fab1
Bug: 145830780
Test: Manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=AirplaneModeEnabler
Merged-In: Ib39ab1881484f65bc5a3834b2828c6ba98198cca
2020-01-02 18:26:21 +08:00
Bonian Chen
6b7b92ced5 Merge "[Settings] Refactor AirplaneModeEnabler with test" 2020-01-02 10:19:59 +00:00
Arc Wang
08b4204643 [Wi-Fi] Replace some WifiEntryShell methods with WifiEntry version
These WifiEntryShell methods are removed:

getNetworkId
hiddenSSID
isPasspoint

Bug: 143326832
Test: build
Change-Id: I6642992a90ea18328817cb58931cc370045b1e56
2020-01-02 18:11:32 +08:00
Jason Chiu
2d609759cd Add preference click metric logs for some special cases
Bug: 137559984
Test: visual, robotest
Change-Id: If8624b49abcd0000487065160ce4a7ba861f234c
2020-01-02 17:45:23 +08:00
danielwbhuang
bf11e47a1b Add 5G icon in manual network selection.
Manual network selection need to have 5G icon when 5G signal is
available.

Bug: 143995814
Test: 1. Build pass.
2. check UI:
3-1. Open APN settings page: Settings > Network & Internet > Mobile Network > Advanced > Access Point Names
3-2. Turn off Automatically select network

Change-Id: I3664105d3bf52e3694a2274c6aa76a755de4e1dd
2020-01-02 15:59:46 +08:00
TreeHugger Robot
5df80504c3 Merge "Change DEFAULT_CARD_COUNT for settings homepage." 2020-01-02 07:39:24 +00:00
Jason Hsu
bda73ed270 Merge "Accessibility shortcut secondary action - auto hide divider in shortcutPreference" 2020-01-02 07:15:55 +00:00
Menghan Li
d889dec474 Merge "Support accessibility shortcut secondary action (6/n)" 2020-01-02 05:55:12 +00:00
Bonian Chen
717e0765a5 [Settings] Refactor AirplaneModeEnabler with test
Support auto testing

Bug: 147029746
Test: manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=AirplaneModeEnablerTest
Change-Id: Ib39ab1881484f65bc5a3834b2828c6ba98198cca
2020-01-02 12:06:00 +08:00
Bonian Chen
3e9fd2490e Merge "[Settings] Refactor AirplaneModeEnabler" 2020-01-02 03:15:51 +00:00
Tsung-Mao Fang
3fe3a1a47b Merge "Remove the @ignore flag in test file." 2020-01-02 03:04:56 +00:00
Arc Wang
0a13ae9aea Merge "[Wi-Fi] Support intent extra "wifi_start_connect_ssid" in WifiSettings2" 2020-01-01 01:17:59 +00:00
Arc Wang
5814737a49 [Wi-Fi] Implement getDialogMetricsCategory in WifiSettings2
It's necessary to implement getDialogMetricsCategory to show
dialog in WifiSettings2.

Bug: 143328194
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: I65ac4168ef922be981624e7916316f189ab590c2
2020-01-01 01:16:04 +00:00
Stanley Wang
74e42c7d6f Merge "The index implementation for face unlock settings." 2019-12-31 15:11:21 +00:00
TreeHugger Robot
82c437128d Merge "[Wi-Fi] Support intent extra "wifi_enable_next_on_connect" in WifiSettings2" 2019-12-31 11:33:45 +00:00
TreeHugger Robot
7ab84a073a Merge "[Wi-Fi] Show link speed for WifiDialog2 MODE_VIEW" 2019-12-31 11:16:18 +00:00
Stanley Wang
e81d6b7b31 The index implementation for face unlock settings.
- Index the delete face unlock preference and set up face unlock preference.

Fixes: 147031175
Test: manual
Change-Id: Ia984a116947d0c2e6a909f53914d081e25496f87
2019-12-31 18:59:46 +08:00
Stanley Wang
c3abeb3c99 Remove the @ignore flag in test file.
- Remove the @ignore flag in WifiTetherApBandPreferenceControllerTest.
  All test cases should pass.

Fixes: 147031384
Test: robotest
Change-Id: Icf7d5063b001699c644d6666c79b6e81709d704d
2019-12-31 18:15:23 +08:00
menghanli
a5d8e12766 Support accessibility shortcut secondary action (6/n)
Implements new edit shortcut dialog selection and save what user
prefered key back for color inversion, color correction, magnifiction,
downlaoded service - LEGACY, INVISIBLE, INTUITIVE case.

Bug: 142530063
Bug: 142531156
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AccessibilityUtilTest
Test: make RunSettingsRoboTests2
Change-Id: I94607db918047ae4082457dd33f17c8675934e2c
2019-12-31 17:42:06 +08:00
Arc Wang
3971d4e0c4 [Wi-Fi] Support disconnect button for connected Wi-Fi AP
Connect button becomes Disconnect button if the Wi-Fi AP
is connected.

Bug: 135891885
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=WifiDetailPreferenceController2Test
Change-Id: I0e0d485385294658170da3d37bc1cc1f8748468f
2019-12-31 17:06:44 +08:00
Bonian Chen
a72a038bb6 [Settings] Refactor AirplaneModeEnabler
1. Multiple instance of PhoneStateListener is not required.
2. It will be better to monitor radio power state changed instead of service state.

Bug: 147029746
Test: Manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=AirplaneModePreferenceControllerTest
Change-Id: I51465904ce2409b6c07c3ba80ea362d208989fbd
2019-12-31 17:02:35 +08:00
Ahmed ElArabawy
8a9ad06570 Merge "Wifi: Fix rototests for wifi tethering" 2019-12-31 08:41:11 +00:00
Arc Wang
d5ec80afc5 [Wi-Fi] Split WifiEntryCallback into separate callbacks for each action
This change uses splitted WifiEntry callbacks.

Bug: 70983952
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: I3b8e55b11d4f71e5548b4da82104dac1f5089b1b
2019-12-31 15:00:24 +08:00
Ahmed ElArabawy
2632c25f37 Wifi: Fix rototests for wifi tethering
This commit makes fixes to the wifi tethering rototests.
These fixes are done by using the proper encoding for the AP bands.

Bug: 146767071
Test: Run robotest
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: I4ddf6ea9328dabed09bc23d355efa188975316b6
2019-12-30 22:55:17 -08:00
Arc Wang
808070ccbb [Wi-Fi] Show link speed for WifiDialog2 MODE_VIEW
Now there is no WifiDialog2 MODE_VIEW use case since
they are replaced by WifiNetworkDetailsFragment2.

Should think about removing MODE_VIEW in the future,
however, we should let it work before phase out it.

Bug: 146407136
Test: build
Change-Id: I7cd470c74cea846046975b8c65fd2604702cc136
2019-12-31 14:54:31 +08:00
jasonwshsu
a2cf6a1313 Accessibility shortcut secondary action - auto hide divider in shortcutPreference
- Hide divider when settings view is gone.

Bug: 142530063
Test: manual
Change-Id: I07c9aa628c4e300d1fd21fe5b87c18ff1c294e17
2019-12-31 12:12:49 +08:00
Stanley Wang
ae89ecf8d0 Merge "Remove the unused slices." 2019-12-31 02:04:59 +00:00
Stanley Wang
9fd20149c9 Merge "Index wi-fi preferences." 2019-12-31 02:04:24 +00:00
TreeHugger Robot
d515ed7ba2 Merge "Update BrandedAccountPreferenceController" 2019-12-30 14:10:25 +00:00
Stanley Wang
0577751718 Index wi-fi preferences.
- Add xml file to index "Saved network" and "Wifi data usage"
preferences.
- Disable the "Saved network" if the access points is empty.
- Disable the "Wifi data usage" if there is no wifi radio.

Fixes: 146823365
Test: manual
Change-Id: I049d0463fd58f186dae1d5f54dcc914f52031da7
2019-12-30 19:50:18 +08:00
Stanley Wang
5ce5349167 Remove the unused slices.
Remove the DataUsageSlice, DeviceInfoSlice and EmergencyInfoSlice.

Fixes: 146994847
Test: robotest
Change-Id: Ic840e9cc93e99b3c0a34eb6536401db34c98eca8
2019-12-30 19:04:49 +08:00
Arc Wang
e8e0e5d81b Merge "[Wi-Fi] Hide the Advanced Option after expanding the advanced option fields." 2019-12-30 10:44:32 +00:00
Sunny Shao
12cef91760 Update BrandedAccountPreferenceController
Use the updateState to decide the preference display due to the displayPreference
could not be called while user press BACK key then the upper page gone and bottom
page reshow.

Fixes: 146989749
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.deviceinfo
Change-Id: I00b08b59c533ed0832ed07e6231138dd88084517
2019-12-30 18:13:37 +08:00
Bonian Chen
739ae785ff Merge "[Settings] Code refactor" 2019-12-30 08:20:39 +00:00
Automerger Merge Worker
6d56b7373a Merge "[Settings] Correct spelling in source code" am: 22c5c7d4a4 am: 42a1f866e4 am: 08b42adf46
Change-Id: I83915ffc8745cf102573e9dc7a762236ed57d696
2019-12-30 07:54:57 +00:00