Home | History | Annotate | Download | only in android

Lines Matching refs:fastboot

21 from devil.android.sdk import fastboot
62 fastbooter = mock.Mock(spec=fastboot.Fastboot)
81 self.fastboot = fastboot_utils.FastbootUtils(
84 self.fastboot._board = _BOARD
110 self.fastboot.WaitForFastbootMode()
117 self.call.fastboot._device.EnableRoot(),
118 self.call.fastboot._device.adb.Reboot(to_bootloader=True),
119 self.call.fastboot.WaitForFastbootMode()):
120 self.fastboot.EnableFastbootMode()
127 self.call.fastboot.fastboot.RebootBootloader(),
128 self.call.fastboot.WaitForFastbootMode()):
129 self.fastboot.Reboot(bootloader=True)
133 self.call.fastboot.fastboot.Reboot(),
134 self.call.fastboot._device.WaitUntilFullyBooted(timeout=mock.ANY)):
135 self.fastboot.Reboot()
142 (self.call.fastboot._VerifyBoard('test'), True),
145 (self.call.fastboot.fastboot.Flash('bootloader', 'bootloader.img')),
146 (self.call.fastboot.Reboot(bootloader=True)),
147 (self.call.fastboot.fastboot.Flash('radio', 'radio.img')),
148 (self.call.fastboot.Reboot(bootloader=True)),
149 (self.call.fastboot.fastboot.Flash('boot', 'boot.img')),
150 (self.call.fastboot.fastboot.Flash('recovery', 'recovery.img')),
151 (self.call.fastboot.fastboot.Flash('system', 'system.img')),
152 (self.call.fastboot.fastboot.Flash('userdata', 'userdata.img')),
153 (self.call.fastboot.fastboot.Flash('cache', 'cache.img'))):
154 self.fastboot._FlashPartitions(_PARTITIONS, 'test', wipe=True)
158 (self.call.fastboot._VerifyBoard('test'), True),
161 (self.call.fastboot.fastboot.Flash('bootloader', 'bootloader.img')),
162 (self.call.fastboot.Reboot(bootloader=True)),
163 (self.call.fastboot.fastboot.Flash('radio', 'radio.img')),
164 (self.call.fastboot.Reboot(bootloader=True)),
165 (self.call.fastboot.fastboot.Flash('boot', 'boot.img')),
166 (self.call.fastboot.fastboot.Flash('recovery', 'recovery.img')),
167 (self.call.fastboot.fastboot.Flash('system', 'system.img'))):
168 self.fastboot._FlashPartitions(_PARTITIONS, 'test')
175 self.call.fastboot.EnableFastbootMode(),
176 self.call.fastboot.fastboot.SetOemOffModeCharge(False),
177 self.call.fastboot.fastboot.SetOemOffModeCharge(True),
178 self.call.fastboot.Reboot(wait_for_reboot=True)):
179 with self.fastboot.FastbootMode() as fbm:
180 self.assertEqual(self.fastboot, fbm)
184 self.call.fastboot.EnableFastbootMode(),
185 self.call.fastboot.fastboot.SetOemOffModeCharge(False),
186 self.call.fastboot.fastboot.SetOemOffModeCharge(True),
187 self.call.fastboot.Reboot(wait_for_reboot=False)):
188 with self.fastboot.FastbootMode(wait_for_reboot=False) as fbm:
189 self.assertEqual(self.fastboot, fbm)
193 self.call.fastboot.EnableFastbootMode(),
194 self.call.fastboot.fastboot.SetOemOffModeCharge(False),
195 self.call.fastboot.fastboot.SetOemOffModeCharge(True),
196 self.call.fastboot.Reboot(wait_for_reboot=True)):
198 with self.fastboot.FastbootMode() as fbm:
199 self.assertEqual(self.fastboot, fbm)
203 self.fastboot.EnableFastbootMode = mock.Mock()
204 self.fastboot.EnableFastbootMode.side_effect = NotImplementedError
206 with self.fastboot.FastbootMode():
216 self.assertTrue(self.fastboot._VerifyBoard('test'))
222 self.assertFalse(self.assertFalse(self.fastboot._VerifyBoard('test')))
226 self.assertTrue(self.fastboot._VerifyBoard('test'))
232 self.assertTrue(self.fastboot._VerifyBoard('test'))
238 self.assertTrue(self.fastboot._VerifyBoard('test'))
244 self.assertFalse(self.fastboot._VerifyBoard('test'))
250 self.assertTrue(self.fastboot._VerifyBoard('test'))
256 self.assertFalse(self.fastboot._VerifyBoard('test'))
347 self.call.fastboot.EnableFastbootMode(),
348 self.call.fastboot.fastboot.SetOemOffModeCharge(False),
349 self.call.fastboot._FlashPartitions(mock.ANY, 'test', wipe=True),
350 self.call.fastboot.fastboot.SetOemOffModeCharge(True),
351 self.call.fastboot.Reboot(wait_for_reboot=False)):
352 self.fastboot.FlashDevice('test', wipe=True)
356 self.call.fastboot.EnableFastbootMode(),
357 self.call.fastboot.fastboot.SetOemOffModeCharge(False),
358 self.call.fastboot._FlashPartitions(mock.ANY, 'test', wipe=False),
359 self.call.fastboot.fastboot.SetOemOffModeCharge(True),
360 self.call.fastboot.Reboot(wait_for_reboot=True)):
361 self.fastboot.FlashDevice('test', wipe=False)
365 self.call.fastboot.EnableFastbootMode(),
366 self.call.fastboot.fastboot.SetOemOffModeCharge(False),
367 self.call.fastboot._FlashPartitions(['boot'], 'test', wipe=False),
368 self.call.fastboot.fastboot.SetOemOffModeCharge(True),
369 self.call.fastboot.Reboot(wait_for_reboot=True)):
370 self.fastboot.FlashDevice('test', partitions=['boot'], wipe=False)