summaryrefslogtreecommitdiffstats
path: root/telephony
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add supportsAdn()Daisuke Miyakawa2012-03-291-0/+20
|/ | | | | Bug: 5487135 Change-Id: I52e570ef5d175ed8ae971c5f9889496e30f2c528
* Move TelephonyCapabilities from Phone to telephonyDaisuke Miyakawa2012-03-291-0/+160
| | | | | | | | | | - Move the class. - Remove some TODOs mentioning this action : the class should belong to telephony layer instead of to the Phone package - Add private strings used in the class Bug: 6252254 Change-Id: I0d4ca2f8e4d775004d146fe6f9c60165a94366a9
* Telephony: Remove IccFileHandler from PhoneBaseAlex Yakavenka2012-03-268-37/+21
| | | | | | | | mIccCard is now be multi-thread safe but other similar variables such as mIccRecords will be cleaned up in the future and are no worse than before. Change-Id: Ic2fc31af2575c2dc0bb30e7348dd9e76ec61e763
* Telephony: Move Cat to IccCardAlex Yakavenka2012-03-213-11/+8
| | | | Change-Id: Ibbea7b8f277f33e71580d61f83645b0aaefef580
* Telephony: Remove coupling between phone and IccRecordsAlex Yakavenka2012-03-2115-252/+368
| | | | Change-Id: I7af0f0f37c59b7554fa329a5b00ff28cb149b4d9
* Add support for CMAS warning notifications over CDMA.Jake Hamby2012-03-1317-575/+3017
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor SMS Cell Broadcast support to enable receiving CMAS warning notifications over CDMA. The CellBroadcastReceiver app must also be updated with the corresponding change. All cell broadcasts are now delivered as a Parcelable SmsCbMessage object in the "message" extra of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION, instead of as a GSM/UMTS "pdu" byte array. Existing functionality for ETWS and CMAS alerts over GSM/UMTS continues to be supported using the new radio-technology independent SmsCbMessage and related objects. Test cases are added to verify that valid and invalid broadcast data is handled appropriately. Unit testing discovered a bug in the BitwiseOutputStream utility class used by the added test cases. When the BitwiseOutputStream object must be expanded (in the private possExpand() method), the mEnd field is not updated to the new array size. This causes a new array to be allocated on every new write, and for all data beyond the original array allocation to be replaced with zeroes. Fixed by adding a line to possExpand() to update mEnd. Added a test case to BitwiseStreamsTest to verify the fix. Besides the test cases, BitwiseOutputStream is only used by BearerData in two places, both of which allocate a sufficient initial buffer. So the bug in BitwiseOutputStream is not critical to fix for normal operation, but should be fixed so that the test cases using it function correctly. Bug: 5856308 Change-Id: I201ecbf11607fd200aaae3cbb32561efabf65672
* Telephony: Make IccFileHandler use ci instead of phoneAlex Yakavenka2012-03-135-50/+55
| | | | Change-Id: I94889b5b7954d9c16721f12145e8412ba418ac12
* am 2a0eed20: am 442612a2: am f4ae6aab: Allow CDMA on LTE devices to get data ↵Wink Saville2012-03-121-1/+2
|\ | | | | | | | | | | | | connections even if otasp is needed. * commit '2a0eed20b5828877b2db24bf49468e10c3f1b36b': Allow CDMA on LTE devices to get data connections even if otasp is needed.
| * Allow CDMA on LTE devices to get data connections even if otasp is needed.Wink Saville2012-03-101-1/+2
| | | | | | | | | | | | | | | | | | | | Bearer Independent Protocol (BIP) connections as defined in ETSI TS 102 223 "Smart Cards; Card Application Toolkit (CAT) (Release 11)" need to be able to establish data connections even when not provisioned. This can occur when trying to provision on via and EVDO network. Bug: 6110632 Change-Id: I85722e0ba2e2606ffcf2516b8f00be6ff5271adf
* | Support auto-complete in PhoneNumberFormattingTextWatcher. Also, simplify logic.Todor Kalaydjiev2012-03-082-48/+86
| | | | | | | | | | | | | | | | | | Previously, the assumption was that only a deletion or an insertion can happen at a time; but with auto-complete, a deletion and insertion happen at the same time. Needed for bug 5992672 in the Messaging app and is nice to have in the platform. Change-Id: I2d80cecc486e7a1ceeaeb34866bcd834074f5ead
* | Telephony: Create and use UiccControllerWink Saville2012-03-0612-43/+166
| | | | | | | | | | | | | | UiccController creates and disposes IccCard IccRecords and IccFileHandler is part of IccCard Change-Id: I3dfb476c76162bbe8443271927a06743bb5e39c4
* | Merge "Telephony: Remove SimCard and RuimCard"Wink Saville2012-03-0112-123/+36
|\ \
| * | Telephony: Remove SimCard and RuimCardAlex Yakavenka2012-02-2912-123/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove notions of SimCard and RuimCard since they don't make sense in the world of Uicc cards where each card can have multiple 3gpp and 3gpp2 subscriptions. This change prepares code for the introduction of Uicc cards. Change-Id: Ibab13004604f829328b73c177669b89ef97d3f25
* | | Merge "[maguro] Add Cheers' MCCMNC in SIMRecords.java"John Wang2012-03-011-2/+4
|\ \ \
| * | | [maguro] Add Cheers' MCCMNC in SIMRecords.javaSangcheol Lee2012-03-011-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [issue 5963659] Result: There is no APN information for Cheers Expected Result: Mobile internet APN name for Cheers should be displayed Change-Id: Iab29cfbd06ab15559048ced23136abae1fcab8f3
| * | | Revert "Add support for CMAS warning notifications over CDMA." I'll submit ↵Jake Hamby2012-02-2917-2852/+574
| | | | | | | | | | | | | | | | | | | | again when the app change is ready. This reverts commit 0c49f03a0429b5c0c4a619256f7bca86a4997ae8
| * | | Add support for CMAS warning notifications over CDMA.Jake Hamby2012-02-2817-574/+2852
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor SMS Cell Broadcast support to enable receiving CMAS warning notifications over CDMA. The CellBroadcastReceiver app must also be updated with the corresponding change. All cell broadcasts are now delivered as a Parcelable SmsCbMessage object in the "message" extra of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION, instead of as a GSM/UMTS "pdu" byte array. Existing functionality for ETWS and CMAS alerts over GSM/UMTS continues to be supported using the new radio-technology independent SmsCbMessage and related objects. Test cases are added to verify that valid and invalid broadcast data is handled appropriately. Unit testing discovered a bug in the BitwiseOutputStream utility class used by the added test cases. When the BitwiseOutputStream object must be expanded (in the private possExpand() method), the mEnd field is not updated to the new array size. This causes a new array to be allocated on every new write, and for all data beyond the original array allocation to be replaced with zeroes. Fixed by adding a line to possExpand() to update mEnd. Added a test case to BitwiseStreamsTest to verify the fix. Besides the test cases, BitwiseOutputStream is only used by BearerData in two places, both of which allocate a sufficient initial buffer. So the bug in BitwiseOutputStream is not critical to fix for normal operation, but should be fixed so that the test cases using it function correctly. Bug: 5856308 Change-Id: Ie3e6af747976ce9b8a3e71e76fec71709cf86545
* | | If no NITZ information use Country Code to set TimeZone.Wink Saville2012-03-013-12/+100
|/ / | | | | | | | | | | | | | | | | | | | | | | This is not perfect and only works if the CC is known via the GSM radio and is only accurate if there is one time zone per country. This does nothing to resolve time zone problems for wifi only devices. So this is a partial fix for bug 2896745 Bug: 2896745 Change-Id: I78f013836c4e4870b8b1016a8312f5adbe0d31c9
* | Merge "Prevent dial() return null in a racing condition."John Huang2012-02-271-2/+2
|\ \
| * | Prevent dial() return null in a racing condition.John Wang2012-02-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The racing condition happens between dial() returns and the first GET_CURRENT_CALLS query gets handled. If GET_CURRENT_CALLS gets handled before dial() finishs, the pendingMO can be set to null in handlePollCalls() so that dial() will return null. This null connection causes error in PhoneUtils.placeCall(). The Synchronized dial() and handlePollCalls() Methods will make sure the dial() returns before the first GET_CURRENT_CALLS gets handled. bug:6028290 Change-Id: I41b024760acb7dd13b342866180dffe3fdbe1c03
* | | attempt to fix IMSFramework crashMathias Agopian2012-02-241-0/+4
|/ / | | | | | | Change-Id: Iad6dd85afe8f37c1e443c116162d75f116c24316
* | Merge "Seperate RIL constants from the framework."Robert Greenwalt2012-02-2411-133/+170
|\ \
| * | Seperate RIL constants from the framework.Robert Greenwalt2012-02-2411-133/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have two sets of constants for network type. One used by the RIL can't be changed without big pains with OEM/Radio vendors. The other has been published as part of the framework and can't be easily changed either. Separate the two so it's clear where one should be used versus the other. bug:5717664 Change-Id: Ibf21f9165662e75557c7254fc9ad9a4870ba4af9
* | | Merge "Introduce convertAndStrip()"Daisuke Miyakawa2012-02-152-0/+45
|\ \ \
| * | | Introduce convertAndStrip()Daisuke Miyakawa2012-02-152-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Phone app will use this for actual phone calling, coping with IccProvider, etc. Add unit tests for the method, and stripSeparators() which is missing Bug: 5546664 Change-Id: I49b996abe7a44f7db4301b62f667189281fc40e9
* | | | am 1b2583c4: am 7874efeb: am c8711ca7: Merge "Stop using shared DUN APN when ↵Robert Greenwalt2012-02-152-11/+18
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | tethering stops." into ics-mr1 * commit '1b2583c41c37c055821d8f4ebbdc717f108c3b48': Stop using shared DUN APN when tethering stops.
| * | | Merge "Stop using shared DUN APN when tethering stops." into ics-mr1Robert Greenwalt2012-02-146-28/+121
| |\ \ \
| | * | | Stop using shared DUN APN when tethering stops.Robert Greenwalt2012-02-146-28/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backported from master, including a bug fix and a cdma enhancement. Even if other people are sharing the connection (ie, carrier wants default and tethered traffic on the same APN) stop using a carrier- described APN when the tethering stops. bug:5972599 Change-Id: I25e4831855e6b62c0c3ab3a6f4d4846aaee6ac50
* | | | | am 7a08ef44: am e3776a47: am fc19160a: Merge "Add a config to set Dun ↵Robert Greenwalt2012-02-151-2/+19
|\ \ \ \ \ | |/ / / / | | | / / | |_|/ / |/| | | | | | | | | | | capabilities." into ics-mr1 * commit '7a08ef442ad6138352785690a8e341607d763399': Add a config to set Dun capabilities.
| * | | Add a config to set Dun capabilities.Robert Greenwalt2012-02-141-2/+19
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since CDMA doesn't use APN settings there was no place to say what a cdma device's DUN connection would support, so by default normal device originating traffic would be blocked on a tethering single-connection device. With this change you can (via overlay) say that it supports everything so mms and on-device browsing/email will still work even when on a dun connection. The reason to allow both: some carriers will charge per byte for dun access and so they don't want lots of non-tethering traffic used (costs the user alot) but other carriers just use a dun connection to limit access to tethering, but once there give unlimited data, so it makes sense to support everything there. bug:5972599 Change-Id: I78fd7f3ac63c51a0560b659ed5ec219b10a93f8d
* | | Merge "Fix the 3-parameter formatNumber to correctly handle IDDs."Makoto Onuki2012-02-132-3/+25
|\ \ \
| * | | Fix the 3-parameter formatNumber to correctly handle IDDs.Shaopeng Jia2012-02-062-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added more unittests. Bug: 5726454 Change-Id: I7fd96b47e7b0c34b66a2fe698308342e125ec0f3
* | | | Merge "Add ril.test.emergency system property."Wink Saville2012-02-086-4/+93
|\ \ \ \
| * | | | Add ril.test.emergency system property.Wink Saville2012-01-106-4/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows testing of emergency numbers by dialing an emergency number but having it remapped to another number. Bug: 5479306 Change-Id: Ia9bb53e2e2e47f78dc9f75d3add6f785d10e4b2a
* | | | | Merge "Fix INTENT_RECONNECT_ALARM_EXTRA_xx, make strings meaningful."Wink Saville2012-02-072-2/+3
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Fix INTENT_RECONNECT_ALARM_EXTRA_xx, make strings meaningful.Wink Saville2012-02-072-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 3481322 Change-Id: I1fcec7bc7ea2201c471f9fffdcfbc1bb028dbee7
* | | | | am 7e6295b3: am 9ad528d5: am 48ac0f14: Merge "Don\'t use SNR in the invalid ↵John Wang2012-02-061-3/+2
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| | | | | | | | | | check." into ics-mr1 * commit '7e6295b32310afddccf5fb030d4c475ed3678e0f': Don't use SNR in the invalid check.
| * | | Don't use SNR in the invalid check.John Wang2012-02-061-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since some RILs use -1 instead of INVALID_SNR as invalid vlue for LTE SNR, SignalStrength will not use LTE SNR to check if LTE valid. bug:5970403 Change-Id: Ia948e076f8f5878e081e87680076b187857879c8
* | | | Telephony: Fix get_imsi and icc_ioAlex Yakavenka2012-02-0110-31/+100
| |_|/ |/| | | | | | | | | | | | | | Make get_imsi and icc_io requests to follow ril v6 interface Change-Id: Ifdbdcfd943f985c759359e59ced82b67195f4163
* | | Telephony: Fix sim_refresh as per ril v6Alex Yakavenka2012-02-018-30/+125
| | | | | | | | | | | | Change-Id: I2d237601c6fd58760c6d5d080709381fddc5cbbe
* | | Fix 3 broken unittests.Shaopeng Jia2012-02-011-12/+12
| | | | | | | | | | | | Change-Id: I9ebf1dc988f74d961dead376599fd7ebca5883bd
* | | am 66146c4f: am 792d83c5: Merge "Use LTE SNR and RSRP to set signal level ↵Justin Ho2012-01-313-16/+48
|\ \ \ | |/ / | | | | | | | | | | | | | | | bar." into ics-mr1 * commit '66146c4f5b3930f7f5f08b845fb30f2bc24f8c3d': Use LTE SNR and RSRP to set signal level bar.
| * | Use LTE SNR and RSRP to set signal level bar.John Wang2012-01-313-16/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LTE signal strength level is the smaller one between lte rsrp level and lte snr level if both rsrp and snr are valid. The lte snr mapping are Four bars: SNR >= 45 Three bars: 10 <= SNR < 45 Two bars: -30 <= SNR < 10 One bars: SNR < -30 No bars: No Service The invalid value of lte snr is changed to INVALID_SNR from -1, since -1 is a valid value of lte snr. bug:5640958 Change-Id: If26aaba0c7fcc0fee3db488b5adfa02922f06715
* | | Fix 2 broken PhoneNumberUtilsTest.Shaopeng Jia2012-01-311-2/+6
| | | | | | | | | | | | Change-Id: Iafd5964b3dfb4486b69ab49df5eb4b566ed52183
* | | am 136704a8: am b069833e: Merge "Adjust the LTE signal bar mapping." into ↵John Wang2012-01-301-5/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | ics-mr1 * commit '136704a803ed7dd419a452315d1c0fe4885ce441': Adjust the LTE signal bar mapping.
| * | Adjust the LTE signal bar mapping.John Wang2012-01-271-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new mapping are Four bars: RSRP >= -95dBm Three bars: -105 dBm <= RSRP < -95 dBm Two bars: -115 dBm <= RSRP < -105 dBm One bars: RSRP < -115 dBm No bars: No Service bug:5640958 Change-Id: I9efabaeac33b624ea0a58a4d3760169dff6544f6
* | | Merge "Fixing broken unittests."Makoto Onuki2012-01-301-1/+1
|\ \ \
| * | | Fixing broken unittests.Shaopeng Jia2012-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test here is partly fixed by Change I38c54265. However, the test itself still needs to be fixed as local numbers in US never starts with a '1'. Bug: 5599741 Change-Id: I3a3961331961f4f535d30dec884babdb32e8b67b
* | | | Bug 5567648 Request and abandon audio focus in callsJean-Michel Trivi2012-01-271-10/+29
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up to now, audio focus was implicitly requested and abandoned when changing the audio mode. This is no longer the case so the behavior with regards to audio focus can be indepently set by the CallManager. The logic implemented here is the same as the one previously used in AudioService: - only request audio focus when the ring volume index is > 0 when ringing, - request focus before setting the audio mode to a mode other than normal - abandon audio focus after setting the audio mode to normal Change-Id: Ia543dc779563dbff09414771fee60e589dfaab9d
* | | Fix ClassCastExceptionWink Saville2012-01-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In "Change I95ed2aae: Stop using shared DUN APN when tethering stops", sha1: 8beff9586ff89a1e59469e9820fd9e9d704300d2, an assumption is made that the msg.obj is always an ApnContext, this is not true for CDMA. Eventually we plan on removing the destinction between GSM and CDMA but for now we need to handle it handle it. Bug: 5904734 Change-Id: I86873dc7aeda5234c14a6fe1e4ec7345ee30e957