Lines Matching refs:mState
65 private int mState; field in LocalPrintJob
81 mState = STATE_INIT; in LocalPrintJob()
96 if (mState != STATE_INIT) { in start()
97 Log.w(TAG, "Invalid start state " + mState); in start()
105 mState = STATE_DISCOVERY; in start()
109 if (mState == STATE_DISCOVERY) { in start()
121 if (DEBUG) Log.d(TAG, "restart() " + mPrintJob + " in state " + mState); in restart()
122 if (mState == STATE_SECURITY) { in restart()
129 if (DEBUG) Log.d(TAG, "cancel() " + mPrintJob + " in state " + mState); in cancel()
131 switch (mState) { in cancel()
136 mState = STATE_CANCEL; in cancel()
142 mState = STATE_CANCEL; in cancel()
154 if (mState != STATE_DISCOVERY) { in onPrinterFound()
161 if (DEBUG) Log.d(TAG, "onPrinterFound() " + printer.name + " state=" + mState); in onPrinterFound()
176 mState = STATE_CAPABILITIES; in onPrinterFound()
197 if (mState != STATE_DISCOVERY) { in onConnectionComplete()
213 if (mState != STATE_DISCOVERY) { in onConnectionDelayed()
232 if (mState != STATE_CAPABILITIES) { in onCapabilities()
259 mState = STATE_SECURITY; in deliver()
264 mState = STATE_DELIVERING; in deliver()
289 mState = STATE_CANCEL; in handleJobStatus()
307 if (mState == STATE_CANCEL) { in handleJobStatus()
317 if (mState == STATE_CANCEL) { in handleJobStatus()
332 mState = STATE_SECURITY; in handleBadCertificate()
360 } else if (mState == STATE_CANCEL) { in finish()
365 mState = STATE_DONE; in finish()