Lines Matching refs:mState
56 private State mState = new State();
274 return mState.check(State.STATE_OPEN);
395 return (mIsActive && !mState.check(State.STATE_CLOSED));
442 synchronized (mState) {
443 if (mState.current == State.STATE_OPEN) {
589 synchronized (mState) {
592 if (mState.current == State.STATE_UNPREPARED) {
594 mState.current = State.STATE_PREPARED;
596 if (mState.current == State.STATE_PREPARED) {
599 mState.current = State.STATE_OPEN;
601 if (mState.current == State.STATE_OPEN) {
613 synchronized (mState) {
614 if (mState.current == State.STATE_OPEN) {
617 mState.current = State.STATE_CLOSED;
624 synchronized (mState) {
626 if (mState.current == State.STATE_CLOSED) {
627 mState.current = State.STATE_PREPARED;
633 synchronized (mState) {
634 if (mState.current == State.STATE_OPEN) {
637 } else if (mState.current != State.STATE_DESTROYED
638 && mState.current != State.STATE_UNPREPARED) {
640 mState.current = State.STATE_DESTROYED;