73 Commits

Author SHA1 Message Date
Jaikumar Ganesh
ee748d37b0 Fix network preference getting incorrectly set.
When the phone process crashes, we set the network preference
incorrectly. Also read the default value from a system property.
2009-05-19 17:29:42 -07:00
Jaikumar Ganesh
9bfbfbd40d Add a method to get the PhoneType in CellLocation.
CellLocation uses TelephonyManager to get the PhoneType.
TelephonyManager uses the system property to get the phoneType,
if the ITelephony interface is not up.
2009-05-19 17:15:22 -07:00
Mike Lockwood
ac61f6bc2b Telephony: Allow getCellLocation() if client has permission ACCESS_FINE_LOCATION
ACCESS_FINE_LOCATION should imply ACCESS_COARSE_LOCATION, so either of these
permissions should be sufficient to allow TelephonyManager.getCellLocation().

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-19 13:53:24 -04:00
Ramanan Rajeswaran
3975fe3f21 am 808f2919: AI 148962: Default language in Switzerland should be german and not english.
Merge commit '808f2919ee9cd9ff678ef091da0c7b703c929003' into donut

* commit '808f2919ee9cd9ff678ef091da0c7b703c929003':
  AI 148962: Default language in Switzerland should be german and not english.
2009-05-18 23:25:04 -07:00
Wink Saville
e9b06d754a Teleca 2b changes 2009-05-18 21:47:50 -07:00
Ramanan Rajeswaran
808f2919ee AI 148962: Default language in Switzerland should be german and not english.
Automated import of CL 148962
2009-05-18 14:20:06 -07:00
Jaikumar Ganesh
caed8208bb Tear down data, if a disconnect request is pending.
If there is a pending disconnect, and the previous connection
attempt succeeds, we don't disconnect and hence the state remains
in DISCONNECTING. Ex: user is on Wifi, location app calls
enableApnType(SUPL) and then we set state to INITING. It then
calls disableApnType(SUPL) we register a pending disconnect.
When the data connection attempt is successful, we don't disconnect,
as the PDP Connection State has not been set to ACTIVE and we check
for this state. This fix removes the dependency on ACTIVE state check.
2009-05-15 16:52:13 -07:00
jsh
c06ce12540 Internal APIs to get/set SMSC address. 2009-05-11 16:34:16 -07:00
Robert Greenwalt
027405155f Fix Phone-based locale selection to never choose a lang-only locale.
This avoids us using the non-standard lang-only locale when communicating
off device.  Fixes 1810133.
2009-05-06 12:00:01 -07:00
Tammo Spalink
8478b59f17 clean up cdma sms creation and parsing
related to issue http://b/issue?id=1782245

- fixes 7bit ASCII encode and decode (previous completely broken)

- also consolidates encoding of user data, and changed to match
  the conventions of the new data coding -- previously likely
  broken for several cases
2009-05-01 14:11:44 -07:00
Jaikumar Ganesh
2a34043d55 Add RIL_UNSOL_OEM_HOOK_RAW.
Add RIL_UNSOL_OEM_HOOK_RAW for OEMs to send Unsolicitied
commands from the baseband.
2009-04-30 15:33:43 -07:00
Bill Napier
e17210c17a am 14533d2: AI 147720: Set default language for NL to nl.
Merge commit '14533d2652ce786f1ca84af1b54adaa201455989' into donut

* commit '14533d2652ce786f1ca84af1b54adaa201455989':
  AI 147720: Set default language for NL to nl.
2009-04-28 21:54:09 -07:00
Bill Napier
819c102394 am 78b1511: AI 147541: Add cs as default language for cz.
Merge commit '78b1511d96f0b2123bfadf51c5c1ccf33cdd2b3d' into donut

* commit '78b1511d96f0b2123bfadf51c5c1ccf33cdd2b3d':
  AI 147541: Add cs as default language for cz.
2009-04-28 21:54:08 -07:00
Tammo Spalink
8c49d32cb9 enable additional cdma sms fields and user data encodings
enable ia5 and octet user data encodings
properly expose parsed user data
support additional bearer data subparameter types
2009-04-28 15:49:59 +08:00
Android (Google) Code Review
f73eaf92e5 Merge change 531 into donut
* changes:
  Teleca 090414 & 090423 patches for CDMA to complete phase1 work.
2009-04-24 17:14:50 -07:00
Bill Napier
14533d2652 AI 147720: Set default language for NL to nl.
BUG=1781746

Automated import of CL 147720
2009-04-24 12:57:08 -07:00
Android (Google) Code Review
8cac9064f5 Merge change 528 into donut
* changes:
  Send the path of the EF file for ICC IO
2009-04-24 12:01:56 -07:00
Jaikumar Ganesh
469d5ba4cd Send the path of the EF file for ICC IO
Send the path of the EF file for ICC IO Command.
Currently, this is null. This is for the upcoming support
for USIM and CDMA changes.
Tested:
   1. Intial load of records while boot up.
   2. Importing contacts from SIM.
   3. Voice mail.
   4. SMS
2009-04-24 11:52:40 -07:00
Wink Saville
e66b5c43cb Teleca 090414 & 090423 patches for CDMA to complete phase1 work. 2009-04-24 11:28:06 -07:00
Android (Google) Code Review
96a98d61d7 Merge change 402 into donut
* changes:
  remove seemingly now unnecessary workaround path
2009-04-24 00:55:26 -07:00
Android (Google) Code Review
dcac00d4d2 Merge change 415 into donut
* changes:
  code cleanup
2009-04-24 00:39:44 -07:00
Tammo Spalink
3de6da1f96 remove seemingly now unnecessary workaround path 2009-04-24 15:35:11 +08:00
Bill Napier
78b1511d96 AI 147541: Add cs as default language for cz.
BUG=1781746

Automated import of CL 147541
2009-04-23 17:14:22 -07:00
Tammo Spalink
39bae34694 code cleanup 2009-04-23 13:36:42 +08:00
Tammo Spalink
0a57e5b730 removed extra event log tag 2009-04-23 10:34:11 +08:00
Wink Saville
a14f47f975 Changes for new ril.h.
These allow RIL.java to assume ril.cpp is interfacing
to the new CDMA capable vendor ril. At the moment we
don't have a full CDMA capabile ril so thre are some
NEWRIL:TODO's in the code base to identify these areas.
2009-04-22 14:52:11 -07:00
Tammo Spalink
e290ed0f61 normalize the DATA_STATE_RADIO_OFF event log id definition
Was this different intentionally?  It looks internal, and with very limited usage, and so easy to bring in line with the others...
2009-04-22 11:41:20 +08:00
Tammo Spalink
badb11354a remove superfluous lines 2009-04-22 11:41:19 +08:00
Tammo Spalink
e87e9506ba eliminate seemingly pointless conversion to and then from hex string 2009-04-15 18:50:38 +08:00
Mike Lockwood
d90ff986b4 telephony: Don't disable an APN type that is not enabled.
Fixes a bad interaction between MMS and SUPL that occurs when they are using
the same APN.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-04-14 22:35:07 -04:00
Android (Google) Code Review
b0d4a3502e Merge change 133 into donut
* changes:
  Initial code for cdma sms encode and decode, in java, with simple tests.
2009-04-14 13:20:43 -07:00
Android (Google) Code Review
ab6f5c6e86 Merge change 142 into donut
* changes:
  telephony: Add support for bringing up GSM data connections for GPS SUPL.
2009-04-14 12:52:28 -07:00
Mike Lockwood
42ad56ead4 telephony: Add support for bringing up GSM data connections for GPS SUPL.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-04-14 14:58:29 -04:00
Ramanan Rajeswaran
0f48ad767a Merge branch 'readonly-p4-donut' into donut 2009-04-14 09:34:58 -07:00
Ramanan Rajeswaran
54a7a0d27b AI 146124: am: CL 146123 Change Belfast to Dublin
Original author: ramanan
  Merged from: //branches/cupcake/...

Automated import of CL 146124
2009-04-14 09:33:40 -07:00
Ramanan Rajeswaran
a69ab9493c AI 146123: Change Belfast to Dublin
BUG=1788466

Automated import of CL 146123
2009-04-14 09:30:00 -07:00
Android (Google) Code Review
cdb02c136a Merge change 105 into donut
* changes:
  Fix crash when mSST is null and change default to GSM.
2009-04-13 21:37:13 -07:00
Wink Saville
44038aa032 Fix crash when mSST is null and change default to GSM. 2009-04-13 21:15:23 -07:00
Tammo Spalink
83917db040 Initial code for cdma sms encode and decode, in java, with simple tests.
(direct cherry-pick of master 42/42/8)
2009-04-14 10:01:23 +08:00
Robert Greenwalt
0e1c45fd8b AI 145995: am: CL 145993 Fix Phone-oriented default-locale selection.
When several locales for a given language are available we were always
  selecting the first.
  Original author: rgreenwalt
  Merged from: //branches/cupcake/...

Automated import of CL 145995
2009-04-13 18:35:04 -07:00
Ramanan Rajeswaran
e4b6b7e2f6 AI 145981: am: CL 145892 Add Ireland, Switzerland, New Zealand, South Africa to MccTable
Original author: ramanan
  Merged from: //branches/cupcake/...

Automated import of CL 145981
2009-04-13 18:15:39 -07:00
Robert Greenwalt
836054473c AI 145993: Fix Phone-oriented default-locale selection.
When several locales for a given language are available we were always
  selecting the first.
  BUG=1785986

Automated import of CL 145993
2009-04-13 16:11:29 -07:00
Ramanan Rajeswaran
5320e896e2 AI 145892: Add Ireland, Switzerland, New Zealand, South Africa to MccTable
BUG=1786030

Automated import of CL 145892
2009-04-13 11:19:51 -07:00
Andy Stadler
f8a7ceaef2 AI 145778: Manual merge changes 145382-145384 from cupcake.
Automated import of CL 145778
2009-04-10 16:24:47 -07:00
Dianne Hackborn
48276ab989 AI 145383: API review: clean up a bunch of @hides that have been pending API review.
Either expose them, or official hide them with an explanation for why.
  BUG=1779439

Automated import of CL 145383
2009-04-09 12:32:19 -07:00
Wink Saville
d6c5d527d3 AI 144705: Teleca patch from 03/27/2009, fixes some CDMA issues.
Automated import of CL 144705
2009-04-06 15:20:45 -07:00
Jaikumar Ganesh
60a5181848 AI 144688: Fix CDMA ril call sequence numbers.
RIL calls cannot have any gaps in their numbering. This was introduced
  by the CDMA code merge. This was partially fixed only in ril.h. We need
  to change the Constants file too.
  BUG=1765265

Automated import of CL 144688
2009-04-06 13:39:53 -07:00
Mike Lockwood
b9db7c9f5a AI 144593: Fix GSM cell location updates.
BUG=1761611

Automated import of CL 144593
2009-04-05 14:15:41 -07:00
Wink Saville
767a662ecd AI 144185: Integrate cdma into the main code base.
Automated import of CL 144185
2009-04-02 01:37:02 -07:00
Robert Greenwalt
88b861c8a6 AI 143900: am: CL 143898 Attempt to set the device Locale (if not already set) at phone
init based on the phone's reported carrier ID.
  Uses a core system resource string-array to contain the mapping
  of carrier ID -> default locale.  This should be set per project in
  an overlay.
  Original author: rgreenwalt
  Merged from: //branches/cupcake/...

Automated import of CL 143900
2009-03-31 18:04:05 -07:00