Commit Graph

10278 Commits

Author SHA1 Message Date
Rambo Wang
e86cb24b57 Support new APIs in TelephonyManager to set/clear signal update request
Introduce set/clearSignalStrengthUpdateRequest in TelephonyManager
and ITelephony to support customized signal request from applications.

Bug: 164432835
Test: atest android.telephony.cts.TelephonyManagerTest
Change-Id: I749376872915a91b9514884547140eaf969dba0e
2021-01-20 21:14:41 -08:00
Zoey Chen
e61da845fa Merge "[PhysicalChannelConfig] Deprecated getChannelNumber and implement relevant API" 2021-01-21 04:29:58 +00:00
Daniel Bright
2c8f0de95c Merge "Make TelephonyManager#setImsRegistrationState multi-sim aware" 2021-01-21 04:10:27 +00:00
Amit Mahajan
19ffdb0894 Merge "Remove dup result code descriptions" 2021-01-20 22:19:23 +00:00
Daniel Bright
fd5dead7de Make TelephonyManager#setImsRegistrationState multi-sim aware
Test: Ims call and unit tests
Bug: 167294783
Change-Id: Idb8f5ce7fe7592e94cb6202e7df133a354746388
2021-01-20 11:24:01 -08:00
Hall Liu
942b71b485 Merge "IMS: Add new carrier config." 2021-01-19 22:36:43 +00:00
Rambo Wang
14927330cd Introduce SignalStrengthUpdateRequest to customize signal update request
Privileged apps can send the request through TelephonyManager APIs
(in following CL) to monitor signal strength change with interested
RAN/SignalMeausrementType/Thresholds.

Bug: 164432835
Test: atest com.android.internal.telephony.SignalStrengthUpdateRequestTest
Change-Id: Ifba384108b6627e4b808be34e6d828c93e8df995
2021-01-18 08:46:42 -08:00
Zoey Chen
82e3bca9dd [PhysicalChannelConfig] Deprecated getChannelNumber and implement relevant API
1. Implement new API:
    #getUpLinkFrequency
    #getDownLinkFrequency
    #getBand
    #getChannelNumberUplink
    #getChannelNumberDownlink
    #getCellBandwidthUplink
2. Have mapping tables for converting frequency range
if getFrequencyRangeGroupFromXXXBand is unknown.
   NR-ARFCN, E-UTRA, UTRA and Geran
3. Get the frequency from the band
    #getFrequencyRangeGroupFromXXXBand

Bug: 162300897
Test: manual
Change-Id: I44101653659d2b5d593a2b06be6567e0d0ef433f
Merged-In: I44101653659d2b5d593a2b06be6567e0d0ef433f
2021-01-18 13:00:30 +00:00
Rambo Wang
a40d0d19f1 Merge "Expose SignalThresholdInfo as public class" 2021-01-16 01:53:15 +00:00
Zoey Chen
3521a14be4 Merge "[Telephony] PhoneStateListener redesign for new event" 2021-01-16 00:56:51 +00:00
Sonalika Paul
efa0fa985d IMS: Add new carrier config.
Add new carrier config to determine
default RTT mode.

Bug: 130010750
Change-Id: Id8de3749a336144ce053151a74c42a113b925369
2021-01-15 18:13:10 +05:30
Treehugger Robot
6423b430a7 Merge "Improve RCS single registration logging" 2021-01-15 06:36:41 +00:00
Brad Ebinger
4b4e2a6fd2 Improve RCS single registration logging
Test: manual - verify logs with CTS tests
Change-Id: I14c5a38ef00bc9858945e979d081ae15ac46051c
2021-01-15 01:45:02 +00:00
Rambo Wang
ddf5bc0160 Expose SignalThresholdInfo as public class
Expose the fields and methods for application to specify
the customized signal update request.

Bug: 164432835
Test: atest com.android.internal.telephony.SignalThresholdInfoTest
Change-Id: I879efb2e6b4366e96059973cf4264e4192c1cf29
2021-01-14 16:51:45 -08:00
James Lin
2a24bb672f Merge "Remove the hidden API "onRemoteCapabilityRequest" from the exposed interface CapabilityExchangeEventListener" 2021-01-15 00:39:17 +00:00
Grace Jia
096b7d4a25 Merge "Add new phone number match method." 2021-01-14 21:51:55 +00:00
Brad Ebinger
ee0220039e Merge "Parse SIP Messages for Transaction ID in SIP transport" 2021-01-14 21:20:44 +00:00
Shuo Qian
f1273df6cc Merge "Support call composer status that disabled the picture sending" 2021-01-14 20:49:43 +00:00
James.cf Lin
f327972498 Remove the hidden API "onRemoteCapabilityRequest" from the exposed interface CapabilityExchangeEventListener
The interface CapabilityExchangeEventListener is exposed.
However the API "onRemoteCapabilityRequest" is hidden and it will cause it cannot be implemented.
Remove this api for now and add it back when the api is ready to exposed.

Bug: 177451691
Test: atest CtsSystemApiSignatureTestCases:android.signature.cts.api.system.SignatureTest#testSignature
Change-Id: I9ac1b8a5654fe16b9ae862d6e65aec9319cb6be5
2021-01-15 04:39:13 +08:00
Rambo Wang
e630298ff1 Merge "Preparation to expose SignalThresholdInfo as public class" 2021-01-14 14:50:49 +00:00
Zoey Chen
041679fa9a [Telephony] PhoneStateListener redesign for new event
1. Add int EVENT_* and expose these as @SystemApi
 2. Add listener interface
 3. Deprecated LISTEN_*
 4. un/registerPhoneStateListener
 5. get event from event listener
 6. Add event to list

Test: manual and
atest TelephonyManagerTest#testRegisterPhoneStateListener
atest TelephonyManagerPermissionTest
atest CtsTelephonyTestCases:PhoneStateListenerTest
atest TelephonyRegistryManagerTest
atest CtsTelecomTestCases:android.telecom.cts.IncomingCallTest
atest CtsTelecomTestCases:android.telecom.cts.OutgoingCallTest

Bug: 167684594
Change-Id: Id89a541745fb8700e1ebd2cc162ee55cd1055661
Merged-In: Id89a541745fb8700e1ebd2cc162ee55cd1055661
2021-01-14 16:58:33 +08:00
Taesu Lee
60c671c366 Remove dup result code descriptions
Test: Not required.

Change-Id: I14e574f9a29105985b4e467162002c9e590130de
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2021-01-14 10:08:30 +09:00
Grace Jia
6194382d75 Add new phone number match method.
Test: atest CtsTelephonyTestCases
Bug: 174028667
Change-Id: I7b9d8f6dca6af37007a577796b4c46f010c2b23c
2021-01-13 16:01:24 -08:00
Rambo Wang
2436cff521 Preparation to expose SignalThresholdInfo as public class
Introduce RAN to better associate it with thresholds. Later CL
should be able to further simplify APIs which ask for both RAN and
SignalThresholdInfo.

Validate threshold values during constructing.

Deliberately hide all the public fields and methods, so the following
CL will only need to expose designed properties. Make it easy
for API review.

Bug: 164432835
Test: atest com.android.internal.telephony.SignalThresholdInfoTest
Change-Id: Ib0600c43b90ab0231b29f989976cb090f4b37bf8
2021-01-13 14:14:19 -08:00
Shuo Qian
5321bad867 Support call composer status that disabled the picture sending
Test: cts
Bug: 173437870
Change-Id: Ib6ea41b56797d871cf38e7386428f84ce8438803
2021-01-13 20:13:17 +00:00
James Lin
5b51530d0d Merge "[RCS UCE] Expose the RCS UCE publishing device's capabilities APIs" 2021-01-13 00:33:57 +00:00
Brad Ebinger
5a9d8c495a Parse SIP Messages for Transaction ID in SIP transport
In cases where the framework/ImsService is not available,
locally extract the transaction ID from the SipMessage in order
to call the appropriate error method back to the caller.

Bug: 173828358
Test: atest FrameworksTelephonyTests:SipMessageParsingUtilsTest
Change-Id: I4ff5ed9ad4492e817c4a687e90d3a294e5514d8b
2021-01-12 22:13:47 +00:00
James.cf Lin
50c18c12c6 [RCS UCE] Expose the RCS UCE publishing device's capabilities APIs
The RCS publishing device's capabilities APIs are exposed to be the SystemAPI and add the CTS for these APIs.

bug: 174187744
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: I731dbe64614b91efa0002ffccb638b4a10f7c5f4
2021-01-12 10:56:41 +08:00
Shuo Qian
45a397a84a Merge "Add Call Composer Tuple in RcsContactPresenceTuple class" 2021-01-08 02:21:34 +00:00
Shuo Qian
077cefb9a9 Merge "Add Setting API to set/get enriched calling with call composer user option" 2021-01-07 18:32:44 +00:00
Shuo Qian
d70514cf01 Add Call Composer Tuple in RcsContactPresenceTuple class
Test: Treehugger
Bug: 173437870
Change-Id: Id1c3eaf11d85ec5df3c253443bafdb18fd31ccce
Merged-In: Id1c3eaf11d85ec5df3c253443bafdb18fd31ccce
(cherry picked from commit 111e80214e)
2021-01-07 03:13:04 +00:00
Shuo Qian
bfd05221a3 Merge "Add CAPABILITY_TYPE_CALL_COMPOSER in MmTelFeature" 2021-01-06 00:48:00 +00:00
Shuo Qian
4260bc4f95 Merge "Add Call Composer Carrier Config keys" 2021-01-06 00:48:00 +00:00
Shuo Qian
a4524a936a Merge "Add call composer Extras for enriched calling" 2021-01-06 00:48:00 +00:00
Daniel Bright
1948c69946 Merge changes from topics "apn_throttle", "rename_retry_interval"
* changes:
  Add apn throttle status notifications to QNS
  Renamed retry interval to retry duration
2021-01-06 00:43:25 +00:00
Daniel Bright
cc7c94c433 Merge "Add callSessionIntiating + callSessionInitatingFailed" 2021-01-05 21:55:59 +00:00
Daniel Bright
f2f714a0dc Add apn throttle status notifications to QNS
* Added wiring for the apn unthrottled indication
* Added method to QNS that is notified when there is a change to
  the way an APN is throttled.

Test: Ran telephony tests
Test: Booted up device
Test: Checked for log message in
      NetworkAvailabilityProvider#onReportApnThrottleStatusChanged
Bug: 167434852
Bug: 174850845
Merged-In: Ia4dd3036f583a97e42b6054019005df1b33dc33c
Change-Id: Ia4dd3036f583a97e42b6054019005df1b33dc33c
2021-01-05 11:36:34 -08:00
Jack Yu
133b7dc759 Renamed retry interval to retry duration
Fix: 171981823
Test: FrameworksTelephonyTests
Merged-In: I7c4bbe0a77301761525ae793892bb811637027b5
Change-Id: I7c4bbe0a77301761525ae793892bb811637027b5
2021-01-05 11:01:26 -08:00
Chiachang Wang
cdf7105f72 Merge "Create getMobileProvisioningUrl in telephony" 2020-12-29 00:24:12 +00:00
Daniel Bright
f0e8399729 Add callSessionIntiating + callSessionInitatingFailed
* Add callSessionIntiating which occurs in between the session
  starting and the call session progressing.

Bug: 161218980
Test: FrameworksTelephonyTests
Change-Id: I745af44f83915b92e0cfa57b4edf4f11ca575f5d
2020-12-23 15:28:42 -08:00
Chi Zhang
6e55446222 Merge "Cherry-pick "Add band mapping for GERAN and UTRAN" from internal." 2020-12-23 17:22:16 +00:00
Shuo Qian
d8e09b9744 Add CAPABILITY_TYPE_CALL_COMPOSER in MmTelFeature
Test: cts
Bug: 173437870
Change-Id: Ife05ba75a3f23d0c18b3aa068881b6646dee6db5
Merged-In: Ife05ba75a3f23d0c18b3aa068881b6646dee6db5
(cherry picked from commit 89667c6bb2)
2020-12-23 02:17:23 +00:00
Shuo Qian
c0ddad5454 Add Call Composer Carrier Config keys
Test: cts
Bug: 173437870
Change-Id: I12d78f475b947cedb201ff1b379cc64a8f876e62
Merged-In: I12d78f475b947cedb201ff1b379cc64a8f876e62
(cherry picked from commit 136900101b)
2020-12-23 00:15:09 +00:00
Shuo Qian
856caa7371 Add call composer Extras for enriched calling
Test: unit test; cts
Bug: 173437870

Change-Id: I2af39eea48737df1bf629caea5b617736635f2aa
Merged-In: I2af39eea48737df1bf629caea5b617736635f2aa
(cherry picked from commit 36b3dbc3ab)
2020-12-23 00:14:46 +00:00
Shuo Qian
631df95517 Add Setting API to set/get enriched calling with call composer user option
Test: cts
Bug: 173437870
Change-Id: Iaf2cb72864dca992249395103aedee93ff8d3ac0
Merged-In: Iaf2cb72864dca992249395103aedee93ff8d3ac0
(cherry picked from commit ccc5af201a)
2020-12-22 23:56:08 +00:00
Shuo Qian
7b9960aa2e Fix ConcurrentModificationException of getEmergencyNumberList
Test: atest; treehugger
Bug: 171542607
Change-Id: I5812469dfb96f30b5b185fc1bb983e3357bb4efa
Merged-In: I5812469dfb96f30b5b185fc1bb983e3357bb4efa
(cherry picked from commit f4ded970a7)
2020-12-22 22:59:59 +00:00
Greg Kaiser
469e5b3317 Merge "Revert "Fix permission on TM#isDataEnabled"" 2020-12-22 19:36:50 +00:00
Greg Kaiser
8ce575b256 Revert "Fix permission on TM#isDataEnabled"
This reverts commit f7dc3f6788.

Reason for revert: b/176163590, continual fatal exceptions in telephony on reboot
Bug: 176163590
Test: Local revert and the fatal exceptions go away

Change-Id: If7cbe3e5b8764f0ee72985830880157f64d71101
2020-12-22 17:35:44 +00:00
Chiachang Wang
228306b008 Create getMobileProvisioningUrl in telephony
ConnectivityService is going to become mainline and can not
access hidden APIs. Telephony and Settings were both accessing
the hidden API ConnectivityManager#getMobileProvisioningUrl.
Moving #getMobileProvisioningUrl method into telephony means
that there is one less access to a hidden API within the
overall framework since the connectivity stack never needed
this value. Thus, add getMobileProvisioningUrl() to telephony
surface to replace the one in connectivity stack.

Bug: 175177794
Test: atest FrameworksTelephonyTests
Change-Id: Icff8bf39b168b28f972b6737e4e7be8fc86b3dee
2020-12-22 11:22:58 +08:00
Allen Su
f2fdcff51e Merge "[RCS]Add new carrier configs for presence" 2020-12-22 00:26:52 +00:00