Commit Graph

95297 Commits

Author SHA1 Message Date
Neil Fuller
16799560df Merge "Fix docs to be clearer and more maintainable" am: 7e62a930a1
am: eef56a4e6c

Change-Id: I82ac15bbebd70838ed3b0aa50bb4bd48a644fc7e
2019-10-24 03:22:04 -07:00
Neil Fuller
eef56a4e6c Merge "Fix docs to be clearer and more maintainable"
am: 7e62a930a1

Change-Id: I9803c6c8dc78bfd2f86d7850368dfb9ad82ebbf6
2019-10-24 03:09:07 -07:00
Neil Fuller
7e62a930a1 Merge "Fix docs to be clearer and more maintainable" 2019-10-24 09:51:07 +00:00
Michele
c162389c31 Merge "Removal of usage of hidden APIs" am: 78b20d0d58
am: e8eefec918

Change-Id: I18dcc160df4d90d193d80f9bbd96e954699efb8b
2019-10-23 23:36:56 -07:00
Michele
e8eefec918 Merge "Removal of usage of hidden APIs"
am: 78b20d0d58

Change-Id: I81d1791744a419b1f0a38559335b83bab3b80512
2019-10-23 23:24:38 -07:00
Michele
db421f56e8 Removal of usage of hidden APIs
Moved RESOLUTION_ACTIONS from EuiccService to EuiccResolutionUiDispatcherActivity,
so that it does not need to be made public.

Bug: 137202333
Test: compilation
Change-Id: If8011bbe6af32c038f55d851acc2406eba208de6
Merged-In: If8011bbe6af32c038f55d851acc2406eba208de6
2019-10-24 00:26:22 +00:00
Myles Watson
0886d0d63c Merge "Bluetooth doc: The is a -> This is a" am: c8d3cde31e
am: 31d16458cc

Change-Id: I9b38fc13a15f2de890cdb3a0ea16f5a7192656f4
2019-10-23 16:04:30 -07:00
Myles Watson
31d16458cc Merge "Bluetooth doc: The is a -> This is a"
am: c8d3cde31e

Change-Id: Ibd5c32da0420d3b32f43bb3f14453d08e231ffa5
2019-10-23 15:52:31 -07:00
Treehugger Robot
c8d3cde31e Merge "Bluetooth doc: The is a -> This is a" 2019-10-23 22:32:54 +00:00
Myles Watson
1254da6333 Bluetooth doc: The is a -> This is a
Fixes: 142364826
Test: build
Change-Id: I9bde35140bdfc4d76df7e8c427ac6e8baceee611
2019-10-23 20:38:57 +00:00
TreeHugger Robot
bb326f9a80 Merge "Use language tags to store Configuration's locale list." into stage-aosp-master 2019-10-23 17:15:26 +00:00
Lucas Lin
a55366ffdb Merge "Better notification to user when DNS-over-TLS is broken" am: 81852c8481
am: eb24608dbc

Change-Id: I2d257ced3460985be3980d122496232de73d18b3
2019-10-23 03:07:15 -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
Lucas Lin
81852c8481 Merge "Better notification to user when DNS-over-TLS is broken" 2019-10-23 09:20:09 +00:00
Varun Shah
b53b34487b Use language tags to store Configuration's locale list.
Instead of storing each Locale within a Configuration object's locale
list by its language, country, variant, and script to proto, store the
entire locale list by its language tags representation which accurately
describes each locale.

Bug: 140197723
Test: atest ConfigurationTest
Test: atest UsageStatsDatabaseTest
Test: manually with bad data
Merged-In: I53946ed4e31de0ffe9c84875c391a7dec6f5375a
Change-Id: Idaae690f79a5c680ad0059a52be62160d9dfb5e7
(cherry picked from commit 5e67462971)
2019-10-22 22:52:49 +00:00
Anna Trostanetski
b17294db1c Merge "Add a native aidl API." am: 577e3114da
am: 4cfb3545d6

Change-Id: I8284ed74352c6212f43a6689f3fb27740d528157
2019-10-22 13:33:13 -07:00
Anna Trostanetski
4cfb3545d6 Merge "Add a native aidl API."
am: 577e3114da

Change-Id: I22c7963991747fe1e27dce432da3fc02c644bbef
2019-10-22 13:20:59 -07:00
atrost
ff948d8a2f Add a native aidl API.
Introduce a platform_compat_native service that just calls the
platform_compat service.
The new service is needed as it needs a slightly different (more
limited, no ApplicationInfo in cpp) aidl API, and a class can only
extend one stub.

Test: Call the service from dumpsys.cpp (http://aosp/1142055)
Bug: 138275545
Change-Id: Ic46cc34b4c1dd4ebc6bcc996fb3f8503607214ac
Merged-In: Ic46cc34b4c1dd4ebc6bcc996fb3f8503607214ac
2019-10-22 18:54:13 +00: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
Kevin Hufnagle
e0b54ab365 Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev am: 0823f1b508
am: e7832d514b

Change-Id: I6fdee76474fb8df0b67378178294b7bf3276ec90
2019-10-21 15:51:07 -07:00
Kevin Hufnagle
e7832d514b Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev
am: 0823f1b508

Change-Id: I1e775265df7964f4eb5a41d5e228308aad29ee22
2019-10-21 15:44:08 -07:00
Kevin Hufnagle
78b73b5ac7 Merge "docs: Added consent notice re. getAccounts()" into qt-dev am: 3b6bbed3af
am: a7cca253ea

Change-Id: I4b4c56ef8f86361237739d4d8894f82f14006e01
2019-10-21 15:38:08 -07:00
Kevin Hufnagle
0823f1b508 Merge "docs: App doesn't receive "first launch" broadcast" into qt-dev 2019-10-21 22:33:05 +00:00
Kevin Hufnagle
a7cca253ea Merge "docs: Added consent notice re. getAccounts()" into qt-dev
am: 3b6bbed3af

Change-Id: I0a32519c272af7fc21b1544a77b6bde86843d1e7
2019-10-21 15:32:07 -07:00
Kevin Hufnagle
3b6bbed3af Merge "docs: Added consent notice re. getAccounts()" into qt-dev 2019-10-21 22:14:54 +00:00
Shuo Qian
a1c6087157 Merge "Emergency number database config updater" am: ca0f14ec1a
am: 9208fc5a0a

Change-Id: Id32674a1021f1902444b996b0ee5eb4be5fe30a1
2019-10-21 13:38:20 -07:00
Shuo Qian
9208fc5a0a Merge "Emergency number database config updater"
am: ca0f14ec1a

Change-Id: Ice41292677b52fe62fa860960fe62a29e28068dc
2019-10-21 13:22:50 -07:00
Shuo Qian
ca0f14ec1a Merge "Emergency number database config updater" 2019-10-21 19:59:39 +00:00
Neil Fuller
84c6981a8f Merge "Make TimeDetectorService more aware of origin" am: 4ef2551dfa
am: 3150e58082

Change-Id: Ia70f69e226a7800e82e29dd504351aef65048ed3
2019-10-21 12:04:05 -07:00
Neil Fuller
3150e58082 Merge "Make TimeDetectorService more aware of origin"
am: 4ef2551dfa

Change-Id: I27866cf74b779bb0040f4ace384207047ca6838f
2019-10-21 11:53:20 -07:00
Kevin Hufnagle
c665fedfe1 docs: Added consent notice re. getAccounts()
Test: make ds-docs -j32

Bug: 32704758
Change-Id: Id5e5c00840f2bde6c31a4f95f365b8bc8857884d
2019-10-21 14:04:55 +00:00
Neil Fuller
af3eeaf431 Make TimeDetectorService more aware of origin
Make TimeDetectorService more aware of a time signal's origin by making
the time signal from telephony less generic.

When TimeDetectorService was written it was assumed that the TimeSignal
could be generic and there would just be a String source identifier to
indicate origin.

With multiple SIMs / phones on a device it makes sense to keep track of
the originating phone of the signal so that the time detector service
could implement stickiness if it wanted. This would avoid a device
alternating back and forth between two signals and help with debugging.

As new signals are added, new "suggestXxxxTime()" methods will be added
to TimeDetectorService. That is the point at which the strategy for
ranking different sources can be decided. e.g. should NTP always rank
higher than NITZ?

The main change here is that TimeSignal is renamed to
PhoneTimeSuggestion to indicate it's only for use by signals from
telephony, sourceId has been removed and it has been given a phoneId
instead. Extra free-form metadata (mDebugInfo) has been added to assist
with logging / debugging.

Bug:140712361
Test: atest android.app.timedetector
Test: atest com.android.server.timedetector
Change-Id: I5305c34516e5f4e254309193183f00e054801a46
2019-10-21 08:42:50 +01:00
Neil Fuller
2422489f3d Fix docs to be clearer and more maintainable
The mention of P in the doc was unclear. Also, listing the specific
values allowed is a maintenance issue.

Test: None
Change-Id: I9c46eec353090ecd822f10a0a9e8433fa46246a0
2019-10-18 17:41:56 +01:00
Jimmy Chen
e21e19ec4d Merge "p2p: mirgrate p2p into tethering modes" am: 8a9a9adaeb
am: 58d08de0c6

Change-Id: I618c950426976dd1899284d0c249ea7b4e45b479
2019-10-17 23:12:30 -07:00
Jimmy Chen
58d08de0c6 Merge "p2p: mirgrate p2p into tethering modes"
am: 8a9a9adaeb

Change-Id: Ib8f43d77a5f57965fa217e6e92eb9773e7914b54
2019-10-17 23:06:04 -07:00
Jimmy Chen
8a9a9adaeb Merge "p2p: mirgrate p2p into tethering modes" 2019-10-18 05:42:31 +00:00
Aaron Huang
c55e2d6d59 Merge "Expose MacAddress methods to public API" am: 7b98130570
am: 0688f9b6b1

Change-Id: I1baaf191006cf6fb9fb1e718a755bb829f1cc899
2019-10-17 21:07:13 -07:00
Aaron Huang
0688f9b6b1 Merge "Expose MacAddress methods to public API"
am: 7b98130570

Change-Id: I98c2104fe5307e916bd2026eb943bfe4a9913d07
2019-10-17 20:55:36 -07:00
Aaron Huang
7b98130570 Merge "Expose MacAddress methods to public API" 2019-10-18 03:45:40 +00:00
Shuo Qian
2f349da995 Emergency number database config updater
Test: https://paste.googleplex.com/5345498821033984
Bug: 136027884
Change-Id: I0fbd48fe8ef5e008af714312859b513a22679fcb
Merged-In: I0fbd48fe8ef5e008af714312859b513a22679fcb
(cherry picked from commit 8163b80a7e)
2019-10-17 23:42:06 +00:00
Kevin Hufnagle
49d171d595 docs: App doesn't receive "first launch" broadcast
Test: make ds-docs -j32

Bug: 116543817
Change-Id: I9aa1f1851ce236397ad2e1a36ea487b96daa55c5
2019-10-15 19:47:38 +00:00
Aaron Huang
f857470625 Expose MacAddress methods to public API
To support mainline modules, adding the methods which
are used by wifi.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest android.net.cts
      atest android.net.wifi.cts
      atest FrameworksNetTests
      atest NetworkStackTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I49856863c15b6b3b59aa867a77b0f137003149ef
2019-10-15 17:33:05 +08:00
TreeHugger Robot
ee4eb8c39d Merge "DO NOT MERGE - Merge QD1A.190821.011 into stage-aosp-master" into stage-aosp-master 2019-10-15 00:24:25 +00:00
Xin Li
5c4d37fc17 DO NOT MERGE - Merge QD1A.190821.011 into stage-aosp-master
Bug: 141248619
Change-Id: I078f35ceef06ae7d08c5de385fd023c71c1ecbac
2019-10-14 22:54:53 +00:00
Treehugger Robot
2f1d3ac4f4 Merge "[DO NOT MERGE] Update PermissionChecker usages to avoid unnecessary attribution." 2019-10-14 21:44:51 +00:00
Philip P. Moltmann
b8b4015e2b Merge "[DO NOT MERGE] Update PermissionChecker usages to avoid unnecessary attribution." into stage-aosp-master 2019-10-14 20:47:48 +00:00
Neil Fuller
4055cdd965 Merge "Make TimestampedValue Parcelable" am: 81a705690b
am: 209c74f8b6

Change-Id: I4d9afe91fdea9c5819e4d3d744ac784304abcd19
2019-10-14 11:49:47 -07:00
Neil Fuller
209c74f8b6 Merge "Make TimestampedValue Parcelable"
am: 81a705690b

Change-Id: I68edcf15ec9bef69a26267d9bf0c036e38ce93d4
2019-10-14 11:43:18 -07:00
Treehugger Robot
81a705690b Merge "Make TimestampedValue Parcelable" 2019-10-14 18:33:43 +00: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