Commit Graph

47912 Commits

Author SHA1 Message Date
jackqdyulei
184b3a4c68 Add entitlement check for usb tethering
Before this CL, usb tethering in detail page doesn't have entitlement
check. This CL fix it by using the correct API

Also polish it by updating the UI before entitlement check to align
hotspot page. So in UI it will first check "usb tethering". If
entitlement check fail, it will revoke and go back to previous selection.

Bug: 115707279
Test: RunSettingsRoboTests
Change-Id: I3d2ebad2879479a870bcdfe596bb88b83c424389
2018-10-02 15:41:46 -07:00
Fan Zhang
53bdd9961c Check instance before casting
Change-Id: I1917b2d8e045904145ea833abf35fa1d008fa224
Fixes: 116855783
Test: robotests
2018-10-02 15:15:38 -07:00
Stanley Tng
7b91f0dd3e 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
2018-10-02 15:10:43 -07:00
TreeHugger Robot
54e4100ac0 Merge "Add SettingsContextualCardProvider" 2018-10-02 21:18:46 +00:00
TreeHugger Robot
31703ca227 Merge "Fix Connect State message in Device details for Hearing Aids" into pi-dev 2018-10-02 20:30:17 +00:00
Hansong Zhang
407823251b Fix build
am: 78ab907aa6

Change-Id: Ia036fde5adb3a8f060f5d0977147297f5a2f1489
2018-10-02 12:44:14 -07:00
Sooraj Sasindran
3d56d5924b Use updated APIs for CBRS
Use updated APIs for CBRS

Bug: 117156243
Test: verified enable disable using UI
Change-Id: Ib6be6479c9f51b7c2dd80db5f7971a8c7e820954
2018-10-02 11:05:59 -07:00
Neil Fuller
40902715a3 Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()" 2018-10-02 16:58:08 +00:00
Hansong Zhang
78ab907aa6 Fix build
Test: compile
Change-Id: I3d236ea1b1f5ee5b4b5b2aa118416383b5b4bb6d
2018-10-02 16:30:39 +00:00
Neil Fuller
5b88d6e6ba Merge "Use ICU APIs not impl types" am: 811d817368 am: 09dcb87982
am: ccef9d9dc2

Change-Id: I302247aa892e018e58b6742f55d30c971a4f77f3
2018-10-02 06:29:44 -07:00
Neil Fuller
ccef9d9dc2 Merge "Use ICU APIs not impl types" am: 811d817368
am: 09dcb87982

Change-Id: Ic2f3ab527774f4d2d4464e8d879cdd4408afcb44
2018-10-02 06:24:33 -07:00
Neil Fuller
09dcb87982 Merge "Use ICU APIs not impl types"
am: 811d817368

Change-Id: I38d6806255619fec3de23945a184455072f34ec0
2018-10-02 06:16:23 -07:00
TreeHugger Robot
b021f3285b Merge "Settings change for device-wide unknown sources block." 2018-10-02 13:07:24 +00:00
Neil Fuller
811d817368 Merge "Use ICU APIs not impl types" 2018-10-02 12:59:47 +00:00
Neil Fuller
28fe954075 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
2018-10-02 12:29:06 +00:00
Neil Fuller
b81181b9f3 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
2018-10-02 13:27:44 +01:00
Stanley Tng
aa8f8fb414 [automerger skipped] Merge changes from topic "hearing-aid" into pi-dev am: f9658e13bb
am: 8b05337e6a  -s ours

Change-Id: I87aff99bdb01b20cee9ff877edecbec3077aa5c4
2018-10-02 04:22:19 -07:00
timhypeng
8019f9089c [automerger skipped] To show hearing aids device in the available devices group am: 79d7fdc4f3
am: 6443247f8f  -s ours

Change-Id: If899bc3294def4a4128789938a8ff306f95257a3
2018-10-02 04:21:34 -07:00
Stanley Tng
8b05337e6a Merge changes from topic "hearing-aid" into pi-dev
am: f9658e13bb

Change-Id: Ibdf40cc0a1712292fd41c1e38bbf879cfe3c4a65
2018-10-02 03:54:35 -07:00
timhypeng
6443247f8f To show hearing aids device in the available devices group
am: 79d7fdc4f3

Change-Id: Ie4e4014c98701d69e20f0f9244e57b5293e07f15
2018-10-02 03:53:36 -07:00
Neil Fuller
11be3acfe0 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
2018-10-02 10:15:36 +01:00
Raff Tsai
3936e9f3d6 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
2018-10-02 15:04:58 +08:00
TreeHugger Robot
ab7dba0d97 Merge "Support phone number in Settings slices" 2018-10-02 02:43:17 +00:00
Kevin Chyn
71614a1023 Merge "Do PackageManager check before getting system service" 2018-10-02 02:08:56 +00:00
TreeHugger Robot
3e5a0a0fa9 Merge "Extend limitation of A2DP HW offload related string." 2018-10-02 02:05:41 +00:00
Stanley Tng
69e1bb1cf3 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
2018-10-02 00:55:19 +00:00
TreeHugger Robot
f9658e13bb 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
2018-10-02 00:53:40 +00:00
Kevin Chyn
d15bcdeb60 Do PackageManager check before getting system service
Fixes: 117074737

Test: Does not crash
Change-Id: I51b04f46f8d467c3a854c132415a2cad90b77203
2018-10-01 17:50:09 -07:00
TreeHugger Robot
bf9562b21b Merge "Do not resolve permission in settings." 2018-10-01 22:00:30 +00:00
Doris Ling
6548d21839 Merge "Add version 2 of AppDataUsagePreferenceController." 2018-10-01 21:46:08 +00:00
TreeHugger Robot
4da85f6af3 Merge "Use BidiFormatter in ZenDeleteRuleDialog" 2018-10-01 21:16:02 +00:00
TreeHugger Robot
1161052e70 Merge "Application accepts null intents causing a crash" 2018-10-01 21:11:56 +00:00
Philip P. Moltmann
cf809c34b7 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
2018-10-01 13:48:43 -07:00
Beverly
5fbdeaae7c Use BidiFormatter in ZenDeleteRuleDialog
Test: visual inspection
Change-Id: I99231ed5801f3286421f331554fc5c51c2a2d08c
Fixes: 35960612
2018-10-01 14:47:28 -04:00
Doris Ling
863c60ffcf 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
2018-10-01 11:47:21 -07:00
Raff Tsai
af9eb2d7a7 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"
2018-10-02 02:04:41 +08:00
Fan Zhang
3600c03392 Merge "Support some phone information in Settings slice" 2018-10-01 16:46:19 +00:00
Fan Zhang
f9f6200b28 Merge "Remove FragmentUtilsTest class" 2018-10-01 16:45:19 +00:00
Takamasa Kuramitsu
9019343728 Move content later button doesn't work on Migration Wizard
"Move content later" button doesn't work on StorageWizardMigrateConfirm
screen which is shown when end-user try to migrate data from adopted
SD Card to internal storage.

The cause is "Move content later" button triggers to StorageWizardReady
screen but cannot launch because the mDisk is null when the destination
of migration is internal storage.

This CL fixes to just exit StorageWizardMigrateConfirm screen when mDisk
is null.

Bug: 117082495
Test: manual
Change-Id: Iccdccf4dda126d77458b9db35e4ec6ae6a263cb7
2018-10-01 13:57:47 +00:00
Chienyuan
92dce91968 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
2018-10-01 12:55:34 +00:00
Irina Dumitrescu
e9c8a0f264 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
2018-10-01 12:15:00 +01:00
tmfang
e402cb2744 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
2018-10-01 11:15:02 +08:00
tmfang
4f40a8e287 Support some phone information in Settings slice
- Android version
- Device model

Test: robo test, manual test
Change-Id: Ic047caaf4ab699082f6420ad8fa1d2f455abfcb0
Fixes: 74900516
2018-10-01 10:38:21 +08:00
Bill Yi
81e2d88c93 [automerger skipped] Import translations. DO NOT MERGE am: 0b7858e7d9 -s ours
am: 9369f59131  -s ours

Change-Id: Ibf293a087017e09941ccbf5967e3689a27ce44bc
2018-09-29 16:30:44 -07:00
Bill Yi
9369f59131 [automerger skipped] Import translations. DO NOT MERGE
am: 0b7858e7d9  -s ours

Change-Id: Ia903bff0e22b013664c0086dc11fdd5e3d8d8b50
2018-09-29 16:23:42 -07:00
TreeHugger Robot
1aef680511 Merge "Import translations. DO NOT MERGE" 2018-09-29 21:32:19 +00:00
Bill Yi
0b7858e7d9 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I6d821fb3a3ccf99fa8f11e165773772ded38b608
2018-09-29 14:09:31 -07:00
Bill Yi
d1bfe2311f Import translations. DO NOT MERGE
Change-Id: Ifda79e0492153a90fbb894757ffd9d8f7c8b7ac0
Auto-generated-cl: translation import
2018-09-29 13:00:15 -07:00
Lucas Dupin
3b686f77c4 Merge "Wake screen gesture" 2018-09-29 17:32:30 +00:00
TreeHugger Robot
c3d1d33683 Merge "Move search resources to settingslib-search" 2018-09-29 02:46:36 +00:00