gril: cleanup parse SIM IO reply (LP: #1268743)

Minor cleanup of g_ril_reply_parse_sim_io() as
part of fix for crash when a SIM IO request is
returned with a null response field.  This
change adds a malformed check, and also fixes
a leak, ensuring the response is always freed.
unit: extend grilreply SIM IO tests (LP: #1268743)
rilmodem: fix crash SIM IO crash (LP: #1268743)

The touch emulator can return responses to SIM IO
commands with a null response field.  This can cause
a crash in the core function sim_adn_parse().  So
in ril_file_io_cb() return a callback failure if
the response length is zero.
test: add rilmodem specific tests

Add rilmodem directory and tests to be used both for
daily and CI testing.  Some of these tests are only
meant to be run within the touch emulator, as they
rely on the emulator console commands in order to
change the state of the mocked modem.
test: enhanced rilmodem/test-sim-online script

Enhanced the test-sim-online script so that you can
specify if the script is running in the emulator,
optionally cause the script to online the modem, and
finally if running on real hw, specify specific property
values to match against.
test: Cleanup TODO comments in rilmodem tests
Merge pull request #44 from tonyespy/lp1268743

Lp1268743
plugins: Enable message_waiting in ril

Enable the message_waiting atom in the ril plugin.
This exposes the MessageWaiting interface which will
allow notification when new voicemails arrive.
rilmodem: fix decline call behavior (LP: #1260988)

When a remote call with STATUS_INCOMING is declined,
RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND should be
called instead of RIL_REQUEST_HANGUP, as some operators
may not forward the caller to voicemail.
src: fix sms_mwi_dcs_decode() return param bug

The return parameter 'active' was being incorrectly set to
an int value instead of a boolean value. This caused the
message-waiting code to break.
Merge pull request #47 from tonyespy/message-waiting

plugins: Enable message_waiting in ril
Merge pull request #48 from tonyespy/lp1260988

Lp1260988 - Decline call voicemail fix
test: cleanup rilmodem review style comments
build: add rilmodem tests to build
git: Add test-mnclength to .gitignore
gril: Parse correctly signal strength event

The signal strength event was not being parsed properly in the case of
ril v5 parcels.
idmap: use UL for bitshift literals (LP: #1271284)

The current bitshift logic in idmap incorrectly uses
the literal 1 for the value to shift in idmap_alloc(),
idmap_take(), and idmap_alloc_next().  This causes the
resulting value to be an int instead of a long, which
results in the wrong bit being set once the number of
bits to shift operand exceeds sizeof(int).  Also
on some platforms, the behavior of the left bitshift
operator is undefined when this overflow occurs.
Merge pull request #51 from tonyespy/lp1271284

idmap: use UL for bitshift literals (LP: #1271284)
gril: Changes to prepare for OEM modems

* Add the rild socket path as an input parameter to g_ril_new()
* Remove unneeded ril_s::connected variable
* Implement g_ril_set_disconnect_function()
plugins: Adapt ril to changes in gril interface