/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 434 public String getSerialNumber() { in getSerialNumber() method in NativeDevice 435 return getIDevice().getSerialNumber(); in getSerialNumber() 455 getSerialNumber()); in internalGetProperty() 460 description, getSerialNumber()); in internalGetProperty() 475 CLog.d("Device %s is not online cannot get property %s.", getSerialNumber(), name); in getProperty() 591 getSerialNumber()), in internalGetProductType() 592 getSerialNumber(), in internalGetProductType() 689 CLog.w("Could not get device %s build id.", getSerialNumber()); in getBuildId() 707 CLog.w("Could not get device %s build flavor.", getSerialNumber()); in getBuildFlavor() 795 command, getSerialNumber(), output)); in executeShellCommand() [all …]
|
D | WaitDeviceRecovery.java | 126 INITIAL_PAUSE_TIME, monitor.getSerialNumber())); in recoverDevice() 138 monitor.getSerialNumber(), state)); in recoverDevice() 141 monitor.getSerialNumber(), "reboot"); in recoverDevice() 177 "Device still not online after successful recovery", monitor.getSerialNumber()); in getDeviceAfterRecovery() 199 device.getSerialNumber(), in checkMinBatteryLevel() 204 level, mRequiredMinBattery), device.getSerialNumber()); in checkMinBatteryLevel() 209 device.getSerialNumber()); in checkMinBatteryLevel() 222 "Device %s unresponsive. Rebooting...", monitor.getSerialNumber())); in handleDeviceUnresponsive() 235 String.format("Device %s is online but unresponsive", monitor.getSerialNumber()), in handleDeviceUnresponsive() 236 monitor.getSerialNumber(), in handleDeviceUnresponsive() [all …]
|
D | DeviceManager.java | 437 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 442 final String threadName = String.format("Check device %s", testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 447 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 453 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 456 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 463 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 673 device.getSerialNumber(), r.allocationState.toString()); in freeDevice() 686 ideviceToReturn = new StubDevice(ideviceToReturn.getSerialNumber(), true); in freeDevice() 703 CLog.e("Device %s was in unexpected state %s when freeing", device.getSerialNumber(), in freeDevice() 729 DEVICE_LIST_PATTERN, managedDevice.getSerialNumber())); in getEventFromFree() [all …]
|
D | NativeDeviceStateMonitor.java | 130 public String getSerialNumber() { in getSerialNumber() method in NativeDeviceStateMonitor 131 return getIDevice().getSerialNumber(); in getSerialNumber() 178 getSerialNumber()); in waitForDeviceShell() 192 CLog.e("%s failed on: %s", cmd, getSerialNumber()); in waitForDeviceShell() 195 CLog.e("%s failed on %s: timeout", cmd, getSerialNumber()); in waitForDeviceShell() 201 CLog.w("Device %s shell is unresponsive", getSerialNumber()); in waitForDeviceShell() 250 CLog.i("Waiting %d ms for device %s boot complete", waitTime, getSerialNumber()); in waitForBootComplete() 261 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForBootComplete() 265 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForBootComplete() 270 CLog.w("Device %s did not boot after %d ms", getSerialNumber(), waitTime); in waitForBootComplete() [all …]
|
D | RemoteAndroidDevice.java | 70 mInitialSerial = getSerialNumber(); in RemoteAndroidDevice() 134 if (!checkSerialFormatValid(getSerialNumber())) { in getHostName() 137 + "should look like <hostname>:<port>", getSerialNumber())); in getHostName() 139 return getSerialNumber().split(":")[0]; in getHostName() 146 if (!checkSerialFormatValid(getSerialNumber())) { in getPortNum() 149 + "should look like <hostname>:<port>", getSerialNumber())); in getPortNum() 151 return getSerialNumber().split(":")[1]; in getPortNum() 256 getSerialNumber(), in waitForAdbConnect()
|
D | DeviceStateMonitor.java | 46 waitTime, getSerialNumber()); in waitForPmResponsive() 60 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForPmResponsive() 62 CLog.i("%s on device %s failed: timeout", cmd, getSerialNumber()); in waitForPmResponsive() 64 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForPmResponsive() 66 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForPmResponsive() 71 CLog.w("Device %s package manager is unresponsive", getSerialNumber()); in waitForPmResponsive()
|
D | BackgroundDeviceAction.java | 87 mTestDevice.getSerialNumber()); in run() 95 CLog.d("Starting %s for %s.", mDescriptor, mTestDevice.getSerialNumber()); in run() 117 mDescriptor, mTestDevice.getSerialNumber()); in waitForDeviceRecovery() 146 CLog.d("Waiting for device %s online before starting.", mTestDevice.getSerialNumber()); in blockUntilOnlineNoThrow() 153 CLog.d("Device %s now online.", mTestDevice.getSerialNumber()); in blockUntilOnlineNoThrow()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceStateMonitorTest.java | 54 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in setUp() 98 EasyMock.expect(mockDevice.getSerialNumber()).andStubReturn("2345asdf"); in testIsAdbTcp_usb() 110 EasyMock.expect(mockDevice.getSerialNumber()).andStubReturn("192.168.1.1:5555"); in testIsAdbTcp_tcp() 163 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForShellAvailable() 190 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForShell_becomeAvailable() 231 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForShell_timeout() 336 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForPmResponsive() 364 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForPm_becomeResponsive() 406 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForPm_timeout() 438 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testgetMountPoint() [all …]
|
D | MockDeviceManager.java | 67 EasyMock.expect(mockDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesInternal() 69 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesInternal() 88 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesCustomRealNoRecovery() 109 EasyMock.expect(mockDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesCustom() 111 EasyMock.expect(mockIDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesCustom() 133 EasyMock.expect(mockDevice.getSerialNumber()).andReturn("serial" + i).anyTimes(); in setNumDevicesStub() 204 mDvcMon.notifyDeviceStateChange(device.getSerialNumber(), in freeDevice() 266 mDvcMon.notifyDeviceStateChange(d.getSerialNumber(), DeviceAllocationState.Available, in allocateDevice()
|
D | DeviceManagerTest.java | 202 EasyMock.expect(mMockIDevice.getSerialNumber()).andStubReturn(DEVICE_SERIAL); in setUp() 203 EasyMock.expect(mMockStateMonitor.getSerialNumber()).andStubReturn(DEVICE_SERIAL); in setUp() 219 EasyMock.expect(mMockTestDevice.getSerialNumber()).andStubAnswer(new IAnswer<String>() { in setUp() 222 return capturedIDevice.getValue().getSerialNumber(); in setUp() 358 String serial = mMockTestDevice.getSerialNumber(); in testAllocateDevice_match_temporary() 589 EasyMock.expect(newMockDevice.getSerialNumber()).andReturn(DEVICE_SERIAL).anyTimes(); in testSetIDevice() 635 excludeFilter.addExcludeSerial(mMockIDevice.getSerialNumber()); in testInit_excludeDevice() 647 EasyMock.expect(excludedDevice.getSerialNumber()).andStubReturn("excluded"); in testInit_includeDevice() 662 mDeviceSelections.addSerial(mMockIDevice.getSerialNumber()); in testInit_includeDevice() 702 EasyMock.expect(newDevice.getSerialNumber()).andReturn(DEVICE_SERIAL).anyTimes(); in testSetState_offline() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | RuntimeRestartCollector.java | 105 mExistingTimestamps.put(device.getSerialNumber(), existingTimestamps); in onTestRunStart() 110 device.getSerialNumber(), e); in onTestRunStart() 116 device.getSerialNumber(), in onTestRunStart() 123 device.getSerialNumber(), e); in onTestRunStart() 146 device.getSerialNumber(), e); in onTestRunEnd() 149 if (!mExistingTimestamps.containsKey(device.getSerialNumber())) { in onTestRunEnd() 150 CLog.e("No prior state recorded for device %s.", device.getSerialNumber()); in onTestRunEnd() 152 currentRunMetrics, updatedTimestamps, device.getSerialNumber()); in onTestRunEnd() 156 Iterables.getLast(mExistingTimestamps.get(device.getSerialNumber())); in onTestRunEnd() 162 device.getSerialNumber()); in onTestRunEnd() [all …]
|
D | RebootReasonCollector.java | 59 device.getSerialNumber(), in onTestRunStart() 66 device.getSerialNumber(), e.toString()); in onTestRunStart() 76 if (!mDeviceConfigIds.containsKey(device.getSerialNumber())) { in onTestRunEnd() 77 CLog.e("No config ID is associated with device %s.", device.getSerialNumber()); in onTestRunEnd() 80 long configId = mDeviceConfigIds.get(device.getSerialNumber()); in onTestRunEnd() 86 device.getSerialNumber(), e.toString()); in onTestRunEnd() 121 device.getSerialNumber(), e.toString()); in onTestRunEnd()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceSetup.java | 431 CLog.i("Performing setup on %s", device.getSerialNumber()); in setUp() 435 device.getSerialNumber()), device.getDeviceDescriptor()); in setUp() 472 CLog.i("Performing teardown on %s", device.getSerialNumber()); in tearDown() 486 device.getSerialNumber()); in tearDown() 488 CLog.w("Failed to disconnect from wifi network on %s", device.getSerialNumber()); in tearDown() 718 mSetProps.toString(), device.getSerialNumber()), in changeSystemProps() 743 device.getSerialNumber()), device.getDeviceDescriptor()); in changeSystemProps() 747 CLog.i("Rebooting %s due to system property change", device.getSerialNumber()); in changeSystemProps() 805 "must be API 22+", device.getSerialNumber()), device.getDeviceDescriptor()); in changeSettings() 921 mWifiSsid, device.getSerialNumber()), in connectWifi() [all …]
|
D | FastbootDeviceFlasher.java | 145 CLog.i("Flashing device %s with build %s", device.getSerialNumber(), in flash() 288 device.getSerialNumber()), in downloadFlashingResources() 289 device.getSerialNumber(), in downloadFlashingResources() 328 device.getSerialNumber(), deviceProductType, in verifyRequiredBoards() 504 CLog.i("Wiping cache on %s", device.getSerialNumber()); in wipeCache() 510 CLog.d("Skipping cache wipe on %s", device.getSerialNumber()); in wipeCache() 526 CLog.i("Flashing %s with userdata %s", device.getSerialNumber(), in flashUserData() 535 CLog.i("Wiping userdata %s", device.getSerialNumber()); in flashUserData() 557 CLog.d("Skipping userdata flash for %s", device.getSerialNumber()); in flashUserData() 580 CLog.i("Flashing %s with userdata %s", device.getSerialNumber(), userdataImg); in flashUserDataFromDeviceImageFile() [all …]
|
D | DefaultTestsZipInstaller.java | 115 device.getSerialNumber())); in pushTestsZipOntoData() 165 + device.getSerialNumber()); in doDeleteData() 175 device.getSerialNumber()), device.getDeviceDescriptor()); in doDeleteData() 181 FileListingService.DIRECTORY_DATA, device.getSerialNumber()), in doDeleteData() 205 fullEscapedPath, device.getSerialNumber(), i, RM_ATTEMPTS); in deleteDir()
|
D | InstallApexModuleTargetPreparer.java | 145 device.getSerialNumber()), in setUp() 160 listApexInfo(failToActivateApex).toString(), device.getSerialNumber()), in setUp() 170 CLog.e("Device %s is not available. Teardown() skipped.", device.getSerialNumber()); in tearDown() 221 "Failed to generate device spec file on %s.", device.getSerialNumber()), in initDeviceSpecFilePath() 400 moduleFilenames.toString(), device.getSerialNumber(), log), in installTrain() 507 device.getSerialNumber(), installCmd.toString(), log), in installMultipleModuleUsingBundletool()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | AppSetup.java | 97 CLog.i("Performing setup on %s", device.getSerialNumber()); in setUp() 105 "Failed to uninstall apps on %s", device.getSerialNumber()), in setUp() 106 device.getSerialNumber()); in setUp() 128 apkFile.toString(), device.getSerialNumber(), in setUp() 144 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp() 158 CLog.d("About to run setup command on device %s: %s", device.getSerialNumber(), cmd); in setUp() 222 "Failed to uninstall apps on %s", device.getSerialNumber()), in tearDown() 223 device.getSerialNumber()); in tearDown() 243 CLog.w("Uninstall of %s on %s failed: %s", pkg, device.getSerialNumber(), in uninstallAllApps()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DeviceBatteryLevelChecker.java | 179 mTestDevice.getSerialNumber()); in runTest() 187 "to level %d", batteryLevel, mMaxBattery, mTestDevice.getSerialNumber(), in runTest() 192 mMaxBattery, mTestDevice.getSerialNumber()); in runTest() 198 CLog.d("Rebooting device %s prior to holding", mTestDevice.getSerialNumber()); in runTest() 224 mTestDevice.getSerialNumber(), batteryLevel); in runTest() 252 mTestDevice.getSerialNumber(), batteryLevel); in runBatteryCharging() 267 mTestDevice.getSerialNumber()); in runBatteryCharging() 274 "%.02f minutes.", batteryLevel, newLevel, mTestDevice.getSerialNumber(), in runBatteryCharging() 277 CLog.v("Battery level for device %s is currently %d", mTestDevice.getSerialNumber(), in runBatteryCharging()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/companion/ |
D | CompanionDeviceTracker.java | 66 device.getSerialNumber(), mDeviceMapping.get(companion).getSerialNumber()); in allocateCompanionDevice() 69 companion.getSerialNumber(), device.getSerialNumber()); in allocateCompanionDevice() 82 CLog.w("primary device %s has no tracked companion device", device.getSerialNumber()); in freeCompanionDevice() 93 companion.getSerialNumber(), device.getSerialNumber()); in freeCompanionDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationExecution.java | 145 info.setDeviceSerial(device.getSerialNumber()); in fetchBuild() 152 device.getSerialNumber()); in fetchBuild() 306 CLog.d("Starting setup for device: '%s'", device.getSerialNumber()); in runPreparationOnDevice() 322 CLog.d("starting preparer '%s' on device: '%s'", preparer, device.getSerialNumber()); in runPreparationOnDevice() 330 CLog.d("done with preparer '%s' on device: '%s'", preparer, device.getSerialNumber()); in runPreparationOnDevice() 332 CLog.d("Done with setup of device: '%s'", device.getSerialNumber()); in runPreparationOnDevice() 344 CLog.d("Starting device pre invocation setup for : '%s'", device.getSerialNumber()); in runDevicePreInvocationSetup() 491 preparer, device.getSerialNumber()); in doTeardown() 496 preparer, device.getSerialNumber()); in doTeardown() 665 TestInvocation.getDeviceLogName(stage), device.getSerialNumber()); in reportLogs()
|
/tools/tradefederation/contrib/src/com/android/fastboot/tests/ |
D | FastbootTest.java | 181 CLog.v("Flashing device %s", mDevice.getSerialNumber()); in testFastboot() 195 CLog.v("Waiting for device %s online", mDevice.getSerialNumber()); in testFastboot() 205 "Device not online after flashing", mDevice.getSerialNumber()); in testFastboot() 208 CLog.v("Waiting for device %s boot complete", mDevice.getSerialNumber()); in testFastboot() 214 CLog.e("Device %s not available after flashing", mDevice.getSerialNumber()); in testFastboot() 222 CLog.v("Device %s boot complete", mDevice.getSerialNumber()); in testFastboot() 243 CLog.e("Failed to query battery level for %s", mDevice.getSerialNumber()); in testFastboot()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerFuncTest.java | 76 EasyMock.expect(device.getSerialNumber()).andStubReturn("serial"); in testAllocateFree() 134 EasyMock.expect(device.getSerialNumber()).andStubReturn("serial"); in testAllocateClose() 158 EasyMock.expect(device.getSerialNumber()).andStubReturn("serial"); in testAllocateFreeAll() 252 EasyMock.expect(device.getSerialNumber()).andStubReturn("serial"); in testExecCommand() 278 EasyMock.expect(device.getSerialNumber()).andStubReturn("serial"); in testConsecutiveExecCommand() 409 EasyMock.expect(device.getSerialNumber()).andStubReturn("serial"); in testGetLastCommandResult_noActiveCommand() 434 EasyMock.expect(device.getSerialNumber()).andStubReturn("serial"); in testGetLastCommandResult_executing() 465 EasyMock.expect(device.getSerialNumber()).andStubReturn("serial"); in testGetLastCommandResult_notAvail()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | RemoteAndroidVirtualDevice.java | 107 getSerialNumber(), in preInvocationSetup() 137 getSerialNumber(), in preInvocationSetup() 156 CLog.i("Invocation tear down for device %s", getSerialNumber()); in postInvocationTearDown() 179 CLog.w("Device %s still available after timeout.", getSerialNumber()); in postInvocationTearDown() 298 CLog.v("Performing post boot setup for GCE AVD %s", getSerialNumber()); in postBootSetup() 327 getSerialNumber(), in waitForTunnelOnline() 334 CLog.i("Attempting recovery on GCE AVD %s", getSerialNumber()); in recoverDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | Sl4aBluetoothUtil.java | 209 mSl4aClients.put(device.getSerialNumber(), sl4aClient); in startSl4a() 225 mSl4aClients.put(device.getSerialNumber(), client); in setSl4a() 275 device.getSerialNumber(), e); in getAddress() 302 CLog.e("Failed to get bonded devices for device: %s, %s", device.getSerialNumber(), e); in getBondedDevices() 338 CLog.d("Start discover and bond to secondary device: %s", secondary.getSerialNumber()); in pair() 604 String serial = device.getSerialNumber(); in getSl4aClient()
|
/tools/loganalysis/test_framework/com/android/tradefed/device/metric/ |
D | LogcatTimingMetricCollector.java | 108 device.getSerialNumber(), logcatCmd); in onTestRunStart() 115 device.getSerialNumber()); in onTestRunStart() 139 name, values, device.getSerialNumber()); in onTestRunEnd() 142 String.format(LOGCAT_NAME_FORMAT, device.getSerialNumber()), in onTestRunEnd() 156 String.format(LOGCAT_NAME_FORMAT, device.getSerialNumber()), in onTestFail()
|