Searched refs:UpdaterState (Results 1 – 5 of 5) sorted by relevance
61 private UpdaterState mUpdaterState = new UpdaterState(UpdaterState.IDLE);209 setUpdaterState(UpdaterState.PAUSED); in suspend()218 setUpdaterState(UpdaterState.RUNNING); in resume()265 setUpdaterState(UpdaterState.IDLE); in cancelRunningUpdate()274 setUpdaterState(UpdaterState.IDLE); in resetUpdate()287 setUpdaterState(UpdaterState.RUNNING); in applyUpdate()436 case UpdaterState.IDLE: in synchronizeUpdaterStateWithUpdateEngineStatus()437 case UpdaterState.ERROR: in synchronizeUpdaterStateWithUpdateEngineStatus()438 case UpdaterState.PAUSED: in synchronizeUpdaterStateWithUpdateEngineStatus()449 case UpdaterState.RUNNING: in synchronizeUpdaterStateWithUpdateEngineStatus()[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`