summaryrefslogtreecommitdiff
path: root/core/java/android/content/ServiceConnection.java
Commit message (Collapse)AuthorAgeFilesLines
* Revised API documentation of Context and ServiceConnection.Jon Eckenrode2022-02-091-4/+8
| | | | | | | | See b/213625234. Test: Built API documentation Signed-off-by: joneckenrode <joneckenrode@google.com> Change-Id: Icb2eb3eb13c291dca9fc6857db3a8657a23856f7
* docs: Revised descriptions of binding and connecting to services.Kevin Hufnagle2018-01-091-0/+5
| | | | | | | | | | | | Clarified that Context.bindService() returning true only indicates that the system has found a service to bind to the client and that ServiceConnection.onServiceConnected() might not be called if the service encounters an error, such as crashing during startup. Test: make ds-docs Bug: 63118511 Change-Id: I0906de76abf4124d74f7f4f80ac0eab3cbf94f7e
* Introduce ServiceConnection#onNullBinding()Christopher Tate2017-12-041-0/+17
| | | | | | | | | | | | | | | | | Historically, if a service returns null from onBind(), the binding app gets no information about the outcome: the ServiceConnection is never invoked. We now introduce a new connection callback, onNullBinding(), for apps that need to detect this situation. When the service rejects the binding by returning null, the onNullBinding() callback in the associated ServiceConnection is invoked instead of onServiceConnected(). onNullBinding() has an empty default implementation, so there is no binary-compatibility impact of this new interface method. Bug: 67377345 Test: atest android.app.cts.ServiceTest Change-Id: I224512c118f7d6e5c1c2bb69eca1902882e73594
* Fix issue #37470038: API Review: ServiceConnection.onBindingDead()Dianne Hackborn2017-04-191-1/+1
| | | | | | | | Renamed. Test: booted and ran. Change-Id: Ic21f7ef66d43fb6db9f7ebbc833f28c09474ea59
* Framework support to improve bg check CTS tests.Dianne Hackborn2017-03-311-2/+15
| | | | | | | | | | | | | (Finally) introduce a new ServiceConnection callback to tell you when the binding has died. This allows you to robustly have a weak service monitoring, and also is an easy way to find out about breakages due to app updates etc. Also clean up some debug output. Test: moved to own suite and ran them. Change-Id: I526cc00816c384fa9eb1312b92406f38085cbff9
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+53
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-53/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+53