Commit Graph

3771 Commits

Author SHA1 Message Date
Jack Yu
d517ea753f Merge "Expose getters for RSRP, RSRQ, RSSNR, and CQI in CellSignalStrengthLte. Regenerate api accordingly. BUG: 32609966 Test: CTS Testing new API" am: 4469e48d5c
am: 3cfa510779

Change-Id: I65746e4959851eb4662881db4fd8d9665070da71
2016-11-11 19:57:55 +00:00
Jack Yu
3cfa510779 Merge "Expose getters for RSRP, RSRQ, RSSNR, and CQI in CellSignalStrengthLte. Regenerate api accordingly. BUG: 32609966 Test: CTS Testing new API"
am: 4469e48d5c

Change-Id: Id92b8eaeec12885af3748d1e839da1a5560e2619
2016-11-11 19:51:23 +00:00
Jack Yu
4469e48d5c Merge "Expose getters for RSRP, RSRQ, RSSNR, and CQI in CellSignalStrengthLte. Regenerate api accordingly. BUG: 32609966 Test: CTS Testing new API" 2016-11-11 19:41:46 +00:00
Ta-wei Yen
c9698a5cff Merge "Add createForPhoneAccountHandle() and getServicetate() Respect TelephonyManager's subId when listening to phone state" am: 0a3b6b70dd
am: 969a6eb2b8

Change-Id: I2a5d31c342efc7e3ca4f29448b24d406253c7b0f
2016-11-10 22:08:35 +00:00
Ta-wei Yen
969a6eb2b8 Merge "Add createForPhoneAccountHandle() and getServicetate() Respect TelephonyManager's subId when listening to phone state"
am: 0a3b6b70dd

Change-Id: I512e68bccda115ad7c58ec1f1fbfbb2c69c86578
2016-11-10 22:02:17 +00:00
Ta-wei Yen
05f9112d15 Add createForPhoneAccountHandle() and getServicetate()
Respect TelephonyManager's subId when listening to phone state

TelecomManager perfers to use a PhoneAccountHandle to represent a
account but TelephonyManager prefers subscription IDs.

This CL added createForPhoneAccountHandle() in TelephonyManager so
telephony values can be queried from it.

Currently the ServiceState can be retrieved through registering a
PhoneStatelistener, but it is a callback which the handler cannot be
specified.

getServiceState() is added to allow the ServiceState to be polled.

While TelphonyManager has createForSubscriptionId(), listen() does not
respect the subId on the manager created from it, and will always use
the hidden subId on the listener, which is always the default subId
through public API.

After this CL, the default subId on the listener will null.
TelephonyManager use its' own subId if the listener does not set the
subId to something else.

Bug: 32637799
Bug: 32414216
Test: cts-tradefed run cts-dev --module CtsTelephonyTestCases
Change-Id: I9995e4da1573cf1f6b6e4acf2daf7a538fb60d5f
2016-11-10 12:11:56 -08:00
Kevin Su
211c1c2ca8 Expose getters for RSRP, RSRQ, RSSNR, and CQI in CellSignalStrengthLte.
Regenerate api accordingly.
BUG: 32609966
Test: CTS Testing new API

Change-Id: I2603fc0001f31ff23f02f4fdf2a72b33f2750a4c
2016-11-09 13:27:20 -08:00
pengzhicai
d7df704d98 Merge "Fix String is empty issue" am: 80af1ba47b
am: 38c585cb8d

Change-Id: I091572280b0b2a33a2a5e2339a08df0759bb2bd7
2016-11-02 18:29:24 +00:00
pengzhicai
38c585cb8d Merge "Fix String is empty issue"
am: 80af1ba47b

Change-Id: I7000d0fe8fd5c2145e628abec11b49653027138b
2016-11-02 18:23:26 +00:00
pengzhicai
7c30bb8e0f Fix String is empty issue
Maybe the string is empty
https://code.google.com/p/android/issues/detail?id=226739

Change-Id: I645ae05a8cbe316e29d9710de0bbba64c0c2275d
Signed-off-by: pengzhicai <pengzhicai@xiaomi.com>
2016-11-02 09:42:44 +08:00
Jordan Liu
ff13cc20fe resolve merge conflicts of ab00546 to stage-aosp-master
am: bc2af49c21

Change-Id: I95cfcd3907105ef1969f02bf1229ba0c5eb9b8c7
2016-10-26 20:12:56 +00:00
Jordan Liu
bc2af49c21 resolve merge conflicts of ab00546 to stage-aosp-master
Change-Id: Ief51ceeeae7a11e26dd2c53411ce67e6d0e6bd49
2016-10-26 12:05:27 -07:00
Jordan Liu
ab005465b6 Merge "Add key to CarrierConfigManager" 2016-10-26 17:50:45 +00:00
nharold
c8fceb9834 Merge "Update the docstring on getAllCellInfo() for unreported values" am: 88d0a95c74
am: b7e5c6fa32

Change-Id: Ie5f6460962fac98bd63aa7b7d4e77e5bc84347e7
2016-10-25 01:06:07 +00:00
nharold
b7e5c6fa32 Merge "Update the docstring on getAllCellInfo() for unreported values"
am: 88d0a95c74

Change-Id: Ib482a5398776473ccb97c4df96115fc3763c782f
2016-10-25 00:57:36 +00:00
Nathan Harold
e327160103 Update the docstring on getAllCellInfo() for unreported values
In the event that not all fields are available for a particular
cell information report, those values are set to
Integer.MAX_VALUE. In addition, this docstring clarifies the
minimum expectation for what will be reported in all cases.

Bug: 32364031
Test: none
Change-Id: Ic5df72f69e5917eb495d349a380ced53a80408fa
2016-10-24 15:59:23 -07:00
Sooraj Sasindran
12575e41b8 Introduce the config to disable LAUNCH_BROWSER
LAUNCH BROWSER STK command may need to be disabled
if carrier would not want the default behavior.
So introduce a carrierconfig key for the same

Test: Swapped the sprint sim cards and verified
that browser launch do not happen.

Merged-in: Iaff062547f5286b2c0b2c2c4c6182a287f07284b
BUG=31257758
Change-Id: Iaff062547f5286b2c0b2c2c4c6182a287f07284b
2016-10-14 23:15:24 +00:00
Hall Liu
ecc5e42284 Add logging to CallerInfoAsyncQuery am: 4c01910cb0
am: d4f18dd117

Change-Id: I5cdba233e5cc9f47527a9ef6fb69c40b70ae90a9
2016-10-06 22:01:10 +00:00
Hall Liu
4c01910cb0 Add logging to CallerInfoAsyncQuery
Add logging to CallerInfoAsyncQuery to help diagnose timeout errors

Bug: 31755827
Change-Id: If7cf34baf084ca8916952842585a32b3e93eba73
2016-10-05 16:56:17 -07:00
Jordan Liu
f2456cb127 Add key to CarrierConfigManager
Add KEY_DEFAULT_VM_NUMBER_STRING and default value. Note that default
vm number no longer needs to be a string array, as gid is handled
within the new carrier_configs. Also remove references to old config.
Merged-In: I56e4e3713c27f449fd892db501b6097c8c89c3c6

Bug: 29873049
Change-Id: I56e4e3713c27f449fd892db501b6097c8c89c3c6
2016-10-05 11:02:38 -07:00
Jordan Liu
5ffaae6efe Merge "Add editable_voicemail_number key to CarrierConfig" am: 25b64aad01 am: 2b7118fcbf
am: c44e7f3f76

Change-Id: I208e7871029efc1ca331fac3b240d337d00d3189
2016-10-04 18:30:19 +00:00
Jordan Liu
3643dd1a7a Add editable_voicemail_number key to CarrierConfig
Add KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL and default value to
CarrierConfigManager, and remove the references to the old config in
core/res/res/values/[config.xml/symbols.xml]

This value exists to fix http://b/14093735. If a SIM card has no
voicemail number available, since the default number is empty, we allow
users to edit the voicemail number when this flag is true.
Merged-In: I68a494e2176306e4e9181a8ccb0aa818f3e08154

Bug: 29873049
Change-Id: I68a494e2176306e4e9181a8ccb0aa818f3e08154
2016-09-29 17:21:15 -07:00
Jordan Liu
a7768e2b15 fix branch break by adding carrierconfig key am: e787323e03
am: 1e1c060378

Change-Id: I0d76442494289c6b920c84a7c07bd635f515da88
2016-09-29 23:53:52 +00:00
Jordan Liu
e787323e03 fix branch break by adding carrierconfig key
Add KEY_CDMA_3WAYCALL_FLASH_DELAY_INT and default value to
CarrierConfigManager

Bug: 29873049
Change-Id: I53dc93defbfa7d1366e6ee066638d73df03f88d0
2016-09-29 15:25:46 -07:00
Jordan Liu
180aadfb86 Merge "Add dial_string_replace key to CarrierConfig" am: 715903f3c6 am: 9fba74dd3a
am: d34ae93d8b

Change-Id: I6753d00b4d9fed455cb153294f956cf3ad9f826f
2016-09-29 18:12:39 +00:00
Jordan Liu
14f4fd7d0b Merge "Add cdma_3waycall_flash_delay key to CarrierConfig" 2016-09-29 17:15:05 +00:00
Meng Wang
68b84f7301 Support WFC roaming preference am: 2c25e4a96b
am: 6db4fbecf8

Change-Id: Idff74a470e26b6c14ba1203290f533813740e192
2016-09-29 00:29:17 +00:00
Meng Wang
6db4fbecf8 Support WFC roaming preference
am: 2c25e4a96b

Change-Id: I8a1af9756ddf5a4359cfd94aa6eebfdcb87b9e13
2016-09-29 00:22:01 +00:00
Meng Wang
cfe950f6be Merge "Support WFC roaming preference" into nyc-mr1-dev 2016-09-29 00:13:51 +00:00
Jordan Liu
705cbc763f Add dial_string_replace key to CarrierConfig
Add KEY_DIAL_STRING_REPLACE_STRING_ARRAY and default value (null) to
CarrierConfigManager, and remove the references to the old config in
core/res/res/values/[config.xml/symbols.xml]

This value exists to fix http://b/17202092. We specify a map from
dialstrings to replacements for roaming network service numbers which
cannot be replaced on the carrier side.

Merged-In: I852261596d3931f38d5f1c6b3d24ffe27f950458

Bug: 29873049
Change-Id: I99d97bb25ef57c178d004ae17d97a6c7672734e2
2016-09-27 15:35:27 -07:00
Jordan Liu
761ffab151 Merge "Add key to CarrierConfig" am: 154c22d2d4 am: fda7370ddd
am: cf99a8e2e9

Change-Id: I2eb06df15a6605e8e688de470a0cd926e9989979
2016-09-27 22:34:16 +00:00
Brad Ebinger
3b3e0510c7 Adds a Disconnect Cause for Emergency Redial am: bd13f22f83
am: 7c8ad05c56

Change-Id: I60ffb85ab5dc258d9e6aebc30e7f83dcf01bddaa
2016-09-26 23:50:38 +00:00
Brad Ebinger
7c8ad05c56 Adds a Disconnect Cause for Emergency Redial
am: bd13f22f83

Change-Id: Icffef087dbfbc902ca3347a325a0acfe05326a25
2016-09-26 23:27:33 +00:00
Ariel Yin
0a2d3dcb03 Merge "Adds a Disconnect Cause for Emergency Redial" into nyc-mr1-dev 2016-09-26 23:19:16 +00:00
Meng Wang
2c25e4a96b Support WFC roaming preference
Added keys in CarrierConfig and Settings.Global

Bug: 31492826
Change-Id: Ice33f6ee5c42b92ed2f7258ff8b28c50510cde31
2016-09-23 12:09:02 -07:00
Brad Ebinger
d68c80d093 Add RadioAccessFamily rank am: de780c84b5
am: 86739bd8d6

Change-Id: I05c4d9d3269ca893b51529df96760bda5b31db8b
2016-09-23 00:11:10 +00:00
Brad Ebinger
86739bd8d6 Add RadioAccessFamily rank
am: de780c84b5

Change-Id: I60352df2052169c722045669069fef8002561574
2016-09-22 23:20:35 +00:00
Brad Ebinger
6f0cbd9297 Merge "Add RadioAccessFamily rank" into nyc-mr1-dev 2016-09-22 23:10:06 +00:00
Brad Ebinger
bd13f22f83 Adds a Disconnect Cause for Emergency Redial
The radio has the ability to send back a "redial on the other slot"
DisconnectCause. This adds that DisconnectCause definition.

Bug: 31498841
Change-Id: I9a59cc81ba03562531b0445e3acb5eeec99b1aba
2016-09-21 16:38:48 -07:00
Brad Ebinger
de780c84b5 Add RadioAccessFamily rank
Modifies RadioAccessFamily to rank call technology and changes affected
comments.

Change-Id: I7ae8516e7dd167fc02d2ff931f6adc6f14e40296
Fixes: 31091840
Fixes: 31621719
2016-09-21 23:34:31 +00:00
Amit Mahajan
6a6bfb8236 Added new config to indicate uneditable APN fields. am: 71e9ea6770
am: 49985fb986

Change-Id: I7bf6c7c5c3b107639217f0a81b4d1a9f5f638a02
2016-09-21 02:22:35 +00:00
Jordan Liu
bd3f2a7eb0 Add cdma_3waycall_flash_delay key to CarrierConfig
Add KEY_CDMA_3WAYCALL_FLASH_DELAY_INT and default value to
CarrierConfigManager, and remove the references to the old config in
core/res/res/values/[config.xml/symbols.xml]
Merged-In: I53dc93defbfa7d1366e6ee066638d73df03f88d0

Bug: 29873049
Change-Id: I53dc93defbfa7d1366e6ee066638d73df03f88d0
2016-09-20 11:10:39 -07:00
Amit Mahajan
71e9ea6770 Added new config to indicate uneditable APN fields.
Bug: 30457714
Change-Id: I2e089f16a7f4e77b8f0bdd10e0c63bbc4a3a11a1
2016-09-20 10:58:57 -07:00
Amit Mahajan
6d3a6f21e6 Added new config to indicate read-only apn types. am: 923963ff31
am: 25b3ce28b6

Change-Id: I9db93d56b6ea81841d23f6799980bea55ed48b78
2016-09-19 16:42:49 +00:00
Amit Mahajan
25b3ce28b6 Added new config to indicate read-only apn types.
am: 923963ff31

Change-Id: I49a9e1ae11944af6cf0a433c40119ca97381c5cd
2016-09-19 16:35:44 +00:00
TreeHugger Robot
3dfd09e860 Merge "Added new config to indicate read-only apn types." into nyc-mr1-dev 2016-09-19 16:30:21 +00:00
Amit Mahajan
923963ff31 Added new config to indicate read-only apn types.
Bug: 31074581
Change-Id: Ib0b19ef038d8c99380364eb81c4f7dd24bcc27fa
2016-09-16 12:35:36 -07:00
Jordan Liu
12bc4ea71e Add key to CarrierConfig
Add RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION and default value
(false) to CarrierConfigManager, and remove the old configs.

This value exists because:
http://b/10131736, requires radio restart.
http://b/16308209, http://b/17567651 require that we do not restart.

Merged-In: I4e199d7fe73b82fa39475f31825e5b8ae58d180f

Bug: 29873049
Change-Id: Ie9f8665ff40e2082cf92aa8b4dc337c5ea2ea974
2016-09-14 14:30:31 -07:00
Jack Yu
1bbe6da5fc Extend apn retry configurability to more apn types am: c1f0e87051
am: 5e45c9c673

Change-Id: I69a8a679618f1ef99fced019569b55a4810fcc44
2016-09-13 20:28:19 +00:00
Jack Yu
5e45c9c673 Extend apn retry configurability to more apn types
am: c1f0e87051

Change-Id: Id44b57c992efb8d649a2fa409b798714364c5dcc
2016-09-13 20:22:23 +00:00