DeviceReleaseReporter

public final class DeviceReleaseReporter
extends Object implements ICommandScheduler.IScheduledInvocationListener

java.lang.Object
   ↳ com.android.tradefed.device.internal.DeviceReleaseReporter


设备发布报告程序,用于处理与父进程的通信,以确定要发布的设备。

摘要

公共构造函数

DeviceReleaseReporter()

公共方法

void invocationComplete(IInvocationContext iInvocationContext, Map<ITestDeviceFreeDeviceState> map)

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

void invocationInitiated(IInvocationContext context)

当调用开始时进行回调。

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

ICommandOptions.earlyDeviceRelease() 关联的回调,用于在完成设备操作后释放设备。

公共构造函数

DeviceReleaseReporter

public DeviceReleaseReporter ()

公共方法

invocationComplete

public void invocationComplete (IInvocationContext iInvocationContext, 
                Map<ITestDeviceFreeDeviceState> map)

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

invocationInitiated

public void invocationInitiated (IInvocationContext context)

调用开始时的回调。此方法在提取任何 build 之前调用。

releaseDevices

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

ICommandOptions.earlyDeviceRelease() 关联的回调,用于在完成设备操作后释放设备。