-
- All Implemented Interfaces:
-
android.os.IBinder,android.os.IBinder.DeathRecipient
public class SystemServiceBinder<T extends IInterface> implements IBinder, IBinder.DeathRecipient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSystemServiceBinder.OnGetBinderListenerpublic interfaceSystemServiceBinder.ServiceCreator
-
Field Summary
Fields Modifier and Type Field Description private static SystemServiceBinder.OnGetBinderListeneronGetBinderListener
-
Constructor Summary
Constructors Constructor Description SystemServiceBinder(String name, SystemServiceBinder.ServiceCreator<T> serviceCreator)
-
Method Summary
Modifier and Type Method Description static voidsetOnGetBinderListener(SystemServiceBinder.OnGetBinderListener onGetBinderListener)IBindergetBinder()Tget()booleantransact(int code, @NonNull() Parcel data, @Nullable() Parcel reply, int flags)voidbinderDied()StringgetInterfaceDescriptor()booleanpingBinder()booleanisBinderAlive()IInterfacequeryLocalInterface(@NonNull() String s)voiddump(@NonNull() FileDescriptor fd, @Nullable() Array<String> args)voiddumpAsync(@NonNull() FileDescriptor fd, @Nullable() Array<String> args)voidlinkToDeath(@NonNull() IBinder.DeathRecipient recipient, int flags)booleanunlinkToDeath(@NonNull() IBinder.DeathRecipient recipient, int flags)-
Methods inherited from class android.os.IBinder
addFrozenStateChangeCallback, dump, dumpAsync, getInterfaceDescriptor, getSuggestedMaxIpcSizeBytes, isBinderAlive, linkToDeath, pingBinder, queryLocalInterface, removeFrozenStateChangeCallback, transact, unlinkToDeath -
Methods inherited from class android.os.IBinder.DeathRecipient
binderDied -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SystemServiceBinder
SystemServiceBinder(String name, SystemServiceBinder.ServiceCreator<T> serviceCreator)
-
-
Method Detail
-
setOnGetBinderListener
static void setOnGetBinderListener(SystemServiceBinder.OnGetBinderListener onGetBinderListener)
-
binderDied
void binderDied()
-
getInterfaceDescriptor
@Nullable() String getInterfaceDescriptor()
-
pingBinder
boolean pingBinder()
-
isBinderAlive
boolean isBinderAlive()
-
queryLocalInterface
@Nullable() IInterface queryLocalInterface(@NonNull() String s)
-
linkToDeath
void linkToDeath(@NonNull() IBinder.DeathRecipient recipient, int flags)
-
unlinkToDeath
boolean unlinkToDeath(@NonNull() IBinder.DeathRecipient recipient, int flags)
-
-
-
-