HomeSort by relevance Sort by last modified time
    Searched refs:FASTBOOT (Results 1 - 15 of 15) sorted by null

  /tools/tradefederation/core/src/com/android/tradefed/device/
TestDeviceState.java 23 * Logically this should extend {@link DeviceState} to just add the FASTBOOT and NOT_AVAILABLE
27 FASTBOOT,
65 return TestDeviceState.FASTBOOT;
ManagedDeviceList.java 130 * @param serials the devices currently on fastboot
138 d.setDeviceState(TestDeviceState.FASTBOOT);
139 } else if (d.getDeviceState() == TestDeviceState.FASTBOOT) {
140 // device was previously on fastboot, assume its gone now
142 CLog.d("Device %s was in fastboot and not found anymore", d.getSerialNumber());
ManagedTestDeviceFactory.java 85 testDevice.setDeviceState(TestDeviceState.FASTBOOT);
WaitDeviceRecovery.java 59 description="maximum time in ms to wait for device to be in fastboot.")
66 @Option(name="fastboot-wait-time",
67 description="maximum time in ms to wait for a fastboot command result.")
78 "fastboot or is expected to be in fastboot.")
81 private String mFastbootPath = "fastboot";
123 if (monitor.getDeviceState().equals(TestDeviceState.FASTBOOT)) {
125 "Found device %s in fastboot but expected online. Rebooting...",
277 Log.i(LOG_TAG, String.format("Found device %s online but expected fastboot.",
299 CLog.i("Found device %s in fastboot but potentially unresponsive."
    [all...]
NativeDeviceStateMonitor.java 375 // ensure fastboot state is updated at least once
385 boolean result = waitForDeviceState(TestDeviceState.FASTBOOT, waitTime);
NativeDevice.java 188 private String mFastbootPath = "fastboot";
377 * shell getprop` or `fastboot getvar` depending on whether the device is in Fastboot or not.
380 * @param fastbootVar The name of the equivalent fastboot variable to query. if {@code null},
381 * fastboot query will not be attempted
390 } else if (TestDeviceState.FASTBOOT.equals(getDeviceState()) &&
392 CLog.i("%s for device %s is null, re-querying in fastboot", description,
545 // fastboot is weird, and may dump the output on stderr instead of stdout
    [all...]
  /development/tools/labpretest/
labpretest.sh 19 FASTBOOT="$ROOT/tools/fastboot"
99 # Blocks until device is in fastboot mode or
115 fdevice=`$FASTBOOT devices | sed -n "s/\($device\).*/\1/ p"`
127 # reboots device into fastboot mode or
139 log_print "rebooting into bootloader and waiting for availability via fastboot"
145 # reboots device into fastboot mode or
149 # FASTBOOT
157 log_print "rebooting into bootloader and waiting for availability via fastboot"
158 $FASTBOOT -s $device reboot-bootloade
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/device/
ManagedDeviceListTest.java 113 * Test for {@link ManagedDeviceList#updateFastbootStates(Set)} when device switch to fastboot
119 mockDevice.setDeviceState(TestDeviceState.FASTBOOT);
133 * Test for {@link ManagedDeviceList#updateFastbootStates(Set)} when device was in fastboot and
139 EasyMock.expect(mockDevice.getDeviceState()).andReturn(TestDeviceState.FASTBOOT);
TestDeviceStressTest.java 85 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState());
TestDeviceFuncTest.java 508 * <p>Expect fastboot recovery to be invoked, which will boot device back to fastboot mode and
515 Log.i(LOG_TAG, "Fastboot not enabled skipping testExecuteFastbootCommand_deviceInAdb");
525 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState());
542 Log.i(LOG_TAG, "Fastboot not enabled skipping testExecuteFastbootCommand_badCommand");
548 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState());
568 Log.i(LOG_TAG, "Fastboot not enabled skipping testRebootInBootloader");
573 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState());
595 Log.i(LOG_TAG, "Fastboot not enabled skipping testRebootInRecovery");
786 Log.i(LOG_TAG, "Fastboot not enabled skipping testGetFileEntry_recovery")
    [all...]
TestDeviceTest.java 162 // TestDevice without fastboot
300 * Test {@link TestDevice#getProductType()} when device is in fastboot and IDevice has not
316 mRecoveryTestDevice.setDeviceState(TestDeviceState.FASTBOOT);
321 * Test {@link TestDevice#getProductType()} for a device with a non-alphanumeric fastboot
337 mRecoveryTestDevice.setDeviceState(TestDeviceState.FASTBOOT);
343 * type directly fails while the device is in fastboot.
359 mTestDevice.setDeviceState(TestDeviceState.FASTBOOT);
    [all...]
WaitDeviceRecoveryTest.java 127 * in fastboot.
133 EasyMock.expect(mMockMonitor.getDeviceState()).andReturn(TestDeviceState.FASTBOOT);
137 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"),
159 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"),
166 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"),
185 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"),
192 EasyMock.expect(mMockRunUtil.runTimedCmd(EasyMock.anyLong(), EasyMock.eq("fastboot"),
NativeDeviceTest.java     [all...]
  /tools/tradefederation/core/src/com/android/tradefed/targetprep/
FastbootDeviceFlasher.java 46 * A class that relies on fastboot to flash an image on physical Android hardware.
144 // get system build id and build flavor before booting into fastboot
209 CLog.d("fastboot flash %s %s", partition, imgFile.getAbsolutePath());
215 * Wipe the specified partition with `fastboot erase &lt;name&gt;`
223 CLog.d("fastboot %s %s", wipeMethod, partition);
639 * @throws TargetSetupError if fastboot command fails
651 // only transfer last fastboot command status over to system flash status after having
669 * @throws TargetSetupError if fastboot command fails or version could not be determined
708 if (device.getDeviceState().equals(TestDeviceState.FASTBOOT)) {
731 * Helper method to execute fastboot command
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
FastbootDeviceFlasherTest.java 144 * Test {@link FastbootDeviceFlasher#getCurrentSlot(ITestDevice)} when device is in fastboot.
151 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.FASTBOOT);
187 /** Test that a fastboot command is retried if it does not output anything. */
222 // expect a fastboot getvar version-baseband command
262 * Verify that correct fastboot command is called with WIPE data option
272 * Verify that correct fastboot command is called with FORCE_WIPE data option
373 * Convenience function to set expectations for `fastboot -w` and execute test
640 * Set EasyMock expectations to simulate the response to some fastboot command
643 * @param response the fastboot command response to inject
657 * Set EasyMock expectations to simulate the response to a fastboot flash comman
    [all...]

Completed in 327 milliseconds