OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoMerge "Make UI smoothly when switch device in MediaOuput slice" into qt-dev
TreeHugger Robot [Tue, 30 Apr 2019 01:52:37 +0000 (01:52 +0000)]
Merge "Make UI smoothly when switch device in MediaOuput slice" into qt-dev

5 years agoMerge "Only shows two suggestion cards at once." into qt-dev
TreeHugger Robot [Tue, 30 Apr 2019 00:58:18 +0000 (00:58 +0000)]
Merge "Only shows two suggestion cards at once." into qt-dev

5 years agoMerge "Fix a crash in battery settings page" into qt-dev
TreeHugger Robot [Tue, 30 Apr 2019 00:19:39 +0000 (00:19 +0000)]
Merge "Fix a crash in battery settings page" into qt-dev

5 years agoMerge "Replace the placeholder animation." into qt-dev
Leon Liao [Mon, 29 Apr 2019 23:03:02 +0000 (23:03 +0000)]
Merge "Replace the placeholder animation." into qt-dev

5 years agoFix a crash in battery settings page
Lei Yu [Mon, 29 Apr 2019 20:25:24 +0000 (13:25 -0700)]
Fix a crash in battery settings page

Regression from ag/7161923, in this case we should use onResume/onPause
pair. Also sort the method to fit android lifecycle.

Bug: 131615524
Test: RunSettingsRoboTests
Change-Id: I299032bfeb119dac293039917c6673dd4c0ef4e0

5 years agoMerge "Add null check to avoid settings crash" into qt-dev
TreeHugger Robot [Mon, 29 Apr 2019 20:26:26 +0000 (20:26 +0000)]
Merge "Add null check to avoid settings crash" into qt-dev

5 years agoMerge changes from topic "fingerprint-settings-after-enrollment" into qt-dev
TreeHugger Robot [Mon, 29 Apr 2019 18:03:45 +0000 (18:03 +0000)]
Merge changes from topic "fingerprint-settings-after-enrollment" into qt-dev

* changes:
  Show fingerprint preferences after enrolling from settings
  Run postEnroll() after enrolling from SUW

5 years agoMerge "Fix visibility and editability of importance fields" into qt-dev
TreeHugger Robot [Mon, 29 Apr 2019 17:04:02 +0000 (17:04 +0000)]
Merge "Fix visibility and editability of importance fields" into qt-dev

5 years agoMerge "Update DND strings - use pull-down shade" into qt-dev
TreeHugger Robot [Mon, 29 Apr 2019 16:50:25 +0000 (16:50 +0000)]
Merge "Update DND strings - use pull-down shade" into qt-dev

5 years agoMerge "Tweak paddings for apps filter in app info screen" into qt-dev
Fan Zhang [Mon, 29 Apr 2019 16:29:30 +0000 (16:29 +0000)]
Merge "Tweak paddings for apps filter in app info screen" into qt-dev

5 years agoAdd null check to avoid settings crash
Beverly [Mon, 29 Apr 2019 13:52:37 +0000 (09:52 -0400)]
Add null check to avoid settings crash

Test: manual
Fixes: 131580180
Change-Id: I128d1b23ca33c06f049d8fe4ca3e56c5abefae5f

5 years agoUpdate DND strings - use pull-down shade
Beverly [Mon, 29 Apr 2019 12:52:21 +0000 (08:52 -0400)]
Update DND strings - use pull-down shade

- "Notification list" updated to "pull-down shade"
- DND text messages should be messages

Test: manual
Fixes: 131434487
Change-Id: I2740a462042867e58f190f4b49e1aa7a8f1cf126

5 years agoOnly shows two suggestion cards at once.
Yi-Ling Chuang [Mon, 29 Apr 2019 10:16:30 +0000 (18:16 +0800)]
Only shows two suggestion cards at once.

Displaying too many cards may overwhelm users, so limit
the number of suggestion cards that should be displayed to two.

Fixes: 126213965
Test: robotests
Change-Id: I17c43746f475b31121c5809e0e8c6cf932efb99d

5 years agoFix visibility and editability of importance fields
Julia Reynolds [Fri, 26 Apr 2019 16:56:50 +0000 (12:56 -0400)]
Fix visibility and editability of importance fields

- Block field should always be visible
- Locked by OEM: cannot block or change importance
- Locked by default app: cannot block, can change importance
- Locked by system app: cannot block, can change importance
- system app but blockable: can block, can change importance

Test: robotests
Fixes: 131248127
Change-Id: Ifa718c84573dd5125aefa4f672a79dc4f267d515

5 years agoMerge "Set QR scan activity to light theme in setup flow" into qt-dev
Pasty Chang [Mon, 29 Apr 2019 01:52:11 +0000 (01:52 +0000)]
Merge "Set QR scan activity to light theme in setup flow" into qt-dev

5 years agoShow fingerprint preferences after enrolling from settings
Ilya Matyukhin [Sun, 28 Apr 2019 22:10:02 +0000 (15:10 -0700)]
Show fingerprint preferences after enrolling from settings

Bug: 131231334
Test: tested on blueline
Change-Id: Ifd43f28001fcb42ec61a62ad6656d2da2a0629eb

5 years agoRun postEnroll() after enrolling from SUW
Ilya Matyukhin [Sun, 28 Apr 2019 07:29:32 +0000 (00:29 -0700)]
Run postEnroll() after enrolling from SUW

Bug: 131231334
Test: tested on blueline
Change-Id: I225725edb1c3379f2f3f5bc8b5cbe9adddb49f59

5 years agoAdding new strings needed for Enable MMS toggle.
Malcolm Chen [Thu, 18 Apr 2019 20:26:58 +0000 (13:26 -0700)]
Adding new strings needed for Enable MMS toggle.

Bug: 130222866
Test: build
Change-Id: If2a5cc20260fd2d1ed000e5c5531c2c11ab58b3c

5 years agoMerge "Show "Disconnected" instead of "Saved" in detail page summary" into qt-dev
Clown SHEN [Sat, 27 Apr 2019 06:42:45 +0000 (06:42 +0000)]
Merge "Show "Disconnected" instead of "Saved" in detail page summary" into qt-dev

5 years agoTweak paddings for apps filter in app info screen
tmfang [Wed, 24 Apr 2019 08:52:00 +0000 (16:52 +0800)]
Tweak paddings for apps filter in app info screen

Since we enlarge touch target size for settings spinner widget,
we need to tweak paddings of apps filters here.

Test: visual
Bug: 131060416
Change-Id: Ic6cc4f5d480f1fc34fdbecd86f82b324f9e75964

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 06:01:25 +0000 (06:01 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 27 Apr 2019 04:51:43 +0000 (21:51 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I84b1d9a020529c12781b308c4bc7a489cd924de1

5 years agoMerge "Add a gap in the ordering for phone numbers." into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 23:00:39 +0000 (23:00 +0000)]
Merge "Add a gap in the ordering for phone numbers." into qt-dev

5 years agoMerge "Remove empty MNC filtering when retrieving available subscriptions" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 22:34:27 +0000 (22:34 +0000)]
Merge "Remove empty MNC filtering when retrieving available subscriptions" into qt-dev

5 years agoAdd a gap in the ordering for phone numbers.
Andrew Sapperstein [Fri, 26 Apr 2019 21:00:53 +0000 (14:00 -0700)]
Add a gap in the ordering for phone numbers.

Previously there was no gap which caused the second phone number to show below
Emergency info.

Fixes: 131378898
Test: visual inspection
Change-Id: If98d3442562d44f65a6e5ce896b71ee093d8616c

5 years agoRemove empty MNC filtering when retrieving available subscriptions
Antony Sargent [Fri, 26 Apr 2019 20:45:53 +0000 (13:45 -0700)]
Remove empty MNC filtering when retrieving available subscriptions

During the early phase of work on DSDS, we found that a hacky solution
to seeing duplicate subscriptions that are part of a logical group (eg
Google Fi) was to filter out the entries with empty MNC strings. It
turns out this breaks things for some legitimate eSIM subsctiptions, and
isn't needed anymore because of the fixes that landed for b/127833821.

Fixes: 130706446
Test: make RunSettingsRoboTests
Change-Id: Ic4472c1de3c3e2449139b3e2ffb20d11a0058e8a

5 years agoMerge "Remove "data usage" from search." into qt-dev
Andrew Sapperstein [Fri, 26 Apr 2019 20:28:06 +0000 (20:28 +0000)]
Merge "Remove "data usage" from search." into qt-dev

5 years agoMerge "Move SIM_SUB_INFO_SETTINGS to NetworkDashboardActivity." into qt-dev
Andrew Sapperstein [Fri, 26 Apr 2019 20:27:01 +0000 (20:27 +0000)]
Merge "Move SIM_SUB_INFO_SETTINGS to NetworkDashboardActivity." into qt-dev

5 years agoMerge "Fix toggle button is enabled state but can't click" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 20:00:48 +0000 (20:00 +0000)]
Merge "Fix toggle button is enabled state but can't click" into qt-dev

5 years agoMerge "Fix incorrect mapping to get subscriptioninfo" into qt-dev
Fan Zhang [Fri, 26 Apr 2019 19:57:09 +0000 (19:57 +0000)]
Merge "Fix incorrect mapping to get subscriptioninfo" into qt-dev

5 years agoMove SIM_SUB_INFO_SETTINGS to NetworkDashboardActivity.
Andrew Sapperstein [Thu, 25 Apr 2019 17:31:37 +0000 (10:31 -0700)]
Move SIM_SUB_INFO_SETTINGS to NetworkDashboardActivity.

Remove the entry point for SimSettings and redirect any intents to the new UI.

Filed b/131324863 to track deleting the code.

Fixes: 128859223
Bug: 131324863
Test: adb shell am start -a com.android.settings.sim.SIM_SUB_INFO_SETTINGS
shows main connectivity screens

Change-Id: I4a4ed5c34d231eaab929a923c7fcbbfc1e0ed6f3

5 years agoRemove "data usage" from search.
Andrew Sapperstein [Thu, 25 Apr 2019 22:20:14 +0000 (15:20 -0700)]
Remove "data usage" from search.

Fixes: 131324402
Test: verified manually
Change-Id: Ib72902c3eaa1f2427e9c1c835ba2939f28cf7a0d

5 years agoFix incorrect mapping to get subscriptioninfo
Fan Zhang [Wed, 24 Apr 2019 21:56:00 +0000 (14:56 -0700)]
Fix incorrect mapping to get subscriptioninfo

getActiveSubscriptionInfoList() returns a list of active subscription.
It doesn't 1:1 mapping with slotId. So it is not correct to use slotId
as index to get subscriptioninfo from list.
Use framework interface getActiveSubscriptionInfoForSimSlotIndex() to
get subscriptioninfo per slotid instead.

Fixes: 129038597
Test: robotest
Change-Id: If4277c425e6145e0e3ba716551d0dce46cdb61ab

5 years agoMerge "Hide number label if info is opportunistic" into qt-dev
Lei Yu [Fri, 26 Apr 2019 16:54:02 +0000 (16:54 +0000)]
Merge "Hide number label if info is opportunistic" into qt-dev

5 years agoMerge "Avoid IMEI overrided by getSummary() for dual SIM condition" into qt-dev
Andy Chou [Fri, 26 Apr 2019 15:04:25 +0000 (15:04 +0000)]
Merge "Avoid IMEI overrided by getSummary() for dual SIM condition" into qt-dev

5 years agoMerge "Always show backup settings (even if backup is deactivated)." into qt-dev
Chandan Nath [Fri, 26 Apr 2019 08:14:53 +0000 (08:14 +0000)]
Merge "Always show backup settings (even if backup is deactivated)." into qt-dev

5 years agoAvoid IMEI overrided by getSummary() for dual SIM condition
andychou [Wed, 24 Apr 2019 13:57:53 +0000 (21:57 +0800)]
Avoid IMEI overrided by getSummary() for dual SIM condition

IMEI information will be overrided by getSummary() and cause second slot IMEI is
oerrided by first slot.
Avoid IMEI is override by first slot information.

Bug: 131124169
Test: Test with dual SIM device and atest
ImeiInfoPreferenceControllerTest, ImeiInfoDialogControllerTest pass

Change-Id: Ia0a028aa0103867f42fff610129cf7ce2d3910b7

5 years agoMerge "Fix media output slice is empty even BT device is paired" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 00:46:48 +0000 (00:46 +0000)]
Merge "Fix media output slice is empty even BT device is paired" into qt-dev

5 years agoReplace the placeholder animation.
Leon Liao [Tue, 23 Apr 2019 05:25:52 +0000 (13:25 +0800)]
Replace the placeholder animation.

Update the placeholder animation in Accessibility Settings
'Time to read' and 'Time to take action'.

Bug: 119283926
Bug: 129090045
Test: Screenshot | RunSettingsRoboTests
Change-Id: I215facd35cb3b9d0fc90a5e267368de2edddf0dc

5 years agoMerge "Add timestamp to recent used apps" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 22:54:20 +0000 (22:54 +0000)]
Merge "Add timestamp to recent used apps" into qt-dev

5 years agoMerge changes I74d677dc,I17f4db85 into qt-dev
Kevin Chyn [Thu, 25 Apr 2019 22:48:02 +0000 (22:48 +0000)]
Merge changes I74d677dc,I17f4db85 into qt-dev

* changes:
  Only gray out remove button after positive button is pressed
  Check PackageManager before getting system service

5 years agoHide number label if info is opportunistic
Lei Yu [Thu, 25 Apr 2019 21:56:59 +0000 (14:56 -0700)]
Hide number label if info is opportunistic

Fixes: 125855323
Test: RunSettingsRoboTests
Change-Id: I6f77d65691319097c9bf56232710ba12fa7360f3

5 years agoMerge "Update color filter for battery saver mode" into qt-dev
Lei Yu [Thu, 25 Apr 2019 21:42:56 +0000 (21:42 +0000)]
Merge "Update color filter for battery saver mode" into qt-dev

5 years agoMerge "Include always ask button in SIM picker dialog" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 21:02:13 +0000 (21:02 +0000)]
Merge "Include always ask button in SIM picker dialog" into qt-dev

5 years agoMerge "Add keywords for battery saver schedule" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 21:00:28 +0000 (21:00 +0000)]
Merge "Add keywords for battery saver schedule" into qt-dev

5 years agoAdd timestamp to recent used apps
Lifu Tang [Thu, 25 Apr 2019 19:47:42 +0000 (12:47 -0700)]
Add timestamp to recent used apps

Bug: 129354132
Test: build, flash, and test manually
Change-Id: If8e657460da45db019633e95e77dffb1493997c0

5 years agoMerge "Fix broken dark ui test" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 19:25:30 +0000 (19:25 +0000)]
Merge "Fix broken dark ui test" into qt-dev

5 years agoOnly gray out remove button after positive button is pressed
Kevin Chyn [Thu, 25 Apr 2019 19:21:29 +0000 (12:21 -0700)]
Only gray out remove button after positive button is pressed

Fixes: 131252811

Test: manual
Change-Id: I74d677dc5608b21045b148020a13d5ea5c1bde20

5 years agoCheck PackageManager before getting system service
Kevin Chyn [Thu, 25 Apr 2019 19:17:26 +0000 (12:17 -0700)]
Check PackageManager before getting system service

Fixes: 131285189

Test: manual
Change-Id: I17f4db85afc5969c58a0a08667ef05786302712b

5 years agoAdd keywords for battery saver schedule
Salvador Martinez [Thu, 25 Apr 2019 18:04:58 +0000 (11:04 -0700)]
Add keywords for battery saver schedule

We forgot to add keywords to battery saver schedule so that it
would show up in search. This simply adds the string and the
appropriate keywords for it.

Test: manual (keywords result in search results)
Bug: 129984960
Change-Id: I94983fed6a6236f4d8cee3fb19c841822fd507e2

5 years agoMerge "Improve the latency of NotificationChannelSlice" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 17:31:16 +0000 (17:31 +0000)]
Merge "Improve the latency of NotificationChannelSlice" into qt-dev

5 years agoFix broken dark ui test
Salvador Martinez [Wed, 24 Apr 2019 02:51:23 +0000 (19:51 -0700)]
Fix broken dark ui test

It was checking something in shared preferences which seems
to have stopped working (a bunch of the stuff used in the
test is deprecated). This CL just has it verify that
updateDarkTheme() is called when appropriate since that
is all we really care about.

Test: is a test
Bug: 130897882
Change-Id: If3286dd91b5a95cb0f41cac619a11a9089e0aecf

5 years agoMerge "Update BatteryUtils to update system battery estimate cache" into qt-dev
Salvador Martinez [Thu, 25 Apr 2019 17:23:28 +0000 (17:23 +0000)]
Merge "Update BatteryUtils to update system battery estimate cache" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 14:57:13 +0000 (14:57 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Add Wifi-calling summary for search result" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 10:53:22 +0000 (10:53 +0000)]
Merge "Add Wifi-calling summary for search result" into qt-dev

5 years agoShow "Disconnected" instead of "Saved" in detail page summary
clownshen [Tue, 23 Apr 2019 09:08:49 +0000 (17:08 +0800)]
Show "Disconnected" instead of "Saved" in detail page summary

To improve UX, show summary as "Disconnected" is more make sense to end
user instead of "Saved" in detail page, it's decision-maker to click
connect button.

Bug: 131119614
Test: manual test
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest

Change-Id: I26ea0c566daab6214a596509f972005fd37fab4d

5 years agoMerge "Update the fingerprint skip dialog" into qt-dev
Pasty Chang [Thu, 25 Apr 2019 06:12:19 +0000 (06:12 +0000)]
Merge "Update the fingerprint skip dialog" into qt-dev

5 years agoMerge "Change to show generic lock screen before setup fingerprint or face" into...
Pasty Chang [Thu, 25 Apr 2019 06:12:19 +0000 (06:12 +0000)]
Merge "Change to show generic lock screen before setup fingerprint or face" into qt-dev

5 years agoMerge "Make panel support dark mode" into qt-dev
Linda Tseng [Thu, 25 Apr 2019 05:51:19 +0000 (05:51 +0000)]
Merge "Make panel support dark mode" into qt-dev

5 years agoFix toggle button is enabled state but can't click
Raff Tsai [Thu, 25 Apr 2019 04:08:21 +0000 (12:08 +0800)]
Fix toggle button is enabled state but can't click

Fixes: 131197520
Test: manual
Change-Id: Id9f83b4abea55d2569049a48622d473d7f51042f

5 years agoMerge "Fixed Infinite loop method call." into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 03:40:47 +0000 (03:40 +0000)]
Merge "Fixed Infinite loop method call." into qt-dev

5 years agoFix media output slice is empty even BT device is paired
hughchen [Tue, 23 Apr 2019 09:53:48 +0000 (17:53 +0800)]
Fix media output slice is empty even BT device is paired

Return the empty ListBuilder instead of return null in
getSlice().

Bug: 131140677
Test: make -j42 RunSettingsRobotests
Change-Id: I2b1a4bc0c6d2017ec85b2e9f8a5bfc08a0eba1b5

5 years agoMerge "Fix NPE when connect timeout" into qt-dev
Clown SHEN [Thu, 25 Apr 2019 02:46:47 +0000 (02:46 +0000)]
Merge "Fix NPE when connect timeout" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 25 Apr 2019 02:34:37 +0000 (19:34 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I675fbeedf0bc71abd04a6cf75ab05deca428eee6

5 years agoUpdate the fingerprint skip dialog
pastychang [Mon, 18 Mar 2019 12:10:32 +0000 (20:10 +0800)]
Update the fingerprint skip dialog

Test: atest
Bug: 124028212
Change-Id: I1a1151c231862ef21b302317f0f105de1a79eac7

5 years agoAdd Wifi-calling summary for search result
Edgar Wang [Fri, 19 Apr 2019 13:56:43 +0000 (21:56 +0800)]
Add Wifi-calling summary for search result

Fixes: 130364773
Test: manual
Change-Id: Ib10ec01bdc4f8bfaf92aea7435d414113fb634ed

5 years agoFixed Infinite loop method call.
joshmccloskey [Tue, 23 Apr 2019 22:59:43 +0000 (15:59 -0700)]
Fixed Infinite loop method call.

Test: Verified that setupwizard flow no longer causes infinite loop.
Fixes: 131106091
Change-Id: I0777fefa08063c62f7ef8cbbc252e219efa98f24

5 years agoMerge "Add bubbles animation" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 00:08:30 +0000 (00:08 +0000)]
Merge "Add bubbles animation" into qt-dev

5 years agoMerge "Update "ask every time" asset." into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 23:57:30 +0000 (23:57 +0000)]
Merge "Update "ask every time" asset." into qt-dev

5 years agoMerge "Remove disable mobile data confirm dialog for single sim." into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 22:50:24 +0000 (22:50 +0000)]
Merge "Remove disable mobile data confirm dialog for single sim." into qt-dev

5 years agoMerge "Fix issue in panel logging" into qt-dev
Lei Yu [Wed, 24 Apr 2019 22:48:55 +0000 (22:48 +0000)]
Merge "Fix issue in panel logging" into qt-dev

5 years agoMerge "Fix incorrect mapping to get subscriptioninfo" into qt-dev
Fan Zhang [Wed, 24 Apr 2019 21:44:53 +0000 (21:44 +0000)]
Merge "Fix incorrect mapping to get subscriptioninfo" into qt-dev

5 years agoMake panel support dark mode
lindatseng [Fri, 19 Apr 2019 22:40:20 +0000 (15:40 -0700)]
Make panel support dark mode

Slightly adjust Panel related theme/styles to support dark mode.

Screenshot:
Wifi Panel: https://screenshot.googleplex.com/5FJ1wwMjgrn.png
NFC Panel: https://screenshot.googleplex.com/AhNJhEMXCS7.png
Volume Panel: https://screenshot.googleplex.com/iyOxAz9NJPv.png
Connectivity Panel: https://screenshot.googleplex.com/pvExHZVNW7m.png

Test: Visual/Manual verification
Fixes: 130815366
Change-Id: Ic96898091c52ccebf4437d96099ad553884d1eb4

5 years agoInclude always ask button in SIM picker dialog
Fan Zhang [Wed, 24 Apr 2019 21:11:50 +0000 (14:11 -0700)]
Include always ask button in SIM picker dialog

Fixes: 129433330
Test: manual
Change-Id: Ia7e5af56541aaf66df9e1749c1cc6e7f97d55a0b

5 years agoMerge "Implement off state for SIM details page" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 21:00:38 +0000 (21:00 +0000)]
Merge "Implement off state for SIM details page" into qt-dev

5 years agoRemove disable mobile data confirm dialog for single sim.
Fan Zhang [Wed, 24 Apr 2019 19:52:46 +0000 (12:52 -0700)]
Remove disable mobile data confirm dialog for single sim.

Fixes: 124005813
Test: robotest
Change-Id: I2da563f26d6dbb1ec3c6c205f21a96c896b51334

5 years agoUpdate color filter for battery saver mode
Lei Yu [Tue, 9 Apr 2019 17:33:45 +0000 (10:33 -0700)]
Update color filter for battery saver mode

Fixes: 129498556
Test: Manual
Change-Id: I57809c77e488b9828bea50d4c4f410d49912cd4b

5 years agoAdd bubbles animation
Julia Reynolds [Wed, 24 Apr 2019 20:41:56 +0000 (16:41 -0400)]
Add bubbles animation

Test: manual
Fixes: 130653599
Change-Id: I2bd0499de2a9140a51440a57e8ed3bd8c34cccc1

5 years agoUpdate "ask every time" asset.
Andrew Sapperstein [Wed, 24 Apr 2019 19:56:17 +0000 (12:56 -0700)]
Update "ask every time" asset.

Fixes: 130550869
Test: visually inspected
Change-Id: I75356f1a05411ab9d4c396d283fd555ce7c1cd07

5 years agoFix issue in panel logging
Lei Yu [Tue, 23 Apr 2019 21:23:28 +0000 (14:23 -0700)]
Fix issue in panel logging

Update log key to slice uri since previous key has no meaning.

Previously it is something like:
androidx.slice.widget.SliceLiveData$SliceLiveDataImpl@1a30b5

Bug: 131094876
Test: Manual
Change-Id: I52d605eb826821ef622aa075c04f829c60692976

5 years agoMerge "Update dialog background color for dark theme" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 19:44:42 +0000 (19:44 +0000)]
Merge "Update dialog background color for dark theme" into qt-dev

5 years agoAlways show backup settings (even if backup is deactivated).
Chandan Nath [Wed, 24 Apr 2019 17:58:50 +0000 (18:58 +0100)]
Always show backup settings (even if backup is deactivated).

Previously,
1) we showed backup settings for main users (including secondary non-profile users) only
when backup was activated
2) for profile users, we always showed backup settings.

However, this results in a nullpointer when opening Settings when backup is deactivated
for both main and profile user.
This CL fixes that nullpointer(and also changes existing functionality since keeping
existing functionality and fixing the nullpointer would be too large a code change)

For more details, see https://b.corp.google.com/issues/129843872#comment9 and
https://b.corp.google.com/issues/129843872#comment12

Bug: 129843872

Test: 1. atest -v UserBackupSettingsActivityTest
2. atest -v BackupInactivePreferenceControllerTest
3a) backup not active for main and profile user. shows "isn't active" for both
3b) backup active for main only. shows backup settings for main user and "isn't active" for profile.
3c) backup active for both. shows backup settings for both.
3d) backup active for profile only is not possible (as profile backup is only active when main
user backup is active). if we try to force set it, we get "isn't active" for both
3e) backup not active for secondary user. shows "isn't active"
3f) backup active for secondary user. shows backup settings.

Change-Id: Icb87a047068d29eda560c45dfa4ae02bc991b1af

5 years agoMerge "Fix CTS issue on PRIVACY_SETTINGS" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 18:09:37 +0000 (18:09 +0000)]
Merge "Fix CTS issue on PRIVACY_SETTINGS" into qt-dev

5 years agoImplement off state for SIM details page
Antony Sargent [Wed, 24 Apr 2019 17:44:37 +0000 (10:44 -0700)]
Implement off state for SIM details page

When a subscription is disabled, we need to hide most things on the
details page. The UX mocks called for leaving in a few things such as
the data usage header and some carrier information, but in tests I've
done it looks like the telephony APIs don't have any of that available
when the subscription is disabled. So for now the only thing left on the
page in the disabled case is the on/off toggle at the very top.

Fixes: 129665956
Test: make RunSettingsRoboTests
Change-Id: I98f4590fca38d03b1e5ff2cf0d2b4876d2adf936

5 years agoMerge "String changes" into qt-dev
Julia Reynolds [Wed, 24 Apr 2019 17:46:42 +0000 (17:46 +0000)]
Merge "String changes" into qt-dev

5 years agoMerge "Fix notification preferences" into qt-dev
Julia Reynolds [Wed, 24 Apr 2019 17:46:28 +0000 (17:46 +0000)]
Merge "Fix notification preferences" into qt-dev

5 years agoMerge "The icon of suggestion_fingerprint should be blue." into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 17:45:42 +0000 (17:45 +0000)]
Merge "The icon of suggestion_fingerprint should be blue." into qt-dev

5 years agoUpdate BatteryUtils to update system battery estimate cache
Salvador Martinez [Tue, 23 Apr 2019 23:55:21 +0000 (16:55 -0700)]
Update BatteryUtils to update system battery estimate cache

To try and ensure SysUI and Settings don't show different battery
estimates we have settings always push the estimate to the system
cache which will cause the status bar to update as well.

Test: manually trigger battery broadcasts and observe
Bug: 124030091
Change-Id: I07a17ecf2a42c3022673ad2aca438f8d6e81b41f

5 years agoMerge "Use auth token from intent extras" into qt-dev
Ilya Matyukhin [Wed, 24 Apr 2019 16:27:55 +0000 (16:27 +0000)]
Merge "Use auth token from intent extras" into qt-dev

5 years agoFix incorrect mapping to get subscriptioninfo
andychou [Wed, 24 Apr 2019 15:12:09 +0000 (23:12 +0800)]
Fix incorrect mapping to get subscriptioninfo

getActiveSubscriptionInfoList() returns a list of active subscription.
It doesn't 1:1 mapping with slotId. So it is not correct to use slotId
as index to get subscriptioninfo from list.
Use framework interface getActiveSubscriptionInfoForSimSlotIndex() to
get subscriptioninfo per slotid instead.

Bug: 131123246
Test: Test with dual SIM device and atest SimStatusDialogControllerTest
pass

Change-Id: If7140f602571a5cb8dcdfff939bd84ccff0b482f

5 years agoString changes
Julia Reynolds [Wed, 24 Apr 2019 14:06:49 +0000 (10:06 -0400)]
String changes

Bug: 123899489
Test: make
Change-Id: I4ff2fdd6e0ef467d8385dcf3b75ace48458b88ab

5 years agoFix notification preferences
Julia Reynolds [Mon, 22 Apr 2019 14:30:41 +0000 (10:30 -0400)]
Fix notification preferences

- ImportancePreference should not be separately clickable
- new strings

Bug: 127796543
Fixes: 131060409
Test: make sure talkback doesn't read 'double tap to activate' when
the preference is focused

Change-Id: I6b6eef0915873b4e0b44c59758e5f4b5a265364b

5 years agoImprove the latency of NotificationChannelSlice
Yanting Yang [Tue, 16 Apr 2019 16:28:18 +0000 (00:28 +0800)]
Improve the latency of NotificationChannelSlice

Get the notification data in parallel to reduce the latency.

Fixes: 123065955
Test: visual, robotests

Change-Id: I434ec68197af214f540ba39ae9155ee7625a2742

5 years agoUpdate dialog background color for dark theme
Mill Chen [Wed, 24 Apr 2019 07:20:02 +0000 (15:20 +0800)]
Update dialog background color for dark theme

Fixes: 129993336
Test: visual
Change-Id: Ie04be80e9b2987a8f7af1c7ecd1628474486bcd0

5 years agoFix NPE when connect timeout
clownshen [Wed, 24 Apr 2019 05:52:06 +0000 (13:52 +0800)]
Fix NPE when connect timeout

If user click connect button and then receive timeout event after leave
detail page, the NPE happened. Ignore the timeout event if activity
already gone.

Bug: 131141866
Test: manual test
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest
Change-Id: Ic22c22027386d4a6de5d693eafcd9cd463ed3415

5 years agoMerge "Tweak search result for adaptive brightness" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 06:08:18 +0000 (06:08 +0000)]
Merge "Tweak search result for adaptive brightness" into qt-dev

5 years agoMerge "Stay in face settings unless the user explicitly backs out" into qt-dev
Kevin Chyn [Wed, 24 Apr 2019 04:56:11 +0000 (04:56 +0000)]
Merge "Stay in face settings unless the user explicitly backs out" into qt-dev

5 years agoFix CTS issue on PRIVACY_SETTINGS
tmfang [Wed, 24 Apr 2019 02:29:46 +0000 (10:29 +0800)]
Fix CTS issue on PRIVACY_SETTINGS

Fixes: 130696835
Test: Manually test as following stpes
1. Tap "BYOD Managed Provisioning" under "Managed Provisioning" section
2. Tap "START BYOD PROVISIONING FLOW"
3. Tap "Cross profile intent filters are set"
4. adb logcat -s 'android.settings.PRIVACY_SETTINGS'
        -> No error about android.settings.PRIVACY_SETTINGS

Change-Id: I8fa3b61f14ca2da577493643cda4d7d0c66b8b0b

5 years agoUse auth token from intent extras
Ilya Matyukhin [Wed, 24 Apr 2019 03:53:31 +0000 (20:53 -0700)]
Use auth token from intent extras

Bug: 124324349
Test: confirmation dialog doesn't show up when intent has auth token
Change-Id: I9e071b06e1041b0d3c78932d8cb2c16c4c32bca5

5 years agoMerge "Fix crash when no Bluetooth feature in Settings" into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 02:45:09 +0000 (02:45 +0000)]
Merge "Fix crash when no Bluetooth feature in Settings" into qt-dev