/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | WaitDeviceRecovery.java | 128 CLog.i("Pausing for %d for %s to recover", INITIAL_PAUSE_TIME, monitor.getSerialNumber()); in recoverDevice() 138 monitor.getSerialNumber(), state); in recoverDevice() 183 monitor.getSerialNumber(), in getDeviceAfterRecovery() 206 device.getSerialNumber(), in checkMinBatteryLevel() 211 level, mRequiredMinBattery), device.getSerialNumber()); in checkMinBatteryLevel() 218 device.getSerialNumber(), in checkMinBatteryLevel() 231 CLog.i("Device %s unresponsive. Rebooting...", monitor.getSerialNumber()); in handleDeviceUnresponsive() 244 String.format("Device %s is online but unresponsive", monitor.getSerialNumber()), in handleDeviceUnresponsive() 245 monitor.getSerialNumber(), in handleDeviceUnresponsive() 262 String serial = monitor.getSerialNumber(); in handleDeviceNotAvailable() [all …]
|
D | NativeDeviceStateMonitor.java | 121 if (mFastbootSerialNumber != null && !mFastbootSerialNumber.equals(getSerialNumber())) { in setFastbootSerialNumber() 123 mMgr.addMonitoringTcpFastbootDevice(getSerialNumber(), mFastbootSerialNumber); in setFastbootSerialNumber() 175 public String getSerialNumber() { in getSerialNumber() method in NativeDeviceStateMonitor 176 return getIDevice().getSerialNumber(); in getSerialNumber() 183 mFastbootSerialNumber = getSerialNumber(); in getFastbootSerialNumber() 216 getSerialNumber()); in waitForDeviceShell() 233 CLog.e("%s failed on: %s", cmd, getSerialNumber()); in waitForDeviceShell() 236 CLog.e("%s failed on %s: timeout", cmd, getSerialNumber()); in waitForDeviceShell() 243 CLog.w("Device %s shell is unresponsive", getSerialNumber()); in waitForDeviceShell() 307 CLog.i("Waiting %d ms for device %s boot complete", waitTime, getSerialNumber()); in waitForBootComplete() [all …]
|
D | NativeDevice.java | 574 public String getSerialNumber() { in getSerialNumber() method in NativeDevice 575 return getIDevice().getSerialNumber(); in getSerialNumber() 591 CLog.i("Device %s is in fastboot mode, re-querying with '%s' for %s", getSerialNumber(), in internalGetProperty() 601 description, getSerialNumber()); in internalGetProperty() 637 getSerialNumber(), getDeviceState(), name); in getPropertyWithRecovery() 662 getSerialNumber(), in getPropertyWithRecovery() 839 getSerialNumber()), in internalGetProductType() 840 getSerialNumber(), in internalGetProductType() 940 CLog.w("Could not get device %s build id.", getSerialNumber()); in getBuildId() 958 CLog.w("Could not get device %s build flavor.", getSerialNumber()); in getBuildFlavor() [all …]
|
D | BackgroundDeviceAction.java | 90 mLogStartDelay, mDescriptor, mTestDevice.getSerialNumber()); in run() 98 CLog.d("Starting %s for %s.", mDescriptor, mTestDevice.getSerialNumber()); in run() 122 mDescriptor, mTestDevice.getSerialNumber()); in waitForDeviceRecovery() 151 CLog.d("Waiting for device %s online before starting.", mTestDevice.getSerialNumber()); in blockUntilOnlineNoThrow() 158 CLog.d("Device %s now online.", mTestDevice.getSerialNumber()); in blockUntilOnlineNoThrow()
|
D | DeviceManager.java | 446 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 457 final String threadName = String.format("Check device %s", testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 462 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 468 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 471 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 478 testDevice.getSerialNumber()); in checkAndAddAvailableDevice() 723 device.getSerialNumber(), r.allocationState.toString()); in freeDevice() 750 CLog.e("Device %s was in unexpected state %s when freeing", device.getSerialNumber(), in freeDevice() 776 DEVICE_LIST_PATTERN, managedDevice.getSerialNumber())); in getEventFromFree() 844 "Device %s is not stub emulator device", device.getSerialNumber())); in launchEmulator() [all …]
|
D | DeviceStateMonitor.java | 46 waitTime, getSerialNumber()); in waitForPmResponsive() 60 CLog.i("%s on device %s failed: timeout", cmd, getSerialNumber()); in waitForPmResponsive() 62 CLog.i("%s on device %s failed: %s(message: %s)", cmd, getSerialNumber(), in waitForPmResponsive() 68 CLog.w("Device %s package manager is unresponsive", getSerialNumber()); in waitForPmResponsive()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | RuntimeRestartCollector.java | 106 mExistingTimestamps.put(device.getSerialNumber(), existingTimestamps); in onTestRunStart() 111 device.getSerialNumber(), e); in onTestRunStart() 118 device.getSerialNumber(), in onTestRunStart() 125 device.getSerialNumber(), e); in onTestRunStart() 142 device.getSerialNumber(), device.getDeviceState()); in onTestRunEnd() 155 device.getSerialNumber(), e); in onTestRunEnd() 158 if (!mExistingTimestamps.containsKey(device.getSerialNumber())) { in onTestRunEnd() 159 CLog.e("No prior state recorded for device %s.", device.getSerialNumber()); in onTestRunEnd() 161 currentRunMetrics, updatedTimestamps, device.getSerialNumber()); in onTestRunEnd() 165 Iterables.getLast(mExistingTimestamps.get(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()
|
D | BluetoothConnectionStateCollector.java | 45 CLog.d("processStatsReport is called for device %s", device.getSerialNumber()); in processStatsReport() 61 device.getSerialNumber(), e); in processStatsReport() 78 device.getSerialNumber(), metricKey, states.toString()); in addMetricsToRunData() 101 device.getSerialNumber(), btProfile); in processEventMetric() 109 device.getSerialNumber(), btProfileName, btState); in processEventMetric()
|
/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/test_framework/com/android/tradefed/targetprep/ |
D | AppSetup.java | 98 CLog.i("Performing setup on %s", device.getSerialNumber()); in setUp() 106 "Failed to uninstall apps on %s", device.getSerialNumber()), in setUp() 107 device.getSerialNumber()); in setUp() 138 apkFile.toString(), device.getSerialNumber(), in setUp() 154 apkFile.getFile().getName(), device.getSerialNumber(), result), in setUp() 168 CLog.d("About to run setup command on device %s: %s", device.getSerialNumber(), cmd); in setUp() 232 "Failed to uninstall apps on %s", device.getSerialNumber()), in tearDown() 233 device.getSerialNumber()); in tearDown() 253 CLog.w("Uninstall of %s on %s failed: %s", pkg, device.getSerialNumber(), in uninstallAllApps()
|
D | TimeWaster.java | 47 CLog.d("Pre-sleep device reboot on %s", device.getSerialNumber()); in setUp() 51 CLog.d("Sleeping %d msecs on device %s", mDelayMsecs, device.getSerialNumber()); in setUp() 55 CLog.d("Post-sleep device reboot on %s", device.getSerialNumber()); in setUp()
|
D | InstallApkSetup.java | 92 CLog.i("Installing %s on %s", apk.getName(), device.getSerialNumber()); in setUp() 117 apk.getAbsolutePath(), device.getSerialNumber(), result), in setUp() 122 apk.getAbsolutePath(), device.getSerialNumber(), result); in setUp() 131 device.getSerialNumber(), cmd); in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | DeviceStateMonitorTest.java | 84 when(mMockDevice.getSerialNumber()).thenReturn(SERIAL_NUMBER); in setUp() 127 when(mockDevice.getSerialNumber()).thenReturn("2345asdf"); in testIsAdbTcp_usb() 138 when(mockDevice.getSerialNumber()).thenReturn("192.168.1.1:5555"); in testIsAdbTcp_tcp() 192 when(mMockDevice.getSerialNumber()).thenReturn(SERIAL_NUMBER); in testWaitForShellAvailable() 219 when(mMockDevice.getSerialNumber()).thenReturn(SERIAL_NUMBER); in testWaitForShell_becomeAvailable() 267 when(mMockDevice.getSerialNumber()).thenReturn(SERIAL_NUMBER); in testWaitForShell_timeout() 423 when(mMockDevice.getSerialNumber()).thenReturn(SERIAL_NUMBER); in testWaitForPmResponsive() 454 when(mMockDevice.getSerialNumber()).thenReturn(SERIAL_NUMBER); in testWaitForPm_becomeResponsive() 498 when(mMockDevice.getSerialNumber()).thenReturn(SERIAL_NUMBER); in testWaitForPm_timeout() 526 when(mMockDevice.getSerialNumber()).thenReturn(SERIAL_NUMBER); in testgetMountPoint() [all …]
|
D | MockDeviceManager.java | 72 when(mockDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesInternal() 74 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesInternal() 89 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesCustomRealNoRecovery() 111 when(mockDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesCustom() 113 when(mockIDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesCustom() 133 when(mockDevice.getSerialNumber()).thenReturn("serial" + i); in setNumDevicesStub() 211 d.getSerialNumber(), in allocateDevice() 224 device.getSerialNumber(), in freeDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | PerfettoTraceRecorder.java | 70 device.getSerialNumber(), deviceMetadataMap.get(device).getProcess().pid()); in startTrace() 112 String.format(TRACE_NAME_FORMAT, device.getSerialNumber()), in startTrace() 123 device.getSerialNumber(), in startTrace() 154 deviceSerialsWithTrace.add(device.getSerialNumber()); in startTrace() 160 while (!deviceSerialsWithTrace.contains(device.getSerialNumber()) in startTrace() 166 if (!deviceSerialsWithTrace.contains(device.getSerialNumber())) { in startTrace() 170 device.getSerialNumber(), SCRIPT_START_TIMEOUT); in startTrace() 188 deviceSerialsWithTrace.remove(device.getSerialNumber()); in stopTrace()
|
/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/contrib/src/com/android/tradefed/ |
D | HelloWorldMultiDevices.java | 46 device.getSerialNumber(), context.getBuildInfo(device)); in run() 53 context.getDevice(deviceName).getSerialNumber(), deviceName); in run() 60 context.getDevice("device1").getSerialNumber()); in run()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/token/ |
D | TelephonyTokenProvider.java | 61 device.getSerialNumber(), token, info); in hasToken() 69 device.getSerialNumber(), token, info); in hasToken() 84 device.getSerialNumber(), in hasToken() 93 device.getSerialNumber(), token, info); in hasToken()
|
/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/javatests/com/android/tradefed/device/recovery/ |
D | UsbResetRunConfigRecoveryTest.java | 43 doReturn("serial").when(mockDevice).getSerialNumber(); in testShouldSkip() 56 doReturn("serial").when(mockDevice).getSerialNumber(); in testShouldSkip_fastboot() 64 doReturn("serial").when(mockDevice).getSerialNumber(); in testShouldSkip_available()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | DeviceTraceCollector.java | 82 device.getSerialNumber(), mTraceCountMap.get(device), e.getMessage()); in startTraceOnDevice() 91 device.getSerialNumber(), eventName, mTraceCountMap.get(device)); in collectTraceFileFromDevice() 96 device.getSerialNumber(), in collectTraceFileFromDevice() 103 device.getSerialNumber(), in collectTraceFileFromDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/device/internal/ |
D | DeviceResetFeature.java | 97 mTestInformation.getDevice().getSerialNumber(), in execute() 117 mTestInformation.getDevice().getSerialNumber(), in execute() 121 mTestInformation.getDevice().getSerialNumber(), in execute() 137 mTestInformation.getDevice().getSerialNumber()), in execute() 138 mTestInformation.getDevice().getSerialNumber(), in execute()
|
D | DeviceSnapshotFeature.java | 149 mTestInformation.getDevice().getSerialNumber(), in snapshot() 160 mTestInformation.getDevice().getSerialNumber(), in snapshot() 164 mTestInformation.getDevice().getSerialNumber(), in snapshot() 185 mTestInformation.getDevice().getSerialNumber(), in restoreSnapshot() 197 mTestInformation.getDevice().getSerialNumber(), in restoreSnapshot() 201 mTestInformation.getDevice().getSerialNumber(), in restoreSnapshot()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
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()
|