Home
last modified time | relevance | path

Searched refs:AndroidChannelBuilder (Results 1 – 3 of 3) sorted by relevance

/external/grpc-grpc-java/android/src/main/java/io/grpc/android/
DAndroidChannelBuilder.java58 public final class AndroidChannelBuilder extends ForwardingChannelBuilder<AndroidChannelBuilder> { class
76 public static final AndroidChannelBuilder forTarget(String target) { in forTarget()
77 return new AndroidChannelBuilder(target); in forTarget()
80 public static AndroidChannelBuilder forAddress(String name, int port) { in forAddress()
84 public static AndroidChannelBuilder fromBuilder(ManagedChannelBuilder<?> builder) { in fromBuilder()
85 return new AndroidChannelBuilder(builder); in fromBuilder()
88 private AndroidChannelBuilder(String target) { in AndroidChannelBuilder() method in AndroidChannelBuilder
103 private AndroidChannelBuilder(ManagedChannelBuilder<?> delegateBuilder) { in AndroidChannelBuilder() method in AndroidChannelBuilder
108 public AndroidChannelBuilder context(Context context) { in context()
120 public AndroidChannelBuilder transportExecutor(@Nullable Executor transportExecutor) { in transportExecutor()
[all …]
/external/grpc-grpc-java/documentation/
Dandroid-channel-builder.md1 # AndroidChannelBuilder chapter
4 `AndroidChannelBuilder` class. Given an Android Context, this builder will
12 the connection. This delay is removed when `AndroidChannelBuilder` is provided
16 On Android API levels 24+, `AndroidChannelBuilder`'s network listener mechanism
21 listening for changes in the device's default network, `AndroidChannelBuilder`
27 ***Note:*** *Currently, `AndroidChannelBuilder` is only compatible with gRPC
50 When constructing your channel, use `AndroidChannelBuilder` and provide it with
54 import io.grpc.android.AndroidChannelBuilder;
56 ManagedChannel channel = AndroidChannelBuilder.forAddress("localhost", 8080)
64 registered by `AndroidChannelBuilder` will be unregistered.
/external/grpc-grpc-java/android/src/test/java/io/grpc/android/
DAndroidChannelBuilderTest.java93 AndroidChannelBuilder.forTarget("target"); in channelBuilderClassFoundReflectively()
99 AndroidChannelBuilder androidBuilder = AndroidChannelBuilder.fromBuilder(wrappedBuilder); in fromBuilderConstructor()
105 AndroidChannelBuilder.forTarget("target") in transportExecutor()
115 AndroidChannelBuilder.forTarget("target") in sslSocketFactory()
121 AndroidChannelBuilder.forTarget("target").scheduledExecutorService(new ScheduledExecutorImpl()); in scheduledExecutorService()
128 ManagedChannel androidChannel = new AndroidChannelBuilder.AndroidChannel(delegateChannel, null); in nullContextDoesNotThrow_api23()
144 ManagedChannel androidChannel = new AndroidChannelBuilder.AndroidChannel(delegateChannel, null); in nullContextDoesNotThrow_api24()
159 new AndroidChannelBuilder.AndroidChannel( in resetConnectBackoff_api23()
214 new AndroidChannelBuilder.AndroidChannel( in resetConnectBackoffAndEnterIdle_api24()
255 new AndroidChannelBuilder.AndroidChannel( in newChannelWithConnection_entersIdleOnSecondConnectionChange_api24()
[all …]