Commit Graph

6762 Commits

Author SHA1 Message Date
rongmei.li
bcadc90474 Limit FDN Number up to 40 digits for Vodafone
1.Dialer-Settings-Calling accounts-sim card select-Fixed dialing numbers
2.Click FDN list,add fdn number
3.Limit FDN Number up to 40 digits for Vodafone

bug: 140606221
Change-Id: I9654a3dc6b305b2061724f03a28d830325b7560c
2019-10-18 03:14:01 +00:00
Hunter Knepshield
4f5bb32fca Check Carrier Privilege on Hidden Subs
When calling CheckCarrierPrivilegeForAnySubId the
hidden subscriptions were not being taken into account
due to getAllActiveSubscriptionIds being a public method
that intentionally ignores hidden subscriptions.

NOTE: This is identical to ag/8193293, except that the
SubscriptionManager modifications don't make
getActiveSubscriptionIdList() static (it was causing test failures). A
further bug can be pursued to make everything static all at once.

Bug: 135684437
Test: manual
Change-Id: Iad6a3c2635e5eac2d33a16aa460b98394fd817f4
Merged-In: Iad6a3c2635e5eac2d33a16aa460b98394fd817f4
2019-10-14 14:15:09 -07:00
Xiangyu/Malcolm Chen
8dbe1f3b9b Merge changes Icc6e7da7,I9007978b,I060511af
* changes:
  Add APIs to return max possible active phones.
  Combine getPhoneCount, getSimCount and isMultiSimEnabled.
  Remove permission check for LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE
2019-10-14 21:06:13 +00:00
Malcolm Chen
793928c338 Add APIs to return max possible active phones.
This is first step towards reboot free single SIM to DSDS switch. As
getPhoneCount returns active phone count based on current configuration,
getMaxPhoneCount (subject to renaming) will return max possible active
phones(logical modems).

Bug: 141023026
Test: manual

Change-Id: Icc6e7da7c065eb3f72ec85a99ccc148639c574da
Merged-In: Icc6e7da7c065eb3f72ec85a99ccc148639c574da
2019-10-14 11:57:12 -07:00
Malcolm Chen
f6da74661c Combine getPhoneCount, getSimCount and isMultiSimEnabled.
Bug: 141023026
Test: build
Change-Id: I9007978bc577a24083e0108d02c8b59fd16ae81f
Merged-In: I9007978bc577a24083e0108d02c8b59fd16ae81f
2019-10-14 11:55:55 -07:00
Malcolm Chen
118b02f61b Remove permission check for LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE
Bug: 140020981
Test: sanity
Change-Id: I060511af068bfbbc9fea5c5d27a5d04eb2924fda
Merged-In: I060511af068bfbbc9fea5c5d27a5d04eb2924fda
2019-10-14 11:54:29 -07:00
Brad Ebinger
90f4c2abe4 Merge "Fix annotations in ImsSmsImplBase" 2019-10-11 17:47:54 +00:00
Jack Yu
85de0791e4 Merge "Fix inconsistentcy API in CellInfoNr" 2019-10-10 23:57:01 +00:00
Brad Ebinger
63df8520ff Merge "Fix ImsMmTelManager docs to use annotations" 2019-10-10 20:56:31 +00:00
Brad Ebinger
50c7b1bedf Fix annotations in ImsSmsImplBase
Bug: 141568452
Test: manual
Change-Id: Iad595b75d47dc9fd356e6362e3adbcb5815e375d
2019-10-10 13:25:03 -07:00
Jordan Liu
656502be63 [DO NOT MERGE] Revert "Add CellBroadcastService and related permissions"
This reverts commit b59c74f302.

Reason for revert: depends on ag/9477322 being CP'd, or else causes breakages downstream (b/142399383)

Change-Id: I25b1695757d5fec8c00f05d033c33501f4fc5389
2019-10-09 13:34:26 -07:00
Treehugger Robot
884dd0f559 Merge "Fix race in TelephonyScanManager" 2019-10-09 18:20:14 +00:00
Jordan Liu
b59c74f302 Add CellBroadcastService and related permissions
CellBroadcastService is bound to by the platform to handle cell
broadcasts.

Bug: 135956699
Test: manual
Change-Id: Ib1b20da03d271fc0b2736774b2ca6c6514944093
Merged-In: Ib1b20da03d271fc0b2736774b2ca6c6514944093
2019-10-08 11:20:46 -07:00
Hall Liu
418e7798ab Fix race in TelephonyScanManager
TelephonyScanManager may sometimes encounter a race condition where
Telephony sends it the first scan result before it has saved the
returned scan ID. This causes a crash in the app that's requesting the
scan.

To fix this, synchronize on mScanInfo while requesting the network scan
so that the handler in TelephonyScanManager will wait for the scan ID to
be saved before processing the first message from Telephony.

Bug: 142068098
Test: manual
Change-Id: I0b2b4c6dc749e21641843818293941704ed870a6
2019-10-07 15:38:02 -07:00
Shuo Qian
d96637660f Change the Listener API names
Test: cts
Bug: 135204580
Change-Id: I1f64d6eb6b113ca85f43a3f6a578c68dbb8bd5ed
2019-10-04 13:24:23 -07:00
Shuo Qian
650ff647e4 Add both Emergency Number listener for testing
Test: CTS
Bug: 135204580
Change-Id: Ifb20b9a20f9493fb7fe671c0fd2d8b4de7ea9f67
2019-10-03 15:09:00 -07:00
Hall Liu
f99b67b657 Merge "Add carrier config for allowing merge of RTT calls" 2019-10-02 23:43:15 +00:00
Hall Liu
64a192b61f Add carrier config for allowing merge of RTT calls
Add a carrier config key that specifies whether merging an RTT call is
allowed.

Bug: 136035168
Test: manual

Change-Id: I8cfdf68c69b50abed88d7c835db0480a53755f5a
Merged-In: I8cfdf68c69b50abed88d7c835db0480a53755f5a
2019-10-02 21:56:57 +00:00
Hall Liu
d00563735f Merge "Unbind MBMS service after calling close" 2019-10-02 21:56:01 +00:00
James Lin
74ad1b81ab Merge "[RCS] Add carrier config "use_rcs_sip_options_bool" for check if SIP OPTIONS is supported" 2019-10-02 15:26:22 +00:00
Hall Liu
718986d929 Unbind MBMS service after calling close
Add a call to Context#unbindService in close() in the three MBMS session
classes so that we don't get a service binding leak.
Also add implementations of onNullBinding.

Fixes: 140144741
Test: manual
Change-Id: Ibde9fdbc096decb7b6ab7b60016645bc4810b859
2019-10-01 16:52:47 -07:00
Jordan Liu
e3dfe362dc Merge "Expose CdmaSmsCbProgramData as SystemApi" 2019-10-01 20:33:29 +00:00
James.cf Lin
9f5e1f7509 [RCS] Add carrier config "use_rcs_sip_options_bool" for check if SIP OPTIONS is supported
Bug: 139260798
Test: Manual
Change-Id: I93df866fe020d03130458175a8823368069c47e6
Merged-In: I875e597fa3cb5d7f5a93989d2ff8e4abbbd9d045
2019-10-02 03:25:39 +08:00
Jordan Liu
4ae91c0308 Expose CdmaSmsCbProgramData as SystemApi
Only getOperation and getCategory are currently used, so we only expose
those parts of the functionality. Eventually if we move BearerData to
the CBR app we will also have to expose the constructor, at which point
we may also want to expose the other constants that the constructor
uses, but for now this is okay.

Bug: 135956699
Test: manual
Change-Id: I1d3ba564372845f9b8a470adf82e84df745c02a7
Merged-In: I1d3ba564372845f9b8a470adf82e84df745c02a7
2019-10-01 10:42:56 -07:00
Brad Ebinger
25f4dca660 Merge "Add Telecom command for setting connectionservice filter" 2019-10-01 17:30:40 +00:00
Nathan Harold
c75cf96f72 Merge "Add Debounce text to ACTION_NETWORK_COUNTRY_CHANGE" 2019-10-01 17:29:29 +00:00
Hall Liu
e93165456c Merge "Add carrier config for ignoring user RTT setting" 2019-10-01 01:37:05 +00:00
Brad Ebinger
a9a33e1d68 Add Telecom command for setting connectionservice filter
For testing we need the emergency call to go through the CTS
ConnectionService. This is achieved by passing in a package
name filter for testing, which restricts which ConnectionServices
are available for emergency calling.

For safety this filter will be bypassed if the user calls an
actual emergency number (instead of a test number).

Bug: 138741228
Test: atest CtsTelecomTestCases
Change-Id: I656533e4a36a7bba48625bf6f763731991695aed
2019-09-30 17:46:36 -07:00
Nathan Harold
af66dea4de Add Debounce text to ACTION_NETWORK_COUNTRY_CHANGE
Explain that once a country signal is lost, the broadcast
will be delayed for some time until we are confident that
we have lost visibility to any country (unless we detect
a new country).

Bug: 136036974
Test: make offline-sdk-docs (docstring-only change)
Merged-In: I29536ca2d60968405bb476a97dfbda69487c0013
Change-Id: I29536ca2d60968405bb476a97dfbda69487c0013
(cherry picked from commit 3bdc7e4c62)
2019-09-30 14:43:44 -07:00
Shuo Qian
b61230c51d Integrate the active emergency session listener in TelephonyRegistry
Add Telecom shell command: "adb shell telecom set-system-dialer"

Test: PhoneStateListener cts
Bug: 135204580
Merged-In: I5eaada6a671606642a849f0ff6fe964332d80d5f
Change-Id: I5eaada6a671606642a849f0ff6fe964332d80d5f
2019-09-30 20:43:42 +00:00
Treehugger Robot
8012f3df57 Merge "Deprecate redundant IMS APIs in TelephonyManager." 2019-09-21 08:27:35 +00:00
Pengquan Meng
6475b2182a Fix inconsistentcy API in CellInfoNr
Add the annotation CovariantReturnType to
CellInroNr#getCellSignalStrength() and CellInfo#getCellIdentity() to
modify the return class to a NR specific class.

bug: 136514894
Test: atest CellInfoTest
Change-Id: If87b6bf13a84c60632a526ad9c49ca0ca77b5f8f
2019-09-20 10:24:56 -07:00
Brad Ebinger
8d1f9f55b0 Allow ImsService to return network error codes
Adds new API for SMS over IMS that allows the ImsService
to pass 3GPP TS 24.011 error codes from the network for
better debugging/metrics collection.

Test: manual
Bug: 138239529
Merged-In: I5d1f41b90595238011eb0d1dc0ae0415157bb469
Change-Id: I5d1f41b90595238011eb0d1dc0ae0415157bb469
2019-09-19 21:15:27 +00:00
Treehugger Robot
3dc68a9585 Merge "Add isApplicationOnUicc API" 2019-09-18 02:00:54 +00:00
Treehugger Robot
e6901bc862 Merge "Add new onSmsStatusReportReceived() without message reference" 2019-09-17 22:28:35 +00:00
Jordan Liu
be83f253f4 Merge "Add carrier config KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL" 2019-09-16 21:28:03 +00:00
Taesu Lee
61e826d576 Add new onSmsStatusReportReceived() without message reference
IMS providers must generate unique token and don't need to parse the PDU
to get the message reference for new onSmsStatusReportReceived() API.
The platform will extract the message reference from the PDU and return
it to the IMS providers via acknowledgeSmsReport(). And @Deprecated tag
is added on existing onSmsStatusReportReceived() API.
This CL includes some fixing doc bug and description for APIs also.

Test: atest FrameworksTelephonyTests:ImsSmsDispatcherTest

Change-Id: Ib788e291f2e70c3e062319e17e2c9efe33f31164
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-09-16 16:42:19 +09:00
Shuo Qian
e6f0e85516 Listeners of active emergency numbers
1) Introduce a new signature-level system permission allowing system apps to listen the
 active emergency number, placed by calls or texts.

2) Add PhoneStateListener API surface to provide a mechanism to listen the
outgoing call emergency number or outgoing sms emergency number.

Bug: 135204580
Test: atest
Change-Id: I6e6bce6d4b97d492ca20302002911f9daa20767e
Merged-In: I6e6bce6d4b97d492ca20302002911f9daa20767e
(cherry picked from commit 7a1eb6d56b)
2019-09-13 03:16:17 +00:00
Hall Liu
85dd6636ef Add carrier config for ignoring user RTT setting
Add a carrier config to ignore the user's RTT mode setting for purposes
of IMS registration and default outgoing/incoming call behavior.

Bug: 136035164
Test: manual
Change-Id: I481fb945fd76181a0c59cb433c2959b532127153
Merged-In: I481fb945fd76181a0c59cb433c2959b532127153
2019-09-10 22:42:33 +00:00
Shu Wang
6edfc5aa51 Add carrier config KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL
Adds carrier config KEY_CALL_FORWARDING_UNREACHABLE_SUPPORTED_BOOL.
Call forwarding option "When Unreachable" in Call Settings will be
disabled and greyed if this value is set to false.

Default value is true, meaning that the option will be available for
most carriers.

Bug: 118861990
Test: Manual
Change-Id: Ib1e525d6c3983f0675c1730defaa18832c504a43
2019-09-09 16:43:49 +02:00
Patrick Huang
9f2c596505 Add TelephonyManager APIs to take physical slotIndex
- getSimCardState
- getSimApplicationState

Bug: 134627366
Test: Manual test on device
Change-Id: I72612afb9f8ff3d898db99afaaee0c0d3654f754
Merged-In: I72612afb9f8ff3d898db99afaaee0c0d3654f754
2019-09-06 16:30:24 -07:00
Brad Ebinger
f4cd3de77a Merge "Re-deprecating Capabilities in ImsFeature" 2019-09-06 18:55:17 +00:00
Brad Ebinger
fc5fec9481 Deprecate redundant IMS APIs in TelephonyManager.
Test: Manual
Change-Id: I5ef283ae9086bef206908a80aa69b81d7a8c4fbe
2019-09-06 10:40:56 -07:00
Pengquan Meng
156f347db4 Merge "Support maximum wait time for Cell broadcast" 2019-09-06 17:15:28 +00:00
Pengquan Meng
9f677a0790 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Merged-In: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
Change-Id: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
(cherry picked from commit 02d6ac0f20)
2019-09-05 15:27:31 -07:00
Brad Ebinger
98c0e000eb Re-deprecating Capabilities in ImsFeature
Readding the @deprecated javadoc to Capabilities as it is valid
to @hide a superclass of a @SystemApi.

Bug: 138990145
Test: manual
Change-Id: I1749aa3f09b7782fd0d665238be4c288a33536ea
2019-09-05 11:18:37 -07:00
Jordan Liu
d41a61df80 Merge "Change CellBroadcast APIs to SystemApi"
am: 82454e029f

Change-Id: Ic39446ab84f910b0f5225ad42f061e2a525ec868
2019-09-03 13:52:14 -07:00
Jordan Liu
e4141f0e8b Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
Merged-In: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-09-03 11:32:58 -07:00
Aurimas Liutikas
1da3bde08d Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:16:24 +00:00
Aurimas Liutikas
00be951a08 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:14:44 +00:00