OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoDo not trigger card loader reloading upon screen rotation.
Yi-Ling Chuang [Wed, 20 Feb 2019 12:00:26 +0000 (20:00 +0800)]
Do not trigger card loader reloading upon screen rotation.

Use the cached loaded results when it is not the first launch.

Fixes: 123941365
Test: robotests
Change-Id: Ib6de1142b12196e997a8c19122617e9215d23655

5 years agoMerge "Add app entities widget for recently opened apps"
TreeHugger Robot [Sat, 23 Feb 2019 02:15:26 +0000 (02:15 +0000)]
Merge "Add app entities widget for recently opened apps"

5 years agoMerge "Update BT pairing dialog"
TreeHugger Robot [Sat, 23 Feb 2019 01:38:21 +0000 (01:38 +0000)]
Merge "Update BT pairing dialog"

5 years agoUpdate BT pairing dialog
jackqdyulei [Fri, 22 Feb 2019 23:31:35 +0000 (15:31 -0800)]
Update BT pairing dialog

1. Remove hardcoded color
2. Add taskAffinity for activity

Fixes: 124953564
Fixes: 124958778
Test: Manual
Change-Id: Id57fadc02e3c4fa3683632c0ad6a451117b732f1

5 years agoMerge "Add fancy animation for IA fragment"
Fan Zhang [Fri, 22 Feb 2019 22:51:18 +0000 (22:51 +0000)]
Merge "Add fancy animation for IA fragment"

5 years agoMerge "Disable App data usage preference if there's no usage data."
Doris Ling [Fri, 22 Feb 2019 22:17:38 +0000 (22:17 +0000)]
Merge "Disable App data usage preference if there's no usage data."

5 years agoMerge "Update advanced bt header"
Lei Yu [Fri, 22 Feb 2019 21:50:04 +0000 (21:50 +0000)]
Merge "Update advanced bt header"

5 years agoMerge "Don't hide "Add user" when disallowed by admin"
Pavel Grafov [Fri, 22 Feb 2019 20:11:43 +0000 (20:11 +0000)]
Merge "Don't hide "Add user" when disallowed by admin"

5 years agoMerge "Fix alignment of wifi dialog"
Lei Yu [Fri, 22 Feb 2019 19:21:24 +0000 (19:21 +0000)]
Merge "Fix alignment of wifi dialog"

5 years agoDisable App data usage preference if there's no usage data.
Doris Ling [Thu, 21 Feb 2019 23:56:19 +0000 (15:56 -0800)]
Disable App data usage preference if there's no usage data.

- when there is no usage data at all, launching the app data usage page
will show something blank, as there's no cycle with available usage
data. Check the overall historic usage to make sure that there's
usage data to be shown, otherwise, disable the preference.

Fixes: 123518021
Test: make RunSettingsRoboTests
Change-Id: I2d19f85e8618c41e2c31b9e4259cdc522f69e371

5 years agoMerge "Update subTitle of NotificationChannelSlice"
Fan Zhang [Fri, 22 Feb 2019 17:49:00 +0000 (17:49 +0000)]
Merge "Update subTitle of NotificationChannelSlice"

5 years agoMerge "Set the timeout limit of contextual card loading back to 1 second."
TreeHugger Robot [Fri, 22 Feb 2019 17:30:39 +0000 (17:30 +0000)]
Merge "Set the timeout limit of contextual card loading back to 1 second."

5 years agoMerge "Fix some test cases fail"
Fan Zhang [Fri, 22 Feb 2019 17:22:51 +0000 (17:22 +0000)]
Merge "Fix some test cases fail"

5 years agoMerge "Add onPreferenceClickListener to dnd schedule"
TreeHugger Robot [Fri, 22 Feb 2019 16:30:34 +0000 (16:30 +0000)]
Merge "Add onPreferenceClickListener to dnd schedule"

5 years agoMerge "Fix testcase error"
TreeHugger Robot [Fri, 22 Feb 2019 11:28:23 +0000 (11:28 +0000)]
Merge "Fix testcase error"

5 years agoSet the timeout limit of contextual card loading back to 1 second.
Yi-Ling Chuang [Fri, 22 Feb 2019 10:05:13 +0000 (18:05 +0800)]
Set the timeout limit of contextual card loading back to 1 second.

After making card pre binding work in paralell, the loading time is now
less than 1 second.

Bug: 124366297
Test: robotests
Change-Id: Ib5daececa73ed9e9cf62a18971c6042d9150aad7

5 years agoFix some test cases fail
tmfang [Fri, 22 Feb 2019 07:46:38 +0000 (15:46 +0800)]
Fix some test cases fail

Test: robo test
Fixes: 125599276
Change-Id: I4b1b15f69ff3021e4330bed49ac95ea871b98e92

5 years agoMerge "Add placeholder animation for face enrolling"
Kevin Chyn [Fri, 22 Feb 2019 09:21:53 +0000 (09:21 +0000)]
Merge "Add placeholder animation for face enrolling"

5 years agoFix testcase error
Raff Tsai [Fri, 22 Feb 2019 08:59:37 +0000 (16:59 +0800)]
Fix testcase error

Fixes: 125604750
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.wifi.AddNetworkFragmentTest"
Change-Id: Id787c5715d0f60491f123fab58e2b0ca3093bcd9

5 years agoAdd fancy animation for IA fragment
Mill Chen [Wed, 20 Feb 2019 09:12:49 +0000 (17:12 +0800)]
Add fancy animation for IA fragment

The animation of IA fragment is very choppy on expanding or collapsing
conditionals. So adding LayoutTransition for IA fragment makes the
animation more smoothly.

Bug: 123536786
Bug: 123537499
Test: visual, robotests
Change-Id: I731db8556ac392c9ab98bd292498ccf6c87295fb

5 years agoMerge "[Passpointv2] Implement Wi-Fi detail page for saved network"
TreeHugger Robot [Fri, 22 Feb 2019 08:06:25 +0000 (08:06 +0000)]
Merge "[Passpointv2] Implement Wi-Fi detail page for saved network"

5 years ago[Passpointv2] Implement Wi-Fi detail page for saved network
cosmohsieh [Wed, 20 Feb 2019 05:26:08 +0000 (13:26 +0800)]
[Passpointv2] Implement Wi-Fi detail page for saved network

Will show a Wi-Fi status detail page when clicking a saved network.

Bug: 124695272
Test: Manual
Change-Id: I5f32cf63f369593ad49c93ceeaace9fb623888e5

5 years agoMerge "Add progress bar for Wi-Fi DPP handshaking"
TreeHugger Robot [Fri, 22 Feb 2019 05:31:33 +0000 (05:31 +0000)]
Merge "Add progress bar for Wi-Fi DPP handshaking"

5 years agoMerge "Update name of app permissions."
TreeHugger Robot [Fri, 22 Feb 2019 04:17:52 +0000 (04:17 +0000)]
Merge "Update name of app permissions."

5 years agoAdd placeholder animation for face enrolling
Kevin Chyn [Fri, 22 Feb 2019 01:52:17 +0000 (17:52 -0800)]
Add placeholder animation for face enrolling

Bug: 111548033

Test: Builds
Change-Id: I0c8af1c24cc7c11f9d2c2a98b23d11b21b63547e

5 years agoAdd progress bar for Wi-Fi DPP handshaking
Arc Wang [Wed, 20 Feb 2019 09:17:59 +0000 (17:17 +0800)]
Add progress bar for Wi-Fi DPP handshaking

Bug: 124127483
Test: manual test
Change-Id: I1c3da5bab98da57ca8cf10509f339e99b01ebdbf

5 years agoMerge "Remove all reference to settings_side_margin."
TreeHugger Robot [Fri, 22 Feb 2019 03:28:20 +0000 (03:28 +0000)]
Merge "Remove all reference to settings_side_margin."

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 22 Feb 2019 02:32:31 +0000 (02:32 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years ago[automerger skipped] Import translations. DO NOT MERGE am: 02681df33f -s ours
Bill Yi [Fri, 22 Feb 2019 02:18:56 +0000 (18:18 -0800)]
[automerger skipped] Import translations. DO NOT MERGE am: 02681df33f -s ours
am: 1b7db3cb3e -s ours
am skip reason: subject contains skip directive

Change-Id: Ic70c8fb15bf6782a939c35d7a55a636e6b7def60

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Fri, 22 Feb 2019 02:14:54 +0000 (18:14 -0800)]
[automerger skipped] Import translations. DO NOT MERGE
am: 02681df33f -s ours
am skip reason: subject contains skip directive

Change-Id: Ib86fee981b4acd47fa9dc91011fe8d88fd7230c8

5 years agoMerge "Fix issue that the wifi calling text cannot be customized based on sim"
Youming Ye [Fri, 22 Feb 2019 01:55:59 +0000 (01:55 +0000)]
Merge "Fix issue that the wifi calling text cannot be customized based on sim"

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 22 Feb 2019 00:40:33 +0000 (16:40 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ibed56c778ac43fbfa0c4ca9973b894b9cf8e5f63

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Feb 2019 23:23:35 +0000 (15:23 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ibd2044c3c61557678d3c1dad06570f8df1e5f1b6
Auto-generated-cl: translation import

5 years agoFix alignment of wifi dialog
jackqdyulei [Thu, 21 Feb 2019 21:25:21 +0000 (13:25 -0800)]
Fix alignment of wifi dialog

Use Start/End instead of Left/Right

Fixes: 124672866
Test: Manual
Change-Id: Ib75634b751f41e4999e4f8e3ffb014c191c517f0

5 years agoMerge "Add checks on multisim capabilities."
Michele Berionne [Thu, 21 Feb 2019 21:24:44 +0000 (21:24 +0000)]
Merge "Add checks on multisim capabilities."

5 years agoUpdate name of app permissions.
Joel Galenson [Thu, 21 Feb 2019 20:44:15 +0000 (12:44 -0800)]
Update name of app permissions.

Bug: 125018087
Test: See new name.
Change-Id: I036fec254bca3c0ce15843375e632fcb359898db

5 years agoUpdate advanced bt header
jackqdyulei [Thu, 14 Feb 2019 23:56:52 +0000 (15:56 -0800)]
Update advanced bt header

1. Add callback to listen to device update
2. Add charging support for bt battery icon
3. When disconnected, only show main icon

Follow CL will update battery icon to show exclamation when it is
low.

Bug: 124455912
Test: RunSettingsRoboTests
Change-Id: I03fb3bf4c4b77711e14b1f2f53733771b525fe4b

5 years agoMerge "Migrate emegency default app to role manager."
Hongming Jin [Thu, 21 Feb 2019 20:37:53 +0000 (20:37 +0000)]
Merge "Migrate emegency default app to role manager."

5 years agoMerge "Fix test cases for Privacy package"
TreeHugger Robot [Thu, 21 Feb 2019 19:31:32 +0000 (19:31 +0000)]
Merge "Fix test cases for Privacy package"

5 years agoMerge "Dynamically return the uri of WifiSlice."
TreeHugger Robot [Thu, 21 Feb 2019 18:55:40 +0000 (18:55 +0000)]
Merge "Dynamically return the uri of WifiSlice."

5 years agoRemove all reference to settings_side_margin.
Doris Ling [Thu, 21 Feb 2019 00:33:24 +0000 (16:33 -0800)]
Remove all reference to settings_side_margin.

- since the overlay of the value for bigger screen has been removed,
the side margin is now always 0dp. Remove this dimen value and all
reference to it.

Fixes: 124526984
Test: rebuild and visual
Change-Id: I68ff42513a379111042cab9b34594822544e246e

5 years agoMerge "developer-options: avoid oem-unlock preference controller crash"
TreeHugger Robot [Thu, 21 Feb 2019 18:00:23 +0000 (18:00 +0000)]
Merge "developer-options: avoid oem-unlock preference controller crash"

5 years agoMerge "Enlarge the touch area of the avatar"
TreeHugger Robot [Thu, 21 Feb 2019 17:38:15 +0000 (17:38 +0000)]
Merge "Enlarge the touch area of the avatar"

5 years agoMerge "Fix Talkback issue"
TreeHugger Robot [Thu, 21 Feb 2019 17:23:35 +0000 (17:23 +0000)]
Merge "Fix Talkback issue"

5 years agoAdd onPreferenceClickListener to dnd schedule
Beverly [Thu, 21 Feb 2019 15:52:27 +0000 (10:52 -0500)]
Add onPreferenceClickListener to dnd schedule

- Talkback says the preference is clickable

Test: manual
Bug: 124827588
Change-Id: I1cf5ae564eb0a7ddfa60e1c307f00194f9338a13

5 years agodeveloper-options: avoid oem-unlock preference controller crash
bohu [Thu, 14 Feb 2019 16:23:25 +0000 (08:23 -0800)]
developer-options: avoid oem-unlock preference controller crash

If there is no FEATURE_TELEPHONY_CARRIERLOCK.

BUG: 123583878

Test: lunch sdk_phone_x86-eng
make -j
emulator
the Settings->System->Developer options should not crash

Test:
make RunSettingsRoboTests ROBOTEST_FILTER=OemUnlockPreferenceControllerTest
should all pass (12 tests: 11 existing and 1 new)

Change-Id: I18c08c1ff1a7860616b0081ede4eb19dcfa8814b

5 years agoUpdate subTitle of NotificationChannelSlice
Yanting Yang [Thu, 21 Feb 2019 15:12:15 +0000 (23:12 +0800)]
Update subTitle of NotificationChannelSlice

If there are <=3 channels, should not have the "Tap to manage all".

Fixes: 124461104
Test: visual, robotests
Change-Id: Iebb957c65b8ca53f4c5d482041837338b7b3bbf2

5 years agoDon't hide "Add user" when disallowed by admin
Pavel Grafov [Wed, 20 Feb 2019 18:03:13 +0000 (18:03 +0000)]
Don't hide "Add user" when disallowed by admin

Bug: 125226170
Test: atest tests/robotests/src/com/android/settings/users/UserSettingsTest.java
Test: manual, with TestDPC
Change-Id: I347fae04030e04325a5ee5c634f782e554ece263

5 years agoMerge changes from topic "homepage_latency"
TreeHugger Robot [Thu, 21 Feb 2019 10:10:39 +0000 (10:10 +0000)]
Merge changes from topic "homepage_latency"

* changes:
  Make slices precheck executes in parallel.
  Use a better way to bind slice for slice precheck.

5 years agoFix Talkback issue
Raff Tsai [Thu, 21 Feb 2019 09:24:15 +0000 (17:24 +0800)]
Fix Talkback issue

It is a button without text. Talkback will focus on this item.
We hide this item from layout so that Talkback will not find it.

Fixes: 125065965
Test: Test it with Talkback
Change-Id: I143c02b13b9f888fa5837dd2c472cf69bd00edcf

5 years agoEnlarge the touch area of the avatar
Sunny Shao [Wed, 20 Feb 2019 10:06:37 +0000 (18:06 +0800)]
Enlarge the touch area of the avatar

Use the padding to enlarge touch area.

Fixes: 124797089
Test: manual
Change-Id: Ief2296f015f021ca4d7e4cba0ca14ac0eada972b

5 years agoAdd app entities widget for recently opened apps
tmfang [Wed, 30 Jan 2019 07:57:13 +0000 (15:57 +0800)]
Add app entities widget for recently opened apps

If there is no recently opened app should be shown,
just show up an "All apps" preference.

If there are some recently opened apps, we show up
result with app entites controller.

- Clean up some useless ui. (category)
- User BasePreferenceController
- Modify test cases.

Test: robotest, visual
Change-Id: I411f61ed32eaaed97921941fd5026f1d65308d00
Fixes: 123538183

5 years agoDynamically return the uri of WifiSlice.
Yi-Ling Chuang [Mon, 18 Feb 2019 09:39:05 +0000 (17:39 +0800)]
Dynamically return the uri of WifiSlice.

WifiSlice is used by both ContextualWifiSlice and WifiSlice itself.
In contextual homepage, we provide contextual_wifi slice for the
homepage. So in our slice pre-check, contextual_wifi slice will gets
pinned and bound. But when it comes to the state where wifi is on but
not connected, it actually returns wifi slice instead of contextual_wifi
slice, which will hit slice not pinned exception as wifi slice never
gets pinned.

Thus, we have to dynamically return the corresponding uri to  avoid this.

Fixes: 124627340
Test: robotests
Change-Id: I54ba255871628bb8eb814442f990a5d1149461e0

5 years agoMerge "Fix preferences ordering issue in AccountSyncSettings"
Yanting Yang [Thu, 21 Feb 2019 07:36:53 +0000 (07:36 +0000)]
Merge "Fix preferences ordering issue in AccountSyncSettings"

5 years agoMake slices precheck executes in parallel.
Yi-Ling Chuang [Thu, 14 Feb 2019 13:31:11 +0000 (21:31 +0800)]
Make slices precheck executes in parallel.

Slice binding takes up sometime which may cause latency.
Thus, making it run in parallel instead of sequentially to improve the
performance and avoid hitting the timeout problem.

Bug: 124366297
Fixes: 123668403
Test: robotests, unit tests
Change-Id: I5d9fa4605f59e2acef65aadf6fce85df36d8fff1

5 years agoFix test cases for Privacy package
tmfang [Thu, 21 Feb 2019 06:52:39 +0000 (14:52 +0800)]
Fix test cases for Privacy package

Test: robotest
Fixes: 124970652
Change-Id: I165a1658a4a40499e0b9ec6dd03ada86b9631b06

5 years agoUse a better way to bind slice for slice precheck.
Yi-Ling Chuang [Thu, 14 Feb 2019 12:36:20 +0000 (20:36 +0800)]
Use a better way to bind slice for slice precheck.

Calling Slice.bindSlice() directly will cause the exception stating that
slices are not pinned, which sometimes leads to crash. Hence, change the
way we bind slices which handles pinSlice() for us before onBindSlice().

Bug: 120552892
Test: robotests, unit tests
Change-Id: I3e65c6b79876dbee5db6f19387bc6b675f734161

5 years agoMerge "String change for Permissions Dashboard"
TreeHugger Robot [Thu, 21 Feb 2019 05:35:44 +0000 (05:35 +0000)]
Merge "String change for Permissions Dashboard"

5 years agoMerge "Replace deprecated KeyguardManager API with new BiometricPrompt one"
TreeHugger Robot [Thu, 21 Feb 2019 03:05:02 +0000 (03:05 +0000)]
Merge "Replace deprecated KeyguardManager API with new BiometricPrompt one"

5 years agoString change for Permissions Dashboard
tmfang [Thu, 21 Feb 2019 02:23:05 +0000 (10:23 +0800)]
String change for Permissions Dashboard

Test: visual
Bug: 125018087
Change-Id: I02bd34347eb78531e754295262a1a08b47c6402e

5 years ago[automerger skipped] Merge "Schematize Crypto system properties" am: b837a44716 am...
Kiyoung Kim [Thu, 21 Feb 2019 01:29:45 +0000 (17:29 -0800)]
[automerger skipped] Merge "Schematize Crypto system properties" am: b837a44716 am: a078a02c42
am: 9602f7eb0b -s ours
am skip reason: change_id I65a6ce1a682687702f4c8b5c2e054eaaf91c389b with SHA1 3737da3ae6 is in history

Change-Id: I1bfc2de7781bb2036c68daae22d45b3738c4b30e

5 years agoMerge "Schematize Crypto system properties" am: b837a44716
Kiyoung Kim [Thu, 21 Feb 2019 01:07:08 +0000 (17:07 -0800)]
Merge "Schematize Crypto system properties" am: b837a44716
am: a078a02c42

Change-Id: Ie498a453d85651904d98b0501d895e15cabfb317

5 years agoMerge "Schematize Crypto system properties"
Kiyoung Kim [Thu, 21 Feb 2019 00:34:01 +0000 (16:34 -0800)]
Merge "Schematize Crypto system properties"
am: b837a44716

Change-Id: I55c43d3d1273e2c79ab29c60a714a97d2ca0f264

5 years agoMerge "Schematize Crypto system properties"
Kiyoung Kim [Thu, 21 Feb 2019 00:16:45 +0000 (00:16 +0000)]
Merge "Schematize Crypto system properties"

5 years agoMerge "Update char limit"
Fan Zhang [Wed, 20 Feb 2019 23:10:17 +0000 (23:10 +0000)]
Merge "Update char  limit"

5 years agoUpdate char limit
Fan Zhang [Wed, 20 Feb 2019 23:07:28 +0000 (15:07 -0800)]
Update char  limit

Fixes: 124535061
Test: manual
Change-Id: I17a3c7b93b09f6f6d02ab36df3dd9a16bebd7294

5 years agoMerge "Add event logging for changing SmsDefaultDialog window attr"
TreeHugger Robot [Wed, 20 Feb 2019 22:56:29 +0000 (22:56 +0000)]
Merge "Add event logging for changing SmsDefaultDialog window attr"

5 years agoMerge "Use MATCH_ALL to query available browsers."
TreeHugger Robot [Wed, 20 Feb 2019 21:31:21 +0000 (21:31 +0000)]
Merge "Use MATCH_ALL to query available browsers."

5 years agoAdd event logging for changing SmsDefaultDialog window attr
Fan Zhang [Wed, 20 Feb 2019 21:13:41 +0000 (13:13 -0800)]
Add event logging for changing SmsDefaultDialog window attr

Bug: 120484087
Test: manual
Change-Id: Ia5b00f79f2e54cb40377abb18c1ac07891020ae2

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am...
Xin Li [Wed, 20 Feb 2019 20:16:32 +0000 (12:16 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am: d4716c1a62 -s ours am: 92fc138524 -s ours
am: b637de1cb8 -s ours
am skip reason: subject contains skip directive

Change-Id: I23b85158470a5d10ddb6a559c8f2d2fcd0154de6

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am...
Xin Li [Wed, 20 Feb 2019 19:47:29 +0000 (11:47 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master" am: d4716c1a62 -s ours
am: 92fc138524 -s ours
am skip reason: subject contains skip directive

Change-Id: I1e1a98a476c0fcda84f8d5c1d245e296b0354708

5 years agoMigrate emegency default app to role manager.
Hongming Jin [Wed, 23 Jan 2019 19:56:18 +0000 (11:56 -0800)]
Migrate emegency default app to role manager.

Bug: 123293861
Test: atest DefaultEmergencyPickerTest
Change-Id: I7bd9e2655b22a35fc3268091d38c6770911d4046

5 years agoUse MATCH_ALL to query available browsers.
Hai Zhang [Wed, 20 Feb 2019 19:23:15 +0000 (11:23 -0800)]
Use MATCH_ALL to query available browsers.

Browser intent resolution has been special for a long time, and we
need to pass MATCH_ALL to get all the candidates, then do manual
filtering later.

Bug: 116216651
Test: manual
Change-Id: I5e9b7b907005f73b7c54c3253c872d85ef7c4863

5 years agoMerge "Add pref for notification swipe direction"
TreeHugger Robot [Wed, 20 Feb 2019 19:06:42 +0000 (19:06 +0000)]
Merge "Add pref for notification swipe direction"

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"
Xin Li [Wed, 20 Feb 2019 19:06:41 +0000 (11:06 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"
am: d4716c1a62 -s ours
am skip reason: subject contains skip directive

Change-Id: If29e30a1516d869c647bb9634eb8c1d3b4b9b3f9

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: 9d8c2cc2c6...
Xin Li [Wed, 20 Feb 2019 18:16:18 +0000 (10:16 -0800)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: 9d8c2cc2c6 -s ours am: a99376f647 -s ours
am: 3003b4b39c -s ours
am skip reason: subject contains skip directive

Change-Id: I3d5eeea407f925dbc342ff8c059555c76c05fa86

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: 9d8c2cc2c6...
Xin Li [Wed, 20 Feb 2019 17:29:00 +0000 (09:29 -0800)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master am: 9d8c2cc2c6 -s ours
am: a99376f647 -s ours
am skip reason: subject contains skip directive

Change-Id: I70f7a0afed0ff3124670ac7da3a5a4d643b07970

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master
Xin Li [Wed, 20 Feb 2019 16:52:26 +0000 (08:52 -0800)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190205.001 into master
am: 9d8c2cc2c6 -s ours
am skip reason: subject contains skip directive

Change-Id: Ic2e84fd1810cf9eb661c2c4b4b32755821cf17e3

5 years agoMerge "DO NOT MERGE - Merge PPRL.190205.001 into master"
Xin Li [Wed, 20 Feb 2019 16:25:59 +0000 (16:25 +0000)]
Merge "DO NOT MERGE - Merge PPRL.190205.001 into master"

5 years agoAdd pref for notification swipe direction
Julia Reynolds [Wed, 20 Feb 2019 15:33:15 +0000 (10:33 -0500)]
Add pref for notification swipe direction

And move that and other settings under an 'advanced' category

Test: robotests
Fixes: 124099692
Change-Id: I89df276a8bc1cd56ce8530239ca02b2c4b43fa65

5 years agoFix preferences ordering issue in AccountSyncSettings
Yanting Yang [Wed, 20 Feb 2019 12:26:51 +0000 (20:26 +0800)]
Fix preferences ordering issue in AccountSyncSettings

In Pie, it's alphabetical ordering in Accounts > Account sync detail page.
But Q doesn't follow it, intend to keep the same behavior.

Fixes:124382857
Test: visual, robotests
Change-Id: I593a4cc919daa0018d3874d84978e876198aae23

5 years agoMerge changes from topic "Wi-Fi DPP error code handling"
TreeHugger Robot [Wed, 20 Feb 2019 12:45:26 +0000 (12:45 +0000)]
Merge changes from topic "Wi-Fi DPP error code handling"

* changes:
  Fix camera stop forever after error occurs while sharing or adding network
  Handle different error codes in DPP

5 years agoMerge "Update char limit for DND conditional"
TreeHugger Robot [Wed, 20 Feb 2019 10:48:35 +0000 (10:48 +0000)]
Merge "Update char limit for DND conditional"

5 years agoUpdate char limit for DND conditional
Mill Chen [Wed, 20 Feb 2019 08:16:35 +0000 (16:16 +0800)]
Update char limit for DND conditional

Increasing the character limit for the "Phone muted" to 38 in the DND
condition.

Bug: 124784648
Test: rebuild
Change-Id: I46496ee60f6757f477b0d0bbd021c43234f83222

5 years agoFix camera stop forever after error occurs while sharing or adding network
Arc Wang [Fri, 15 Feb 2019 06:21:26 +0000 (14:21 +0800)]
Fix camera stop forever after error occurs while sharing or adding network

Restart QrCamera decoding task after Wi-Fi DPP handshake fail or
Wi-Fi connection fail.

Bug: 124128539
Test: manual test
Change-Id: I6d916ed1378f50038089e2c1e2870915ca083d68

5 years agoHandle different error codes in DPP
Arc Wang [Wed, 13 Feb 2019 12:11:25 +0000 (20:11 +0800)]
Handle different error codes in DPP

Show error message for corresponding Wi-Fi DPP error code. And

1. To update error message only from each fragment,
   remove some callbacks which calls from fragment to activity.
2. After clicking 'Share Wi-Fi' button, hide it before Wi-Fi DPP handshake completes.
3. Show 'Done' button for some error codes.
4. Use ViewModel to call startEasyConnectAsConfiguratorInitiator and
   startEasyConnectAsEnrolleeInitiator because a lifecycle object
   does not receive an Executor callback after configurator change.
5. In WifiDppQrCodeScannerFragment, show an error message for 10s instead of 2s
   since new added error messages may carry more information.
6. Show a different error message for enrollee handshake success but Wi-Fi
   connection fail case.
7. stop camera when scanned a Wi-Fi DPP QR code for enrollee.
8. In QR code scanner fragment, support to show error message after
    configuration change.

Bug: 124247872
Bug: 124491247
Test: manual test
      atest WifiQrCodeTest
      atest WifiDppConfiguratorActivityTest
      atest WifiDppEnrolleeActivityTest
      atest WifiDppQrCodeGeneratorFragmentTest
      atest WifiDppQrCodeScannerFragmentTest
      atest WifiNetworkListFragmentTest
      atest WifiDppChooseSavedWifiNetworkFragmentTest

Change-Id: Id130215e9ddafac8bc4c68238deda48ce99b4255

5 years agoReplace deprecated KeyguardManager API with new BiometricPrompt one
Arc Wang [Wed, 20 Feb 2019 05:45:51 +0000 (13:45 +0800)]
Replace deprecated KeyguardManager API with new BiometricPrompt one

Use BiometricPrompt to replace KeyguardManager#createConfirmDeviceCredentialIntent

Bug: 124249685
Test: manual test
Change-Id: I7a05b8f1b08471cf9f09b3d4ce1bedc7cd529e72

5 years agoMerge "Add developer menu to enable/disable ART verifier."
TreeHugger Robot [Wed, 20 Feb 2019 03:55:40 +0000 (03:55 +0000)]
Merge "Add developer menu to enable/disable ART verifier."

5 years agoMerge "Correct behavior of "Mobile data" button on opportunistic subscriptions."
Xiangyu/Malcolm Chen [Tue, 19 Feb 2019 21:04:01 +0000 (21:04 +0000)]
Merge "Correct behavior of "Mobile data" button on opportunistic subscriptions."

5 years agoCorrect behavior of "Mobile data" button on opportunistic subscriptions.
Malcolm Chen [Tue, 12 Feb 2019 23:55:12 +0000 (15:55 -0800)]
Correct behavior of "Mobile data" button on opportunistic subscriptions.

A check was added earlier to make sure in DSDS mode only one sub
shows data on, which is not true for opportunistic subscriptions. For
them, it should always be on (enforced by Telephony) and be disabled
as it shouldn't be turned off.

Bug: 124331860
Bug: 124683219
Test: manual, robolectric
Change-Id: I53c8d881ff71ad25c418085d3eee63e55c786b8f

5 years agoMerge "Add a util method of creating Icon with Drawable"
TreeHugger Robot [Tue, 19 Feb 2019 12:25:17 +0000 (12:25 +0000)]
Merge "Add a util method of creating Icon with Drawable"

5 years agoAdd a util method of creating Icon with Drawable
Jason Chiu [Wed, 13 Feb 2019 08:07:57 +0000 (16:07 +0800)]
Add a util method of creating Icon with Drawable

- Add a util method to help create Icon with Drawable so that
users don't need to handle bitmaps
- Add support for creating with ColorDrawable

Test: robotest
Fixes: 124407373
Change-Id: I1897256821cc804a5e599d967feb84a3bcd689a9

5 years agoMerge "Visual update: update the icons for suggestions"
TreeHugger Robot [Tue, 19 Feb 2019 05:53:44 +0000 (05:53 +0000)]
Merge "Visual update: update the icons for suggestions"

5 years agoMerge "Fix janky in App info screen"
TreeHugger Robot [Tue, 19 Feb 2019 03:48:53 +0000 (03:48 +0000)]
Merge "Fix janky in App info screen"

5 years agoDO NOT MERGE - Merge PPRL.190205.001 into master
Xin Li [Mon, 18 Feb 2019 23:58:44 +0000 (15:58 -0800)]
DO NOT MERGE - Merge PPRL.190205.001 into master

Bug: 124234733
Change-Id: I3db6a7deadc7a88e071105be9ddb911da7e9bacd

5 years agoAdd developer menu to enable/disable ART verifier.
Alex Buynytskyy [Sat, 26 Jan 2019 00:22:00 +0000 (16:22 -0800)]
Add developer menu to enable/disable ART verifier.

The new developer option modifies the global setting "art_verifier_verify_debuggable"; it allows to check if the bytecode of the Debuggable Apps is correct, e.g. if it's using the correct APIs.

Test: make RunSettingsRoboTests ROBOTEST_FILTER=development
Bug: 124403695
Change-Id: I8e721d62c5ca6fb5f26d9b989a8242eece8f55ab

5 years agoVisual update: update the icons for suggestions
Mill Chen [Wed, 23 Jan 2019 02:44:39 +0000 (10:44 +0800)]
Visual update: update the icons for suggestions

- remove blue tint
- add the icons of suggestions for contextual homepage

Bug: 122310542
Test: visual, rebuild
Change-Id: I2bac139669a4218455195aebeba83d1649184895

5 years agoFix janky in App info screen
tmfang [Mon, 18 Feb 2019 03:08:24 +0000 (11:08 +0800)]
Fix janky in App info screen

If a Recycle view inside in a NestedScrollView,
The times of calling recyclerView#onCreateViewHolder()
is requal to its data set.

When there are large set of apps need to be shown,
RecyclerView will need to take many time to call
onCreateViewHolder for each item.

So, it causes the screen is janky or freeze UI when page
is loading large data set.

For now, we get rid of NestedScrollView, just use RecycleView
and AppBarLayout to have same bahavior for spinner.

Fixes: 124384314
Fixes: 123036231
Fixes: 122964660
Fixes: 123088178

Test: 1. Select show system in App info screen. Observe whether there
is any janky.
2. Select show system in App info screen, and then change device
orientation. Observer whether there is any janky.
3. Go to Settings > Apps & notifications> Advanced > Special app access >
Select "battery optimization", and then Tap drop down and select "all
apps". Observe whether ther is any janky.

Change-Id: Icd65e91eec3b32476d80cc12e9c4baa71151306a

5 years agoRemove deprecated EXCLUSIVE field from proto
Yanting Yang [Mon, 18 Feb 2019 08:25:23 +0000 (16:25 +0800)]
Remove deprecated EXCLUSIVE field from proto

Fixes: 123560880
Test: robotests
Change-Id: I6ff184dc5998d1e8eadfbfa16c8c7a85ebd75d98

5 years agoMerge "[Network Connection] Implement "show all" button for NetworkRequestDialog"
TreeHugger Robot [Mon, 18 Feb 2019 06:19:41 +0000 (06:19 +0000)]
Merge "[Network Connection] Implement "show all" button for NetworkRequestDialog"