Home
last modified time | relevance | path

Searched refs:getState (Results 1 – 25 of 506) sorted by relevance

12345678910>>...21

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachineTest.java78 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in setUp()
108 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testConnectInDisconnected()
112 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testConnectInDisconnected()
117 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testDisconnectInDisconnected()
120 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testDisconnectInDisconnected()
125 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testAudioConfigChangedInDisconnected()
128 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testAudioConfigChangedInDisconnected()
134 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testIncomingConnectedInDisconnected()
137 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testIncomingConnectedInDisconnected()
143 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testAllowedIncomingConnectionInDisconnected()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DMethodStateTest.java95 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionsToEapSim()
96 MethodState methodState = (MethodState) mEapStateMachine.getState(); in testProcessTransitionsToEapSim()
109 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionToEapAka()
110 MethodState methodState = (MethodState) mEapStateMachine.getState(); in testProcessTransitionToEapAka()
126 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionToEapAkaPrime()
127 MethodState methodState = (MethodState) mEapStateMachine.getState(); in testProcessTransitionToEapAkaPrime()
140 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionToEapMsChapV2()
141 MethodState methodState = (MethodState) mEapStateMachine.getState(); in testProcessTransitionToEapMsChapV2()
158 assertTrue(mEapStateMachine.getState() instanceof MethodState); in testProcessTransitionToEapTtls()
159 MethodState methodState = (MethodState) mEapStateMachine.getState(); in testProcessTransitionToEapTtls()
[all …]
DEapSimStateTest.java101 EapMethodState preNotification = (EapMethodState) mEapSimMethodStateMachine.getState(); in testProcessNotification()
104 assertEquals(preNotification, mEapSimMethodStateMachine.getState()); in testProcessNotification()
116 EapMethodState preProcess = (EapMethodState) mEapSimMethodStateMachine.getState(); in testProcessEapSimNotification()
127 assertEquals(preProcess, mEapSimMethodStateMachine.getState()); in testProcessEapSimNotification()
136 EapMethodState preProcess = (EapMethodState) mEapSimMethodStateMachine.getState(); in testProcessInvalidDecodeResult()
143 assertEquals(preProcess, mEapSimMethodStateMachine.getState()); in testProcessInvalidDecodeResult()
DEapAkaStateTest.java104 EapMethodState preNotification = (EapMethodState) mEapAkaMethodStateMachine.getState(); in testProcessNotification()
107 assertEquals(preNotification, mEapAkaMethodStateMachine.getState()); in testProcessNotification()
119 EapMethodState preProcess = (EapMethodState) mEapAkaMethodStateMachine.getState(); in testProcessEapAkaNotification()
130 assertEquals(preProcess, mEapAkaMethodStateMachine.getState()); in testProcessEapAkaNotification()
139 EapMethodState preProcess = (EapMethodState) mEapAkaMethodStateMachine.getState(); in testProcessInvalidDecodeResult()
146 assertEquals(preProcess, mEapAkaMethodStateMachine.getState()); in testProcessInvalidDecodeResult()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBasicCallTests.java127 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
129 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
135 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
137 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
160 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallRemoteDisconnect()
162 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallRemoteDisconnect()
178 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingCall()
179 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingCall()
208 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingVideoCall()
209 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingVideoCall()
[all …]
DCallAudioManagerTest.java124 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
148 when(call2.getState()).thenReturn(CallState.RINGING); in testUnmuteOfSecondIncomingCall()
186 when(call.getState()).thenReturn(CallState.ACTIVE);
219 when(call.getState()).thenReturn(CallState.ANSWERED);
239 when(call.getState()).thenReturn(CallState.ACTIVE);
254 when(call.getState()).thenReturn(CallState.CONNECTING);
274 when(call.getState()).thenReturn(CallState.DIALING);
283 when(call.getState()).thenReturn(CallState.ACTIVE);
303 when(call.getState()).thenReturn(CallState.CONNECTING);
324 when(call.getState()).thenReturn(CallState.DIALING);
[all …]
DTelecomSystemTest.java635 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in outgoingCallPhoneAccountSelected()
636 assertEquals(Call.STATE_DIALING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in outgoingCallPhoneAccountSelected()
641 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in outgoingCallPhoneAccountSelected()
642 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in outgoingCallPhoneAccountSelected()
683 emergencyIds.mCallId).getState()); in triggerEmergencyRedial()
685 emergencyIds.mCallId).getState()); in triggerEmergencyRedial()
1034 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
1036 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
1045 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
1046 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/telephony/
DCallInfoTest.java83 when(activeCall.getState()).thenReturn(Call.STATE_ACTIVE); in getActiveCall()
95 when(heldCall.getState()).thenReturn(Call.STATE_HOLDING); in getHeldCall()
108 when(outgoingCall.getState()).thenReturn(Call.STATE_PULLING_CALL); in getOutgoingCall()
120 when(ringingCall.getState()).thenReturn(Call.STATE_SIMULATED_RINGING); in getRingingOrSimulatedRingingCall()
139 when(activeCall.getState()).thenReturn(Call.STATE_ACTIVE); in hasOnlyDisconnectedCalls_withConnectedCall()
151 when(disconnectedCall.getState()).thenReturn(Call.STATE_DISCONNECTED); in hasOnlyDisconnectedCalls_withDisconnectedCallOnly()
163 when(connectingCall.getState()).thenReturn(Call.STATE_CONNECTING); in getForegroundCall_withConnectingCall()
175 when(pullingCall.getState()).thenReturn(Call.STATE_PULLING_CALL); in getForegroundCall_withPullingCall()
187 when(ringingCall.getState()).thenReturn(Call.STATE_CONNECTING); in getForegroundCall_withRingingCall()
199 when(disconnectedCall.getState()).thenReturn(Call.STATE_DISCONNECTED); in getForegroundCall_withNoMatchingCall()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConferenceBase.java143 int oldState = getState(); in setConferenceOnHold()
148 notifyStateChanged(oldState, getState()); in setConferenceOnHold()
155 int oldState = getState(); in setConferenceOnDialing()
160 notifyStateChanged(oldState, getState()); in setConferenceOnDialing()
167 int oldState = getState(); in setConferenceOnRinging()
172 notifyStateChanged(oldState, getState()); in setConferenceOnRinging()
179 int oldState = getState(); in setConferenceOnActive()
184 notifyStateChanged(oldState, getState()); in setConferenceOnActive()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRow.java104 && mSchedule.getState() == ScheduledRecording.STATE_RECORDING_NOT_STARTED; in isRecordingNotStarted()
110 && mSchedule.getState() == ScheduledRecording.STATE_RECORDING_IN_PROGRESS; in isRecordingInProgress()
116 && mSchedule.getState() == ScheduledRecording.STATE_RECORDING_FAILED; in isRecordingFailed()
122 && mSchedule.getState() == ScheduledRecording.STATE_RECORDING_CANCELED; in isScheduleCanceled()
127 && (mSchedule.getState() == ScheduledRecording.STATE_RECORDING_FAILED in isRecordingFinished()
128 || mSchedule.getState() == ScheduledRecording.STATE_RECORDING_CLIPPED in isRecordingFinished()
129 || mSchedule.getState() == ScheduledRecording.STATE_RECORDING_FINISHED); in isRecordingFinished()
135 && mSchedule.getState() == ScheduledRecording.STATE_RECORDING_FINISHED; in hasRecordedProgram()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivityTest.java155 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_ON); in onCreate_requestDiscoverableIntent_bypassforSetup_startsDiscoverableScan()
165 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_TURNING_ON); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_noDialog()
175 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_TURNING_ON); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_receiverRegistered()
185 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_TURNING_ON); in onCreate_requestDiscoverableIntent_bypassforSetup_turningOn_enableDiscovery()
202 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_ON); in onCreate_requestDiscoverableIntent_bypassforGeneric_noScanModeChange()
224 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestDisableIntent_noDialog()
234 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_ON); in onCreate_bluetoothOn_requestDisableIntent_startsDialog()
245 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestDiscoverableIntent_startsDialog()
256 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_ON); in onCreate_bluetoothOn_requestDiscoverableIntent_startsDialog()
267 when(mMockLocalBluetoothAdapter.getState()).thenReturn(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestEnableIntent_startsDialog()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java162 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, mMceStateMachine.getState()); in testDefaultConnectingState()
183 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectingToDisconnected()
204 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectingToConnected()
226 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectedWithMasDisconnected()
235 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectedWithMasDisconnected()
255 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testReceiveEmptyEvent()
260 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testReceiveEmptyEvent()
279 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSetMessageStatus()
305 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testDisconnect()
312 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, mMceStateMachine.getState()); in testDisconnect()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientDeviceBlock.java202 if (call.getState() == HfpClientCall.CALL_STATE_DIALING in handleCall()
203 || call.getState() == HfpClientCall.CALL_STATE_ALERTING in handleCall()
204 || call.getState() == HfpClientCall.CALL_STATE_ACTIVE in handleCall()
205 || call.getState() == HfpClientCall.CALL_STATE_HELD) { in handleCall()
211 } else if (call.getState() == HfpClientCall.CALL_STATE_INCOMING in handleCall()
212 || call.getState() == HfpClientCall.CALL_STATE_WAITING) { in handleCall()
219 } else if (call.getState() == HfpClientCall.CALL_STATE_TERMINATED) { in handleCall()
254 Log.d(mTAG, "prevConn " + prevConn.isClosing() + " new call " + newCall.getState()); in isDisconnectingToActive()
256 if (prevConn.isClosing() && prevConn.getCall().getState() != newCall.getState() in isDisconnectingToActive()
257 && newCall.getState() != HfpClientCall.CALL_STATE_TERMINATED) { in isDisconnectingToActive()
[all …]
DHfpClientConference.java82 if (connection.getState() == Connection.STATE_HOLDING in onConnectionAdded()
83 && getState() == Connection.STATE_ACTIVE) { in onConnectionAdded()
85 } else if (connection.getState() == Connection.STATE_ACTIVE in onConnectionAdded()
86 && getState() == Connection.STATE_HOLDING) { in onConnectionAdded()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientConnectionTest.java90 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_ACTIVE); in constructorWithCall()
113 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_DIALING); in constructorWithNumber()
132 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_DISCONNECTED); in onHfpDisconnected()
188 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_ACTIVE); in enterPrivateMode()
212 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_ACTIVE); in handleCallChanged_active()
234 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_HOLDING); in handleCallChanged_heldByResponseAndHold()
256 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_HOLDING); in handleCallChanged_held()
277 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_DIALING); in handleCallChanged_dialing()
286 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_DIALING); in handleCallChanged_alerting()
295 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_RINGING); in handleCallChanged_incoming()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java357 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doEnable()
401 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doEnable()
407 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doDisable()
442 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doDisable()
507 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testGattStartTimeout()
529 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testGattStartTimeout()
539 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testGattStopTimeout()
565 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testGattStopTimeout()
574 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testProfileStartTimeout()
619 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testProfileStopTimeout()
[all …]
/packages/apps/Dialer/java/com/android/incallui/call/
DCallList.java125 if (telecomCall.getState() == Call.STATE_CONNECTING) { in onCallAdded()
129 } else if (telecomCall.getState() == Call.STATE_RINGING) { in onCallAdded()
149 LogUtil.d("CallList.onCallAdded", "callState=" + call.getState()); in onCallAdded()
161 call.getState() == DialerCallState.INCOMING in onCallAdded()
162 || call.getState() == DialerCallState.CALL_WAITING; in onCallAdded()
209 if (call.getState() == DialerCallState.INCOMING in onCallAdded()
210 || call.getState() == DialerCallState.CALL_WAITING) { in onCallAdded()
234 if (call.getState() != DialerCallState.INCOMING) { in onCallAdded()
525 if (call.getState() == state) { in getCallWithState()
544 if ((call.getState() == DialerCallState.ACTIVE in hasNonParentActiveOrBackgroundCall()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipDialogTest.java51 assertEquals(SipDialog.STATE_EARLY, dialog.getState()); in testCreateEarlyDialog()
113 assertEquals(SipDialog.STATE_EARLY, dialog.getState()); in testFork()
117 assertEquals(SipDialog.STATE_EARLY, dialog.getState()); in testFork()
120 assertEquals(SipDialog.STATE_EARLY, dialogFork.getState()); in testFork()
136 assertEquals(SipDialog.STATE_EARLY, dialog.getState()); in testConfirmDialog()
140 assertEquals(SipDialog.STATE_CONFIRMED, dialog.getState()); in testConfirmDialog()
199 assertEquals(SipDialog.STATE_EARLY, dialog.getState()); in testCloseDialog()
204 assertEquals(SipDialog.STATE_CONFIRMED, dialog.getState()); in testCloseDialog()
207 assertEquals(SipDialog.STATE_CLOSED, dialog.getState()); in testCloseDialog()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningViewModelTest.java77 assertThat(mViewModel.getState().getValue()) in getState_defaultsToInitializing()
87 assertThat(mViewModel.getState().getValue()) in onReturnFromProvisioning_stateIsProvisioningFinalized()
97 assertThat(mViewModel.getState().getValue()) in onAdminIntegratedFlowInitiated_stateIsGettingProvisioningMode()
108 assertThat(mViewModel.getState().getValue()) in onShowUserConsent_stateIsShowingUserConsent()
119 assertThat(mViewModel.getState().getValue()) in onProvisioningStartedAfterUserConsent_stateIsProvisioningStarted()
130 assertThat(mViewModel.getState().getValue()) in onProvisioningInitiated_stateIsProvisioningInitialized()
201 assertThat(mViewModel.getState().getValue()) in onRoleHolderUpdateInitiated_works()
212 assertThat(mViewModel.getState().getValue()) in onRoleHolderProvisioningInitiated_works()
/packages/apps/Settings/tests/robotests/src/com/android/settings/print/
DPrintJobPreferenceControllerTest.java100 when(mPrintJobInfo.getState()).thenReturn(PrintJobInfo.STATE_CREATED); in updateUi_jobState_STATE_CREATED()
111 when(mPrintJobInfo.getState()).thenReturn(PrintJobInfo.STATE_QUEUED); in updateUi_jobState_STATE_QUEUED()
122 when(mPrintJobInfo.getState()).thenReturn(PrintJobInfo.STATE_STARTED); in updateUi_jobState_STATE_STARTED()
133 when(mPrintJobInfo.getState()).thenReturn(PrintJobInfo.STATE_QUEUED); in updateUi_jobState_STATE_QUEUED_and_jobInfo_CANCELLING()
145 when(mPrintJobInfo.getState()).thenReturn(PrintJobInfo.STATE_STARTED); in updateUi_jobState_STATE_STARTED_and_jobInfo_CANCELLING()
157 when(mPrintJobInfo.getState()).thenReturn(PrintJobInfo.STATE_FAILED); in updateUi_jobState_STATE_FAILED()
168 when(mPrintJobInfo.getState()).thenReturn(PrintJobInfo.STATE_BLOCKED); in updateUi_jobState_STATE_BLOCKED()
179 when(mPrintJobInfo.getState()).thenReturn(PrintJobInfo.STATE_BLOCKED); in updateUi_jobState_STATE_BLOCKED_and_jobInfo_CANCELLING()
/packages/services/Telephony/tests/src/com/android/phone/
DNumberVerificationManagerTest.java60 when(ss.getState()).thenReturn(ServiceState.STATE_IN_SERVICE); in setUp()
70 when(mForegroundCall.getState()).thenReturn(Call.State.IDLE); in setUp()
71 when(mRingingCall.getState()).thenReturn(Call.State.IDLE); in setUp()
72 when(mBackgroundCall.getState()).thenReturn(Call.State.IDLE); in setUp()
110 when(ss.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in testNoPhoneInServiceFailure()
125 when(mRingingCall.getState()).thenReturn(Call.State.ALERTING); in testAllLinesFullFailure()
141 when(ss.getState()).thenReturn(ServiceState.STATE_POWER_OFF); in testVerificationWorksWithOnePhoneInService()
154 when(fakeCall.getState()).thenReturn(Call.State.ACTIVE); in testVerificationWorksWithOnePhoneFull()
/packages/services/Mtp/src/com/android/mtp/
DDocumentLoader.java94 if (task.getState() == LoaderTask.STATE_LOADING) { in queryChildDocuments()
121 if (task.getState() == LoaderTask.STATE_LOADING) { in getNextTaskOrReleaseBackgroundThread()
130 Preconditions.checkState(existingTask.getState() != LoaderTask.STATE_LOADING); in getNextTaskOrReleaseBackgroundThread()
199 task.getState() != LoaderTask.STATE_CANCELLED && in run()
202 task.getState() != LoaderTask.STATE_LOADING); in run()
225 if (get(i).getState() == LoaderTask.STATE_COMPLETED) { in clearCompletedTasks()
296 switch (getState()) { in createCursor()
415 int getState() { in getState() method in DocumentLoader.LoaderTask
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTipTest.java120 assertThat(parcelTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in parcelable()
168 assertThat(mNewBatteryTip.getState()).isEqualTo(BatteryTip.StateType.HANDLED); in update_anomalyBecomeInvisible_stateHandled()
175 assertThat(mHandledBatteryTip.getState()).isEqualTo(BatteryTip.StateType.INVISIBLE); in update_handledAnomlayBecomeInvisible_stateInvisible()
181 assertThat(mInvisibleBatteryTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in update_newAnomalyComes_stateNew()
184 assertThat(mHandledBatteryTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in update_newAnomalyComes_stateNew()
190 assertThat(mInvisibleBatteryTip.getState()).isEqualTo(BatteryTip.StateType.HANDLED); in update_newHandledAnomalyComes_containHandledAnomaly()
202 assertThat(batteryTip.getState()).isEqualTo(BatteryTip.StateType.INVISIBLE); in sanityCheck_appUninstalled_stateInvisible()
214 assertThat(batteryTip.getState()).isEqualTo(BatteryTip.StateType.NEW); in sanityCheck_twoRestrictedAppsWhileUninstallOne_stateVisible()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtilsTest.java75 when(mRestrictAppTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeRestrictStateNew_returnActionRestrict()
83 when(mRestrictAppTip.getState()).thenReturn(BatteryTip.StateType.HANDLED); in testGetActionForBatteryTip_typeRestrictStateHandled_returnActionOpen()
91 when(mEarlyWarningTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeEarlyWarningStateNew_returnActionOpen()
99 when(mLowBatteryTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeLowBatteryStateNew_returnActionOpen()
108 when(mBatteryDefenderTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeBatteryDefenderStateNew_returnNullAction()
/packages/apps/Settings/src/com/android/settings/media/
DMediaOutputUtils.java65 + playbackState.getState()); in getActiveLocalMediaController()
67 if (playbackState.getState() == PlaybackState.STATE_STOPPED in getActiveLocalMediaController()
68 || playbackState.getState() == PlaybackState.STATE_NONE in getActiveLocalMediaController()
69 || playbackState.getState() == PlaybackState.STATE_ERROR) { in getActiveLocalMediaController()

12345678910>>...21