Commit Graph

10642 Commits

Author SHA1 Message Date
Sarah Chin
bbe735d293 Merge "Replace IconIndex as DisplayNumber" 2020-10-30 02:18:11 +00:00
TreeHugger Robot
7e3010b286 Merge "Fix DAC constant in getAsuLevel" 2020-10-29 21:39:38 +00:00
Sarah Chin
73157571a8 Replace IconIndex as DisplayNumber
Test: atest TelephonyManagerTest
Fix: 171770692
Change-Id: I256649ad0ddcada29e4a7012de3e5889348adb17
2020-10-29 09:36:40 -07:00
Mathew Inwood
8e742f928e Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

This is a resubmit of ag/12929664 with some APIs excluded that caused
test failures; see bugs 171886397, 171888296, 171864568.

APIs excluded:
Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord;
Landroid/os/Process;->myPpid()I
Landroid/os/SharedMemory;->getFd()I
Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I

Bug: 170729553
Test: Treehugger
Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
2020-10-29 11:51:12 +00:00
Jack Yu
9d851f9329 Merge "Added global retry support" 2020-10-29 02:29:53 +00:00
Hall Liu
b39bd117ec Merge "Update docs for TelephonyManager#getServiceState" am: 66917569e1 am: a29952e222 am: 44435a2175 am: 2e35b030eb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1474964

Change-Id: Iea46fba41e04967561c49c250db8b9a822b304fd
2020-10-29 02:12:08 +00:00
Hall Liu
2e35b030eb Merge "Update docs for TelephonyManager#getServiceState" am: 66917569e1 am: a29952e222 am: 44435a2175
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1474964

Change-Id: I4e502a4d3ea07940c13346b55802151d0efb349c
2020-10-29 01:58:26 +00:00
Hall Liu
66917569e1 Merge "Update docs for TelephonyManager#getServiceState" 2020-10-29 00:58:29 +00:00
Hongwei Wang
050275cd83 Revert "Add maxTargetSdk restriction to unused APIs."
This reverts commit 72f07d6a8a.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397

Bug: 171886397
Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
2020-10-28 20:16:22 +00:00
Jack Yu
7d8a77dad6 Added global retry support
The retry timer suggested by the network will persist
accross network requests. Also changed the retry timer
to a 64-bit value to be consistent with types used in
Android time APIs.

Test: FrameworksTelephonytests
Fix: 159672248
Change-Id: I632d4dc07fb545fa04eb3aefb0ff3270ee8f6ff8
2020-10-27 21:30:50 -07:00
Mathew Inwood
72f07d6a8a Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
2020-10-27 15:46:07 +00:00
Chiachang Wang
9287af810b Merge "Expose NetworkRegistrationInfo.getNrState() as public API" am: f177ac1348 am: b637605947 am: ab746aa210 am: cb9530f2cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1467045

Change-Id: I2da08952f6c34b84a078d067bc09c1388c660f45
2020-10-27 04:22:50 +00:00
Chiachang Wang
cb9530f2cc Merge "Expose NetworkRegistrationInfo.getNrState() as public API" am: f177ac1348 am: b637605947 am: ab746aa210
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1467045

Change-Id: I111cbae01fb9aea68a9bc0b63bd6f5caae4011e9
2020-10-27 03:46:29 +00:00
Chiachang Wang
f177ac1348 Merge "Expose NetworkRegistrationInfo.getNrState() as public API" 2020-10-27 02:53:59 +00:00
Chiachang Wang
d32aa193fd Expose NetworkRegistrationInfo.getNrState() as public API
ConnectivityService is going to become a mainline module which
will not able to access hidden APIs. DataConnectionStat needs
to get the NR 5G state of the mobile data network for checking
if the network type is 5G or not. API in NetworkRegistrationInfo
is suggested to replace the original one in ServiceState. Thus,
expose it as a public API to support it.

Bug: 171183530
Test: make update-api ; m
Test: atest CtsTelephonyTestCases
Change-Id: I965499792286de4f1447559be66ca4be80bd0e6f
2020-10-27 02:53:11 +00:00
Hall Liu
f0a61676ef Update docs for TelephonyManager#getServiceState
Add a link to the alternative way of obtaining service state through
PhoneStateListener

Fixes: 171704709
Test: docs only
Change-Id: Iee5d8a68b93ecc4029ae21ccac52dc93d56dc253
2020-10-26 13:22:17 -07:00
Sooraj Sasindran
7962a2ad84 Ability to configure NR dual connectivity
Provide ability to configure EUTRANR dual
connectivity

Bug: 162373679
Test: build
Change-Id: I48f5ef0a5f84157de9feffa8c5aa85d226163068
2020-10-26 15:16:27 +00:00
Hall Liu
b7f732b645 Merge "Expose requestModemActivityInfo" 2020-10-23 23:48:16 +00:00
Hall Liu
1dbdef8c9f Merge "Expose methods to enumerate constants" am: ae9309bc05 am: 037195448a am: 1fd0a64a11
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470085

Change-Id: Ibac491dcbabb45d3218edac6abd03f93f1db609d
2020-10-23 21:01:51 +00:00
TreeHugger Robot
5377c1e0b1 Merge "Perf: improve updateGlobalCellId" 2020-10-23 20:40:48 +00:00
Hall Liu
ae9309bc05 Merge "Expose methods to enumerate constants" 2020-10-23 18:12:10 +00:00
Li Li
91bd930766 Merge "Perf: optimize getCertHash" 2020-10-23 16:48:59 +00:00
Amit Mahajan
7ddc99fb96 Merge "Mark deleteMessageFromIcc() as @UnsupportedAppUsage." into rvc-qpr-dev am: ce7806da32 am: 60015d8728
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12895790

Change-Id: I4d18b682e8daf96cae5ef8db7bd4bcc806cf600b
2020-10-23 04:11:51 +00:00
Automerger Merge Worker
a9479251ba Merge "Merge "Add Handover Failure Mode to Radio Hal" am: f86143770f am: 8cae5f921c am: 6f5eda09a7" into rvc-qpr-dev-plus-aosp 2020-10-23 03:44:22 +00:00
Amit Mahajan
60015d8728 Merge "Mark deleteMessageFromIcc() as @UnsupportedAppUsage." into rvc-qpr-dev am: ce7806da32
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12895790

Change-Id: I55b4a9834a7c5f0b3bd7f4c6e21c5f254e0f88c9
2020-10-23 03:43:43 +00:00
Daniel Bright
f9cacc8dd2 Merge "Add Handover Failure Mode to Radio Hal" am: f86143770f am: 8cae5f921c am: 6f5eda09a7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469711

Change-Id: I05ed3d0c6ae86550bcb8617901b0531d13fffaa1
2020-10-23 03:43:40 +00:00
Hall Liu
644532e774 Expose methods to enumerate constants
Expose TelephonyManager#getAllNetworkTypes and
CellSignalStrength#getNumSignalStrengthLevels as utility methods for
other apps.

Fixes: 170781542
Test: atest TelephonyManagerTest
Change-Id: Ie516792a7522dd0df09d7b97f0b764d776559bf1
Merged-In: Ie516792a7522dd0df09d7b97f0b764d776559bf1
2020-10-22 17:01:04 -07:00
Hall Liu
b49b3c9484 Merge changes from topic "expose-call-forward" am: f0b822c8bb am: 5abd8781fd am: ebb53bbb2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471163

Change-Id: Ic7e3c230ab06803bd1e65c32cb925a990681d795
2020-10-22 22:23:56 +00:00
Hall Liu
1f96efdae1 Expose and update the call forward/waiting APIs am: 8410239d72 am: 84a9653e18 am: af7d2858e3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471162

Change-Id: If14ab2f08ac6c921352863daa1e90d43db7c4dbf
2020-10-22 22:23:43 +00:00
Hall Liu
2f70f9a721 Merge changes from topic "telephonymanager-data-policy" am: 3a14c6bdcc am: 4e254916f0 am: dacbfa7ed8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469718

Change-Id: Ib9a47b6400f79d50f5875d2614a487e88dd2202f
2020-10-22 22:22:54 +00:00
Hall Liu
c93850ce72 Add new methods for setting mobile data policy am: 83bb093cc5 am: f784eebb36 am: 44eed5a8d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469717

Change-Id: I1d82f2d70704aad6705de4b74594005f7f6f25c2
2020-10-22 22:22:48 +00:00
Daniel Bright
f86143770f Merge "Add Handover Failure Mode to Radio Hal" 2020-10-22 21:38:58 +00:00
Hall Liu
84a9653e18 Expose and update the call forward/waiting APIs am: 8410239d72
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471162

Change-Id: Icd499ce501a1b418e23a550154d642a52ccb5c3d
2020-10-22 21:22:32 +00:00
Hall Liu
f784eebb36 Add new methods for setting mobile data policy am: 83bb093cc5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469717

Change-Id: I86ace597ffeca7bcb0bb73b2b5ea617df80627ab
2020-10-22 21:14:05 +00:00
Daniel Bright
bd26ad22ba Add Handover Failure Mode to Radio Hal
On a handover request failure, the modem can now determine
whether or not to fallback.  There is also the option to revert
to the legacy logic.  Following the legacy logic is the default
behavior.

Test: FrameworkTelephonyTests
Bug: 161572465
Change-Id: I194aca34131301a3507ad3ba99be278cbf6fa87b
Merged-In: I194aca34131301a3507ad3ba99be278cbf6fa87b
2020-10-22 19:49:53 +00:00
Hall Liu
f0b822c8bb Merge changes from topic "expose-call-forward"
* changes:
  Move some of the call-forwarding related constants
  Expose and update the call forward/waiting APIs
2020-10-22 19:48:18 +00:00
Hall Liu
594dc4b920 Move some of the call-forwarding related constants
Move the call forwarding result constants into
CallForwardingInfoCallback and rename them to RESULT_*

Fixes: 169153246
Test: atest TelephonyManagerTest
Change-Id: I14b4d527807e92fe977b8304f8dd95e7cd93e819
Merged-In: I14b4d527807e92fe977b8304f8dd95e7cd93e819
2020-10-22 18:22:35 +00:00
Hall Liu
8410239d72 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
Merged-In: Ic20bc99314c8538a3f75f6af9c37bc4d30781825
2020-10-22 18:18:29 +00:00
Hall Liu
3a14c6bdcc Merge changes from topic "telephonymanager-data-policy"
* changes:
  Remove old methods for mobile data
  Add new methods for setting mobile data policy
2020-10-22 17:27:59 +00:00
Nazanin Bakhshi
3798b435ed Merge "initialized carrier_certificate_string_array to an empty array instead of null, so that when a certificate is removed, it is also removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig" am: 12231e3a46 am: fc5c95c7db am: 1218bbd843
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469714

Change-Id: I53d3cea2ff838ba2fdbd0deb8ee8e39ac97a09e6
2020-10-22 07:55:19 +00:00
Brad Ebinger
0bd605173d Merge changes from topics "cp_sip_transport_supported_api", "cp_sip_transport_supported_pipe" am: 9caec78557 am: 371361d995 am: 666fbf6275
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453715

Change-Id: Ief02f6c15576358e18adf4869ad05653a55aa87a
2020-10-22 05:48:24 +00:00
Brad Ebinger
cf96c50b54 Pipe through new SipTransport IInterface to listeners am: c50aeb319a am: 6e0f901a04 am: 28652b0739
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453356

Change-Id: I3c57c30bc37a4fc2aba06371251b771931659eff
2020-10-22 05:48:19 +00:00
Hall Liu
c4587ed1c9 Remove old methods for mobile data
Bug: 169367013
Test: builds
Change-Id: I9aa69c9bd8d31e6bbdd9a237b0aa2c3922431227
Merged-In: I9aa69c9bd8d31e6bbdd9a237b0aa2c3922431227
2020-10-22 01:08:30 +00:00
Hall Liu
83bb093cc5 Add new methods for setting mobile data policy
Add isMobileDataPolicyEnabled and setMobileDataPolicyEnabledStatus in
TelephonyManager. These are intended to replace the mms-always-allowed
and data-during-voice-call setters/getters.

Old methods will be removed in a follow up commit.
Fixes: 169367013
Test: atest TelephonyManagerTest

Change-Id: I6033a84f0a0163e460343ebf603d66078455fe38
Merged-In: I6033a84f0a0163e460343ebf603d66078455fe38
2020-10-21 16:23:34 -07:00
Nazanin
c4eb0d2ff0 initialized carrier_certificate_string_array to an empty array
instead of null, so that when a certificate is removed, it is also
removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig

Bug: 162700101
Test: manual
Change-Id: I921007498f42119581f565fcc6625c1275c59df8
Merged-In: I921007498f42119581f565fcc6625c1275c59df8
2020-10-21 15:45:00 -07:00
Brad Ebinger
4b14954fb4 Add isSupported implementation for SipTransport
Add implementation for SipDelegateManager#isSupported as well
as CTS tests.

Bug: 154763999
Test: atest CtsTelephonyTestCases
Merged-In: I7fbd39a8ff17c4e947fdbcca148857684faa3252
Change-Id: I7fbd39a8ff17c4e947fdbcca148857684faa3252
2020-10-21 13:25:20 -07:00
Brad Ebinger
c50aeb319a Pipe through new SipTransport IInterface to listeners
Create base SipTransport implementation and make it available to
listeners.

Expose new SipDelegate creation capability to the framework from the
ImsService.

The next CL will start the integration of the SipDelegateManager
with the framework and SipTransport.

Bug: 154763999
Test: atest FrameworksTelephonyTests TeleServiceTests
Merged-In: I9a51b850f370a865c9d9109f238e8ed2eea4b6f6
Change-Id: I9a51b850f370a865c9d9109f238e8ed2eea4b6f6
2020-10-21 13:24:22 -07:00
Amit Mahajan
1530a593ea Mark deleteMessageFromIcc() as @UnsupportedAppUsage.
The API was exposed in ag/9766884 but reverted in ag/10665971. However
with the revert the annotation was not added back.

Test: TH
Bug: 159022482
Change-Id: Ia7d200bfd4d4565971701048b1c469a6633edeb4
2020-10-21 12:32:59 -07:00
Sarah Chin
0cccdf8344 Merge "Make SignalStrength constructor public" 2020-10-21 19:23:25 +00:00
Li Li
30c3199707 Perf: improve updateGlobalCellId
String.format() used in updateGlobalCellId is heavy and slow. Unit
benchmark shows that formatSimple is about 5-10x faster.

Bug: 168639120
Test: Confirmed the calculated IDs are the same. The dogfood phone works
with master local build.

Change-Id: I7707a42efc74eadb133100d8b2b769301e56c100
Signed-off-by: Li Li <dualli@google.com>
2020-10-21 11:26:11 -07:00