summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2017-10-06 16:15:34 -0700
committerChristopher Tate <ctate@google.com>2017-12-04 17:11:31 -0800
commit5d73b6d7a9e07d876ce35484c1b82f96407cf77a (patch)
tree565cd26988782b7a1647369ef4a1b448e41ab0ad /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2f919ef86b2f69e70c08c88550250132daa8ff5f (diff)
Introduce ServiceConnection#onNullBinding()
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions