summaryrefslogtreecommitdiffstats
path: root/voip/java/com/android
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Correct SipService.isOpened() implementation." into gingerbreadHung-ying Tyan2010-11-301-12/+12
|\
| * Correct SipService.isOpened() implementation.Hung-ying Tyan2010-11-021-12/+12
| | | | | | | | | | | | | | | | Make it return true for all existing accounts. Rename mOpened to mOpenedToReceiveCalls to make it less confusing. Bug: 3155849 Change-Id: I327f411bf76afd73434ad1fa2ffef3db1e35d778
* | Notify SipSessions before closing SIP stack.Hung-ying Tyan2010-10-251-0/+1
|/ | | | | Bug: 3116480 Change-Id: I748d63382ade250aed27ccb09ea68c76a433fd27
* Clean up pending sessions on incoming call in SipServiceHung-ying Tyan2010-10-221-2/+13
| | | | | Bug: 3122186 Change-Id: I25c9aa19d138f6940a29025d54e7bc2ffb7daa29
* Periodically scan wifi when wifi is not connected and wifi lock isChung-yih Wang2010-10-191-0/+48
| | | | | | | grabbed in SipService. bug: http://b/3077454 Change-Id: I153974325c29e0f927c8eb7fdbc4725aaf10087d
* Handle dialing a SIP call to self.Hung-ying Tyan2010-10-193-1/+40
| | | | | | | | | Reply BUSY HERE response so server may redirect the call to the voice mailbox. http://b/issue?id=3103072 http://b/issue?id=3109479 Change-Id: I81f5dd59ad87298dd9dda87084538ee460eabba8
* Reduce logging.Joe Onorato2010-10-191-9/+9
| | | | | | | | | | 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
* Fix the incorrect environment variable name for the thread pool size.Chung-yih Wang2010-10-191-1/+2
| | | | | bug: http://b/3099715 Change-Id: I531048414f22c8edcd9c4f815c12a0bdd6347640
* Set the thread pool size of NIST sip stack to one.Chung-yih Wang2010-10-181-0/+6
| | | | | | | | Set the thread pool size to one to fix the out-of-order packets seen in sip service when the device is waken up from sleep. bug:http://b/3099715 Change-Id: Ia169e3fde77488068c369e3345ecf6a6d8ddf792
* SipService: add wake lock for incoming INVITE packets.Hung-ying Tyan2010-10-153-46/+92
| | | | | | | | | | | | | + Keep the wake lock for 500ms. (Some measurements on N1 indicate 160~180ms needed to bring up InCallScreen but since INVITE doesn't come in frequently we can be more generous just to be safe.) + Move MyWakeupLock out of SipService so SipSessionGroup can use it without awkward inter-dependency with SipService. + Add acquire(int timeout) to be used to create the "timed" wake lock. http://b/issue?id=3081828 Change-Id: Iffd1d78d1a5cae9f795252ada75310917095204d
* SipService: add wake lock for multiple components.Hung-ying Tyan2010-10-142-68/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Add MyWakeLock to maintain a global wake lock for multiple components. + Use a Set to store components that want to hold the lock. + When the first component enters the set, we grab the global wake lock. + When the set becomes empty, we release the global lock. + In places like no account being opened to receive calls, we reset the wake lock just to be safe from possible leakage. + Make MyExecutor aware of the wake lock. It will grab the wake lock on behalf of the task so that tasks don't need to worry about the lock. + Connectivity receiver is modified to be executed in MyExecutor. + WakeupTimer handler is already protected by AlarmManager's wake lock but all the timeout handlers that register themselves to the WakeupTimer are to be executed in MyExecutor to be protected by the wake lock. + Remove unnecessary code in the Keepalive and registration processes. Since both processes are executed in MyExecutor submitted by the WakeupTimer (as they are timeout handlers registered to the WakeupTimer), they don't need to add themselves to MyExecutor explicitly in their run() callbacks. + Make the keepalive process wait for at most 3 seconds instead of forever for server response. It could cause the wake lock to be held longer than necessary and is a potential cause for ANR. http://b/issue?id=3081828 Related bug: http://b/issue?id=3087153 Change-Id: Idee0ddb837e67daa0d5092c012bb242bd7c18431
* Make SipService listen to WIFI state change events.Hung-ying Tyan2010-10-131-27/+23
| | | | | | | | | | | + Grab a WIFI lock if any account is opened to receive calls and WIFI is enabled + Release the WIFI lock if no account is opened to receive calls or WIFI is disabled + Remove screen on/off event receiver http://b/issue?id=3077454 Change-Id: Ifdf60a850bcf4106c75ec1e7563b26d8b33d7e92
* Merge "SipService: mScreenOn is flipped to wrong value." into gingerbreadHung-ying Tyan2010-10-121-2/+2
|\
| * SipService: mScreenOn is flipped to wrong value.Hung-ying Tyan2010-10-131-2/+2
| | | | | | | | | | | | http://b/issue?id=3077454 Change-Id: I23b6f70730074689b939e449c2c202ce8ffb586f
* | Fix SipSessionGroup from throwing ConcurrentModificationExceptionHung-ying Tyan2010-10-121-1/+7
|/ | | | | | http://b/issue?id=3087256 Change-Id: I67df64105db7c1295649f1f3ce77f99025ce3d44
* SipService: fix a missing switch-case break.Hung-ying Tyan2010-10-121-0/+1
| | | | Change-Id: I638eecd8000293d4cb37b3595c02ca33df4924eb
* SipHelper: add debug log for challenge responses.Hung-ying Tyan2010-10-111-0/+2
| | | | Change-Id: If0143a0f076ef30b1b8998e477df933923bfa7b1
* Do not release the wifi lock if the screen is off.Chung-yih Wang2010-10-091-1/+21
| | | | | | | We need to be able to receive calls if the device is able to reassociate with any AP later on. Change-Id: Ib7aafb98386bf250ed9b5ec0a5b519594efa1649
* SipService: add permission check for using APIHung-ying Tyan2010-10-081-4/+21
| | | | Change-Id: Ifd85ba07f1b913011cb3e80e5027c67bfe3db280
* Make SipService broadcast SIP_SERVICE_UP when it's up.Hung-ying Tyan2010-10-071-0/+1
| | | | | | http://b/issue?id=3062010 Change-Id: I13419fa3a8fdfba1977260f703e4dcaa42a6606c
* SIP: Fix busy authentication loop.Hung-ying Tyan2010-10-072-35/+30
| | | | | | | | | | Add a retry count and give up after two attempts. Also stop auto registration when server is unreachable. And rename onError() to restartLater() for better readability. http://b/issue?id=3066573 Change-Id: Icfa65c58546a1e2bf8e59e29584a3926c53c479b
* Merge "SIP: add SERVER_UNREACHABLE error code." into gingerbreadHung-ying Tyan2010-10-041-2/+2
|\
| * SIP: add SERVER_UNREACHABLE error code.Hung-ying Tyan2010-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | Let SipSession return it when UnknownHostException is caught. Add DisconnectCause.SERVER_UNREACHABLE in Connection and have SipPhone report it when receiving SERVER_UNREACHABLE from SipSession. http://b/issue?id=3061691 Change-Id: I944328ba3ee30c0a9386e89b5c4696d4d9bde000
* | SipService: supply PendingIntent when open a profile.Hung-ying Tyan2010-10-051-44/+29
|/ | | | | | | | | | | The SipService used to take an action string and broadcasts an intent with that action string when an incoming call is received. The design is not safe (as the intent may be sniffed) and inflexible (can only received by BroadcastReceiver). Now we use PendingIntent to fix all these. Companion CL: https://android-git.corp.google.com/g/#change,71800 Change-Id: Id12e5c1cf9321edafb171494932cd936eae10b6e
* SIP: minor fixes.Hung-ying Tyan2010-10-041-5/+18
| | | | | | | | + Log error instead of crashing app process in SipManager's ListenerRelay. + Terminate dialog and transaction in SipSessionGroup.reset(). + Remove redundant reset() in SipSessionGroup. Change-Id: Ifbf29d2c9607ffe1a1a50b0c131ee3a4e81a0d0e
* SipService: turn off verbose loggingHung-ying Tyan2010-10-011-1/+2
| | | | Change-Id: I264662ba17d215d532f58b6ee793e569fe67c334
* SipService: add UID check.Hung-ying Tyan2010-09-301-15/+65
| | | | | | Only allow creator or radio user to access profiles. Change-Id: I548938f117926bcc878419142d1b5d818a4e70df
* SIP: misc fixes.Hung-ying Tyan2010-09-302-57/+91
| | | | | | | | | | + Fix keepalive timer event leak due to the race between stopping timer and the async'ed timeout handler + SipSessionImpl: set state before handling an event to ensure we get correct state when some error occurs during handling the event. + Fix potential NPE in SipManager.ListenerRelay.getUri(). Change-Id: I021ee34f83059fd4fbb64b30bea427a5462aa51b
* SIP: Feedback any provisional responses in addition to RINGHung-ying Tyan2010-09-291-1/+5
| | | | | | | | | The only exception is TRYING. Also remove an unused import in SipSessionGroup. http://b/issue?id=3021865 Change-Id: I160982b0c4b417362f1fb961217db90c3a585ce5
* SIP: add DisconnectCause.SERVER_ERRORHung-ying Tyan2010-09-281-5/+2
| | | | | | | | | and fix how SipErrorCode.SERVER_ERROR is determinted from server response, not from local exceptions. http://b/issue?id=3041332 Change-Id: Idce67e29858d5c7573b98b7fa1fac074913d71d6
* Move SipService out of SystemServer to phone process.Hung-ying Tyan2010-09-284-0/+3308
Companion CL: https://android-git/g/#change,70187 http://b/issue?id=2998069 Change-Id: I90923ac522ef363a4e04292f652d413c5a1526ad