Commit Graph

3946 Commits

Author SHA1 Message Date
Sooraj Sasindran
98966bcbb6 Merge "Introduce AlternativeNetwork APIs" 2018-10-11 22:58:32 +00:00
Treehugger Robot
bb9f855faa Merge "getTelephonyProperty returns defaultVal" 2018-10-11 20:30:17 +00:00
Chen Xu
cb90628990 Merge "Create URI for individual user settings in SIMINFO" 2018-10-11 18:19:12 +00:00
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
Treehugger Robot
0d954557a1 Merge "Fix incorrect javadoc links" 2018-10-10 23:23:53 +00:00
Treehugger Robot
419fc89b52 Merge "Phone service state change atom." 2018-10-10 19:51:36 +00:00
Yangster
4ccebeadc7 Phone service state change atom.
Background: BatteryStatsService tracks the phone scanning time metric. In Q,
we are migrating the dumpsys-based collection to the new infra. This CL is to
instrument the new logging mechanism.

Test: statsd test
FIX: b/116748990

Change-Id: I3cf5e0026bfc6f594c5f7b524f14b3a43b702afb
2018-10-10 19:45:10 +00:00
Treehugger Robot
b7b19312f0 Merge "Fixed the indentation" 2018-10-10 01:05:26 +00:00
Jack Yu
84897e23fb Fixed the indentation
Test: Build
Change-Id: Id8a30734c1e4607b0396e0a985ab46502d8723b9
2018-10-09 16:24:23 -07:00
Malcolm Chen
800a7d6dbf Add VisibleForTesting to create TelephonyRegistryTest.
Bug: 113305153
Test: unittest
Change-Id: Ie59b2da76fbc813ce011d4d0ab3ff533a6006e14
Merged-In: Ie59b2da76fbc813ce011d4d0ab3ff533a6006e14
2018-10-09 14:50:20 -07:00
Xiangyu/Malcolm Chen
16fcd3dcff Merge "More descriptions on SubscriptionController#setPreferredData" 2018-10-09 18:18:11 +00:00
Malcolm Chen
8cf1b78693 More descriptions on SubscriptionController#setPreferredData
Bug: 115550764
Test: build
Change-Id: I25c3f89a3c3f8e8e6475221885d995bcb5684da4
Merged-In: I25c3f89a3c3f8e8e6475221885d995bcb5684da4
2018-10-08 20:09:09 -07:00
Pengquan Meng
0af8c5c73c Merge "Add isManualNetworkSelectionAllowed api to telephonyManager" 2018-10-08 22:16:52 +00:00
chen xu
a0007490e7 Create URI for individual user settings in SIMINFO
Bug: 112700925
Test: TelephonyProviderTest#testUpdateWfcEnabled
Change-Id: I85639c50c2b3abb27b9a87823726d080a817ed6f
2018-10-08 14:15:08 -07:00
Shuo Qian
37064062bb Merge "Make isUsableSubIdValue public" 2018-10-08 20:42:00 +00:00
Tor Norbye
f8dc2d204c Fix incorrect javadoc links
Test: make offline-sdk-docs
Bug: b/116163454
Change-Id: I55de1f71d443713b033ee63fd191bd34b3a52fd2
2018-10-08 19:58:17 +00:00
Pengquan Meng
23a405c016 Add isManualNetworkSelectionAllowed api to telephonyManager
Bug: 111453847
Test: build
Merged-In: Icdd60ab03fee4b2e7a08dda3c5c127a19ecac7ce
Change-Id: Icdd60ab03fee4b2e7a08dda3c5c127a19ecac7ce
2018-10-08 19:08:47 +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
sqian
798da56c92 Make isUsableSubIdValue public
Rename subId to subscriptionId

Bug: 113072551
Test: Treehugger
Change-Id: I54303bab4d40d6168332d0263e9de1603205bb75
2018-10-05 13:47:53 -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