Commit Graph

444790 Commits

Author SHA1 Message Date
Anton Hansson
f68ef068b1 Add package filter for system_server stubs
Should prevent accidental addition of APIs outside com.android,
which is where we want these APIs to be.

Bug: 149293194
Test: m update-api
Change-Id: I144ce6dbfe524106fc7de87318f66390c31b45af
Merged-In: I144ce6dbfe524106fc7de87318f66390c31b45af
2020-03-31 10:02:40 +01:00
Anton Hansson
087646e97d Limit framework module api packages
Use the same whitelist of packages that the non-updatable
part of the platform uses for now. This avoids exposing some
internal classes in a follow-up CL.

Move telephony off the module-wide defaults for now, as the
telephony stubs are causing problems.

Bug: 149293194
Test: m checkapi
Change-Id: Iedc8c309cef8290ac14e1ad32b5b66656145f557
Merged-In: Iedc8c309cef8290ac14e1ad32b5b66656145f557
2020-03-31 10:01:18 +01:00
Anton Hansson
26e1ed6dbf Add default configs for module service stubs
To be used by individual modules with service components that
define system_server APIs.

Bug: 147768409
Test: m
Change-Id: Iff6a5a840c5dd7731e881d7db379915375d02324
Merged-In: Iff6a5a840c5dd7731e881d7db379915375d02324
(cherry picked from commit 180ec39abe)
2020-03-31 09:59:32 +01:00
Anton Hansson
8cff7e41a1 Feed framework-tethering-stubs the src filegroup
This filegroups strips the "src" prefix away from the src path
for the filter_packages check in droiddoc.

Bug: 149293194
Test: m update-api (no change)
Change-Id: I5b9ffa211be9c1a7dd8f63d5e7ba2a825d0d3190
Merged-In: I5b9ffa211be9c1a7dd8f63d5e7ba2a825d0d3190
2020-03-31 09:56:55 +01:00
Treehugger Robot
9b575dcdb5 Merge "Bluetooth Metrics: Add metric_id field for Bluetooth metrics to proto. The incremental id is neither a device id nor a pseudo name and therefore PII free." 2020-03-31 06:24:24 +00:00
Benedict Wong
328ef02bf3 Merge "Make VpnProfile.maxMtu default value match Ikev2VpnProfile" 2020-03-31 02:22:54 +00:00
Mingming Cai
e803aa15a4 Merge "Add global cell ID to all technologies" 2020-03-31 00:23:20 +00:00
Cody Kesting
91082128c8 Merge "Decrement networkRequestPerUid when callbacks are unregistered." 2020-03-31 00:07:01 +00:00
Cody Kesting
e4479f571f Merge "Invoke onConnectivityReport on registering ConnectivityDiagnostics." 2020-03-31 00:06:26 +00:00
Nikita Ioffe
1886454c78 Merge "pm install-commit supports waiting for staged session to be ready" 2020-03-30 22:23:37 +00:00
Hall Liu
31ccd2e304 Merge "Mock TelephonyManager in NotificationManagerService tests." 2020-03-30 22:18:54 +00:00
Cody Kesting
03f3491bd4 Merge "Clean up handling of NetworkCapabilities#administratorUids." 2020-03-30 22:04:43 +00:00
Will Brockman
f7a98291a6 Mock TelephonyManager in NotificationManagerService tests.
This prevents NMSTest failure due to too many TelephonyService
listeners. (Because NMS never shuts down in normal use, it doesn't
unregister its listeners.)

Bug: 152241061
Test: atest NotificationManagerServiceTest RoleObserverTest BuzzBeepBlinkTest

Change-Id: Ia5988a194aff2e5a83cf15fcd422c063a3ca14f1
Merged-In: Ia5988a194aff2e5a83cf15fcd422c063a3ca14f1
(cherry picked from commit 0580d19946)
2020-03-30 21:03:37 +00:00
Amit Mahajan
46c794ca0f Merge "Update API documentation per api-council feedback." 2020-03-30 19:48:52 +00:00
Amit Mahajan
decc3085a1 Merge "Remove @SystemApi from some constants for R." 2020-03-30 19:48:35 +00:00
Chen Chen
73b1c2ed65 Bluetooth Metrics: Add metric_id field for Bluetooth metrics to proto.
The incremental id is neither a device id nor a pseudo name and
therefore PII free.

Test: Build successfully
Bug: 142563377
Change-Id: I5393aee2d1940470678c3d00153a4771e5e676e1
Merged-In: I5393aee2d1940470678c3d00153a4771e5e676e1
(cherry picked from commit 71c3a5d485)
2020-03-30 19:33:44 +00:00
Tyler Gunn
f02ac9e439 Merge "Update car mode API docs." 2020-03-30 18:22:32 +00:00
Cody Kesting
662076b1a7 Decrement networkRequestPerUid when callbacks are unregistered.
ConnectivityDiagnosticsCallbacks are tied to NetworkRequestInfo objects
when registered with the platform. Each NetworkRequestInfo is tied to a
specific uid, and ConnectivityService enforces a limit on the number of
network requests that can be associated with each uid.

When ConnectivityDiagnosticsCallbacks are unregistered from the
platform, their NetworkRequestInfo is freed and the number of network
requests per the user's uid should be decremented.

Bug: 150802582
Test: atest android.net.cts.ConnectivityDiagnosticsManagerTest
Change-Id: Ia5ed39c1d8e6221cd402be4f8baf69fa643a6113
2020-03-30 11:10:46 -07:00
Cody Kesting
95ec0b206b Invoke onConnectivityReport on registering ConnectivityDiagnostics.
This change updates the behavior for registering
ConnectivityDiagnosticsCallbacks. Now, after a successful register()
call, callbacks will receive cached ConnectivityReports for all
matching, permissioned networks. This allows registrants to be updated
with the network state for their networks without having to wait for the
next network validation.

Bug: 147849853
Test: atest FrameworksNetTests
Change-Id: I924ba8fdcc847f453557021591bde38602fe089c
2020-03-30 11:10:46 -07:00
Benedict Wong
a31929ff85 Merge "Add negotiated DNS servers to VPN config" 2020-03-30 17:58:23 +00:00
Paul Duffin
35f668b1e9 Merge "Add ike-internals when building framework-all-sources" 2020-03-30 17:29:37 +00:00
Cody Kesting
898496365a Clean up handling of NetworkCapabilities#administratorUids.
Update ConnectivityService's check for administrator UIDs to use
ArrayUtils to check for UID inclusion. Update the NetworkCapabilities
annotation on the administrator UIDs field to clarify that it is
NonNull.

Bug: 147903575
Test: atest FrameworksNetTests
Change-Id: Id630fe9d76aacdaf038fdaa5360f0327520ee0c3
2020-03-30 16:55:21 +00:00
Tyler Gunn
d5ee1a6325 Update car mode API docs.
1. Clarify the distinction between the prioritized and non-prioritized
intents.
2. Make the priority ordering and choice of them more clear.

Test: make -j offline; preview updated docs for formatting.
Fixes: 150685399
Change-Id: I493bca75db44f25eedb07964e3dc8c8ab38827c2
2020-03-30 09:34:11 -07:00
Mingming Cai
abfecd4cf9 Add global cell ID to all technologies
Add global cell ID to CellIdentity and all technologies,
including GSM, CDMA, WCDMA, TDSCDMA, LTE, and NR.

Bug: 80159277
Test: CellIdentityTest, CellIdentityGsmTest, CellIdentityCDMATest,
CellIdentityWcdmaTest, CellIdentityTdscdmaTest, CellIdentityLteTest,
CellIdentityNrTest, CellIdentityNrTes, ServiceStateTrackerTest

Change-Id: I2174e8d8c286da200562ef77cff78c3fca26cee2
Merged-In: I2174e8d8c286da200562ef77cff78c3fca26cee2
(cherry picked from commit c78abaad35)
2020-03-30 08:43:43 -07:00
Anton Hansson
d03b443e0f Merge "Make framework-tethering stubs use the new defaults" 2020-03-30 14:16:02 +00:00
Anton Hansson
b4580f6294 Merge "Build tethering against the module SDK" 2020-03-30 14:15:42 +00:00
Paul Duffin
f090c45f0f Add ike-internals when building framework-all-sources
The framework-all-sources filegroup includes sources from ike-srcs
which in turn depends on bouncycastle sources. This change

Bug: 152328618
Test: m droid
Change-Id: I1e9c1dac3e0ad7e7d07f6a72e38171403b23493b
Merged-In: Ife5d1b2c80469ee5196d61806b721cf9dae251ed
2020-03-30 12:50:05 +01:00
Chiachang Wang
2ec47eeb7c Merge "Update constructor of NetworkMonitor" 2020-03-30 08:40:45 +00:00
Chiachang Wang
59ed66a8a5 Update constructor of NetworkMonitor
Remove redundant parameter.

Bug: 152374582
Test: m -j40 ; atest FrameworksNetIntegrationTests
Change-Id: I3a636f0ea5145ac4435e06a9827bb8e01862542d
2020-03-30 07:52:02 +00:00
Lucas Lin
61265bffa1 Merge "Fix NetworkCapabilitiesTest fail on Q device" 2020-03-30 07:41:01 +00:00
Aaron Huang
512c14973e Merge "Make LinkPropertiesTest compatible with Q" 2020-03-30 06:06:32 +00:00
lucaslin
1044e72f2c Fix NetworkCapabilitiesTest fail on Q device
The getSSID() has changed to getSsid() in Android R, adding
isAtLeastR() to prevent NetworkCapabilitiesTest fail on Android
Q.

Bug: 151322799
Test: Run "atest CtsNetTestCasesLatestSdk:NetworkCapabilitiesTest"
      on Android Q & R device.
Change-Id: I602ae32dae1ad29fe3293c541fa6d2cef01b81d3
Merged-In: I602ae32dae1ad29fe3293c541fa6d2cef01b81d3
2020-03-30 03:47:00 +00:00
Treehugger Robot
390f5b3bec Merge "Assign specific client address to dhcp server" 2020-03-30 03:38:46 +00:00
Lucas Lin
60c1a5cdc7 Merge "Add MatchAllNetworkSpecifierTest" 2020-03-30 03:08:48 +00:00
Lucas Lin
6ca95d7e57 Merge "Add more tests in LinkPropertiesTests.java" 2020-03-30 03:08:40 +00:00
Remi NGUYEN VAN
c6ab1a994f Merge "Create a builder for NetworkCapabilities." 2020-03-30 02:58:45 +00:00
Treehugger Robot
1b9f4dbd5d Merge "Fix Bluetooth auto turns ON in airplane mode" 2020-03-30 02:43:26 +00:00
Lorenzo Colitti
a5f8e9b3d7 Merge "Use CompletableFuture instead of a latch." 2020-03-30 02:28:14 +00:00
Treehugger Robot
bb3874364f Merge "Independent methods to enable/disable BLE mode" 2020-03-30 01:20:19 +00:00
satayev
3fa88993cd Merge "Export change id processor." 2020-03-29 18:10:55 +00:00
Nikita Ioffe
87847be695 pm install-commit supports waiting for staged session to be ready
This change allows callers of adb install-multi-package to benefit from
--wait flag which will wait for the pre-installed verification of staged
sessions.

Test: atest PackageManagerShellCommandTest
Test: adb install-multi-package tzdata.apex shim.apex
Bug: 147694315
Change-Id: Ia356c4dff635ec230eb505fb400913c76ec84042
Merged-In: Ia356c4dff635ec230eb505fb400913c76ec84042
(cherry picked from commit 13973e1d89)
2020-03-28 19:28:01 +00:00
Winson Chung
865fc3582b Merge "Updating owners for WM/SysUI" 2020-03-28 02:48:06 +00:00
Treehugger Robot
92b06e0509 Merge "Added owners for CarUserSwitchingDialog.java" 2020-03-28 00:59:18 +00:00
Amit Mahajan
69cf3f0f03 Update API documentation per api-council feedback.
Test: SMS/MMS sending/receiving sanity (manual)
Bug: 149236716
Merged--in: I59b9d468fa6e1a5843871abf1a330962aef64505
Change-Id: I59b9d468fa6e1a5843871abf1a330962aef64505
(cherry picked from commit d42340b66c)
2020-03-27 17:45:51 -07:00
Amit Mahajan
1c87deaacf Remove @SystemApi from some constants for R.
These were exposed for telephony mainline. Will be revisited in S.

Test: basic sanity
Bug: 148171847
Bug: 148171388
Merged-in: Ibdcac557cf35e723f09a7b7a2e59c7deae1fc94e
Change-Id: Ibdcac557cf35e723f09a7b7a2e59c7deae1fc94e
(cherry picked from commit c55b01552e)
2020-03-27 17:38:33 -07:00
Shuo Qian
954f3d780f Merge "Add a hidden API for EXTRA_LAST_KNOWN_NETWORK_COUNTRY" 2020-03-27 23:30:22 +00:00
Winson Chung
794c87d3a2 Updating owners for WM/SysUI
Bug: N/a
Test: Just updating the owners
Change-Id: I6c0715eef790300be619648b00b647b620016952
2020-03-27 16:17:56 -07:00
Artur Satayev
db23306e83 Export change id processor.
- Don't declare the plugin directly, it is exported via java_library that defines the sources.
- Remove unneeded framework-annotation-proc.

Bug: 152220864
Test: m && diff merged_compat_config.xml
Change-Id: Ie750b5391229d21679a8610780b9f8d4a997e204
Merged-In: Ie750b5391229d21679a8610780b9f8d4a997e204
2020-03-27 22:44:30 +00:00
Hunter Knepshield
7eea8391b8 Merge "Scrub TelephonyRegistry of package names on user builds" 2020-03-27 22:02:44 +00:00
Ugo Yu
592234676c Fix Bluetooth auto turns ON in airplane mode
Fix a race condition that mBleApps is cleared while turning ON BLE,
this causes Bluetooth turns on classic profiles instead of stays in
BLE_ON state.

Bug: 142220937
Test: enableBle() -> turn on airplane mode, check Bluetooth does not
      turn to ON.
Change-Id: I3cea5384f734dde269cf93a93ed7cc4173f669a0
2020-03-27 21:04:24 +00:00