summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/TelephonyRegistry.java
Commit message (Collapse)AuthorAgeFilesLines
* Quiet down a lot of logging.Dianne Hackborn2012-11-271-1/+1
| | | | | | | Also fix a little problem where the USER_STARTED broadcasts were not being sent as ordered broadcasts(!). Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
* Suppress location information for non-active users.Wink Saville2012-09-201-9/+91
| | | | | | | | Specifically, don't allow call backs for LISTEN_CELL_LOCATION and LISTEN_CELL_INFO. Bug: 7087342 Change-Id: Ida7f60b5bde3f28264dcb454b38fcfb1f1616d11
* Improve multi-user broadcasts.Dianne Hackborn2012-08-301-5/+7
| | | | | | | | | | | | | | | | | | | You can now use ALL and CURRENT when sending broadcasts, to specify where the broadcast goes. Sticky broadcasts are now correctly separated per user, and registered receivers are filtered based on the requested target user. New Context APIs for more kinds of sending broadcasts as users. Updating a bunch of system code that sends broadcasts to explicitly specify which user the broadcast goes to. Made a single version of the code for interpreting the requested target user ID that all entries to activity manager (start activity, send broadcast, start service) use. Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
* Revise and update CellInfo API'sWink Saville2012-07-251-4/+5
| | | | Change-Id: I25a46076a244f50edb9da65816b3717e00820b34
* Create telephony-common and mms-commonWink Saville2012-07-111-12/+15
| | | | | | | | | | | | | | | | | These have been created to reduce the size and complexity of frameworks/base. mms-common was created by moving all of frameworks/base/core/java/com/google/android/mms to: frameworks/opt/mms telephony-common was created by moving some of frameworks/base/telephony to: frameworks/opt/telephony Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
* Enhance Cell Location Api.John Wang2012-04-051-0/+37
| | | | | | | | | | | | To boost accurary and enhance capability of cell location api, two new APIs, TelephonyManager.getAllCellInfo() and TelephonyManager.listen(LISTEN_CELL_INFO), are added. Two new Class, CellInfo and CellIdentity, are created. This API change returns all information of one cell locaiton at the same time. It also provides additional LTE and timestamp information. Change-Id: I4d0f813107e625ec4ac88c8d980ffd171aa5fc30
* Reduce connectivity loggingWink Saville2011-09-211-3/+8
| | | | Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8
* Pass roaming info to ConnectivityService.Robert Greenwalt2011-09-081-3/+5
| | | | | bug:5215657 Change-Id: I77024141a7bbaa47eae021009e16b283699be53e
* Notify overall state instead of current changed stateyoonsung.nam2011-08-251-2/+4
| | | | | | | | | | | | | | TelephonyRegistry notifies wrong state thourgh onDataConnectionStateChanged(). As a result, browser works even though there is no data icon in status bar. The issue is reproducible as following senario: 1. There are two connections. 2. Network type is changed and one of the connections is disconnected at the same time. 3. TelephonyRegisitry notifies disconnect state to apps which are listening PhoneStateLinstener. Change-Id: Iac1e2b14e41715a63ea0d842cb44d232447e814a Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
* am d0903e14: am 6e41b32d: Merge "TelephonyRegistry remove 4 uses of ↵Wink Saville2011-05-141-4/+0
|\ | | | | | | | | | | | | FLAG_RECEIVER_REPLACE_PENDING." into honeycomb-LTE * commit 'd0903e1478c7ba2fb8087f1bae1fba69791039ba': TelephonyRegistry remove 4 uses of FLAG_RECEIVER_REPLACE_PENDING.
| * TelephonyRegistry remove 4 uses of FLAG_RECEIVER_REPLACE_PENDING.Wink Saville2011-05-141-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The use of FLAG_RECEIVER_REPLACE_PENDING is an optimization to reduce redundant messages. For some calls this is fine, such as broadcastSignalStrengthChanged. For others it can cause problems, such as broadcastDataConnectionStateChanged where the MobileDataStateTracker will not be able to properly track the state if messages are dropped. This changes removes the optimization from all methods in TelephonyRegistry except broadcastSignalStrengthChanged. bug: 4427303 Change-Id: Ia9c0dd0ce66b8b3dcda770f5ab2c63cf08f3ebfc
* | turn off log spewJoe Onorato2011-04-061-1/+0
|/ | | | Change-Id: I7e5564e02460ff41829c9fd26d80032ea3104498
* Initialize mOtaspMode to OTASP_UNKNOWN.Wink Saville2011-01-121-1/+2
| | | | | | | Without the explicit initialized the default value was 0 which is OTASP_UNINITIALIZED instead it should be OTASP_UNKNOWN. Change-Id: I44ffc60618c0b1d49e07ccbce408c4e9921d8130
* Use apn types instead of host when sending notifications.Wink Saville2010-11-241-2/+2
| | | | | | | | | | | | | | Previously we were passing the apn host not the type and this caused us to sometimes not send out network change notifications. Also rename of getActivceApn to getActiveApnHost to make the method clearer on what is being returned and add some debug. A future change will rename ApnSetting.apn to ApnSetting.host and getActiveApnString. bug: 2995554 Change-Id: I0c405b0f823f62c9596968c8516b820d9f8a94f2
* Fix data state change callbacksRobert Greenwalt2010-11-091-8/+11
| | | | | | | | | | Initial state should be unknown or we miss the first connected change. Don't send a disconnected msg when changing network types. Filter out redundent disconnects. Add some logging. bug:3060742 Change-Id: Idc797c1276b7417337a91ed60b12b1bf392d57c0
* Add PhoneStateListener.onOtaspChanged.Wink Saville2010-11-011-0/+28
| | | | | Bug: 3102320 Change-Id: I46e8d33a4ed80e5e074e92135653d57598d4c865
* Fix bug introduced in Change I856118d8.Wink Saville2010-10-211-1/+0
| | | | Change-Id: I9f1c2b2611396bb811b491b7e240b4913fa76fb4
* Don't remove items from mRecords while iterating over it.Joe Onorato2010-10-211-51/+53
| | | | | | | | | | | | This change also make removeList a member, because it's only actually used in an error case (when the client process has gone away). Bug: 3118244 Bug: 3083062 Bug: 2876696 Bug: 2778958 Change-Id: I856118d8de4309cd63287d7c57cd938e1c35dab0
* fix bad mergeJoe Onorato2010-10-211-1/+1
| | | | Change-Id: I44b9265a7ef3accc5c794d2ef9308b050c961a81
* resolved conflicts for merge of 368fdba4 to masterBrad Fitzpatrick2010-10-211-0/+4
|\ | | | | | | Change-Id: I42b7b433c86a71a5da5db67109f056a280077c9d
| * Reduce logging.Joe Onorato2010-10-191-0/+6
| | | | | | | | | | | | | | | | | | | | Remember, the system and main logs are - Shared resources - Primarily for recording problems - To be used only for large grained events during normal operation Bug: 3104855 Change-Id: I136fbd101917dcbc8ebc3f96f276426b48bde7b7
| * DO NOT MERGE Fixing ConnectivityRobert Greenwalt2010-08-201-3/+11
| | | | | | | | | | | | | | | | Passing Gateway addr info from telephony into ConnectivityService so it can add/remove the default route as needed. Fixed differently on master. bug:2927822 Change-Id: I9a3ee7cd23c4717e7c60098f0595aa3f77c44b15
* | Add LinkAddressIrfan Sheriff2010-10-061-2/+2
| | | | | | | | | | | | LinkAddress stores IP address + prefix for a network link Change-Id: Id3e74e9d0a62121d097ebdc9be064eeea257ba1f
* | Add LinkCapabilitiesWink Saville2010-09-161-7/+15
| | | | | | | | Change-Id: Ia1599ade936b79f12526252c0a2e6b453abb136e
* | Rename NetworkProperties to LinkPropertiesRobert Greenwalt2010-08-301-9/+9
| | | | | | | | | | | | Also add copy constructors and use them when giving out data. Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
* | Don't cast CONNECTING msgs to CONNECTED.Robert Greenwalt2010-07-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fixed some logic in TelephonyRegistry so its notion of the state of our connection is preserved, but it still sends out proper CONNECTING msg on secondary APNS (ie, bringing up mms while the default connection was already up - it used to send out two CONNECTING msgs instead of one CONNECTING and one CONNECTED). Fixes mms while on mobile data. bug:2840564 Change-Id: I69159aa0f471396680615ce6b9785620d844968f
* | Pass network properties to ConnectivityService.Robert Greenwalt2010-07-131-7/+16
| | | | | | | | | | | | | | | | Used as a bag to hold ipaddr, gateway, dns, proxy info. addr's are InetAddresses for v4/v6 use. Cleaning up some old v4-only code bug:2655015 Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59
* | Don't modify a list while iterating.Robert Greenwalt2010-06-211-6/+18
| | | | | | | | | | | | | | | | Remember who we want to remove instead. Fixes concurrent modification exception. bug:2778958 Change-Id: If8827955e6a716fe39cc31fe5a092c613a6786d4
* | Clean up APN notifications.Robert Greenwalt2010-06-091-43/+51
|/ | | | | | | | | | | | Add APNType info to notifications so you can tell what's happening. Now, even if a new APN shares a connection with an already-connected-to- apn type, the new type will get all the connecting and connected messages on connect and disconnecting/disconnected on disconnect even though the shared connection remains connected. Cleaning out the hacks MobileDataStateTracker needed to deal with the old situation. bug:2226092 Change-Id: Iddd7421d6b91cda7c8405f9c3d5404ac04ef8e42
* Switch the services library to using the new SlogJoe Onorato2010-03-011-3/+3
|
* Implement API to have new broadcasts replace existing broadcasts.Dianne Hackborn2009-12-141-0/+5
| | | | | | Use this in various places where it should serve no purpose to deliver both broadcasts. This is intended to reduce somewhat the flurry of broadcasts that we churn through during boot.
* Proper fix for zero signal strength and no_service. Fixes #2176141Amith Yamasani2009-10-191-1/+1
| | | | | | | | | | Track phone service state changes and use a separate timer for out-of-service since the hunting can timeout on some devices. Store the timeout value in the config.xml, as it is device/network specific. Settings App will also change to use the hunting duration to compute the cost of zero signal.
* Make PhoneStateListeners not call TelephonyManagerRobert Greenwalt2009-10-091-3/+7
| | | | | | | | Since the StatusBarPolicy is run in the System Process and shouldn't therefore call into the Telephony process we decided to make sure all the needed info was passed along with the original notifications. bug: 2173053
* Fix generic build boot sequence.David 'Digit' Turner2009-09-251-1/+7
| | | | | | The TelephonyRegistry service crashed badly in the generic build, because there is no system property to tell if the phone is GSM or CDMA. Adding a simple null check solves the issue and allows the system to boot properly.
* Fix exception when reporting disconn cdma state.Robert Greenwalt2009-08-191-3/+6
| | | | Array out of bounds when checking first element of a 0-length array.
* Add net type to mobile for mobile-required trafficRobert Greenwalt2009-08-121-4/+13
| | | | | This also refactors ConnectivityService a bit towards supporting multiple simultaneous connections by making each a seem like a seperate Network with it's own stateTracker, etc. Also adds tracking of process death to clean orphaned startUsingNetworkFeature features.
* Track native processes and airplane mode.Amith Yamasani2009-06-241-0/+9
| | | | Turn signal strengths on/off when toggling airplane mode.
* Enforce permissions for PhoneStateListener events.Jaikumar Ganesh2009-05-291-23/+35
| | | | | | | | PhoneStateListener events like LISTEN_CALL_STATE_CHANGED, have privacy information like phone numbers and hence, need to be protected with a permission. The permission READ_PHONE_STATE is used for this purpose. Use the permission trick to ensure backward compatability.
* Telephony: Allow getCellLocation() if client has permission ACCESS_FINE_LOCATIONMike Lockwood2009-05-191-3/+7
| | | | | | | 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>
* Teleca 2b changesWink Saville2009-05-181-71/+100
|
* Automated import from //branches/donutburger/...@142347,142347Dianne Hackborn2009-03-241-0/+11
|
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-131-0/+40
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+462
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-446/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-031-18/+2
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-021-2/+18
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-1/+1
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-17/+11
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+452