Home
last modified time | relevance | path

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

12345678910>>...18

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBasicCallTests.java108 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
110 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
116 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
118 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallLocalDisconnect()
141 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testSingleOutgoingCallRemoteDisconnect()
143 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testSingleOutgoingCallRemoteDisconnect()
159 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingCall()
160 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingCall()
189 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingVideoCall()
190 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in testTelecomManagerAcceptRingingVideoCall()
[all …]
DCallAudioManagerTest.java123 when(call.getState()).thenReturn(CallState.ACTIVE); in testUnmuteOfSecondIncomingCall()
147 when(call2.getState()).thenReturn(CallState.RINGING); in testUnmuteOfSecondIncomingCall()
185 when(call.getState()).thenReturn(CallState.ACTIVE);
218 when(call.getState()).thenReturn(CallState.ANSWERED);
238 when(call.getState()).thenReturn(CallState.ACTIVE);
253 when(call.getState()).thenReturn(CallState.CONNECTING);
273 when(call.getState()).thenReturn(CallState.DIALING);
282 when(call.getState()).thenReturn(CallState.ACTIVE);
302 when(call.getState()).thenReturn(CallState.NEW);
312 when(call.getState()).thenReturn(CallState.AUDIO_PROCESSING);
[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()
1009 mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
1011 mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
1020 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
1021 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState()); in startAndMakeActiveOutgoingCall()
[all …]
DConnectionServiceFocusManagerTest.java212 int previousState = activeCall.getState(); in testCallStateChangedAffectCallFocus()
213 when(activeCall.getState()).thenReturn(CallState.ON_HOLD); in testCallStateChangedAffectCallFocus()
215 (Call) activeCall, previousState, activeCall.getState()); in testCallStateChangedAffectCallFocus()
224 when(newActivateCall.getState()).thenReturn(CallState.ACTIVE); in testCallStateChangedAffectCallFocus()
239 when(mNewCall.getState()).thenReturn(CallState.ACTIVE); in testCallStateChangedDoesNotAffectCallFocusIfConnectionServiceIsDifferent()
246 when(mActiveCall.getState()).thenReturn(CallState.ON_HOLD); in testCallStateChangedDoesNotAffectCallFocusIfConnectionServiceIsDifferent()
365 when(call.getState()).thenReturn(state); in createFakeCall()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java231 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doEnable()
273 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doEnable()
277 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doDisable()
310 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doDisable()
364 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testGattStartTimeout()
386 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testGattStartTimeout()
396 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testGattStopTimeout()
422 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testGattStopTimeout()
431 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testProfileStartTimeout()
476 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in testProfileStopTimeout()
[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()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DStateMachineTest.java233 Assert.assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
238 Assert.assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
335 Assert.assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
340 Assert.assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
542 Assert.assertEquals(smEnterExitTranstionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest()
546 Assert.assertEquals(smEnterExitTranstionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest()
550 Assert.assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
554 Assert.assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
560 Assert.assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
568 Assert.assertEquals(smEnterExitTranstionToTest.mS3, lr.getState()); in testStateMachineEnterExitTransitionToTest()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java160 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, mMceStateMachine.getState()); in testDefaultConnectingState()
181 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectingToDisconnected()
202 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectingToConnected()
224 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectedWithMasDisconnected()
233 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectedWithMasDisconnected()
253 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testReceiveEmptyEvent()
258 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testReceiveEmptyEvent()
277 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSetMessageStatus()
303 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testDisconnect()
310 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, mMceStateMachine.getState()); in testDisconnect()
[all …]
/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/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/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientDeviceBlock.java198 if (call.getState() == BluetoothHeadsetClientCall.CALL_STATE_DIALING in handleCall()
199 || call.getState() == BluetoothHeadsetClientCall.CALL_STATE_ALERTING in handleCall()
200 || call.getState() == BluetoothHeadsetClientCall.CALL_STATE_ACTIVE in handleCall()
201 || call.getState() == BluetoothHeadsetClientCall.CALL_STATE_HELD) { in handleCall()
206 } else if (call.getState() == BluetoothHeadsetClientCall.CALL_STATE_INCOMING in handleCall()
207 || call.getState() == BluetoothHeadsetClientCall.CALL_STATE_WAITING) { in handleCall()
213 } else if (call.getState() == BluetoothHeadsetClientCall.CALL_STATE_TERMINATED) { in handleCall()
248 Log.d(mTAG, "prevConn " + prevConn.isClosing() + " new call " + newCall.getState()); in isDisconnectingToActive()
250 if (prevConn.isClosing() && prevConn.getCall().getState() != newCall.getState() in isDisconnectingToActive()
251 && newCall.getState() != BluetoothHeadsetClientCall.CALL_STATE_TERMINATED) { in isDisconnectingToActive()
[all …]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnection.java140 if (getPhone() != null && getState() == STATE_ACTIVE in onHold()
141 && getPhone().getRingingCall().getState() != Call.State.WAITING) { in onHold()
145 mOriginalConnection.getState() == Call.State.ACTIVE) { in onHold()
160 if (getPhone() != null && getState() == STATE_HOLDING && in onUnhold()
161 getPhone().getForegroundCall().getState() != Call.State.DIALING) { in onUnhold()
165 mOriginalConnection.getState() == Call.State.HOLDING) { in onUnhold()
235 return call != null && call.getState().isRinging() && in isValidRingingCall()
244 Call.State newState = mOriginalConnection.getState(); in updateState()
281 if (getState() == STATE_ACTIVE || getState() == STATE_HOLDING) { in buildCallCapabilities()
/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/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/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningViewModelTest.java68 assertThat(mViewModel.getState().getValue()) in getState_defaultsToInitializing()
78 assertThat(mViewModel.getState().getValue()) in onReturnFromProvisioning_stateIsProvisioningFinalized()
88 assertThat(mViewModel.getState().getValue()) in onAdminIntegratedFlowInitiated_stateIsGettingProvisioningMode()
99 assertThat(mViewModel.getState().getValue()) in onShowUserConsent_stateIsShowingUserConsent()
110 assertThat(mViewModel.getState().getValue()) in onProvisioningStartedAfterUserConsent_stateIsProvisioningStarted()
121 assertThat(mViewModel.getState().getValue()) in onProvisioningInitiated_stateIsProvisioningInitialized()
/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/Bluetooth/tests/unit/src/com/android/bluetooth/telephony/
DBluetoothInCallServiceTest.java245 when(activeCall.getState()).thenReturn(Call.STATE_ACTIVE); in testListCurrentCallsOneCall()
264 when(silentRingingCall.getState()).thenReturn(Call.STATE_RINGING); in testListCurrentCallsSilentRinging()
300 when(confCall1.getState()).thenReturn(Call.STATE_ACTIVE); in testConferenceInProgressCDMA()
301 when(confCall2.getState()).thenReturn(Call.STATE_ACTIVE); in testConferenceInProgressCDMA()
361 when(foregroundCall.getState()).thenReturn(Call.STATE_ACTIVE); in testListCurrentCallsCdmaHold()
362 when(heldCall.getState()).thenReturn(Call.STATE_ACTIVE); in testListCurrentCallsCdmaHold()
409 when(confCall1.getState()).thenReturn(Call.STATE_ACTIVE); in testListCurrentCallsCdmaConference()
410 when(confCall2.getState()).thenReturn(Call.STATE_ACTIVE); in testListCurrentCallsCdmaConference()
454 when(waitingCall.getState()).thenReturn(Call.STATE_RINGING); in testWaitingCallClccResponse()
474 when(newCall.getState()).thenReturn(Call.STATE_NEW); in testNewCallClccResponse()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/service/
DSettingsService.java156 StateUtil.getState(state, mStateMap).onStart(); in onStartFragment()
161 StateUtil.getState(state, mStateMap).onResume(); in onResumeFragment()
165 StateUtil.getState(state, mStateMap).onStop(); in onStopFragment()
169 StateUtil.getState(state, mStateMap).onPause(); in onPauseFragment()
173 StateUtil.getState(state, mStateMap).onDestroy(); in onDestroyFragment()
178 StateUtil.getState(state, mStateMap).onPreferenceTreeClick(key, status); in onPreferenceClick()
/packages/services/BuiltInPrintService/src/com/android/bips/
DP2pPermissionManager.java69 if (getState() == State.TEMPORARILY_DISABLED) { in reset()
86 return getState() == State.ALLOWED; in isP2pEnabled()
96 } else if (getState() != State.DISABLED) { in applyPermissionChange()
127 State state = getState(); in request()
190 if (getState() == State.DENIED) { in requestLocation()
204 State state = getState(); in listenForPreferenceChanges()
266 public State getState() { in getState() method
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtilsTest.java76 when(mRestrictAppTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeRestrictStateNew_returnActionRestrict()
84 when(mRestrictAppTip.getState()).thenReturn(BatteryTip.StateType.HANDLED); in testGetActionForBatteryTip_typeRestrictStateHandled_returnActionOpen()
92 when(mEarlyWarningTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeEarlyWarningStateNew_returnActionOpen()
100 when(mLowBatteryTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeLowBatteryStateNew_returnActionOpen()
109 when(mBatteryDefenderTip.getState()).thenReturn(BatteryTip.StateType.NEW); in testGetActionForBatteryTip_typeBatteryDefenderStateNew_returnActionBatteryDefender()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/activecall/
DInCallViewModelTest.java94 when(mMockActiveCall.getState()).thenReturn(Call.STATE_ACTIVE); in setup()
95 when(mMockDialingCall.getState()).thenReturn(Call.STATE_DIALING); in setup()
96 when(mMockHoldingCall.getState()).thenReturn(Call.STATE_HOLDING); in setup()
97 when(mMockRingingCall.getState()).thenReturn(Call.STATE_RINGING); in setup()
146 when(mMockActiveCall.getState()).thenReturn(Call.STATE_HOLDING); in testStateChange_triggerCallListUpdate()
147 when(mMockHoldingCall.getState()).thenReturn(Call.STATE_ACTIVE); in testStateChange_triggerCallListUpdate()

12345678910>>...18