Commit Graph

3928 Commits

Author SHA1 Message Date
Sooraj Sasindran
32e446bf00 Introduce AlternativeNetwork APIs
Introduce AlternativeNetwork APIs

Bug: 113106744
Test: Verified using test app to make api calls
Change-Id: I134d1aef40f014378fd1364e0bfec6926fe2093e
Merged-In: I7f470cd6028a12cc66a660d58720f803271d38eb
2018-10-11 16:45:08 +00:00
Hall Liu
2d82493ded Merge "Wire up the stopRtt API" 2018-10-06 00:49:14 +00:00
Pengquan Meng
66a0899785 Merge "Fix incorrect API comments of getSubId()" 2018-10-06 00:13:01 +00:00
Shuo Qian
379ca95c89 Merge "Add Parcelable EmergencyNumber and APIs" 2018-10-05 22:29:36 +00:00
Pengquan Meng
4e2678d184 Fix incorrect API comments of getSubId()
getSubid() return the SubscriptionManager#getDefaultSubscriptionId()
when TelephonyManager created without the subId.

Bug: 111453847
Test: Build
Merged-In: I8e38ef43b5f23bbedc4d584df78c12f250b88fcc
Change-Id: I8e38ef43b5f23bbedc4d584df78c12f250b88fcc
2018-10-05 14:25:52 -07:00
Tyler Gunn
5d0d0edc22 Merge "Add finer grained call fail reasons." 2018-10-05 20:35:55 +00:00
sqian
ff1dc37540 Add Parcelable EmergencyNumber and APIs
Test: unit test
Bug: 112657134
Change-Id: If926291e3f6fb6d2a3acd3d28d2ead85fbf01364
2018-10-04 17:07:57 -07:00
Cassie Han
56dedc8fe8 Merge "Clean cherry-pick 'Fix getApnTypesBitmaskFromString in ApnSetting'" 2018-10-04 20:35:07 +00:00
Cassie
5d2b861509 Clean cherry-pick 'Fix getApnTypesBitmaskFromString in ApnSetting'
Bug: 116363528
Test: Maunal test
Change-Id: Ie2fda3fe4e2519f652e0a04dde058be748208bd5
Merged-In: Ie2fda3fe4e2519f652e0a04dde058be748208bd5
2018-10-04 20:31:05 +00:00
Tyler Gunn
440158df4f Merge "Rename EXTRA_E_CALL to EXTRA_EMERGENCY_CALL." 2018-10-04 15:21:51 +00:00
Clown SHEN
1bab71e0c4 Merge "New carrier config enhanced_4g_lte_title_variant_int" 2018-10-04 00:07:19 +00:00
Jack Yu
2966539634 Merge "Renamed get network registration states API" 2018-10-03 21:35:57 +00:00
Youming Ye
4fb756984d Merge "Fix ImsManager callback called once registered" 2018-10-03 20:15:35 +00:00
Nathan Harold
d264669c7c Merge "Use SDK Constant for NeighboringCellInfo Docstring" 2018-10-03 01:21:17 +00:00
Jack Yu
37a1fc31b5 Renamed get network registration states API
Using the term "for" is more appropriate than "from".

Test: Build
Bug: 73659459
Change-Id: I9e06a35979b887a14822862f290798a7f75a54f8
2018-10-02 17:01:51 -07:00
Jack Yu
f2e9856f49 Merge "Reworked getNetworkRegistrationStates API" 2018-10-02 23:34:15 +00:00
Nathan Harold
3d850a7fd7 Use SDK Constant for NeighboringCellInfo Docstring
As per API council feedback, when documenting
SDK-level-specific behavior and recommendations, the
document should use and link to the SDK constant rather
than its value. Update the docstring accordingly, and
also some minor verbiage tweaks.

Bug: 117154674
Test: compilation; docstring-only change
Change-Id: I0ee56a4d76a311a8e0136766ef45aeda46cd12b4
2018-10-02 16:10:21 -07:00
Tyler Gunn
70f9063dde Rename EXTRA_E_CALL to EXTRA_EMERGENCY_CALL.
Test: Update API, verify code compiles.
Bug: 117145353
Change-Id: Ic5e2618144eaaa4c836d085fe4555eb5d9b2947f
2018-10-02 15:25:06 -07:00
Jack Yu
b4ae477213 Reworked getNetworkRegistrationStates API
Added two new APIs for getting network registration states
from domain and transport type. Deprecated the old APIs.

Test: Manual
Bug: 73659459
Change-Id: I3143df320f2942213aa0f10fe3cca9851bd82bb8
2018-10-02 12:11:36 -07:00
Tyler Gunn
47e04dab13 Add finer grained call fail reasons.
The "can dial" method does a lot of complicated checks which end up
boiling down to a not so intuitive error to the user.

Making this better.

Test: Update unit test for can dial basic operation.
Test: Manual test these scenarios.
Bug: 73902028
Bug: 116453747
Change-Id: Ifdf681a1428c7cbb925cdf7f0c66c2d011c3d492
2018-10-01 14:49:19 -07:00
Brad Ebinger
417b7b14bb Merge "Revert isResolvingImsBinding ITelephony interface" 2018-10-01 20:58:56 +00:00
Youming Ye
e29019dd41 Fix ImsManager callback called once registered
ImsRegistration callback now extends ImsRegistrationCallback stub, no
need of wrappings when registered in MmTelFeatureConnections.

Change-Id: Ia04202ef9c16815897eb3fd713125adac01f2550
Test: Unit
Bug: 112677827
2018-10-01 09:19:50 -07:00
Hall Liu
e6607763b2 Merge "Add config to only allow auto select of networks" 2018-09-28 23:15:03 +00:00
Nathan Harold
e164be3176 Merge "Remove getNeighboringCell API" 2018-09-28 21:40:47 +00:00
Brad Ebinger
25311cd31c Revert isResolvingImsBinding ITelephony interface
Reverting the only user of this interface.

Bug: 109762920
Bug: 116766786
Test: GTS/Unit tests for ImsService
Merged-In: I9c8cc1c4401590865f33fa13402152287063cecf
Change-Id: Id2e1ac2e4fbbcb7f019e79568f21ee56c94b6c1f
2018-09-28 20:11:53 +00:00
clownshen
a873153927 New carrier config enhanced_4g_lte_title_variant_int
Carriers requires that changing the title as "4G Calling" for Enhanced 4G LTE
Mode settings.
Using int as index of string array would more flexible for different carriers

Bug: 112676117
Test: Manual test, setting config to 0, 1 or -1 to change the index for
verifying different variant title of Enhanced 4G LTE Mode settings.

Change-Id: I5ce96969337bc291dea98d5a7b01e3c182926bd9
2018-09-28 16:17:53 +08:00
Nathan Harold
84c2b6a843 Merge "Catch IllegalArgumentException on NetworkScan.stopScan" 2018-09-27 23:55:01 +00:00
Malcolm Chen
3c758b701c Implement equal method in SubscriptionInfo.
Bug: 115541873 92796390
Test: manual with test app
Change-Id: I217f9d612df5cecac8f0359649f3e79a60a95dde
Merged-In: I217f9d612df5cecac8f0359649f3e79a60a95dde
2018-09-27 11:59:31 -07:00
Nathan Harold
ce40801ef5 Catch IllegalArgumentException on NetworkScan.stopScan
IllegalArgumentException is thrown when a terminated
scan calls stop. This change softens the exception and
error type that is logged and considers this normal.

Bug: 113823866
Test: compilation
Change-Id: I7ce60d6badfac52156cceca83b39c1afe21b4eda
2018-09-27 11:17:22 -07:00
Mattias Nilsson
ef87416d7d Add config to only allow auto select of networks
Make it possible for carriers to prevent users from
doing a manual search of networks when in the home network.
This affects Advanced Networks Settings when the user
is not roaming.

This is sometimes called "Permanent automatic mode".

Test: Add an entry in vendor.xml
Bug: 70499144
Change-Id: I9fe91a8510683e4bb3d51efb168c0d159dbb4591
2018-09-27 15:19:07 +00:00
Lalit Maganti
c5a1a5e543 Merge "Revert "Revert "new System API for preferred network mode""" 2018-09-27 15:00:12 +00:00
Lalit Maganti
70534bf1be Revert "Revert "new System API for preferred network mode""
This reverts commit dada4c60d8.

Reason for revert: Breaking aosp-master builds.

Change-Id: Ie48b2125025878ce13953706a7eec24bce38594b
2018-09-27 14:57:06 +00:00
Lalit Maganti
4106e419b2 Merge "Revert "new System API for preferred network mode"" 2018-09-27 12:17:40 +00:00
Lalit Maganti
dada4c60d8 Revert "new System API for preferred network mode"
This reverts commit 8a8832fd81.

Reason for revert: Causing failures on git_pi-dev-plus-aosp for docs and aosp_sailfish.

Change-Id: I1801188e66420a67244b3223e26334c4650d56be
Merged-In: Ic108c484905f80783982a22e8152609257d684b5
2018-09-27 10:52:55 +00:00
Hall Liu
137d35fa78 Wire up the stopRtt API
Connect the implementation of the onStopRtt API in Connection to the one
in the IMS stack.

Bug: 116671810
Test: manual
Change-Id: Ia42e61cc1f11542ece8ffaa8d7e5714aea599a7f
2018-09-26 17:54:06 -07:00
Chen Xu
314dcd2874 Merge "new System API for preferred network mode" 2018-09-27 00:30:29 +00:00
Tyler Gunn
c4833e862e Merge "Cleanup deprecated or removed telephony methods." 2018-09-26 21:55:36 +00:00
chen xu
8a8832fd81 new System API for preferred network mode
1. new System API for getPreferredNetworkType
2. new System API for preferred network mode

Bug: 115894190
Test: unit test
Change-Id: I34b060d3f915f2c74b2b9412d03f849e9d037c0b
Merged-in: Ic108c484905f80783982a22e8152609257d684b5
2018-09-26 14:49:07 -07:00
Chen Xu
7cdc0f00eb Merge "expose getAidForApptype to system API" 2018-09-26 21:03:26 +00:00
Shuo Qian
fafc51a088 Merge "Make SubscriptionManager.isActiveSubId public" 2018-09-26 18:19:52 +00:00
Hall Liu
544b8efa46 Merge "Add intdef for Telephony network type constants" 2018-09-25 22:45:39 +00:00
Youming Ye
6fa8bcb841 Merge "Show "Call Blocking disabled" notification always when emergency call" 2018-09-25 22:29:39 +00:00
Chen Xu
56d40d3c78 Merge "expose getIsimDomain to systemAPI" 2018-09-25 22:14:34 +00:00
fionaxu
56dd7acda2 expose getAidForApptype to system API
Bug: 115891723
Test: telephony unit test
Change-Id: Ica1d6facba229781806c2c205406c658ac5ad838
2018-09-25 14:05:40 -07:00
Hall Liu
52a8fdb7bd Merge "Add the EMBMS group call API" 2018-09-25 20:38:23 +00:00
Hall Liu
cb46f9eeba Add intdef for Telephony network type constants
Change-Id: Id212f5009ff2d57344dd747c1837ad9ff1546e31
Fixes: 116592397
Test: compiles
2018-09-25 11:21:30 -07:00
Kikkawa Shohei
638d11e0bb Show "Call Blocking disabled" notification always when emergency call
Currently "Call Blocking disabled" notification is shown only when any
setting of "Enhanced Blocked number" is enabled, and it's not shown even
if only "blocked number" is enabled.

This patch adds new CarrierConfig key to show "Call Blocking disabled"
notification always when "Enhanced Blocked number" is enabled and
making emergency call.

Test: manual - Verified behavior about Block numbers settings
Test: auto - Passed BlockedNumberProviderTest
Bug: 115697577
Change-Id: I2281c21992928037ea38227b7476adc76b6755e8
2018-09-25 14:18:55 +09:00
Hall Liu
a7b0c1f054 Add the EMBMS group call API
Add APIs for apps to access a LTE broadcast group call service provided
by a preinstalled middleware app, and add system APIs for the
preinstalled middleware app to communicate with frontend apps.

Bug: 112731375
Test: CTS
Change-Id: Ie6817cbc6c3b69de7a4d66c4cfc103b02e15ad6b
2018-09-24 17:26:25 -07:00
Tyler Gunn
108349f8d6 Merge "Add support for network identified emergency calls." 2018-09-24 22:50:50 +00:00
sqian
ec149463cc Make SubscriptionManager.isActiveSubId public
Rename subId to subscriptionId

Bug: 113072551
Test: Treehugger
Change-Id: I6f7e0d06a2ad2367dad04723fea808cad8f9597a
2018-09-24 12:30:10 -07:00