EmulatorControl

@Incubating
public interface EmulatorControl


Options for configuring Android Emulator Access

When enabled, it will be possible to control the emulator through gRPC.

Summary

Public methods

abstract @NonNull Set<@NonNull String>

Set of endpoints to which access is granted, this is only required if the method you wish to access is in the set of methods that require authorization as defined in emulator_access.json used by the emulator this test is running on.

abstract boolean

True if emulator control should be enabled.

abstract int

The duration in seconds the test can access the gRPC endpoint.

abstract void
@Incubating
setEnable(boolean enable)

True if emulator control should be enabled.

abstract void
@Incubating
setSecondsValid(int secondsValid)

The duration in seconds the test can access the gRPC endpoint.

Public methods

getAllowedEndpoints

@Incubating
abstract @NonNull Set<@NonNull StringgetAllowedEndpoints()

Set of endpoints to which access is granted, this is only required if the method you wish to access is in the set of methods that require authorization as defined in emulator_access.json used by the emulator this test is running on.

Details on which endpoints and what considerations are taken to make an endpoint accessible is described in go/emu-grpc-integration.

getEnable

@Incubating
abstract boolean getEnable()

True if emulator control should be enabled.

getSecondsValid

@Incubating
abstract int getSecondsValid()

The duration in seconds the test can access the gRPC endpoint. The default value is 3600 (one hour).

setEnable

@Incubating
abstract void setEnable(boolean enable)

True if emulator control should be enabled.

setSecondsValid

@Incubating
abstract void setSecondsValid(int secondsValid)

The duration in seconds the test can access the gRPC endpoint. The default value is 3600 (one hour).