OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoAdd network listener in MobileSettingsActivity
jackqdyulei [Tue, 9 Oct 2018 19:26:51 +0000 (12:26 -0700)]
Add network listener in MobileSettingsActivity

Listen to subscription change. If it is changed, refresh UI and build
new fragment for it.

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I436b4d62b06230e767892bda6cf8582d4946097b

5 years agoRefactor MobileDataPreference
jackqdyulei [Mon, 8 Oct 2018 22:13:53 +0000 (15:13 -0700)]
Refactor MobileDataPreference

1. Remove it and change it to SwitchPrference
2. Build MobileDataDialogFragment to show dialog when needed
3. Create controller for it to decide when to launch the dialog

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I02b9662c5829e765f2c71d10ed951d792cf7aaa1

5 years agoMerge "Remove obsolete chart view widgets."
TreeHugger Robot [Mon, 8 Oct 2018 23:00:06 +0000 (23:00 +0000)]
Merge "Remove obsolete chart view widgets."

5 years agoMerge changes I3008bf85,I43aebf2e,I4fda0708,I744d5376
Lei Yu [Mon, 8 Oct 2018 22:12:26 +0000 (22:12 +0000)]
Merge changes I3008bf85,I43aebf2e,I4fda0708,I744d5376

* changes:
  Remove AdvancedOptionsPreference
  Add activity for mobile network page
  Fix the complie error of network migration
  Copy MobileNetworkSettings to settings app

5 years agoMerge "Remove DeviceIndex feature/service."
TreeHugger Robot [Mon, 8 Oct 2018 22:11:24 +0000 (22:11 +0000)]
Merge "Remove DeviceIndex feature/service."

5 years agoRemove obsolete chart view widgets.
Doris Ling [Mon, 8 Oct 2018 21:18:50 +0000 (14:18 -0700)]
Remove obsolete chart view widgets.

ChartDataUsageView and ChartNetworkSeriesView are no longer being used.
Remove them to avoid the need to maintain obsolete codes.

Bug: 117433810
Test: rebuild and make RunSettingsRoboTests
Change-Id: I0c99725500926083bee693c102a323d563647c3a

5 years agoMerge "Add search keyword to lock screen notification setting."
TreeHugger Robot [Mon, 8 Oct 2018 20:51:27 +0000 (20:51 +0000)]
Merge "Add search keyword to lock screen notification setting."

5 years agoRemove DeviceIndex feature/service.
Fan Zhang [Wed, 3 Oct 2018 21:27:53 +0000 (14:27 -0700)]
Remove DeviceIndex feature/service.

Change-Id: I8444101669aef013183842c2d13cf3960c756398
Fixes: 112587202
Test: rerun all tests

5 years agoAdd search keyword to lock screen notification setting.
Fan Zhang [Mon, 8 Oct 2018 19:39:23 +0000 (12:39 -0700)]
Add search keyword to lock screen notification setting.

Bug: 115894261
Test: reindex
Change-Id: I0532c5dba8175beb2712cd907d132a360d312c04

5 years agoLog open search action in metrics.
Fan Zhang [Mon, 8 Oct 2018 19:16:30 +0000 (12:16 -0700)]
Log open search action in metrics.

Change-Id: I80ab40d0767a9e6e561690f31bd092b384095b6e
Fixes: 117341899
Test: robotests

5 years agoRemove AdvancedOptionsPreference
jackqdyulei [Fri, 5 Oct 2018 22:49:52 +0000 (15:49 -0700)]
Remove AdvancedOptionsPreference

This is used to show "Advanced" preference in telephony package.
Remove it since we have better way to do it in settings.

Bug: 114749736
Test: Manual
Change-Id: I3008bf856b8f42ba10ab26cb81d35a9370601c58

5 years agoAdd activity for mobile network page
jackqdyulei [Fri, 5 Oct 2018 17:04:19 +0000 (10:04 -0700)]
Add activity for mobile network page

1. Extract the Tabhost to activity level, not fragment level. So
each mobile fragment has a constant subscriptionId
2. Use BottomNavigationView instead of TabHost

Bug: 114749736
Test: RunSettingsRoboTests
Change-Id: I43aebf2ec01a945697c6b2302ab750e715e4bfef

5 years agoFix the complie error of network migration
jackqdyulei [Wed, 3 Oct 2018 23:34:57 +0000 (16:34 -0700)]
Fix the complie error of network migration

1. Fix the error in import part
2. Remove broken code and add TODO

Future CL will fix TODO and add tests

Bug: 114749736
Test: Build
Change-Id: I4fda0708959e299015ecb10ac17c9c2dadc6f852

5 years agoMerge "Fix typo in getHistoriclUsageLevel()"
Doris Ling [Mon, 8 Oct 2018 17:24:37 +0000 (17:24 +0000)]
Merge "Fix typo in getHistoriclUsageLevel()"

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 7 Oct 2018 04:32:01 +0000 (21:32 -0700)]
Import translations. DO NOT MERGE

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

5 years agoMerge "Use updated APIs for CBRS"
Sooraj Sasindran [Sat, 6 Oct 2018 03:41:26 +0000 (03:41 +0000)]
Merge "Use updated APIs for CBRS"

5 years agoMerge "Fix work profile fingerprint userId"
TreeHugger Robot [Fri, 5 Oct 2018 23:59:52 +0000 (23:59 +0000)]
Merge "Fix work profile fingerprint userId"

5 years agoFix typo in getHistoriclUsageLevel()
Doris Ling [Fri, 5 Oct 2018 21:22:07 +0000 (14:22 -0700)]
Fix typo in getHistoriclUsageLevel()

Bug: 111751694
Test: make RunSettingsRoboTests
Change-Id: I523e43f60948e49e78d518a4eeb3ed2bf885f7bd

5 years agoFix work profile fingerprint userId
Kevin Chyn [Fri, 5 Oct 2018 18:09:46 +0000 (11:09 -0700)]
Fix work profile fingerprint userId

Fixes: 117303349

Test: Enabling work profile, FP settings shows independent sets again
      (same as P behavior)

Change-Id: Ifddd41c8aaa4316a58c9b8d16905d6d05318f5fd

5 years agoMerge "Get ethernet data usage from NetworkStatsManager."
TreeHugger Robot [Thu, 4 Oct 2018 20:00:19 +0000 (20:00 +0000)]
Merge "Get ethernet data usage from NetworkStatsManager."

5 years agoGet ethernet data usage from NetworkStatsManager.
Doris Ling [Thu, 4 Oct 2018 00:17:52 +0000 (17:17 -0700)]
Get ethernet data usage from NetworkStatsManager.

- change to use NetworkStatsManager.querySummaryForUser() to check for
ethernet usage data instead of getting it from INetworkStatsSession.

Bug: 111751694
Test: make RunSettingsRoboTests
Change-Id: I60364b4a5f7879906beba194c50955154d56803a

5 years agoMerge "Still check the visibility of view"
Lei Yu [Thu, 4 Oct 2018 17:08:58 +0000 (17:08 +0000)]
Merge "Still check the visibility of view"

5 years agoMerge "Don't set value when developer options disabled" am: 692f5368d0 am: 5ef8843845
Chienyuan [Thu, 4 Oct 2018 03:02:10 +0000 (20:02 -0700)]
Merge "Don't set value when developer options disabled" am: 692f5368d0 am: 5ef8843845
am: 4f7895f08b

Change-Id: I688e3dfee47ead666e93d8b5a42ad88a49259d65

5 years agoMerge "Don't set value when developer options disabled" am: 692f5368d0
Chienyuan [Thu, 4 Oct 2018 02:57:57 +0000 (19:57 -0700)]
Merge "Don't set value when developer options disabled" am: 692f5368d0
am: 5ef8843845

Change-Id: Idb3c130e31571111911b4e17d989b1199ff7619a

5 years agoMerge "Don't set value when developer options disabled"
Chienyuan [Thu, 4 Oct 2018 02:48:47 +0000 (19:48 -0700)]
Merge "Don't set value when developer options disabled"
am: 692f5368d0

Change-Id: Icddab4eb38cade9d111e39a0e2dfee24198aabc0

5 years agoMerge "Don't set value when developer options disabled"
Treehugger Robot [Thu, 4 Oct 2018 02:28:42 +0000 (02:28 +0000)]
Merge "Don't set value when developer options disabled"

5 years agoCopy MobileNetworkSettings to settings app
jackqdyulei [Wed, 3 Oct 2018 20:54:53 +0000 (13:54 -0700)]
Copy MobileNetworkSettings to settings app

This is a CL to copy most components from telephony to settings app with
following changes to pass the preupload check:
1. Add [CHAR LIMIT]/comments for strings that miss them

This CL cannot build and future CL will fix the broken part.

Bug: 114749736
Test: Build
Change-Id: I744d537610eeeb7f2fb801defdd0ce47ef6088b6

5 years agoMerge "Add PreferenceController for support tile in homepage."
TreeHugger Robot [Wed, 3 Oct 2018 22:46:56 +0000 (22:46 +0000)]
Merge "Add PreferenceController for support tile in homepage."

5 years agoAdd PreferenceController for support tile in homepage.
Fan Zhang [Wed, 3 Oct 2018 19:58:51 +0000 (12:58 -0700)]
Add PreferenceController for support tile in homepage.

Change-Id: I8fe93456a761382513c07ff85c858ded30f599fc
Fixes: 116875332
Test: robotests

5 years agoMerge "Change reset page to be SUW style"
TreeHugger Robot [Wed, 3 Oct 2018 20:29:45 +0000 (20:29 +0000)]
Merge "Change reset page to be SUW style"

5 years agoUse the new loader to show app data usage details.
Doris Ling [Tue, 2 Oct 2018 21:54:21 +0000 (14:54 -0700)]
Use the new loader to show app data usage details.

- this is for showing the detail usage (total, background, and
foreground) for a specific app for each billing cycle.

Bug: 111751694
Test: make RunSettingsRoboTests
Change-Id: I8e02872a4204b682089ea117811b50966e785c55

5 years agoMerge changes I44039704,Iee0de8a2
Lei Yu [Wed, 3 Oct 2018 19:04:16 +0000 (19:04 +0000)]
Merge changes I44039704,Iee0de8a2

* changes:
  Use isConnected in CachedBluetoothDevice
  Update "Previous connected device" preference

5 years agoChange reset page to be SUW style
felkachang [Thu, 29 Mar 2018 04:08:20 +0000 (12:08 +0800)]
Change reset page to be SUW style

The factory reset page and the reset confirmation page is too old to
follow the style of Setup Wizard design. To change the layout and apply
the style for textviews and header.

Bug: 73738836
Test: make -j SettingsRoboTests RunSettingsRoboTests
Change-Id: I1ee3d09e1ef9cac8e25c60a566363d4f7d537eeb

5 years agoMerge "Delete provider data before insert"
TreeHugger Robot [Wed, 3 Oct 2018 17:01:23 +0000 (17:01 +0000)]
Merge "Delete provider data before insert"

5 years agoDon't set value when developer options disabled
Chienyuan [Wed, 3 Oct 2018 13:04:19 +0000 (21:04 +0800)]
Don't set value when developer options disabled

We shouldn't change property when developer options disabled.
Change A2DP HW offload property without reboot, A2DP will not work.

Bug: 109717129
Test: manual
Change-Id: I96103b04922b28995be198badbed324de40624f0

5 years ago[automerger skipped] Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()" am...
Neil Fuller [Wed, 3 Oct 2018 07:36:19 +0000 (00:36 -0700)]
[automerger skipped] Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()" am: a934366a8d am: 8caeafdf92
am: eae7538909  -s ours

Change-Id: Ibebf9810795cc9b87bcfdcc123d9f8b360260986

5 years agoMerge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()" am: a934366a8d
Neil Fuller [Wed, 3 Oct 2018 07:32:10 +0000 (00:32 -0700)]
Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()" am: a934366a8d
am: 8caeafdf92

Change-Id: I9dcfcf4414837d32a42abc152a49fb4544ddac80

5 years agoMerge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()"
Neil Fuller [Wed, 3 Oct 2018 07:26:56 +0000 (00:26 -0700)]
Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()"
am: a934366a8d

Change-Id: If44a79fde1e2694dc24d09cbf889771facef751f

5 years agoMerge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()"
Neil Fuller [Wed, 3 Oct 2018 07:13:37 +0000 (07:13 +0000)]
Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()"

5 years agoDelete provider data before insert
Sunny Shao [Wed, 3 Oct 2018 03:01:04 +0000 (11:01 +0800)]
Delete provider data before insert

- Updated CardContentProvider and deleted exist data first to avoid redundant insertion in bulkInsert

Bug: 115575311
Test: robotest
Change-Id: I58b7b26f18bfdb8a59ebc61d7abb478390c58e4c

5 years agoMerge "Use the new loader to show app data usage summary."
TreeHugger Robot [Wed, 3 Oct 2018 01:30:40 +0000 (01:30 +0000)]
Merge "Use the new loader to show app data usage summary."

5 years ago[automerger skipped] Merge "Fix Connect State message in Device details for Hearing...
Stanley Tng [Wed, 3 Oct 2018 01:05:04 +0000 (18:05 -0700)]
[automerger skipped] Merge "Fix Connect State message in Device details for Hearing Aids" into pi-dev-plus-aosp
am: ce939610ba  -s ours

Change-Id: Icb817e909ee7f66f8b8f53c8e3572354845167a9

5 years ago[automerger skipped] Merge "Fix Connect State message in Device details for Hearing...
Stanley Tng [Wed, 3 Oct 2018 00:35:11 +0000 (17:35 -0700)]
[automerger skipped] Merge "Fix Connect State message in Device details for Hearing Aids" into pi-dev am: 31703ca227  -s ours
am: 0eb58d6f55  -s ours

Change-Id: I8c89ec79c91605b43a073dbbe225b828bd2fdd35

5 years agoMerge "Set the layoutPreference not selectable"
TreeHugger Robot [Wed, 3 Oct 2018 00:23:42 +0000 (00:23 +0000)]
Merge "Set the layoutPreference not selectable"

5 years agoMerge "Fix Connect State message in Device details for Hearing Aids" into pi-dev...
TreeHugger Robot [Wed, 3 Oct 2018 00:04:45 +0000 (00:04 +0000)]
Merge "Fix Connect State message in Device details for Hearing Aids" into pi-dev-plus-aosp

5 years ago[automerger skipped] Merge "Fix Connect State message in Device details for Hearing...
Stanley Tng [Tue, 2 Oct 2018 23:46:58 +0000 (16:46 -0700)]
[automerger skipped] Merge "Fix Connect State message in Device details for Hearing Aids" into pi-dev
am: 31703ca227  -s ours

Change-Id: Icaa20e177b9037291b4c9fc03466b692618e95e8

5 years agoMerge "Check instance before casting"
TreeHugger Robot [Tue, 2 Oct 2018 23:41:35 +0000 (23:41 +0000)]
Merge "Check instance before casting"

5 years agoUse the new loader to show app data usage summary.
Doris Ling [Tue, 2 Oct 2018 00:23:22 +0000 (17:23 -0700)]
Use the new loader to show app data usage summary.

- this is for getting the summary text for Apps & notifications ->
(select an app) -> Mobile data & Wi-Fi

Bug: 111751694
Test: make RunSettingsRoboTests
Change-Id: Ib4d8e7308ea8a782b9af3bbb99db2b1235e0aca2

5 years agoUse isConnected in CachedBluetoothDevice
jackqdyulei [Tue, 25 Sep 2018 01:09:01 +0000 (18:09 -0700)]
Use isConnected in CachedBluetoothDevice

This method check whether it has connected profile, not physical
connection between devices.

It make more sense to use it in settings:
1. We only care about whether it has active profile(i.e. A2dp, hfp..)
2. Sometime when profile is disconnected, BluetoothDevice.isConnected()
still return true. This may make UI flaky.

Bug: 79947085
Test: RunSettingsRoboTests
Change-Id: I44039704508a742c7a8aef0a035afcf169b08939

5 years agoCheck instance before casting
Fan Zhang [Tue, 2 Oct 2018 20:36:33 +0000 (13:36 -0700)]
Check instance before casting

Change-Id: I1917b2d8e045904145ea833abf35fa1d008fa224
Fixes: 116855783
Test: robotests

5 years agoFix Connect State message in Device details for Hearing Aids
Stanley Tng [Mon, 1 Oct 2018 05:47:22 +0000 (22:47 -0700)]
Fix Connect State message in Device details for Hearing Aids

In the Device details of Settings App and when using two Hearing Aids
devices (left and right sides), this will fix the connect state messages
for these two devices. Also added Robo tests for the changes.

Bug: 116725094
Bug: 117074814
Test: Manual tests and also ran RunSettingsLibRoboTests and RunSettingsRoboTests.

Change-Id: I5c9af9ec6a2a17668597a537fd1f7b70368b7ed8
Merged-In: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
Merged-In: I169cda4a1658b0a67cc7c7367b38d57a021e6953

5 years agoMerge "Add SettingsContextualCardProvider"
TreeHugger Robot [Tue, 2 Oct 2018 21:18:46 +0000 (21:18 +0000)]
Merge "Add SettingsContextualCardProvider"

5 years agoMerge "Fix Connect State message in Device details for Hearing Aids" into pi-dev
TreeHugger Robot [Tue, 2 Oct 2018 20:30:17 +0000 (20:30 +0000)]
Merge "Fix Connect State message in Device details for Hearing Aids" into pi-dev

5 years agoFix build
Hansong Zhang [Tue, 2 Oct 2018 19:44:14 +0000 (12:44 -0700)]
Fix build
am: 78ab907aa6

Change-Id: Ia036fde5adb3a8f060f5d0977147297f5a2f1489

5 years agoUse updated APIs for CBRS
Sooraj Sasindran [Tue, 2 Oct 2018 18:04:27 +0000 (11:04 -0700)]
Use updated APIs for CBRS

Use updated APIs for CBRS

Bug: 117156243
Test: verified enable disable using UI
Change-Id: Ib6be6479c9f51b7c2dd80db5f7971a8c7e820954

5 years agoMerge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()"
Neil Fuller [Tue, 2 Oct 2018 16:58:08 +0000 (16:58 +0000)]
Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()"

5 years agoFix build
Hansong Zhang [Tue, 2 Oct 2018 16:28:11 +0000 (09:28 -0700)]
Fix build

Test: compile
Change-Id: I3d236ea1b1f5ee5b4b5b2aa118416383b5b4bb6d

5 years agoMerge "Use ICU APIs not impl types" am: 811d817368 am: 09dcb87982
Neil Fuller [Tue, 2 Oct 2018 13:29:44 +0000 (06:29 -0700)]
Merge "Use ICU APIs not impl types" am: 811d817368 am: 09dcb87982
am: ccef9d9dc2

Change-Id: I302247aa892e018e58b6742f55d30c971a4f77f3

5 years agoMerge "Use ICU APIs not impl types" am: 811d817368
Neil Fuller [Tue, 2 Oct 2018 13:24:33 +0000 (06:24 -0700)]
Merge "Use ICU APIs not impl types" am: 811d817368
am: 09dcb87982

Change-Id: Ic2f3ab527774f4d2d4464e8d879cdd4408afcb44

5 years agoMerge "Use ICU APIs not impl types"
Neil Fuller [Tue, 2 Oct 2018 13:16:23 +0000 (06:16 -0700)]
Merge "Use ICU APIs not impl types"
am: 811d817368

Change-Id: I38d6806255619fec3de23945a184455072f34ec0

5 years agoMerge "Settings change for device-wide unknown sources block."
TreeHugger Robot [Tue, 2 Oct 2018 13:07:24 +0000 (13:07 +0000)]
Merge "Settings change for device-wide unknown sources block."

5 years agoMerge "Use ICU APIs not impl types"
Neil Fuller [Tue, 2 Oct 2018 12:59:47 +0000 (12:59 +0000)]
Merge "Use ICU APIs not impl types"

5 years agoAvoid deprecated PrivateKeyInfo.getAlgorithmId()
Neil Fuller [Tue, 2 Oct 2018 10:55:20 +0000 (11:55 +0100)]
Avoid deprecated PrivateKeyInfo.getAlgorithmId()

Switch from using the PrivateKeyInfo.getAlgorithmId() method to
using the functionally identical PrivateKeyInfo.getPrivateKeyAlgorithm()
method instead.

Bug: 113148576
Test: build only / inspection
Merged-In: Iab2d3b23ad969f683d716cb981e32fd554c67a81
Change-Id: I9ed5c96a20d6749bf75212c0fd820d71ca0a6053

5 years agoAvoid deprecated PrivateKeyInfo.getAlgorithmId()
Neil Fuller [Tue, 2 Oct 2018 12:27:44 +0000 (13:27 +0100)]
Avoid deprecated PrivateKeyInfo.getAlgorithmId()

Switch from using the PrivateKeyInfo.getAlgorithmId() method to
using the functionally identical PrivateKeyInfo.getPrivateKeyAlgorithm()
method instead.

Bug: 113148576
Test: build only / inspection
Change-Id: Iab2d3b23ad969f683d716cb981e32fd554c67a81

5 years ago[automerger skipped] Merge changes from topic "hearing-aid" into pi-dev am: f9658e13bb
Stanley Tng [Tue, 2 Oct 2018 11:22:19 +0000 (04:22 -0700)]
[automerger skipped] Merge changes from topic "hearing-aid" into pi-dev am: f9658e13bb
am: 8b05337e6a  -s ours

Change-Id: I87aff99bdb01b20cee9ff877edecbec3077aa5c4

5 years ago[automerger skipped] To show hearing aids device in the available devices group am...
timhypeng [Tue, 2 Oct 2018 11:21:34 +0000 (04:21 -0700)]
[automerger skipped] To show hearing aids device in the available devices group am: 79d7fdc4f3
am: 6443247f8f  -s ours

Change-Id: If899bc3294def4a4128789938a8ff306f95257a3

5 years agoMerge changes from topic "hearing-aid" into pi-dev
Stanley Tng [Tue, 2 Oct 2018 10:54:35 +0000 (03:54 -0700)]
Merge changes from topic "hearing-aid" into pi-dev
am: f9658e13bb

Change-Id: Ibdf40cc0a1712292fd41c1e38bbf879cfe3c4a65

5 years agoTo show hearing aids device in the available devices group
timhypeng [Tue, 2 Oct 2018 10:53:36 +0000 (03:53 -0700)]
To show hearing aids device in the available devices group
am: 79d7fdc4f3

Change-Id: Ie4e4014c98701d69e20f0f9244e57b5293e07f15

5 years agoUse ICU APIs not impl types
Neil Fuller [Tue, 2 Oct 2018 09:15:36 +0000 (10:15 +0100)]
Use ICU APIs not impl types

It's possible to use BasicTimeZone in place of OlsonTimeZone.
Although neither are currently public SDK APIs the BasicTimeZone
is preferable.

Bug: 113148576
Test: build
Change-Id: I745b17feee678ecd053fadc6c447107fa80918e8

5 years agoAdd SettingsContextualCardProvider
Raff Tsai [Fri, 28 Sep 2018 09:42:43 +0000 (17:42 +0800)]
Add SettingsContextualCardProvider

- provide contextual cards for SettingsIntelligence
- add contextualcards libs

Fixes: 116837093
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.homepage.contextualcards"

Change-Id: I873e77fa43e9a8f6056be1f583b1910002efbd2e

5 years agoMerge "Support phone number in Settings slices"
TreeHugger Robot [Tue, 2 Oct 2018 02:43:17 +0000 (02:43 +0000)]
Merge "Support phone number in Settings slices"

5 years agoMerge "Do PackageManager check before getting system service"
Kevin Chyn [Tue, 2 Oct 2018 02:08:56 +0000 (02:08 +0000)]
Merge "Do PackageManager check before getting system service"

5 years agoMerge "Extend limitation of A2DP HW offload related string."
TreeHugger Robot [Tue, 2 Oct 2018 02:05:41 +0000 (02:05 +0000)]
Merge "Extend limitation of A2DP HW offload related string."

5 years agoFix Connect State message in Device details for Hearing Aids
Stanley Tng [Mon, 1 Oct 2018 05:47:22 +0000 (22:47 -0700)]
Fix Connect State message in Device details for Hearing Aids

In the Device details of Settings App and when using two Hearing Aids
devices (left and right sides), this will fix the connect state messages
for these two devices. Also added Robo tests for the changes.

Bug: 116725094
Bug: 117074814
Test: Manual tests and also ran RunSettingsLibRoboTests and RunSettingsRoboTests.

Change-Id: I169cda4a1658b0a67cc7c7367b38d57a021e6953
Merged-In: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
Merged-In: I169cda4a1658b0a67cc7c7367b38d57a021e6953

5 years agoMerge changes from topic "hearing-aid" into pi-dev
TreeHugger Robot [Tue, 2 Oct 2018 00:53:40 +0000 (00:53 +0000)]
Merge changes from topic "hearing-aid" into pi-dev

* changes:
  Add Feature Flag for Hearing Aid Profile
  To show hearing aids device in the available devices group

5 years agoDo PackageManager check before getting system service
Kevin Chyn [Tue, 2 Oct 2018 00:47:35 +0000 (17:47 -0700)]
Do PackageManager check before getting system service

Fixes: 117074737

Test: Does not crash
Change-Id: I51b04f46f8d467c3a854c132415a2cad90b77203

5 years agoMerge "Do not resolve permission in settings."
TreeHugger Robot [Mon, 1 Oct 2018 22:00:30 +0000 (22:00 +0000)]
Merge "Do not resolve permission in settings."

5 years agoMerge "Add version 2 of AppDataUsagePreferenceController."
Doris Ling [Mon, 1 Oct 2018 21:46:08 +0000 (21:46 +0000)]
Merge "Add version 2 of AppDataUsagePreferenceController."

5 years agoMerge "Use BidiFormatter in ZenDeleteRuleDialog"
TreeHugger Robot [Mon, 1 Oct 2018 21:16:02 +0000 (21:16 +0000)]
Merge "Use BidiFormatter in ZenDeleteRuleDialog"

5 years agoMerge "Application accepts null intents causing a crash"
TreeHugger Robot [Mon, 1 Oct 2018 21:11:56 +0000 (21:11 +0000)]
Merge "Application accepts null intents causing a crash"

5 years agoDo not resolve permission in settings.
Philip P. Moltmann [Mon, 1 Oct 2018 20:48:43 +0000 (13:48 -0700)]
Do not resolve permission in settings.

Settings already uses the RuntimePermissionPresenter to resolve
permissions for an app. This code must be the previous implementation.

It can be removed without any issues.

Test: Built
Change-Id: Ie1375de1e23f4c9bb882a13ef7ade9adc543c82a

5 years agoUse BidiFormatter in ZenDeleteRuleDialog
Beverly [Mon, 1 Oct 2018 18:29:37 +0000 (14:29 -0400)]
Use BidiFormatter in ZenDeleteRuleDialog

Test: visual inspection
Change-Id: I99231ed5801f3286421f331554fc5c51c2a2d08c
Fixes: 35960612

5 years agoAdd version 2 of AppDataUsagePreferenceController.
Doris Ling [Mon, 1 Oct 2018 18:34:41 +0000 (11:34 -0700)]
Add version 2 of AppDataUsagePreferenceController.

- a simple copy of AppDataUsagePreferenceController to
AppDataUsagePreferenceControllerV2, so that future modification can
be compared more easily.

Bug: 111751694
Test: make RunSettingsRoboTests
Change-Id: Ibeed7775a223794bf50f36b3b933e270a55e3b39

5 years agoApplication accepts null intents causing a crash
Raff Tsai [Mon, 1 Oct 2018 10:34:22 +0000 (18:34 +0800)]
Application accepts null intents causing a crash

Change-Id: Ia7f98f43567f25ae7abc6e5ac7e07323e75d9047
Fixes: 116869239
Test: adb shell am start -n com.android.settings/com.android.settings.Settings\\\$ApnEditorActivity
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.network"

5 years agoMerge "Support some phone information in Settings slice"
Fan Zhang [Mon, 1 Oct 2018 16:46:19 +0000 (16:46 +0000)]
Merge "Support some phone information in Settings slice"

5 years agoMerge "Remove FragmentUtilsTest class"
Fan Zhang [Mon, 1 Oct 2018 16:45:19 +0000 (16:45 +0000)]
Merge "Remove FragmentUtilsTest class"

5 years agoExtend limitation of A2DP HW offload related string.
Chienyuan [Thu, 31 May 2018 06:24:06 +0000 (14:24 +0800)]
Extend limitation of A2DP HW offload related string.

With current limitation, the UI of A2DP HW offload can't be
display in some language, e.g., Arabic (ar) and Hindi (hi).

Bug: 80149220
Bug: 80164750
Bug: 80149375
Test: build pass
Change-Id: I95f6b4b21201bb466260b71f238b9c6b700bc850

5 years agoSettings change for device-wide unknown sources block.
Irina Dumitrescu [Tue, 11 Sep 2018 14:19:38 +0000 (15:19 +0100)]
Settings change for device-wide unknown sources block.

Update the "Install unknown apps" preferences to display the option is
disabled if the global user restriction for unknown apps is turned on.

Test: Manual test, disallowing installs in TestDPC disables installing
unknown sources apps. Also:
atest packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ExternalSourcesDetailsTest.java
Bug: 111335021
Change-Id: I235e5fd110e296ed43aa89d7a5ec0d48470c4023

5 years agoSupport phone number in Settings slices
tmfang [Fri, 22 Jun 2018 08:56:37 +0000 (16:56 +0800)]
Support phone number in Settings slices

- Let controller of phoner number extends BasePreferenceController,
so it can be supported showing slice view by SettingsSliceProvider.

Test: make RunSettingsRoboTests
Bug: 74900516
Change-Id: Id98e6aac981025159a0530c6e0709ba0f2ebcd15

5 years agoSupport some phone information in Settings slice
tmfang [Fri, 28 Sep 2018 07:05:07 +0000 (15:05 +0800)]
Support some phone information in Settings slice

- Android version
- Device model

Test: robo test, manual test
Change-Id: Ic047caaf4ab699082f6420ad8fa1d2f455abfcb0
Fixes: 74900516

5 years ago[automerger skipped] Import translations. DO NOT MERGE am: 0b7858e7d9 -s ours
Bill Yi [Sat, 29 Sep 2018 23:30:44 +0000 (16:30 -0700)]
[automerger skipped] Import translations. DO NOT MERGE am: 0b7858e7d9  -s ours
am: 9369f59131  -s ours

Change-Id: Ibf293a087017e09941ccbf5967e3689a27ce44bc

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sat, 29 Sep 2018 23:23:42 +0000 (16:23 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: 0b7858e7d9  -s ours

Change-Id: Ia903bff0e22b013664c0086dc11fdd5e3d8d8b50

5 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 29 Sep 2018 21:32:19 +0000 (21:32 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 29 Sep 2018 21:09:31 +0000 (14:09 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I6d821fb3a3ccf99fa8f11e165773772ded38b608

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 29 Sep 2018 20:00:15 +0000 (13:00 -0700)]
Import translations. DO NOT MERGE

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

5 years agoMerge "Wake screen gesture"
Lucas Dupin [Sat, 29 Sep 2018 17:32:30 +0000 (17:32 +0000)]
Merge "Wake screen gesture"

5 years agoMerge "Move search resources to settingslib-search"
TreeHugger Robot [Sat, 29 Sep 2018 02:46:36 +0000 (02:46 +0000)]
Merge "Move search resources to settingslib-search"

5 years agoMerge "Rename NetworkCycleData to NetworkCycleChartData."
TreeHugger Robot [Sat, 29 Sep 2018 01:14:24 +0000 (01:14 +0000)]
Merge "Rename NetworkCycleData to NetworkCycleChartData."

5 years agoRename NetworkCycleData to NetworkCycleChartData.
Doris Ling [Fri, 28 Sep 2018 00:41:15 +0000 (17:41 -0700)]
Rename NetworkCycleData to NetworkCycleChartData.

Bug: 111751694
Test: make RunSettingsRoboTests
Change-Id: I47c1bbe09f11f4d0bd0d41c1f9d4c3e5a3773f05

5 years agoMove search resources to settingslib-search
Fan Zhang [Fri, 28 Sep 2018 20:33:29 +0000 (13:33 -0700)]
Move search resources to settingslib-search

Bug: 113128828
Test: manual
Change-Id: I2c513dd22e84d5f86bd282e10d0b0df19f9ce407