Searched refs:UpdaterState (Results 1 – 5 of 5) sorted by relevance
61 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 …]
29 public class UpdaterState { class66 public UpdaterState(int state) { in UpdaterState() method in UpdaterState
37 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 …]
116 assertEquals(mSubject.getUpdaterState(), UpdaterState.RUNNING); in stateIsRunningAndEngineStatusIsIdle_reApplyLastUpdate()
73 state - `UpdaterState`. To solve the first problem, sample app persists74 `UpdaterState` on a device. When app is resumed, it checks if `UpdaterState`