ICommandScheduler.IScheduledInvocationListener

public static interface ICommandScheduler.IScheduledInvocationListener
implements ITestInvocationListener

com.android.tradefed.command.ICommandScheduler.IScheduledInvocationListener


调用完成时,用于接收调用事件的监听器。

摘要

公共方法

abstract void invocationComplete(IInvocationContext context, Map<ITestDeviceFreeDeviceState> devicesStates)

当整个调用(包括所有 ITestInvocationListener.invocationEnded(long) 事件)完成时,系统会调用此回调。

default void invocationInitiated(IInvocationContext context)

当调用启动时,系统会调用此回调。

default void releaseDevices(IInvocationContext context, Map<ITestDeviceFreeDeviceState> devicesStates)

ICommandOptions.earlyDeviceRelease() 关联的回调,用于在设备使用完毕后将其发布。

公共方法

invocationComplete

public abstract void invocationComplete (IInvocationContext context, 
                Map<ITestDeviceFreeDeviceState> devicesStates)

当整个调用(包括所有 ITestInvocationListener.invocationEnded(long) 事件)完成时,系统会调用此回调。

invocationInitiated

public void invocationInitiated (IInvocationContext context)

当调用启动时,系统会调用此回调。此方法会在提取任何 build 之前调用。

releaseDevices

public void releaseDevices (IInvocationContext context, 
                Map<ITestDeviceFreeDeviceState> devicesStates)

ICommandOptions.earlyDeviceRelease() 关联的回调,用于在设备使用完毕后将其发布。