Commit Graph

10657 Commits

Author SHA1 Message Date
Alex Lin
f22d8eac6f Merge "Add public API for EuiccService log dump" 2020-02-04 22:26:53 +00:00
Jack Yu
eba90e264a Added data coding scheme and location check time support
AT&T requires showing data coding scheme, location check
time, whether shown to the user or not in the test menu.
Expanded database to support this.

Bug: 144152683
Test: Manully sending fake messages and verified database
Merged-In: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
Change-Id: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
(cherry picked from commit 641db9a36a)
2020-02-04 10:39:52 -08:00
Jack Yu
de1fa3078c Merge "Move GsmSmsCbMessage to CBReceiver test app" 2020-02-04 17:04:11 +00:00
Chalard Jean
f734372173 Merge "Add setSubscriptionOverride() to system API" 2020-02-04 07:07:57 +00:00
Jordan Liu
4583717145 Move GsmSmsCbMessage to CBReceiver test app
After removing platform handling of cell broadcasts (in favor of
CellBroadcastService module) the GsmSmsCbMessage class is only used by
CellBroadcastReceiver test app, so move the class there.

Bug: 135956699
Test: manual
Merged-In: Ia1d19356c34f9a13638c10d1c1b9e53c6b69fddd
Change-Id: Ia1d19356c34f9a13638c10d1c1b9e53c6b69fddd
(cherry picked from commit 803c885513)
2020-02-03 22:45:46 -08:00
Betty Chang
442a1ca027 Merge "[Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager" 2020-02-04 02:44:15 +00:00
Jordan Liu
5a7efe50ec Merge "Create new context with new resources" 2020-02-03 21:39:30 +00:00
Jordan Liu
0e161088fd Create new context with new resources
The old implementation of this function had the unintended side effect
of modifying the default configuration for the context which the caller
passed in. This CL avoids that by creating a new context with the new
configuration.

Test: atest SubscriptionControllerTest#testGetResourcesForSubId
Bug: 146481715
Change-Id: I6539817caa67e1100e50018fa0186993a1f56ccb
Merged-In: I6539817caa67e1100e50018fa0186993a1f56ccb
2020-02-03 20:52:09 +00:00
changbetty
0ae6355421 [Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager
Bug: 146309719
Test: make
Change-Id: Ibb68cd4e6a6ba49c56b313380ddf16734813459b
Merged-In: Ibb68cd4e6a6ba49c56b313380ddf16734813459b
2020-02-03 19:47:22 +08:00
Aaron Huang
79f52ea525 Add setSubscriptionOverride() to system API
Add new API setSubscriptionOverride() in NetworkPolicyManager
and rename constants OVERRIDE_* to SUBSCRIPTION_OVERRIDE_*.
Make them @SystemApi for mainline support.

Bug: 138306002
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests

Change-Id: I56c777aa66d6f455695f133f9889979c13cd1bc8
Merged-In: I56c777aa66d6f455695f133f9889979c13cd1bc8
2020-02-03 19:26:42 +08:00
Alex Lin
d0c492f00f Add public API for EuiccService log dump
Add public APi to EuiccService which allows the connected LPA to dump
out the logs when a bug report is triggered.
Bug: 62881779
Test: manually tested by extracting bug report to see if the logs are
present and atest EuiccServiceTest

Change-Id: I0869b95d12ab87a5e2a255015549191040d9daa7
Merged-In: I0869b95d12ab87a5e2a255015549191040d9daa7
2020-01-31 14:05:58 -08:00
Mingming Cai
62eb925376 Merge "Comments for getNetworkRegistrationInfo with multiple domains" 2020-01-31 20:49:24 +00:00
Shuo Qian
5aa9de8cf1 Merge "Create the ID for each gating key. Modify the names and descriptions per Compat team requirement." 2020-01-31 20:08:33 +00:00
Shi Lu
ec5c5b57ef Merge "API Review: ServiceState.isSearching documentation" 2020-01-31 18:30:59 +00:00
sqian
7801d982bd Create the ID for each gating key.
Modify the names and descriptions per Compat team requirement.

Test: Treehugger
Bug: 148534348
Bug: 148535736
Bug: 147600208
Change-Id: Id9d0366714aa4ecb240d2b9e726d35a474879325
Merged-In: Id9d0366714aa4ecb240d2b9e726d35a474879325
(cherry picked from commit b32797b202
2020-01-30 17:59:02 -08:00
Mingming Cai
a42253be8c Comments for getNetworkRegistrationInfo with multiple domains
Bug: 147917681
Test: make
Change-Id: Icba1814ceba1ef87c1c2710fe5fef65e00a1cec1
2020-01-30 17:25:28 -08:00
Meng Wang
2b1b1bb22d Merge "Fix import of Rlog - generated by formatting tool" 2020-01-31 00:59:09 +00:00
Rambo Wang
c6c0ca613b Add Nullability Annotations and verification to CellIdentity
Bug: 148177166
Test: atest FrameworksTelephonyTests
Change-Id: Ie98db2ce393a76644a4773045eafc28ce6f4a4cb
Merged-In: Ie98db2ce393a76644a4773045eafc28ce6f4a4cb
(cherry picked from commit 33f62a071c)
2020-01-31 00:10:29 +00:00
Meng Wang
e3387ef9c4 Fix import of Rlog - generated by formatting tool
Test: make
Merged-In: Ibe36c6d0fe8bfb6277d7b9034af8dbf45ce2f716
Change-Id: Ibe36c6d0fe8bfb6277d7b9034af8dbf45ce2f716
2020-01-30 12:38:32 -08:00
sqian
de188ac200 Support Call Forwarding and Call Waiting APIs for voice call.
Allows system apps to get/set call forwarding configuration including
 reason, status, number and timeout.

Allows system apps to get/set the status for call waiting function;
Call waiting function enables the waiting for the incoming call when
 it reaches the user who is busy to make another call and allows users
 to decide whether to switch to the incoming call.

Test: Cts; Treehugger; https://paste.googleplex.com/5810435984982016
Bug: 147920077
Change-Id: Iadeea607749c67209df8cb1313f8b134df0a5c4a
Merged-In: Iadeea607749c67209df8cb1313f8b134df0a5c4a
(cherry picked from commit ce96e26c27)
2020-01-29 14:59:27 -08:00
Sarah Chin
6b86cf7884 Merge "Manual network selection by RAN type" 2020-01-29 21:36:31 +00:00
shilu
814f1899eb API Review: ServiceState.isSearching documentation
Bug: 148285799
Test: make & make doc-comment-check-docs
Change-Id: I61fe6f22be98463e5579645998f5ebc863f5f4a8
2020-01-29 09:56:50 -08:00
Sooraj Sasindran
cd70c935b3 Merge changes from topic "CherryPickMainline"
* changes:
  make sim_colors a system config
  convert hidden configs to public
  Add back off timer configs as carrier config
  Carrier config to switch data if primary is OOS
  Do not use hidden enabledSetting
  Do not use hidden putIntForUser
  Fix testNetworkScanRequestParcel_Parcel CTS
  Do not use hidden broadcast API of RemoteCallbackList
  Make requestModemActivityInfo a system api
  Remove usage of hidden Parcel APIs
  Do not use hidden withCleanCallingIdentity
  Do not use hidden isPrivilegedApp
2020-01-29 17:34:53 +00:00
Sarah Chin
bae34cb9f9 Merge "Added multi-band support" 2020-01-29 16:45:09 +00:00
Sarah Chin
b922a13760 Merge "PhoneCapability cleanup" 2020-01-29 15:56:09 +00:00
Sarah Chin
6c1ee55b63 Merge "API changes for IPv6 MTU support" 2020-01-29 15:56:09 +00:00
Sarah Chin
7b2d5183dd Merge changes from topics "multi-plmn", "nr_band"
* changes:
  Added NR band support
  Multi-Plmn and CSG Support For CellInfo
2020-01-29 15:56:09 +00:00
Sarah Chin
ade26cd6eb API changes for IPv6 MTU support
Change mtu->mtuV4 and add mtuV6 for DataProfile and DataCallResult
Add mtu to RouteInfo and update test

Test: atest FrameworksTelephonyTests
Bug: 146668814
Change-Id: I43c7e088e46e40f38d8114548e0fc4e39d7f91cb
Merged-In: I43c7e088e46e40f38d8114548e0fc4e39d7f91cb
2020-01-30 00:17:19 +09:00
Sarah Chin
b739deddc6 Merge changes from topics "phone_cap", "tdscdma"
* changes:
  Modify PhoneCapabilities for device capabilities
  Added TD-SCDMA bands for network scanning
2020-01-28 17:26:11 +00:00
Sooraj Sasindran
cc2f579438 convert hidden configs to public
convert hidden configs to public
Test: these are existing configs, hence with build could
      confirm if they are accessible
Bug: 143969391

Merged-In: I722e0bfe587bc21e18a6cfea2de3df0efc1018c9
Change-Id: I722e0bfe587bc21e18a6cfea2de3df0efc1018c9
2020-01-27 22:03:54 -08:00
Sooraj Sasindran
269b3331b8 Add back off timer configs as carrier config
Add time to determine as ping pong as a carrier config
Add max back off hysteresis time as a carrier config

Test: build
Bug: 143578171
Merged-In: I599aa88c4a8f29ca62aaa2948cc5c7f292b6a827
Change-Id: I599aa88c4a8f29ca62aaa2948cc5c7f292b6a827
2020-01-27 22:03:54 -08:00
Sooraj Sasindran
0d12117ebb Carrier config to switch data if primary is OOS
Carrier config to switch data to primary from cbrs
if primary is OOS
Carrier config to specify back off time from cbrs
to primary

Bug: 143578171
Test: make
Merged-In: I2fbec74b7f00dcb751e38b0f5a336fea8370cbee
Change-Id: I2fbec74b7f00dcb751e38b0f5a336fea8370cbee
2020-01-27 22:03:54 -08:00
Sooraj Sasindran
c834e855cb Fix testNetworkScanRequestParcel_Parcel CTS
Allow mSpecifiers to be null in case the length of the specifier array
is less than null

Bug: 146363437
Test: Ran CTS

cts-tradefed run cts -m CtsCarrierApiTestCases --test android.carrierapi.cts.NetworkScanApiTest

Merged-In: Iad7d91d8813415bbd2f3b6cad02120e59441e08a
Change-Id: Iad7d91d8813415bbd2f3b6cad02120e59441e08a
2020-01-27 22:03:54 -08:00
Sooraj Sasindran
02f70c7476 Do not use hidden broadcast API of RemoteCallbackList
Do not use hidden broadcast API of RemoteCallbackList
Bug: 140908357
Bug: 146349977
Test: Build
Merged-In: I5fa9b0f36f18c6073ad20867f6bf62d573f823b8
Change-Id: I5fa9b0f36f18c6073ad20867f6bf62d573f823b8
2020-01-27 22:03:54 -08:00
Sooraj Sasindran
c1fbe4dd39 Make requestModemActivityInfo a system api
Make requestModemActivityInfo a system api

Bug: 140908357
Test: Build
Merged-In: Id3db96212af713de09ef761629db86ecd02cfe8a
Change-Id: Id3db96212af713de09ef761629db86ecd02cfe8a
2020-01-27 22:03:53 -08:00
Sooraj Sasindran
2f45d6dcc0 Remove usage of hidden Parcel APIs
Remove usage of hidden Parcel APIs

Bug: 140908357
Test: Build
Merged-In: Iccc072e03f05141370c4ad5cc49cb8e25929fcac
Change-Id: Iccc072e03f05141370c4ad5cc49cb8e25929fcac
2020-01-27 22:03:53 -08:00
Sooraj Sasindran
7998fbc67e Do not use hidden withCleanCallingIdentity
Do not use hidden withCleanCallingIdentity

Bug: 140908357
Test: Build
Merged-In: Ic6cbd587c009df973d4602ff21e5b8a9c27293ff
Change-Id: Ic6cbd587c009df973d4602ff21e5b8a9c27293ff
2020-01-27 22:03:47 -08:00
Jack Yu
3735121d3e Added multi-band support
One cell could have multiple bands assigned.
One frequency could be shared by multiple bands
because they have overlapping.

Test: Telephony sanity tests.
Bug: 131061889
Change-Id: I8d5d828ec142c74428388a6d3f11cdf0842e03b9
Merged-In: I8d5d828ec142c74428388a6d3f11cdf0842e03b9
2020-01-27 17:57:33 -08:00
Shuo Qian
fb9adf0d1e Merge "Make ModemActivityInfo isValid system" 2020-01-28 01:28:15 +00:00
Sarah Chin
d2283c4067 PhoneCapability cleanup
Remove ModemInfo

Test: build
Bug: 143238191
Change-Id: I2510de0ab1ce40c8d191a17dbae7f4c33418006c
Merged-In: I2510de0ab1ce40c8d191a17dbae7f4c33418006c
2020-01-27 16:37:05 -08:00
Sarah Chin
3736427468 Manual network selection by RAN type
Support new API for setNetworkSelectionModeManual with ran parameter

Bug: 68116277
Test: atest FrameworksTelephonyTests
Change-Id: I0e8b78b1b16d4bf6a6c0f39eedc48b253ca7a810
Merged-In: I0e8b78b1b16d4bf6a6c0f39eedc48b253ca7a810
2020-01-28 00:17:14 +00:00
Shuo Qian
419caebfc9 Merge "Refactor SmsManager not to use ActivityThread hidden API in Mainline" 2020-01-27 23:47:50 +00:00
Shuo Qian
260a0aac29 Merge "Support always reporting signal strength phone state listener" 2020-01-27 23:42:28 +00:00
Treehugger Robot
d44b5d9ec5 Merge "Expose system API ACTION_SERVICE_PROVIDERS_UPDATED" 2020-01-27 23:42:12 +00:00
sqian
498cc25dc3 Make ModemActivityInfo isValid system
Make ModemActivityInfo.isValid system because
 getIdleTimeMillis(), getSleepTimeMillis(), and getReceiveTimeMillis()
 are system.

Bug: 146436760
Test: build
Change-Id: Ifc1a1853fe0b7ca143ef95fe3a1abe70e2dc70d4
Merged-In: Ifc1a1853fe0b7ca143ef95fe3a1abe70e2dc70d4
(cherry picked from commit 3349553a99)
2020-01-27 23:33:33 +00:00
Jack Yu
f8248cbab1 Added NR band support
Added band info in cell identity.

Test: Telephony sanity tests
Bug: 131061889
Change-Id: I0fb0e7e466a0188f04db595b8e417870666005ba
Merged-In: I0fb0e7e466a0188f04db595b8e417870666005ba
2020-01-27 15:28:49 -08:00
Nathan Harold
955614761c Multi-Plmn and CSG Support For CellInfo
Add CellIdentity support for HAL 1.5

-Add new constructors for HAL 1.5
-Add APIs to get additional PLMNs advertised
 by the cell beyond the first, for MOCN networks.
-Add support for CSG info in WCDMA, TD-SCDMA, and LTE

Bug: 135921133
Test: wip
Change-Id: Iffd9351d2170a496639eced2c4618819f522494c
Merged-In: Iffd9351d2170a496639eced2c4618819f522494c
2020-01-27 15:02:39 -08:00
Shuo Qian
f7de016204 Refactor SmsManager not to use ActivityThread hidden API in Mainline
Introduce a server API to get current package name to remove
 ActivityThread for Mailine

Test: Treehugger; no function change; Manual: tried to send a message to 22000,
      and observed that it pops out a notification window to ask me: "Messages
      would like to send a message to 22000, Cancel or Send?" I clicked on "Send".
      UI shows that SMS is sent successfully.
Bug: 145147528
Change-Id: I0a5ca7699c969585ea08c82ea7cafd26a73c08f9
Merged-In: I0a5ca7699c969585ea08c82ea7cafd26a73c08f9
(cherry picked from commit 24fded67fb)
2020-01-27 14:48:23 -08:00
Shuo Qian
9939a8b949 Use changeID and Compatibility.isChangeEnabled for Mainline
Test: Treehugger
Bug: 145147528
Bug: 147600208

Change-Id: I8092f4c7d3be046da337cdcbadeed89844b3aaab
Merged-In: I8092f4c7d3be046da337cdcbadeed89844b3aaab
Merged-In: I4294359fc7bcf4d739b6e01439dc47fa99999d2c
(cherry picked from commit d0c818129a)
2020-01-27 14:40:00 -08:00
sqian
6cd260243a Support always reporting signal strength phone state listener
We should not allow other stack (such as Bluetooth) to directly control
 modem indication reporting. The hidden API
 TelephonyManager.setRadioIndicationUpdateMode added before do not
 support multiple clients and do not support the case when clients'
 process die.

The new solution would be adding a new listener
 PhoneStateListener.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH and let
 telephony registry (which is running under system process) to tell
 telephony whether to always turn on signal strength update if any client
 is listening to this event.

Introduce a new system API for TelephonyRegistry
to tell Telephony module this listening mechanism.

Introduce a new permision for this function

Test: WIP (Have this CL out to try to catch up the API deadline)
Bug: 147322848

Change-Id: Iaee832c75b29d89dbc9e5c6659e1a7e89c4a467f
Merged-In: Iaee832c75b29d89dbc9e5c6659e1a7e89c4a467f
(cherry picked from commit 93642d4433)
2020-01-27 14:20:09 -08:00