Commit Graph

10497 Commits

Author SHA1 Message Date
TreeHugger Robot
b9e67709b2 Merge "Add config to use lower of IPv4/IPv6 MTU values" into rvc-qpr-dev am: 85f5802bec am: e90e799830
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12539769

Change-Id: I541af562a596e36332b8476ae6f4232968f55f88
2020-09-25 21:55:06 +00:00
TreeHugger Robot
e90e799830 Merge "Add config to use lower of IPv4/IPv6 MTU values" into rvc-qpr-dev am: 85f5802bec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12539769

Change-Id: I82b478f4aef060c7664c6d58e6abb9d6a97a0fea
2020-09-25 21:17:16 +00:00
TreeHugger Robot
85f5802bec Merge "Add config to use lower of IPv4/IPv6 MTU values" into rvc-qpr-dev 2020-09-25 21:01:01 +00:00
Jack Yu
95ec81189d Merge "Support handover retry" am: 0c47ab0656 am: 5f6c9d224f am: 24fe634048 am: db47938c2d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436232

Change-Id: Ia7f589101bbdfab0f1c460a04b3b56eb2cf723d3
2020-09-25 18:51:33 +00:00
TreeHugger Robot
504b2dd50a Merge "Fix unique identifiers best practices links in device ID API docs" into rvc-qpr-dev 2020-09-25 17:08:01 +00:00
Jack Yu
0c47ab0656 Merge "Support handover retry" 2020-09-25 15:59:29 +00:00
Treehugger Robot
ec0846ea9e Merge "Fix unique identifiers best practices links in device ID API docs" am: 8b6aa74d6b am: 1d8a35f66e am: 33035121fd am: 3c6a3316b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438023

Change-Id: I966b630eb1635094ab12eebe3c34f994579bcbc5
2020-09-25 07:46:39 +00:00
Jack Yu
44d5bbb033 Merge changes from topics "pdcs_builder", "pdcs_cleanup", "refactor_pdcs", "remove_apn_name_types", "transport_type_and_id" am: 24f4fce2df am: 61fa631cdd am: 5a7ce86bc2 am: 2bccbbd121
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438018

Change-Id: I3c669f6a4159b1c699b9164b1672f0fc56204ffc
2020-09-25 07:46:05 +00:00
Jack Yu
faed183a3e Refactored precise data connection state am: 4f2a849e25 am: fe0c690850 am: f35a5d5a29 am: 74c958e231
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436356

Change-Id: Ia5187ba67493581a1c99caebe20edd8c1d9374ad
2020-09-25 07:46:00 +00:00
Jack Yu
6f70ccb3b4 Added transport type and id in precise data connection state am: b5d6274622 am: dfd397ba5f am: 2ba154c8c9 am: 88aa79bce4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436355

Change-Id: I2303ed7326df815eb87a2858ff912a5085e34c03
2020-09-25 07:45:55 +00:00
Jack Yu
e29f23ae39 Removed APN name and types from PreciseDataConnectionState am: 7c4b48f0e5 am: def7634066 am: 544cea25cc am: 79dffe0f87
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436354

Change-Id: I9955f8ae53b71525fb9e6a08b1ec11007b5f671a
2020-09-25 07:45:50 +00:00
Jack Yu
68223b0b17 Added builder for PreciseDataConnectionState am: 47262c052b am: 8ada8a5ccf am: c0f7cf704c am: 4b9c5e820c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436353

Change-Id: Iab5d4145ce5c7762e338f0f02e910046e4ba0fe3
2020-09-25 07:45:45 +00:00
Nathan Harold
672c48d27c Remove Deprecated-At-Birth APIs from PDCS am: bf5158f9a0 am: 0f1829eef2 am: 809f6a5fa4 am: 46a3f55679
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436352

Change-Id: I6fbd28b3501acf63774268c2cbe7020c91ee8b80
2020-09-25 07:45:39 +00:00
Daniel Bright
3d07970957 Merge "Add Handover Failure Mode to Radio Hal" 2020-09-25 05:32:19 +00:00
Treehugger Robot
8b6aa74d6b Merge "Fix unique identifiers best practices links in device ID API docs" 2020-09-25 04:32:42 +00:00
Jack Yu
dcb4d39b18 Support handover retry
The data service now can control whether retry
handover or not.

Fix: 160105644
Test: FrameworksTelephonyTests
Merged-In: Ib6fd6a4d7cf242a4c17337607c188a07188df9e5
Change-Id: Ib6fd6a4d7cf242a4c17337607c188a07188df9e5
(cherry picked from commit df75e3082e)
2020-09-24 21:31:38 -07:00
Michael Groover
a73539128d Fix unique identifiers best practices links in device ID API docs
Bug: 168447060
Test: m docs
Change-Id: I483e0cf4915862254461200deb5d3dc7302bafb4
Merged-In: I483e0cf4915862254461200deb5d3dc7302bafb4
2020-09-24 17:36:32 -07:00
Jack Yu
152e11a13d Added hashcode for ApnSetting class
Without hashCode, ApnSetting can't be used as a key in the
map.

Fix: 162663245
Test: Manual
Merged-In: I9445ec854709996c80830e4c8c498e664f1e4f9c
Change-Id: I9445ec854709996c80830e4c8c498e664f1e4f9c
(cherry picked from commit fe59b7268f)
2020-09-24 15:26:59 -07:00
Michael Groover
1aef206a3a Fix unique identifiers best practices links in device ID API docs
Bug: 168447060
Test: m docs
Change-Id: I483e0cf4915862254461200deb5d3dc7302bafb4
Merged-In: I483e0cf4915862254461200deb5d3dc7302bafb4
2020-09-24 19:56:04 +00:00
Michael Groover
11be5c6214 Merge "Fix unique identifiers best practices links in device ID API docs" 2020-09-24 18:35:36 +00:00
Jack Yu
bcd38eeb35 Merge "Create Central Version of dataStateToString()" am: 8abad0504e am: c421bfbbb3 am: cebf61cc60 am: c8716e077b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436522

Change-Id: I02ec3239c017d2623e5576e63a744961fc2b7adb
2020-09-24 17:37:47 +00:00
Jack Yu
4f2a849e25 Refactored precise data connection state
Instead of triggering the data connection state changed
event from outside, now the event is triggering from
DataConnection. Whenever detecting data connection
state changes, the event will be triggered. This significantly
reduced the unnecessary redundant events sent to telephony registry,
even though it has a duplicate detection mechanism.

This are also two behavioral changes.

1. Previously if a data connection supports multiple APN types,
there will be multiple data connection state changed event for
each APN type. Now there is only one. The listener should use
PreciseDataConnectionState.getApnSetting().getApnTypeBitmask()
to check which APN types this data connection supports.

2. If setup data call fails before a data connection instance
can be created, there won't be any event with fail cause.

Fix: 161572838
Test: FrameworksTelephonyTests and manual
Merged-In: I9723d5284c2a8fbae9f63179dc30ddc42da1d0fc
Change-Id: I9723d5284c2a8fbae9f63179dc30ddc42da1d0fc
(cherry picked from commit 34a09a4cbd)
2020-09-24 09:57:50 -07:00
Jack Yu
b5d6274622 Added transport type and id in precise data connection state
Added the transport type in precise data connection state. This
would be useful for IWLAN, MAPCON, and 5G development work. Also
added id for listener to keep tracking the same data connection
state.

Bug: 161572838
Test: FrameworksTelephonyTests
Merged-In: I5a14610bf072a64b534227fb715ebec58716bce0
Change-Id: I5a14610bf072a64b534227fb715ebec58716bce0
(cherry picked from commit ec5093d4d7)
2020-09-24 09:36:15 -07:00
Jack Yu
7c4b48f0e5 Removed APN name and types from PreciseDataConnectionState
The APN name and type bitmasks should come from APN setting.
Also fixed a regression caused by ag/9931487 that the APN
field in precise data connection state is changed to APN type in
string, instead of the APN name.

Bug: 161572838
Test: FrameworksTelephonyTests
Merged-In: If19980be29c13c783f1964d3fce9505a08570f7e
Change-Id: If19980be29c13c783f1964d3fce9505a08570f7e
(cherry picked from commit c42172ece7)
2020-09-24 09:36:15 -07:00
Jack Yu
47262c052b Added builder for PreciseDataConnectionState
Added builder for PreciseDataConnectionState. No functionality
changed.

Bug: 161572838
Test: FrameworksTelephonyTests
Merged-In: I9d2d4cc3d717878d9246989f7a88bedc0805d86e
Change-Id: I9d2d4cc3d717878d9246989f7a88bedc0805d86e
(cherry picked from commit 9919a2925e)
2020-09-24 09:36:15 -07:00
Nathan Harold
bf5158f9a0 Remove Deprecated-At-Birth APIs from PDCS
Two APIs were added as @SystemApi and then @Deprecated within
the same API level (RVC). These methods were never exposed
publicly, and instead were replaced with more-appropriate
named methods that were added to the public API. As such they
were not fully deleted in RVC but were never exposed and expected
to be deleted following SDK finalization. This CL does precisely
that - removes all traces of these methods, as per the will of
the API Council.

-Remove #getDataConnectionLinkProperties()
-Remove #getDataConnectionNetworkType()

Bug: 152787887
Test: make update-api && make
Merged-In: I89463b0bd641e9316f90fe4f535d326f6e74a061
Change-Id: I89463b0bd641e9316f90fe4f535d326f6e74a061
(cherry picked from commit 3a47293cb4)
2020-09-24 09:36:15 -07:00
Nathan Harold
42f5c3e326 Create Central Version of dataStateToString()
There are currently two slightly-different copies of
dataStateToString().
-TelephonyManager#dataStateToString()
-TelephonyRegistry#dataStateToString()

The TelephonyRegistry version doesn't have a string for the
DISCONNECTING state. In order to have a single copy that can
be accessed from TelephonyRegistry (not mainline) and TelephonyManager
(mainline), move both copies to TelephonyUtils.

Bug: 149717408
Test: make; atest TelephonyRegistryTest
Merged-In: I36945a8a432f7b4f0c449f7414996372e852b5b8
Change-Id: I36945a8a432f7b4f0c449f7414996372e852b5b8
(cherry picked from commit b640b1c62b)
2020-09-23 21:47:00 -07:00
Sarah Chin
dc7260ad33 Add config to use lower of IPv4/IPv6 MTU values
Test: atest DataConnectionTest
Bug: 162285224
Change-Id: Ic0afdfabec3a13a4a1d3fd34e7e02d4df3a06ea5
2020-09-23 02:08:43 -07:00
Hall Liu
108bfdc042 Merge "Expose and update the call forward/waiting APIs" 2020-09-22 01:10:47 +00:00
Sarah Chin
fc154471f6 Merge "Add ncid to CellLocation in CellIdentityNr" into rvc-qpr-dev am: c8eaff3037 am: 200a444461
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12469801

Change-Id: Ib6505c6ad261ff8f38d98df90af5a74b8a003d51
2020-09-22 00:32:55 +00:00
Sarah Chin
200a444461 Merge "Add ncid to CellLocation in CellIdentityNr" into rvc-qpr-dev am: c8eaff3037
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12469801

Change-Id: I2927aafb6d15fa21b01a03d2695dbcc95c4c50d7
2020-09-22 00:31:33 +00:00
Sarah Chin
c8eaff3037 Merge "Add ncid to CellLocation in CellIdentityNr" into rvc-qpr-dev 2020-09-21 23:44:07 +00:00
Michael Groover
17b4bbd270 Fix unique identifiers best practices links in device ID API docs
Bug: 168447060
Test: m docs
Change-Id: I483e0cf4915862254461200deb5d3dc7302bafb4
2020-09-21 15:27:52 -07:00
Hall Liu
32634e1454 Expose and update the call forward/waiting APIs
Expose the call forwarding and call waiting APIs, update their
documentation, and convert them to async APIs due to their dependence on
network communication.

Fixes: 168655869
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: Ic20bc99314c8538a3f75f6af9c37bc4d30781825
2020-09-21 13:49:25 -07:00
Sarah Chin
69e53926f2 Add ncid to CellLocation in CellIdentityNr
Update GsmCellLocation documentation for NR case. Since the NR cell ID
is 36 bits and can't fit into the 32-bit field in GsmCellLocation,
return -1 for the CID.

Test: atest CellIdentityNrTest
Bug: 166514842
Change-Id: Ib894e83900b590c11221502ad039781cea5b571c
2020-09-21 20:22:08 +00:00
Brad Ebinger
dfe1e827c9 Merge "Fix a typo in service class" am: 7b38b459f3 am: 7420236576 am: 55895d9414 am: 454939b8b5 am: f18a386742
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1429089

Change-Id: I46d385261fc11652253eaddb9dd459e4d39d4f6a
2020-09-21 08:52:25 +00:00
Brad Ebinger
f18a386742 Merge "Fix a typo in service class" am: 7b38b459f3 am: 7420236576 am: 55895d9414 am: 454939b8b5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1429089

Change-Id: I8cd1f04ad605b092b36c2882235e95293b265c91
2020-09-19 08:07:59 +00:00
Brad Ebinger
454939b8b5 Merge "Fix a typo in service class" am: 7b38b459f3 am: 7420236576 am: 55895d9414
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1429089

Change-Id: I7025ec64f5c9ddb747d9b872304c083a83c6118c
2020-09-19 07:05:08 +00:00
Amit Mahajan
4f59bdded5 Data connection for carrier specific APN
Implement the following features to support carrier network connection.
This commit is to define the carrier config for each features.

1. Sets default preferred APN
2. Uses dun APN when using Preset APN in roaming network

Also, fixed that to use only APNs with the same set id as preferred
APN.

Test: Manual
Bug: 147969062
Merged-in: If1e6d2bf58de39c22caa901fcd90fb11f104d900
Change-Id: If1e6d2bf58de39c22caa901fcd90fb11f104d900
(cherry picked from commit b9beb0d1afda6327b1c7645ac20a016f08e5744e)
2020-09-18 22:34:52 +00:00
Amit Mahajan
47a1e949c3 Merge "Data connection for carrier specific APN" 2020-09-18 20:05:25 +00:00
Brad Ebinger
7b38b459f3 Merge "Fix a typo in service class" 2020-09-18 18:58:10 +00:00
Amit Mahajan
5f99e1b8fd Merge "Data connection for carrier specific APN" into rvc-d1-dev-plus-aosp am: e2b212e94e am: e662938fdf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12624999

Change-Id: I83ecb4caea6b66b8c3e08beda3fb70598132707e
2020-09-18 09:25:40 +00:00
Amit Mahajan
e662938fdf Merge "Data connection for carrier specific APN" into rvc-d1-dev-plus-aosp am: e2b212e94e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12624999

Change-Id: Id017dddb5ff8f10d8bacf9e55a8dbca515309a0f
2020-09-18 08:54:24 +00:00
Masaho Nishikawa
52052c8147 Data connection for carrier specific APN
Implement the following features to support carrier network connection.
This commit is to define the carrier config for each features.

1. Sets default preferred APN
2. Uses dun APN when using Preset APN in roaming network

Also, fixed that to use only APNs with the same set id as preferred
APN.

Test: Manual
Bug: 147969062
Merged-in: If1e6d2bf58de39c22caa901fcd90fb11f104d900
Change-Id: If1e6d2bf58de39c22caa901fcd90fb11f104d900
2020-09-18 07:36:28 +00:00
Amit Mahajan
e2b212e94e Merge "Data connection for carrier specific APN" into rvc-d1-dev-plus-aosp 2020-09-18 07:35:46 +00:00
Brad Ebinger
934de361de Merge "Customize the service class for Call barring" am: ce872e9898 am: cdbb2d7a40 am: c54ab73ef9 am: 8248366af0 am: 643dc6b82f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404668

Change-Id: I6e2e8d40fe3a2d58daa458c4531c9e5972fa9112
2020-09-18 06:07:33 +00:00
Brad Ebinger
ed08adf82b Merge "Decouple the ImsFeature status listener from creating the feature" am: d259885f8a am: 1ee8c01f2f am: 16288d636f am: 5087fa7156 am: 90281441a3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427468

Change-Id: I6c4587230b49e5eda10fa5cba0c50edc86db0ea4
2020-09-18 05:12:07 +00:00
Brad Ebinger
643dc6b82f Merge "Customize the service class for Call barring" am: ce872e9898 am: cdbb2d7a40 am: c54ab73ef9 am: 8248366af0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404668

Change-Id: Ib41cdfcf5775dd91595c5fe20052826c7010f5d1
2020-09-18 00:32:57 +00:00
Brad Ebinger
90281441a3 Merge "Decouple the ImsFeature status listener from creating the feature" am: d259885f8a am: 1ee8c01f2f am: 16288d636f am: 5087fa7156
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427468

Change-Id: I0182325b8e4471e6cd875c7ae9691f6099a3bfa2
2020-09-17 23:57:04 +00:00
Brad Ebinger
2eed386624 Customize the service class for Call barring
Add a new carrier config that changes the service class is used for Call
barring settings.

CP from aosp/1404668

Test: manual
Bug: 161772958

Merged-In: Ibce22d0d340ce648c0b6df411266d1c4fe537013
Change-Id: Ibce22d0d340ce648c0b6df411266d1c4fe537013
2020-09-17 14:17:35 -07:00