Commit Graph

6830 Commits

Author SHA1 Message Date
Brad Ebinger
2c8a876fd2 Merge "Deprecate redundant IMS APIs in TelephonyManager."
am: 8012f3df57

Change-Id: Id940ff738b08d25a09efd2b624596c75ea90297f
2019-09-21 01:46:44 -07:00
Treehugger Robot
8012f3df57 Merge "Deprecate redundant IMS APIs in TelephonyManager." 2019-09-21 08:27:35 +00:00
Brad Ebinger
626b8b066c Merge "Allow ImsService to return network error codes"
am: ba2cdfb222

Change-Id: I1bd120e8f799529f5cebee8489961eff5eb3342a
2019-09-19 16:51:34 -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
Hyungjun Park
2f3eb5d88f Merge "Add isApplicationOnUicc API"
am: 3dc68a9585

Change-Id: I995d6b61d43a39ad5e52c99e62ac292540a0be7e
2019-09-17 19:17:24 -07:00
Treehugger Robot
3dc68a9585 Merge "Add isApplicationOnUicc API" 2019-09-18 02:00:54 +00:00
Taesu Lee
79aaff47c6 Merge "Add new onSmsStatusReportReceived() without message reference"
am: e6901bc862

Change-Id: I47b4ad0a13930b4a4080d8a8ac0f0cf657ea91a0
2019-09-17 15:48:04 -07:00
Treehugger Robot
e6901bc862 Merge "Add new onSmsStatusReportReceived() without message reference" 2019-09-17 22:28:35 +00:00
Jordan Liu
6671633935 Merge "Add carrier config KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL"
am: be83f253f4

Change-Id: Ia9c042e0bca91b8ede3f0687f4db75ebf9ce8752
2019-09-16 14:49:49 -07: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
fc225eab6b Merge "Listeners of active emergency numbers"
am: 7674b345a9

Change-Id: Ie18a4c1d18ae9fb1dbddc5f9997c471873f8ba78
2019-09-13 13:24:42 -07: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
Xin Li
d57e959e71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: I65906d82b14125c0893d5cde0cfebb73bf9e38ab
Merged-In: I1f2564837c33cd4c6c3db6aac3cbaf8c09707da9
2019-09-10 11:16:29 -07: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
Treehugger Robot
1953ea490f Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-08-28 17:51:50 +00:00
Taesu Lee
aa27371a71 Merge "No need PDU data for deleteMessageFromIcc()"
am: 0280bd3970

Change-Id: Ida80e7e57477eb13a7d999ab589fef8e1139acb7
2019-08-28 01:27:10 -07:00
Treehugger Robot
0280bd3970 Merge "No need PDU data for deleteMessageFromIcc()" 2019-08-28 08:01:30 +00:00
Pengquan Meng
6cf420a80e Merge "Support WAC decoding in UMTS format"
am: 9bc9b80912

Change-Id: I7efc88e5878e68b571d55fd386ad022b9a662bc3
2019-08-27 13:50:18 -07:00
sung_jae
f66dc6a966 Merge "Fix NPE"
am: 78658058dc

Change-Id: Iab42549310f6fdc6154c57a77721073a414215a2
2019-08-27 13:45:18 -07:00
Pengquan Meng
9bc9b80912 Merge "Support WAC decoding in UMTS format" 2019-08-27 20:16:54 +00:00
Treehugger Robot
78658058dc Merge "Fix NPE" 2019-08-27 20:14:20 +00:00
Pengquan Meng
c3427c01b3 Support WAC decoding in UMTS format
This add a decoder for WAC information. WAC is appended to the UMTS
cell broadcast message. The encoding is defined in ATIS-0700041.

Bug: 123096618
Test: build & manual test
Merged-In: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
Change-Id: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
(cherry picked from commit 14df7e3845369e7254e6aae13160c7e1caa1d28a)
(cherry picked from commit 1f64582bdf)
2019-08-26 16:24:14 +00:00
Taesu Lee
265dc5bce2 No need PDU data for deleteMessageFromIcc()
Test: Manual

Change-Id: I5a64546cb9da57c039c7c86768f3710a1874220d
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-08-26 16:11:17 +09:00
Pengquan Meng
e5f84f5a70 Merge "Add fileds to Cellbroadcast"
am: 071936e546

Change-Id: Iad7a4cd63161e8634a4431ad6536f75b7a7ee82c
2019-08-23 21:20:47 -07:00
Pengquan Meng
071936e546 Merge "Add fileds to Cellbroadcast" 2019-08-23 23:40:29 +00:00
Jack Yu
54e83aca93 Merge changes from topic "null_callback"
am: 5ce391b313

Change-Id: I0a956cd8b88d956102e912b5567732341faa78fc
2019-08-23 02:39:24 -07:00
Jack Yu
75db0a70dd Added debug messages and watchdog
am: 594931f5d9

Change-Id: Iaa6d60382dba87a19f6794201caf51ea7f90d23c
2019-08-23 02:38:59 -07:00
Nagaraja
633db92447 Merge "Added Part & Addr Constants."
am: f5d5de8a0f

Change-Id: Ieac6f8911910c9fea16d60457b5108222f68ca92
2019-08-23 02:28:01 -07:00
Jack Yu
7302b24f48 Fixed null callback issue
Fixed the vendor data/network service non-responsive
issue. The callback binder passed from frameworks
might be GC'd so that vendor data/network service skipped
calling the callback. This eventually caused data
connection state machine messed up.

Fixed by turning the weak refernce to the callback into
a strong reference. This ensure the binder alive when
vendor service needs to invoke the callback.

Test: Telephony sanity tests
Bug: 139076980
Merged-In: Ica0b7b810ffd5416ffd1b2b61f7ebc4af0dcb8ce
Change-Id: Ica0b7b810ffd5416ffd1b2b61f7ebc4af0dcb8ce
(cherry picked from commit 09ef1cb126)
2019-08-22 01:41:03 -07:00
Jack Yu
594931f5d9 Added debug messages and watchdog
Added debug messages and watchdog to catch
unresponsive data service issue.

Bug: 139076980
Test: Manual
Merged-In: I52dd126fddc1b1e8b18d5388a92aabaa3e2e48d5
Change-Id: I52dd126fddc1b1e8b18d5388a92aabaa3e2e48d5
(cherry picked from commit 36e2bfbaad)
2019-08-22 01:38:34 -07:00
Pengquan Meng
7032c1e72e Add fileds to Cellbroadcast
This add some fileds to CellBroadcasts in order to support the WEA 3.0
geo-fencing.

Bug: 123096618
Test: atest TelephonyProviderTests
Merged-In: Ied0780cb1b9993e6d8cdb80131ba2f8b8affcb54
Change-Id: Ied0780cb1b9993e6d8cdb80131ba2f8b8affcb54
(cherry picked from commit 5c6e975ce4a973619f20167644475b04e663ee4e)
2019-08-21 17:40:54 -07:00
Treehugger Robot
f5d5de8a0f Merge "Added Part & Addr Constants." 2019-08-21 21:18:31 +00:00
Jayachandran Chinnakkannu
0a1f1e0389 Merge "Fixed null callback issue" into qt-r1-dev
am: f3395734e8

Change-Id: If431a32bf6a44235599737b0295d2bb1cf491acf
2019-08-20 10:50:30 -07:00
Jack Yu
09ef1cb126 Fixed null callback issue
Fixed the vendor data/network service non-responsive
issue. The callback binder passed from frameworks
might be GC'd so that vendor data/network service skipped
calling the callback. This eventually caused data
connection state machine messed up.

Fixed by turning the weak refernce to the callback into
a strong reference. This ensure the binder alive when
vendor service needs to invoke the callback.

Test: Telephony sanity tests
Bug: 139076980
Change-Id: Ica0b7b810ffd5416ffd1b2b61f7ebc4af0dcb8ce
2019-08-19 10:02:11 -07:00
Leland Miller
ecd1d67584 Merge "Fix incorrect descriptions under SMS contract" am: 8f48cb7e7e am: 6ef5b6c183
am: 4e16f07ddf

Change-Id: I0e8a4e7cbe1bfc34f03b57256f6eed48f56ccdcc
2019-08-19 08:26:30 -07:00
Leland Miller
6ef5b6c183 Merge "Fix incorrect descriptions under SMS contract"
am: 8f48cb7e7e

Change-Id: I9b8659b91e72608100efbba3d36cb0b86066feb3
2019-08-19 08:02:38 -07:00
Treehugger Robot
8f48cb7e7e Merge "Fix incorrect descriptions under SMS contract" 2019-08-19 14:22:21 +00:00
sung_jae
ed91c3a159 Fix NPE
Add checking of NPE in getNumberFromIntent API of PhoneNumberUtils.

Test: atest CtsTelephonyTestCases

Change-Id: I507ee020a98a919edc35e6402c0b8f9f84898870
Signed-off-by: sung_jae <sung_jae.kim@samsung.com>
2019-08-19 10:33:26 +09:00
Hyungjun Park
4984d3c477 Add isApplicationOnUicc API
Returns true if the specified type of application is present
on the UICC card.

Bug:127549503

Signed-off-by: Hyungjun Park <hjun78.park@samsung.com>
Change-Id: I1513951515d7225e82b5a5997cd2a8f3520c2ca7
2019-08-15 13:05:14 -07:00