Commit Graph

4235 Commits

Author SHA1 Message Date
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
Xin Li
d57e959e71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: I65906d82b14125c0893d5cde0cfebb73bf9e38ab
Merged-In: I1f2564837c33cd4c6c3db6aac3cbaf8c09707da9
2019-09-10 11:16:29 -07:00
Neil Fuller
fbf9b6c05a Merge "Simplify APIs exposed for time zone lookups"
am: 19de70814a

Change-Id: I011145107f9b228272814bbdc73aa8fe35a0d984
2019-09-02 07:28:52 -07:00
Neil Fuller
e5700a7c49 Simplify APIs exposed for time zone lookups
The libcore.timezone APIs may form the basis for some
new SystemApis. Before starting that process the API
surface is being rationalized to establish the core
use cases.

Test: Treehugger
Bug: 139091367
Change-Id: Ib615976fae76ceb98873a33e1e995542e691c9d0
Merged-In: Ib615976fae76ceb98873a33e1e995542e691c9d0
(cherry picked from commit babab5cd6a)
2019-08-30 13:48:30 +01:00
Quang Luong
472edd9c1f Merge "Do not set AccessPoint.ssid to config.SSID for Passpoint networks" into qt-r1-dev
am: 767b96670d

Change-Id: I9d9cc658fe0ecb1584197d58fe0a5632a28004e9
2019-07-31 13:35:46 -07:00
TreeHugger Robot
767b96670d Merge "Do not set AccessPoint.ssid to config.SSID for Passpoint networks" into qt-r1-dev 2019-07-31 20:05:26 +00:00
Colin Cross
7d089ac5ae Merge "Convert more of frameworks/base/packages to Android.bp" into stage-aosp-master am: ba9073a6a8
am: 97c07ce018

Change-Id: I515c0c0b6870f8eafd850011cf8c9799fdd72a90
2019-07-29 19:22:40 -07:00
Colin Cross
97c07ce018 Merge "Convert more of frameworks/base/packages to Android.bp" into stage-aosp-master
am: ba9073a6a8

Change-Id: I0298b237f67c860aa19be20aea4c820cda5520d0
2019-07-29 19:01:40 -07:00
Bill Yi
e81a8b2419 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I378efe4ecf659edc7846eee5e6bd55416c6c9bf9
2019-07-25 16:00:04 -07:00
Colin Cross
20bc2bf3f6 Convert more of frameworks/base/packages to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: m DynamicSystemInstallationService InputDevices MtpDocumentsProvider SimAppDialog
Change-Id: I851b819030a1da6091f5d6125a228bb01a99011b
2019-07-24 16:06:52 -07:00
Quang Luong
c825db1194 Do not set AccessPoint.ssid to config.SSID for Passpoint networks
On each WifiTracker scan, existing Passpoint AccessPoints are updated
by update(config) with a WifiConfiguration returned by the framework
and then updated with fresh scan results through setScanResults().
Since the Passpoint WifiConfigurations given to update(config) have
null SSID, the call to setScanResults() sets the config.SSID to the
SSID of the strongest scan result. However, update(config) also sets
AccessPoint.ssid to config.SSID, which means the UI may display a blank
SSID before the call to setScanResults() sets it to the correct SSID.
Thus, update(config) should not set AccessPoint.ssid to config.SSID if
the AccessPoint is for Passpoint.

Bug: 137282522
Test: manual - connect to Passpoint network, validate SSID in network
details page.
Change-Id: I2218c1217de3e4fe48e40114a3ea8ceab3d845f2
2019-07-16 14:46:52 -07:00
Bill Yi
052e408359 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia6e49e4d3b169b2023503fffc7104604463819a1
2019-07-13 19:20:53 -07:00
Xiangyu/Malcolm Chen
dbb897ee22 Merge changes from topic "135105735" into qt-r1-dev
am: 896cdfa547

Change-Id: Ie661fdc8a29645fa1b319cf1db8a896a8d21deae
2019-07-12 10:43:52 -07:00
Malcolm Chen
ac56a4254e Provide @hide API to return merged IMSIs from grouping.
Bug: 135105735
Test: test app. Apply grouping and call the new API, to make sure
it returns correct values.

Change-Id: I99586976d3421d4b35be465201ee33cbb2dfd1d9
2019-07-11 13:19:36 -07:00
Lei Yu
62e334fc0f Merge "Use old API to build NetworkTemplate" into qt-dev am: e5fdc968a0
am: fd80b569f9

Change-Id: I028536be6c63a9c0424d998e5dd6fe14bf75c71e
2019-07-10 11:18:29 -07:00
Lei Yu
68178f853b Merge "Use old API to build NetworkTemplate" into qt-dev
am: e5fdc968a0

Change-Id: I35702ae50d5274defd6974245bf1209ad3a0115f
2019-07-10 11:07:38 -07:00
Lei Yu
fd80b569f9 Merge "Use old API to build NetworkTemplate" into qt-dev
am: e5fdc968a0

Change-Id: I3fcf42d184015e52d064baf6efdd38150fbc2b9b
2019-07-10 11:05:19 -07:00
Lei Yu
e5fdc968a0 Merge "Use old API to build NetworkTemplate" into qt-dev 2019-07-10 17:27:58 +00:00
Chienyuan
7983c807d5 [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b am: 2a547afdfa am: b36f88020e am: 60aad1a06f am: 5f70ebf52c
am: 991b628a09

Change-Id: I31a1d14e8e63d427a22912ad975bdbb0c09de208
2019-07-09 22:43:38 -07:00
Chienyuan
eef665e68a [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b am: 2a547afdfa am: b36f88020e am: 60aad1a06f
am: 5f70ebf52c

Change-Id: Ia9fc627a9bb50eb2a6bb96ef83c38213b7b18f3d
2019-07-09 22:33:44 -07:00
Chienyuan
991b628a09 [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b am: 2a547afdfa am: b36f88020e am: 60aad1a06f
am: 5f70ebf52c

Change-Id: Id4c1a257b04515a03828a33229e5630c75c56ac2
2019-07-09 22:33:28 -07:00
Chienyuan
5f70ebf52c [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b am: 2a547afdfa am: b36f88020e
am: 60aad1a06f

Change-Id: I59696232bedf6bc978f66efd8f5df2ec2fb3336a
2019-07-09 22:23:46 -07:00
Chienyuan
60aad1a06f [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b am: 2a547afdfa
am: b36f88020e

Change-Id: I34205b247a3261c940c9704f8b3f03bd10ec3238
2019-07-09 22:06:03 -07:00
Chienyuan
b36f88020e [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc am: df484ced0b
am: 2a547afdfa

Change-Id: I0ec4664b3654fb0b8397a89b8948183413d7d522
2019-07-09 21:47:21 -07:00
Chienyuan
2a547afdfa [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc
am: df484ced0b

Change-Id: I174f1594f8f7ae21979398ba29b961e95bd47c75
2019-07-09 21:33:15 -07:00
Lei Yu
5e955861f9 Use old API to build NetworkTemplate
Use old API to be consistent with NetworkPolicyManagerService

Bug: 135105735
Test: RunSettingsLibRoboTests & Manual test
Change-Id: I5d04cfd962c3d09cac7d33a97f847771074ab258
2019-07-09 17:18:49 -07:00
Xin Li
626cac9fdf DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into master
Bug: 136196576
Change-Id: I481d824726ae0260b42cd7a4acc1c6fce593c324
2019-07-09 15:13:36 -07:00
Fan Zhang
0850a3034c Merge "Update Settingslib owners" am: 90fc97dfcc am: 78081be153
am: c12516a7ba

Change-Id: I8a535f1cea2fe53361c9cc0541a19f49810095e1
2019-07-09 06:48:18 -07:00
Fan Zhang
78081be153 Merge "Update Settingslib owners"
am: 90fc97dfcc

Change-Id: Id8196146c744a273331c2c1a6c39fe02274d54cd
2019-07-09 06:14:19 -07:00
Fan Zhang
d9a00a964f Update Settingslib owners
Test: rebuilt
Change-Id: Ic6b002a181f77e598801462799918cddce8c91ea
2019-07-09 00:51:59 -07:00
Android Build Merger (Role)
df484ced0b [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855 am: 3aaf2811fc
Change-Id: Id1233680c478ff3367d69375056dd5d0bc1867ff
2019-07-09 07:11:53 +00:00
Android Build Merger (Role)
3aaf2811fc [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929 am: e6bf153855
Change-Id: Ieb2eab9943a3fde047fbfe947ccad105a5f7160d
2019-07-09 07:11:47 +00:00
Android Build Merger (Role)
e6bf153855 [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3 am: 181fb5b929
Change-Id: Iba55914648e687faaf01bc961c34efbdb72d6569
2019-07-09 07:11:41 +00:00
Android Build Merger (Role)
181fb5b929 [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277 am: 9ac58f09c3
Change-Id: I231941e32409574af8c15fe9e763169fe09b279f
2019-07-09 07:11:36 +00:00
Android Build Merger (Role)
9ac58f09c3 [automerger] HidProfile: sync isPreferred() with HidHostService am: 830217f277
Change-Id: If9cb4de9ab510f1ddfff44a404a0a248cf9103dc
2019-07-09 07:11:28 +00:00
Chienyuan
830217f277 HidProfile: sync isPreferred() with HidHostService
HidHostService allow to connect when priority is PRIORITY_UNDEFINED.
HidProfile should return ture when priority is PRIORITY_UNDEFINED.
Otherwise, the "Input device" toggle in off state when HID device
connected.

Bug: 132456322
Test: manual
Change-Id: Id7bae694c57aec17e019d591c0a677e3cb64f845
2019-07-09 15:09:56 +08:00
Bill Yi
8a5b879731 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I9d8375570390ccc3164116ab2f4c472105d4a335
2019-07-05 03:11:32 -07:00
Bill Yi
4cbe159555 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I634b80fa18b8f14a90e5494933bf9b49a4c3f68f
2019-07-05 02:03:54 -07:00
Amin Shaikh
46ad7d6dad Merge "Update SignalDrawable X path drawing." into qt-r1-dev
am: 7935441db7

Change-Id: Ib3ad3aa7593648451240aef80be95fadc0b8453b
2019-07-01 06:19:58 -07:00
TreeHugger Robot
7935441db7 Merge "Update SignalDrawable X path drawing." into qt-r1-dev 2019-07-01 13:01:35 +00:00
Bill Yi
6defd8fac8 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I8f8886451b3cf1dc7a1bfe2abe20d7a43b00b796
2019-06-30 11:08:56 -07:00
Bill Yi
72291c890b Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2636f8a8fb5002a464776676a7b5fd21eafd6189
2019-06-30 10:55:16 -07:00
Amin Shaikh
408d2d312d Update SignalDrawable X path drawing.
- Use config resources to specify svg path and cutout width / height
- Specify these resources for all 3 themes

Fixes: 133343689
Test: mp res sysuig; demo mode; manually change themes
Change-Id: Ic29e5da541330c1aa99b0e82e46a14dbb10d7940
2019-06-27 16:49:05 -04:00
TreeHugger Robot
b2f7868547 Merge "Import translations. DO NOT MERGE" into qt-r1-dev 2019-06-25 17:58:27 +00:00
Bill Yi
4b95c7150c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ib84e11cdc1f5e6e7aa7be8ea5d02853d1204de13
2019-06-25 07:34:14 -07:00
Bill Yi
01e65d226f Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Idffc307384b04773b54272c4849442c21273482d
2019-06-25 01:07:53 -07:00