OSDN Git Service

android-x86/hardware-ril.git
7 years agoRadio Interface changes to allow the modem to query the framework
pkanwar [Fri, 17 Mar 2017 19:49:34 +0000 (12:49 -0700)]
Radio Interface changes to allow the modem to query the framework
for the key.

This CL adds the 1.1 version of the HAL interface. It also introduces
support for 2 new messags:

1. setCarrierInfoForImsiEncryption
2. carrierInfoForImsiEncryption

BUG: 35606429
Test: manual
Change-Id: Iad02a20081e8bd1b8daaac396d20d888f8567252
Merged-In: I1d953914c23f8a1d94cc85e023ead3fd3c036ec5

7 years agoMerge "Fixed compilation error when MEMSET_FREED is turned on"
Treehugger Robot [Fri, 14 Apr 2017 22:39:24 +0000 (22:39 +0000)]
Merge "Fixed compilation error when MEMSET_FREED is turned on"

7 years agoFixed compilation error when MEMSET_FREED is turned on
Jack Yu [Fri, 14 Apr 2017 19:51:49 +0000 (12:51 -0700)]
Fixed compilation error when MEMSET_FREED is turned on

Currently MEMSET_FREED is off so no compilation error. But
in case this is on, we need to fix the compilation error.

Test: build
bug: 37347693
Change-Id: I5d95a58f39ee5ff12dabbad457747d3468d70f28

7 years agoMerge "Fixed incorrect parameter handling for setup data call"
Treehugger Robot [Fri, 14 Apr 2017 18:12:47 +0000 (18:12 +0000)]
Merge "Fixed incorrect parameter handling for setup data call"

7 years agoFixed incorrect parameter handling for setup data call
Jack Yu [Fri, 14 Apr 2017 03:55:03 +0000 (20:55 -0700)]
Fixed incorrect parameter handling for setup data call

Integers were incorrectly passed into dispatchStrings
and treated as string pointers. Also did not correctly
handle MVNO type NONE case.

bug: 36690591
Test: Telephony sanity tests
Change-Id: I1a4e0ef93ba8a1b63519d59b18f55af195ddbea2

7 years agoMerge "Add p2 option in openLogicalChannel"
Amit Mahajan [Tue, 11 Apr 2017 21:25:41 +0000 (21:25 +0000)]
Merge "Add p2 option in openLogicalChannel"

7 years agoAdd p2 option in openLogicalChannel
Wileen Chiu [Mon, 23 Nov 2015 22:25:22 +0000 (14:25 -0800)]
Add p2 option in openLogicalChannel

- Adding support for P2 parameter
- Needed to support OMAPI 3.0 defined
by SIM Alliance

Bug: 27360148
Change-Id: I9679178e2a6f0decd48f30e358685106b91163b8

7 years agoMerge "Use explicit .c_str() for hidl_string"
Treehugger Robot [Thu, 6 Apr 2017 19:47:44 +0000 (19:47 +0000)]
Merge "Use explicit .c_str() for hidl_string"

7 years agoUse explicit .c_str() for hidl_string
Scott Randolph [Mon, 3 Apr 2017 21:06:40 +0000 (14:06 -0700)]
Use explicit .c_str() for hidl_string

hidl_string no longer will provide an implicit cast to const char* as it
interfers with other expected behaviors of the class.  It now emulated
std::string in requiring a call to .c_str() to get the same behavior.

Bug:  36532780
Test:  Build the tree
Change-Id: I5d672f4a215f4272b7d5d87772667352cf2fb317
(cherry picked from commit 8a7c3b823805bad874f6a3303e40a1e21dd752da)

7 years agoMerge "Change radio related service names to slot1, slot2, slot3..."
Treehugger Robot [Tue, 4 Apr 2017 22:01:37 +0000 (22:01 +0000)]
Merge "Change radio related service names to slot1, slot2, slot3..."

7 years agoChange radio related service names to slot1, slot2, slot3...
Amit Mahajan [Tue, 28 Mar 2017 18:17:55 +0000 (11:17 -0700)]
Change radio related service names to slot1, slot2, slot3...

Test: Basic telephony sanity
Bug: 36570718
Merged-in: Ia3c3f7b3e2cedd05bafa2d335f9c04e831da0cf4
Change-Id: Ia3c3f7b3e2cedd05bafa2d335f9c04e831da0cf4

7 years agoMerge "rild.c: Use log/log.h instead of utils/Log.h"
Dan Willemsen [Tue, 4 Apr 2017 16:29:48 +0000 (16:29 +0000)]
Merge "rild.c: Use log/log.h instead of utils/Log.h"
am: 210d7d9059

Change-Id: Ie9ae3d51dda35dd29ac2a78b52e432811b111f9f

7 years agoMerge "rild.c: Use log/log.h instead of utils/Log.h"
Dan Willemsen [Tue, 4 Apr 2017 16:24:17 +0000 (16:24 +0000)]
Merge "rild.c: Use log/log.h instead of utils/Log.h"

7 years agorild.c: Use log/log.h instead of utils/Log.h
Dan Willemsen [Tue, 4 Apr 2017 04:58:13 +0000 (21:58 -0700)]
rild.c: Use log/log.h instead of utils/Log.h

This doesn't use libutils, so it shouldn't be using the libutils
headers. It doesn't use anything unique to utils/Log.h anyways.

It also shouldn't be using any headers from TARGET_OUT_HEADERS (aka
LOCAL_COPY_HEADERS)

Test: m -j rild
Change-Id: I64ef29cdc17a32e013bccfa799cb9c125386cf50

7 years agoMerge "SapImpl: log error description"
Steven Moreland [Wed, 29 Mar 2017 02:15:24 +0000 (02:15 +0000)]
Merge "SapImpl: log error description"
am: b3e6a478ff

Change-Id: Ibd4c8aa2c39e4c55e666392fc7d2bf98927cd461

7 years agoMerge "SapImpl: log error description"
Treehugger Robot [Wed, 29 Mar 2017 02:10:07 +0000 (02:10 +0000)]
Merge "SapImpl: log error description"

7 years agoSapImpl: log error description
Steven Moreland [Tue, 28 Mar 2017 15:55:58 +0000 (08:55 -0700)]
SapImpl: log error description

Test: pass
Bug: 35937742
Change-Id: I9784a15d8de5dc8a0bff849d5d3ef8c162bcb1a0

7 years agoMerge "Remove SAP socket."
Amit Mahajan [Tue, 28 Mar 2017 05:06:12 +0000 (05:06 +0000)]
Merge "Remove SAP socket."
am: 3ca9bd02b8

Change-Id: I602d5f3506c716445371dfa19ac6aa20c16f2386

7 years agoMerge "Remove SAP socket."
Amit Mahajan [Tue, 28 Mar 2017 04:56:37 +0000 (04:56 +0000)]
Merge "Remove SAP socket."

7 years agoRemove SAP socket.
Amit Mahajan [Wed, 22 Mar 2017 18:25:51 +0000 (11:25 -0700)]
Remove SAP socket.

Test: Basic SAP sanity
Bug: 32020264
Merged-in: Iece9d047db513e425e8a954e2ece2bba7e3e2535
Change-Id: Iece9d047db513e425e8a954e2ece2bba7e3e2535

7 years agoMerge "Move RILC logs under verbose flag to reduce the RILC log spam"
Jayachandran Chinnakkannu [Sun, 26 Mar 2017 02:35:46 +0000 (02:35 +0000)]
Merge "Move RILC logs under verbose flag to reduce the RILC log spam"
am: 13bbab0ddb

Change-Id: I9630182957c8c4f4932573c936aca029919b5eb8

7 years agoMerge "Move RILC logs under verbose flag to reduce the RILC log spam"
Jayachandran Chinnakkannu [Sun, 26 Mar 2017 02:32:18 +0000 (02:32 +0000)]
Merge "Move RILC logs under verbose flag to reduce the RILC log spam"

7 years agoMove RILC logs under verbose flag to reduce the RILC log spam
Jayachandran C [Sat, 25 Mar 2017 21:30:13 +0000 (14:30 -0700)]
Move RILC logs under verbose flag to reduce the RILC log spam

This change moves most of RLOGD prints under VDGB flag

Test: Verified that the RILC log spam is reduced
Bug: 36613198
Change-Id: Ife7042b523a445605b297ed244d0f884d0b39179

7 years agoMerge "Removing GENERIC_FAILURE from API documentation in ril.h"
Shuo Qian [Fri, 24 Mar 2017 17:26:28 +0000 (17:26 +0000)]
Merge "Removing GENERIC_FAILURE from API documentation in ril.h"
am: 6ea410309a

Change-Id: I695aaa62900d55ad23b271860aa672fd9a3d0a6a

7 years agoMerge "Removing GENERIC_FAILURE from API documentation in ril.h"
Shuo Qian [Fri, 24 Mar 2017 17:21:17 +0000 (17:21 +0000)]
Merge "Removing GENERIC_FAILURE from API documentation in ril.h"

7 years agoRemoving GENERIC_FAILURE from API documentation in ril.h
Shuoq [Mon, 20 Mar 2017 23:31:23 +0000 (16:31 -0700)]
Removing GENERIC_FAILURE from API documentation in ril.h

GENERIC_FAILURE should not be returned in any case.

Bug: 36385785
Test: No change to behavior
Change-Id: I5d3da76aadf9f2643d1e2ca5ca1d8f741e7a25c5

7 years agoMerge "Remove rild sockets."
Amit Mahajan [Wed, 22 Mar 2017 16:58:39 +0000 (16:58 +0000)]
Merge "Remove rild sockets."
am: 7c22062ff6

Change-Id: I5d2833330cb606f6379d2af42806c97a8632312a

7 years agoMerge "Remove rild sockets."
Amit Mahajan [Wed, 22 Mar 2017 16:54:40 +0000 (16:54 +0000)]
Merge "Remove rild sockets."

7 years agoRemove rild sockets.
Amit Mahajan [Tue, 14 Mar 2017 23:39:27 +0000 (16:39 -0700)]
Remove rild sockets.

Test: Basic telephony sanity
Bug: 32020264
Merged-in: Icff46cadab085ca7882ed32ee0c6f9247a028817
Change-Id: Icff46cadab085ca7882ed32ee0c6f9247a028817

7 years agoMerge "Convert empty response to -1 for some SIM APIs"
Naveen Kalla [Mon, 20 Mar 2017 04:31:04 +0000 (04:31 +0000)]
Merge "Convert empty response to -1 for some SIM APIs"
am: 7e18f92330

Change-Id: Id483483cce600cafa1c392e2027abd9ba140c863

7 years agoMerge "Convert empty response to -1 for some SIM APIs"
Naveen Kalla [Mon, 20 Mar 2017 04:24:45 +0000 (04:24 +0000)]
Merge "Convert empty response to -1 for some SIM APIs"

7 years agoConvert empty response to -1 for some SIM APIs
Naveen Kalla [Thu, 16 Mar 2017 19:55:55 +0000 (12:55 -0700)]
Convert empty response to -1 for some SIM APIs

Earlier RILs did not send a response for some cases although the
interface expected an integer as response. Do not return error if
response is empty. Instead Return -1 in those cases to maintain backward
compatibility.

Bug: 36209518
Test: Enable fixed dialing number and call barring by dialing *35*PASSWORD#.
      Check logs to make sure RILC does not fail with invalid response
      on devices where RIL doesn't send a response to these requests
      on success.

Change-Id: I1d91bacd60bd19985710a111de57e86f03e6ce4a

7 years agoMerge "Add new precise call fail causes and OEM causes"
Jayachandran Chinnakkannu [Fri, 17 Mar 2017 22:27:20 +0000 (22:27 +0000)]
Merge "Add new precise call fail causes and OEM causes"
am: 8f1c83e068

Change-Id: Ia52fb715455da05dc813e70807bf8f2304e3c9e1

7 years agoMerge "Add new precise call fail causes and OEM causes"
Jayachandran Chinnakkannu [Fri, 17 Mar 2017 22:18:22 +0000 (22:18 +0000)]
Merge "Add new precise call fail causes and OEM causes"

7 years agoMerge "Fix for race condition between radio and oemhook services."
Amit Mahajan [Fri, 17 Mar 2017 21:11:33 +0000 (21:11 +0000)]
Merge "Fix for race condition between radio and oemhook services."
am: b809efa3ad

Change-Id: Iab8c04c954342377acfda76c48b5d2d7cf5cccc7

7 years agoMerge "Fix for race condition between radio and oemhook services."
Amit Mahajan [Fri, 17 Mar 2017 21:01:26 +0000 (21:01 +0000)]
Merge "Fix for race condition between radio and oemhook services."

7 years agoFix for race condition between radio and oemhook services.
Amit Mahajan [Fri, 17 Mar 2017 00:04:01 +0000 (17:04 -0700)]
Fix for race condition between radio and oemhook services.

The race condition was this:
1. Phone process crashes and restarts
2. Phone process calls IRadio.setResponseFunctions()
3. oemHookInd is sent from vendor RIL. At this point oemHook
callbacks are stale, and due to that the callback fails and
sets callback objects to NULL, including the IRadio ones which is
not correct.

Test: Basic telephony sanity. The condition was easily reproducible
on angler; verified that it works fine now.
Bug: 32020264

Change-Id: I33bbdf01b19d009530c78baae90188acb4986d15

7 years agoAdd new precise call fail causes and OEM causes
Jayachandran C [Tue, 7 Mar 2017 17:55:58 +0000 (09:55 -0800)]
Add new precise call fail causes and OEM causes

Bug: 35609963
Change-Id: I46ffc8280a25286aedf311c5e63d9c7748849f3b

7 years agoMerge "Remove unused using statement."
Steven Moreland [Fri, 17 Mar 2017 16:40:53 +0000 (16:40 +0000)]
Merge "Remove unused using statement."
am: fa396bcdd1

Change-Id: I23b09f11e2673d9aabfeef7bd545b8649e2ad7f0

7 years agoMerge "Remove unused using statement."
Treehugger Robot [Fri, 17 Mar 2017 16:35:22 +0000 (16:35 +0000)]
Merge "Remove unused using statement."

7 years agoRemove unused using statement.
Steven Moreland [Thu, 16 Mar 2017 07:58:34 +0000 (00:58 -0700)]
Remove unused using statement.

Test: pass
Bug: 36099713
Change-Id: Iaacfa2d2ce8555e191850a620f75111cb2d108a5

7 years agoMerge "Return meaningful error code for RIL_REQUEST_QUERY_AVAILABLE_NETWORKS"
Jayachandran Chinnakkannu [Wed, 15 Mar 2017 21:33:06 +0000 (21:33 +0000)]
Merge "Return meaningful error code for RIL_REQUEST_QUERY_AVAILABLE_NETWORKS"
am: fb4080b38a

Change-Id: I0b95e007ca4f4f3a9815daba4ba9fd8fbf4645a1

7 years agoMerge "Return meaningful error code for RIL_REQUEST_QUERY_AVAILABLE_NETWORKS"
Jayachandran Chinnakkannu [Wed, 15 Mar 2017 21:28:06 +0000 (21:28 +0000)]
Merge "Return meaningful error code for RIL_REQUEST_QUERY_AVAILABLE_NETWORKS"

7 years agoReturn meaningful error code for RIL_REQUEST_QUERY_AVAILABLE_NETWORKS
Jayachandran C [Tue, 14 Mar 2017 02:17:18 +0000 (19:17 -0700)]
Return meaningful error code for RIL_REQUEST_QUERY_AVAILABLE_NETWORKS

Updated documentation for INTERNAL_ERR & MODEM_ERR

Bug: 34102797
Change-Id: If1ac0f50eb3e3a21056d137e060a8fccb24304c2

7 years agoMerge "Return Void() from oneway APIs."
Amit Mahajan [Tue, 14 Mar 2017 18:37:36 +0000 (18:37 +0000)]
Merge "Return Void() from oneway APIs."
am: bf2acac2b6

Change-Id: I8e3ae858184b33c4f3ceceec651ae20586c45aaf

7 years agoMerge "Return Void() from oneway APIs."
Amit Mahajan [Tue, 14 Mar 2017 18:30:41 +0000 (18:30 +0000)]
Merge "Return Void() from oneway APIs."

7 years agoReturn Void() from oneway APIs.
Amit Mahajan [Tue, 14 Mar 2017 00:01:05 +0000 (17:01 -0700)]
Return Void() from oneway APIs.

Test: none
Bug: 36162904
Change-Id: I323633c398085f96d265666136d451a33d683e51

7 years agoMerge "Use cid and lac to update ci and tac for LTE"
Sooraj Sasindran [Fri, 10 Mar 2017 03:10:19 +0000 (03:10 +0000)]
Merge "Use cid and lac to update ci and tac for LTE"
am: 010cb31cb9

Change-Id: I699fb50370c1d0b226305a64f92dc776a1f6bbab

7 years agoMerge "Use cid and lac to update ci and tac for LTE"
Sooraj Sasindran [Fri, 10 Mar 2017 03:05:18 +0000 (03:05 +0000)]
Merge "Use cid and lac to update ci and tac for LTE"

7 years agoMerge "Fix bug in getCallWaiting api."
Sanket Padawe [Wed, 8 Mar 2017 21:22:18 +0000 (21:22 +0000)]
Merge "Fix bug in getCallWaiting api."
am: eb4e5318f2

Change-Id: I4f58581d06f4aab34a92fc026b913b71df3bf191

7 years agoMerge "Fix bug in getCallWaiting api."
Sanket Padawe [Wed, 8 Mar 2017 21:16:20 +0000 (21:16 +0000)]
Merge "Fix bug in getCallWaiting api."

7 years agoFix bug in getCallWaiting api.
Sanket Padawe [Wed, 8 Mar 2017 01:21:05 +0000 (17:21 -0800)]
Fix bug in getCallWaiting api.

Test: Build and local VTS.
Bug: 32020264
Change-Id: I9933b2d45a124e4f0704b987af49bab3bdcb3418

7 years agoMerge "Fix signed-unsigned comparison"
Nathan Harold [Wed, 8 Mar 2017 00:07:46 +0000 (00:07 +0000)]
Merge "Fix signed-unsigned comparison"
am: 65ca78d761

Change-Id: I08a44c8eab98ea633e6cab6cda287178fcc0ff3c

7 years agoMerge "Fix signed-unsigned comparison"
Treehugger Robot [Wed, 8 Mar 2017 00:02:16 +0000 (00:02 +0000)]
Merge "Fix signed-unsigned comparison"

7 years agoMerge "Delete Parcel references and other unused code."
Amit Mahajan [Tue, 7 Mar 2017 18:59:35 +0000 (18:59 +0000)]
Merge "Delete Parcel references and other unused code."
am: 3f82483b46

Change-Id: Ib1251078a87525d13824fbe79399c8fcf9b1a5a5

7 years agoMerge "Delete Parcel references and other unused code."
Amit Mahajan [Tue, 7 Mar 2017 18:55:17 +0000 (18:55 +0000)]
Merge "Delete Parcel references and other unused code."

7 years agoUse cid and lac to update ci and tac for LTE
Sooraj Sasindran [Tue, 7 Mar 2017 07:07:22 +0000 (23:07 -0800)]
Use cid and lac to update ci and tac for LTE

As per older RIL interface LTE cid and lac were filled
using ci and tac. Hence use the same while converting
voice registration state.

Test: ran unit testing
      verified on device that registration state is
      reported correctly
Bug: 32223344
Change-Id: I74ea670ff51ceaf0387cdf3b9cafc5601ab54d98

7 years agoMerge "Removed the deprecated screen state API"
Jack Yu [Tue, 7 Mar 2017 02:43:35 +0000 (02:43 +0000)]
Merge "Removed the deprecated screen state API"
am: c10809781f

Change-Id: Ibb832b779b8f417552bd131085e46d5039d168bc

7 years agoMerge "Removed the deprecated screen state API"
Jack Yu [Tue, 7 Mar 2017 00:30:11 +0000 (00:30 +0000)]
Merge "Removed the deprecated screen state API"

7 years agoDelete Parcel references and other unused code.
Amit Mahajan [Sat, 4 Mar 2017 01:35:47 +0000 (17:35 -0800)]
Delete Parcel references and other unused code.

Test: Basic telephony sanity
Bug: 32020264
Change-Id: I410988c7f347fcca2770d9b099f489bd6d625d0b

7 years agoMerge "Remove unnecessary prefix from log lines since LOG_TAG is added."
Amit Mahajan [Fri, 3 Mar 2017 21:47:08 +0000 (21:47 +0000)]
Merge "Remove unnecessary prefix from log lines since LOG_TAG is added."
am: f658608533

Change-Id: I524a87ca2b633ded4200ca6b0b7f7555df75789f

7 years agoMerge "Remove unnecessary prefix from log lines since LOG_TAG is added."
Treehugger Robot [Fri, 3 Mar 2017 21:41:07 +0000 (21:41 +0000)]
Merge "Remove unnecessary prefix from log lines since LOG_TAG is added."

7 years agoMerge "Remove unused response and dispatch functions."
Amit Mahajan [Fri, 3 Mar 2017 21:20:07 +0000 (21:20 +0000)]
Merge "Remove unused response and dispatch functions."
am: bc4d7998f8

Change-Id: I273917ee176aa9ab0ac754fefb8a859bf4b85043

7 years agoMerge "Remove unused response and dispatch functions."
Treehugger Robot [Fri, 3 Mar 2017 21:16:26 +0000 (21:16 +0000)]
Merge "Remove unused response and dispatch functions."

7 years agoRemove unnecessary prefix from log lines since LOG_TAG is added.
Amit Mahajan [Fri, 3 Mar 2017 20:05:13 +0000 (12:05 -0800)]
Remove unnecessary prefix from log lines since LOG_TAG is added.

Test: Basic telephony sanity
Bug: 35869745
Change-Id: I38aafc9a699e6a21fa5b2dbf52c405b524ec0d3a

7 years agoRemove unused response and dispatch functions.
Amit Mahajan [Thu, 2 Mar 2017 00:20:17 +0000 (16:20 -0800)]
Remove unused response and dispatch functions.

Test: Basic telephony sanity
Bug: 32020264
Merged-in: I732234a22328a1bfcb603bb020547f543b6fd766
Change-Id: I732234a22328a1bfcb603bb020547f543b6fd766

7 years agoMerge "Cleanup for radioStateChanged."
Amit Mahajan [Thu, 2 Mar 2017 22:16:22 +0000 (22:16 +0000)]
Merge "Cleanup for radioStateChanged."
am: 996dce23cb

Change-Id: Icbaffb5747b1012f3c0c88496b1e039c8258e65b

7 years agoMerge "Cleanup for radioStateChanged."
Treehugger Robot [Thu, 2 Mar 2017 22:13:05 +0000 (22:13 +0000)]
Merge "Cleanup for radioStateChanged."

7 years agoCleanup for radioStateChanged.
Amit Mahajan [Wed, 1 Mar 2017 20:08:46 +0000 (12:08 -0800)]
Cleanup for radioStateChanged.

Test: Basic telephony sanity
Bug: 32020264
Change-Id: I7b7675406409dbb92c3559499665fbe59030573b

7 years agoMerge "Fix in getAvailableNetworksResponse() to use correct index"
Jayachandran Chinnakkannu [Thu, 2 Mar 2017 20:06:00 +0000 (20:06 +0000)]
Merge "Fix in getAvailableNetworksResponse() to use correct index"
am: 7d07f2d0ef

Change-Id: Ib42abd8746f2711d2a0ed2a8df4a114bcb5c8b96

7 years agoMerge "Fix in getAvailableNetworksResponse() to use correct index"
Jayachandran Chinnakkannu [Thu, 2 Mar 2017 20:01:40 +0000 (20:01 +0000)]
Merge "Fix in getAvailableNetworksResponse() to use correct index"

7 years agoMerge "DO NOT MERGE ANYWHERE Emulator: adjust reference-ril to the refactored qemu_pipe"
Bo Hu [Thu, 2 Mar 2017 18:09:31 +0000 (18:09 +0000)]
Merge "DO NOT MERGE ANYWHERE Emulator: adjust reference-ril to the refactored qemu_pipe"
am: 0e4680d46f  -s ours

Change-Id: I68237f3c5d5f248aa290dd541baae9ac4d6dc063

7 years agoMerge "DO NOT MERGE ANYWHERE Emulator: adjust reference-ril to the refactored qemu_pipe"
Bo Hu [Thu, 2 Mar 2017 18:03:30 +0000 (18:03 +0000)]
Merge "DO NOT MERGE ANYWHERE Emulator: adjust reference-ril to the refactored qemu_pipe"

7 years agoRemoved the deprecated screen state API
Jack Yu [Thu, 2 Mar 2017 07:22:33 +0000 (23:22 -0800)]
Removed the deprecated screen state API

The screen state API was deprecated on O and should
not be added into the radio interace.

Test: Telephony sanity tests
bug: 32223897
Change-Id: I587cb104cdfd17d8f3c0e0d6e354b051d3892eaa

7 years agoMerge "Added two new RIL commands support"
Jack Yu [Thu, 2 Mar 2017 06:11:32 +0000 (06:11 +0000)]
Merge "Added two new RIL commands support"
am: 4430f1924d

Change-Id: Ibc1df32f72dc77a08aff727d54a102095193e4be

7 years agoMerge "Added two new RIL commands support"
Treehugger Robot [Thu, 2 Mar 2017 06:02:19 +0000 (06:02 +0000)]
Merge "Added two new RIL commands support"

7 years agoAdded two new RIL commands support
Jack Yu [Wed, 22 Feb 2017 01:08:01 +0000 (17:08 -0800)]
Added two new RIL commands support

Added RIL_REQUEST_SEND_DEVICE_STATE and
RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER RIL requests support.

Test: telephony sanity tests
bug: 322238972012503728294587

Merged-In: I55adc30b11eac269331c54ff08947dd5eefc463b
Change-Id: I55adc30b11eac269331c54ff08947dd5eefc463b

7 years agoFix signed-unsigned comparison
Nathan Harold [Thu, 2 Mar 2017 02:57:56 +0000 (18:57 -0800)]
Fix signed-unsigned comparison

Bug: 35901901
Test: compilation yields no warning
Change-Id: I74e60def5205782e291c7bc24846804be89097b3

7 years agoFix in getAvailableNetworksResponse() to use correct index
Jayachandran C [Thu, 2 Mar 2017 02:26:50 +0000 (18:26 -0800)]
Fix in getAvailableNetworksResponse() to use correct index

Test: Manual
Bug: 35787804
Change-Id: I03e17ee3e2de449c6b38c3dda39d2eb8b2ea7576

7 years agoDO NOT MERGE ANYWHERE Emulator: adjust reference-ril to the refactored qemu_pipe
bohu [Tue, 28 Feb 2017 22:55:24 +0000 (14:55 -0800)]
DO NOT MERGE ANYWHERE Emulator: adjust reference-ril to the refactored qemu_pipe

qemu_pipe is refactored into a library in system/core/qemu_pipe,
and reference-ril needs to adjust accordingly.

Change-Id: I13160ce6a07a721501fd893dd9c5a9931927e767

7 years agoMerge "Add log tag for IRadio and ISap services."
Amit Mahajan [Wed, 1 Mar 2017 21:08:03 +0000 (21:08 +0000)]
Merge "Add log tag for IRadio and ISap services."
am: 57ff322b4c

Change-Id: I8f453b3bcbab2e588b94c3186bf016daaae52592

7 years agoMerge "Add log tag for IRadio and ISap services."
Treehugger Robot [Wed, 1 Mar 2017 20:53:04 +0000 (20:53 +0000)]
Merge "Add log tag for IRadio and ISap services."

7 years agoMerge "Fix in setAllowedCarriers() to use correct length for excludedCarriers"
Amit Mahajan [Wed, 1 Mar 2017 20:06:43 +0000 (20:06 +0000)]
Merge "Fix in setAllowedCarriers() to use correct length for excludedCarriers"
am: da232809c5

Change-Id: I68e1a369c44a15cd89ec65002ee9d8a8c7a3d6a1

7 years agoMerge "Fix in setAllowedCarriers() to use correct length for excludedCarriers"
Treehugger Robot [Wed, 1 Mar 2017 20:02:26 +0000 (20:02 +0000)]
Merge "Fix in setAllowedCarriers() to use correct length for excludedCarriers"

7 years agoAdd log tag for IRadio and ISap services.
Amit Mahajan [Wed, 1 Mar 2017 19:13:15 +0000 (11:13 -0800)]
Add log tag for IRadio and ISap services.

Test: verified logs
Bug: 35869745
Change-Id: I35c79c9d638e4328086def1b550f0aafcf9e9e5b

7 years agoFix in setAllowedCarriers() to use correct length for excludedCarriers
Amit Mahajan [Wed, 1 Mar 2017 18:26:58 +0000 (10:26 -0800)]
Fix in setAllowedCarriers() to use correct length for excludedCarriers

Test: make -j64 gts
gts-tradefed run gts -m GtsGmscoreHostTestCases -t
com.google.android.gts.telephony.TelephonyHostTest
Bug: 35374455

Change-Id: I05ccc58e71f4b7aa645543fb3c9ffc71f9817435

7 years agoMerge "Cleanup DATA_REG and VOICE_REG Location Info"
Sooraj Sasindran [Wed, 1 Mar 2017 18:08:20 +0000 (18:08 +0000)]
Merge "Cleanup DATA_REG and VOICE_REG Location Info"
am: a2f9629c29

Change-Id: I354972a155f9a244e57e1d9524b37b29ebda15fb

7 years agoMerge "Cleanup DATA_REG and VOICE_REG Location Info"
Sooraj Sasindran [Wed, 1 Mar 2017 18:06:17 +0000 (18:06 +0000)]
Merge "Cleanup DATA_REG and VOICE_REG Location Info"

7 years agoCleanup DATA_REG and VOICE_REG Location Info
Sooraj Sasindran [Thu, 1 Dec 2016 02:36:03 +0000 (18:36 -0800)]
Cleanup DATA_REG and VOICE_REG Location Info

The data registration and voice registration states contain
large swaths of location information. While it seemed at first
blush we could remove that information, having synchronized
knowledge of when a registration has resulted in a cell change
provides valuable infomation.  So cleaning up the same by using
the same cell location structure that is being used elsewhere
in the interface to ensure that this method
always keeps sufficiently up-to-date information, without the
need to increasingly bloat it. Note this also fixes subtle bugs
that existed due to the information previously being incomplete.

Bug: 32223344
Test: Tested updated qcril

Captured RILJ logs on different rats as follows

02-27 10:22:48.489 D/RILJ    ( 1483): [4169]< DATA_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 14, .reasonDataDenied = -1, .maxDataCalls
= 20, .cellIdentity = {.cellInfoType = LTE, .cellIdentityGsm = [],
.cellIdentityWcdma = [], .cellIdentityCdma = [], .cellIdentityLte =
[{.mcc = -1, .mnc = -1, .ci = 56, .pci = 135, .tac = 13826, .earfcn =
-1}], .cellIdentityTdscdma = []}} [SUB0]

02-27 10:22:48.463 D/RILJ    ( 1483): [4166]< VOICE_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 14, .cssSupported = true,
.roamingIndicator = 1, .systemIsInPrl = -1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = LTE,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [{.mcc = -1, .mnc = -1, .ci = 56, .pci = -1, .tac =
-1, .earfcn = -1}], .cellIdentityTdscdma = []}} [SUB

02-27 11:13:16.138 D/RILJ    ( 2110): [3992]< DATA_REGISTRATION_STATE
{.regState = REG_ROAMING, .rat = 13, .reasonDataDenied = -1,
.maxDataCalls = 20, .cellIdentity = {.cellInfoType = CDMA,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma =
[{.networkId = -1, .systemId = -1, .baseStationId = -1, .longitude = -1,
.latitude = -1}], .cellIdentityLte = [], .cellIdentityTdscdma = []}}
[SUB0]

02-27 11:13:16.136 D/RILJ    ( 2110): [3993]< VOICE_REGISTRATION_STATE
{.regState = NOT_REG_MT_SEARCHING_OP, .rat = 0, .cssSupported = false,
.roamingIndicator = 64, .systemIsInPrl = 1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = 0x0,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [], .cellIdentityTdscdma = []}} [SUB0]

02-27 11:23:21.875 D/RILJ    ( 2104): [4058]< VOICE_REGISTRATION_STATE
{.regState = REG_ROAMING, .rat = 6, .cssSupported = false,
.roamingIndicator = 64, .systemIsInPrl = 1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = CDMA,
.cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma =
[{.networkId = 54, .systemId = 4, .baseStationId = 7155, .longitude =
2147483647, .latitude = 0}], .cellIdentityLte = [], .cellIdentityTdscdma
= []}} [SUB0]

02-27 11:29:36.774 D/RILJ    ( 2157): [3925]< VOICE_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 16, .cssSupported = false,
.roamingIndicator = 1, .systemIsInPrl = -1, .defaultRoamingIndicator =
-1, .reasonForDenial = 0, .cellIdentity = {.cellInfoType = GSM,
.cellIdentityGsm = [{.mcc = -1, .mnc = -1, .lac = 8, .cid = 0, .arfcn =
-1, .bsic = -1}], .cellIdentityWcdma = [], .cellIdentityCdma = [],
.cellIdentityLte = [], .cellIdentityTdscdma = []}} [SUB0]

02-27 11:29:36.768 D/RILJ    ( 2157): [3924]< DATA_REGISTRATION_STATE
{.regState = REG_HOME, .rat = 2, .reasonDataDenied = -1, .maxDataCalls =
20, .cellIdentity = {.cellInfoType = GSM, .cellIdentityGsm = [{.mcc =
-1, .mnc = -1, .lac = 8, .cid = 0, .arfcn = -1, .bsic = -1}],
.cellIdentityWcdma = [], .cellIdentityCdma = [], .cellIdentityLte = [],
.cellIdentityTdscdma = []}} [SUB0]

Merged-In: I62243cd0497bc742abf2fb58a24087698b25769d
Change-Id: I62243cd0497bc742abf2fb58a24087698b25769d

7 years agoMerge "Fixed that type of data call response status"
Jack Yu [Wed, 1 Mar 2017 04:25:33 +0000 (04:25 +0000)]
Merge "Fixed that type of data call response status"
am: 461ada9c41

Change-Id: I33072a49106672cead62246e53086a7076728d81

7 years agoMerge "Fixed that type of data call response status"
Jack Yu [Wed, 1 Mar 2017 04:22:36 +0000 (04:22 +0000)]
Merge "Fixed that type of data call response status"

7 years agoFixed that type of data call response status
Jack Yu [Tue, 28 Feb 2017 23:21:18 +0000 (15:21 -0800)]
Fixed that type of data call response status

Fixed the incorrect type for SetupDataCallResult.status.
Changed the type from int_32 to DataCallFailCause

Test: Telephony sanity tests
bug: 32224135
Change-Id: I55436f835318a0a60d2b53daabc493d8349af3b3

7 years agoMerge "Data call refactoring and hidlization"
Jack Yu [Tue, 28 Feb 2017 21:46:38 +0000 (21:46 +0000)]
Merge "Data call refactoring and hidlization"
am: bde502eeae

Change-Id: I72326756089e31fda9773388d4850005d963f126

7 years agoMerge "Data call refactoring and hidlization"
Jack Yu [Tue, 28 Feb 2017 20:47:01 +0000 (20:47 +0000)]
Merge "Data call refactoring and hidlization"

7 years agoData call refactoring and hidlization
Jack Yu [Mon, 13 Feb 2017 19:21:00 +0000 (11:21 -0800)]
Data call refactoring and hidlization

Support the new HIDL interface for data call APIs.
The affacted APIs are RIL_REQUEST_SETUP_DATA_CALL,
RIL_REQUEST_SET_DATA_PROFILE, RIL_REQUEST_SET_INITIAL_ATTACH_APN
More parameters are passing down to the modem to address
some issues we had earlier.

This is also backward compatible with the old vendor RIL.

bug: 3222413530173958335615033028209632020264
Test: Telephony sanity tests, unit tests

Merged-In: I5ed76321ef52d6bc7a00bce918fde7bb316f8c93
Change-Id: I5ed76321ef52d6bc7a00bce918fde7bb316f8c93

7 years agoMerge "Fix for RadioCapability."
Amit Mahajan [Sat, 25 Feb 2017 01:49:33 +0000 (01:49 +0000)]
Merge "Fix for RadioCapability."
am: 10978b02fc

Change-Id: I59afad858945bda7a9e116890e8f691b86bce8c2

7 years agoMerge "Fix for RadioCapability."
Treehugger Robot [Sat, 25 Feb 2017 01:43:00 +0000 (01:43 +0000)]
Merge "Fix for RadioCapability."

7 years agoFix for RadioCapability.
Amit Mahajan [Fri, 24 Feb 2017 19:24:39 +0000 (11:24 -0800)]
Fix for RadioCapability.

sizeof was called on incorrect struct.

Test: verified from the logs that RadioCapability shows on error
Bug: 35754369
Change-Id: I42bcb1f15cb5600e940550e51e109f1b2bce37a8

7 years agoMerge "Move rild to vendor partition."
Amit Mahajan [Fri, 24 Feb 2017 01:49:38 +0000 (01:49 +0000)]
Merge "Move rild to vendor partition."
am: 1d8bd8a581

Change-Id: If3687434476e8637d4f1cf5ed9b372165b54edde

7 years agoMerge "Move rild to vendor partition."
Treehugger Robot [Fri, 24 Feb 2017 01:47:14 +0000 (01:47 +0000)]
Merge "Move rild to vendor partition."