OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "The text on toast should be changed when remains 1 time for SIM lock input"
xiyuan.wang [Tue, 23 Jan 2018 20:31:59 +0000 (20:31 +0000)]
Merge "The text on toast should be changed when remains 1 time for SIM lock input"
am: 6e6b1e2079

Change-Id: Ic7f5ccda3111ebe6dc7934a2f50d7c2b76c2e70c

6 years agoMerge "The text on toast should be changed when remains 1 time for SIM lock input"
Treehugger Robot [Tue, 23 Jan 2018 20:25:23 +0000 (20:25 +0000)]
Merge "The text on toast should be changed when remains 1 time for SIM lock input"

6 years agoThe text on toast should be changed when remains 1 time for SIM lock input
xiyuan.wang [Thu, 28 Dec 2017 03:24:40 +0000 (11:24 +0800)]
The text on toast should be changed when remains 1 time for SIM lock input

The behavior of getQuantityString() is different according to language, it gets
both "other" and "one" string if English is system language. But it always gets
"other" string if non-English, then the "other" string of wrong_pin_code is
shown even if remains 1 time of SIM lock input.

In order to change the string in any language, we add new string for
remains 1 time.

Bug: 71783850
Change-Id: I5de35eb71905b77028bf25226381e1ba79a37e92

6 years agoMerge "Add new no-op interface method."
Jeff Sharkey [Fri, 19 Jan 2018 01:04:49 +0000 (01:04 +0000)]
Merge "Add new no-op interface method."
am: 78bfc6f55f

Change-Id: I9dd3e64ad11886d852ed0db15830aa93f4f63dfc

6 years agoMerge "Add new no-op interface method."
Jeff Sharkey [Thu, 18 Jan 2018 23:58:30 +0000 (23:58 +0000)]
Merge "Add new no-op interface method."

6 years agoAdd new no-op interface method.
Jeff Sharkey [Thu, 18 Jan 2018 21:51:21 +0000 (14:51 -0700)]
Add new no-op interface method.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: bit FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DataConnectionTest
Change-Id: I46ab8fab705a6467f72b13b7dbc7f8af5f76fecf
Exempt-From-Owner-Approval: trivial no-op overload
Bug: 64133169

6 years agoMerge "DO NOT MERGE: Keep access point list updated once in short time"
Bolun Shan [Thu, 18 Jan 2018 02:57:28 +0000 (02:57 +0000)]
Merge "DO NOT MERGE: Keep access point list updated once in short time"
am: d7682e6d3c  -s ours

Change-Id: I134755ec0ec77dea80649440b969f9bcee8eab17

6 years agoMerge "DO NOT MERGE: Keep access point list updated once in short time"
Treehugger Robot [Thu, 18 Jan 2018 02:48:31 +0000 (02:48 +0000)]
Merge "DO NOT MERGE: Keep access point list updated once in short time"

6 years agoMerge "Fix NPE crash in AppInfoBase"
tiansiming [Thu, 18 Jan 2018 02:15:29 +0000 (02:15 +0000)]
Merge "Fix NPE crash in AppInfoBase"
am: e49cc3d659

Change-Id: I719b50356e890e57a8d6574aae23a2d5d0fd989b

6 years agoDO NOT MERGE: Keep access point list updated once in short time
Bolun Shan [Thu, 12 Oct 2017 07:17:08 +0000 (15:17 +0800)]
DO NOT MERGE: Keep access point list updated once in short time

The function onAccessPointsChanged will be called many times
and access points will be updated many times in 300ms. So check
if the same event exists before calling postDelayed.

Bug: 68230819
Test: Manual test
Change-Id: Id098e1b77c28b62a5495c3369ed950531e59dba2

6 years agoMerge "Fix NPE crash in AppInfoBase"
Treehugger Robot [Wed, 17 Jan 2018 19:44:16 +0000 (19:44 +0000)]
Merge "Fix NPE crash in AppInfoBase"

6 years agoFix NPE crash in AppInfoBase
tiansiming [Sun, 14 Jan 2018 08:46:05 +0000 (16:46 +0800)]
Fix NPE crash in AppInfoBase

This crash can hardly happen under the normal operation of the user,
but it may have a chance to appear in monkey test. To enhance the
robustness of the program, intent.getData() here should not be null
in any situations.

Bug: N/A
Test: adb shell am start -n
'com.android.settings/.Settings\$AppDrawOverlaySettingsActivity'

Change-Id: I732b564056e3e585405f146d99efe3b410edbc41
Signed-off-by: tiansiming <tiansiming@xiaomi.com>
6 years agoMerge "DO NOT MERGE Add developer menu to select max number of connected audio devices"
Hansong Zhang [Tue, 16 Jan 2018 18:04:48 +0000 (18:04 +0000)]
Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices"
am: ea5243e28d  -s ours

Change-Id: I57c326c97f19597bd2865c328e024de4da889e77

6 years agoMerge "DO NOT MERGE Add developer menu to select max number of connected audio devices"
Treehugger Robot [Tue, 16 Jan 2018 17:48:53 +0000 (17:48 +0000)]
Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices"

6 years agoDO NOT MERGE Add developer menu to select max number of connected audio devices
Hansong Zhang [Wed, 10 Jan 2018 23:42:56 +0000 (15:42 -0800)]
DO NOT MERGE Add developer menu to select max number of connected audio devices

The new developer option modifies the system property
"persist.bluetooth.maxconnectedaudiodevices"; it allows testing
multiple connected devices for A2DP, AVRCP, HFP.

Bug: 71603731
Test: Robolectric test
Change-Id: If8c2c26ad4c9a2b7458a2d16a0c29d5f9b4df5c7

6 years agoMerge "Rename setDataEnabled to setUserDataEnabled."
Malcolm Chen [Tue, 9 Jan 2018 23:56:14 +0000 (23:56 +0000)]
Merge "Rename setDataEnabled to setUserDataEnabled."
am: 43b1b97e3e

Change-Id: Ib11eca12b1331494972c86a18670c348abae3d2c

6 years agoMerge "Rename setDataEnabled to setUserDataEnabled."
Treehugger Robot [Tue, 9 Jan 2018 23:46:55 +0000 (23:46 +0000)]
Merge "Rename setDataEnabled to setUserDataEnabled."

6 years agoRename setDataEnabled to setUserDataEnabled.
Malcolm Chen [Thu, 30 Nov 2017 02:01:25 +0000 (18:01 -0800)]
Rename setDataEnabled to setUserDataEnabled.

Test: unittest
Bug: 69814555
Change-Id: I1d43dc1d2f720383a2f0be18560fc0fd4ff349fd
Merged-In: I1d43dc1d2f720383a2f0be18560fc0fd4ff349fd

6 years agoMerge "Bluetooth: Use "Disable" in-band ringing instead of "Enable""
Jack He [Sat, 6 Jan 2018 17:33:02 +0000 (17:33 +0000)]
Merge "Bluetooth: Use "Disable" in-band ringing instead of "Enable""
am: 80c0656ca6

Change-Id: Ifab1cde7af9421ce140c298df295c75e5e9055ed

6 years agoMerge "Bluetooth: Use "Disable" in-band ringing instead of "Enable""
Treehugger Robot [Fri, 5 Jan 2018 20:41:01 +0000 (20:41 +0000)]
Merge "Bluetooth: Use "Disable" in-band ringing instead of "Enable""

6 years agoBluetooth: Use "Disable" in-band ringing instead of "Enable"
Jack He [Thu, 7 Dec 2017 23:09:07 +0000 (15:09 -0800)]
Bluetooth: Use "Disable" in-band ringing instead of "Enable"

* Given that in-band ringing is enabled by default on supported devices,
  the corresponding development settings should be rephrased from
  "Enable in-band ringing" to "Disable in-band ringing" to hint that it
  is enabled by default
* This also gets rid of special logic to check that option in
  initialization
* Add strings to reflect this change as well

Bug: 65383086
Test: make, try toggling the preference and verify whether in-band
ringing works or not

Change-Id: I29f91c7d12c725b12452ec163b75051ff28f500d
Merged-In: I29f91c7d12c725b12452ec163b75051ff28f500d

6 years agoMerge "Fix the format of wifi_carrier_content string"
Akiya Utsumi [Wed, 27 Dec 2017 21:43:20 +0000 (21:43 +0000)]
Merge "Fix the format of wifi_carrier_content string"
am: 985b432fc0

Change-Id: Ic77ff6da5081cae7a3b7fba31bc4902645188763

6 years agoMerge "Fix the format of wifi_carrier_content string"
Treehugger Robot [Wed, 27 Dec 2017 21:36:40 +0000 (21:36 +0000)]
Merge "Fix the format of wifi_carrier_content string"

6 years agoFix the format of wifi_carrier_content string
Akiya Utsumi [Tue, 31 Oct 2017 02:11:15 +0000 (11:11 +0900)]
Fix the format of wifi_carrier_content string

Carrier name is not displayed on the dialog due to the
incorrect format "%1%s". This should be "%1$s".

Test: String change, manually verified
Bug: 70814622
Change-Id: Ie30b8d1eb85d390e4023e0a251e1f1c7fa6deec0

6 years agoMerge "DO NOT MERGE: Fix test failure in CodeInspectionTest"
Fan Zhang [Fri, 22 Dec 2017 01:13:32 +0000 (01:13 +0000)]
Merge "DO NOT MERGE: Fix test failure in CodeInspectionTest"
am: 7c46a79a00  -s ours

Change-Id: I83bb99c73fcd2818105b51633ea8c5c42bcd74a0

6 years agoMerge "DO NOT MERGE: Fix test failure in CodeInspectionTest"
Treehugger Robot [Fri, 22 Dec 2017 01:01:41 +0000 (01:01 +0000)]
Merge "DO NOT MERGE: Fix test failure in CodeInspectionTest"

6 years agoDO NOT MERGE: Fix test failure in CodeInspectionTest
Fan Zhang [Fri, 15 Dec 2017 19:58:56 +0000 (11:58 -0800)]
DO NOT MERGE: Fix test failure in CodeInspectionTest

Change-Id: I74fbd30261fa66636c915936270d873e7612cbc6
Fixes: 70496869
Test: robotests

6 years agoMerge "Set EDITED column to USER_EDITED when editing APN"
goneil [Wed, 20 Dec 2017 00:39:32 +0000 (00:39 +0000)]
Merge "Set EDITED column to USER_EDITED when editing APN"
am: 90d284cab7

Change-Id: I32cb408436e755e6452dacafc3dc5808f5a2a60d

6 years agoMerge "Set EDITED column to USER_EDITED when editing APN"
Treehugger Robot [Wed, 20 Dec 2017 00:36:53 +0000 (00:36 +0000)]
Merge "Set EDITED column to USER_EDITED when editing APN"

6 years agoMerge "Launch new Home app when selecting Home app in Settings"
rongrong.x.gao [Mon, 18 Dec 2017 22:16:32 +0000 (22:16 +0000)]
Merge "Launch new Home app when selecting Home app in Settings"
am: f05fc290b7

Change-Id: I5b9e419fb420351dba76c5dfe1f238f5e4a7e562

6 years agoMerge "Launch new Home app when selecting Home app in Settings"
Treehugger Robot [Mon, 18 Dec 2017 22:09:25 +0000 (22:09 +0000)]
Merge "Launch new Home app when selecting Home app in Settings"

6 years agoLaunch new Home app when selecting Home app in Settings
rongrong.x.gao [Thu, 2 Mar 2017 09:29:34 +0000 (17:29 +0800)]
Launch new Home app when selecting Home app in Settings

Launches the newly selected Home app when it has been selected in
Default Home app settings. This CL makes the change take effect
immediately, instead of when the Home button is pressed.

Bug: 70697830
Test: make RunSettingsRoboTests
Test: Manual - Change default home app in Settings
Change-Id: If7e2956bc6f8ddba0a7e8da48a0d38e3936c57e9

6 years agoMerge "Fix NPE when press ttsEngines settings icon"
tiansiming [Fri, 15 Dec 2017 22:35:52 +0000 (22:35 +0000)]
Merge "Fix NPE when press ttsEngines settings icon"
am: 4b6e1b0758

Change-Id: I7d90bfce2e4f5d13b66f0e408ab9ff4273f6eac6

6 years agoMerge "Fix NPE when press ttsEngines settings icon"
Treehugger Robot [Fri, 15 Dec 2017 22:30:04 +0000 (22:30 +0000)]
Merge "Fix NPE when press ttsEngines settings icon"

6 years agoSet EDITED column to USER_EDITED when editing APN
goneil [Tue, 12 Dec 2017 00:25:16 +0000 (16:25 -0800)]
Set EDITED column to USER_EDITED when editing APN

TelephonyProvider switched from defaulting EDITED to USER_EDITED and now
defaults to CARRIER_EDITED in https://android-review.googlesource.com/c/platform/packages/providers/TelephonyProvider/+/570244.
Therefore, when the user edits the APN, we can no longer rely on the
default implementation

Bug: 67750905
Test: None
Change-Id: I4996b24da94f7c1883c3c802b8edd5e23db580b2

6 years agoMerge "Switch to modern ArgumentMatchers"
Philip P. Moltmann [Fri, 15 Dec 2017 10:48:38 +0000 (10:48 +0000)]
Merge "Switch to modern ArgumentMatchers"
am: b8bf3bbc72

Change-Id: I81455eceac3a4273dc0bfd439fefa21c3b6f571c

6 years agoMerge "Switch to modern ArgumentMatchers"
Treehugger Robot [Fri, 15 Dec 2017 10:33:13 +0000 (10:33 +0000)]
Merge "Switch to modern ArgumentMatchers"

6 years agoSwitch to modern ArgumentMatchers
Philip P. Moltmann [Thu, 23 Nov 2017 00:07:48 +0000 (16:07 -0800)]
Switch to modern ArgumentMatchers

Test: adb shell am instrument -w -e class com.android.settings.vpn2.PreferenceListTest com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner

Change-Id: Id2e4684f6d3048cfb60fee1f747d0796c157a3da

6 years agoMerge "Handle getActiveAdmins() == null safely."
Robin Lee [Wed, 13 Dec 2017 17:24:00 +0000 (17:24 +0000)]
Merge "Handle getActiveAdmins() == null safely."
am: d46153c3d3

Change-Id: If8a1bcdaa5c106394e4c00add45765d27c80e0ef

6 years agoMerge "Handle getActiveAdmins() == null safely."
Treehugger Robot [Wed, 13 Dec 2017 17:16:38 +0000 (17:16 +0000)]
Merge "Handle getActiveAdmins() == null safely."

6 years agoMerge "Bluetooth: Add support for PBAP UI preference"
Hemant Gupta [Wed, 13 Dec 2017 01:27:46 +0000 (01:27 +0000)]
Merge "Bluetooth: Add support for PBAP UI preference"
am: f689d1aaa7

Change-Id: Ic4ffc6a26b11cdf0a937402c3bdcd68441fe4aed

6 years agoMerge "Fix screen freeze when changing display size in Multi-Window mode"
Wang wenrui [Wed, 13 Dec 2017 01:26:52 +0000 (01:26 +0000)]
Merge "Fix screen freeze when changing display size in Multi-Window mode"
am: 2051822bb9

Change-Id: I974abe3dd2114aa439c0db46fa4930a947912de6

6 years agoMerge "Bluetooth: Add support for PBAP UI preference"
Treehugger Robot [Wed, 13 Dec 2017 00:30:42 +0000 (00:30 +0000)]
Merge "Bluetooth: Add support for PBAP UI preference"

6 years agoMerge "Fix screen freeze when changing display size in Multi-Window mode"
Treehugger Robot [Tue, 12 Dec 2017 23:59:23 +0000 (23:59 +0000)]
Merge "Fix screen freeze when changing display size in Multi-Window mode"

6 years agoHandle getActiveAdmins() == null safely.
Robin Lee [Mon, 11 Dec 2017 17:24:03 +0000 (18:24 +0100)]
Handle getActiveAdmins() == null safely.

Test: adb install -r $OUT/system/priv-app/Settings/Settings.apk && adb shell am start -n com.android.settings/.DeviceAdminAdd --es android.app.extra.DEVICE_ADMIN_PACKAGE_NAME com.example.nonexistent
Change-Id: I1e3cf406e8053f6dbf99669f33b7c16648c9c8f8
Fix: 70491813

6 years agoMerge "DO NOT MERGE: Merge Oreo MR1 into master"
Xin Li [Thu, 7 Dec 2017 15:17:25 +0000 (15:17 +0000)]
Merge "DO NOT MERGE: Merge Oreo MR1 into master"
am: cb1056f9b4  -s ours

Change-Id: Iba281b420566a85ffebf98941dbb5e456b724362

6 years agoDO NOT MERGE: Merge Oreo MR1 into master
Xin Li [Thu, 7 Dec 2017 04:36:38 +0000 (04:36 +0000)]
DO NOT MERGE: Merge Oreo MR1 into master
am: 7b017d5a2f  -s ours

Change-Id: I38ef4306a74fb9c1ca39903d5a74df5db0753290

6 years agoBluetooth: Add support for PBAP UI preference
Hemant Gupta [Wed, 4 Nov 2015 11:08:15 +0000 (16:38 +0530)]
Bluetooth: Add support for PBAP UI preference

Usecase:
1) Connect with carkit that supports PBAP/MAP
2) Try to uncheck the checkbox for contact sharing from device sub
   settings menu

Expected Result:
1) DUT should display "Connected (No Media or Phone)"
1) Should be able to disconnect when checkbox moves from selected->unselected,
and carkit should be able to connect when checkbox is selected again

Observation:
1) No UI updates when PBAP/MAP are connected.
2) On unchecking Contact sharing checkbox nothing happens. PBAP connection
   remains active and user is not asked to disconnect profile level connection.

Fix:
Add support for PBAP UI preference in SettingsLib. Also Fix issues related to MAP
profile addition/removal.
Test: Connect from carkit, try disconnecting from sub settings menu by unchecking
Contact Sharing checkbox and check if PBAP is successfully disconnected.

Bug: 35014213
Change-Id: I4981aa063b2541b58ce1d36e3576578cbeb02acc

6 years agoFix NPE when press ttsEngines settings icon
tiansiming [Wed, 6 Dec 2017 13:29:15 +0000 (21:29 +0800)]
Fix NPE when press ttsEngines settings icon

settingsIntent is obtained by method getSettingsIntent in
TtsEngines.java, and it has the chance to return null directly in
which case will lead to NPE crash when we startActivity in
TextToSpeechSettings.java with a null intent.
So, a judgement here makes sense.

Bug:https://issuetracker.google.com/issues/70266990
Test:
1) Install the apk "partner-BaiduSpeechService.apk" offered in the Bug link above.
2) Go to Settings -> Languages & input -> Advance -> Text-to-speech output
3) Choose "Duer voice engine 3.0" as the preferred engine
4) Press the settings icon in the right

Change-Id: I497a745ce62989f3ff1aee661648e90af25fb99e
Signed-off-by: tiansiming <tiansiming@xiaomi.com>
6 years agoMerge "DO NOT MERGE: Merge Oreo MR1 into master"
Xin Li [Wed, 6 Dec 2017 23:18:29 +0000 (23:18 +0000)]
Merge "DO NOT MERGE: Merge Oreo MR1 into master"

6 years agoDO NOT MERGE: Merge Oreo MR1 into master
Xin Li [Wed, 6 Dec 2017 19:52:09 +0000 (11:52 -0800)]
DO NOT MERGE: Merge Oreo MR1 into master

Exempt-From-Owner-Approval: Changes already landed internally
Change-Id: Iab7fd863c422780055277093cb9621197e09d969

6 years agoFix screen freeze when changing display size in Multi-Window mode
Wang wenrui [Mon, 13 Feb 2017 04:51:24 +0000 (12:51 +0800)]
Fix screen freeze when changing display size in Multi-Window mode

The device screen freezes when launching two Display size settings
screen and changing display size in Multi-Window mode.
To fix this issue, OnSeekBarChangeListener should be set in onStart() to
avoid onProgressChanged() is called during onRestoreInstanceState which
is caused by display size change.

Fixes: 70253030
Test: manual - open two Display size settings in Multi-Window mode.

Change-Id: I779954aeeb1da526ba1b0fac2676e2f7d8289352

6 years agoMerge "Hide signal strength when told by carrier"
Jordan Liu [Mon, 4 Dec 2017 23:45:57 +0000 (23:45 +0000)]
Merge "Hide signal strength when told by carrier"
am: 9afa720abe

Change-Id: I64b6eece29d475d8fdbaf8f6d1fb2c62701fd6e4

6 years agoMerge "Hide signal strength when told by carrier"
Jordan Liu [Mon, 4 Dec 2017 23:20:31 +0000 (23:20 +0000)]
Merge "Hide signal strength when told by carrier"

6 years agoMerge "Import translations. DO NOT MERGE" into stage-aosp-master
TreeHugger Robot [Thu, 30 Nov 2017 20:59:07 +0000 (20:59 +0000)]
Merge "Import translations. DO NOT MERGE" into stage-aosp-master

6 years agoMerge "Bluetooth: Give PBAP permission only if device is AUDIO_VIDEO_HANDSFREE"
Hemant Gupta [Thu, 30 Nov 2017 17:40:31 +0000 (17:40 +0000)]
Merge "Bluetooth: Give PBAP permission only if device is AUDIO_VIDEO_HANDSFREE"
am: b21a10b2ff

Change-Id: Id0378b1c410afcc0566652e3308cd812dcd68470

6 years agoMerge "Bluetooth: Give PBAP permission only if device is AUDIO_VIDEO_HANDSFREE"
Treehugger Robot [Thu, 30 Nov 2017 17:38:01 +0000 (17:38 +0000)]
Merge "Bluetooth: Give PBAP permission only if device is AUDIO_VIDEO_HANDSFREE"

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 30 Nov 2017 12:05:41 +0000 (04:05 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 69925163
Change-Id: I4c880093e20e7178ce80006b158fefd490b4e061

6 years agoBluetooth: Give PBAP permission only if device is AUDIO_VIDEO_HANDSFREE
Hemant Gupta [Fri, 22 Sep 2017 06:54:14 +0000 (12:24 +0530)]
Bluetooth: Give PBAP permission only if device is AUDIO_VIDEO_HANDSFREE

Step by step:
1. Pair and connect with BTHS (e.g. SBH50).
2. Click the settings icon of paired device, and check "Use for" items.
-----------------------------------------------------------------
Expected Result:
After step 2, "Contact sharing" should not be checked.

Actual Result:
After step 2, "Contact sharing" is checked.

Fix:
Set phone book permission as REJECTED if class of Device is
not AUDIO_VIDEO_HANDSFREE

Test: Checked above usecase and issue is not observed

Bug: 64372703
Change-Id: I178a09dd9e76d67c461c4b04d9b2ee0078ed24c9

6 years agoHide signal strength when told by carrier
Patrik Bannura [Fri, 24 Nov 2017 11:33:24 +0000 (12:33 +0100)]
Hide signal strength when told by carrier

Bug: 69730732
Test: Add different values for two carriers in vendor.xml
and see them change when swapping sim card
Depends-On: I155c8f619a451edab85cf6422cef73e8e1686629
Change-Id: I241ddb3c20002db781308d94c6c165b8d13b2474

6 years agoMerge "Remove extra newline in AndroidManifest."
Malcolm Chen [Wed, 29 Nov 2017 00:31:49 +0000 (00:31 +0000)]
Merge "Remove extra newline in AndroidManifest."
am: 8aeb69396d

Change-Id: I36ea57db56ff985da118fb7ab117bf939b7b2dc1

6 years agoMerge "Remove extra newline in AndroidManifest."
Treehugger Robot [Wed, 29 Nov 2017 00:22:47 +0000 (00:22 +0000)]
Merge "Remove extra newline in AndroidManifest."

6 years agoMerge "DO NOT MERGE translate arrays in Settings/res"
songkailun [Wed, 22 Nov 2017 18:49:59 +0000 (18:49 +0000)]
Merge "DO NOT MERGE translate arrays in Settings/res"
am: 992a4e5500  -s ours

Change-Id: Ia5c69f39d1796acd79e453744cc7e5c487c43042

6 years agoMerge "DO NOT MERGE translate arrays in Settings/res"
Treehugger Robot [Wed, 22 Nov 2017 18:36:14 +0000 (18:36 +0000)]
Merge "DO NOT MERGE translate arrays in Settings/res"

6 years agoDO NOT MERGE translate arrays in Settings/res
songkailun [Tue, 14 Nov 2017 13:57:20 +0000 (21:57 +0800)]
DO NOT MERGE translate arrays in Settings/res

"None" should be translated

Change-Id: I12a30e6476ec41c2a3bf1878d6b5596bf5ee8ed7
Signed-off-by: songkailun <songkailun@xiaomi.com>
6 years agoRemove extra newline in AndroidManifest.
Malcolm Chen [Fri, 14 Jul 2017 00:59:58 +0000 (17:59 -0700)]
Remove extra newline in AndroidManifest.

Remove extra newline in AndroidManifest which caused
android.settings.MOBILE_DATA_USAGE not received.

Bug: b/63670955
Test: testcase MobileDataUsageActivityTest
Change-Id: I4a4178141010b128e3d9c8c9721a51b81cbdffff

6 years agoMerge "Add owners to setting packages."
jackqdyulei [Tue, 21 Nov 2017 16:41:50 +0000 (16:41 +0000)]
Merge "Add owners to setting packages."
am: f82cd59476

Change-Id: Ic7c94f6ba65149cdc799332a0cc5976ff285f16f

6 years agoMerge "Add owners to setting packages."
Treehugger Robot [Tue, 21 Nov 2017 16:35:30 +0000 (16:35 +0000)]
Merge "Add owners to setting packages."

6 years agoMerge "Add an activity that starts DataUsageList fragment for mobile."
Malcolm Chen [Tue, 21 Nov 2017 00:48:50 +0000 (00:48 +0000)]
Merge "Add an activity that starts DataUsageList fragment for mobile."
am: 942d418da9  -s ours

Change-Id: I23e52f28f5e0873094476eda4698677e4c736f4e

6 years agoAdd owners to setting packages.
jackqdyulei [Mon, 11 Sep 2017 19:44:27 +0000 (12:44 -0700)]
Add owners to setting packages.

Bug: 65294119
Fixes: 69384604
Test: Build

Change-Id: Ib4fddc1f04087671d8445fd967d4262287e5c4f3
Merged-In: I927052a73f639d0894600611cd5c79293f43ff5e
Merged-In: Ia1eb8155f2d4359d56b0babd474083295ba38a0b
Merged-In: I24ec103ff5013ad416e3dfb1c548acd387b4ba64
Merged-In: If9fddc8b4e2e6d4d7db185ab16063e824323b9a7
Merged-In: I49159950521a013422b1087ea2c3e6cd5151457c
Merged-In: I69af58183c5b89af96c1a8808665fa506a620012
Merged-In: Ie9492f497824cd2b2727dde9d3a48452c72f1084
Merged-In: I2fd0249fd8b555e5ca93c3aec13857e6c74e157c
Merged-In: Id1c2d9233643a18c1e104255a9e2b8b1aaefc44e
Merged-In: Icdcfaaf6cc7a1e1cf77e89a79d0425cab4405ffc
Merged-In: I697528ff260a0f8e54aa1188e35143e668800e7d
Merged-In: I1486782f476acaf1e2e4b66df57869409239986f
Merged-In: I804b50a38c877da80b5ef3251e16029259014152
Merged-In: I39eec9ebc1db2dc14669f27b17624394e25eb47f
Merged-In: I054a6df08046cda1c2f202390ed24839a6b10349
Merged-In: I9da5bd71ed6aa3922a7f2e2ac4729e3247a204ce
Merged-In: I63778c68f1ab9edc36a9e12aa1729f8fd6a5e073

6 years agoMerge "Add an activity that starts DataUsageList fragment for mobile."
Treehugger Robot [Tue, 21 Nov 2017 00:35:41 +0000 (00:35 +0000)]
Merge "Add an activity that starts DataUsageList fragment for mobile."

6 years agoMerge "Preference SimSettingsActivity not aligned correctly"
Jie Cheng [Thu, 16 Nov 2017 20:18:44 +0000 (20:18 +0000)]
Merge "Preference SimSettingsActivity not aligned correctly"
am: 8d3d166823

Change-Id: I67a977b974ddbf42b01647e4ca02d7d9dfe1b61d

6 years agoMerge "Preference SimSettingsActivity not aligned correctly"
Treehugger Robot [Thu, 16 Nov 2017 20:14:27 +0000 (20:14 +0000)]
Merge "Preference SimSettingsActivity not aligned correctly"

6 years agoPreference SimSettingsActivity not aligned correctly
Jie Cheng [Mon, 25 Sep 2017 05:54:55 +0000 (13:54 +0800)]
Preference SimSettingsActivity not aligned correctly

The preference SimSettingsActivity in the screen "Network & Internet"
never uses a summary. However the text for this preference ("SIM cards")
is top aligned in order to make room for an extra line for the
non-existing summary.

Solved by setting the summary to @string/summary_empty for the
preference SimSettingsActivity. This will make the text in the
preference to align correctly and not leave extra room for a summary.

Test: manual - Checked that preference SimSettingsActivity is correctly
aligned in screen "Network & Internet".
Bug: 69405185
Change-Id: I1a1b3fa7253bbf2a5299f54cc8c4d3e857ca059c

6 years agoMerge "Catch exception when checking WifiDisplay availability"
Fan Zhang [Thu, 16 Nov 2017 01:33:31 +0000 (01:33 +0000)]
Merge "Catch exception when checking WifiDisplay availability"
am: 7a08901d1b

Change-Id: I426208a605e3771238bd91c135e47faf1b559e58

6 years agoMerge "Catch exception when checking WifiDisplay availability"
Treehugger Robot [Thu, 16 Nov 2017 01:27:57 +0000 (01:27 +0000)]
Merge "Catch exception when checking WifiDisplay availability"

6 years agoCatch exception when checking WifiDisplay availability
Fan Zhang [Thu, 19 Oct 2017 23:49:21 +0000 (16:49 -0700)]
Catch exception when checking WifiDisplay availability

Change-Id: Ic2f17905babf43e92a825b8b5b4f8aac7d8ff001
Fixes: 68013053
Test: robotests

6 years agoMerge "Settings: Add notification channel for SIM selection"
Bruno Martins [Wed, 15 Nov 2017 21:54:16 +0000 (21:54 +0000)]
Merge "Settings: Add notification channel for SIM selection"
am: c543d5ba26

Change-Id: I72ac5944b8b4dc3eb2ad38c89ec8eb12f83b019d

6 years agoMerge "Settings: Add notification channel for SIM selection"
Treehugger Robot [Wed, 15 Nov 2017 21:45:41 +0000 (21:45 +0000)]
Merge "Settings: Add notification channel for SIM selection"

6 years agoSettings: Add notification channel for SIM selection
Bruno Martins [Fri, 10 Nov 2017 13:58:46 +0000 (13:58 +0000)]
Settings: Add notification channel for SIM selection

Change-Id: I9318311fd6378a82050bb1604c29f0af2501c8b7

6 years agoMerge commit '937ede14d84c2093f831ff8adab96dca207ad742' from
Xin Li [Mon, 13 Nov 2017 23:18:37 +0000 (15:18 -0800)]
Merge commit '937ede14d84c2093f831ff8adab96dca207ad742' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master

Change-Id: I91ee596e3800726445cfff5dd784bae9dfdad3ee
Merged-In: I91c48c73287a271bd6c99e60e216dead22e68764

6 years agoAdd an activity that starts DataUsageList fragment for mobile.
Malcolm Chen [Tue, 20 Jun 2017 18:14:27 +0000 (11:14 -0700)]
Add an activity that starts DataUsageList fragment for mobile.

We are providing an itent and a corresponding activity to show
"Mobile data usage" fragment, so that "Mobile network setting"
who lives in phone apk can use that intent to open it.

Bug: 62201918
Test: Manual
Change-Id: I862f8bc90f9456f91b436d26472cce23c837a777
Merged-In: I862f8bc90f9456f91b436d26472cce23c837a777

6 years agoMerge "Modify Comparator in ZonePicker"
tiansiming [Mon, 13 Nov 2017 19:50:06 +0000 (19:50 +0000)]
Merge "Modify Comparator in ZonePicker"
am: 3c03207f9f

Change-Id: I1c2ebde217a793091ff28f9b2b1850beeb494d52

6 years agoMerge "Modify Comparator in ZonePicker"
Treehugger Robot [Mon, 13 Nov 2017 19:45:10 +0000 (19:45 +0000)]
Merge "Modify Comparator in ZonePicker"

6 years agoModify Comparator in ZonePicker
tiansiming [Mon, 30 Oct 2017 13:39:48 +0000 (21:39 +0800)]
Modify Comparator in ZonePicker

The previous method "compareTo" isn't locale-sensitive, it cannot
sort the String in some other languages. So Collator is recommended
to be applyed here.

Bug: Sort doesn't work in some languages.
Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=ZonePickerComparatorTest

Change-Id: Id107ab938cceefc77f9fb6918a0445fc92a0fcb7
Signed-off-by: tiansiming <tiansiming@xiaomi.com>
6 years agoMerge "Send broadcast when location mode is about to change DO NOT MERGE"
Yoshinori Hirano [Fri, 10 Nov 2017 15:14:43 +0000 (15:14 +0000)]
Merge "Send broadcast when location mode is about to change DO NOT MERGE"
am: 1c05be48ae  -s ours

Change-Id: Ia443491992c0b28a15d93ca344e9b20c0a111548

6 years agoMerge "Send broadcast when location mode is about to change DO NOT MERGE"
Treehugger Robot [Fri, 10 Nov 2017 15:07:04 +0000 (15:07 +0000)]
Merge "Send broadcast when location mode is about to change DO NOT MERGE"

6 years agoSend broadcast when location mode is about to change DO NOT MERGE
Yoshinori Hirano [Tue, 24 Oct 2017 08:52:23 +0000 (17:52 +0900)]
Send broadcast when location mode is about to change DO NOT MERGE

Send "com.android.settings.location.MODE_CHANGING" broadcast intent
when the location mode is about to be changed on Settings app or
Quick Settings.

Fixes: 28057031
Test: manual - turn the location setting on

Change-Id: Icd1049259403999a30263cc866698795b44f9b2e

6 years agoMerge "remove unused code in PrivacySettings"
songkailun [Thu, 9 Nov 2017 21:19:30 +0000 (21:19 +0000)]
Merge "remove unused code in PrivacySettings"
am: abd78cc6b3

Change-Id: I8772066bf9bf759628f1937ca1949086a8ff8509

6 years agoMerge "remove unused code in PrivacySettings"
Treehugger Robot [Thu, 9 Nov 2017 21:11:22 +0000 (21:11 +0000)]
Merge "remove unused code in PrivacySettings"

6 years agoMerge "translate array in res/values-ar"
songkailun [Thu, 9 Nov 2017 20:53:10 +0000 (20:53 +0000)]
Merge "translate array in res/values-ar"
am: 0df2c8fbb7

Change-Id: Ic6175d77665dddd9ccaee29b94be3a11025f45c9

6 years agoMerge "translate array in res/values-ar"
Treehugger Robot [Thu, 9 Nov 2017 20:40:18 +0000 (20:40 +0000)]
Merge "translate array in res/values-ar"

6 years agoremove unused code in PrivacySettings
songkailun [Tue, 7 Nov 2017 11:28:55 +0000 (19:28 +0800)]
remove unused code in PrivacySettings

factory_reset is already removed from privacy_settings.xml,
so it need to be removed from PrivacySettings.java too

Change-Id: I0d295b90173102efb962dde496cf7a8b15d1e0a9
Signed-off-by: songkailun <songkailun@xiaomi.com>
6 years agotranslate array in res/values-ar
songkailun [Tue, 7 Nov 2017 11:49:09 +0000 (19:49 +0800)]
translate array in res/values-ar

"None" should be translated

Change-Id: I9cd1b21947834a070ba66a7ee7641d0b6617de52
Signed-off-by: songkailun <songkailun@xiaomi.com>
6 years agoMerge "Replace dns_tls with private_dns_mode setting"
Erik Kline [Tue, 7 Nov 2017 06:00:15 +0000 (06:00 +0000)]
Merge "Replace dns_tls with private_dns_mode setting"
am: ca92fb5e2b

Change-Id: I58c44a04ef75d025f63e9470ed9624a437a7956c

6 years agoMerge "Replace dns_tls with private_dns_mode setting"
Treehugger Robot [Tue, 7 Nov 2017 05:54:28 +0000 (05:54 +0000)]
Merge "Replace dns_tls with private_dns_mode setting"

6 years agoReplace dns_tls with private_dns_mode setting
Erik Kline [Mon, 30 Oct 2017 06:30:18 +0000 (15:30 +0900)]
Replace dns_tls with private_dns_mode setting

Also includes:
    - new layout fragment for private DNS configuration
    - PrivateDnsModeDialogPreference handler class

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual interaction with private dns developer option works
Bug: 34953048
Bug: 6413396
Change-Id: I3a5490c21f7f3b3e523a247c287f213d19b75a8b

6 years agoMerge "Updates strings for "Emergency broadcast"."
Malcolm Chen [Thu, 2 Nov 2017 00:48:12 +0000 (00:48 +0000)]
Merge "Updates strings for "Emergency broadcast"."
am: b13f2e0fb0

Change-Id: I5b17156c3fd9fa680dc872ddbcab6dd8ac30a87e

6 years agoMerge "Updates strings for "Emergency broadcast"."
Treehugger Robot [Thu, 2 Nov 2017 00:42:48 +0000 (00:42 +0000)]
Merge "Updates strings for "Emergency broadcast"."

6 years agoUpdates strings for "Emergency broadcast".
Malcolm Chen [Mon, 5 Jun 2017 21:51:37 +0000 (14:51 -0700)]
Updates strings for "Emergency broadcast".

Replace "Emergency broadcast" with "Emergency alerts" to be
consistent.

Test: manual
Bug: b/62291344
Change-Id: I79d6f1162d4c112dedf49a3b43ec26011adba9bf