Commit Graph

58043 Commits

Author SHA1 Message Date
Automerger Merge Worker
fecb9c0f79 [automerger skipped] Merge "[Settings] Remove PhoneStateIntentReceiver" am: 1a3ed7a560 am: dbc6a6395e am: 30fa13d592 -s ours
am skip reason: Change-Id Ib39ab1881484f65bc5a3834b2828c6ba98198cca with SHA-1 717e0765a5 is in history

Change-Id: Ie91fb45a508a24d6ceb7c9d31114cc848af9d6a7
2020-01-07 16:51:53 +00:00
Automerger Merge Worker
30fa13d592 Merge "[Settings] Remove PhoneStateIntentReceiver" am: 1a3ed7a560 am: dbc6a6395e
Change-Id: Iece6ca294d5c52595b3ad249a2ea1a09ae0a6e8d
2020-01-07 16:40:17 +00:00
Bonian Chen
dbc6a6395e Merge "[Settings] Remove PhoneStateIntentReceiver"
am: 1a3ed7a560

Change-Id: I3e5645099ab4449514cbf385beb099b411893bbd
2020-01-07 08:26:38 -08:00
Bonian Chen
1a3ed7a560 Merge "[Settings] Remove PhoneStateIntentReceiver" 2020-01-07 16:21:01 +00:00
Bonian Chen
ead9773772 Merge "[Settings] Code refactor" 2020-01-07 16:08:14 +00:00
TreeHugger Robot
3a2e22660e Merge "Update work profile lock in Settings to latest spec" 2020-01-07 15:11:12 +00:00
Alex Johnston
7868acfa74 Update work profile lock in Settings to latest spec
* Updated FrameLayout of work profile lock in Settings to use GlifLayout
* Removed old background image of work profile lock
* Updated text for PIN, password and pattern
* Added enterprise logo to work profile lock

Bug: 141290838
Test: Manual testing
      atest com.android.settings.password

Change-Id: Ie09974857b6c76a182a8075b9e1964a2e0af0de9
2020-01-07 14:15:28 +00:00
Bonian Chen
4061fdd19b [Settings] Code refactor
1. Replace the detection of screen on
2. Refactor updateCell method

Bug: 147263514
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=NetworkSelectSettingsTest
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=NetworkOperatorPreferenceTest
Change-Id: I1ae3ee4d1b62b488aeb2163f42878697b770be65
2020-01-07 13:21:45 +00:00
Bonian Chen
7d31f16e0f [Settings] Remove access to getSimOperator() API
Replace getSimOperator() by having SubscriptionInfo
from ProxySubscriptionManager#getActiveSubscriptionInfo().

Bug: 144263441
Test: Manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ApnEditorTest
Change-Id: I132b352dfb50a9cd3a2ddd21b347177ac0332740
Merged-In: I25cc9dc0912564b8d6f8b23b53f3eb20a51eea32
2020-01-07 12:44:30 +00:00
menghanli
f3eb2de691 Maginfy Improvement
Implements the magnify new accessbility settings UI,
including the setupwizard and a11y settings

Bug: 146019459
Test: make RunSettingsRoboTests2
Change-Id: If11849a539c7841e2db495b63132e6d02b7285c0
2020-01-07 20:28:22 +08:00
PETER LIANG
69a9f26c7c Merge "Accessibility scary dialog for android R changed." 2020-01-07 11:56:16 +00:00
Peter_Liang
ec2fa7e872 Accessibility scary dialog for android R changed.
Show scary dialog only once when toggle shortcut preference and use
  service.

Fix: b/142532185
Test: manual test
Change-Id: Ic36fdd5eec8ec20ead79ce47cd5e5e19d2ef5768
2020-01-07 11:54:27 +00:00
TreeHugger Robot
8babf97ebe Merge "Import translations. DO NOT MERGE" 2020-01-07 11:01:25 +00:00
govenliu
2b97be399f [Wi-Fi] Change constant security type definition to Wificonfig value
Remove constant security type definition and use
Wificonfiguration.Authtype() to judage same Config or not

Bug: 147258501
Test: Just change constant, so only manually check.
Change-Id: Ib6397f9b6deeec3595b51b8243e35993867460e5
2020-01-07 19:01:08 +08:00
Automerger Merge Worker
f9a2af52e5 [automerger skipped] Import translations. DO NOT MERGE am: ea38ee575c -s ours am: cb39dc74d3 -s ours
am skip reason: subject contains skip directive

Change-Id: I06623e342dc5d5ac613d1ddb6733ec5c13cfc010
2020-01-07 10:02:32 +00:00
Automerger Merge Worker
cb39dc74d3 [automerger skipped] Import translations. DO NOT MERGE am: ea38ee575c -s ours
am skip reason: subject contains skip directive

Change-Id: Ic66bd4cda32ee09da1e8759bb47cb9a0c842ec23
2020-01-07 09:51:58 +00:00
TreeHugger Robot
78ba4e2966 Merge "Update summary in Backup Settings when launch by workprofile" 2020-01-07 08:39:59 +00:00
PETER LIANG
a251678fe6 Merge "Fine-tune the layout of shortcut preference." 2020-01-07 08:10:36 +00:00
Zhen Zhang
a990206ee7 Create preference controller for each tethering option
These controllers are responsible for persisting preference values and
managing the visibility and switch state. TetherEnabler will be
listening to changes of shared prefernce values and turn on/off
corresponding type of tethering when tethering is on at that time.

Bug: 146582865
Test: tests are created for each controller class.
Change-Id: I7e601b2bd693da59269517d2988bade7475e7f12
2020-01-06 23:55:30 -08:00
Peter_Liang
9a6bf825e8 Fine-tune the layout of shortcut preference.
The checkbox position of shortcut preference is not consistent with
  others internal components.

Bug: b/147270184
Bug: b/142530063
Fix: b/147270184
Test: manual test
Change-Id: Ie1c2e5909e814180ff731c5bf0b362f6f1489dec
2020-01-07 07:06:59 +00:00
Jasper Chang
875727c2ab Merge "Create palette preview for color correction." 2020-01-07 03:20:54 +00:00
Bill Yi
ea38ee575c Import translations. DO NOT MERGE
Change-Id: I534651e241a731ea3b099e5741be1fd8778bd6f8
Auto-generated-cl: translation import
2020-01-06 18:59:23 -08:00
Betty Chang
263bc8097a Merge "[Mainline] Use the @SystemApi setAlwaysAllowMmsData in TelephonyManager for mainline" 2020-01-07 02:41:53 +00:00
JasperChang
556687661c Create palette preview for color correction.
Bug: 145968068
Test: make RunSettingsRoboTests ROBOTEST_FILTER=PaletteListViewTest
Test: make RunSettingsRoboTests2

Change-Id: If624c8ab5b6c212b5a3ad97ceac57404d34b9deb
2020-01-07 10:15:32 +08:00
Bill Yi
0fa472ca45 Import translations. DO NOT MERGE
Change-Id: I5909e79bde748893e3771495d02194c8c4f37ae2
Auto-generated-cl: translation import
2020-01-06 18:02:00 -08:00
Stanley Wang
42ca8b8801 Merge "Fix Settings search crashed." 2020-01-07 01:03:44 +00:00
Automerger Merge Worker
beab10c529 Merge "Track system server permission change" am: 2cf89ae027 am: 52b3ad3249 am: eed5099341
Change-Id: I4901bb8f8f5a9cc27e0a22044632a5d26120adc4
2020-01-06 21:35:55 +00:00
Automerger Merge Worker
eed5099341 Merge "Track system server permission change" am: 2cf89ae027 am: 52b3ad3249
Change-Id: I6a8e7376d0374f7dc11efb164f18ffc16e0b107c
2020-01-06 21:20:54 +00:00
Neil Fuller
52b3ad3249 Merge "Track system server permission change"
am: 2cf89ae027

Change-Id: I0418dde737c07142a6016823f1604e94dcbf11eb
2020-01-06 13:02:36 -08:00
Neil Fuller
2cf89ae027 Merge "Track system server permission change" 2020-01-06 19:38:25 +00:00
TreeHugger Robot
1772ec0040 Merge "[Wi-Fi] Implement Wi-Fi Auto-connect feature" 2020-01-06 09:09:20 +00:00
TreeHugger Robot
f885362e9f Merge "MAP: Add developer option to control map version" 2020-01-06 08:59:19 +00:00
Stanley Wang
e037faf830 Fix Settings search crashed.
Add the check condition in the getNonIndexableKeys to
check if the FaceManager exist or not.

Fixes: 147076221
Test: manual
Change-Id: I898c936403ce90869a9da28aa14297eb6bf5d730
2020-01-06 14:10:40 +08:00
jasonwshsu
8ef01d25fb Accessibility shortcut secondary action - save and restore shortcut key
- Implement onCheckboxClicked() to save shortcut key
- restore shortcut key when onViewCreated()
- Use preferredShortcutType to handle settings key

Bug: 142530063
Test: make -j52 RunSettingsRoboTests ROBOTEST_FILTER=AccessibilityUtilTest
Change-Id: Iabe636641968d346e52becea19b6e201ea5bc1fb
2020-01-06 13:56:48 +08:00
Chienyuan
da1ca35dc4 MAP: Add developer option to control map version
Bug: 146916756
Test: manual
Change-Id: If32db03072e02b7b2477c7da943b6b0e6a9be260
2020-01-06 11:36:00 +08:00
Bonian Chen
8b47bd8665 Merge "[Settings] Replacing accessing of PhoneConstants$DataState" 2020-01-06 02:36:36 +00:00
Arc Wang
7dda07fe81 [Wi-Fi] Implement Wi-Fi Auto-connect feature
This feature allows users to specify if a Wi-Fi network
will be auto connected after disconnection.

Bug: 136472407
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiAutoConnectPreferenceController2Test
Change-Id: I8a7c02ba3fc4cbfbfb431fa99c42279ca29e9492
2020-01-06 10:19:30 +08:00
TreeHugger Robot
708fe3c0d1 Merge "Add cross profile intent filter for more activities" 2020-01-06 02:15:53 +00:00
TreeHugger Robot
61858369d2 Merge "Fix battery tip app name is empty" 2020-01-06 02:13:25 +00:00
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