Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

ACTION_BIND - Static variable in class io.grpc.binder.ApiConstants
The "action" part of the binding Intent that gRPC clients use by default to identify themselves in a Service.onBind(Intent) call.
allOf(SecurityPolicy...) - Static method in class io.grpc.binder.SecurityPolicies
Creates a SecurityPolicy that allows access if and only if *all* of the specified securityPolicies allow access.
AndroidComponentAddress - Class in io.grpc.binder
The target of an Android Service binding.
AndroidComponentAddress(Intent) - Constructor for class io.grpc.binder.AndroidComponentAddress
 
anyOf(SecurityPolicy...) - Static method in class io.grpc.binder.SecurityPolicies
Creates a SecurityPolicy that allows access if *any* of the specified securityPolicies allow access.
ApiConstants - Class in io.grpc.binder
Constant parts of the gRPC binder transport public API.
asAndroidAppUri() - Method in class io.grpc.binder.AndroidComponentAddress
Returns this address as an "android-app://" uri.
asBindIntent() - Method in class io.grpc.binder.AndroidComponentAddress
Returns this address as an explicit Intent suitable for passing to Context.bindService(android.content.Intent, android.content.ServiceConnection, int).
attachAuthAttrs(Attributes.Builder, int, ServerSecurityPolicy) - Static method in class io.grpc.binder.internal.BinderTransportSecurity
Attach the given security policy to the transport attributes being built.
attributes - Variable in class io.grpc.binder.internal.BinderTransport
 

B

BinderChannelBuilder - Class in io.grpc.binder
Builder for a gRPC channel which communicates with an Android bound service.
BinderClientTransport(Context, AndroidComponentAddress, BindServiceFlags, Executor, ObjectPool<ScheduledExecutorService>, ObjectPool<? extends Executor>, SecurityPolicy, InboundParcelablePolicy, Attributes) - Constructor for class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
binderDied() - Method in class io.grpc.binder.internal.BinderTransport
 
BinderServer - Class in io.grpc.binder.internal
A gRPC InternalServer which accepts connections via a host AndroidService.
BinderServer(AndroidComponentAddress, ObjectPool<ScheduledExecutorService>, List<? extends ServerStreamTracer.Factory>, ServerSecurityPolicy, InboundParcelablePolicy) - Constructor for class io.grpc.binder.internal.BinderServer
 
BinderServerBuilder - Class in io.grpc.binder
Builder for a server that services requests from an Android Service.
BinderServerTransport(ObjectPool<ScheduledExecutorService>, Attributes, List<ServerStreamTracer.Factory>, IBinder) - Constructor for class io.grpc.binder.internal.BinderTransport.BinderServerTransport
 
BinderTransport - Class in io.grpc.binder.internal
Base class for binder-based gRPC transport.
BinderTransport.BinderClientTransport - Class in io.grpc.binder.internal
Concrete client-side transport implementation.
BinderTransport.BinderServerTransport - Class in io.grpc.binder.internal
Concrete server-side transport implementation.
BinderTransport.TransportState - Enum in io.grpc.binder.internal
The states of this transport.
BinderTransportSecurity - Class in io.grpc.binder.internal
Manages security for an Android Service hosted gRPC server.
BindServiceFlags - Class in io.grpc.binder
An immutable set of flags affecting the behavior of Context.bindService(android.content.Intent, android.content.ServiceConnection, int).
BindServiceFlags.Builder - Class in io.grpc.binder
Builds an instance of BindServiceFlags.
BoundClientAddress - Class in io.grpc.binder.internal
An address to represent a binding from a remote client.
BoundClientAddress(int) - Constructor for class io.grpc.binder.internal.BoundClientAddress
 
build() - Method in class io.grpc.binder.BinderServerBuilder
Builds a Server according to this builder's parameters and stores its listening IBinder in the IBinderReceiver passed to BinderServerBuilder.forAddress(AndroidComponentAddress, IBinderReceiver).
build() - Method in class io.grpc.binder.BindServiceFlags.Builder
Returns a new instance of BindServiceFlags that reflects the state of this builder.
build() - Method in class io.grpc.binder.InboundParcelablePolicy.Builder
 
build() - Method in class io.grpc.binder.ServerSecurityPolicy.Builder
 
Builder() - Constructor for class io.grpc.binder.InboundParcelablePolicy.Builder
 

C

checkAuthorization(int) - Method in class io.grpc.binder.SecurityPolicy
Decides whether the given Android UID is authorized.
checkAuthorizationForService(int, String) - Method in class io.grpc.binder.ServerSecurityPolicy
Return whether the given Android UID is authorized to access a particular service.
createInbound(int) - Method in class io.grpc.binder.internal.BinderTransport.BinderServerTransport
 
createInbound(int) - Method in class io.grpc.binder.internal.BinderTransport
 

D

DEFAULT - Static variable in class io.grpc.binder.InboundParcelablePolicy
 
DEFAULTS - Static variable in class io.grpc.binder.BindServiceFlags
A set of default flags suitable for most applications.
delegate() - Method in class io.grpc.binder.BinderChannelBuilder
 
delegate() - Method in class io.grpc.binder.BinderServerBuilder
 
delegate - Variable in class io.grpc.binder.internal.OneWayBinderProxy
 
detach() - Method in class io.grpc.binder.internal.LeakSafeOneWayBinder
 

E

EARLIEST_SUPPORTED_WIRE_FORMAT_VERSION - Static variable in class io.grpc.binder.internal.BinderTransport
The version code of the earliest wire format we support.
enableStats() - Method in class io.grpc.binder.BinderServerBuilder
Enable stats collection using census.
enableTracing() - Method in class io.grpc.binder.BinderServerBuilder
Enable tracing using census.
equals(Object) - Method in class io.grpc.binder.AndroidComponentAddress
 
equals(Object) - Method in class io.grpc.binder.BindServiceFlags
 
equals(Object) - Method in class io.grpc.binder.internal.BoundClientAddress
 

F

forAddress(AndroidComponentAddress, Context) - Static method in class io.grpc.binder.BinderChannelBuilder
Creates a channel builder that will bind to a remote Android service.
forAddress(String, int) - Static method in class io.grpc.binder.BinderChannelBuilder
Always fails.
forAddress(AndroidComponentAddress, IBinderReceiver) - Static method in class io.grpc.binder.BinderServerBuilder
Creates a server builder that will listen for bindings to the specified address.
forBindIntent(Intent) - Static method in class io.grpc.binder.AndroidComponentAddress
Creates a new address that refers to intent's component and that uses the "filter matching" fields of intent as the binding Intent.
forComponent(ComponentName) - Static method in class io.grpc.binder.AndroidComponentAddress
Creates an address referencing the specified Service component and using the default binding Intent.
forContext(Context) - Static method in class io.grpc.binder.AndroidComponentAddress
Creates an address for the given Service instance with the default binding Intent.
forLocalComponent(Context, Class<?>) - Static method in class io.grpc.binder.AndroidComponentAddress
Creates an address referencing a Service hosted by this application and using the default binding Intent.
forPort(int) - Static method in class io.grpc.binder.BinderServerBuilder
Always fails.
forRemoteComponent(String, String) - Static method in class io.grpc.binder.AndroidComponentAddress
Creates an address referencing a Service in another application and using the default binding Intent.
forTarget(String, Context) - Static method in class io.grpc.binder.BinderChannelBuilder
Creates a channel builder that will bind to a remote Android service, via a string target name which will be resolved.
forTarget(String) - Static method in class io.grpc.binder.BinderChannelBuilder
Always fails.

G

get() - Method in class io.grpc.binder.IBinderReceiver
Returns the contents of this container or null if it is empty.
getAttributes() - Method in class io.grpc.binder.internal.BinderTransport
 
getAuthority() - Method in class io.grpc.binder.AndroidComponentAddress
 
getComponent() - Method in class io.grpc.binder.AndroidComponentAddress
 
getDelegate() - Method in class io.grpc.binder.internal.OneWayBinderProxy
Returns the wrapped IBinder for the purpose of calling methods other than IBinder.transact(int, Parcel, Parcel, int).
getHostBinder() - Method in class io.grpc.binder.internal.BinderServer
Return the binder we're listening on.
getListenSocketAddress() - Method in class io.grpc.binder.internal.BinderServer
 
getListenSocketAddresses() - Method in class io.grpc.binder.internal.BinderServer
 
getListenSocketStats() - Method in class io.grpc.binder.internal.BinderServer
 
getListenSocketStatsList() - Method in class io.grpc.binder.internal.BinderServer
 
getLogId() - Method in class io.grpc.binder.internal.BinderTransport
 
getMaxParcelableMetadataSize() - Method in class io.grpc.binder.InboundParcelablePolicy
 
getScheduledExecutorService() - Method in class io.grpc.binder.internal.BinderTransport
 
getStats() - Method in class io.grpc.binder.internal.BinderTransport
 

H

handlePingResponse(Parcel) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
handlePingResponse(Parcel) - Method in class io.grpc.binder.internal.BinderTransport
 
handleSetupTransport(Parcel) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
handleSetupTransport(Parcel) - Method in class io.grpc.binder.internal.BinderTransport
 
handleTransaction(int, Parcel) - Method in class io.grpc.binder.internal.BinderServer
 
handleTransaction(int, Parcel) - Method in class io.grpc.binder.internal.BinderTransport
 
handleTransaction(int, Parcel) - Method in interface io.grpc.binder.internal.LeakSafeOneWayBinder.TransactionHandler
 
hashCode() - Method in class io.grpc.binder.AndroidComponentAddress
 
hashCode() - Method in class io.grpc.binder.BindServiceFlags
 
hashCode() - Method in class io.grpc.binder.internal.BoundClientAddress
 
hasPermissions(PackageManager, ImmutableSet<String>) - Static method in class io.grpc.binder.SecurityPolicies
Creates a SecurityPolicy which checks if the caller has all of the given permissions from permissions.
hasSignature(PackageManager, String, Signature) - Static method in class io.grpc.binder.SecurityPolicies
Creates a SecurityPolicy which checks if the package signature matches requiredSignature.
hasSignatureSha256Hash(PackageManager, String, byte[]) - Static method in class io.grpc.binder.SecurityPolicies
Creates SecurityPolicy which checks if the SHA-256 hash of the package signature matches requiredSignatureSha256Hash.

I

IBinderReceiver - Class in io.grpc.binder
A container for at most one instance of IBinder, useful as an "out parameter".
IBinderReceiver() - Constructor for class io.grpc.binder.IBinderReceiver
Constructs a new, initially empty, container.
INBOUND_PARCELABLE_POLICY - Static variable in class io.grpc.binder.internal.BinderTransport
A transport attribute to hold the InboundParcelablePolicy.
inboundParcelablePolicy(InboundParcelablePolicy) - Method in class io.grpc.binder.BinderChannelBuilder
Sets the policy for inbound parcelable objects.
inboundParcelablePolicy(InboundParcelablePolicy) - Method in class io.grpc.binder.BinderServerBuilder
Sets the policy for inbound parcelable objects.
InboundParcelablePolicy - Class in io.grpc.binder
Contains the policy for accepting inbound parcelable objects.
InboundParcelablePolicy.Builder - Class in io.grpc.binder
A builder for InboundParcelablePolicy.
installAuthInterceptor(ServerBuilder<?>) - Static method in class io.grpc.binder.internal.BinderTransportSecurity
Install a security policy on an about-to-be created server.
internalOnly() - Static method in class io.grpc.binder.SecurityPolicies
 
io.grpc.binder - package io.grpc.binder
 
io.grpc.binder.internal - package io.grpc.binder.internal
 

L

LeakSafeOneWayBinder - Class in io.grpc.binder.internal
An extension of Binder which delegates all transactions to an internal handler, and only supports one way transactions.
LeakSafeOneWayBinder(LeakSafeOneWayBinder.TransactionHandler) - Constructor for class io.grpc.binder.internal.LeakSafeOneWayBinder
 
LeakSafeOneWayBinder.TransactionHandler - Interface in io.grpc.binder.internal
 
LifecycleOnDestroyHelper - Class in io.grpc.binder
Helps work around certain quirks of Lifecycle.addObserver(androidx.lifecycle.LifecycleObserver) and Lifecycle.State.DESTROYED.

M

mainThreadExecutor(Executor) - Method in class io.grpc.binder.BinderChannelBuilder
Provides a custom Executor for accessing this application's main thread.
MAX_PARCELABLE_METADATA_SIZE - Static variable in class io.grpc.binder.InboundParcelablePolicy
The maximum allowed total size of Parcelables in metadata.
MetadataHelper - Class in io.grpc.binder.internal
Helper class for reading & writing metadata to parcels.
MetadataHelper.ParcelableMetadataMarshaller<P extends android.os.Parcelable> - Class in io.grpc.binder.internal
A marshaller for passing parcelables in gRPC Metadata
metadataKey(String, Parcelable.Creator<P>) - Static method in class io.grpc.binder.ParcelableUtils
Create a Metadata.Key for passing a Parcelable object in the metadata of an RPC, treating instances as mutable.
metadataKeyForImmutableType(String, Parcelable.Creator<P>) - Static method in class io.grpc.binder.ParcelableUtils
Create a Metadata.Key for passing a Parcelable object in the metadata of an RPC, treating instances as immutable.

N

newBuilder() - Static method in class io.grpc.binder.InboundParcelablePolicy
 
newBuilder() - Static method in class io.grpc.binder.ServerSecurityPolicy
 
newStream(MethodDescriptor<?, ?>, Metadata, CallOptions, ClientStreamTracer[]) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
notifyShutdown(Status) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
notifyShutdown(Status) - Method in class io.grpc.binder.internal.BinderTransport.BinderServerTransport
 
notifyTerminated() - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
notifyTerminated() - Method in class io.grpc.binder.internal.BinderTransport.BinderServerTransport
 

O

onBound(IBinder) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
oneOfSignatures(PackageManager, String, Collection<Signature>) - Static method in class io.grpc.binder.SecurityPolicies
Creates a SecurityPolicy which checks if the package signature matches any of requiredSignatures.
oneOfSignatureSha256Hash(PackageManager, String, List<byte[]>) - Static method in class io.grpc.binder.SecurityPolicies
Creates SecurityPolicy which checks if the SHA-256 hash of the package signature matches any of requiredSignatureSha256Hashes.
OneWayBinderProxy - Class in io.grpc.binder.internal
Wraps an IBinder with a safe and uniformly asynchronous transaction API.
ongoingCalls - Variable in class io.grpc.binder.internal.BinderTransport
 
onTransact(int, Parcel, Parcel, int) - Method in class io.grpc.binder.internal.LeakSafeOneWayBinder
 
onUnbound(Status) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 

P

ParcelableMetadataMarshaller(Parcelable.Creator<P>, boolean) - Constructor for class io.grpc.binder.internal.MetadataHelper.ParcelableMetadataMarshaller
 
ParcelableUtils - Class in io.grpc.binder
Utility methods for using Android Parcelable objects with gRPC.
parseStream(InputStream) - Method in class io.grpc.binder.internal.MetadataHelper.ParcelableMetadataMarshaller
 
permissionDenied(String) - Static method in class io.grpc.binder.SecurityPolicies
 
ping(ClientTransport.PingCallback, Executor) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
pingBinder() - Method in class io.grpc.binder.internal.LeakSafeOneWayBinder
 

R

readMetadata(Parcel, Attributes) - Static method in class io.grpc.binder.internal.MetadataHelper
Read a Metadata instance from a Parcel.
REMOTE_UID - Static variable in class io.grpc.binder.internal.BinderTransport
Attribute used to store the Android UID of the remote app.

S

scheduledExecutorService(ScheduledExecutorService) - Method in class io.grpc.binder.BinderChannelBuilder
Provides a custom scheduled executor service.
scheduledExecutorService(ScheduledExecutorService) - Method in class io.grpc.binder.BinderServerBuilder
Provides a custom scheduled executor service.
SecurityPolicies - Class in io.grpc.binder
Static factory methods for creating standard security policies.
securityPolicy(SecurityPolicy) - Method in class io.grpc.binder.BinderChannelBuilder
Provides a custom security policy.
securityPolicy(ServerSecurityPolicy) - Method in class io.grpc.binder.BinderServerBuilder
Provides a custom security policy.
SecurityPolicy - Class in io.grpc.binder
Decides whether a given Android UID is authorized to access some resource.
SecurityPolicy() - Constructor for class io.grpc.binder.SecurityPolicy
 
sendPing(int) - Method in class io.grpc.binder.internal.BinderTransport
 
SERVER_AUTHORITY - Static variable in class io.grpc.binder.internal.BinderTransport
The authority of the server.
serverInternalOnly() - Static method in class io.grpc.binder.SecurityPolicies
 
ServerSecurityPolicy - Class in io.grpc.binder
A security policy for a gRPC server.
ServerSecurityPolicy.Builder - Class in io.grpc.binder
Builder for an AndroidServiceSecurityPolicy.
servicePolicy(String, SecurityPolicy) - Method in class io.grpc.binder.ServerSecurityPolicy.Builder
Specify a policy specific to a particular gRPC service.
set(IBinder) - Method in class io.grpc.binder.IBinderReceiver
 
setAboveClient(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Sets or clears the Context.BIND_ABOVE_CLIENT flag.
setAcceptParcelableMessages(boolean) - Method in class io.grpc.binder.InboundParcelablePolicy.Builder
Sets whether the policy should accept parcelable messages.
setAcceptParcelableMetadataValues(boolean) - Method in class io.grpc.binder.InboundParcelablePolicy.Builder
Sets whether the policy should accept parcelable metadata values.
setAdjustWithActivity(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Sets or clears the Context.BIND_ADJUST_WITH_ACTIVITY flag.
setAllowOomManagement(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Sets or clears the Context.BIND_ALLOW_OOM_MANAGEMENT flag.
setAutoCreate(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Controls whether sending a call over the associated Channel will cause the target Service to be created and whether in-flight calls will keep it in existence absent any other binding in the system.
setBindServiceFlags(BindServiceFlags) - Method in class io.grpc.binder.BinderChannelBuilder
Specifies certain optional aspects of the underlying Android Service binding.
setImportant(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Sets or clears the Context.BIND_IMPORTANT flag.
setIncludeCapabilities(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Sets or clears the Context.BIND_INCLUDE_CAPABILITIES flag.
setMaxParcelableMetadataSize(int) - Method in class io.grpc.binder.InboundParcelablePolicy.Builder
Sets the maximum allowed total size of parcelables in metadata.
setNotForeground(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Sets or clears the Context.BIND_NOT_FOREGROUND flag.
setNotPerceptible(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Sets or clears the Context.BIND_NOT_PERCEPTIBLE flag.
setOutgoingBinder(OneWayBinderProxy) - Method in class io.grpc.binder.internal.BinderTransport
 
setServerTransportListener(ServerTransportListener) - Method in class io.grpc.binder.internal.BinderTransport.BinderServerTransport
 
SETUP_TRANSPORT - Static variable in class io.grpc.binder.internal.BinderTransport
Sent from the client to host service binder to initiate a new transport, and from the host to the binder.
setWaivePriority(boolean) - Method in class io.grpc.binder.BindServiceFlags.Builder
Sets or clears the Context.BIND_WAIVE_PRIORITY flag.
shouldAcceptParcelableMessages() - Method in class io.grpc.binder.InboundParcelablePolicy
 
shouldAcceptParcelableMetadataValues() - Method in class io.grpc.binder.InboundParcelablePolicy
 
shutdown() - Method in class io.grpc.binder.internal.BinderServer
 
shutdown(Status) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
shutdown() - Method in class io.grpc.binder.internal.BinderTransport.BinderServerTransport
 
SHUTDOWN_TRANSPORT - Static variable in class io.grpc.binder.internal.BinderTransport
Send to shutdown the transport from either end.
shutdownNow(Status) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
shutdownNow(Status) - Method in class io.grpc.binder.internal.BinderTransport.BinderServerTransport
 
shutdownStatus - Variable in class io.grpc.binder.internal.BinderTransport
 
shutdownUponDestruction(Lifecycle, ManagedChannel) - Static method in class io.grpc.binder.LifecycleOnDestroyHelper
Arranges for ManagedChannel.shutdownNow() to be called on channel just before lifecycle is destroyed, or immediately if lifecycle is already destroyed.
shutdownUponDestruction(Lifecycle, Server) - Static method in class io.grpc.binder.LifecycleOnDestroyHelper
Arranges for Server.shutdownNow() to be called on server just before lifecycle is destroyed, or immediately if lifecycle is already destroyed.
start(ServerListener) - Method in class io.grpc.binder.internal.BinderServer
 
start(ManagedClientTransport.Listener) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 

T

toBuilder() - Method in class io.grpc.binder.BindServiceFlags
Returns a new instance of BindServiceFlags.Builder with the same set of flags as this.
toInteger() - Method in class io.grpc.binder.BindServiceFlags
Returns the sum of all set flags as an int suitable for passing to (Context.bindService(android.content.Intent, android.content.ServiceConnection, int).
toStream(P) - Method in class io.grpc.binder.internal.MetadataHelper.ParcelableMetadataMarshaller
 
toString() - Method in class io.grpc.binder.AndroidComponentAddress
 
toString() - Method in class io.grpc.binder.BindServiceFlags
 
toString() - Method in class io.grpc.binder.internal.BinderServer
 
toString() - Method in class io.grpc.binder.internal.BoundClientAddress
 
transact(int, ParcelHolder) - Method in class io.grpc.binder.internal.OneWayBinderProxy
Enqueues a transaction for the wrapped IBinder with guaranteed "oneway" semantics.
transactAndRecycleParcel(int, Parcel) - Method in class io.grpc.binder.internal.OneWayBinderProxy
 

U

unregisterInbound(Inbound<?>) - Method in class io.grpc.binder.internal.BinderTransport.BinderClientTransport
 
unregisterInbound(Inbound<?>) - Method in class io.grpc.binder.internal.BinderTransport
 
untrustedPublic() - Static method in class io.grpc.binder.UntrustedSecurityPolicies
Return a security policy which allows any peer on device.
UntrustedSecurityPolicies - Class in io.grpc.binder
Static factory methods for creating untrusted security policies.
useTransportSecurity(File, File) - Method in class io.grpc.binder.BinderServerBuilder
 

V

valueOf(String) - Static method in enum io.grpc.binder.internal.BinderTransport.TransportState
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.grpc.binder.internal.BinderTransport.TransportState
Returns an array containing the constants of this enum type, in the order they are declared.

W

WIRE_FORMAT_VERSION - Static variable in class io.grpc.binder.internal.BinderTransport
Version code for this wire format.
wrap(IBinder, Executor) - Static method in class io.grpc.binder.internal.OneWayBinderProxy
Returns a new instance of OneWayBinderProxy that wraps iBinder.
writeMetadata(Parcel, Metadata) - Static method in class io.grpc.binder.internal.MetadataHelper
Write a Metadata instance to a Parcel.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links