Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions binder/src/main/java/io/grpc/binder/internal/ServiceBinding.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,19 +356,32 @@ public void onServiceConnected(ComponentName className, IBinder binder) {
@Override
@MainThread
public void onServiceDisconnected(ComponentName name) {
unbindInternal(Status.UNAVAILABLE.withDescription("onServiceDisconnected: " + name));
unbindInternal(
Status.UNAVAILABLE.withDescription(
"Server process crashed, exited or was killed (onServiceDisconnected): " + name));
}

@Override
@MainThread
public void onNullBinding(ComponentName name) {
unbindInternal(Status.UNIMPLEMENTED.withDescription("onNullBinding: " + name));
unbindInternal(
Status.UNIMPLEMENTED.withDescription(
"Remote Service returned null from onBind() for "
+ bindIntent
+ " (onNullBinding): "
+ name));
}

@Override
@MainThread
public void onBindingDied(ComponentName name) {
unbindInternal(Status.UNAVAILABLE.withDescription("onBindingDied: " + name));
unbindInternal(
Status.UNAVAILABLE.withDescription(
"Remote Service component "
+ name.getClassName()
+ " was disabled, or its package "
+ name.getPackageName()
+ " was disabled, force-stopped, replaced or uninstalled (onBindingDied)."));
}

@VisibleForTesting
Expand Down