Home
last modified time | relevance | path

Searched refs:ITestDevice (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/tools/tradefederation/core/src/com/android/tradefed/targetprep/companion/
DCompanionDeviceTracker.java24 import com.android.tradefed.device.ITestDevice;
38 private Map<ITestDevice, ITestDevice> mDeviceMapping = null;
41 mDeviceMapping = new HashMap<ITestDevice, ITestDevice>(); in CompanionDeviceTracker()
61 public ITestDevice allocateCompanionDevice(ITestDevice device, DeviceSelectionOptions opt) { in allocateCompanionDevice()
62 ITestDevice companion = getDeviceManager().allocateDevice(opt); in allocateCompanionDevice()
80 public void freeCompanionDevice(ITestDevice device) { in freeCompanionDevice()
85 ITestDevice companion = mDeviceMapping.remove(device); in freeCompanionDevice()
101 public ITestDevice getCompanionDevice(ITestDevice device) { in getCompanionDevice()
DCompanionRunCommandTargetPreparer.java23 import com.android.tradefed.device.ITestDevice;
35 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp()
38 ITestDevice companion = CompanionDeviceTracker.getInstance().getCompanionDevice(device); in setUp()
50 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
53 ITestDevice companion = CompanionDeviceTracker.getInstance().getCompanionDevice(device); in tearDown()
DCompanionAwarePreparer.java20 import com.android.tradefed.device.ITestDevice;
40 protected ITestDevice getCompanion(ITestDevice primary) throws TargetSetupError { in getCompanion()
41 ITestDevice companionDevice = getCompanionDeviceTracker().getCompanionDevice(primary); in getCompanion()
DCompanionAllocator.java22 import com.android.tradefed.device.ITestDevice;
42 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp()
44 ITestDevice companionDevice = getCompanionDeviceTracker().allocateCompanionDevice( in setUp()
58 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
DCompanionTestAppInstallSetup.java24 import com.android.tradefed.device.ITestDevice;
38 ITestDevice mCompanion;
44 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp()
59 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/device/
DIDeviceManager.java59 public ITestDevice allocateDevice(); in allocateDevice()
68 public ITestDevice allocateDevice(IDeviceSelection options); in allocateDevice()
78 public ITestDevice forceAllocateDevice(String serial); in forceAllocateDevice()
89 public void freeDevice(ITestDevice device, FreeDeviceState state); in freeDevice()
102 void launchEmulator(ITestDevice device, long bootTimeout, IRunUtil runUtil, in launchEmulator()
114 public void killEmulator(ITestDevice device) throws DeviceNotAvailableException; in killEmulator()
130 public ITestDevice connectToTcpDevice(String ipAndPort); in connectToTcpDevice()
141 public boolean disconnectFromTcpDevice(ITestDevice tcpDevice); in disconnectFromTcpDevice()
153 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp()
/tools/tradefederation/core/src/com/android/tradefed/command/remote/
DDeviceTracker.java18 import com.android.tradefed.device.ITestDevice;
49 private Map<String, ITestDevice> mAllocatedDeviceMap = new Hashtable<String, ITestDevice>();
58 public void allocateDevice(ITestDevice d) { in allocateDevice()
68 public ITestDevice freeDevice(String serial) { in freeDevice()
78 public Collection<ITestDevice> freeAll() { in freeAll()
79 Collection<ITestDevice> devices = new ArrayList<ITestDevice>(mAllocatedDeviceMap.values()); in freeAll()
91 public ITestDevice getDeviceForSerial(String serial) { in getDeviceForSerial()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationContext.java22 import com.android.tradefed.device.ITestDevice;
23 import com.android.tradefed.device.ITestDevice.RecoveryMode;
44 private transient Map<ITestDevice, IBuildInfo> mAllocatedDeviceAndBuildMap;
46 private transient Map<String, ITestDevice> mNameAndDeviceMap;
70 mAllocatedDeviceAndBuildMap = new LinkedHashMap<ITestDevice, IBuildInfo>(); in InvocationContext()
72 mNameAndDeviceMap = new LinkedHashMap<String, ITestDevice>(); in InvocationContext()
89 public void addAllocatedDevice(String devicename, ITestDevice testDevice) { in addAllocatedDevice()
101 public void addAllocatedDevice(Map<String, ITestDevice> deviceWithName) { in addAllocatedDevice()
104 for (Entry<String, ITestDevice> entry : deviceWithName.entrySet()) { in addAllocatedDevice()
116 public Map<ITestDevice, IBuildInfo> getDeviceBuildMap() { in getDeviceBuildMap()
[all …]
DIInvocationContext.java20 import com.android.tradefed.device.ITestDevice;
21 import com.android.tradefed.device.ITestDevice.RecoveryMode;
54 public void addAllocatedDevice(String deviceName, ITestDevice testDevice); in addAllocatedDevice()
62 public void addAllocatedDevice(Map<String, ITestDevice> deviceWithName); in addAllocatedDevice()
67 public Map<ITestDevice, IBuildInfo> getDeviceBuildMap(); in getDeviceBuildMap()
72 public List<ITestDevice> getDevices(); in getDevices()
92 public ITestDevice getDevice(String deviceName); in getDevice()
98 public ITestDevice getDeviceBySerial(String serial); in getDeviceBySerial()
104 public String getDeviceName(ITestDevice device); in getDeviceName()
115 public IBuildInfo getBuildInfo(ITestDevice testDevice); in getBuildInfo()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DMockDeviceManager.java20 import com.android.tradefed.device.ITestDevice.RecoveryMode;
39 ConditionPriorityBlockingQueue<ITestDevice> mAvailableDeviceQueue =
40 new ConditionPriorityBlockingQueue<ITestDevice>();
66 ITestDevice mockDevice = EasyMock.createNiceMock(ITestDevice.class); in setNumDevicesInternal()
92 ITestDevice mockDevice = new TestDevice(mockIDevice, stateMonitor, allocationMonitor) { in setNumDevicesCustomRealNoRecovery()
108 ITestDevice mockDevice = EasyMock.createNiceMock(ITestDevice.class); in setNumDevicesCustom()
132 ITestDevice mockDevice = EasyMock.createNiceMock(ITestDevice.class); in setNumDevicesStub()
144 public void addDevice(ITestDevice mockDevice) { in addDevice()
154 private static class TestDeviceMatcher implements IMatcher<ITestDevice> {
168 public boolean matches(ITestDevice element) { in matches()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/clockwork/
DClockworkUtils.java21 import com.android.tradefed.device.ITestDevice;
35 public ITestDevice setUpMultiDevice( in setUpMultiDevice()
36 Map<ITestDevice, IBuildInfo> deviceInfos, List<ITestDevice> deviceList) { in setUpMultiDevice() argument
37 ITestDevice companion = null; in setUpMultiDevice()
42 for (Map.Entry<ITestDevice, IBuildInfo> entry : deviceInfos.entrySet()) { in setUpMultiDevice()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBluetoothUtils.java21 import com.android.tradefed.device.ITestDevice;
71 public static String runBluetoothInstrumentation(ITestDevice device, String command) in runBluetoothInstrumentation()
81 public static boolean runBluetoothInstrumentationWithRetry(ITestDevice device, String command) in runBluetoothInstrumentationWithRetry()
98 public static boolean unpairWithRetry(ITestDevice device) in unpairWithRetry()
110 public static String getBluetoothMac(ITestDevice device) throws DeviceNotAvailableException { in getBluetoothMac()
128 public static boolean enable(ITestDevice device) in enable()
140 public static boolean disable(ITestDevice device) in disable()
152 public static Set<String> getBondedDevices(ITestDevice device) in getBondedDevices()
176 private static boolean isGoldAndAbove(ITestDevice device) throws DeviceNotAvailableException { in isGoldAndAbove()
192 public static boolean enableBtsnoopLogging(ITestDevice device) in enableBtsnoopLogging()
[all …]
DCircularAtraceUtil.java19 import com.android.tradefed.device.ITestDevice;
46 …private static HashMap<ITestDevice, Integer> deviceBufferMap = new HashMap<ITestDevice, Integer>();
54 public static void startTrace(ITestDevice device, List<String> tags, int bufferSizeMB) throws in startTrace()
81 …public static FileInputStreamSource endTrace(ITestDevice device) throws DeviceNotAvailableExceptio… in endTrace()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/multi/
DHelloWorldMultiTargetPreparer.java20 import com.android.tradefed.device.ITestDevice;
36 Map<ITestDevice, IBuildInfo> deviceBuildInfo = context.getDeviceBuildMap(); in setUp()
38 ITestDevice device = context.getDevices().get(0); in setUp()
44 for (Entry<ITestDevice, IBuildInfo> entry : deviceBuildInfo.entrySet()) { in setUp()
56 Map<ITestDevice, IBuildInfo> deviceBuildInfo = context.getDeviceBuildMap(); in tearDown()
57 for (Entry<ITestDevice, IBuildInfo> entry : deviceBuildInfo.entrySet()) { in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DIDeviceTest.java18 import com.android.tradefed.device.ITestDevice;
30 public void setDevice(ITestDevice device); in setDevice()
37 public ITestDevice getDevice(); in getDevice()
DDeviceTestSuite.java19 import com.android.tradefed.device.ITestDevice;
31 private ITestDevice mDevice = null;
45 public ITestDevice getDevice() { in getDevice()
53 public void setDevice(ITestDevice device) { in setDevice()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFastbootDeviceFlasher.java22 import com.android.tradefed.device.ITestDevice;
138 public void flash(ITestDevice device, IDeviceBuildInfo deviceBuild) throws TargetSetupError, in flash()
177 protected void preFlashSetup(ITestDevice device, IDeviceBuildInfo deviceBuild) in preFlashSetup()
188 protected void handleUserDataFlashing(ITestDevice device, IDeviceBuildInfo deviceBuild) in handleUserDataFlashing()
207 protected void flashPartition(ITestDevice device, File imgFile, String partition) in flashPartition()
220 protected void wipePartition(ITestDevice device, String partition) in wipePartition()
234 protected boolean hasPartition(ITestDevice device, String partition) in hasPartition()
257 protected void downloadFlashingResources(ITestDevice device, IDeviceBuildInfo localBuild) in downloadFlashingResources()
303 protected void verifyRequiredBoards(ITestDevice device, IFlashingResourcesParser resourceParser, in verifyRequiredBoards()
365 protected boolean checkAndFlashBootloader(ITestDevice device, IDeviceBuildInfo deviceBuild) in checkAndFlashBootloader()
[all …]
DRestartSystemServerTargetPreparer.java22 import com.android.tradefed.device.ITestDevice;
37 private void restartSystemServer(ITestDevice device) throws DeviceNotAvailableException { in restartSystemServer()
45 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp()
54 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
DDeviceWiper.java23 import com.android.tradefed.device.ITestDevice;
37 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp()
53 private void doFormat(ITestDevice device) throws DeviceNotAvailableException, TargetSetupError { in doFormat()
62 private void doErase(ITestDevice device) throws DeviceNotAvailableException, TargetSetupError { in doErase()
67 private void performFastbootOp(ITestDevice device, String op, String partition) in performFastbootOp()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DInvocationContextTest.java23 import com.android.tradefed.device.ITestDevice;
52 ITestDevice device1 = EasyMock.createMock(ITestDevice.class); in testGetDeviceName()
53 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testGetDeviceName()
97 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testSerialize()
DShardMasterResultForwarderTest.java24 import com.android.tradefed.device.ITestDevice;
68 main.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo()
74 shard1.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo()
80 shard2.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo()
102 main.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
107 main.addAllocatedDevice("device2", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
113 shard1.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
118 shard1.addAllocatedDevice("device2", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
124 shard2.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
129 shard2.addAllocatedDevice("device2", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/tradefed/
DHelloWorldMultiDevices.java20 import com.android.tradefed.device.ITestDevice;
45 private Map<ITestDevice, IBuildInfo> mDevicesInfos;
49 public void setDeviceInfos(Map<ITestDevice, IBuildInfo> deviceInfos) { in setDeviceInfos() argument
62 for (Entry<ITestDevice, IBuildInfo> entry : mDevicesInfos.entrySet()) { in run()
69 for (ITestDevice device : mContext.getDevices()) { in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DDeviceMetricDataTest.java23 import com.android.tradefed.device.ITestDevice;
41 private ITestDevice mDevice1;
46 mDevice1 = mock(ITestDevice.class); in setUp()
88 mContext.addAllocatedDevice("device2", mock(ITestDevice.class)); in testMultiDeviceAdd()
107 ITestDevice device2 = mock(ITestDevice.class); in testMultiDeviceAdd_forDevice()
/tools/tradefederation/core/prod-tests/tests/src/com/android/monkey/
DMonkeyBaseTest.java19 import com.android.tradefed.device.ITestDevice;
66 ITestDevice mockDevice = EasyMock.createMock(ITestDevice.class); in testUptime()
79 ITestDevice mockDevice = EasyMock.createMock(ITestDevice.class); in testUptime_fail()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DISystemStatusChecker.java19 import com.android.tradefed.device.ITestDevice;
48 public default StatusCheckerResult preExecutionCheck(ITestDevice device) in preExecutionCheck()
62 public default StatusCheckerResult postExecutionCheck(ITestDevice device) in postExecutionCheck()

12345678910>>...14