Home
last modified time | relevance | path

Searched refs:UpdaterState (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/
DUpdateManager.java61 private UpdaterState mUpdaterState = new UpdaterState(UpdaterState.IDLE);
207 public synchronized void suspend() throws UpdaterState.InvalidTransitionException { in suspend()
209 setUpdaterState(UpdaterState.PAUSED); in suspend()
216 public synchronized void resume() throws UpdaterState.InvalidTransitionException { in resume()
218 setUpdaterState(UpdaterState.RUNNING); in resume()
227 throws UpdaterState.InvalidTransitionException { in setUpdaterState()
243 } catch (UpdaterState.InvalidTransitionException e) { in setUpdaterStateSilent()
255 this.mUpdaterState = new UpdaterState(state); in initializeUpdateState()
263 public synchronized void cancelRunningUpdate() throws UpdaterState.InvalidTransitionException { in cancelRunningUpdate()
265 setUpdaterState(UpdaterState.IDLE); in cancelRunningUpdate()
[all …]
DUpdaterState.java29 public class UpdaterState { class
66 public UpdaterState(int state) { in UpdaterState() method in UpdaterState
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ui/
DMainActivity.java37 import com.example.android.systemupdatersample.UpdaterState;
165 } catch (UpdaterState.InvalidTransitionException e) { in applyUpdate()
187 } catch (UpdaterState.InvalidTransitionException e) { in cancelRunningUpdate()
210 } catch (UpdaterState.InvalidTransitionException e) { in resetUpdate()
221 } catch (UpdaterState.InvalidTransitionException e) { in onSuspendClick()
234 } catch (UpdaterState.InvalidTransitionException e) { in onResumeClick()
254 + UpdaterState.getStateText(state) in onUpdaterStateChange()
259 if (state == UpdaterState.IDLE) { in onUpdaterStateChange()
261 } else if (state == UpdaterState.RUNNING) { in onUpdaterStateChange()
263 } else if (state == UpdaterState.PAUSED) { in onUpdaterStateChange()
[all …]
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/
DUpdateManagerTest.java116 assertEquals(mSubject.getUpdaterState(), UpdaterState.RUNNING); in stateIsRunningAndEngineStatusIsIdle_reApplyLastUpdate()
/bootable/recovery/updater_sample/
DREADME.md73 state - `UpdaterState`. To solve the first problem, sample app persists
74 `UpdaterState` on a device. When app is resumed, it checks if `UpdaterState`