Commit Graph

561109 Commits

Author SHA1 Message Date
Sarah Chin
08b9f41364 Merge "APIs for 5G slicing" 2021-03-03 18:42:20 +00:00
Patrick Baumann
8ee2b99d71 Merge "Parcel queriesProviders in ParsingPackageImpl" 2021-03-03 18:19:56 +00:00
Yan Yan
b9fdfa8270 Merge "Use VERSION_CODES.S instead of VERSION_CODES.R + 1" 2021-03-03 18:04:52 +00:00
Brad Ebinger
4d183b882d Merge "Move illegal state detection in stub classes to warning" 2021-03-03 17:45:49 +00:00
James Mattis
1258b5fec3 Merge "Adding additional docs for OemNetworkPreferences" 2021-03-03 17:25:01 +00:00
Treehugger Robot
10eb5d0faf Merge "[FUI18] Expose notifyNetworkStatus as system API" 2021-03-03 15:49:06 +00:00
junyulai
33b44da527 [FUI18] Expose notifyNetworkStatus as system API
Test: m -j doc-comment-check-docs
Bug: 174123988
Merged-In: I11d4c9ab24de87fb2ad120e3787b78b73133e874
Change-Id: I11d4c9ab24de87fb2ad120e3787b78b73133e874
  (cherry-picked from ag/13749978)
2021-03-03 20:01:46 +08:00
Abhijeet Kaur
ddd2a13c38 Merge "Update mount values to be consistent with IVold.aidl" 2021-03-03 10:09:46 +00:00
Yi Kong
453966a20b Merge "profcollect: Update binder method names" 2021-03-03 08:16:51 +00:00
Treehugger Robot
ad1bbc487c Merge "Additional metadata keys for Fast Pair" 2021-03-03 08:15:22 +00:00
Treehugger Robot
15b5b58a7c Merge "Extend timeout for receiving broadcasts" 2021-03-03 07:52:41 +00:00
Remi NGUYEN VAN
992369f32d Extend timeout for receiving broadcasts
The test is currently flaky as broadcasts can take a long time
to be delivered, often more than 500ms.
Extend the timeout for broadcasts to 30s.

Historically the test would wait for broadcasts for at most 500ms,
but not verify that they were received before proceeding. This was
fixed recently by adding an assertion, but the assertion needs to
give enough time for the broadcast to be received.

Bug: 173331190
Change-Id: I0760f3418c635aa4d68de5aefdb7120a9d3e930b
Test: atest FrameworksNetTests
2021-03-03 06:26:16 +00:00
Benedict Wong
a3fab46d7b Merge changes Ib439bde4,I5bc0fe94,I72abf1e2,Id1813bcb
* changes:
  Call setUnderlyingNetwork to complete VCN MOBIKE
  Rename isRunning to isQuitting, and flip all booleans
  Notify Vcn of VcnGatewayConnection quits
  Allow NETWORK_LOST disconnections to retry
2021-03-03 06:02:20 +00:00
Lorenzo Colitti
8c93a76901 Merge changes Idfb5e149,Ia52b24c5
* changes:
  Stop using NetworkState internally in ConnectivityService.
  Isolate an ad-hoc legacy API codepath.
2021-03-03 05:35:28 +00:00
Sarah Chin
e97855c10f APIs for 5G slicing
Create TrafficDescriptor class
Create new APN ENTERPRISE
Update setupDataCall and DataCallResponse to take TrafficDescriptor and
matchAllRuleAllowed
Move ApnTypes from Annotation to ApnSetting

Bug: 179312227
Test: atest FrameworksTelephonyTests
Change-Id: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3
Merged-In: I7433976bfe25bcb2af85ffb9338959cbcc9f42f3
2021-03-03 14:16:21 +09:00
Yo Chiang
0fb5c3f306 Merge "DSUService: stopSelf() only if no ongoing installation" 2021-03-03 05:11:10 +00:00
Chilun Huang
c8677e4d05 Merge "Add ownership for ConfigurationController" 2021-03-03 03:41:39 +00:00
Andy Hung
2c27a78902 Merge "Add AudioMetadata keys related to active audio presentation" 2021-03-03 02:37:13 +00:00
Paul Hu
56b1b24940 Merge "Replace ConnectivityManager hidden symbols on SettingsLib" 2021-03-03 02:15:22 +00:00
Frank Li
f2781e9b3c Merge "[REIP01]Remove the IP connectivty metrics" 2021-03-03 01:28:31 +00:00
Paul Hu
a476ef4d57 Merge "Use IDnsResolverUnsolicitedEventListener" 2021-03-03 01:08:27 +00:00
Paul Hu
18a60acfdf Merge "Implement Settings#checkAndNoteChangeNetworkStateOperation on CS" 2021-03-03 01:07:20 +00:00
Brad Ebinger
ded80f3e33 Move illegal state detection in stub classes to warning
In order to increase stability, move *ImplBase listeners to warning for
now until we can find the source of the error.

Fixes: 179217608
Test: manual; kill phone process
Merged-In: If1813ed6c82b778018d61691018604b6891ff34e
Change-Id: If1813ed6c82b778018d61691018604b6891ff34e
2021-03-03 00:59:27 +00:00
Hall Liu
bff8389872 Merge "Expose ApnSetting#TYPE_*_STRING constants" 2021-03-02 23:20:15 +00:00
Hall Liu
b8cc532986 Merge "Expose the carrier signaling broadcasts" 2021-03-02 22:54:18 +00:00
Treehugger Robot
1e8b0527b5 Merge "Add QoS filter matching and unit tests" 2021-03-02 22:39:09 +00:00
Hall Liu
39087a439e Expose the carrier signaling broadcasts
Expose broadcasts for communicating certain changes in state between
Telephony and carrier apps.

Implement a backward-compatibility layer to support carrier apps
targeting <=R that are listening to the old hidden broadcasts.

Fixes: 173050428
Test: atest CarrierSignalTest CarrierSignalAgentTest
Change-Id: I15d032ee1e31d9be847c2f084161f8555c8172c1
Merged-In: I15d032ee1e31d9be847c2f084161f8555c8172c1
2021-03-02 13:38:53 -08:00
Tyler Gunn
c90335033b Merge "CallDiagnosticService API" 2021-03-02 21:33:02 +00:00
Jayachandran C
82984a8ca1 Add QoS filter matching and unit tests
Bug: 158315614
Test: atest com.android.internal.telephony.dataconnection.QosCallbackTrackerTest

Merged-In: I7d6d66eba5612182703826b60b4d735230572eea
Change-Id: I7d6d66eba5612182703826b60b4d735230572eea
2021-03-02 13:31:26 -08:00
Hall Liu
dee1a5ad8c Expose ApnSetting#TYPE_*_STRING constants
Expose these string representations of APN types as SystemApi, and add
utility methods to convert between these and their integer equivalents.

Fixes: 173133122
Test: atest ApnSettingTest TelephonyRegistryTest
Change-Id: I8095ebc4f766be52042eec1c8ee043bf2e2dabfb
Merged-In: I8095ebc4f766be52042eec1c8ee043bf2e2dabfb
2021-03-02 13:25:47 -08:00
Andy Hung
1e21d8530b Merge "AudioTrack: Add TunerConfiguration.CONTENT_ID_NONE" 2021-03-02 20:07:50 +00:00
Evan Severson
391145ab85 Merge "Update permissions OWNERS files" 2021-03-02 19:46:59 +00:00
Treehugger Robot
61ff46fee0 Merge "add to owners" 2021-03-02 19:27:46 +00:00
Hui Wang
a340c35a86 Merge "Notify rcs config as needed when RCS service ready" 2021-03-02 19:20:38 +00:00
Hui Wang
3727cc1834 Merge "Support telephoy command to set test mode for RCS single registration" 2021-03-02 19:20:38 +00:00
Jeff Sharkey
41a4f1e44c Merge "Add to owners" 2021-03-02 18:55:23 +00:00
Todd Kennedy
27cc2cecda Add to owners
Change-Id: Ib4f60234f2633f954ab86f7dbf6c21439ee5b24d
2021-03-02 18:38:57 +00:00
Evan Severson
13fd14252b Update permissions OWNERS files
Test: None
Change-Id: I039bf12c65b0cd509a6772d89b96821b98ff318c
2021-03-02 10:37:41 -08:00
Sally Yuen
d379746bb9 Merge "Add OWNERS for A11yInteractionController and accessibility core tests" 2021-03-02 18:25:16 +00:00
Yan Yan
8c7f74fa35 Merge "Support new IpSecAlgorithm AUTH_AES_CMAC" 2021-03-02 18:24:27 +00:00
Abhijeet Kaur
67b0a15695 Update mount values to be consistent with IVold.aidl
Bug: 148454884
Test: builds
Change-Id: I860621379b415f268e3db4a14ebdd7a732fe9dab
2021-03-02 17:52:08 +00:00
Sally
ce20fed9b5 Add OWNERS for A11yInteractionController and accessibility core tests
Bug: n/a
Test: n/a
Change-Id: Ie20914b3be604e9908ea25746575b041682ee1c7
2021-03-02 17:51:26 +00:00
Jeff Sharkey
b0a8269167 Merge "Create new directory to move ServiceWatcher into" 2021-03-02 16:41:49 +00:00
Abhijeet Kaur
14f35d5f2d Merge "Removed unused mount mode constants" 2021-03-02 16:37:30 +00:00
Soonil Nagarkar
b5d0dfc47b Create new directory to move ServiceWatcher into
Test: n/a
Change-Id: I0bfb68976025b1e9bbd56e038ed981db19bc6c4c
2021-03-02 08:14:52 -08:00
Treehugger Robot
4dd42cdd5f Merge "[FUI09] Expose NetworkStateSnapshot as system API" 2021-03-02 16:08:03 +00:00
Lorenzo Colitti
1881ae0342 Stop using NetworkState internally in ConnectivityService.
NetworkState is used by many methods that take or return legacy
network types. It is used because it contains most of the state
related to a network.

This code is not easy to follow and is more expensive than it
needs to be: most of the methods that construct a NetworkState
only really need one of its members (e.g., LinkProperties, or
NetworkInfo), but constructing a NetworkState requires making
defensive copies of all its other members as well.

- Instead of using NetworkState, use NetworkAgentInfo, which
  already contains all the same data.
- Replace calls to getUnfilteredActiveNetworkState with calls to
  getNetworkAgentInfoForUid. When getUnfilteredActiveNetworkState
  returned NetworkState.EMPTY, return a null nai, which causes
  any caller to see return null LinkProperties/NetworkInfo/etc.
- Rename filterNetworkStateForUid to getFilteredNetworkInfo,
  because that's the only thing it actually filters.
- Rename getFilteredNetworkInfo to getFilteredNetworkInfoForType
  to avoid having two methods with the same name perform two
  different operations. That method was only introduced recently
  in aosp/1552503, so it's probably fine to rename it.

Bug: 174123988
Test: passes existing ConnectivityServiceTest
Change-Id: Idfb5e149967266a442b268de6f13a521884dbb8f
2021-03-03 01:02:45 +09:00
Lorenzo Colitti
2d23f53029 Isolate an ad-hoc legacy API codepath.
The legacy API getNetworkInfo(int type) is expected to return
NetworkInfo objects for all network types supported by the device
even when those network types are not connected.

This requires a lot of fabrication because all the data
structures in ConnectivityService store information about
connected networks, not networks that don't exist.

Worse, the current behaviour is to return BLOCKED instead of
DISCONNECTED if background data is restricted. This obviously
makes no sense, because a disconnected network cannot be
blocked, and because if that network type did connect and was
unmetered (e.g., Wi-Fi), it would no longer be BLOCKED.
This complicates the code, forcing several methods to deal with
a special case of null NetworkCapabilities, no NetworkAgentInfo,
etc.

Fix this by isolating this outlandish behaviour to its own
method. This allows the main codepaths not to have to support
this unusual and not very useful edge case.

Bug: 174123988
Test: pure refactoring, passes existing tests
Change-Id: Ia52b24c59024c8f6e63e584b864e0225cb572090
2021-03-03 01:02:35 +09:00
junyulai
604fd08ca8 [FUI09] Expose NetworkStateSnapshot as system API
This is needed by NetworkStatsService and
NetworkPolicyManagerService to utilize the snapshots of
information of networks that grabbed from ConnectivityService.

Test: atest FrameworksNetTests NetworkPolicyManagerServiceTest
Bug: 174123988
Change-Id: I7e974ef7b23ba9ba6ee775eed9899b0c0e2eca55
2021-03-02 23:09:16 +08:00
Treehugger Robot
60faefffe9 Merge "[FUI17] Migrate NetworkStatsService to use NetworkStateSnapshot" 2021-03-02 13:21:32 +00:00