OSDN Git Service

Add Log.wtf when transitionTo is used improperly
authorMitchell Wills <mwills@google.com>
Thu, 11 Aug 2016 18:05:03 +0000 (11:05 -0700)
committerMitchell Wills <mwills@google.com>
Thu, 11 Aug 2016 20:54:48 +0000 (13:54 -0700)
commit8d3ed21583a8d83047cee1735cf669e131809e73
treec83c2488a903f9fedb04341fac96fd065ab66b2e
parent0d85bc88036241d4edac69cc95a745f40f44e08f
Add Log.wtf when transitionTo is used improperly

Using transitionTo in exit/enter (except in the terminal state) is
documented as undefined behavior and may cause unexpected results.
The current implementation appears to finish the current transition and
then transition to the new target state.

TEST=flash and play with the phone, no sign of immediate WTFs

Change-Id: I38a34b85c43d53c51514339587fc1269a069a454
core/java/com/android/internal/util/StateMachine.java