OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoShow mobile data slice in Search even no SIM card
Sunny Shao [Wed, 24 Apr 2019 14:22:35 +0000 (22:22 +0800)]
Show mobile data slice in Search even no SIM card

- return slice like in airplan mode when mobile data disabled in the getSlice
  of the MobileDataSlice
- replace CONDITIONALLY_UNAVAILABLE by DISABLED_DEPENDENT_SETTING in the
  getAvailabilityStatus of the MobileDataPreferenceController
- remove the duplicated mobile data item by update data_usage_cellular.xml

Fixes: 130650621
Test: robotest
Change-Id: I42c0983c27d4edb17fcdce7ca386023911254d2d

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 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 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 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 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 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 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

5 years agoTweak search result for adaptive brightness
tmfang [Thu, 18 Apr 2019 08:53:59 +0000 (16:53 +0800)]
Tweak search result for adaptive brightness

- Create a new controller for auto brightness in
auto_brightness_detail.xml.
- We only show slice version for search result.
- Change slice summary for adaptive brightness.

Test: visual
Fixes: 130651278
Change-Id: If9b71735bbb2a0ee22676d9dfedab2cf9e778493

5 years agoThe icon of suggestion_fingerprint should be blue.
Cating Lin [Wed, 24 Apr 2019 01:25:55 +0000 (09:25 +0800)]
The icon of suggestion_fingerprint should be blue.

Bug: b/131117150
Test: Manual Test
Change-Id: If7a07bf1caeb21f820e141f5412d91178007f7bc

5 years agoMerge "Fix a NPE when removing accounts." into qt-dev
TreeHugger Robot [Wed, 24 Apr 2019 01:22:49 +0000 (01:22 +0000)]
Merge "Fix a NPE when removing accounts." into qt-dev

5 years agoMerge "Update toggle layout and always show footer text" into qt-dev
Kevin Chyn [Wed, 24 Apr 2019 00:12:45 +0000 (00:12 +0000)]
Merge "Update toggle layout and always show footer text" into qt-dev

5 years agoStay in face settings unless the user explicitly backs out
Kevin Chyn [Tue, 23 Apr 2019 20:41:31 +0000 (13:41 -0700)]
Stay in face settings unless the user explicitly backs out

Bug: 130898604

Test: Builds
Change-Id: I7159c3a6259d298f78b8328b2c6974ba46fb56f9

5 years agoMerge "Fix robotests in settings/panel" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 23:44:31 +0000 (23:44 +0000)]
Merge "Fix robotests in settings/panel" into qt-dev

5 years agoMerge "Add overlayable_icons_test.xml for Settings." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 22:39:55 +0000 (22:39 +0000)]
Merge "Add overlayable_icons_test.xml for Settings." into qt-dev

5 years agoMerge "Test case clean up." into qt-dev
Fan Zhang [Tue, 23 Apr 2019 22:34:46 +0000 (22:34 +0000)]
Merge "Test case clean up." into qt-dev

5 years agoMerge "Force the adapter to rebind cards with a toggle." into qt-dev
Fan Zhang [Tue, 23 Apr 2019 22:33:16 +0000 (22:33 +0000)]
Merge "Force the adapter to rebind cards with a toggle." into qt-dev

5 years agoFix a NPE when removing accounts.
Fan Zhang [Tue, 23 Apr 2019 22:09:39 +0000 (15:09 -0700)]
Fix a NPE when removing accounts.

Guard against null activity. If activity is already null, there is no
need to call finish().

Fixes: 131180213
Test: robotests
Change-Id: I19232ed67ddd0c3539b1827de23fdc584850b519

5 years agoFix robotests in settings/panel
lindatseng [Mon, 22 Apr 2019 23:14:53 +0000 (16:14 -0700)]
Fix robotests in settings/panel

Remove @Ignore for tests in settings/panel after testing.
Also update VolumePanelTest according to the recent changes to
remote volume slice.

Test: atest PanelFragmentTest
Test: atest SettingsPanelActivityTest
Test: VolumePanelTest
Fixes: 130896218
Change-Id: Iaa99e65d959cafd382d7209664f2fdbf660c29e0

5 years agoMerge "Always show disabled pSIMs in single-sim mode" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 21:06:47 +0000 (21:06 +0000)]
Merge "Always show disabled pSIMs in single-sim mode" into qt-dev

5 years agoAdd overlayable_icons_test.xml for Settings.
Amin Shaikh [Thu, 18 Apr 2019 12:18:25 +0000 (08:18 -0400)]
Add overlayable_icons_test.xml for Settings.

This ensures that developers do not accidentally delete/rename overlayed
icons without updating overlayable_icons_test.xml and renaming overlayed assets.

Bug: 128571899
Test: make RunSettingsRoboTests
Change-Id: I991883a7d480fbae848106ab24033a16d1405300

5 years agoMerge "Using explicit Looper in Handler initialization." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 18:28:56 +0000 (18:28 +0000)]
Merge "Using explicit Looper in Handler initialization." into qt-dev

5 years agoMerge "Fix WifiDetailPreferenceControllerTest new test case failure" into qt-dev
Andrew Sapperstein [Tue, 23 Apr 2019 18:18:41 +0000 (18:18 +0000)]
Merge "Fix WifiDetailPreferenceControllerTest new test case failure" into qt-dev

5 years agoAlways show disabled pSIMs in single-sim mode
Antony Sargent [Tue, 23 Apr 2019 17:55:51 +0000 (10:55 -0700)]
Always show disabled pSIMs in single-sim mode

In single-sim mode, you can have both an eSIM subscription and a pSIM
inserted into the device, and only one of them can be enabled. It turns
out that if the pSIM is the disabled one, we would not show it in the
settings UI; this CL fixes that.

It also fixes a somewhat related problem that I noticed while testing
this, that if you have only one subscription that happens to be
disabled, we were not showing the on/off switch at the top of the page,
which would leave you with no way to enable it.

Bug: 129864878
Test: make RunSettingsRoboTests
Change-Id: I4214ad34c59ac2df429772c066c51a9318f5baa7

5 years agoMerge "Reduce binder call to OverlayManager (3->1)" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 17:50:05 +0000 (17:50 +0000)]
Merge "Reduce binder call to OverlayManager (3->1)" into qt-dev

5 years agoMerge "Add action metrics for Wi-Fi provision features" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 17:36:54 +0000 (17:36 +0000)]
Merge "Add action metrics for Wi-Fi provision features" into qt-dev

5 years agoMerge "Remove "unless turned on automatically" text" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 17:02:28 +0000 (17:02 +0000)]
Merge "Remove "unless turned on automatically" text" into qt-dev

5 years agoRemove "unless turned on automatically" text
Beverly [Tue, 23 Apr 2019 14:08:32 +0000 (10:08 -0400)]
Remove "unless turned on automatically" text

- In Q, the title of this preference was changed from
"Duration" to "Default duration."  The title change clarifies
that the preference controls the dnd default duration and not the
schedules, so we can now remove "unless turned on automatically"
text in the subtext.

Test: manual
Fixes: 130843902
Change-Id: I404acd61136e1e1aa4675e421c07ce871c1f9db9

5 years agoTest case clean up.
Yi-Ling Chuang [Tue, 23 Apr 2019 12:41:50 +0000 (20:41 +0800)]
Test case clean up.

Move some test cases from ContextualCardLoader to
EligibleCardChecker.

Fixes: 131147203
Test: robotests
Change-Id: Ia6508962d7b878c5f89b8d350c791a44cadb9d36

5 years agoMerge "Automatically direct the user to the captive portal in Wi-Fi Slice" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 11:47:21 +0000 (11:47 +0000)]
Merge "Automatically direct the user to the captive portal in Wi-Fi Slice" into qt-dev

5 years agoMerge "Expand advanced button by default in Notifications." into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 09:33:47 +0000 (09:33 +0000)]
Merge "Expand advanced button by default in Notifications." into qt-dev

5 years agoForce the adapter to rebind cards with a toggle.
Yi-Ling Chuang [Thu, 18 Apr 2019 08:29:45 +0000 (16:29 +0800)]
Force the adapter to rebind cards with a toggle.

A card dismissal and scheduled card collection trigger a reload. During
card reloading, we perform slices pre check. The pre check goes through
the whole slice binding process, which means slices will be pinned and unpinned.
Hence, the on screen slices will gets unpinned resulting to the
unresponsive toggling.

As we have DiffCallbck implmented, if the card list are the same, then
bindView in the renderer will be ignored, which means the unpinned slice
will have no chance to re-register slice callback. So here we force it
to rebind the views.

Fixes: 123174237
Test: robotests
Change-Id: Id98bc16632bf024cbb611b40890e4d2629f08d7b

5 years agoFix WifiDetailPreferenceControllerTest new test case failure
clownshen [Tue, 23 Apr 2019 09:15:32 +0000 (17:15 +0800)]
Fix WifiDetailPreferenceControllerTest new test case failure

Bug: 130370187
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest
Change-Id: I314702be14db4e853412874c123e0a4b229849a2

5 years agoMerge "Change description string of Wi-Fi add device" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 04:32:26 +0000 (04:32 +0000)]
Merge "Change description string of Wi-Fi add device" into qt-dev

5 years agoAutomatically direct the user to the captive portal in Wi-Fi Slice
Jason Chiu [Fri, 19 Apr 2019 10:47:39 +0000 (18:47 +0800)]
Automatically direct the user to the captive portal in Wi-Fi Slice

Save the SSID when the user clicks the network, and then automatically
start login page when the network gets the captive portal capability.

Fixes: 128056349
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: Ia25241a8243d7d6aae604f341b512350404d9fd1

5 years agoMerge "Fix WifiDetailPreferenceControllerTest failure" into qt-dev
Clown SHEN [Tue, 23 Apr 2019 03:02:31 +0000 (03:02 +0000)]
Merge "Fix WifiDetailPreferenceControllerTest failure" into qt-dev

5 years agoMerge "Correct detail page UI once user change MAC randomized setting" into qt-dev
Clown SHEN [Tue, 23 Apr 2019 03:01:48 +0000 (03:01 +0000)]
Merge "Correct detail page UI once user change MAC randomized setting" into qt-dev

5 years agoUpdate toggle layout and always show footer text
Kevin Chyn [Tue, 23 Apr 2019 01:17:11 +0000 (18:17 -0700)]
Update toggle layout and always show footer text

Fixes: 130740123

Test: Builds

Change-Id: I5f64e22ca8123c6f2825d4341d94581a301551f7

5 years agoMerge "Remove todo comment" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 00:19:26 +0000 (00:19 +0000)]
Merge "Remove todo comment" into qt-dev

5 years agoMerge "Improve some comments of strings and codes" into qt-dev
TreeHugger Robot [Tue, 23 Apr 2019 00:04:56 +0000 (00:04 +0000)]
Merge "Improve some comments of strings and codes" into qt-dev

5 years agoReduce binder call to OverlayManager (3->1)
Hyunyoung Song [Mon, 22 Apr 2019 23:27:50 +0000 (16:27 -0700)]
Reduce binder call to OverlayManager (3->1)

Bug: 131112014
Test: builds, manually tested

Change-Id: I1f0fba30a55713be92b8755c0793ee84928f9d5e

5 years agoUsing explicit Looper in Handler initialization.
Kweku Adams [Mon, 22 Apr 2019 21:52:21 +0000 (14:52 -0700)]
Using explicit Looper in Handler initialization.

Bug: 130639146
Test: flash device and toggle settings
Change-Id: I40d0578487c94da9fc9d940089bacbddf3a43751

5 years agoMerge "Update enrollment footer icon" into qt-dev
Kevin Chyn [Mon, 22 Apr 2019 23:23:16 +0000 (23:23 +0000)]
Merge "Update enrollment footer icon" into qt-dev

5 years agoMerge "Update introduction layout spacing" into qt-dev
Kevin Chyn [Mon, 22 Apr 2019 23:16:39 +0000 (23:16 +0000)]
Merge "Update introduction layout spacing" into qt-dev

5 years agoMerge "Test fix: Add MmsPreferenceController to whitelist" into qt-dev
Lei Yu [Mon, 22 Apr 2019 22:57:24 +0000 (22:57 +0000)]
Merge "Test fix: Add MmsPreferenceController to whitelist" into qt-dev

5 years agoTest fix: Add MmsPreferenceController to whitelist
Lei Yu [Mon, 22 Apr 2019 22:51:58 +0000 (15:51 -0700)]
Test fix: Add MmsPreferenceController to whitelist

Add it to grandfather_slice_controller_not_in_xml since right now
it only exists in mobile_network_settings_v2.xml, not v1.

This should be fixed automatically once we remove all old code.

Bug: 130222866
Test: RunSettingsRoboTests
Change-Id: Ib0bc976fd31818d7b39ca9f3e7427859fd7175ff

5 years agoMerge "Partial revert Ib2396575bbc69a7cca5e9c90e113c76ff6db00b5" into qt-dev
Fan Zhang [Mon, 22 Apr 2019 22:48:59 +0000 (22:48 +0000)]
Merge "Partial revert Ib2396575bbc69a7cca5e9c90e113c76ff6db00b5" into qt-dev

5 years agoRemove todo comment
Alex Salo [Mon, 22 Apr 2019 21:54:51 +0000 (14:54 -0700)]
Remove todo comment

Bug: 129352433
Test: not needed
Change-Id: I7aa7840c0852c17ed05dba684fdd84cb7d5ad4ed

5 years agoMerge "Fix CodeInspectionTest" into qt-dev
TreeHugger Robot [Mon, 22 Apr 2019 21:37:29 +0000 (21:37 +0000)]
Merge "Fix CodeInspectionTest" into qt-dev

5 years agoUpdate enrollment footer icon
Kevin Chyn [Mon, 22 Apr 2019 19:38:33 +0000 (12:38 -0700)]
Update enrollment footer icon

Fixes: 131094701

Test: Builds
Change-Id: I9e1a75986ffeb35791271d55bf05a2daa9af5bad

5 years agoPartial revert Ib2396575bbc69a7cca5e9c90e113c76ff6db00b5
Fan Zhang [Mon, 22 Apr 2019 19:28:07 +0000 (12:28 -0700)]
Partial revert Ib2396575bbc69a7cca5e9c90e113c76ff6db00b5

The previous change removed summary text for gesture settings too
aggresively. We still need summary in main Settings app, just not in
search.

Fixes: 130652619
Test: manual
Change-Id: I95ae3ca31b34a514f10993413527e987cf67d998

5 years agoUpdate introduction layout spacing
Kevin Chyn [Thu, 18 Apr 2019 23:34:37 +0000 (16:34 -0700)]
Update introduction layout spacing

Bug: 130740990

Test: builds
Change-Id: I2c10d991097fcdb7eb0775f744b5b12af2597780

5 years agoMerge "Add mms preference and controller" into qt-dev
Lei Yu [Mon, 22 Apr 2019 17:55:34 +0000 (17:55 +0000)]
Merge "Add mms preference and controller" into qt-dev

5 years agoMerge "Remove feature flag for slice injection" into qt-dev
Lei Yu [Mon, 22 Apr 2019 17:49:52 +0000 (17:49 +0000)]
Merge "Remove feature flag for slice injection" into qt-dev

5 years agoFix WifiDetailPreferenceControllerTest failure
clownshen [Mon, 22 Apr 2019 10:33:46 +0000 (18:33 +0800)]
Fix WifiDetailPreferenceControllerTest failure

Bug: 130896210
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest
Change-Id: I994fbc4a67f4c58afebb38316555f8e1442b96c0

5 years agoRemove "Play media to" when no connected device
Tim Peng [Mon, 22 Apr 2019 06:05:09 +0000 (14:05 +0800)]
Remove "Play media to" when no connected device

Bug: 130251782
Test: make -j42 RunSettingsRoboTests
Change-Id: Id40199a67aef48b99f59cf6e04f93be2abe5e8fc

5 years agoExpand advanced button by default in Notifications.
Yi-Ling Chuang [Fri, 19 Apr 2019 11:03:46 +0000 (19:03 +0800)]
Expand advanced button by default in Notifications.

When users search for a certain preference hidden in advanced group
in Notifications page, we should expand the advanced button so
users can see the highlighted preference.

Fixes: 130655529
Test: visual
Change-Id: I6a166ddd1e741651d3a3a76ccfc37c58eafdf7e1

5 years agoCorrect detail page UI once user change MAC randomized setting
clownshen [Wed, 17 Apr 2019 11:33:37 +0000 (19:33 +0800)]
Correct detail page UI once user change MAC randomized setting

Changing MAC randomized setting will disconnect and reconnect Wi-Fi in
the background automatically. UI display as disconnect even AP
reconnected. Fix this problem and also remove some obsolete code.
Another problem is connect button display as disabled with
"Connecting..." wording after user click connect then change the MAC
randomized setting.

Bug: 130370187
Test: Manual test with test case in go/wifi_connnection_btn_design
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.details.WifiDetailPreferenceControllerTest
Change-Id: Id87c3db0cc785a9ceb3a71c7cbb78ffd87ffb0a1

5 years agoChange description string of Wi-Fi add device
Arc Wang [Mon, 22 Apr 2019 03:06:16 +0000 (11:06 +0800)]
Change description string of Wi-Fi add device

Bug: 130825364
Test: manual
Change-Id: Ic633cfa80475a438be94fabb0527c24ec9df39a9

5 years agoImprove some comments of strings and codes
cosmohsieh [Thu, 18 Apr 2019 02:58:45 +0000 (10:58 +0800)]
Improve some comments of strings and codes

1) Correct improper function comment about forget menu
2) Extends char limit of wifi_scan_always_turn_on_message_unknown for
translation.
3) Correct string comment on Saved networks summary

Bug: 130628569
Test: make RunSettingsRoboTests -j32 ROBOTEST_FILTER=com.android.settings.wifi.WifiSettingsTest
Change-Id: I0e60e4f205c794367dfffc032cb4334dac4d1cdd

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 21 Apr 2019 04:43:31 +0000 (04:43 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 21 Apr 2019 00:58:18 +0000 (17:58 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I681232854213f3b89d0543d30c640622d759a396

5 years agoMerge "Remove redundant (and failing) test getAvailabilityStatus_hasManagedUser_AVAIL...
TreeHugger Robot [Sat, 20 Apr 2019 23:16:25 +0000 (23:16 +0000)]
Merge "Remove redundant (and failing) test getAvailabilityStatus_hasManagedUser_AVAILABLE" into qt-dev

5 years agoMerge "Ignore the outdated entitlement check" into qt-dev
Mark Chien [Sat, 20 Apr 2019 04:41:52 +0000 (04:41 +0000)]
Merge "Ignore the outdated entitlement check" into qt-dev

5 years agoMerge "Allow up two lines of text on dnd restrict notif" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 23:20:10 +0000 (23:20 +0000)]
Merge "Allow up two lines of text on dnd restrict notif" into qt-dev

5 years agoMerge "Fix battery robo test" into qt-dev
TreeHugger Robot [Fri, 19 Apr 2019 23:13:51 +0000 (23:13 +0000)]
Merge "Fix battery robo test" into qt-dev

5 years agoMerge "Update battery stuff to use SettingsLib Estimate class" into qt-dev
Salvador Martinez [Fri, 19 Apr 2019 22:00:27 +0000 (22:00 +0000)]
Merge "Update battery stuff to use SettingsLib Estimate class" into qt-dev

5 years agoRemove redundant (and failing) test getAvailabilityStatus_hasManagedUser_AVAILABLE
Jonathan Scott [Fri, 19 Apr 2019 21:19:21 +0000 (22:19 +0100)]
Remove redundant (and failing) test getAvailabilityStatus_hasManagedUser_AVAILABLE

This is already covered by
getAvailabilityStatus_somePackagesAllowed_shouldBeAvailable and
getAvailabilityStatus_allPackagesAllowed_shouldBeAvailable.

Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=CrossProfileCalendarPreferenceControllerTest
Fixes: 130896049
Change-Id: I3dbbbde693750c69e042f7c19143730cc8e313ff

5 years agoFix CodeInspectionTest
Fan Zhang [Fri, 19 Apr 2019 20:50:16 +0000 (13:50 -0700)]
Fix CodeInspectionTest

Fixes: 130897640
Test: robo
Change-Id: Ic2d952e4d76bb0a2be6eab7ddc999b56656132a6

5 years agoFix battery robo test
Lei Yu [Fri, 19 Apr 2019 20:36:31 +0000 (13:36 -0700)]
Fix battery robo test

Fixes: 130896701
Test: RunSettingsRoboTests
Change-Id: Iffb7874250335db81181b23f96fe7b50a2dd0062

5 years agoMerge "Fix typo" into qt-dev
Fan Zhang [Fri, 19 Apr 2019 20:32:37 +0000 (20:32 +0000)]
Merge "Fix typo" into qt-dev

5 years agoFix typo
Fan Zhang [Fri, 19 Apr 2019 20:31:36 +0000 (13:31 -0700)]
Fix typo

Bug: 130897882
Test: rebuild
Change-Id: I066b69634214cd25c4acbd173e8fe82cd73d4e97

5 years agoMerge "Add a way to suppress injected tiles for OEMs" into qt-dev
Fan Zhang [Fri, 19 Apr 2019 20:30:24 +0000 (20:30 +0000)]
Merge "Add a way to suppress injected tiles for OEMs" into qt-dev

5 years agoMerge "Add @Ignore for all failing tests." into qt-dev
Fan Zhang [Fri, 19 Apr 2019 20:28:47 +0000 (20:28 +0000)]
Merge "Add @Ignore for all failing tests." into qt-dev

5 years agoAdd @Ignore for all failing tests.
Fan Zhang [Fri, 19 Apr 2019 20:23:29 +0000 (13:23 -0700)]
Add @Ignore for all failing tests.

Bug: 130896210
Bug: 130896218
Bug: 130896701
Bug: 130897882
Bug: 130897305
Bug: 130897640
Bug: 130896049
Test: robo
Change-Id: I77143d504501b358c2103aa736cd2aad13ed4c5c

5 years agoRemove feature flag for slice injection
Lei Yu [Fri, 19 Apr 2019 20:09:30 +0000 (13:09 -0700)]
Remove feature flag for slice injection

Since we already use SettingsUIDeviceConfig in this case, we can remove
feature flag safely.

Fixes: 121154979
Test: Manual
Change-Id: Ibf71f1109fd506feba5a02bf6ecd804c6b7ee8d4

5 years agoMerge "Add SettingsPolicy to control BT feature" into qt-dev
Lei Yu [Fri, 19 Apr 2019 19:44:53 +0000 (19:44 +0000)]
Merge "Add SettingsPolicy to control BT feature" into qt-dev

5 years agoAdd mms preference and controller
Lei Yu [Thu, 18 Apr 2019 18:22:36 +0000 (11:22 -0700)]
Add mms preference and controller

Only visible when it is metered and mobile data off.
Also refactor one mobile data observer so we can reuse it.

Bug: 130222866
Test: RunSettingsRoboTests
Change-Id: Id218f51da3c373fad98c1a39cfadd6b0e8c46a88

5 years agoUpdate battery stuff to use SettingsLib Estimate class
Salvador Martinez [Fri, 12 Apr 2019 00:12:44 +0000 (17:12 -0700)]
Update battery stuff to use SettingsLib Estimate class

This will make the upcoming consistency Cl easier to implement.

Test: Robotests still pass
Bug: 124030091
Change-Id: Ief4989e2b5f9b83b5c3b93d17f9f9fa12136f3ee

5 years agoAdd a way to suppress injected tiles for OEMs
Yanting Yang [Thu, 18 Apr 2019 13:37:31 +0000 (21:37 +0800)]
Add a way to suppress injected tiles for OEMs

Create a config resource for OEMs to add suppressed tile's key, then
DashboardFragment will filter related tiles out from Settings.

OEMs can use this way to suppress security patch injected tile if they
don't use Google OTA.

Fixes: 130734771
Test: visual, robotests
Change-Id: I4cab79c8672048fa543d39b2a8f38ffe338189c8

5 years agoAllow up two lines of text on dnd restrict notif
Beverly [Fri, 19 Apr 2019 17:21:31 +0000 (13:21 -0400)]
Allow up two lines of text on dnd restrict notif

Test: manual
Bug: 130848971
Change-Id: I1d32963f0e291d42c8b98ba8ca39eba749a26989