OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoFix Developer options page memory leak
Stanley Wang [Mon, 29 Oct 2018 09:04:53 +0000 (17:04 +0800)]
Fix Developer options page memory leak

Change-Id: I12d53c41adee56850cd294ae89e7a56328639558
Fixes: 117583710
Test: manual
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.development

5 years agoMerge "Make HearingAid code more generic"
Hugh Chen [Fri, 26 Oct 2018 01:57:24 +0000 (01:57 +0000)]
Merge "Make HearingAid code more generic"

5 years agoMerge "Remove unused code in telephony fragment"
Lei Yu [Fri, 26 Oct 2018 01:14:27 +0000 (01:14 +0000)]
Merge "Remove unused code in telephony fragment"

5 years agoMerge changes Iafe111bf,Ie9d8e935
Lei Yu [Fri, 26 Oct 2018 00:28:30 +0000 (00:28 +0000)]
Merge changes Iafe111bf,Ie9d8e935

* changes:
  update CdmaApnPreferenceController
  Add network selection preferences

5 years agoMerge changes Iad3bc131,Id43cb480
Lei Yu [Thu, 25 Oct 2018 22:32:32 +0000 (22:32 +0000)]
Merge changes Iad3bc131,Id43cb480

* changes:
  Update NetworkSelectSettings page
  Recopy NetworkSelectSetting from phone to settings

5 years agoRemove unused code in telephony fragment
jackqdyulei [Thu, 25 Oct 2018 02:08:53 +0000 (19:08 -0700)]
Remove unused code in telephony fragment

Bug: 114749736
Test: Manual
Change-Id: Ifff0cd03b024a482ce2c61e0d052c95a77e714ee

5 years agoupdate CdmaApnPreferenceController
jackqdyulei [Thu, 25 Oct 2018 01:22:04 +0000 (18:22 -0700)]
update CdmaApnPreferenceController

Rename it to ApnPreferenceController since it support both Gsm and
Cdma. Also add check for Gsm sim card.

Bug: 118402844
Test: RunSettingsRoboTests
Change-Id: Iafe111bfdc8f8e7d91d104df652ae9b27c9b166f

5 years agoAdd network selection preferences
jackqdyulei [Wed, 24 Oct 2018 21:58:29 +0000 (14:58 -0700)]
Add network selection preferences

1. Toggle to decide whether to auto select
2. Preference to go to network selection page

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: Ie9d8e9353bf2a99b8cba1fb14d5a440a43fde66e

5 years agoRemove DashboardSummary and all related classes.
Fan Zhang [Mon, 1 Oct 2018 19:14:06 +0000 (12:14 -0700)]
Remove DashboardSummary and all related classes.

- Condition is already supported in PersonalSettingsFragment
- Suggestion is already supported in PersonalSettingsFragment
- Static/dynamic tiles are supported in TopLevelSettings

Change-Id: I51882e3bd0919ad95109baefac683d98667c11e3
Fixes: 110405144
Test: robotests

5 years agoUpdate NetworkSelectSettings page
jackqdyulei [Wed, 24 Oct 2018 17:10:49 +0000 (10:10 -0700)]
Update NetworkSelectSettings page

Clean it up and make it compatiable with all devices. Before this CL
it only used in Pixel 3 with new moderm.

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: Iad3bc131e294d34cff90b9130715780182adccd7

5 years agoMerge "[Settings] Use 1030 opcode, deprecate 1024."
TreeHugger Robot [Thu, 25 Oct 2018 08:00:01 +0000 (08:00 +0000)]
Merge "[Settings] Use 1030 opcode, deprecate 1024."

5 years agoMerge "Revert "Add Support for Virtual High Refresh Rate mode""
TreeHugger Robot [Thu, 25 Oct 2018 05:59:24 +0000 (05:59 +0000)]
Merge "Revert "Add Support for Virtual High Refresh Rate mode""

5 years agoMake HearingAid code more generic
timhypeng [Tue, 9 Oct 2018 03:19:23 +0000 (11:19 +0800)]
Make HearingAid code more generic

-handle UI updating when sub device connection state changes
-add test case

Bug: 112735753
Test: make -j42 RunSettingsRoboTests
Change-Id: Ie2643657c47a0956aac3f8cac4bfdbdea0399ce8

5 years ago[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am...
Bill Yi [Thu, 25 Oct 2018 02:38:25 +0000 (19:38 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: 8b16aba0dd  -s ours am: 27e14db009  -s ours
am: 816e75fbc3  -s ours

Change-Id: I44155262f8685a56f4c678d9d2ca7d60e04707d4

5 years agoMerge "Repro b/118398695"
Fan Zhang [Thu, 25 Oct 2018 02:26:15 +0000 (02:26 +0000)]
Merge "Repro b/118398695"

5 years ago[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am...
Bill Yi [Thu, 25 Oct 2018 01:53:10 +0000 (18:53 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: 8b16aba0dd  -s ours
am: 27e14db009  -s ours

Change-Id: Ic2e8292d1f5936b943ba084611456fcf19651004

5 years agoRecopy NetworkSelectSetting from phone to settings
jackqdyulei [Tue, 23 Oct 2018 22:01:49 +0000 (15:01 -0700)]
Recopy NetworkSelectSetting from phone to settings

NetworkSelectSetting is changed during the migration, recopy it
to make it up to date

Following CL will refactor to reuse this fragment for all devices.

Bug: 114749736
Test: Build
Change-Id: Id43cb480cf31447a6e4a23eb3709f9ab972a2930

5 years ago[Settings] Use 1030 opcode, deprecate 1024.
Peiyong Lin [Thu, 25 Oct 2018 01:23:01 +0000 (18:23 -0700)]
[Settings] Use 1030 opcode, deprecate 1024.

Previously we separated wide color gamut out of color management and added a
new opcode 1030 to query whether the device's built-in display is color
managed. This patch deprecated 1024 opcode.

BUG: 111505327
Test: Build, flash, boot and check Settings>Display>Color
Change-Id: Ifaf03d02d21c47b7b3be987ceaabb61fa4449c8c

5 years ago[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 23:31:58 +0000 (16:31 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
am: 8b16aba0dd  -s ours

Change-Id: I6072677fc094b42e0a1356aa440151f829e100a0

5 years agoRepro b/118398695
Fan Zhang [Wed, 24 Oct 2018 22:46:21 +0000 (15:46 -0700)]
Repro b/118398695

Bug: 118398695
Test: robotests
Change-Id: I09331e042368f849651dbb1273d802f4ca24a832

5 years agoMerge pie-platform-release to aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 21:47:27 +0000 (14:47 -0700)]
Merge pie-platform-release to aosp-master - DO NOT MERGE

Change-Id: Id291dd4e424711a8cb39927b9733214b92b81d78

5 years agoMerge "Add Battery slice in Contextual Settings Homepage"
TreeHugger Robot [Wed, 24 Oct 2018 21:26:50 +0000 (21:26 +0000)]
Merge "Add Battery slice in Contextual Settings Homepage"

5 years agoRevert "Add Support for Virtual High Refresh Rate mode"
David Sodman [Mon, 15 Oct 2018 20:43:22 +0000 (13:43 -0700)]
Revert "Add Support for Virtual High Refresh Rate mode"

This reverts commit 7915fda7eea56a8461be3025dc7a6f18cf26c15a
as this feature has been cancelled.

Test: None
Change-Id: I5ea9afcc3191576e84742ccf316b030b5c00e5c4

5 years agoMerge "Fix a bug where cards overlap when rotating the screen"
Fan Zhang [Wed, 24 Oct 2018 20:25:54 +0000 (20:25 +0000)]
Merge "Fix a bug where cards overlap when rotating the screen"

5 years ago[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE...
Bill Yi [Wed, 24 Oct 2018 18:03:50 +0000 (11:03 -0700)]
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE am: 851a72f941  -s ours
am: 30984acbe3  -s ours

Change-Id: Ic94a1cba03952f0d720fc8a7d3892b88e0f3cf69

5 years ago[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 17:45:20 +0000 (10:45 -0700)]
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
am: 851a72f941  -s ours

Change-Id: I9eb1bf07cd24821c999cdb31a7d7f51ca7ffc85c

5 years agoMerge pi-platform-release to stage-aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 16:07:12 +0000 (09:07 -0700)]
Merge pi-platform-release to stage-aosp-master - DO NOT MERGE

Change-Id: Ia33547dfec9adf4000d3ed2665f2c3804be97071

5 years agoAdd Battery slice in Contextual Settings Homepage
Mill Chen [Fri, 5 Oct 2018 14:11:45 +0000 (22:11 +0800)]
Add Battery slice in Contextual Settings Homepage

- Add Battery card that implements CustomSliceable in Contextual
Settings Homepage.
- Add test case for Battery slice.
- Created a loadBatteryInfo method for BatterySlice.
- Add a map in CustomSliceManager to cache CustomSliceable instances,
let existing battery slice be able to update battery info.
- Use a flag to avoid triggering an infinite loop when calling
notifyChange in the callback function.

Bug: 114796623115971399
Test: manual, robotests
Change-Id: I4b785708bf8456c6c4de7cae4b44f8a060bccbae

5 years agoFix a bug where cards overlap when rotating the screen
Emily Chuang [Wed, 24 Oct 2018 11:42:17 +0000 (19:42 +0800)]
Fix a bug where cards overlap when rotating the screen

Check if a certain fragment has been added before. If it's added, then
just show it instead of re-adding it again.

Bug: 118344247
Test: visual
Change-Id: I039a3a7372e163c6bcda386d2aea99e6f8c8e9b1

5 years agoMerge "Fix toast is covered by PIN code screen after wrong pin" am: d5abc0eb44 am...
Fan Zhang [Wed, 24 Oct 2018 02:36:50 +0000 (19:36 -0700)]
Merge "Fix toast is covered by PIN code screen after wrong pin" am: d5abc0eb44 am: c150f5eb29
am: 4c95f60b9e

Change-Id: I651be252786c84156be901ef30f7cab37c1d4fdb

5 years agoMerge "Fix toast is covered by PIN code screen after wrong pin" am: d5abc0eb44
Fan Zhang [Wed, 24 Oct 2018 02:30:39 +0000 (19:30 -0700)]
Merge "Fix toast is covered by PIN code screen after wrong pin" am: d5abc0eb44
am: c150f5eb29

Change-Id: Ia4e59e195720919f2baa52e7d5667aed27c5ce7c

5 years agoMerge "Fix toast is covered by PIN code screen after wrong pin"
Fan Zhang [Wed, 24 Oct 2018 02:24:29 +0000 (19:24 -0700)]
Merge "Fix toast is covered by PIN code screen after wrong pin"
am: d5abc0eb44

Change-Id: Ie2cfeeb5573ae6b79855edbd87210bfe0e0a8287

5 years agoMerge "Fix toast is covered by PIN code screen after wrong pin"
Fan Zhang [Wed, 24 Oct 2018 02:16:57 +0000 (02:16 +0000)]
Merge "Fix toast is covered by PIN code screen after wrong pin"

5 years agoMerge "Add place holder rows to wifi slice."
Fan Zhang [Wed, 24 Oct 2018 02:15:18 +0000 (02:15 +0000)]
Merge "Add place holder rows to wifi slice."

5 years agoMerge "Refactor Cdma preference in ECM"
Lei Yu [Tue, 23 Oct 2018 23:53:29 +0000 (23:53 +0000)]
Merge "Refactor Cdma preference in ECM"

5 years agoAdd place holder rows to wifi slice.
Fan Zhang [Tue, 23 Oct 2018 20:59:59 +0000 (13:59 -0700)]
Add place holder rows to wifi slice.

When loading wifi slice, the wifitracker is super slow to scan and
return APs. So we will show up to 3 rows of placeholder in the slice UI.

- When building slice, if there are at least 3 APs, show first 3.
- When there aren't enough APs, show them all and fill the rest of
  placeholder rows.

Bug: 118224581
Test: robotests
Change-Id: Id332f64bfa335543ea406f73b249f93504d63d4f

5 years agoFix toast is covered by PIN code screen after wrong pin
Hao Zhao [Tue, 8 Aug 2017 07:21:49 +0000 (15:21 +0800)]
Fix toast is covered by PIN code screen after wrong pin

The error toast is displayed when user input wrong PIN
code three times, but at that moment the SIM PUK code input
page in SystemUI pop up and covers the toast, so the user
can't seen the error message.

Adjust the toast window layer, let the the toast pop up
over the SIM pin code input page.

Bug: 74056527
Change-Id: I569a2fc2adac15c4713b4c95e9720335bd4df88a

5 years agoRefactor Cdma preference in ECM
jackqdyulei [Mon, 22 Oct 2018 23:10:41 +0000 (16:10 -0700)]
Refactor Cdma preference in ECM

When phone is in ECM mode and Cdma preference is clicked, it should
first pop up ECM exit dialog. If user click yes, then it should launch
normal dialog.

This CL create a Cdma preference to stop launch normal dialog when in
ECM mode.

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: Iba887d9fc49770b21cf0421ecc0120d63da43ef9

5 years agoRemove calling to deprecated API.
Fan Zhang [Tue, 23 Oct 2018 20:33:04 +0000 (13:33 -0700)]
Remove calling to deprecated API.

Bug: 117860032
Test: robotests
Change-Id: I98b464b33c1f7f5aca6a002284247d36131c16e4

5 years agoChange homepage layout
Raff Tsai [Sat, 20 Oct 2018 15:59:52 +0000 (23:59 +0800)]
Change homepage layout

- merge PersonalSettingsFragment and TopLevelSettings together

Bug: 118224579
Test: manual
Change-Id: Ieee50a22babb25023e2a1767793e220862a38363

5 years agoMerge "Adjust Wifi Privacy preference."
Johnson Lu [Tue, 23 Oct 2018 03:20:39 +0000 (03:20 +0000)]
Merge "Adjust Wifi Privacy preference."

5 years agoMerge "Add DiffCallback to handle Contextual Cards update."
TreeHugger Robot [Tue, 23 Oct 2018 00:46:53 +0000 (00:46 +0000)]
Merge "Add DiffCallback to handle Contextual Cards update."

5 years agoAdd DiffCallback to handle Contextual Cards update.
Emily Chuang [Tue, 16 Oct 2018 10:49:29 +0000 (18:49 +0800)]
Add DiffCallback to handle Contextual Cards update.

Use DiffCallback in ContextualCardsAdapter to only update items that
are changed instead of touching those unchanged ones.

Also fix a bug where ConditionContexualCardCard#onStart is incorrectly
skipped.

Fixes: 112245748
Bug: 118165942
Test: robotests
Change-Id: I7989d621764fe40a3fceb8c9f40baced840818ba

5 years agoRefactor wifi calling and video calling
jackqdyulei [Fri, 19 Oct 2018 18:25:15 +0000 (11:25 -0700)]
Refactor wifi calling and video calling

Also add a Callback for 4gLte to notify update to video calling
preference controller

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I0b5009733251162327f02ccfae8b10ae56b961bc

5 years agoMerge "Use main looper for PhoneStateListener"
TreeHugger Robot [Mon, 22 Oct 2018 19:57:35 +0000 (19:57 +0000)]
Merge "Use main looper for PhoneStateListener"

5 years agoUse main looper for PhoneStateListener
jackqdyulei [Mon, 22 Oct 2018 17:22:00 +0000 (10:22 -0700)]
Use main looper for PhoneStateListener

Also init all subIds to INVALID in constructor

Change-Id: Ic66a2e5a24dbc10d52db0069f0e863c96ec12513
Fixes: 118070636
Test: Manual

5 years agoAdjust Wifi Privacy preference.
Johnson Lu [Mon, 22 Oct 2018 08:23:54 +0000 (16:23 +0800)]
Adjust Wifi Privacy preference.

Show Wifi MAC Randomization preference in both "Add network" and "Join
Network" flows.

Bug: 1227787
Test: RunSettingsRoboTests
Change-Id: Iff422eb870e661ceda5ae04f55de802a91f08aeb

5 years agoMerge "SliceLiveData should remove observers."
TreeHugger Robot [Mon, 22 Oct 2018 03:29:42 +0000 (03:29 +0000)]
Merge "SliceLiveData should remove observers."

5 years agoMerge "Refactor EuiccPreference"
TreeHugger Robot [Mon, 22 Oct 2018 02:28:14 +0000 (02:28 +0000)]
Merge "Refactor EuiccPreference"

5 years agoMerge "Add preference for WiFi MAC randomization."
Johnson Lu [Mon, 22 Oct 2018 00:53:54 +0000 (00:53 +0000)]
Merge "Add preference for WiFi MAC randomization."

5 years agoMerge "Fix sound settings affinity"
TreeHugger Robot [Sat, 20 Oct 2018 00:56:22 +0000 (00:56 +0000)]
Merge "Fix sound settings affinity"

5 years agoMerge pi-dr1-dev to aosp-master am: c1fe9e6ac2 am: 89e733ee2c
Bill Yi [Fri, 19 Oct 2018 22:23:53 +0000 (15:23 -0700)]
Merge pi-dr1-dev to aosp-master am: c1fe9e6ac2 am: 89e733ee2c
am: 58f707d162

Change-Id: I6799e0168f4f32adc78888426a5591a9b1bd7fc7

5 years agoFix sound settings affinity
Fan Zhang [Fri, 19 Oct 2018 22:19:11 +0000 (15:19 -0700)]
Fix sound settings affinity

Change-Id: Id92d7473f1d77ee5640a9da8f320777df496f635
Fixes: 117586503
Test: manual

5 years agoMerge pi-dr1-dev to aosp-master am: c1fe9e6ac2
Bill Yi [Fri, 19 Oct 2018 22:17:08 +0000 (15:17 -0700)]
Merge pi-dr1-dev to aosp-master am: c1fe9e6ac2
am: 89e733ee2c

Change-Id: I0808d725397294f4a19add88b278472360f48b64

5 years agoMerge pi-dr1-dev to aosp-master
Bill Yi [Fri, 19 Oct 2018 22:00:40 +0000 (15:00 -0700)]
Merge pi-dr1-dev to aosp-master
am: c1fe9e6ac2

Change-Id: I6a6eafb34b31bc343dfe4117f17ccba771a7f111

5 years agoRefactor EuiccPreference
jackqdyulei [Thu, 18 Oct 2018 23:46:58 +0000 (16:46 -0700)]
Refactor EuiccPreference

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I7192e40c5ff6eb064f29517c21021a095d505d7f

5 years agoMerge changes I773aeabd,I6a9d7044
Lei Yu [Fri, 19 Oct 2018 20:42:12 +0000 (20:42 +0000)]
Merge changes I773aeabd,I6a9d7044

* changes:
  Refactor DataServicePreference
  Refactor 4gForLTE preference

5 years agoMerge "Slice background worker with Wi-Fi Slice"
Jason Chiu [Fri, 19 Oct 2018 20:23:05 +0000 (20:23 +0000)]
Merge "Slice background worker with Wi-Fi Slice"

5 years agoMerge pi-dr1-dev to aosp-master
Bill Yi [Fri, 19 Oct 2018 19:20:48 +0000 (12:20 -0700)]
Merge pi-dr1-dev to aosp-master

Change-Id: I0cf933755a46ad6071cb085120a4b1b1c5d1976c

5 years agoRefactor DataServicePreference
jackqdyulei [Thu, 18 Oct 2018 21:48:48 +0000 (14:48 -0700)]
Refactor DataServicePreference

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I773aeabdc1964436cc1e67bbbe9ad7fa6494e504

5 years agoRefactor 4gForLTE preference
jackqdyulei [Thu, 18 Oct 2018 04:24:22 +0000 (21:24 -0700)]
Refactor 4gForLTE preference

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I6a9d7044e16de2e70fadd97379b2a6de6d18525f

5 years agoMerge "Use public API to launch search UI."
Fan Zhang [Fri, 19 Oct 2018 06:05:37 +0000 (06:05 +0000)]
Merge "Use public API to launch search UI."

5 years agoAdd preference for WiFi MAC randomization.
Johnson Lu [Thu, 18 Oct 2018 07:33:14 +0000 (15:33 +0800)]
Add preference for WiFi MAC randomization.

Preference visibility contolled by feature flag -
settings_wifi_mac_randomization.

Bug: 1227787
Test: RunSettingsRoboTests

Change-Id: Ibad8d3ea2bfa3879acc1ec883b8c03f1979bde45

5 years agoMerge "Refactor another network mode preference"
Lei Yu [Fri, 19 Oct 2018 02:00:03 +0000 (02:00 +0000)]
Merge "Refactor another network mode preference"

5 years agoMerge "Update id for Toolbar"
Lei Yu [Fri, 19 Oct 2018 01:59:33 +0000 (01:59 +0000)]
Merge "Update id for Toolbar"

5 years agoUse public API to launch search UI.
Fan Zhang [Thu, 18 Oct 2018 23:23:47 +0000 (16:23 -0700)]
Use public API to launch search UI.

Test: manual
Change-Id: I5527dd6de5990aed365b6e78a9492ced00b99565

5 years agoMerge "Start using CarrierConfig for 4G/LTE icon" am: 558535f3f2 am: e419904aa0
Hall Liu [Thu, 18 Oct 2018 22:54:56 +0000 (15:54 -0700)]
Merge "Start using CarrierConfig for 4G/LTE icon" am: 558535f3f2 am: e419904aa0
am: 322091c7eb

Change-Id: I356e58af3dfe50a59ffc70b096ece86ece7c5d66

5 years agoMerge "Start using CarrierConfig for 4G/LTE icon" am: 558535f3f2
Hall Liu [Thu, 18 Oct 2018 22:31:05 +0000 (15:31 -0700)]
Merge "Start using CarrierConfig for 4G/LTE icon" am: 558535f3f2
am: e419904aa0

Change-Id: I63428a32d201aa7260cc4aa96ad229e5bd83cf16

5 years agoMerge "Start using CarrierConfig for 4G/LTE icon"
Hall Liu [Thu, 18 Oct 2018 21:56:56 +0000 (14:56 -0700)]
Merge "Start using CarrierConfig for 4G/LTE icon"
am: 558535f3f2

Change-Id: I9bb6a91c0c3a79f4b3fae4d50c431e0286b8c06f

5 years agoRefactor another network mode preference
jackqdyulei [Wed, 17 Oct 2018 19:54:05 +0000 (12:54 -0700)]
Refactor another network mode preference

This preference show up if phone is not in world mode and offer some
simplified choices.

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I9204466be630f122fb02773d18a947706999ab79

5 years agoUpdate id for Toolbar
jackqdyulei [Thu, 18 Oct 2018 20:54:01 +0000 (13:54 -0700)]
Update id for Toolbar

If you use action_bar, it will show blank action bar.

Bug: 114749736
Test: Manual
Change-Id: I459eb00262e667446c88d7ff638b9a425a6eada2

5 years agoMerge "Start using CarrierConfig for 4G/LTE icon"
Hall Liu [Thu, 18 Oct 2018 20:36:06 +0000 (20:36 +0000)]
Merge "Start using CarrierConfig for 4G/LTE icon"

5 years agoMerge "Give SliceView a height to support four rows and show more button."
TreeHugger Robot [Thu, 18 Oct 2018 16:31:52 +0000 (16:31 +0000)]
Merge "Give SliceView a height to support four rows and show more button."

5 years agoMerge "Added the EmergencyInfoSlice for ContextualHomepage"
Fan Zhang [Thu, 18 Oct 2018 16:26:11 +0000 (16:26 +0000)]
Merge "Added the EmergencyInfoSlice for ContextualHomepage"

5 years agoSliceLiveData should remove observers.
Emily Chuang [Thu, 18 Oct 2018 13:01:25 +0000 (21:01 +0800)]
SliceLiveData should remove observers.

As positions of items will be changed, new sliceViews will be created.
SliceLiveData has been set to observe a certain old sliceView. When the
page is re-launched, we cannot garantee we always get the same
sliceView, which means the sliceLiveData may be still observing a sliveView that
is no longer applicable. This will lead to broken slices.
Hence, we need to remove observers first then make it observes a new sliceView.

Bug: 117922624
Test: robotests, visual
Change-Id: I59368a6ce5fa84487c9a4788b970fdc074a0c2a9

5 years agoSlice background worker with Wi-Fi Slice
Jason Chiu [Mon, 8 Oct 2018 04:06:26 +0000 (12:06 +0800)]
Slice background worker with Wi-Fi Slice

Test: manual

Change-Id: Ic4fdc5713f511ff80f03728c99c68fda3d0cab02

5 years agoMerge "Refactor PreferredNetworkModePreference"
Lei Yu [Thu, 18 Oct 2018 06:34:22 +0000 (06:34 +0000)]
Merge "Refactor PreferredNetworkModePreference"

5 years agoAdded the EmergencyInfoSlice for ContextualHomepage
Sunny Shao [Mon, 15 Oct 2018 11:41:10 +0000 (19:41 +0800)]
Added the EmergencyInfoSlice for ContextualHomepage

- Generated a simple EmergencyInfo slice with fixed string in title and summary.
- Moved hardcode string into strings.xml
- Modified the contentProviderCall_returnCorrectSize test case for general version

Bug: 114793520
Test: compile and manual test
Change-Id: Ia3444c61b0f7e4c04794fe3590dc0731885cf062

5 years agoRefactor PreferredNetworkModePreference
jackqdyulei [Tue, 16 Oct 2018 21:20:46 +0000 (14:20 -0700)]
Refactor PreferredNetworkModePreference

Create preference controller for it.

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I456b0b954f47a6fb4c03926049b0579fd6488969

5 years agoMerge "Updated misc in Contextual Settings Homepage"
TreeHugger Robot [Thu, 18 Oct 2018 03:52:28 +0000 (03:52 +0000)]
Merge "Updated misc in Contextual Settings Homepage"

5 years agoMerge "Fix nav-up button in main settings activity."
TreeHugger Robot [Thu, 18 Oct 2018 03:22:32 +0000 (03:22 +0000)]
Merge "Fix nav-up button in main settings activity."

5 years agoUpdated misc in Contextual Settings Homepage
Mill Chen [Wed, 17 Oct 2018 14:46:54 +0000 (22:46 +0800)]
Updated misc in Contextual Settings Homepage

- Set static cards with full width and removed packageName from setName
method.
- Removed Storage card from createStaticCards method because it does not
belong to default category.
- Changed the parameter type of setSliceUri from String to Uri in ContextualCard.
- Added StorageSlice and DeviceInfoSlice to the contextual card
provider.
- Fixed test cases related to these changes.

bug: 117874766
Test: robotest
Change-Id: Ic2dca353f85d0b6191ab19882dd8c5cb9c6cc658

5 years ago[automerger skipped] resolve merge conflicts of b0e99e147253df35932c8c7c15911d091a07d...
Stanley Tng [Thu, 18 Oct 2018 01:40:55 +0000 (18:40 -0700)]
[automerger skipped] resolve merge conflicts of b0e99e147253df35932c8c7c15911d091a07dda1 to stage-aosp-master am: 81edd9a286  -s ours
am: 0a6d538879  -s ours

Change-Id: Iadd528089b68ff6622ce510132f9583b19f9152b

5 years ago[automerger skipped] resolve merge conflicts of b0e99e147253df35932c8c7c15911d091a07d...
Stanley Tng [Thu, 18 Oct 2018 01:23:18 +0000 (18:23 -0700)]
[automerger skipped] resolve merge conflicts of b0e99e147253df35932c8c7c15911d091a07dda1 to stage-aosp-master
am: 81edd9a286  -s ours

Change-Id: I5d08af8af8e4056f49d8006f454c347f64ef643c

5 years agoMerge "Refactor roaming preference"
Lei Yu [Thu, 18 Oct 2018 00:44:47 +0000 (00:44 +0000)]
Merge "Refactor roaming preference"

5 years agoFix nav-up button in main settings activity.
Fan Zhang [Wed, 17 Oct 2018 23:27:41 +0000 (16:27 -0700)]
Fix nav-up button in main settings activity.

It should be a non-clickable search icon, not back button. Apparently
the init code must be executed after setActionBar.

Change-Id: Ibbc8aefeebc44562c6105cb51e6f6447a9705ff9
Fixes: 117797520
Test: manual

5 years agoMerge "Fix visible problem on status bar"
TreeHugger Robot [Wed, 17 Oct 2018 20:38:14 +0000 (20:38 +0000)]
Merge "Fix visible problem on status bar"

5 years agoMerge "Update toolbar for mobile network settings"
TreeHugger Robot [Wed, 17 Oct 2018 20:20:08 +0000 (20:20 +0000)]
Merge "Update toolbar for mobile network settings"

5 years agoRefactor roaming preference
jackqdyulei [Tue, 16 Oct 2018 00:31:16 +0000 (17:31 -0700)]
Refactor roaming preference

Use preferenceController instead

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: Idb0276ea0ed1738d93223e072338ba3c32498a9d

5 years agoMerge "Sync style of filter component in data usage"
TreeHugger Robot [Wed, 17 Oct 2018 18:38:45 +0000 (18:38 +0000)]
Merge "Sync style of filter component in data usage"

5 years agoresolve merge conflicts of b0e99e147253df35932c8c7c15911d091a07dda1 to stage-aosp...
Stanley Tng [Wed, 17 Oct 2018 18:07:29 +0000 (11:07 -0700)]
resolve merge conflicts of b0e99e147253df35932c8c7c15911d091a07dda1 to stage-aosp-master

Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ife619e714d451b6cb77bfaf50e3f45c969d37cb4
Merged-In: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
Merged-In: I169cda4a1658b0a67cc7c7367b38d57a021e6953

5 years agoMerge "Fix InstantiationException on fragment"
TreeHugger Robot [Wed, 17 Oct 2018 17:28:22 +0000 (17:28 +0000)]
Merge "Fix InstantiationException on fragment"

5 years agoUpdate toolbar for mobile network settings
jackqdyulei [Thu, 11 Oct 2018 00:43:06 +0000 (17:43 -0700)]
Update toolbar for mobile network settings

Bug: 114749736
Test: Manual
Change-Id: I9b01df83215ca6974b096060fa8d6669307c96e1

5 years agoMerge "Private DNS: Extract host verification code"
Eran Messeri [Wed, 17 Oct 2018 16:59:57 +0000 (16:59 +0000)]
Merge "Private DNS: Extract host verification code"

5 years agoFix visible problem on status bar
tmfang [Tue, 16 Oct 2018 16:59:06 +0000 (00:59 +0800)]
Fix visible problem on status bar

Battery Icon is not displayed on "Vision settings" screen

Test: visual
Change-Id: I272302af5b6e7309318c04b891d20526f68c5b0d
Fixes: 117751096

5 years agoGive SliceView a height to support four rows and show more button.
Emily Chuang [Wed, 17 Oct 2018 12:50:20 +0000 (20:50 +0800)]
Give SliceView a height to support four rows and show more button.

The default height of sliceView with MODE_LARGE is 240dp which supports
three rows(including the header) above "show more" button. Since WIFI
and Connected devices use cases require four rows + show more button, we
need to expand the height to fulfill it.

Bug: 117868297
Test: visual
Change-Id: I13b29c3f859d1c117c680432f9a6ad8e71c6acf5

5 years agoMerge "Use the same layout style for contextual cards"
Raff Tsai [Wed, 17 Oct 2018 10:02:40 +0000 (10:02 +0000)]
Merge "Use the same layout style for contextual cards"

5 years agoMerge "Consider Private DNS user restriction"
TreeHugger Robot [Wed, 17 Oct 2018 08:36:55 +0000 (08:36 +0000)]
Merge "Consider Private DNS user restriction"

5 years ago[automerger skipped] Import translations. DO NOT MERGE am: f896493c70 -s ours
Bill Yi [Wed, 17 Oct 2018 06:29:32 +0000 (23:29 -0700)]
[automerger skipped] Import translations. DO NOT MERGE am: f896493c70  -s ours
am: 8744027668  -s ours

Change-Id: Ic42f563ca5bf56c2b35a3a90c27fbaa2ed7c32b7

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Wed, 17 Oct 2018 06:24:58 +0000 (23:24 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: f896493c70  -s ours

Change-Id: I4d93781a7e2f2d20b1d0e25338af6e24f1b5a448