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 185 private String mFastbootPath = "fastboot";
344 * `adb shell getprop` or `fastboot getvar` depending on whether the device is in Fastboot or
348 * @param fastbootVar The name of the equivalent fastboot variable to query. if {@code null},
349 * fastboot query will not be attempted
358 } else if (TestDeviceState.FASTBOOT.equals(getDeviceState()) &&
360 CLog.i("%s for device %s is null, re-querying in fastboot", description,
493 // 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 498 * Expect fastboot recovery to be invoked, which will boot device back to fastboot mode and
504 Log.i(LOG_TAG, "Fastboot not enabled skipping testExecuteFastbootCommand_deviceInAdb");
514 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState());
530 Log.i(LOG_TAG, "Fastboot not enabled skipping testExecuteFastbootCommand_badCommand");
536 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState());
557 Log.i(LOG_TAG, "Fastboot not enabled skipping testRebootInBootloader");
562 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState());
586 Log.i(LOG_TAG, "Fastboot not enabled skipping testRebootInRecovery");
771 Log.i(LOG_TAG, "Fastboot not enabled skipping testGetFileEntry_recovery")
    [all...]
TestDeviceTest.java 150 // TestDevice without fastboot
284 * Test {@link TestDevice#getProductType()} when device is in fastboot and IDevice has not
300 mRecoveryTestDevice.setDeviceState(TestDeviceState.FASTBOOT);
305 * Test {@link TestDevice#getProductType()} for a device with a non-alphanumeric fastboot
321 mRecoveryTestDevice.setDeviceState(TestDeviceState.FASTBOOT);
327 * type directly fails while the device is in fastboot.
343 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 43 * A class that relies on fastboot to flash an image on physical Android hardware.
124 // get system build id and build flavor before booting into fastboot
179 CLog.d("fastboot flash %s %s", partition, imgFile.getAbsolutePath());
184 * Wipe the specified partition with `fastboot erase <name>`
192 CLog.d("fastboot %s %s", wipeMethod, partition);
597 * @throws TargetSetupError if fastboot command fails
615 * @throws TargetSetupError if fastboot command fails or version could not be determined
654 if (device.getDeviceState().equals(TestDeviceState.FASTBOOT)) {
677 * Helper method to execute fastboot command.
680 * @param cmdArgs the arguments to provide to fastboot
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
FastbootDeviceFlasherTest.java 143 * Test {@link FastbootDeviceFlasher#getCurrentSlot(ITestDevice)} when device is in fastboot.
150 EasyMock.expect(mMockDevice.getDeviceState()).andReturn(TestDeviceState.FASTBOOT);
186 /** Test that a fastboot command is retried if it does not output anything. */
221 // expect a fastboot getvar version-baseband command
261 * Verify that correct fastboot command is called with WIPE data option
271 * Verify that correct fastboot command is called with FORCE_WIPE data option
372 * Convenience function to set expectations for `fastboot -w` and execute test
571 * Set EasyMock expectations to simulate the response to some fastboot command
574 * @param response the fastboot command response to inject
588 * Set EasyMock expectations to simulate the response to a fastboot flash comman
    [all...]

Completed in 333 milliseconds