/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDeviceMutator.java | 29 public void setIDevice(ITestDevice testDevice, IDevice device) { in setIDevice() argument 30 ((IManagedTestDevice)testDevice).setIDevice(device); in setIDevice() 38 public void setFastbootEnabled(ITestDevice testDevice, boolean fastbootEnabled) { in setFastbootEnabled() argument 39 ((IManagedTestDevice)testDevice).setFastbootEnabled(fastbootEnabled); in setFastbootEnabled()
|
D | ManagedTestDeviceFactory.java | 65 IManagedTestDevice testDevice = null; in createDevice() local 68 testDevice = new RemoteAndroidDevice(idevice, in createDevice() 71 testDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in createDevice() 74 testDevice = new NativeDevice(idevice, in createDevice() 79 testDevice = new TestDevice(idevice, in createDevice() 85 testDevice.setDeviceState(TestDeviceState.FASTBOOT); in createDevice() 87 testDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); in createDevice() 89 testDevice.setFastbootEnabled(mFastbootEnabled); in createDevice() 90 testDevice.setFastbootPath(mDeviceManager.getFastbootPath()); in createDevice() 91 return testDevice; in createDevice()
|
D | DeviceManager.java | 372 private void checkAndAddAvailableDevice(final IManagedTestDevice testDevice) { in checkAndAddAvailableDevice() argument 373 if (mGlobalDeviceFilter != null && !mGlobalDeviceFilter.matches(testDevice.getIDevice())) { in checkAndAddAvailableDevice() 375 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 376 mManagedDeviceList.handleDeviceEvent(testDevice, DeviceEvent.AVAILABLE_CHECK_IGNORED); in checkAndAddAvailableDevice() 380 final String threadName = String.format("Check device %s", testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 384 CLog.d("checking new '%s' '%s' responsiveness", testDevice.getClass().getName(), in checkAndAddAvailableDevice() 385 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 386 if (testDevice.getMonitor().waitForDeviceShell(CHECK_WAIT_DEVICE_AVAIL_MS)) { in checkAndAddAvailableDevice() 387 DeviceEventResponse r = mManagedDeviceList.handleDeviceEvent(testDevice, in checkAndAddAvailableDevice() 391 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() [all …]
|
D | ITestDeviceMutator.java | 34 public void setIDevice(ITestDevice testDevice, IDevice device); in setIDevice() argument 41 public void setFastbootEnabled(ITestDevice testDevice, boolean fastbootEnabled); in setFastbootEnabled() argument
|
D | TopHelper.java | 193 public TopHelper(ITestDevice testDevice, int delay) { in TopHelper() argument 195 mTestDevice = testDevice; in TopHelper() 204 public TopHelper(ITestDevice testDevice) { in TopHelper() argument 205 this(testDevice, 1); in TopHelper()
|
D | FileEntryWrapper.java | 41 FileEntryWrapper(NativeDevice testDevice, FileEntry entry) { in FileEntryWrapper() argument 42 mTestDevice = testDevice; in FileEntryWrapper()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | GTest.java | 443 String root, ITestDevice testDevice, ITestInvocationListener listener) in doRunAllTestsInSubdirectory() argument 445 if (testDevice.isDirectory(root)) { in doRunAllTestsInSubdirectory() 447 for (String child : testDevice.getChildren(root)) { in doRunAllTestsInSubdirectory() 448 doRunAllTestsInSubdirectory(root + "/" + child, testDevice, listener); in doRunAllTestsInSubdirectory() 457 CLog.i("Running gtest %s %s on %s", root, flags, testDevice.getSerialNumber()); in doRunAllTestsInSubdirectory() 459 runTestXml(testDevice, root, flags, listener); in doRunAllTestsInSubdirectory() 461 runTest(testDevice, resultParser, root, flags); in doRunAllTestsInSubdirectory() 519 protected void executeCommandByScript(final ITestDevice testDevice, final String cmd, in executeCommandByScript() argument 522 testDevice.pushString(String.format("#!/bin/bash\n%s", cmd), tmpFileDevice); in executeCommandByScript() 524 testDevice.executeShellCommand(String.format("chmod 755 %s", tmpFileDevice)); in executeCommandByScript() [all …]
|
D | GoogleBenchmarkTest.java | 142 private void doRunAllTestsInSubdirectory(String root, ITestDevice testDevice, in doRunAllTestsInSubdirectory() argument 144 if (testDevice.isDirectory(root)) { in doRunAllTestsInSubdirectory() 146 for (String child : testDevice.getChildren(root)) { in doRunAllTestsInSubdirectory() 147 doRunAllTestsInSubdirectory(root + "/" + child, testDevice, listener); in doRunAllTestsInSubdirectory() 156 testDevice.executeShellCommand(String.format("chmod 755 %s", root)); in doRunAllTestsInSubdirectory() 163 int numTests = countExpectedTests(testDevice, root); in doRunAllTestsInSubdirectory() 177 testDevice.executeShellCommand(cmd, outputCollector, in doRunAllTestsInSubdirectory() 190 private int countExpectedTests(ITestDevice testDevice, String fullBinaryPath) in countExpectedTests() argument 192 String exec = testDevice.executeShellCommand(String.format("file %s", fullBinaryPath)); in countExpectedTests() 199 String list_output = testDevice.executeShellCommand(cmd); in countExpectedTests()
|
D | NativeStressTest.java | 148 IFileEntry rootEntry, ITestDevice testDevice, ITestInvocationListener listener) in doRunAllTestsInSubdirectory() argument 154 doRunAllTestsInSubdirectory(childEntry, testDevice, listener); in doRunAllTestsInSubdirectory() 164 testDevice.executeShellCommand(String.format("chmod 755 %s", fullPath)); in doRunAllTestsInSubdirectory() 176 testDevice.executeShellCommand(String.format("%s -s %d -e %d", fullPath, in doRunAllTestsInSubdirectory()
|
D | NativeBenchmarkTest.java | 171 IFileEntry rootEntry, ITestDevice testDevice, ITestInvocationListener listener) in doRunAllTestsInSubdirectory() argument 177 doRunAllTestsInSubdirectory(childEntry, testDevice, listener); in doRunAllTestsInSubdirectory() 190 testDevice.executeShellCommand(String.format("chmod 755 %s", fullPath)); in doRunAllTestsInSubdirectory() 207 testDevice.executeShellCommand(cmd, resultParser, in doRunAllTestsInSubdirectory()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationContext.java | 89 public void addAllocatedDevice(String devicename, ITestDevice testDevice) { in addAllocatedDevice() argument 90 mNameAndDeviceMap.put(devicename, testDevice); in addAllocatedDevice() 93 mAllocatedDeviceAndBuildMap.put(testDevice, mNameAndBuildinfoMap.get(devicename)); in addAllocatedDevice() 142 for (ITestDevice testDevice : mNameAndDeviceMap.values()) { in getSerials() 143 listSerials.add(testDevice.getSerialNumber()); in getSerials() 187 public IBuildInfo getBuildInfo(ITestDevice testDevice) { in getBuildInfo() argument 188 return mAllocatedDeviceAndBuildMap.get(testDevice); in getBuildInfo() 243 for (ITestDevice testDevice : mNameAndDeviceMap.values()) { in getDeviceBySerial() 244 if (testDevice.getSerialNumber().equals(serial)) { in getDeviceBySerial() 245 return testDevice; in getDeviceBySerial()
|
D | IInvocationContext.java | 54 public void addAllocatedDevice(String deviceName, ITestDevice testDevice); in addAllocatedDevice() argument 115 public IBuildInfo getBuildInfo(ITestDevice testDevice); in getBuildInfo() argument
|
D | TestInvocation.java | 524 for (ITestDevice testDevice : context.getDevices()) { in logDeviceBatteryLevel() 525 if (testDevice == null) { in logDeviceBatteryLevel() 528 IDevice device = testDevice.getIDevice(); in logDeviceBatteryLevel() 535 context.getBuildInfo(testDevice) in logDeviceBatteryLevel() 539 testDevice.getSerialNumber(), in logDeviceBatteryLevel() 547 CLog.v("Failed to get battery level for %s", testDevice.getSerialNumber()); in logDeviceBatteryLevel()
|
/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/ |
D | FlatlandTest.java | 109 public void setDevice(ITestDevice testDevice) { in setDevice() argument 110 mTestDevice = testDevice; in setDevice()
|
D | ImageProcessingTest.java | 141 public void setDevice(ITestDevice testDevice) { in setDevice() argument 142 mTestDevice = testDevice; in setDevice()
|
D | UiPerformanceTest.java | 79 public void setDevice(ITestDevice testDevice) { in setDevice() argument 80 mTestDevice = testDevice; in setDevice()
|
D | OpenGlPerformanceTest.java | 332 public void setDevice(ITestDevice testDevice) { in setDevice() argument 333 mTestDevice = testDevice; in setDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceManagerTest.java | 486 IManagedTestDevice testDevice = EasyMock.createNiceMock(IManagedTestDevice.class); in testFreeDevice_noop() local 488 EasyMock.expect(testDevice.getIDevice()).andReturn(mockIDevice); in testFreeDevice_noop() 491 replayMocks(testDevice, mockIDevice); in testFreeDevice_noop() 493 manager.freeDevice(testDevice, FreeDeviceState.AVAILABLE); in testFreeDevice_noop() 494 verifyMocks(testDevice, mockIDevice); in testFreeDevice_noop() 933 IManagedTestDevice testDevice = new TestDevice(mMockIDevice, mMockStateMonitor, null); in testFreeDevice_unavailable() local 942 return testDevice; in testFreeDevice_unavailable() 997 IManagedTestDevice testDevice = new TestDevice(mMockIDevice, mMockStateMonitor, null); in testFreeDevice_unknown() local 1006 return testDevice; in testFreeDevice_unknown() 1061 IManagedTestDevice testDevice = new TestDevice(mMockIDevice, mMockStateMonitor, null); in testFreeDevice_unknown_subName() local [all …]
|
D | NativeDeviceTest.java | 1252 TestableAndroidNativeDevice testDevice = in testIsNewer() local 1271 assertTrue(testDevice.isNewer(localFile, remoteFile)); in testIsNewer() 1283 TestableAndroidNativeDevice testDevice = in testIsNewer_timeOffset() local 1303 assertTrue(testDevice.isNewer(localFile, remoteFile)); in testIsNewer_timeOffset() 1316 TestableAndroidNativeDevice testDevice = in testIsNewer_fails() local 1335 assertFalse(testDevice.isNewer(localFile, remoteFile)); in testIsNewer_fails() 1499 NativeDevice testDevice = new NativeDevice(mMockIDevice, in testDoReboot() local 1511 testDevice.doReboot(); in testDoReboot() 1519 NativeDevice testDevice = new NativeDevice(mMockIDevice, in testDoReboot_skipped() local 1533 testDevice.doReboot(); in testDoReboot_skipped() [all …]
|
D | TestDeviceTest.java | 426 TestDevice testDevice = new TestDevice(mMockIDevice, mMockStateMonitor, mMockDvcMonitor) { in testRecoverDevice_ThrowException() local 432 testDevice.setRecovery(new IDeviceRecovery() { in testRecoverDevice_ThrowException() 452 testDevice.setRecoveryMode(RecoveryMode.AVAILABLE); in testRecoverDevice_ThrowException() 459 testDevice.recoverDevice(); in testRecoverDevice_ThrowException()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | BugreportCollector.java | 213 public BugreportCollector(ITestInvocationListener listener, ITestDevice testDevice) { in BugreportCollector() argument 217 if (testDevice == null) { in BugreportCollector() 221 mTestDevice = testDevice; in BugreportCollector()
|
/tools/tradefederation/core/prod-tests/src/com/android/wireless/tests/ |
D | WifiStressTest.java | 199 public void setDevice(ITestDevice testDevice) { in setDevice() argument 200 mTestDevice = testDevice; in setDevice()
|