OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoMerge "Treat icon color metadata as raw value instead of reference"
TreeHugger Robot [Tue, 7 Aug 2018 17:37:26 +0000 (17:37 +0000)]
Merge "Treat icon color metadata as raw value instead of reference"

5 years agoTreat icon color metadata as raw value instead of reference
Fan Zhang [Mon, 6 Aug 2018 22:23:45 +0000 (15:23 -0700)]
Treat icon color metadata as raw value instead of reference

Bug: 79841665
Test: robotests
Change-Id: I1216718e45e80a428e8a0edb7b9accf5325be769

5 years agoMerge "Use CustomDialogPreferenceCompat for ZenDuration"
TreeHugger Robot [Tue, 7 Aug 2018 14:12:59 +0000 (14:12 +0000)]
Merge "Use CustomDialogPreferenceCompat for ZenDuration"

5 years agoremove unnecessary mock in BluetoothDeviceUpdaterTest
timhypeng [Fri, 3 Aug 2018 08:53:26 +0000 (16:53 +0800)]
remove unnecessary mock in BluetoothDeviceUpdaterTest

Bug: 111848213
Test: make -j50 RunSettingsRoboTests
Change-Id: If1c46614ec6e40c66eb121cc48caa1fbc9c39871

5 years agoMerge "Add a boolean flag to show or hide Private DNS in Network & internet."
TreeHugger Robot [Mon, 6 Aug 2018 19:07:14 +0000 (19:07 +0000)]
Merge "Add a boolean flag to show or hide Private DNS in Network & internet."

5 years agoMerge "Clean up task affinity"
TreeHugger Robot [Mon, 6 Aug 2018 18:32:37 +0000 (18:32 +0000)]
Merge "Clean up task affinity"

5 years agoClean up task affinity
Fan Zhang [Mon, 6 Aug 2018 17:17:13 +0000 (10:17 -0700)]
Clean up task affinity

Bug: 112254258
Test: manual
Change-Id: Ifd9321f5d0532f01db2f6c0b97c914418e3a15e7

5 years agoUse CustomDialogPreferenceCompat for ZenDuration
Beverly [Fri, 3 Aug 2018 20:05:32 +0000 (16:05 -0400)]
Use CustomDialogPreferenceCompat for ZenDuration

Test: ZenModeDurationPreferenceControllerTest
Bug: 112041657
Change-Id: I0158a703d26f73512c560889d6549d68230bf98e

5 years agoremove unnecessary mock in ConnectedBluetoothDeviceUpdaterTest
timhypeng [Mon, 6 Aug 2018 06:37:57 +0000 (14:37 +0800)]
remove unnecessary mock in ConnectedBluetoothDeviceUpdaterTest

Bug: 111848213
Test: make -j50 RunSettingsRoboTests
Change-Id: I6a2a25ff80d7d3cd9bcf2b4223afb6a80de7eb7c

5 years agoMerge "Remove obsolete parameter from addDevice"
TreeHugger Robot [Mon, 6 Aug 2018 06:40:46 +0000 (06:40 +0000)]
Merge "Remove obsolete parameter from addDevice"

5 years agoMerge "Icon color of spinner updated"
TreeHugger Robot [Mon, 6 Aug 2018 04:07:19 +0000 (04:07 +0000)]
Merge "Icon color of spinner updated"

5 years ago[automerger skipped] Import translations. DO NOT MERGE am: 000f97dcf9 -s ours am...
Bill Yi [Sun, 5 Aug 2018 01:30:05 +0000 (18:30 -0700)]
[automerger skipped] Import translations. DO NOT MERGE am: 000f97dcf9  -s ours am: 16191b3408  -s ours
am: 4dd2c1fa3d  -s ours

Change-Id: Ia93756b2c4e84be0828826ee390d0365d804fbe4

5 years ago[automerger skipped] Import translations. DO NOT MERGE am: 000f97dcf9 -s ours
Bill Yi [Sun, 5 Aug 2018 01:25:30 +0000 (18:25 -0700)]
[automerger skipped] Import translations. DO NOT MERGE am: 000f97dcf9  -s ours
am: 16191b3408  -s ours

Change-Id: I25c2d0e11f48a0cfa54bd1790ab858bbec109bc3

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sun, 5 Aug 2018 01:21:26 +0000 (18:21 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: 000f97dcf9  -s ours

Change-Id: Ia6cce5c5529998a45fa52d353f63a8edc8e2c0ef

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 4 Aug 2018 14:43:29 +0000 (07:43 -0700)]
Import translations. DO NOT MERGE

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

5 years agoRemove custom tintable check.
Fan Zhang [Fri, 3 Aug 2018 16:13:53 +0000 (09:13 -0700)]
Remove custom tintable check.

Make a bunch keys private in tile and DashboardCategory
Bug: 77600770
Test: robotests
Change-Id: I4693e6bb71bd50cc664f578c7f8e25e67da20b67

5 years agoMerge "Move profile selector dialog to Settings"
TreeHugger Robot [Fri, 3 Aug 2018 02:05:32 +0000 (02:05 +0000)]
Merge "Move profile selector dialog to Settings"

5 years agoFix robo tests
Fan Zhang [Thu, 2 Aug 2018 23:02:13 +0000 (16:02 -0700)]
Fix robo tests

We are pointing to intermediate built files for resource. We should
instead just remove the ResourcePath list and let Robolectric extract
res files from built apk (supported in a newer version or robolectric)

Change-Id: Iaed2160518b90a8a678c8526295dcfa74c8e3c42
Fixes: 112160027
Test: robotests

5 years agoMove profile selector dialog to Settings
Fan Zhang [Thu, 2 Aug 2018 19:59:55 +0000 (12:59 -0700)]
Move profile selector dialog to Settings

Bug: 77600770
Test: robotest
Change-Id: I601dabfd925a1990b7bd9115ef579bff9039a7c0

5 years agoIcon color of spinner updated
Stanley Wang [Wed, 1 Aug 2018 09:30:13 +0000 (17:30 +0800)]
Icon color of spinner updated

Change-Id: Iea7f5d5ec43360cf6114caf368fa8c93ce4cf95c
Fixes: 109843982
Test: manual

5 years agoMerge "5/n: Add face settings"
TreeHugger Robot [Thu, 2 Aug 2018 04:20:08 +0000 (04:20 +0000)]
Merge "5/n: Add face settings"

5 years agoMerge "Replaced 'partition' by 'requests'"
TreeHugger Robot [Wed, 1 Aug 2018 23:19:13 +0000 (23:19 +0000)]
Merge "Replaced 'partition' by 'requests'"

5 years agoReplaced 'partition' by 'requests'
Felipe Leme [Wed, 1 Aug 2018 22:12:18 +0000 (15:12 -0700)]
Replaced 'partition' by 'requests'

Fixes: 111987840
Test: echo "In TreeHugger we trust!"

Change-Id: I450d23677063b98d994559a64fff2a4832afe6ef

5 years agoMerge "Fixes Settings app crashing when NfcAdapter is null"
TreeHugger Robot [Wed, 1 Aug 2018 21:52:40 +0000 (21:52 +0000)]
Merge "Fixes Settings app crashing when NfcAdapter is null"

5 years agoFixes Settings app crashing when NfcAdapter is null
Ruchi Kandoi [Wed, 1 Aug 2018 20:30:35 +0000 (13:30 -0700)]
Fixes Settings app crashing when NfcAdapter is null

If a device doesn't support NFC then
android.settings.NFCSHARING_SETTINGS and
android.nfc.cardemulation.action.ACTION_CHANGE_DEFAULT intents shouldn't
do anything and gracefully exit.

Test: Manual; Emulate a non-NFC device and test with apks sending intents
Bug: 80094104
Bug: 80092438
Change-Id: I5b3c3fdd582679e2cb16f474ef3331bc246b0d42

5 years agoMerge "Remove unused SuggestionFeatureProvider APIs."
TreeHugger Robot [Wed, 1 Aug 2018 19:32:41 +0000 (19:32 +0000)]
Merge "Remove unused SuggestionFeatureProvider APIs."

5 years agoMerge "Disable changing lock when device is not provisioned."
TreeHugger Robot [Wed, 1 Aug 2018 19:29:44 +0000 (19:29 +0000)]
Merge "Disable changing lock when device is not provisioned."

5 years agoDisable changing lock when device is not provisioned.
Doris Ling [Tue, 31 Jul 2018 21:04:44 +0000 (14:04 -0700)]
Disable changing lock when device is not provisioned.

When the device is not yet provisioned and settings is launched:
- disable the entry point for changing device lock
- remove the search panel from settings home page
- remove the search menu

Bug: 110034419
Test: make RunSettingsRoboTests
Change-Id: Ieb7eb0e8699229ec0824ccc19d7b958ac44965a2

5 years agoRemove unused SuggestionFeatureProvider APIs.
Fan Zhang [Wed, 1 Aug 2018 16:53:54 +0000 (09:53 -0700)]
Remove unused SuggestionFeatureProvider APIs.

Bug: 111941143
Test: robotests
Change-Id: Ic4e607b3601fd43ad57dad13474e2d0ee78bf29c

5 years agoMerge "Check the device is connected when receive onProfileConnectionStateChanged()"
TreeHugger Robot [Wed, 1 Aug 2018 07:39:01 +0000 (07:39 +0000)]
Merge "Check the device is connected when receive onProfileConnectionStateChanged()"

5 years agoMerge "Use Settings.Secure values, not Global values"
TreeHugger Robot [Tue, 31 Jul 2018 17:13:27 +0000 (17:13 +0000)]
Merge "Use Settings.Secure values, not Global values"

5 years agoMerge "Fix windows leaked in ZenModeScheduleRuleSettings"
TreeHugger Robot [Tue, 31 Jul 2018 16:35:10 +0000 (16:35 +0000)]
Merge "Fix windows leaked in ZenModeScheduleRuleSettings"

5 years agoCheck the device is connected when receive onProfileConnectionStateChanged()
hughchen [Tue, 31 Jul 2018 08:09:17 +0000 (16:09 +0800)]
Check the device is connected when receive onProfileConnectionStateChanged()

Use isFilterMatched() to decide the prefernce should be added
or removed when receive onProfileConnectionStateChanged()

Bug: 80161203
Test: make -j42 RunSettingsRoboTests
Change-Id: Icccdb9007b587d3f481a23856edd7b2f7c9b04e0

5 years agoFix windows leaked in ZenModeScheduleRuleSettings
tmfang [Tue, 31 Jul 2018 08:24:57 +0000 (16:24 +0800)]
Fix windows leaked in ZenModeScheduleRuleSettings

ZenModeScheduleRuleSettings creates an DaysDialog when user clicked
Days option.

If Activity was destroyed suddenly, WindowsManager throws a windows leaked exception.
And then DaysDialog try to do something(dismiss), settings app will crash.

So, we need to dismiss dialog when activity was destroyed.

Test: robo test, change code to recover symptom, manual test
Change-Id: I8d5370fe9673573581d613da91c7ab9be55d8199
Fixes: 111841375

6 years agoMerge "Unable to send files over Bluetooth OPP"
TreeHugger Robot [Tue, 31 Jul 2018 07:37:13 +0000 (07:37 +0000)]
Merge "Unable to send files over Bluetooth OPP"

6 years agoMerge "Remove UsbModeChooserActivity in AndroidManifest"
TreeHugger Robot [Tue, 31 Jul 2018 07:26:48 +0000 (07:26 +0000)]
Merge "Remove UsbModeChooserActivity in AndroidManifest"

6 years agoUnable to send files over Bluetooth OPP
tmfang [Tue, 31 Jul 2018 06:20:12 +0000 (14:20 +0800)]
Unable to send files over Bluetooth OPP

DevicPickerActivity switches to an androidx fragment in layout of bluetooth_device_picker.
But android.app.Activity doesn't support androidx fragment.
So, let DevicePiackerActivity extend androidx FragmentActivity.

Change-Id: I5da98a5e2242b75d2205a786bf373b81dfe6f613
Fixes: 112010509
Test: manual test, robo test

6 years agoMerge "Use BluetoothAdapter instead of LocalBluetoothAdapter"
TreeHugger Robot [Tue, 31 Jul 2018 04:54:43 +0000 (04:54 +0000)]
Merge "Use BluetoothAdapter instead of LocalBluetoothAdapter"

6 years agoUse BluetoothAdapter instead of LocalBluetoothAdapter
hughchen [Thu, 26 Jul 2018 03:22:01 +0000 (11:22 +0800)]
Use BluetoothAdapter instead of LocalBluetoothAdapter

LocalBluetoothAdapter only has a few APIs that is not supported
by BluetoothAdapter, and lots of LocalBluetoothAdapter function
pass parameter to BluetoothAdapter directly.
Do the refactor in Settings, use BluetoothAdapter instead of
LocalBluetoothAdapter.

Bug: 111769754
Test: make -j42 RunSettingsRoboTests
Change-Id: I88e5a8377b5d1106c7679e6a8c3fd1ca1a80ea6f

6 years agoRemove UsbModeChooserActivity in AndroidManifest
tmfang [Tue, 31 Jul 2018 03:12:16 +0000 (11:12 +0800)]
Remove UsbModeChooserActivity in AndroidManifest

UsbModeChooserActivity was removed since b/70848054,
So, we also removed it in AndroidManifest.xml.

Change-Id: I42a3330eec46ac957beeb384ef7d0c130f2f82e3
Fixes: 111968651
Test: robo

6 years agoMerge "Add Hearing Aid UI into Settings-Accessibility App"
TreeHugger Robot [Tue, 31 Jul 2018 02:53:01 +0000 (02:53 +0000)]
Merge "Add Hearing Aid UI into Settings-Accessibility App"

6 years agoMerge "Adding icon to color correction mode"
Dieter Hsu [Tue, 31 Jul 2018 00:57:33 +0000 (00:57 +0000)]
Merge "Adding icon to color correction mode"

6 years agoMerge "Remove BluetoothFeatureProvider and impl"
TreeHugger Robot [Mon, 30 Jul 2018 20:53:02 +0000 (20:53 +0000)]
Merge "Remove BluetoothFeatureProvider and impl"

6 years agoMerge "Fixed AutofillPreferenceCategory so it's UI is properly refreshed."
TreeHugger Robot [Mon, 30 Jul 2018 18:27:40 +0000 (18:27 +0000)]
Merge "Fixed AutofillPreferenceCategory so it's UI is properly refreshed."

6 years agoRemove BluetoothFeatureProvider and impl
Fan Zhang [Sat, 28 Jul 2018 00:38:31 +0000 (17:38 -0700)]
Remove BluetoothFeatureProvider and impl

It's not used by anything

Change-Id: I03a73461a391657b8efbce13670a0c92fc4e3565
Fixes: 111940586
Test: rebuild

6 years agoFixed AutofillPreferenceCategory so it's UI is properly refreshed.
Felipe Leme [Mon, 30 Jul 2018 16:27:36 +0000 (09:27 -0700)]
Fixed AutofillPreferenceCategory so it's UI is properly refreshed.

Test: manual verification
Test: runtest --path packages/apps/Settings/tests/unit/src/com/android/settings/core/PreferenceControllerContractTest.java
Bug: 65700540
Bug: 111838239

Change-Id: If4e80a47d65aea34b94271e43ac38612373f4fa2

6 years agoMerge "Settings crashes on opening Wi-Fi Add network"
TreeHugger Robot [Mon, 30 Jul 2018 16:18:12 +0000 (16:18 +0000)]
Merge "Settings crashes on opening Wi-Fi Add network"

6 years agoMerge "Fix leaked windows exception in WifiDialogActivity"
TreeHugger Robot [Mon, 30 Jul 2018 16:16:20 +0000 (16:16 +0000)]
Merge "Fix leaked windows exception in WifiDialogActivity"

6 years agoRemove obsolete parameter from addDevice
Chienyuan [Mon, 30 Jul 2018 12:16:52 +0000 (20:16 +0800)]
Remove obsolete parameter from addDevice

Bug: 111966655
Test: build pass
Change-Id: I2f9475ad6b7588946421e852f0724ae616b107ba

6 years agoFix leaked windows exception in WifiDialogActivity
tmfang [Fri, 27 Jul 2018 10:41:23 +0000 (18:41 +0800)]
Fix leaked windows exception in WifiDialogActivity

WifiDialog was created by WifiDialogActivity.
If activity was destroyed suddenly, WifiDialog can't dismiss itself.

So, we need to dismiss dialog, when activity was destroyed.

Test: robo and manual test
Bug: 111841375
Change-Id: I8aaf1c78e72144bf7c9cbc2392bce30e715d86e9

6 years agoAdd Hearing Aid UI into Settings-Accessibility App
timhypeng [Thu, 14 Jun 2018 05:54:05 +0000 (13:54 +0800)]
Add Hearing Aid UI into Settings-Accessibility App

- dynamically show/hide preference by HearingAid profile is supported or not
- add AccessibilityHearingAidPreferenceController to handle hearingAid preference
- add HearingAidDialogFragment to handle dialog behavior

Bug: 109948484
Test: make -j50 RunSettingsRoboTests

Change-Id: Ic55dde475dc40311f7e652f4a86d342597f09f0e

6 years agoFix some crash cases when we launch AlertDialog
tmfang [Mon, 30 Jul 2018 05:49:43 +0000 (13:49 +0800)]
Fix some crash cases when we launch AlertDialog

AlertDialog needs to use App.Compat theme.

Change-Id: Icef2f5b5cf2d614f98fd1d793e88c6a7349b1380
Fixes: 111888332
Test: robo

6 years agoMerge "Clean up task affinity."
TreeHugger Robot [Sat, 28 Jul 2018 02:09:48 +0000 (02:09 +0000)]
Merge "Clean up task affinity."

6 years agoClean up task affinity.
Fan Zhang [Fri, 27 Jul 2018 23:16:43 +0000 (16:16 -0700)]
Clean up task affinity.

If activity is launched through external intent, back button should just
go back to previous screen.

Change-Id: I5b2e57d2751f5ed7c17140d3eb8d54736b78053c
Fixes: 111864355
Test: manual

6 years agoMerge "Added autofill options on Developer Options screen."
Felipe Leme [Fri, 27 Jul 2018 16:02:34 +0000 (16:02 +0000)]
Merge "Added autofill options on Developer Options screen."

6 years agoMerge "Fix Wifi off state UI"
TreeHugger Robot [Fri, 27 Jul 2018 16:00:22 +0000 (16:00 +0000)]
Merge "Fix Wifi off state UI"

6 years agoAdding icon to color correction mode
Dieter Hsu [Fri, 27 Jul 2018 07:49:56 +0000 (15:49 +0800)]
Adding icon to color correction mode

Adding icon image with red and green so users can see the
effects of changing the color correction.

Bug: 38103344
Test: Visually saw the icon appear in Settings->Accessibility->Color
Correction

Change-Id: I922b6ef2ee0f3a8e8d6ac80a14e46cd66da15195

6 years agoSettings crashes on opening Wi-Fi Add network
tmfang [Thu, 26 Jul 2018 09:32:49 +0000 (17:32 +0800)]
Settings crashes on opening Wi-Fi Add network

Since Theme_Settings_NoActionBar extends from Theme.DeviceDefault.Settings,
so it carshed when AppCompatDelegateImpl tried to get AppCompat theme from WifiDialog.

Test: visual inspection, robo
Change-Id: I751b771fdfa9ad2261baa5a06274f6bb0a70d677
Fixes: 111804691

6 years agoMerge "IME auto popup fail when tap on wifi access point"
TreeHugger Robot [Fri, 27 Jul 2018 05:25:14 +0000 (05:25 +0000)]
Merge "IME auto popup fail when tap on wifi access point"

6 years agoIME auto popup fail when tap on wifi access point
tmfang [Tue, 24 Jul 2018 07:09:09 +0000 (15:09 +0800)]
IME auto popup fail when tap on wifi access point

Since we migrated AlertDialog to AndroidX version,
we use App.Compat theme for AndroidX AlertDialog.

Test: visual inspection, robo
Change-Id: I7911ab7f5c6338559f4568c8e8bb52357ca2edd3
Fixes: 111731279

6 years agoFix Wifi off state UI
Mill Chen [Wed, 25 Jul 2018 13:52:15 +0000 (21:52 +0800)]
Fix Wifi off state UI

- Apply footerPreferenceStyle to reduce the text size and text color
- Add "info" icon

Bug: 80087791
Test: visual, RunSettingsRoboTests
ROBOTEST_FILTER=com.android.settings.wifi

Change-Id: I19d4f67c5a9f2fc2b542f40e051c1469ab40e7db

6 years agoMerge changes I77a53f70,I853d3611
Lei Yu [Fri, 27 Jul 2018 01:34:25 +0000 (01:34 +0000)]
Merge changes I77a53f70,I853d3611

* changes:
  Add functions for table action.
  Create table to store user action.

6 years agoMerge "Update AppCheckBoxPreference to show summary"
TreeHugger Robot [Fri, 27 Jul 2018 00:37:43 +0000 (00:37 +0000)]
Merge "Update AppCheckBoxPreference to show summary"

6 years agoMerge "When wallpaper colors not ready set sys ui flags when ready"
TreeHugger Robot [Thu, 26 Jul 2018 23:21:36 +0000 (23:21 +0000)]
Merge "When wallpaper colors not ready set sys ui flags when ready"

6 years agoAdd functions for table action.
jackqdyulei [Thu, 19 Jul 2018 17:09:47 +0000 (10:09 -0700)]
Add functions for table action.

1. Insert/Update/Query/Delete
2. Update the action when app been restricted
3. Display restriction time in RestrictedAppDetails

Bug: 111366678
Test: RunSettingsRoboTests
Change-Id: I77a53f70e1ce4b612aabe28b7a1bb5df8f3ec9d5

6 years agoWhen wallpaper colors not ready set sys ui flags when ready
Matthew Ng [Thu, 19 Jul 2018 20:30:54 +0000 (13:30 -0700)]
When wallpaper colors not ready set sys ui flags when ready

Uses a listener on wallpaper manager to get the wallpaper colors for
fallback home. When the colors are ready it can correctly set the system
ui flags.

Change-Id: I7119c0f035245539cb69bec1ccccecef64d3aff5
Fixes: 79776583
Test: reboot phone, unlock with pin/pattern with light them wallpaper
Test: make RunSettingsRoboTests ROBOTEST_FILTER=FallbackHomeActivityTest

6 years agoUpdate AppCheckBoxPreference to show summary
jackqdyulei [Thu, 26 Jul 2018 21:14:15 +0000 (14:14 -0700)]
Update AppCheckBoxPreference to show summary

The summary is invisible by default if we use preference_app.xml,
this CL turn it on if summary is not empty.

Bug: 111366678
Test: RunSettingsRoboTests
Change-Id: I3fe5827a5e80a8e21309b163dbbaa1070f5ee61e

6 years agoMerge "Pass in context when loading icons from Tile"
TreeHugger Robot [Thu, 26 Jul 2018 21:58:49 +0000 (21:58 +0000)]
Merge "Pass in context when loading icons from Tile"

6 years agoCreate table to store user action.
jackqdyulei [Wed, 18 Jul 2018 22:13:19 +0000 (15:13 -0700)]
Create table to store user action.

For example, it will store when user restrict an app.

Bug: 111366678
Test: Build
Change-Id: I853d3611f260436d1f97ee7b0a40c52a8bde0678

6 years agoUse Settings.Secure values, not Global values
Beverly [Mon, 2 Jul 2018 20:46:11 +0000 (16:46 -0400)]
Use Settings.Secure values, not Global values

The following Settings are being moved to Settings.Secure
from Settings.Global since they are settings that exist
per user
 - CHARGING_SOUNDS_ENABLED
 - CHARGING_VIBRATION_ENABLED
 - ZEN_DURATION
 - SHOW_ZEN_UPGRADE_NOTIFICATION
 - SHOW_ZEN_SETTINGS_SUGGESTION
 - ZEN_SETTINGS_UPDATE
 - ZEN_SETTINGS_SUGGESTION_VIEWED

Bug: 110926544
Test: make ROBOTEST_FILTER=ZenModeDurationPreferenceControllerTest RunSettingsRoboTests
Change-Id: I3e3d6f6653b81a121fbda7d2f9f1b75651f536b7

6 years agoMerge "PowerUsageSummary: move controllers to xml"
TreeHugger Robot [Thu, 26 Jul 2018 20:13:44 +0000 (20:13 +0000)]
Merge "PowerUsageSummary: move controllers to xml"

6 years agoPass in context when loading icons from Tile
Fan Zhang [Thu, 26 Jul 2018 18:26:11 +0000 (11:26 -0700)]
Pass in context when loading icons from Tile

Bug: 111860183
Test: robotests
Change-Id: I836ad66eb420f4e0bd0bbded541f4dfe947c9b18

6 years agoAdd a boolean flag to show or hide Private DNS in Network & internet.
Ben Lin [Thu, 26 Jul 2018 19:06:48 +0000 (12:06 -0700)]
Add a boolean flag to show or hide Private DNS in Network & internet.

The following boolean flag is added:
config_show_private_dns_settings

When set to false, Private DNS will not be shown in Network & internet.

Bug: 111398942
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=PrivateDnsPreferenceControllerTest
Change-Id: I62911930680355b7fc109b295d8526bdb7eac0b3

6 years agoPowerUsageSummary: move controllers to xml
jackqdyulei [Tue, 24 Jul 2018 17:49:05 +0000 (10:49 -0700)]
PowerUsageSummary: move controllers to xml

Also change the following controllers to have standard constructor
1. BatteryHeaderPreferenceController
2. BatteryTipPreferenceController

Change-Id: I2e68082295eb8ef18de9fef9483a10b070c77a47
Fixes: 111131567
Test: robotest

6 years agoAdded autofill options on Developer Options screen.
Felipe Leme [Wed, 25 Jul 2018 00:24:40 +0000 (17:24 -0700)]
Added autofill options on Developer Options screen.

Test: manual verification
Test: atest AutofillResetOptionsPreferenceControllerTest\
            AutofillLoggingLevelPreferenceControllerTest
Test: runtest --path packages/apps/Settings/tests/unit/src/com/android/settings/core/PreferenceControllerContractTest.java
Fixes: 65700540

Change-Id: I6b35fbf549529f4d97df164ce3fb6d641ee37650

6 years agoMerge "Add a boolean flag to show or hide the device name in About device."
Prabir Pradhan [Thu, 26 Jul 2018 05:24:49 +0000 (05:24 +0000)]
Merge "Add a boolean flag to show or hide the device name in About device."

6 years agoMerge "Fix the empty preference after clicking gear icon"
TreeHugger Robot [Thu, 26 Jul 2018 03:34:36 +0000 (03:34 +0000)]
Merge "Fix the empty preference after clicking gear icon"

6 years agoFix the empty preference after clicking gear icon
felkachang [Thu, 19 Jul 2018 12:06:50 +0000 (20:06 +0800)]
Fix the empty preference after clicking gear icon

Because there is no other options for 'None' or 'Swipe, there is no
necessary for showing the gear icon to show options.

'Lock screen message' could be found in
Settings > Display > Lock screen display.

Add testcase to verify the ChangeScreenLockPreferenceController's
behavior.

Test: make ROBOTEST_FILTER=ChangeScreenLockPreferenceControllerTest \
      RunSettingsRoboTests -j40
Change-Id: Icdcd672261749d106162053d6f5228cee420a810
Fixes: 110848852

6 years agoMerge "Restore the up time preference."
TreeHugger Robot [Thu, 26 Jul 2018 00:50:31 +0000 (00:50 +0000)]
Merge "Restore the up time preference."

6 years agoAdd a boolean flag to show or hide the device name in About device.
Prabir Pradhan [Wed, 25 Jul 2018 20:55:56 +0000 (13:55 -0700)]
Add a boolean flag to show or hide the device name in About device.

The following boolean flag is added:
config_show_device_name

When set to false, the device name will not be shown in System > About
Device.

Bug: 111653180
Test: Updated robotests
Change-Id: Id9610e2009604c9d9693428adff01adc7d606565

6 years agoMerge "Clean up unused deps"
TreeHugger Robot [Wed, 25 Jul 2018 23:48:14 +0000 (23:48 +0000)]
Merge "Clean up unused deps"

6 years agoRestore the up time preference.
Doris Ling [Wed, 25 Jul 2018 23:12:57 +0000 (16:12 -0700)]
Restore the up time preference.

- up time preference is removed when we updated to the new version of
about phone settings. Add it back to the preference xml, and restore the
controller for it.

Change-Id: I245316e84d04f9d6f033377c944b615dd6e138a5
Fixes: 111828610
Test: manual

6 years agoMerge "Use Tile.getIcon() to avoid caching issue"
TreeHugger Robot [Wed, 25 Jul 2018 23:25:54 +0000 (23:25 +0000)]
Merge "Use Tile.getIcon() to avoid caching issue"

6 years agoMerge "Check for WiFi controller for summary population."
TreeHugger Robot [Wed, 25 Jul 2018 22:51:00 +0000 (22:51 +0000)]
Merge "Check for WiFi controller for summary population."

6 years agoClean up unused deps
Fan Zhang [Wed, 25 Jul 2018 22:25:05 +0000 (15:25 -0700)]
Clean up unused deps

Test: rebuild
Change-Id: I7caa30024046ae832cafef6598ecf74db4aba8bf

6 years agoCheck for WiFi controller for summary population.
Ben Lin [Fri, 20 Jul 2018 19:36:42 +0000 (12:36 -0700)]
Check for WiFi controller for summary population.

WiFiController might return not available, so we should only surface
"Wi-Fi" as a summary entry if it's available in the settings page.

This also checks for empty strings in case they are declared as such in
the XML (since XML can be device/product overlay'd), to avoid situations
such as ", data usage".

Bug: 111398942
Test: Manual check, and I see Wi-Fi no longer visible for cases where
Wifi controller isn't available.
Test: make RunSettingsRoboTests
Change-Id: I24736a6240c50e2ea38ce424fbac2316721290d8

6 years agoUse Tile.getIcon() to avoid caching issue
Fan Zhang [Tue, 24 Jul 2018 19:49:30 +0000 (12:49 -0700)]
Use Tile.getIcon() to avoid caching issue

Bug: 77600770
Test: robotests
Change-Id: Icb21f5da9b542abc239b04b71813290ad3104ffb

6 years agoMerge "Remove unused interface API"
TreeHugger Robot [Wed, 25 Jul 2018 18:28:46 +0000 (18:28 +0000)]
Merge "Remove unused interface API"

6 years agoMerge "Change floating search button icon"
TreeHugger Robot [Wed, 25 Jul 2018 17:41:11 +0000 (17:41 +0000)]
Merge "Change floating search button icon"

6 years agoChange floating search button icon
Mill Chen [Wed, 25 Jul 2018 05:32:34 +0000 (13:32 +0800)]
Change floating search button icon

- Add an alias name for floating search button

Bug: 111665984
Test: rebuild
Change-Id: I020cd4a163ae586f5b8faa0d4f8d9bc8bbd84fa4

6 years agoRemove unused interface API
Fan Zhang [Tue, 24 Jul 2018 22:00:01 +0000 (15:00 -0700)]
Remove unused interface API

Bug: 111796429
Test: robotests
Change-Id: I5887a0a48285cf61777ac7c6a896d16dd7585a26

6 years agoMerge "Fix new account not shown for work profile."
Doris Ling [Tue, 24 Jul 2018 17:57:43 +0000 (17:57 +0000)]
Merge "Fix new account not shown for work profile."

6 years agoMerge "Update Security & location preference summary depending on biometrics"
Kevin Chyn [Tue, 24 Jul 2018 17:42:36 +0000 (17:42 +0000)]
Merge "Update Security & location preference summary depending on biometrics"

6 years agoMerge "Modified the char limit"
TreeHugger Robot [Tue, 24 Jul 2018 16:20:25 +0000 (16:20 +0000)]
Merge "Modified the char limit"

6 years ago[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f23...
Dario Freni [Tue, 24 Jul 2018 11:11:18 +0000 (04:11 -0700)]
[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f239  -s ours am: 1e56e69a46  -s ours am: 1237373743  -s ours
am: 64e4c89ef6  -s ours

Change-Id: I8b4a41fa2ef2fb023ba4f5ac96494be8172cb6ec

6 years ago[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f23...
Dario Freni [Tue, 24 Jul 2018 11:06:25 +0000 (04:06 -0700)]
[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f239  -s ours am: 1e56e69a46  -s ours
am: 1237373743  -s ours

Change-Id: I00878455de5f09b6ab95d03ae5def411c8c0cb9e

6 years ago[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f23...
Dario Freni [Tue, 24 Jul 2018 11:02:45 +0000 (04:02 -0700)]
[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f239  -s ours
am: 1e56e69a46  -s ours

Change-Id: I0282749b861a6571326c725b5c62a0ebda99dff9

6 years ago[automerger skipped] Merge "Include NOTICE file in /product partition."
Dario Freni [Tue, 24 Jul 2018 10:58:08 +0000 (03:58 -0700)]
[automerger skipped] Merge "Include NOTICE file in /product partition."
am: aa2ec5f239  -s ours

Change-Id: I5341a7ab21758d1a47b0618cd8b1779f063b1406

6 years agoMerge "Include NOTICE file in /product partition."
Treehugger Robot [Tue, 24 Jul 2018 10:35:44 +0000 (10:35 +0000)]
Merge "Include NOTICE file in /product partition."

6 years agoMerge "Delegate PrintServicesLoader to the framework's one"
TreeHugger Robot [Tue, 24 Jul 2018 10:17:53 +0000 (10:17 +0000)]
Merge "Delegate PrintServicesLoader to the framework's one"