Commit Graph

10247 Commits

Author SHA1 Message Date
Sarah Chin
080b210f0e Add NETWORK_TYPE_NR to Telephony framework
Add NETWORK_CLASS_5_G to TelephonyManager
Add NR to ServiceState

Bug: 135421985
Test: atest FrameworksTelephonyTests
Change-Id: Iaed46354400c7a1ce410eebc246892d7edf448dc
2019-10-07 12:14:33 -07:00
Chen Xu
fac787d7f2 Merge "telephony annotations part 2" 2019-10-03 18:15:17 +00:00
Jack Yu
4358ca81ed Merge "Added read phone state permission for getNetworkCountryIso" 2019-10-03 17:22:59 +00:00
Hall Liu
01e165a9ef Merge "Unbind MBMS service after calling close" am: d00563735f am: 657c80a322 am: a024eb5f9f
am: b1d94a9a7a

Change-Id: I54dfca8fac8bf60967f95f84ccb0e7defedb5699
2019-10-02 16:26:19 -07:00
Hall Liu
b1d94a9a7a Merge "Unbind MBMS service after calling close" am: d00563735f am: 657c80a322
am: a024eb5f9f

Change-Id: I31df21c47f15e9d2edd7f5b6e4b7bf6b9a6eb8a3
2019-10-02 15:41:20 -07:00
Hall Liu
657c80a322 Merge "Unbind MBMS service after calling close"
am: d00563735f

Change-Id: I9392f5d1c2922d373b0aef812cbc43ba1ef05848
2019-10-02 15:11:20 -07:00
Hall Liu
d00563735f Merge "Unbind MBMS service after calling close" 2019-10-02 21:56:01 +00:00
Brad Ebinger
7c49b19c2f Merge "Add Telecom command for setting connectionservice filter" am: 25f4dca660 am: 05e03e8c0c am: 4d4dc1165a
am: 7acb9ff577

Change-Id: I2b4aa863848da2e0249c71577c55ecb0918a5ed0
2019-10-02 14:27:13 -07:00
James Lin
450c72984b Merge "[RCS] Add carrier config "use_rcs_sip_options_bool" for check if SIP OPTIONS is supported" am: 74ad1b81ab am: 54e73b6e1a
am: 4099874d5c

Change-Id: I2b4cb5f4f1874b019753d46f9f58f5a85b6da7be
2019-10-02 14:15:48 -07:00
Jordan Liu
b550ae2a2c Merge "Expose CdmaSmsCbProgramData as SystemApi" am: e3dfe362dc am: 94d4fcb7b3
am: c6ac2a7ebe

Change-Id: I272e5ebb0b8697f68d0ea4df5f0a0b1f2fd3fadc
2019-10-02 14:10:31 -07:00
TreeHugger Robot
2b9c580af0 Merge "Move getMmsConfig from SmsManager to MmsService." 2019-10-02 21:05:17 +00:00
Brad Ebinger
7acb9ff577 Merge "Add Telecom command for setting connectionservice filter" am: 25f4dca660 am: 05e03e8c0c
am: 4d4dc1165a

Change-Id: Id7e2c0c4f6c18b074ba40d31dbb43ec2dfc269fc
2019-10-02 14:03:19 -07:00
Chen Xu
f85cf993d3 telephony annotations part 2
adding missing annotations

Bug: 140908357
Test: Build
Change-Id: I6de632ef7ef01a939971b7d1bacb227ec5ff4048
2019-10-02 13:48:50 -07:00
Xiangyu/Malcolm Chen
781630e4b4 Merge changes from topic "141388730"
* changes:
  In CarrierTextController replace getPhoneCount with getMaxPhoneCount.
  Replace getPhoneCount with getMaxPhoneCount upon object allocation.
2019-10-02 17:13:05 +00:00
James Lin
54e73b6e1a Merge "[RCS] Add carrier config "use_rcs_sip_options_bool" for check if SIP OPTIONS is supported"
am: 74ad1b81ab

Change-Id: I67c40753c0ae96893ed13e78f482782b4f67ccb2
2019-10-02 08:44:33 -07: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
TreeHugger Robot
22fc821266 Merge "Create frameworks/base/telephony/common for common non-mainline telephony code." 2019-10-01 21:26:56 +00:00
Jordan Liu
94d4fcb7b3 Merge "Expose CdmaSmsCbProgramData as SystemApi"
am: e3dfe362dc

Change-Id: I8ff5254d03558c69bc0cd8fd57a7337349de6be2
2019-10-01 13:51:51 -07:00
Jordan Liu
e3dfe362dc Merge "Expose CdmaSmsCbProgramData as SystemApi" 2019-10-01 20:33:29 +00:00
Chen Xu
4884beda8b Merge "new telephony annotation class" 2019-10-01 19:57:46 +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
Amit Mahajan
d355153dcb Create frameworks/base/telephony/common for common non-mainline telephony code.
And move mms util code to the new folder.

Test: basic sanity
Bug: 140763963
Change-Id: I0d92ed3fca1fc186484ea8d3c5d17b6e332e7d22
2019-10-01 11:29:23 -07:00
Amit Mahajan
214f7ec7fa Move getMmsConfig from SmsManager to MmsService.
Test: basic sanity
Bug: 140763963
Change-Id: If0a4b319f23d1a01e98f64ed1ae6eb6b90ccb02a
2019-10-01 11:05:10 -07:00
Brad Ebinger
05e03e8c0c Merge "Add Telecom command for setting connectionservice filter"
am: 25f4dca660

Change-Id: I00ba7ce3b64f4680eaf8798c52d98318160b45f0
2019-10-01 10:51:45 -07:00
Nathan Harold
e65e064e22 Merge "Add Debounce text to ACTION_NETWORK_COUNTRY_CHANGE"
am: c75cf96f72

Change-Id: I4485da245b76c4ed8fba638092912564acc0927e
2019-10-01 10:46:48 -07: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
Jordan Liu
566ff18cc5 Merge "Expose CdmaSmsCbProgramData as SystemApi" 2019-10-01 17:39:17 +00: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
7fe39a8776 Merge "Add carrier config for ignoring user RTT setting"
am: e93165456c

Change-Id: I73a4ab7963525669ccc74ef634345077e0ce618f
2019-09-30 18:46:17 -07: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
Brad Ebinger
4016d704e4 Merge "Integrate the active emergency session listener in TelephonyRegistry" am: 4a54c2fa2b am: 64418f4c31
am: 32dfda5c4a

Change-Id: Ie82cc7eb41329821fc79ac94659ab84c3b59c3f2
2019-09-30 16:36:03 -07:00
Brad Ebinger
32dfda5c4a Merge "Integrate the active emergency session listener in TelephonyRegistry" am: 4a54c2fa2b
am: 64418f4c31

Change-Id: Ideeb0afb508068fbe6feebbd472e94a24d94192f
2019-09-30 16:22:04 -07:00
Brad Ebinger
64418f4c31 Merge "Integrate the active emergency session listener in TelephonyRegistry"
am: 4a54c2fa2b

Change-Id: I890a913c18332669dee8f21baf81db78a50a0fb0
2019-09-30 16:08:04 -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
Chen Xu
c9d4ee112e new telephony annotation class
This is a preparatory work for mainline. since Intdef is hidden, so we
have to move some annotations (applied in SDK/system API) to a separate
annotation class and having other module statically link to it.

TODO: include telephony annotation in framework-non-updatable-sources

Bug: 140908357
Test: Build
Change-Id: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
2019-09-30 14:36:11 -07:00
Amit Mahajan
87778b8652 Merge "Remove unused @hide APIs from SmsManager." 2019-09-30 20:48:53 +00: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
Amit Mahajan
24c01a2f79 Remove unused @hide APIs from SmsManager.
Also created a new MmsManager and moved imms APIs there. Will
make MmsManager @SystemApi in a later CL.

Test: basic sanity
Bug: 140763963
Change-Id: If22a85887c1aae0ab80562d58bc08c6965fd470f
2019-09-30 11:22:20 -07:00
James Lin
643a1ff260 Merge "[RCS] Add carrier config "use_rcs_sip_options_bool" for check if SIP OPTIONS is supported" 2019-09-28 05:21:39 +00:00
Shuo Qian
f31d7e8edf Merge "Integrate the active emergency session listener in TelephonyRegistry" 2019-09-28 02:18:54 +00:00
Jordan Liu
e8fb76af19 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
2019-09-27 16:34:34 -07:00
Shuo Qian
134334bb6e Integrate the active emergency session listener in TelephonyRegistry
Add Telecom shell command: "adb shell telecom set-system-dialer"

Test: PhoneStateListener cts
Bug: 135204580
Change-Id: I5eaada6a671606642a849f0ff6fe964332d80d5f
2019-09-27 14:22:51 -07:00
Jack Yu
105f65068c Added read phone state permission for getNetworkCountryIso
The slot based version of getNetworkCountryIso is a system API.
So it needs to be gaurded by permission.

Bug: 141646066
Test: Telephony sanity tests
Change-Id: I810ff0b77b93870ae3f62769977c7094789d0a5a
2019-09-26 11:44:52 -07:00
Chen Xu
1fbe02f117 Merge "use @SystemAPI for creating UserHandle" am: 420bf71217 am: e207bff221
am: e62f727fdb

Change-Id: I6f297afa39e33df333284b9d27abcbb155a1d06d
2019-09-25 22:14:57 -07:00
Chen Xu
b92ef48424 Merge "use @SystemAPI in AppOpsManager" am: 83fe845c8c am: 7ca0425127
am: a5d9fba763

Change-Id: I2c69a471dca995e474893d2ec068cc001c2c8b5f
2019-09-25 22:14:47 -07:00
Chen Xu
4427f74485 Merge "use packageManager @SystemAPI" am: e958bbd8ae am: 206d891d07
am: f9c3973b11

Change-Id: I824d83b6c6cada0c29a302b93644a08766c4a2a7
2019-09-25 22:14:34 -07:00
Chen Xu
e62f727fdb Merge "use @SystemAPI for creating UserHandle" am: 420bf71217
am: e207bff221

Change-Id: I3658d64caae42a3fc229956b34e7e077e2630c90
2019-09-25 21:57:21 -07:00