History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ac009536df32d886e1bab79f07e61200ea6bdcf9 25-Apr-2018 Shuo Qian <shuoq@google.com> Restore the OEM hook implementation and usage

The current plan is to keep the OEM hook implementation in the
framework, this is for legacy device and old device upgrading
(per b/78098059).

For P launching device, the OEM hook service is removed in hal,
so the OEM hook api in framework should return something dummy, and
prevent infinite loop to get service, but these parts should be done
in seperate CLs after this restore CL is merged.

This reverts commit acc87ce9d9a91f0eb80c411ddbf66c82ef2e04d3.

Bug: 34344851
Change-Id: Ib58d9e0842ac1764f91391b1403a3d841f4a1bd9
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
acc87ce9d9a91f0eb80c411ddbf66c82ef2e04d3 24-Apr-2018 Robert Greenwalt <rgreenwalt@google.com> Revert "Revert "Remove the OEM hook implementation and usage""

This reverts commit 73852a1d6eb29f844bc8d08bb33aca3e29b17733.

Reason for revert: Causes a critical error in Cuttlefish

Bug: 78299964

Change-Id: I66819556f2ed4bb05c133c200462b91e44d9ec23
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
73852a1d6eb29f844bc8d08bb33aca3e29b17733 17-Apr-2018 sqian <shuoq@google.com> Revert "Remove the OEM hook implementation and usage"

This reverts commit 6993a3eef4eed1a2f31a967d330bdd97e76fe1c5.

Bug: 34344851
Test: Treehugger
Change-Id: If12893fb1ef0da41d5f008a5232a06e98d4428a0
Merged-In: If12893fb1ef0da41d5f008a5232a06e98d4428a0
(cherry picked from commit 42b72c2351d823bf0e79b72b2fe6b140aae468ec)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
c7776a8f093a315d3baced16f57c5214116ed3d7 09-Jan-2018 Eric Schwarzenbach <easchwar@google.com> Add reporting criteria to DeviceStateMonitor and ServiceStateTracker.

Sends down per-RAN reporting criteria to the modem onRilConnected.

Updates the IndicationFilter to include the new LINK_CAPACITY_ESTIMATE
and PHYSICAL_CHANNEL_CONFIG bits.

Adds default AccessNetworkThresholds for reporting criteria threshold.

Updates LTE and WCDMA SignalStrength reporting criteria when carrier
config changes.

Bug: 70638175
Bug: 72117365
Bug: 74008993
Test: make, runtest
Change-Id: I12f724405bf31d2c48e6a52b5751ddd86f633596
(cherry picked from commit 8f2ef44cab1fdb75b4797668626bbced30c530f6)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
7afdb3942adde7efd33b5af5556fead92243e49c 08-Feb-2018 Nathan Harold <nharold@google.com> Pipe Radio 1.2 LCE to DataConnection

-Add a new LinkCapacityEstimate class to handle
both 1.0 and 1.2 formats of LCE for sending to
DataConnection.
-Convert to a multi-registrant so that all active
data connections can receive LCE updates.
-Add conversion for 1.2 LCE HAL to framework LCE.
-Automatically register for LCE when data connections
become active.
-If 1.2 or greater HAL is detected, we no longer start
the LCE service in the modem: rather it's always-on.

Bug: 72117292
Test: runtest frameworks-telephony
Change-Id: I076f2af404855cf961380559793b7328d7b83372
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
3c09fb7eec26ecb5e3b684d7e3f25c9df142775b 09-Feb-2018 Nathan Harold <nharold@google.com> NATT Keepalive Unit Test

-Fix a bug that DC was registering itself
twice for keepalive status notifications.

-Verify that callbacks register/unregister
when entering/exiting DC_ACTIVE state
-Verify that KA sessions are cached by a map
of slotId and sessionHandle.
-Verify that start/stop requests are sent to the
RIL as needed.
-Verify that KA sessions are cleaned up after a
call to stop()
-Verify that a failed keepalive is cleaned up and
the records are either not created or are created
and then deleted depending on the error scenario.

Bug: 72417084
Test: runtest -x DataConnectionTest.java
Change-Id: I113e170fe20b9bdd74c2670109b8271f2114dab1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
d50b1e692d2dda2c40fb9699b88eb2350d3a0a32 30-Jan-2018 Malcolm Chen <refuhoo@google.com> Connect to CellularNetworkService in SST.

Re-route SST to get cellular registration states from
CellularNetworkService instead of calling CommandsInterface
directly

Bug: 64132030
Test: unittest
Change-Id: I50a9cf548a142a147eb027659f72b83c68b9b8e1
Merged-In: I50a9cf548a142a147eb027659f72b83c68b9b8e1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
71f909237a9921f52d91440fb8f9c6fc97465a52 04-Feb-2018 Jack Yu <jackyu@google.com> Connected with data service manager

Routed all data requests and respones through the
new cellular data service and data service manager.

Test: Telephony sanity tests + unit tests
Bug: 64132030
Merged-In: I66adf6492ee1952e20384c38add107c89da0ac41
Change-Id: I66adf6492ee1952e20384c38add107c89da0ac41
(cherry picked from commit 4b2c78c078d59466d18a4f7f926bb3bc0eccff9d)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
06ed6fceace1df6db89e2e4fa5b98da080a94435 31-Jan-2018 Jack Yu <jackyu@google.com> Added support for the new 1.2 data setup/deactivate API

Added support for the 1.2 IRadio APIs that support IWLAN handover.

Test: Telephony sanity tests
Bug: 64132030

Merged-In: I61840939fa7130b0ef1bc0353dd065486831679c
Change-Id: I61840939fa7130b0ef1bc0353dd065486831679c
(cherry picked from commit d5a7979d5c82f1fd568d80267216402bc9d8d0ba)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
4ce44fdede0fc78cf53c3803085b0bb980d5ff81 31-Jan-2018 nharold <nharold@google.com> Merge "Remove obsolete getIsimChallengeResponse"
12f844b0f84469c8cd8f094412a7599173aaaac3 29-Jan-2018 Nathan Harold <nharold@google.com> Remove obsolete getIsimChallengeResponse

This method is fully superceded by getIccAuthentication
Any callers should use the new method instead.

Bug: 27954896
Test: compilation
Change-Id: I8fb81a6c6cb1dcb278f4fe9d4ac4d3ae54a342c2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
21cb4001dec43dc8a3e031eb4a64c721a03bd6ee 12-Jul-2017 Nathan Harold <nharold@google.com> Plumb NattKeepalive from HAL to DataConnection

Connect NetworkAgent's Packet Keepalive signals
to the telephony HAL via DataConnection and the
CommandsInterface.

Add DcKeepaliveTracker to DcNetworkAgent to track
incoming keepalive indications and handle status
reporting to the NetworkAgent

Bug: 38350389
Test: verified with sl4a, additional tests pending
Merged-In: If436b9240b192ed41f2dd0d05aca1ae36dc5e57f
Change-Id: If436b9240b192ed41f2dd0d05aca1ae36dc5e57f
(cherry picked from commit f9d8835c31c9a0347e5d40f6b0f582bbf09b9e51)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
fc892559b1718da93c307a8ec4836164e05ac312 19-Jan-2018 Nathan Harold <nharold@google.com> Cleanup of SignalStrength Parcel

Remove extraneous constructors from SignalStrength.
Add tests for SignalStrength to verify parceling.

Bug: 72116430
Test: runtest frameworks-telephony
Change-Id: I542450d825763290b2f9deeab4405465a9944d94
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
c5ad2f0f296544343d610557b4d34d6ddd41d469 13-Jan-2018 Treehugger Robot <treehugger-gerrit@google.com> Merge "Used LinkAddress insteaad of InterfaceAddress"
06e7286b5b3cc0fdbf09985adb553c7698e4f2c9 11-Jan-2018 Jack Yu <jackyu@google.com> Used LinkAddress insteaad of InterfaceAddress

Also removed InterfaceAddress which was added
in aosp/561351 since LinkAddress is exactly same
as InterfaceAddress.

Test: Telephony sanity tests
bug: 64132030
Merged-In: Iefc12dd025edb4f67cf0e9080da1ad8d6cfb63b5
Change-Id: Iefc12dd025edb4f67cf0e9080da1ad8d6cfb63b5
(cherry picked from commit 129675838ba8258b6c9ddba93c31fe15f17346a4)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
ce32bfe78ca1e8e30f30c04457ce8c700086f769 06-Jan-2018 Amit Mahajan <amitmahajan@google.com> Change to use new slot related RIL APIs.

Test: Basic telephony sanity
Bug: 64131518
Merged-in: Iaa40e400eb99c9582995d64d9e53969e208c5395
Change-Id: Iaa40e400eb99c9582995d64d9e53969e208c5395
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
f965bc9f0965984782a6fef947dba17a4c51f0ff 12-Apr-2017 Sandeep Gutta <sangutta@codeaurora.org> Clean up Icc Refresh handling

1. When a SIM refresh is received of type INIT,
don't immediately start re-fetching the records, because
the app might not be ready. In this case, we could end up
broadcasting that all records are loaded pre-maturely.

On a refresh of the above type, the app will move out of the
ready state and back into the PIN state, if PIN is enabled.
Start reading the records only after the PIN has been verified
and the app has moved to the READY state.

2. When UiccController receives refresh of type INIT, it will
propagate it to the Card. The card will dispose the apps if required.
UiccController will also request card status on receiving
refresh to get the latest state.

This avoids having to make assumptions on the ordering of the
Unsols for Sim Refresh and card state changes. This also
ensures that after a refresh, the app state will move to ready
when it is truly ready.

3. Moved common implementation for refresh into IccRecords
for better code reuse.

Test: runtest -path frameworks/opt/telephony/tests/telephonytests/
Test: Manual SIM refresh related cases
Bug: 35919855
Change-Id: Ib4149c94adc7845bfe8d07dacec6ff78a6b64c1e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
4e10a61602bd065cdf71d0335493ac3444d5055a 21-Nov-2017 yinxu <yinxu@google.com> Add platform changes to support new RIL APIs.

Bug: 68998818
Test: Basic telephony sanity
Change-Id: I36be4c29cb575e7210da1b7e69772ba20e77404d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
c0a3ed8c70021d47cd55bbc1406a9cf63bd6afe2 30-Nov-2017 Jack Yu <jackyu@google.com> Moved data connection response into system api.

This is a preliminary step for IWLAN refactoring, where data response
will be one of the parameter in data service callback.

Test: Telephony sanity tests
bug: 64132030
Merged-In: Ie3cfc59c98bdd362a89207dc517f92619fa2278a
Change-Id: Ie3cfc59c98bdd362a89207dc517f92619fa2278a
(cherry picked from commit 3f8bd3dd2c7bceeab44854231411e9517417b944)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
886183cde1263ea524cdf08524442724e246ed42 20-Nov-2017 Jack Yu <jackyu@google.com> Moved DataProfile from telephony internal hidden API to System API

This is the preliminary change in order to make the new data call
setup API for IWLAN refactoring.

Test: Telephony sanity tests + unit tests
bug: 64132030

Merged-In: I5aa50001ef6374b080c10eb29e59363c21008639
Change-Id: I34b9a40b587092f28ffe5d5c96a4e3636f52ed53
(cherry picked from commit b02e63a76e4c3d5e364b0d0017e1a0f57916959d)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
4bb301ce081b348fbb8b6b7a990e0c6e65b9e039 28-Nov-2017 Jack Yu <jackyu@google.com> Revert "Moved DataProfile from telephony internal hidden API to System API"

This reverts commit c36b42eb847959f451900d1eac4e32be180a0b99.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I7fd9fbb181fcc74de585e3224ed230e029db1049
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
c36b42eb847959f451900d1eac4e32be180a0b99 20-Nov-2017 Jack Yu <jackyu@google.com> Moved DataProfile from telephony internal hidden API to System API

This is the preliminary change in order to make the new data call
setup API for IWLAN refactoring.

Test: Telephony sanity tests + unit tests
bug: 64132030

Merged-In: I320632be0d50b03c948b02fa664640ecfb401357
Change-Id: I320632be0d50b03c948b02fa664640ecfb401357
(cherry picked from commit b02e63a76e4c3d5e364b0d0017e1a0f57916959d)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
008dd343e2799636600ffc0db37e72cd8c78f8e2 26-Sep-2017 Wileen Chiu <wileenc@codeaurora.org> Send shutdown command to modem

- The shutdown command is not sent to
the modem for a graceful shutdown when
the modem is in offline state in which,
the RADIO_POWER off request is rejected
- Send the shutdown command as soon as
the device has been given a chance to
power down the radio

Test: manual - Checked that shutdown command is sent
even if modem is in offline state.
Bug: 38397402

Change-Id: I2fc2eae04918f3927e93924f6ae7b3e19f920de2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
6993a3eef4eed1a2f31a967d330bdd97e76fe1c5 25-Oct-2017 Jayachandran C <jayachandranc@google.com> Remove the OEM hook implementation and usage

Vendors and OEMs shall use HIDL extension going forward
to send OEM specific message

Test: Basic Telephony Sanity

Bug: 34344851

Change-Id: I3432501978a08753f791fb90df77ee9ef1b6d642
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
7b72be5bed9536c49bde4415891f3e2688f548ea 22-Jun-2017 Naveen Kalla <mrnaveen@google.com> Exit Emergency callback mode if modem resets
am: 44fd6f60bc

Change-Id: I555e60b11686498761c91e71c6633617068eb25f
44fd6f60bc5aca75938a2c3e725f88b6e897983a 10-Jun-2017 Naveen Kalla <mrnaveen@google.com> Exit Emergency callback mode if modem resets

If the modem resets when the phone is in Emergency
callback mode, exit emergency callback mode.

Bug: 62255356
Test: New unit test "testModemResetInEmergencyCallbackMessages"
in GsmPhoneTest under telephonytests
Change-Id: I3030b59292252e4c0a6c91603f52084cee59d885
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
e0d956e161aa690c7c8c2f0be6a5e7c3f6bcad89 30-May-2017 yinxu <yinxu@google.com> Add the NetworkScanRequestTracker

NetworkScanRequestTracker is part of the new network scan API
implementaion, which stores all the live and pending network scans
and handles the multiplexing of multiple scans.

Test: Telephony sanity tests
Bug: 30954762

Merged-in: I2fd9825f0a5ce3a2fd341cf8d2d9480af81716bd
Change-Id: I2fd9825f0a5ce3a2fd341cf8d2d9480af81716bd
(cherry picked from commit 84de7198887db7ba56c5cfd1d653033e7b4631a9)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
f7074f882cbc1c5558fc9428780abd14c923032f 14-Jun-2017 Ying Xu <yinxu@google.com> Merge "Add the NetworkScanRequestTracker" am: 9726d3cd2b
am: a62a46aebc

Change-Id: I3fe0c8c0e7196573ebaeee436217ca33ad429106
fff7c4000d72d532b2738def64357455099bfbfd 13-Jun-2017 Pankaj Kanwar <pkanwar@google.com> Merge "Radio Interface changes to pass the encryption object, including the key,to the modem." am: a80b673848
am: 644da68619

Change-Id: Ia73352906c817df3b7fc09d50184e406a3a8e794
84de7198887db7ba56c5cfd1d653033e7b4631a9 30-May-2017 yinxu <yinxu@google.com> Add the NetworkScanRequestTracker

NetworkScanRequestTracker is part of the new network scan API
implementaion, which stores all the live and pending network scans
and handles the multiplexing of multiple scans.

Test: Telephony sanity tests
Bug: 30954762
Change-Id: I2fd9825f0a5ce3a2fd341cf8d2d9480af81716bd
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
9179967a8da4955d6d8c6e2bbc6293d4c451b942 21-May-2017 pkanwar <pkanwar@google.com> Radio Interface changes to pass the encryption object, including the
key,to the modem.

We will now pass the ImsiEncryptionInfo object which includes mnc/mcc.
BUG: 35606429
Test: manual

Change-Id: I1bcaf7de424ad6143587fa001b9ecb631009c463
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
9848cbfdbe7ec8fe3eeb9b488a90567e86c7e8cf 24-May-2017 Jack Yu <jackyu@google.com> Fixed file descriptor leak in telephony unit tests
am: ae6e8f99bd

Change-Id: Ice665b510922057b5940b08504c578b14d3587ab
16fb750132532b5d3012576fa52805e3546551f7 23-May-2017 Jack Yu <jackyu@google.com> Fixed file descriptor leak in telephony unit tests

The handler thread in SimulatedCommands was not closed after
each unit test run. Fixed by adding a dispose method to quit
the thread.

Also use quit() instead of quitSafely() for all thread quiting
because we don't care if the messages were dispatched or not
after the test. This can fix some messages sending to dead
threads non-harmful exceptions in the output debug messages.

Test: Telephony unit tests
bug: 29579544
Merged-In: I112e46b0147a1950046a35cd9ac2498560c6ee1b
Change-Id: I112e46b0147a1950046a35cd9ac2498560c6ee1b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
ae6e8f99bdb297f906d6dcdc0a385ba27eee47fd 23-May-2017 Jack Yu <jackyu@google.com> Fixed file descriptor leak in telephony unit tests

The handler thread in SimulatedCommands was not closed after
each unit test run. Fixed by adding a dispose method to quit
the thread.

Also use quit() instead of quitSafely() for all thread quiting
because we don't care if the messages were dispatched or not
after the test. This can fix some messages sending to dead
threads non-harmful exceptions in the output debug messages.

Test: Telephony unit tests
bug: 29579544
Change-Id: I112e46b0147a1950046a35cd9ac2498560c6ee1b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
58ee748aa5c83c2a1ede1ab7c580855c3943b646 17-May-2017 yinxu <yinxu@google.com> resolve merge conflicts of 7ff23212f to oc-dev-plus-aosp

Test: I solemnly swear I tested this conflict resolution.

Merged-in: I71de3f1dc0790ca4b9a2b9a4827637cb337668e2
Change-Id: Ia6614337fc1d0db3981bdc0e57bd374a4144068c
c8c651f856047c6c761de788a14097600701cdab 21-Apr-2017 yinxu <yinxu@google.com> Add the new RIL requests to start/stop network scan

This CL defines the RIL API which will be used to start and stop the
network scan. The long-term goal is to support Subsecond Switching which
is separate from what this CL is doing.

Test: Telephony sanity tests
Bug: 30954762
Change-Id: I71de3f1dc0790ca4b9a2b9a4827637cb337668e2
(cherry picked from commit ffcdbea80c50d4911d52f61611722e446af72b66)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
f7cab9f4e8b612a0c2cea8f41261cb89147be6dd 16-May-2017 Grace Chen <chengrace@google.com> Merge "Support different SIM power states" am: f7ea390cc0 am: 69ee7f4e68
am: bcc9dc404a

Change-Id: I7c9ba95018674d97fd22c0998ea72298c219d993
2d4f7c72eb95807a2235068dde9c4c98cda2f626 24-Mar-2017 Grace Chen <chengrace@google.com> Support different SIM power states

Test: Verify SIM power states
Bug: 35844036
Merged-In: I0d7b73d25f987f556d134d22cebe8c322acb1cc3
Change-Id: I0d7b73d25f987f556d134d22cebe8c322acb1cc3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
3367f94d749d96c788b1712507152bb68400d437 09-May-2017 Sanket Padawe <sanketpadawe@google.com> Merge "Register for EVENT_RESTRICTED_STATE_CHANGED irrespective of phone type." into oc-dev
am: c5bfcf3351

Change-Id: I9231b3c98d95d30fb527d7d94f4407de89401144
a18eb87506359758fb67899525d0737d98923b8d 04-May-2017 Sanket Padawe <sanketpadawe@google.com> Register for EVENT_RESTRICTED_STATE_CHANGED irrespective of phone type.

+ Removed some dead code as well.

Bug: 37377132
Test: manual
Change-Id: I6ddddc39e69e0850e838b6f3cf1bc4adda682281
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
3dd2f4b1d5d89bb2e785df8e6ede6bf25937b0bd 16-Mar-2017 pkanwar <pkanwar@google.com> 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
Change-Id: I312ec08ffd1ff84ab5bb53047862f74eb95be470
Test: manual
Merged-In: Id76b9c21df88c3dc8b201c6400e999688d5bdc3e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
c6676c9a97efb78950c8f71ca7330d0bb4b24efd 03-Dec-2015 Ajay Nambi <anambi@codeaurora.org> Add p2 option in OpenLogicalChannel

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

Test: Basic telephony sanity
Bug: 27360148
Change-Id: I51ab0821f84dca8fff90c912ebbfc9f1129dcbe5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
10d75a759b897da1077e3aa21ced4c46698c5552 03-Dec-2015 Ajay Nambi <anambi@codeaurora.org> Add p2 option in OpenLogicalChannel

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

Bug: 27360148
Change-Id: I51ab0821f84dca8fff90c912ebbfc9f1129dcbe5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
6514905475910fe5bbabc98e237b0ee61377a0f2 09-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Revert "Get rid of RIL version.""
a56f405d3006b1d8378b5f7757a5613b75fa8fb4 09-Mar-2017 Adrian Salido <salidoa@google.com> Revert "Get rid of RIL version."

This reverts commit 81ea341d2deb767cbd1de2f356296ad92e951c52.

Bug: 36018228
Change-Id: Iee0410f197c2869e2bdefcaaae51e7ef215cdff1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
49c99113d77ca6f34f6a0c9d3e0049cddd3e754e 05-Mar-2017 Jack Yu <jackyu@google.com> Fixed enableLocationUpdates crash

1. The EVENT_GET_LOC_DONE handler dit not handle the
new voice registration response properly. This is a
regression introduced in ag/1907337.

2. Make ServiceStateTracker unit tests passed again!
Fixed a regression introduced by the Trebel change ag/1750738.
Return value of EVENT_RESTRICTED_STATE_CHANGED now is an integer
instead of an integer array.

Test: Telephony sanity tests
bug: 35980759
Change-Id: Idcacc4c891950913172be00daa966e7eb5be7fa6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
81ea341d2deb767cbd1de2f356296ad92e951c52 03-Mar-2017 Amit Mahajan <amitmahajan@google.com> Get rid of RIL version.

Test: Basic telephony sanity
Bug: 32020264
Change-Id: I61f19621dd86622faecca77c4dadf3ced81e9c21
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
50b941e59787a21dd2d4f3d25d700538efb9abc5 18-Feb-2017 Jack Yu <jackyu@google.com> Added device state monitor

Added DeviceStateMonitor to replace the legacy screen state RIL
API. Instead of sending the screen state to the modem, the new
device state monitor can explicitly turn on/off the unsolicited
response from the modem based on difference scenarios (e.g.
tethering, charging, screen state). It also sends more device
state to the modem including charging state, power saving state,
and low data expected state.

Note that in order to support the old vendor RIL, framework will
still invoke the legacy screen state API to ensure the best
user experience on those devices.

Test: Manual. Unit tests.
bug: 32223897, 20125037, 28294587

Merged-In: I76ce307bde1d3160af2ac44a57f101e4cafc7ae4
Change-Id: I76ce307bde1d3160af2ac44a57f101e4cafc7ae4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
caecd75617c11d33e000c4d90f8a6557c5b2de7e 13-Feb-2017 Jack Yu <jackyu@google.com> 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.

bug: 32224135, 30173958, 33561503, 30282096, 32020264
Test: Telephony sanity tests, unit tests

Merged-In: I239baa144bcee413f67e77c6b79b4ae5278077e8
Change-Id: I239baa144bcee413f67e77c6b79b4ae5278077e8
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
df97820b2db85a96b3d87e9968c1898ece1e6736 16-Feb-2017 Jack Yu <jackyu@google.com> Added the new RIL request to set SIM power state

The new RIL request for powering up/down the SIM card.

Test: Telephony sanity tests
bug: 32224755
Merged-In: I71d07e39a07ee4c1ea877adf188955aeb5a70793
Change-Id: I71d07e39a07ee4c1ea877adf188955aeb5a70793
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
8b38cd985149b459969dd2ac9e8013d852dc6760 18-Jul-2016 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

Test: Through logs confirmed that the wakelock decrement is happening
correctly
BUG=31041780
Merged-In: Id8ca0006478212c006a103b83fb720532e9c0fab
Change-Id: Id8ca0006478212c006a103b83fb720532e9c0fab
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
6509576d8eb86664d1b5383a1b637e00748e807e 24-Jan-2017 Jack Yu <jackyu@google.com> Renamed voiceNetworkStateChanged and dataNetworkStateChanged

The misleading voiceNetworkStateChanged should be renamed
to networkStateChanged to reflect either voice or data
network changes will trigger this indication.
And dataNetworkStateChanged should be renamed to
dataCallListChanged as well.

Test: telephony sanity test
Merged-In: I5839efc3bdaf137310238790221c8ba93794bde3
Change-Id: I5839efc3bdaf137310238790221c8ba93794bde3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
ed5af31ed3ace33d69ff77767daad816ef989c11 09-Jan-2017 Wenting Xiong <wenting.xa.xiong@sonymobile.com> Add test case for restricted state change notification

Verify ServiceStateTracker#onRestrictedStateChanged() to show
proper notification.

Bug: 31101137
Change-Id: Ib9fae72c669f1af7265123ca16560dbaba163277
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
5b2ab35a32f1f897b98978a177ae87c90678cd29 30-Jun-2016 Amit Mahajan <amitmahajan@google.com> Get current calls on phone type switch. am: 77eeade7a1
am: 9ec60c4790

Change-Id: I359d78eb9bbb5341a100b2d5663a845491ef4898
77eeade7a1391b045f8b2ce681efd49f27d3506f 30-Jun-2016 Amit Mahajan <amitmahajan@google.com> Get current calls on phone type switch.

There may be active calls from previous phone type.

Bug: 29738766
Change-Id: I16a57567fd72be35a7e15eccb6a65f540b51874d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
5c90e11a655cfde1e7eeb047f05ce66ccb5828bc 22-Jun-2016 Y <fionaxu@google.com> add upper bound on nitz year

-framework will ignore NITZ time after Jan 1, 2038 to avoid malicious
basestation hack phone time and cause phone crashes
-unit test

Bug: 29083635
Change-Id: I4f60610ed13f5d6e7b0cf18f43708be2e528368c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
b4237f12fd73204e9775909e03d9277e59d94766 20-Jun-2016 fionaxu <fionaxu@google.com> add upper bound on nitz year

-framework will ignore NITZ time after Jan 1, 2038 to avoid malicious
basestation hack phone time and cause phone crashes
-unit test

Bug: 29083635
Change-Id: I4f60610ed13f5d6e7b0cf18f43708be2e528368c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
4b4d80db8a8d447d3c1110831c2a821a2bd2a186 02-Jun-2016 Robert Greenwalt <rgreenwalt@google.com> Add support for UNSOL PCO Data.

PCO is a container in data-call responses with a range
of optional fields devoted to carrier-proprietary signalling.
This change includes a class to contain this opaque info on
its way to carrier apps.

bug:28961371
bug:28567303
Change-Id: I8ad4e8e56f71d29a7dce52074959459b3063e103
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
40659286ac42ec77bbe7893830bd50c06f393ee8 11-May-2016 Meng Wang <mewan@google.com> Add setAllowedCarriers, getAllowedCarriers to Phone and RIL

Bug: 28564314
Change-Id: I52be8bc7b2f74af9af2a1e3364d4ea33bb806681
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
0b24cf9fa32362616f3c55da9c0ec768c4bd174b 31-Mar-2016 Amit Mahajan <amitmahajan@google.com> Set isGsm flag in SignalStrength correctly.

Bug: 27541623
Change-Id: Id399f67e0d1a73e9485b71a5907e716a79297b2b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
f32222bd7bf1e3e619b1451b46f7f4aa94474ba1 29-Mar-2016 Sanket Padawe <sanketpadawe@google.com> Unit tests for ServiceStateTracker

+ Adding unit tests testing public functions in ServiceStateTracker

Bug: 25691379
Change-Id: If99e7df70f1168124b361cc5e406a01021024136
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
b9e8a7d21c671240b387bb6b8e8314aa710c0d57 18-Mar-2016 Robert Greenwalt <rgreenwalt@google.com> Refine pollState when the modem is off.

It had been fixed to not ask the RIL for state if the modem was off
unless we're on IWLAN. However, the first indication we're on
IWLAN comes via a pollState response. Modified to also poll
if the pollState trigger came from the RIL (ie, a network state change
notification).

bug:27486486
Change-Id: Ibaed6e2e98d27e651faeeccf71d43e7ff77c938b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
95ec763edbf8bb5b8484c1460897c0ba279b03a3 11-Mar-2016 Chen Xu <fionaxu@google.com> Merge "First ImsSMSDispatcher Unit Test" into nyc-dev
f06b7cffd2240725be159097be048fc1d3a7653c 10-Mar-2016 fionaxu <fionaxu@google.com> First ImsSMSDispatcher Unit Test

bug: 2569137
Change-Id: Ibc64fb14459b062e05968212774612f7c2b2dbc0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
e3f497323441d0c9215f6cbad9ce950f054cce72 09-Mar-2016 Jack Yu <jackyu@google.com> Added unit test cases for DataConnection

bug: 25691077
Change-Id: I90920c7625ec7f8f716fbab15f65c7f4323628cc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
9a2d68f18b4441404eaa4d1cb45d9b457915b234 03-Mar-2016 fionaxu <fionaxu@google.com> move Uicc TCs to UICC subfoler and code cleanup

bug: 2569137
Change-Id: I0afcbc570fa04326d319788fbaa3217d413144f8
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
4145d45a5e3076a88e27a3af35c2827a25c413b9 02-Mar-2016 fionaxu <fionaxu@google.com> First Unit test on UiccCardApplication

bug: 25691379

Change-Id: I897a2485ec45285146a122f2717fe7daab334d54
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
6fd2229711f75f686ce6254e6c9859247310598d 26-Feb-2016 Abhijith Shastry <ashastry@google.com> Merge "Suppress blocks after texting emergency services." into nyc-dev
d02f796963420fd100a77c8a8cf196b5ce44d2b0 26-Feb-2016 Amit Mahajan <amitmahajan@google.com> Merge "Unit test for emergency callback mode start/end." into mm-wireless-dev
de9c22e95d4e2797076db0c6b798e54f0638b7f0 26-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit test for emergency callback mode start/end.

Bug: 25691379
Bug: 27378459
Change-Id: I5c93f6bb6f5e9c9b0da8851c8461c378c18c8c58
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
5ba11026cbe45b32a4a37292f9b47c4585ced72f 25-Feb-2016 Jack Yu <jackyu@google.com> Merge "Fixed data retry issues." into mm-wireless-dev
5eccb26b2bcf3a51326596e1b0bb49b073d2f9fc 23-Feb-2016 Abhijith Shastry <ashastry@google.com> Suppress blocks after texting emergency services.

BUG: 26989170
Change-Id: I73216e5c433ba4ffb613d88b1d3fe3c81f3acba9
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
7d592679b92a2fb35514193f2f95cd0138035050 18-Feb-2016 Robert Greenwalt <rgreenwalt@google.com> Fix ServiceStateTracker.pollState with radio-off.

IWLAN change dropped the "break" line causing us to always send
another round of ril requests even when the radio is off.

Change-Id: If838438c742abb4056a64fc7ae30afd53e7e229e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
14bdfdca7a5412edf5fbdd6573e0f608233a5ae8 24-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit test for GsmCdmaPhone (handling of messages rcvd on creation)

Includes access modifier cleanup in Phone

Bug: 25691379
Change-Id: If14eba8665f031c866a5d199078317d9d9e1291d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
7d6d7d6cb68ee37b4bee33588ba2594e9cf0c197 23-Feb-2016 Jack Yu <jackyu@google.com> Fixed data retry issues.

1. Fixed that data retry does not happen on time. Now we use the
exact timer to make sure retry will happen on time.
2. Fixed that data retry timer got started twice every time when retry
should happen.

bug: 27293537, 27158552
Change-Id: I05bbf0cb2717269984f3dc892af2a7a438ffd8f0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
bc2eba9036e430ea40a47ab708c0386fa567ec9c 28-Jan-2016 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE - Make PhoneSwitcher class.

Monitors subscription->phone mapping, default subscription setting and
all mobile network requests to prioritize things, activate/deactivate phones
and also notify the curious about which phones are currently active.

Change-Id: I933876a018aebbbcfd86f48451d8b6e47646266e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
27b650c406018355a88a41528db7859e232728a0 18-Feb-2016 Jack Yu <jackyu@google.com> First DcTracker unit test case.

bug: 25691379
Change-Id: Ic091ae4d92d0ef1f3eaa9b3d0736545edb2f359f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
2d6df73e3bebb7d6aebd628730b9d20b23f1637a 11-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit tests for CallForwardingOption in GsmCdmaPhone

Bug: 25691379
Change-Id: Ic8e5b8c96d93f9c3a09b0a2f7a22e9357372ba9c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
b9d551db1795b30598e2ce98cfae7106788c12d6 05-Feb-2016 fionaxu <fionaxu@google.com> handle diff systemproperties to fix Test failures

BUG=25691379

Change-Id: I13c079a26dc1c1a971471bef55770b97d489e39f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
ffe9936d2dc65d0a84c309cb8292680328d98018 04-Feb-2016 Chen Xu <fionaxu@google.com> Merge "UICC card and UICC controller Unit test" into mm-wireless-dev
716376f58f1ab675f56b967323d8073b4cf5be40 04-Feb-2016 Jack Yu <jackyu@google.com> Merge "Fix the neighboring CID on GSM(GPRS) network." into mm-wireless-dev
66fb0378fd913dfe564c8e31b5ef379592242615 04-Feb-2016 Jack Yu <jackyu@google.com> Fix the neighboring CID on GSM(GPRS) network.

Set the data network type system properties with the correct RAT.

bug: 26956224
Change-Id: I2a046c3974930c25a2fb3c98cbfef76b83a0d8a3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
32b5fbb1a340fa16e2c37c276517ef10a4934500 03-Feb-2016 Amit Mahajan <amitmahajan@google.com> Unit tests for GsmCdmaPhone.

Also creating abstract class TelephonyTest that can be extended
by other unit tests.

Bug: 25691379
Change-Id: I9437642a0bab68c6b573954e587181ff7d04d217
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
9bf2a9297d37cdba05b023189c7a10357d8b0eee 01-Feb-2016 fionaxu <fionaxu@google.com> UICC card and UICC controller Unit test

BUG=25691379

Change-Id: Iefb6c01b6cbb7544f4a5a06ef3a44e0c0dcc89b8
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
e3b8bf78b63c45806f28812a66174aa8222c2973 01-Feb-2016 Chen Xu <fionaxu@google.com> Merge "Unit test for GsmCdmaCallTracker" into mm-wireless-dev
874b62e43a2390c8b07cbbab40675a6c9a387398 30-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Merge "Modify CommandsInterface.setupDataCall()" into mm-wireless-dev
ceea0fa1248e326663ac56e5ba37b0633f8adacc 29-Jan-2016 Amit Mahajan <amitmahajan@google.com> Unit tests for SmsStorageMonitor

Bug: 25691379
Change-Id: Iab7080afcd422d642b6d1be6d49e4f16ccf461fd
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
5755ef622fec6f3c592467c685503826862a7536 26-Jan-2016 fionaxu <fionaxu@google.com> Unit test for GsmCdmaCallTracker

BUG=25691379
Change-Id: Ic588ed4b78d645008698bff73a2995bdfd15e064
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
5d5ec64fcd293928776aebe5c92278afb5bc019d 29-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Modify CommandsInterface.setupDataCall()

- Change numeric parameters from String to int
- Move inside conversion of radioTechnology from RIL_RADIO_TECHNOLOGY_*
constants to values expected in RIL_REQUEST_SETUP_DATA_CALL parameter

Change-Id: I12e98c59ef115ee8d2454560a7a787e74dc95f49
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
e5e0593e54a4e1009190dab5d6fd507dca0e341e 27-Jan-2016 Jack Yu <jackyu@google.com> Added few more unit tests for ServiceStateTracker

bug: 25691379
Change-Id: I405522b6b41d53ffcd5fae0fb261115e5d69b059
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
5d5ca33a24e6b73a48b575a0e1a5e790784d0bb7 27-Jan-2016 Amit Mahajan <amitmahajan@google.com> Unit test for CdmaSmsDispatcher

Bug: 25691379
Change-Id: I9d4f209ad1a20435ae8841e5f15ce8a94b52fa42
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
e2507b53266017e219a079f514801fe72ee90229 27-Jan-2016 Jack Yu <jackyu@google.com> Added cell info unit tests.

bug: 25691379
Change-Id: I4186ad702f9a701e7e882b16e54609124bb3568d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
20c965e505306ebb6e2d06f1a0abe3cd3eadbd6e 25-Jan-2016 Jack Yu <jackyu@google.com> Merge "Added NITZ update test case." into mm-wireless-dev
339fadff86dd1add253a7571c8be35e51489111e 25-Jan-2016 Amit Mahajan <amitmahajan@google.com> Merge "First unit test for GsmCellBroadcastHandler" into mm-wireless-dev
62f7e2b54fb3ad9f1139ceaf3b15966c000a9135 24-Jan-2016 Jack Yu <jackyu@google.com> Added NITZ update test case.

Added NITZ update test case.

bug: 25691379
Change-Id: I636e973daa81e2cf0f1cab67877535ec444f0bcc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
3c7c2c2dfecfe11991f707a09ce79863e0ffdaa7 23-Jan-2016 Amit Mahajan <amitmahajan@google.com> First unit test for GsmCellBroadcastHandler

Bug: 25691379
Change-Id: I9e32eb7b55cf1f4edf35bf4c6786e5cc00db7870
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
59d1e823d9aa8bc80ec6fd552fd85384bdfa75cd 22-Jan-2016 Jack Yu <jackyu@google.com> Added unit test for ServiceStateTracker.

Added testSpnUpdateShowPlmnOnly test which simulates the scenario
that only PLMN is shown but not SPN.

bug: 25691379
Change-Id: I65ae7d59d1fe6039997631152997dca17c8f390f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
91680ad599f9e15a32c3a9798021778e8d4eab6e 22-Jan-2016 Amit Mahajan <amitmahajan@google.com> First unit test for GsmSMSDispatcher.

This includes a verifier class that can be used to check if a
function in RIL was called by the class under test.

Bug: 25691379
Change-Id: I187fe6c482dd6f32fbc4bdadb90e7a4412d7d795
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
b6514b21f3d8ed47a088b741a18fe0b1de2308ea 15-Jan-2016 Jack Yu <jackyu@google.com> Fixed the broken testSetRadioPower test.

Fixed the broken testSetRadioPower test due to telephony debug
service change.

bug: 25691379
Change-Id: I1fb25671eda2ae53ba2165a0e0c64cc4525ac81b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
0a567c9ed954f295df83c753239646c6f6a04128 24-Nov-2015 Amit Mahajan <amitmahajan@google.com> Adding initial tests for GsmCdmaCall and GsmCdmaPhone.

Also includes:
- Changes to fix/comment out failing tests
- Some cleanup in CallManager related to deletion of PhoneBase and
PhoneProxy
- ContextFixture containing mock Context for all telephony tests
- Phone test that exercises BroadcastReceiver support in the mock
Context
- Test showing how static function can be mocked

Bug: 25691379
Change-Id: Ia38423cef3cfb86389d044cac4e601983fae1192
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
1a87ab3d7170d618f048c4f5af8c7504a587aaa5 10-Dec-2015 Jack Yu <jackyu@google.com> Merge from master

Change-Id: Ifbd86600111d2c444031ff608fab62fb2ee4b236
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
27eef341b171f925ef43dd088cc559280fd7d2b9 28-May-2015 Prerepa Viswanadham <dham@google.com> Activity info and stats from modem

Change-Id: Ib00c317d8571a318491e91d79ba42577af5485a4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
65bee39d7e417fb898c3948696d5d8a38046c449 20-Mar-2015 fenglu <fenglu@google.com> LCE service implementation - tele service side

-redesigned based on ConnectivityService/NetworkCapabilities

Change-Id: I54074234e1117b41eb6ff761ead9241928585fc6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
09b65da3b46e18c8acc146d722047ba2fb161bfe 19-Oct-2012 Preeti Ahuja <preetia@codeaurora.org> STK CC feature implementation

Support to display the current request is changed by STKCC.
Support to display alpha messgae from STKCC.
Support to display informatiom from new SS message.
Add FLAG_RECEIVER_FOREGROUND to alpha broadcast intent.

Bug: 17646476
Change-Id: I89671830eeef62a48e3133a2e3afbdeb096ecf3c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
6ad88a8a2caf739e78c8d5f7f50fc7fa84a07ca7 24-Sep-2013 Chaitanya Saggurthi <csaggurt@codeaurora.org> Send SMS using RIL_REQUEST_SEND_SMS_EXPECT_MORE

1) New commandinterface API sendSMSExpectMore to send sms using
ril request RIL_REQUEST_SEND_SMS_EXPECT_MORE.
2) sendSMSExpectMore API to send multisegment sms pdu's except
last pdu in GSM. In case of retry use sendSms even for
multi segment message, because don't know how many
segments are failed to send

Bug: 17570854
Change-Id: Icfc200a9c9c5940f0e10668b4385d1633a6c943b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
03586878fb3d870373f2fdf65afb81cc5ae97067 02-Aug-2014 Naveen Kalla <nkalla@codeaurora.org> Send Shutdown Request to RIL.

Send RIL_REQUEST_SHUTDOWN to RIL when device is shutting down.
RIL can use this request to shutdown the SIM card and modem gracefully.

Bug: 9773278
Change-Id: I6afa9e810cefc7855f7ae42e51f39cc51fa2aa6e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
9d4ec7d45061f1da05f16cd244eb0a798e7f36bb 13-Aug-2014 Amit Mahajan <amitmahajan@google.com> Revert "Revert "add apn setting parameters, and set apn parameters to bp""

This reverts commit 01f27d2c616797e5ba821159f8aca7b75aa54ae1.

Change-Id: Id9e7cf180092f320f635084f805b97f6409d0f03
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
01f27d2c616797e5ba821159f8aca7b75aa54ae1 12-Aug-2014 Amit Mahajan <amitmahajan@google.com> Revert "add apn setting parameters, and set apn parameters to bp"

This reverts commit f4b74430a8c22ab58c3fbbd6c9e7a594514a8615.

Change-Id: I1f300741d858ff39ae573e576479613b084e4616
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
f4b74430a8c22ab58c3fbbd6c9e7a594514a8615 10-Aug-2014 Hui Wang <huiwang@motorola.com> add apn setting parameters, and set apn parameters to bp

Change-Id: I395b499eb0730894620614b3261bb6a784d53f46
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
ce083ae9d277bea9fbc1c143766adf1013f4a50e 02-Jul-2014 Amit Mahajan <amitmahajan@google.com> Changes to add new parameter for Sim Authenticate

Change-Id: I393c18f878fe3e5efcd81543a9a38a4c353b6e03
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
a8467dd0c524787104b1ccdddc5e8af10ba729ed 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
8a3cf2d80c0cdee7360404dd0ac08ca6f9a7e246 30-Apr-2014 Derek Tan <derektan@google.com> Correct the comment in queryAvailableBandMode.

The correction is based on RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE defined
in ril.h and my experiment.

Change-Id: I1610bde07d9345c96c6962d2032130d36c5eecf8
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
f4016c89cdb71c75b63b73a9f6d5b84681307142 06-Feb-2014 Jake Hamby <jhamby@google.com> Remove unneeded new RIL command.

Remove the recently added RIL_REQUEST_SET_RADIO_MODE command and update
the definition of the RIL_REQUEST_NV_RESET_CONFIG parameter.
Also, space out the NV item enum values so we can add new items per category.

Bug: 12864208
Change-Id: I1201c92198a8cd7e169efe7055b58259d975309b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
f28ac81ec36df38307648d404cff4b2b11f46861 15-Jan-2014 Jake Hamby <jhamby@google.com> Add new RIL commands to read/write and reset NV items.

Add new RIL commands to read/write and reset NV items.
Used by some operators for CDMA band config and PRL update.

Note that this CL depends on a typo fix in the corresponding
frameworks/base change and packages/services/Telephony depends
on a typo fix in this CL.

Bug: 12864208
Change-Id: I3081619a82af698a3197ce23870bf4de248fb3e7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
dc0a7a65c806fd58baa5e189227f1d302d51c0a6 05-Dec-2013 John Huang <jsh@android.com> am 9e6a8351: Merge "RIL changes for supporting generic SIM communication."

* commit '9e6a8351f1ee21e7dd7d30583c7085fcbeb3a863':
RIL changes for supporting generic SIM communication.
40d1d394302d83eb56f66cf08daecc612c97cd28 28-Nov-2013 Shishir Agrawal <shishir@google.com> RIL changes for supporting generic SIM communication.

Exposes four new commands through RIL.java:
- RIL_REQUEST_SIM_TRANSMIT_BASIC (AT+CSIM - TS 27.007)
- RIL_REQUEST_SIM_OPEN_CHANNEL (AT+CCHO - TS 27.007)
- RIL_REQUEST_SIM_CLOSE_CHANNEL (AT+CCHC - TS 27.007)
- RIL_REQUEST_SIM_TRANSMIT_CHANNEL (AT+CGLA - TS 27.007)

Change-Id: Iee4d950d37a6097493cd945e611c914c40827215
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
ace9a749c5a2a5e07527f728b7331423d16c36cd 30-Oct-2013 Sukanya Rajkhowa <srajkh@codeaurora.org> SMS over IMS bug fixes

This change includes the following:
1) SMS over IMS remaining patches which address review comments

2) Fix for Bug:11378993
For MT SMS over IMS, if an application uses the createFromPdu(byte[] pdu) API
instead of createFromPdu(byte[] pdu,String format) API, we first try to create
SmsMessage from raw PDU with the format of active phone. That either returns a
valid SmsMessage object or throws a RuntimeException causing the correct format
to be used the next time. If GsmSmsAddress is not valid, we should throw
a RuntimeException which is handled by createFromPdu(byte[] pdu)

3) Fix for Bug:11424054
Register for ICC changes and handle new SMS on ICC

Bug: 11378993, 11424054
Change-Id: I94bcfcf93d8205c2916997091617899c6ebdd5e5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
1260f1c6c909f2940989b72afe1b91fd83845eaa 14-Sep-2013 Sukanya Rajkhowa <srajkh@codeaurora.org> Support SMS over IMS

ImsSMSDispatcher is part of IccSmsInterfaceManager.
It always receives calls to send sms first and decides
whether to use ims call flow or gsm/cdma based on response
to REQUEST_IMS_REGISTRATION_STATE.

When ims is registered and sms is supported, the request also returns
sms format to use.

In case of sms over ims failure, RIL_REQUEST_IMS_SEND_SMS sets
messageRef from RIL_SMS_RESPONSE of corresponding failed MO SMS, and
sets retry field to non-zero. If voice is available, sends
RIL_REQUEST_IMS_SEND_SMS retries with data encoded based on voice tech
available. If voice is not available, sets retry counter to max and
skips retries and sends failure to client.

Bug: 9626411

Change-Id: I4c63c8fc0eb2191847b509e66772e3de27d491ed
Signed-off-by: Ed Tam <etam@google.com>

Conflicts:
src/java/com/android/internal/telephony/gsm/GSMPhone.java
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
5d5eea6ed231163c225144316b0d1913d48678a4 26-Apr-2013 Sungmin Choi <sungmin.choi@lge.com> Set initial attach apn for LTE network

When mobile register LTE network, APN provided by operators is needed.
If mobile does not have apn information, it could not register LTE network.
To deliver APN information which is used during LTE attach to modem chipset,
setLteAttachProfile() and RIL_REQUEST_SET_LTE_ATTACH_PROFILE command is added.

When Telephony DB is loaded or Telephony DB is changed, follow steps.
1. If preferred default ApnContext exists, this is delivered to modem chipset.
2. If preferred default ApnContext is null, find other ApnContext which can
handle default type.
3. If other ApnContext which can handle default type does not exist, any other
ApnContext delivered to modem chipset.

Then modem register LTE network with APN information delivered from AP.

Bug: 8733613

Change-Id: If84c62cddccf96a531dae0527ed1a6592ae76201
Signed-off-by: Seonju Oh <seonju.oh@lge.com>
Signed-off-by: Hyejin Kim <hyejin.kim@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
5fb811ff076aa6b4a9ceca6edaf504a4c6d9ad20 09-Apr-2013 Wink Saville <wink@google.com> Add FW support for CellInfo RIL commands.

Bug: 8235566
Change-Id: I7ad7dabc4b6c38bfba4461b08e6e30d0eb9efea1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
ff4e317d24f0d23bdc0f306d53ddc51f2f1ecf6a 22-Mar-2013 Wink Saville <wink@google.com> Move retrying into DC.

This is the first step in refactoring for bug 4772191.

Bug: 4772191
Change-Id: Id54a20ab192783c63939158670faaf531a527640
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
22d85a8e3a575a6d01d2c788587971657dfe20c6 23-Feb-2013 Wink Saville <wink@google.com> Clean up member variables.

Change-Id: Ib60f350131ade626aca682407ea0b4377b16f6c6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
cbaa45bbf2cab852b6c9c3a887e9f803d4e857ea 23-Feb-2013 Wink Saville <wink@google.com> Clean up

- Add @Overrides where needed.
- Update javadoc comments
- Remove extra semi-colons
- Rename DataConnection.java to DataConnectionBase.java
- Rename GsmDataConnection.java to DataConnection.java
- Add defaults to switch statements
- Remove/fix most "if (false)" statements. Fixed by using a CONSTANT
- Fix hidden variables by hoisting to base class or renaming
- Tweak some debug output

Change-Id: If38de2fdeaacafbf40cdfd7f84dc5c52030ba2a3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
a63f55cf17629426d976830429a7612387532195 24-Jul-2012 Rika Brooks <rbrooks@codeaurora.org> Telephony: Define enable/disable APIs for Cdma CMAS

- Define enableCellBroadcastRange, disableCellBroadcastRange,
enableCellBroadcast, disableCellBroadcast for Cdma broadcast.
Create CdmaBroadcastRangeManager extended from existing IntRangeManager.

Change-Id: I5d70175862547475f49e08328ab3dcc5560e9096
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
ded9c0af7fa49504c047275ed34c2d3b22bf0c3a 07-Dec-2012 Wink Saville <wink@google.com> Use Rlog

Change-Id: Ie013f51215de8380b8de74161b6056b010711cfd
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java
0825495a331bb44df395a0cdb79fab85e68db5d5 12-Jul-2012 Wink Saville <wink@google.com> Create telephony-common

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: I32cbb5eec1fa239c1587e055c8f7ef4fc48fb62c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/SimulatedCommands.java