Home
last modified time | relevance | path

Searched refs:mState (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/fragment/src/android/fragment/cts/
DStrictFragment.java36 int mState; field in StrictFragment
70 if (mState == expect) { in checkState()
79 + stateToString(mState) + "; expected " + expectString.toString()); in checkState()
83 if (mState < minState) { in checkStateAtLeast()
85 + stateToString(mState) + "; expected at least " + stateToString(minState)); in checkStateAtLeast()
100 mState = ATTACHED; in onAttach()
112 mState = CREATED; in onCreate()
121 int fromState = mState; in onActivityCreated()
122 mState = ACTIVITY_CREATED; in onActivityCreated()
131 mState = STARTED; in onStart()
[all …]
DReentrantFragment.java41 if (fromState == mFromState && mState == mToState in onStateChanged()
/cts/hostsidetests/time/device/fake_tzps_app/src/com/android/time/cts/fake_tzps_app/tzps/
DFakeTimeZoneProviderService.java42 private int mState = PROVIDER_STATE_DISABLED; field in FakeTimeZoneProviderService
51 mState = PROVIDER_STATE_INITIALIZING; in onStartUpdates()
56 mState = PROVIDER_STATE_DISABLED; in onStopUpdates()
61 return mState; in getState()
66 mState = FakeTimeZoneProviderAppShellHelper.PROVIDER_STATE_UNCERTAIN; in fakeReportUncertain()
71 mState = FakeTimeZoneProviderAppShellHelper.PROVIDER_STATE_UNCERTAIN; in fakeReportUncertainLegacy()
76 mState = PROVIDER_STATE_PERM_FAILED; in fakeReportPermanentFailure()
86 mState = PROVIDER_STATE_CERTAIN; in fakeReportSuggestion()
95 mState = PROVIDER_STATE_CERTAIN; in fakeReportSuggestionLegacy()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecTunneledPlayer.java63 private int mState; field in MediaCodecTunneledPlayer
88 mState = STATE_IDLE; in MediaCodecTunneledPlayer()
100 if (mState == STATE_PLAYING) { in MediaCodecTunneledPlayer()
208 if (mState != STATE_IDLE) { in prepare()
209 throw new IllegalStateException("Expected STATE_IDLE, got " + mState); in prepare()
254 mState = STATE_PREPARED; in prepare()
328 if (mState != STATE_PREPARED) { in startCodec()
329 throw new IllegalStateException("Expected STATE_PREAPRED, got " + mState); in startCodec()
341 mState = STATE_STARTED; in startCodec()
346 if (mState != STATE_STARTED) { in play()
[all …]
DMediaCodecClearKeyPlayer.java78 private int mState; field in MediaCodecClearKeyPlayer
153 mState = STATE_IDLE; in MediaCodecClearKeyPlayer()
399 mState = STATE_PAUSED; in prepare()
489 if (mState == STATE_PLAYING || mState == STATE_PREPARING) { in start()
491 } else if (mState == STATE_IDLE) { in start()
492 mState = STATE_PREPARING; in start()
494 } else if (mState != STATE_PAUSED) { in start()
509 mState = STATE_PLAYING; in start()
542 if (mState == STATE_PAUSED) { in pause()
544 } else if (mState != STATE_PLAYING) { in pause()
[all …]
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DGlitchAnalyzer.h38 return mState; in getState()
99 << mState << "\n"; in analyze()
103 bool gotLock = (mState == STATE_LOCKED) || (mGlitchCount > 0); in analyze()
122 ALOGD("st = %d, #gl = %3d,", mState, mGlitchCount); in printStatus()
167 mStateFrameCounters[mState]++; // count how many frames we are in each state in processInputFrame()
169 switch (mState) { in processInputFrame()
173 mState = STATE_IMMUNE; in processInputFrame()
183 mState = STATE_WAITING_FOR_SIGNAL; in processInputFrame()
189 mState = STATE_WAITING_FOR_LOCK; in processInputFrame()
207 mState = STATE_LOCKED; in processInputFrame()
[all …]
DLatencyAnalyzer.h444 return mState; in getState()
454 mState = STATE_MEASURE_BACKGROUND; in reset()
474 return mState == STATE_DONE; in isDone()
485 << std::setw(8) << mState << "\n"; in analyze()
487 << convertStateToText(mState) << "\n"; in analyze()
492 if (mState != STATE_GOT_DATA) { in analyze()
520 mState = STATE_DONE; in analyze()
545 return mState == STATE_GOT_DATA; in isRecordingComplete()
549 ALOGD("latency: st = %d = %s", mState, convertStateToText(mState)); in printStatus()
553 echo_state nextState = mState; in processInputFrame()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/util/
DFingerprintCallbackHelper.java84 private final State mState; field in FingerprintCallbackHelper
88 mState.mErrorsReceived.add(errorCode); in onAuthenticationError()
94 mState.mAcquiredReceived.add(helpCode); in onAuthenticationHelp()
100 mState.mNumAuthAccepted++; in onAuthenticationSucceeded()
106 mState.mNumAuthRejected++; in onAuthenticationFailed()
112 mState = new State(); in FingerprintCallbackHelper()
120 bundle -> bundle.putBundle(KEY, mState.toBundle())); in updateJournal()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DConditionTest.java46 private final int mState = Condition.STATE_FALSE; field in ConditionTest
57 Condition condition = new Condition(mConditionId, mSummary, mState); in testDescribeContents()
63 Condition condition = new Condition(mConditionId, mSummary, mState); in testConstructor()
65 condition = new Condition(mConditionId, mSummary, mState, mSource); in testConstructor()
71 assertEquals(mState, condition.state); in testConstructor()
81 Condition original = new Condition(mConditionId, mSummary, mState); in testWriteToParcel()
83 original = new Condition(mConditionId, mSummary, mState, mSource); in testWriteToParcel()
93 assertEquals(mState, copy.state); in testWriteToParcel()
103 Condition original = new Condition(mConditionId, mSummary, mState); in testCopy()
105 original = new Condition(mConditionId, mSummary, mState, mSource); in testCopy()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/
DBiometricCallbackHelper.java93 private final State mState; field in BiometricCallbackHelper
98 mState.mErrorsReceived.add(errorCode); in onAuthenticationError()
105 mState.mAcquiredReceived.add(helpCode); in onAuthenticationHelp()
112 mState.mNumAuthAccepted++; in onAuthenticationSucceeded()
119 mState.mNumAuthRejected++; in onAuthenticationFailed()
125 mState.mNegativeButtonPressed = true; in onNegativeButtonPressed()
131 mState = new BiometricCallbackHelper.State(); in BiometricCallbackHelper()
139 bundle -> bundle.putBundle(KEY, mState.toBundle())); in updateJournal()
DBiometricServiceState.java51 @AuthSessionState public final int mState; field in BiometricServiceState
68 mState = state; in BiometricServiceState()
74 sb.append("AuthSessionState: ").append(mState).append(". "); in toString()
/cts/tests/tests/view/src/android/view/cts/
DDisplayRefreshRateCtsActivity.java78 private int mState = STATE_START; field in DisplayRefreshRateCtsActivity.Renderer
88 switch (mState) { in onDrawFrame()
91 mState = STATE_WARMUP; in onDrawFrame()
98 mState = STATE_TEST; in onDrawFrame()
107 mState = STATE_DONE; in onDrawFrame()
114 mState = STATE_START; in onDrawFrame()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java87 private final AppState mState; field in ConnectivityBackgroundTestActivity
106 mState = new AppState(); in ConnectivityBackgroundTestActivity()
172 mState.setPowerDisconnected(); in configureFromSystemServices()
332 mState.setScreenOn(); in onReceive()
338 mState.setScreenOff(); in onReceive()
344 mState.setPowerConnected(); in onReceive()
350 mState.setPowerDisconnected(); in onReceive()
362 mState.setNetwork(network); in createNetworkCallback()
370 if (network.equals(mState.mNetwork)) { in createNetworkCallback()
371 mState.setNetwork(null); in createNetworkCallback()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java112 private int mState = STATE_OFF; field in CameraIntentsActivity
172 if (mState == STATE_STARTED) { in onReceivedIntent()
182 mState = STATE_FAILED; in onReceivedIntent()
193 mState = STATE_FAILED; in onReceivedIntent()
196 if (mState != STATE_FAILED) { in onReceivedIntent()
207 mState = STATE_SUCCESSFUL; in updateSuccessState()
210 setPassButton(mState == STATE_SUCCESSFUL); in updateSuccessState()
387 mState = STATE_SUCCESSFUL; in onResume()
391 if (mState == STATE_SUCCESSFUL) { in onResume()
396 } else if (mState != STATE_OFF) { in onResume()
[all …]
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/
DMockSrvccCall.java47 private final int mState; field in MockSrvccCall
58 mState = convertCallState(call.callState); in MockSrvccCall()
89 return mState; in getState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBluetoothChatService.java78 private int mState; field in BluetoothChatService
96 mState = STATE_NONE; in BluetoothChatService()
110 mState = STATE_NONE; in BluetoothChatService()
122 if (D) Log.d(TAG, "setState() " + mState + " -> " + state); in setState()
123 mState = state; in setState()
132 return mState; in getState()
204 if (mState == STATE_CONNECTING) { in connect()
302 if (mState != STATE_CONNECTED) return; in write()
384 while (mState != STATE_CONNECTED) { in run()
397 switch (mState) { in run()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0814/
Dpoc.cpp363 vorbis_dsp_state *mState = new vorbis_dsp_state; in main() local
364 vorbis_dsp_init(mState, mVi); in main()
376 vorbis_dsp_synthesis(mState, &pack, DECODE_PACKET); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9527/
Dpoc.cpp87 vorbis_dsp_state *mState = new vorbis_dsp_state; in main() local
88 vorbis_dsp_init(mState, mVi); in main()
100 vorbis_dsp_synthesis(mState, &pack, DECODE_PACKET); in main()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DAdbUser.java62 @Nullable UserState mState; field in AdbUser.MutableUser
91 return mMutableUser.mState; in state()
144 stringBuilder.append(", state=" + mMutableUser.mState); in toString()
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/
DTvInteractiveAppViewTest.java70 private int mState = -1; field in TvInteractiveAppViewTest.MockCallback
77 mState = state; in onStateChanged()
182 && mCallback.mState in testStartInteractiveApp()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricTestBase.java200 if (serviceState.mState != state) { in waitForState()
201 Log.d(TAG, "Not in state " + state + " yet, current: " + serviceState.mState); in waitForState()
214 if (serviceState.mState == state) { in waitForStateNotEqual()
215 Log.d(TAG, "Not out of state yet, current: " + serviceState.mState); in waitForStateNotEqual()
264 if (state.mState == STATE_AUTH_PENDING_CONFIRM) { in successfullyAuthenticate()
273 STATE_AUTH_IDLE, getCurrentState().mState); in successfullyAuthenticate()
302 assertEquals(state.toString(), STATE_SHOWING_DEVICE_CREDENTIAL, state.mState); in successfullyEnterCredential()
325 assertEquals(state.toString(), STATE_AUTH_IDLE, state.mState); in successfullyEnterCredential()
338 assertEquals("Not idle after requesting cancellation", state.mState, STATE_AUTH_IDLE); in cancelAuthentication()
655 assertEquals(state.toString(), STATE_SHOWING_DEVICE_CREDENTIAL, state.mState); in waitForCredentialIdle()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java81 private int mState = STATE_OFF; field in CameraOrientationActivity
232 mState = STATE_OFF; in shutdownCamera()
237 if (mState != STATE_OFF) { in startPreview()
241 mState = STATE_OFF; in startPreview()
322 mState = STATE_PREVIEW; in startPreview()
330 if(mState == STATE_PREVIEW) { in onClick()
334 mState = STATE_CAPTURE; in onClick()
507 if (!mSizeAdjusted && mState == STATE_PREVIEW) {
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestImsCallSessionImpl.java47 private int mState = ImsCallSessionImplBase.State.IDLE; field in TestImsCallSessionImpl
97 return mState; in getState()
102 return (mState == ImsCallSessionImplBase.State.ESTABLISHED) ? true : false; in isInCall()
786 if (mState != state) { in setState()
787 Log.d(LOG_TAG, "ImsCallSession :: " + mState + " >> " + state); in setState()
788 mState = state; in setState()
793 return (mState == ImsCallSessionImplBase.State.TERMINATED) ? true : false; in isInTerminated()
797 return (mState == State.RENEGOTIATING) ? true : false; in isRenegotiating()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioMultichannelMixdownActivity.java175 public int mState = STATUS_NOTRUN; field in AudioMultichannelMixdownActivity.TestPhase
189 mState = STATUS_NOTRUN; in clearState()
200 mState = STATUS_COMPLETE; in analyze()
232 public int mState = TESTSTATUS_NOT_RUN; field in AudioMultichannelMixdownActivity.TestManager
384 if (mTestManager.mState == TESTSTATUS_BADSTART) { in displayTestResults()
420 if (testPhase.mState != TestPhase.STATUS_COMPLETE) { in displayTestResults()
725 mTestManager.mState = TestManager.TESTSTATUS_RUNNING; in startTest()
756 if (mTestManager.mState != TestManager.TESTSTATUS_BADSTART) { in advanceTestPhase()
757 mTestManager.mState = TestManager.TESTSTATUS_CANCELED; in advanceTestPhase()
762 mTestManager.mState = TestManager.TESTSTATUS_COMPLETE; in advanceTestPhase()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java100 private int mState = STATE_OFF; field in CameraFormatsActivity
488 mState = STATE_OFF; in shutdownCamera()
523 if (mState != STATE_OFF) { in startPreview()
527 mState = STATE_OFF; in startPreview()
537 mState = STATE_PREVIEW; in startPreview()
578 mState = STATE_NO_CALLBACKS; in startPreview()
731 if (mProcessInProgress || mState != STATE_PREVIEW) return; in onPreviewFrame()
764 mState = STATE_NO_CALLBACKS; in onPreviewFrame()

12