Home
last modified time | relevance | path

Searched refs:getSerialNumber (Results 1 – 25 of 147) sorted by relevance

123456

/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java117 INITIAL_PAUSE_TIME, monitor.getSerialNumber())); in recoverDevice()
126 monitor.getSerialNumber())); in recoverDevice()
129 monitor.getSerialNumber(), "reboot"); in recoverDevice()
165 "Device still not online after successful recovery", monitor.getSerialNumber()); in getDeviceAfterRecovery()
187 device.getSerialNumber()); in checkMinBatteryLevel()
191 level, mRequiredMinBattery), device.getSerialNumber()); in checkMinBatteryLevel()
196 device.getSerialNumber()); in checkMinBatteryLevel()
209 "Device %s unresponsive. Rebooting...", monitor.getSerialNumber())); in handleDeviceUnresponsive()
222 "Device %s is online but unresponsive", monitor.getSerialNumber()), in handleDeviceUnresponsive()
223 monitor.getSerialNumber()); in handleDeviceUnresponsive()
[all …]
DDeviceStateMonitor.java46 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()
DNativeDevice.java367 public String getSerialNumber() { in getSerialNumber() method in NativeDevice
368 return getIDevice().getSerialNumber(); in getSerialNumber()
393 getSerialNumber()); in internalGetProperty()
397 getSerialNumber(), description); in internalGetProperty()
411 CLog.d("Device %s is not online cannot get property %s.", getSerialNumber(), name); in getProperty()
489 "Could not determine product type for device %s.", getSerialNumber()), in internalGetProductType()
490 getSerialNumber()); in internalGetProductType()
577 CLog.w("Could not get device %s build id.", getSerialNumber()); in getBuildId()
595 CLog.w("Could not get device %s build flavor.", getSerialNumber()); in getBuildFlavor()
675 CLog.v("%s on %s returned %s", command, getSerialNumber(), output); in executeShellCommand()
[all …]
DNativeDeviceStateMonitor.java121 public String getSerialNumber() { in getSerialNumber() method in NativeDeviceStateMonitor
122 return getIDevice().getSerialNumber(); in getSerialNumber()
163 getSerialNumber()); in waitForDeviceShell()
186 CLog.w("Device %s shell is unresponsive", getSerialNumber()); in waitForDeviceShell()
235 CLog.i("Waiting %d ms for device %s boot complete", waitTime, getSerialNumber()); in waitForBootComplete()
246 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForBootComplete()
250 CLog.i("%s on device %s failed: %s", cmd, getSerialNumber(), e.getMessage()); in waitForBootComplete()
255 CLog.w("Device %s did not boot after %d ms", getSerialNumber(), waitTime); in waitForBootComplete()
278 CLog.i("Waiting %d ms for device %s external store", waitTime, getSerialNumber()); in waitForStoreMount()
311 + "issue with mounting.", getSerialNumber()); in waitForStoreMount()
[all …]
DBackgroundDeviceAction.java86 mTestDevice.getSerialNumber()); in run()
94 CLog.d("Starting %s for %s.", mDescriptor, mTestDevice.getSerialNumber()); in run()
113 mDescriptor, mTestDevice.getSerialNumber()); in waitForDeviceRecovery()
142 CLog.d("Waiting for device %s online before starting.", mTestDevice.getSerialNumber()); in blockUntilOnlineNoThrow()
149 CLog.d("Device %s now online.", mTestDevice.getSerialNumber()); in blockUntilOnlineNoThrow()
DRemoteAndroidDevice.java80 + "should look like <hostname>:<port>", getSerialNumber())); in getHostName()
82 return getSerialNumber().split(":")[0]; in getHostName()
92 + "should look like <hostname>:<port>", getSerialNumber())); in getPortNum()
94 return getSerialNumber().split(":")[1]; in getPortNum()
102 String[] serial = getSerialNumber().split(":"); in checkSerialFormatValid()
194 String.format("No adb connection after %sms.", waitTime), getSerialNumber()); in waitForAdbConnect()
DDeviceManager.java375 testDevice.getSerialNumber()); in checkAndAddAvailableDevice()
380 final String threadName = String.format("Check device %s", testDevice.getSerialNumber()); in checkAndAddAvailableDevice()
385 testDevice.getSerialNumber()); in checkAndAddAvailableDevice()
391 testDevice.getSerialNumber()); in checkAndAddAvailableDevice()
394 testDevice.getSerialNumber()); in checkAndAddAvailableDevice()
401 testDevice.getSerialNumber()); in checkAndAddAvailableDevice()
545 ideviceToReturn = new StubDevice(ideviceToReturn.getSerialNumber(), true); in freeDevice()
560 CLog.e("Device %s was in unexpected state %s when freeing", device.getSerialNumber(), in freeDevice()
586 DEVICE_LIST_PATTERN, managedDevice.getSerialNumber())); in getEventFromFree()
607 device.getSerialNumber())); in launchEmulator()
[all …]
DManagedDeviceList.java118 return serialNumber.equals(element.getSerialNumber()); in find()
137 if (serials.contains(d.getSerialNumber())) {
142 CLog.d("Device %s was in fastboot and not found anymore", d.getSerialNumber());
218 if (!isValidDeviceSerial(idevice.getSerialNumber())) {
223 IManagedTestDevice d = find(idevice.getSerialNumber());
/tools/tradefederation/core/src/com/android/tradefed/targetprep/companion/
DCompanionDeviceTracker.java66 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/testtype/
DDeviceBatteryLevelChecker.java115 mTestDevice.getSerialNumber()); in run()
120 "to level %d", batteryLevel, mMaxBattery, mTestDevice.getSerialNumber(), in run()
125 mMaxBattery, mTestDevice.getSerialNumber()); in run()
131 CLog.d("Rebooting device %s prior to holding", mTestDevice.getSerialNumber()); in run()
154 CLog.w("Battery level for device %s is currently %d", mTestDevice.getSerialNumber(), in run()
170 mTestDevice.getSerialNumber()); in run()
175 "%.02f minutes.", batteryLevel, newLevel, mTestDevice.getSerialNumber(), in run()
178 CLog.v("Battery level for device %s is currently %d", mTestDevice.getSerialNumber(), in run()
184 mTestDevice.getSerialNumber(), batteryLevel); in run()
DUiAutomatorRunner.java305 CLog.i("Running %s on %s", cmdLine, mRemoteDevice.getSerialNumber()); in run()
314 e.toString(), getPackageName(), mRemoteDevice.getSerialNumber())); in run()
320 e.toString(), getPackageName(), mRemoteDevice.getSerialNumber()); in run()
328 mRemoteDevice.getSerialNumber()); in run()
333 e.toString(), getPackageName(), mRemoteDevice.getSerialNumber()); in run()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DAppSetup.java94 CLog.i("Performing setup on %s", device.getSerialNumber()); in setUp()
102 "Failed to uninstall apps on %s", device.getSerialNumber()), in setUp()
103 device.getSerialNumber()); in setUp()
118 apkFile.toString(), device.getSerialNumber(), in setUp()
131 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp()
144 CLog.d("About to run setup command on device %s: %s", device.getSerialNumber(), cmd); in setUp()
201 "Failed to uninstall apps on %s", device.getSerialNumber()), in tearDown()
202 device.getSerialNumber()); in tearDown()
222 CLog.w("Uninstall of %s on %s failed: %s", pkg, device.getSerialNumber(), in uninstallAllApps()
DTimeWaster.java48 CLog.d("Pre-sleep device reboot on %s", device.getSerialNumber()); in setUp()
52 CLog.d("Sleeping %d msecs on device %s", mDelayMsecs, device.getSerialNumber()); in setUp()
56 CLog.d("Post-sleep device reboot on %s", device.getSerialNumber()); in setUp()
DWifiPreparer.java79 mWifiNetwork, device.getSerialNumber()), device.getDeviceDescriptor()); in setUp()
108 CLog.w("Failed to disconnect from wifi network on %s", device.getSerialNumber()); in tearDown()
111 CLog.i("Successfully disconnected from wifi network on %s", device.getSerialNumber()); in tearDown()
DFastbootDeviceFlasher.java141 CLog.i("Flashing device %s with build %s", device.getSerialNumber(), in flash()
270 "Could not determine product type for device %s", device.getSerialNumber()), in downloadFlashingResources()
271 device.getSerialNumber()); in downloadFlashingResources()
307 device.getSerialNumber(), deviceProductType, in verifyRequiredBoards()
480 CLog.i("Wiping cache on %s", device.getSerialNumber()); in wipeCache()
486 CLog.d("Skipping cache wipe on %s", device.getSerialNumber()); in wipeCache()
502 CLog.i("Flashing %s with userdata %s", device.getSerialNumber(), in flashUserData()
511 CLog.i("Wiping userdata %s", device.getSerialNumber()); in flashUserData()
533 CLog.d("Skipping userdata flash for %s", device.getSerialNumber()); in flashUserData()
554 CLog.i("Flashing %s with userdata %s", device.getSerialNumber(), userdataImg); in flashUserDataFromDeviceImageFile()
[all …]
DDeviceSetup.java421 CLog.i("Performing setup on %s", device.getSerialNumber()); in setUp()
425 device.getSerialNumber()), device.getDeviceDescriptor()); in setUp()
463 CLog.i("Performing teardown on %s", device.getSerialNumber()); in tearDown()
476 device.getSerialNumber()); in tearDown()
478 CLog.w("Failed to disconnect from wifi network on %s", device.getSerialNumber()); in tearDown()
723 device.getSerialNumber()), device.getDeviceDescriptor()); in changeSystemProps()
727 CLog.i("Rebooting %s due to system property change", device.getSerialNumber()); in changeSystemProps()
785 "must be API 22+", device.getSerialNumber()), device.getDeviceDescriptor()); in changeSettings()
882 device.getSerialNumber()), device.getDeviceDescriptor()); in connectWifi()
908 "failed to get external storage path on device %s", device.getSerialNumber()), in syncTestData()
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/tradefed/
DHelloWorldMultiDevices.java63 CLog.i("Hello World! device '%s' with build id '%s'", entry.getKey().getSerialNumber(), in run()
71 device.getSerialNumber(), mContext.getBuildInfo(device)); in run()
78 mContext.getDevice(deviceName).getSerialNumber(), deviceName); in run()
85 mContext.getDevice("device1").getSerialNumber()); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceStateMonitorTest.java53 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in setUp()
97 EasyMock.expect(mockDevice.getSerialNumber()).andStubReturn("2345asdf"); in testIsAdbTcp_usb()
109 EasyMock.expect(mockDevice.getSerialNumber()).andStubReturn("192.168.1.1:5555"); in testIsAdbTcp_tcp()
162 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForShellAvailable()
189 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForShell_becomeAvailable()
230 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForShell_timeout()
335 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForPmResponsive()
363 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForPm_becomeResponsive()
405 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testWaitForPm_timeout()
437 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn(SERIAL_NUMBER).anyTimes(); in testgetMountPoint()
[all …]
DMockDeviceManager.java67 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()
260 mDvcMon.notifyDeviceStateChange(d.getSerialNumber(), DeviceAllocationState.Available, in allocateDevice()
DWaitDeviceRecoveryTest.java57 EasyMock.expect(mMockMonitor.getSerialNumber()).andStubReturn("serial"); in setUp()
271 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL"); in testCheckMinBatteryLevel_unreadable()
292 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL"); in testCheckMinBatteryLevel_belowLevel()
326 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL"); in testRebootDeviceIntoBootloader_IOException()
339 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL"); in testRebootDeviceIntoBootloader_timeoutException()
352 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL"); in testReboot_IOException()
365 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL"); in testReboot_timeoutException()
/tools/tradefederation/core/prod-tests/src/com/android/stability/tests/
DRebootStressTest.java208 getDevice().getSerialNumber(), actualIterations+1, mIterations); in run()
217 listener.testLog(String.format("last_kmsg_%s", getDevice().getSerialNumber()), in run()
222 listener.testLog(String.format("dmesg_%s", getDevice().getSerialNumber()), in run()
226 getDevice().getSerialNumber(), actualIterations, mIterations); in run()
271 getDevice().getSerialNumber()), mLastKmsg.contains("Kernel panic")); in checkForUserDataFailure()
277 getDevice().getSerialNumber()), in checkForUserDataFailure()
/tools/tradefederation/core/prod-tests/src/com/android/ota/tests/
DOtaStabilityTest.java222 mDevice.getSerialNumber(), buildId, actualIterations)); in run()
286 mDevice.getSerialNumber()), currentBuildId, mDeviceBuild.getBuildId()); in waitForOta()
294 mDevice.getSerialNumber(), mWaitRecoveryTime), in waitForOta()
301 mDevice.getSerialNumber())); in waitForOta()
310 mDevice.getSerialNumber())); in waitForOta()
318 mDevice.getSerialNumber()), in waitForOta()
338 mDevice.getSerialNumber())); in sendRecoveryLog()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DRunCommandTargetPreparerTest.java70 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(2); in testSetUp()
90 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(2); in testSetUp_withTimeout()
132 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").times(1); in testTearDown()
152 EasyMock.expect(mMockIDevice.getSerialNumber()).andReturn("SERIAL").anyTimes(); in testBgCmd()
157 EasyMock.expect(mMockDevice.getSerialNumber()).andReturn("SERIAL").atLeastOnce(); in testBgCmd()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/multi/
DHelloWorldMultiTargetPreparer.java46 entry.getKey().getSerialNumber(), entry.getValue().getBuildId()); in setUp()
59 entry.getKey().getSerialNumber(), entry.getValue().getBuildId()); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DAtraceCollector.java132 CLog.i("issuing command : %s to device: %s", cmd, device.getSerialNumber()); in startTracing()
156 CLog.i("collecting atrace log from device: %s", device.getSerialNumber()); in stopTracing()
210 mLogFilename + device.getSerialNumber(), in onTestEnd()
215 postProcess(trace, device.getSerialNumber()); in onTestEnd()

123456