4294 Commits

Author SHA1 Message Date
hughchen
299e6cb939 Update connect() api
Use BluetoothAdapter.connectAllEnabledProfiles() to connect all
individual profile once instead of connect each individual profile.

Fixes: 141582844
Test: manually
Change-Id: I8d58aceed87a2df212d4097362369c60a8ec0c08
Merged-In: I8d58aceed87a2df212d4097362369c60a8ec0c08
2020-01-16 10:26:47 +08:00
David Su
427cb398e2 Merge changes from topic "networkscoremanager-cachefilter"
* changes:
  SettingsLib: Rename CACHE_FILTER_* to SCORE_FILTER_*
  NetworkScoreManager: Expose SCORE_FILTER_* consts
2020-01-15 17:55:35 +00:00
Arc Wang
5b698cfaf2 [Wi-Fi] Add OWNER files for Wi-Fi test cases
Bug: NA
Test: NA
Change-Id: I57ba071e77d7c5cdf7b01ce44195a090b0177389
2020-01-15 17:33:18 +08:00
David Su
eea0921afa SettingsLib: Rename CACHE_FILTER_* to SCORE_FILTER_*
Bug: 135998869
Test: compiles
Change-Id: I2db3c9746da2a460f6fb8964662859e8d80148e8
Merged-In: I2db3c9746da2a460f6fb8964662859e8d80148e8
2020-01-14 14:01:37 -08:00
Treehugger Robot
a5dd35d6c0 Merge "mainline:Replace serviceState.getDataRegState and getVoiceRegState" 2020-01-13 14:45:28 +00:00
Zoey Chen
484a87ee98 Merge "[TelephonyMainline] Cannot use UnsupportedAppUsage API" 2020-01-13 07:09:54 +00:00
zoey chen
3d42955989 [TelephonyMainline] Cannot use UnsupportedAppUsage API
Replace #getLine1Number(I) with getLine1Number()

Bug: 145583708
Test: make
Change-Id: Ibb278b86792523349c538b6d9a5fa95d80f4ae42
2020-01-13 11:53:39 +08:00
Bonian Chen
8cbdf94452 Merge "[Settings] Avoid access getSubscriberId()" 2020-01-11 06:55:17 +00:00
SongFerngWang
798d0baa26 mainline:Replace serviceState.getDataRegState and getVoiceRegState
Replace serviceState.getVoiceRegState with getState
Replace serviceState.getDataRegState with getDataRegistrationState

Bug: 146637978
Test: atest NetworkControllerBaseTest (PASS)
atest CarrierTextControllerTest (PASS)

Change-Id: I0cbdfd5d3de3a78326703ede1640f01430bae18a
Merged-In: I0cbdfd5d3de3a78326703ede1640f01430bae18a
2020-01-10 13:09:51 +08:00
Bonian Chen
63516fb9d4 [Settings] Avoid access getSubscriberId()
Replace API to avoid from access TelephonyManager#getSubscriberId(int)

Bug: 147405859
Test: build pass
Change-Id: Ie4135eb8657f97f41d3617e519f634227185fedb
2020-01-09 16:36:21 +08:00
Chienyuan
f2b73fdaf1 MAP: Add string for BluetoothMapVersionPreferenceController
Bug: 146916756
Test: build pass
Change-Id: I3e82cabea772beca25f03de8b51d3a1bd9768a20
Merged-In: I3e82cabea772beca25f03de8b51d3a1bd9768a20
2020-01-08 17:06:26 +08:00
Treehugger Robot
7d48a4513c Merge "Remove unused BluetoothHearingAid APIs and usages" 2020-01-02 20:43:57 +00:00
SongFerng Wang
5bdafbf9ce Merge "[Mainline] decouple ServiceState.getDataNetworkType()" 2019-12-19 08:47:08 +00:00
SongFerngWang
40f04301b6 [Mainline] decouple ServiceState.getDataNetworkType()
Use NetworkRegistrationInfo.getRegistrationState() to
replace serviceState.getDataNetworkType() inside getCombinedServiceState

Bug: 146473838
Test: atest frameworks/base/packages/SettingsLib/tests/robotests/\
src/com/android/settingslib/UtilsTest.java (PASS)

Change-Id: Iddf23778be5d275c76ad01bfbac8f4ed0c655331
Merged-In: Iddf23778be5d275c76ad01bfbac8f4ed0c655331
2019-12-18 21:08:52 +08:00
Treehugger Robot
f14e2e1e1a Merge "Resolve BluetoothA2dpSink APIs used by Settings" 2019-12-17 02:31:59 +00:00
Treehugger Robot
a33dfe1e7b Merge "Refactor BluetoothPbap APIs used by Settings" 2019-12-17 01:53:24 +00:00
Rahul Sabnis
ea2e20c857 Remove unused BluetoothHearingAid APIs and usages
Bug: 143244535
Test: Manual
Change-Id: I8915ec755794b2c44412386de03c5fc0778d8ec7
2019-12-16 16:41:33 -08:00
Rahul Sabnis
b4d383db15 Resolve BluetoothA2dpSink APIs used by Settings
Bug: 146082017
Test: Manual
Change-Id: Iebae62408c490cb9091b1f4e4a5a5e32321e2700
2019-12-13 14:52:55 -08:00
Treehugger Robot
bdc1390f27 Merge "Update Bluetooth api on SettingsLib" 2019-12-13 00:25:13 +00:00
Treehugger Robot
98deadb73a Merge "Fix bluetooth icon has wrong color" 2019-12-13 00:05:57 +00:00
Treehugger Robot
ce656f7754 Merge "Resolve BluetoothDevice hidden API usages by Settings" 2019-12-12 21:13:46 +00:00
Treehugger Robot
d74ba818ba Merge "Update owners of settingslib/bluetooth" 2019-12-12 20:00:08 +00:00
Raff Tsai
2675639ef7 Fix bluetooth icon has wrong color
- ic_settings_bluetooth is used in two different places, one of them
is set background, but they share same drawable state. Need to set
mutate() to make drawables have different state.

Fixes: 145555150
Fixes: 143090956
Test: 1. Open Bluetooth settings
      2. Pair new device
      3. Wait more Available devices are shown
      4. hit the back arrow
      5. Observe the color of Bluetooth icon

Change-Id: I9574e6c22c401c4b88eb7285b15a59a1dd57b8ee
2019-12-12 04:23:57 +00:00
Treehugger Robot
ceeb04aeaf Merge "Use new api to disconnect all bt profiles" 2019-12-12 03:18:05 +00:00
hughchen
0f0d83e1fb Update Bluetooth api on SettingsLib
This CL is used to update Bluetooth api.

- Use getConnectionPolicy() instead of getPriority()
- Use setConnectionPolicy() instead of setPriority()
- Use BluetoothProfile.CONNECTION_POLICY_ALLOWED instead of
  BluetoothProfile.PRIORITY_ON
- Use BluetoothProfile.CONNECTION_POLICY_FORBIDDEN instead of
  BluetoothProfile.PRIORITY_OFF

Fixes: 141582844
Test: manually
Change-Id: I2d7438d48acde155e2b411fd98cb59961c8d75c1
Merged-In: I2d7438d48acde155e2b411fd98cb59961c8d75c1
2019-12-12 10:36:06 +08:00
Rahul Sabnis
d32a94d224 Resolve BluetoothDevice hidden API usages by Settings
Bug: 143245666
Test: Manual
Change-Id: Id34eb275f604e61330aeb91401dc31aeca666b8f
2019-12-11 11:37:05 -08:00
hughchen
bb410144c2 Update owners of settingslib/bluetooth
Fixes: 141582844
Test: NA
Change-Id: I1749cb27d29cfd38b996613088680fe8832c470c
2019-12-11 09:59:58 +08:00
Rahul Sabnis
5e298ac413 Refactor BluetoothPbap APIs used by Settings
Bug: 145943634
Test: Manual
Change-Id: I23b2b20f97968696f9f00fee55094db6e551835f
2019-12-10 14:04:18 -08:00
hughchen
54b644e46e Use new api to disconnect all bt profiles
Fixes: 141582844
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I432c12b60016d2230df625155d3c76dbba926077
Merged-In: I432c12b60016d2230df625155d3c76dbba926077
2019-12-06 10:39:55 +08:00
Treehugger Robot
f6ea5afa58 Merge "Make BluetoothUuid constants and some functions System Apis" 2019-12-06 01:23:39 +00:00
Peter Wang
415143daf5 Merge "[Telephony Mainline] Expose hidden APIs and consts" 2019-12-04 23:39:50 +00:00
Rahul Sabnis
1223087ee3 Make BluetoothUuid constants and some functions System Apis
Bug: 143245929
Test: Manual
Change-Id: I5519a379a2bb5d56fe25745d8bdeaa5cf52d9e92
2019-12-04 11:24:57 -08:00
Peter Wang
98598bfe16 [Telephony Mainline] Expose hidden APIs and consts
Exposing constants that were originally hidden

Test: build
Bug: 140908357
Change-Id: I12b8d338a58c0ffe294137171b8bac7d80a0b776
Merged-In: I12b8d338a58c0ffe294137171b8bac7d80a0b776
2019-12-03 19:12:47 +00:00
Jayachandran Chinnakkannu
fc8b731e33 Merge "Remove usage of Telephonymanager from() hidden API"
am: 8e999f22b8

Change-Id: Icee4117f892b09ce3eafeb39668467cc2220f31b
2019-11-18 10:53:53 -08:00
Jayachandran Chinnakkannu
8e999f22b8 Merge "Remove usage of Telephonymanager from() hidden API" 2019-11-18 18:38:29 +00:00
Jayachandran C
80eadad5b1 Remove usage of Telephonymanager from() hidden API
This CL changes to use getSystemService(TelephonyManager.class)

Bug: 140768340
Test: atest DataUsageControllerTest
Change-Id: I377973fac09c29e9085c280c89d748e1c79c13e2
2019-11-16 00:55:19 +00:00
Rahul Sabnis
90a45d63bc Merge "Refactor methods to access/modify BluetoothDevice alias and name"
am: 67bef6ab92

Change-Id: Id0a50d482a7ff33df5fcd990a3ce5273956fcc5c
2019-11-15 15:40:17 -08:00
Treehugger Robot
67bef6ab92 Merge "Refactor methods to access/modify BluetoothDevice alias and name" 2019-11-15 23:20:37 +00:00
Hunter Knepshield
ec907faf78 Merge "Synced the code from master branch"
am: 8e54615a36

Change-Id: I9746ddade8714546ef285c9f844419a63e34602c
2019-11-15 10:45:53 -08:00
Hunter Knepshield
8e54615a36 Merge "Synced the code from master branch" 2019-11-15 18:19:06 +00:00
Arc Wang
61ccbaca94 Merge "[Wi-Fi] Update owners of settingslib/wifi"
am: dbdaa06d90

Change-Id: I0032db8b40a926da47cc18bc09bdff9cfa5d463a
2019-11-15 02:06:34 -08:00
Rahul Sabnis
24ad4b561c Refactor methods to access/modify BluetoothDevice alias and name
Bug: 142352567
Test: Manual
Change-Id: I86bb69faed1c6d46ac668816e6081bd1673fbf85
2019-11-14 12:58:48 -08:00
Sunny Shao
e18a3cbeab Synced the code from master branch
Fixes: 144364245
Test: compilation
Change-Id: I1c6981128f3f2fe5ae36e83a289c226ac59be742
Merged-In: I72d37db133fdabb0eef1b332f1128b4fb23ea866
2019-11-14 21:53:05 +08:00
Arc Wang
0e0882a9f0 [Wi-Fi] Update owners of settingslib/wifi
Bug: 70983952
Test: NA
Change-Id: I7ae63c15c7a01a1d0c0eb6cdfb4a70a02ddc40ff
2019-11-14 10:01:37 +00:00
Xin Li
6f48900f50 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: If5056a73ede668b0048ca107b686413695e5b3b6
2019-10-30 14:33:01 -07:00
Lucas Lin
eb24608dbc Merge "Better notification to user when DNS-over-TLS is broken"
am: 81852c8481

Change-Id: I8be963e35ed5e5ba914c6d3504a52ccb789aaf29
2019-10-23 02:51:56 -07:00
lucaslin
783f221065 Better notification to user when DNS-over-TLS is broken
Provide a specifc notification to let users know that device
has no internet is because it really doesn't have internet access
or it's caused by private DNS resolution failed.

Bug: 113242081
Test: atest FrameworksNetTests
Change-Id: I710c88a4742f5fd56c39fc797d7fa3ad36dba553
2019-10-22 18:27:33 +08:00
Svet Ganov
484271bc7e [DO NOT MERGE] Update PermissionChecker usages to avoid unnecessary attribution.
We had accidental usages of the PermissionChecker for cases where no
private data was provided to the app but the checkPermission API on
the latter also did blame data access on the app. The PermissionChecker
was designed to handle IPC calls and not for generic API checks.

To avoid future accidental incorrect PermissionChecker usages this
change renames the existing APIs of the latter to clearly indicate
that they should be used for data delivery and also adds sibling
methods for doing the same permission checks for preflight purposes.
Also the documentation is improved to furhter assist developers.

In addition, this change fixes accidental permission checker usages
that blame when they should not by using the new preflight flavor
of the permission check APIs.

Test:
    atest com.android.settingslib.location.RecentLocationAppsTest
    atest CtsPermissionTestCases
    added: LocationAccessCheckTest#notificationOnlyForAccessesSinceFeatureWasEnabled
    added: LocationAccessCheckTest#noNotificationIfFeatureDisabled
    added: LocationAccessCheckTest#noNotificationIfBlamerNotSystemOrLocationProvider
    added: LocationAccessCheckTest#testOpeningLocationSettingsDoesNotTriggerAccess

Bug:141028068
Change-Id: I89f4add79a55c3c8d6fbe8d57decaa78fe12f0f9
Merged-In: I65c71569d0dd8a40bc6fecabb22c5373dd6e806e
2019-10-14 17:22:30 +00:00
Svet Ganov
534b728a1e [DO NOT MERGE] Update PermissionChecker usages to avoid unnecessary attribution.
We had accidental usages of the PermissionChecker for cases where no
private data was provided to the app but the checkPermission API on
the latter also did blame data access on the app. The PermissionChecker
was designed to handle IPC calls and not for generic API checks.

To avoid future accidental incorrect PermissionChecker usages this
change renames the existing APIs of the latter to clearly indicate
that they should be used for data delivery and also adds sibling
methods for doing the same permission checks for preflight purposes.
Also the documentation is improved to furhter assist developers.

In addition, this change fixes accidental permission checker usages
that blame when they should not by using the new preflight flavor
of the permission check APIs.

Test:
    atest com.android.settingslib.location.RecentLocationAppsTest
    atest CtsPermissionTestCases
    added: LocationAccessCheckTest#notificationOnlyForAccessesSinceFeatureWasEnabled
    added: LocationAccessCheckTest#noNotificationIfFeatureDisabled
    added: LocationAccessCheckTest#noNotificationIfBlamerNotSystemOrLocationProvider
    added: LocationAccessCheckTest#testOpeningLocationSettingsDoesNotTriggerAccess

Bug:141028068
Change-Id: I4a74d4906f92e323fbd30b9b25011129895afc9a
Merged-In: I89f4add79a55c3c8d6fbe8d57decaa78fe12f0f9
Merged-In: I65c71569d0dd8a40bc6fecabb22c5373dd6e806e
2019-10-14 17:15:38 +00:00
Bill Yi
7611c09364 Import translations. DO NOT MERGE
Change-Id: I5d10d8cf9a99ad18c9cb529267e1a252a6033968
Auto-generated-cl: translation import
2019-09-24 15:48:11 -07:00