669 Commits

Author SHA1 Message Date
Henrik Hall
95bc625e29 Enabling cell broadcast (SMS-CB) support in the platform.
Adding a simple API enabling applications to control SMS-CB reception.
Implementing parsing, assembly and dispatching of SMS-CB messages over GSM.

Change-Id: Iee841605a45a3af60c7602af175056afb03a38da
2010-11-19 15:00:00 +01:00
Johannes Carlsson
3ffccab786 Release reference when putting RILRequest back into the pool.
In order to reduce object creation the RILRequest objects are
stored in an array when it is unused (max 4). This avoids GC
of the object. The object in turn has references to other
objects which sometimes hold large memory chunks. This fix
releases these references since they are not used anyway.

This will make it possible to GC the Message (mResult) which
in some cases holds references to a Bitmap which sometimes
leads to OutOfMemoryException. The reference is cleared
anyway in RILRequest.obtain(...)

Change-Id: I3b895bc39b5e2f3ab7cc8297c3583ea78e0ebc77
2010-10-27 08:28:14 +02:00
Jean-Baptiste Queru
15f7ff3c5a Merge "Fix compile errors in telephony tests" 2010-10-11 15:11:59 -07:00
Jean-Baptiste Queru
0e430ccc2c Merge "Telephony: Fix radio state printing" 2010-10-10 18:32:39 -07:00
Jean-Baptiste Queru
334a4d84df Merge "Telephony: Remove unused mRuimFileHandler reference from CDMAPhone" 2010-10-10 18:15:17 -07:00
Babis Triantafyllou
aeab76c5be NullPointerException at handleMessage(GSMPhone.java)
NullPointerException at
com.android.internal.telephony.gsm.GSMPhone.handleMessage(GSMPhone.java)
Failing to retrieved the IMSI number from SIM card could lead to
an exception. A null pointer check will prevent this.

Change-Id: I26760543484504c8d35215bfb1e8f1ae664aeade
2010-10-08 16:02:11 +02:00
Jake Hamby
7888486d1c Merge "Add subaddress to SMS fingerprint calculation." 2010-10-01 18:04:22 -07:00
Alex Yakavenka
fa751719a0 Telephony: Remove unused mRuimFileHandler reference from CDMAPhone
Change-Id: I73b7d87e8e18047f9e0bcd6c1969a32c808cd3c7
2010-09-28 17:26:49 -07:00
Alex Yakavenka
9a8e567d2a Telephony: Fix radio state printing
Decode new radio state before printing its value

Change-Id: Ib6d47fd412e85a7799fe56a49d29af7531de8674
2010-09-28 17:21:58 -07:00
Naveen Kalla
7d16427653 Add subaddress to SMS fingerprint calculation.
As per SMS specification in 3GPP2 C.S0015-B, section 4.3.1.6, if the
Subaddress is included in a CDMA SMS message, it needs to be used for
duplicate detection. Subaddress, which is an optional field was omitted
while computing the SMS fingerprint. Hence it was never being used in
duplicate detection if it was included in the SMS. Add subaddress to the
SMS fingerprint.

Change-Id: Iad9e89887a17caba59033ab8f8d94b63b33cb4bb
2010-09-26 15:55:37 -07:00
Naveen Kalla
323f059d65 Do not explicity disconnect Data during power down for 1x.
In 1x, if the data call is torn down before radio power off, modem will
have to send a data call release and change to initialization state followed
by idle state and send out power down registration. If the power off request is sent
to the modem during Initialization state after call release, there is a chance that
modem does not perform power down registration.

Instead if we directly initiate a power down, modem just sets a power down registration
bit in the release order. This change also optimizes the power down procedure in 1x by
letting the modem handle data call release during power down.

Change-Id: I0f083cc3b005ec1e64105350abb43d10583b0881
2010-09-20 13:32:53 -07:00
Banavathu, Srinivas Naik
0e67c8926b Telephony: Control operator selection using EF_CSP data.
As per CPHS4_2.WW6, CPHS B.4.7.1, the most significant bit of
Value Added Services Group(0xC0) info, controls operator selection menu.
   -If this bit is set, display operator selection menu to user.
   -If this bit is not set do not display operator selection menu to user,
	 set Network Selection Mode to Automatic.

Change-Id: Icca4898abced0b0beb94c3434448a26eae72008b
2010-08-30 11:05:38 -07:00
Banavathu, Srinivas Naik
f3ee6f87a3 Telephony: Remove references to mExitECMRunnable object.
Free mExitECMRunnable object while destroying CDMA phone.

Change-Id: I411b3e5e41a9cc76c3571a98f13f91d84523f623
2010-08-23 22:03:28 -07:00
Georgios Katsaros
0b2bbacd9b Adds the ability to Android to initiate a 2 Digit Call.
Over here the phone number to the switch-board is "99". Trying
to call "99" on an Android device dont work as expected (it
works on other devices though).

Exception (1) to Call initiation is:
  If the user of the device is already in a call and enters a
  Short String without any #-key at the end and the length of
  the Short String is equal or less than 2 the phone shall
  initiate a USSD/SS commands.

Exception (2) to Call initiation is:
  If the user of the device enters one digit followed by the
  #-key. This rule defines this String as the "#-String" which
  is a USSD/SS command. The phone shall initiate a USSD/SS
  commands.

Change-Id: I950ac10b347b8e9d113d208b08c3e2c7cdb50221
2010-08-17 08:37:02 +02:00
John Huang
c636b84616 Merge "Enhance WspTypeDecoder to decode Content Type Parameters" 2010-08-12 10:07:06 -07:00
Naveen Kalla
c4c4c98c5c In CW Interrogation service class is not sent.
As per 3GPP TS 24.083, section 1.6 UE doesn't need to send service class
parameter in call waiting interrogation  to network. Some networks return error
if service class is sent. So setting service class to SERVICE_CLASS_NONE.

Change-Id: I396963d568573b88795ad2cf1844eb2e047b459e
2010-08-11 09:44:04 -07:00
Mark Piper
77b02e776d Fix compile errors in telephony tests
Simple fix of package names for two test cases, currently
they do not compile in an IDE.

Change-Id: Ia7cd4df70ff37875a02563cfddbe8dd4a16a5b01
2010-08-06 21:18:06 +01:00
Dan Griffin
c9790716f0 Enhance WspTypeDecoder to decode Content Type Parameters
This patch enables WspTypeDecoder to correctly parse content type
parameters as described in the Wap230 WSP specifications
(wap-230-wsp-20010705-a section 8.4.2.24) which are then passed on
as part of the WAP_PUSH intent notification.

It also recognises all Well Known WSP Content types, and simplifies
their retrieval (i.e. a well known content type will always be
available through the WspTypeDecoder.getValueString() method).

Change-Id: I0eb3f9ac287aa7cb53312777c4be54b1939fa857
2010-08-02 17:44:04 +08:00
Naveen Kalla
e4866d0165 SIM toolkit enhancements and bug fixes
- Correct the Terminal response for GET_INKEY variable timeout.
   GCF PTCRB Testcase GCF_PTCRB_USAT_GetInkey_27.22.4.2.8.1 checks for
   DURATION TLV in the terminal response. Add DURATION TLV in the terminal
   response for GET INKEY.

 - According to TS 102.223/TS 31.111 section 6.8, Structure of TERMINAL RESPONSE,
   "For all SIMPLE-TLV objects with Min=N, the ME should set the
   CR(comprehension required) flag to comprehension not required.(CR=0)"
   Since DEVICE_IDENTITIES and DURATION TLVs have Min=N, the CR flag is not set.

 - Add support for Provide Local Information(PLI) Language setting. Send
   terminal reponse with the locale language setting value read from
   "persist.sys.language" system property.

 - Send TR with BEYOND_TERMINAL_CAPABILITY for unsupported proactive commands

 - Fix length coding for Text String in terminal response for GET INPUT.

Change-Id: I762b064f02f44772809f8bb029e8cefb838e7766
2010-07-30 19:34:25 -07:00
Alex Yakavenka
a27353c196 Cat: Generalize stk into cat
Rename all stk classes, comments and variables into cat classes.
Cat (Card Application Toolkit) is the common class that has
functionality of both Stk and Ccat.

Change-Id: Id0b99d0d9f4b0ce49adcb436060f13d5341ab8ab
2010-07-30 10:46:49 -07:00
Jean-Baptiste Queru
3d9e1696ed Merge "Cat: Move Stk imlpementation into Cat folder" 2010-07-30 10:44:00 -07:00
Jean-Baptiste Queru
d8d03c890b Merge "Ccat: Initial CCAT implementation" 2010-07-30 10:42:15 -07:00
Jean-Baptiste Queru
f0fa8416e1 Merge "Make hasIccCard return true if RUIM card is present." 2010-07-29 14:37:48 -07:00
Jean-Baptiste Queru
7cdd26ce30 Merge "Enables writing to USIM phonebook (fixes issue 8976)." 2010-07-23 17:35:13 -07:00
Jean-Baptiste Queru
e7486695ce Merge "Add missing logging for SET_TTY_MODE and QUERY_TTY_MODE" 2010-07-22 12:22:56 -07:00
Jean-Baptiste Queru
b42aa98d44 Merge "Correct VM number updation during MBDN refresh." 2010-07-22 11:38:05 -07:00
happydroid
74ba31ba26 Enables writing to USIM phonebook (fixes issue 8976).
Change-Id: I60c4e4fab58d13a83193492d828b0b519875c710
2010-07-20 21:42:37 +02:00
Romain Guy
32ca6aae61 Merge "Makes PhoneNumberUtils support international numbers after a CLIR command." 2010-07-15 09:39:19 -07:00
Babis Triantafyllou
adff0ad3cd Makes PhoneNumberUtils support international numbers after a CLIR command.
Makes PhoneNumberUtils.java support numbers in international
format (starting with ‘+’ character) after a CLIR command.

Previously a plus character would always be removed unless it
occupied the first position of the number string. In this case,
when the number is preceded by #31# (CLIR), the plus character
will be removed as well.

This is an error, prohibiting a type approval of the phone.

This change will detect the plus character after the CLIR command
and will insert it at the right position.

Change-Id: Ib220aee7b3eda30cde960db8c7470523dc5fd313
2010-07-14 13:59:01 +02:00
Jean-Baptiste Queru
cb609625fd Merge "Telephony: Process MT SMS with MTI set to 3" 2010-07-13 16:20:30 -07:00
Alex Yakavenka
35dbaf2c62 Cat: Move Stk imlpementation into Cat folder
Change-Id: I18e9e2cd11570b7ca3692fa08543fd5f1db2d1bd
2010-07-12 14:35:03 -07:00
Alex Yakavenka
4f1244e0de Ccat: Initial CCAT implementation
Launch Stk service for Cdma phone.

Change-Id: I1d0e00a3a31af59239b1355babb37f05cb7e5e07
2010-07-12 14:27:46 -07:00
Jean-Baptiste Queru
014568bf45 Merge "Fix hang when error in SIM card communication" 2010-07-12 11:14:56 -07:00
Kenny
36a86649db Fix send/receive MMS while the phone's state isn't in IDLE and the Network type can support voice and data calls concurrently
Change-Id: I67e5b1f6e4f855cc09dd76c251a86a06990b6499
2010-07-08 15:51:48 -07:00
Naveen Kalla
3d59f8b418 Correct VM number updation during MBDN refresh.
The voice mail number and voice mail tag are not getting updated properly
during MBDN refresh. When the data in MBDN EF is invalid, the voice mail
number and voice mail tag are unchanged. They retain their previous value
where as they should be null in this case.

Change-Id: Ic3b9cb4cdf3ee5d2a33fc7e47cac968e752a0940
2010-06-28 23:31:46 -07:00
Stefan Larsson
38a1054c1c Fix hang when error in SIM card communication
When there is a problem communicating with the RIL (e g when the SIM
card is not connected) the IccPhoneBookManager hangs. This is corrected.

Change-Id: I28cf6cd3b79a29f4784fdef2b5072af5533e53da
2010-06-28 08:45:40 +02:00
Naveen Kalla
2e896830f8 Add missing logging for SET_TTY_MODE and QUERY_TTY_MODE
Change-Id: Ic794ef8258138b903f83c5ed77a0ee09e75ca094
2010-06-26 23:18:03 -07:00
Naveen Kalla
213c853f40 Make hasIccCard return true if RUIM card is present.
Currently hasIccCard method works only for GSM phones with SIM/USIM
cards. Extend that to RUIM as well.

Change-Id: Iefbfc35025074e7414f4abdffea844e9e0325053
2010-06-26 22:52:39 -07:00
The Android Open Source Project
3149ad13e5 merge from open-source master
Change-Id: I381f1faaa26a7e52e9882976f32f703fc2aa9c75
2010-06-14 14:28:18 -07:00
The Android Open Source Project
c8e2cbd31a merge from open-source master
Change-Id: Ia8a5ab84bb9957b4a3daf92a9a21905212867a95
2010-06-14 14:18:32 -07:00
Jean-Baptiste Queru
9451e71cf5 Merge "Fix data type of RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS in RIL." 2010-06-14 13:54:25 -07:00
Jean-Baptiste Queru
58424b59fa Merge "Corrected SPN and PLMN name handling" 2010-06-14 12:47:49 -07:00
The Android Open Source Project
7ad843d66d merge from open-source master
Change-Id: I56de40bad4be52a06300bfc310e16d27b2fb14df
2010-06-07 16:32:53 -07:00
Lars Dunemark
47633f8627 Removes dashes when locale and number is not NANP or Japan
Removes all dashes if locale isn't NANP or Japan and the number
don't have there country code.

Use case: If adding a number starting with 1nnnnnn and then
          trying to add a country code before (ex +46) we will first
          trigger NANP formatting with +1-nnn-nnn so when we get
          +41-nnn-nnn we will still have the old NANP formatting.
          This number should be shown as +461nnnnnn.

Change-Id: I5cab830350d785a58367eba79e268d9e8ee16aac
2010-06-07 14:00:19 -07:00
Robert Greenwalt
e7cce11edc am f9610b38: Merge "Make the DUN apn data secure." into froyo
Merge commit 'f9610b3842e030138c1dc327a3a467aaea02c227' into froyo-plus-aosp

* commit 'f9610b3842e030138c1dc327a3a467aaea02c227':
  Make the DUN apn data secure.
2010-06-04 15:57:21 -07:00
Robert Greenwalt
77b32ddbbe Make the DUN apn data secure.
Rather than come out of the user-modifiable APN DB, the DUN APN data will
come first from a built-in resource and then potentially overriden by a secure
setting (which is gservices upgradable).

Also made the "require-dun" setting secure-setting overridable.
bug:2736390

Change-Id: I1e4644c3839f06c977b83797641f3948785146a2
2010-06-04 11:13:34 -07:00
Alex Yakavenka
18804b3fe4 Telephony: Process MT SMS with MTI set to 3
Change-Id: Ie57a9465d41a3bd2c625ccf6e675af400be6d294
2010-05-26 12:11:33 -07:00
The Android Open Source Project
3aecdb9d7e merge from open-source master
Change-Id: Ib711450566694550d9cb9ba01c25599010d2e5e4
2010-05-18 12:47:02 -07:00
Jean-Baptiste Queru
e25863c909 fix build
Change-Id: I86ee569ec81e6c690f7697237be7d94307014142
2010-05-18 11:54:42 -07:00
The Android Open Source Project
5ccb8b8c4d merge from open-source master
Change-Id: Ib90da5365c873e542d79f036c32ec9b178cd8da0
2010-05-18 11:08:12 -07:00