Searched refs:getState (Results 1 - 25 of 142) sorted by relevance

123456

/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
H A DBluetoothTestUtils.java21 * Behavior of getState() and isEnabled() are validated along the way.
24 if (adapter.getState() == BluetoothAdapter.STATE_ON) {
28 assertEquals(BluetoothAdapter.STATE_OFF, adapter.getState());
32 int state = adapter.getState();
43 assertEquals(BluetoothAdapter.STATE_TURNING_ON, adapter.getState());
/packages/services/Telephony/src/com/android/services/telephony/
H A DGsmConnection.java65 if (getState() == STATE_ACTIVE || getState() == STATE_HOLDING) {
H A DEmergencyCallHelper.java162 if (isOkToCall(state.getState(), mPhone.getState())) {
196 PhoneConstants.State phoneState = mPhone.getState();
197 int serviceState = mPhone.getServiceState().getState();
H A DImsConferenceController.java159 Log.d(this, "recalc - %s %s supportsConf? %s", connection.getState(), connection,
178 switch (connection.getState()) {
193 Log.d(this, "recalc - %s %s", conference.getState(), conference);
203 switch (conference.getState()) {
338 conference.setState(conferenceHostConnection.getState());
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
H A DVideoUtils.java52 final int state = call.getState();
57 return VideoUtils.isVideoCall(call) && call.getState() == Call.State.ACTIVE;
64 final int state = call.getState();
79 return isVideoCall(call) && call.getState() == Call.State.ACTIVE;
H A DVideoPauseController.java46 mState = call.getState();
50 public int getState() { method in class:VideoPauseController.CallContext
347 return isVideoCall(callContext) && callContext.getState() == Call.State.ACTIVE;
377 return call != null && (call.getState() == Call.State.CALL_WAITING
378 || call.getState() == Call.State.INCOMING);
388 return call != null && Call.State.isDialing(call.getState());
398 return call != null && call.getState() == Call.State.ONHOLD;
H A DCallCardPresenter.java156 startContactInfoSearch(call, true, call.getState() == Call.State.INCOMING);
269 maybeShowProgressSpinner(previousPrimary.getState(),
276 mPrimary.getState() == Call.State.INCOMING);
284 maybeShowProgressSpinner(previousPrimary.getState(),
296 mSecondary.getState() == Call.State.INCOMING);
315 callState = mPrimary.getState();
370 maybeShowProgressSpinner(mPrimary.getState(), sessionModificationState);
434 mPrimary.getState(),
570 startContactInfoSearch(call, isPrimary, call.getState() == Call.State.INCOMING);
618 mPrimary.getVideoState(), mPrimary.getState());
[all...]
H A DCallList.java92 Log.d(this, "onCallAdded: callState=" + call.getState());
94 if (call.getState() == Call.State.INCOMING ||
95 call.getState() == Call.State.CALL_WAITING) {
408 if (call.getState() == state) {
429 final int state = call.getState();
494 if (call.getState() == Call.State.DISCONNECTED) {
523 Preconditions.checkState(call.getState() == Call.State.DISCONNECTED);
563 final int state = call.getState();
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
H A DSipConnection.java139 if (getPhone() != null && getState() == STATE_ACTIVE
140 && getPhone().getRingingCall().getState() != Call.State.WAITING) {
144 mOriginalConnection.getState() == Call.State.ACTIVE) {
159 if (getPhone() != null && getState() == STATE_HOLDING &&
160 getPhone().getForegroundCall().getState() != Call.State.DIALING) {
164 mOriginalConnection.getState() == Call.State.HOLDING) {
222 return call != null && call.getState().isRinging() &&
231 Call.State newState = mOriginalConnection.getState();
268 if (getState() == STATE_ACTIVE || getState()
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
H A DHfpClientConference.java97 if (connection.getState() == Connection.STATE_HOLDING &&
98 getState() == Connection.STATE_ACTIVE) {
100 } else if (connection.getState() == Connection.STATE_ACTIVE &&
101 getState() == Connection.STATE_HOLDING) {
H A DHfpClientConnection.java81 getState() != Connection.STATE_DISCONNECTED;
93 int state = call.getState();
126 (getState() == STATE_ACTIVE || getState() == STATE_HOLDING ? CAPABILITY_HOLD : 0));
233 return "HfpClientConnection{" + getAddress() + "," + stateToString(getState()) + "," +
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DScheduledRecordingsAdapter.java67 if (scheduledRecording.getState() == mState) {
79 if (scheduledRecording.getState() == mState) {
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
H A DRecordingTestUtils.java61 Assert.assertEquals("state", expected.getState(), actual.getState());
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DBasicCallTests.java96 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState());
97 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState());
101 mInCallServiceFixtureX.getCall(ids.mCallId).getState());
103 mInCallServiceFixtureY.getCall(ids.mCallId).getState());
114 mInCallServiceFixtureX.getCall(ids.mCallId).getState());
116 mInCallServiceFixtureY.getCall(ids.mCallId).getState());
131 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState());
132 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState());
157 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState());
158 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState());
[all...]
H A DCallAudioManagerTest.java91 when(call.getState()).thenReturn(CallState.ACTIVE);
139 when(call.getState()).thenReturn(CallState.ACTIVE);
152 when(call.getState()).thenReturn(CallState.CONNECTING);
173 when(call.getState()).thenReturn(CallState.DIALING);
182 when(call.getState()).thenReturn(CallState.ACTIVE);
199 when(call.getState()).thenReturn(CallState.RINGING);
226 when(call.getState()).thenReturn(CallState.DISCONNECTED);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DCandidateViewButton.java54 mUpState = d.getState();
/packages/services/Telecomm/src/com/android/server/telecom/
H A DRingbackPlayer.java51 Preconditions.checkState(call.getState() == CallState.DIALING);
H A DCallAudioManager.java141 CallState.toString(call.getState()));
143 if (mCallStateToCalls.get(call.getState()) != null) {
144 mCallStateToCalls.get(call.getState()).add(call);
149 onCallEnteringState(call, call.getState());
158 CallState.toString(call.getState()));
167 onCallLeavingState(call, call.getState());
215 if (mCallStateToCalls.get(call.getState()) != null) {
216 mCallStateToCalls.get(call.getState()).remove(call);
301 if (mCallStateToCalls.get(call.getState()) != null) {
302 mCallStateToCalls.get(call.getState())
[all...]
/packages/apps/Settings/src/com/android/settings/applications/
H A DAppStateSmsPremBridge.java53 app.extraInfo = getState(pkg);
56 public SmsState getState(String pkg) { method in class:AppStateSmsPremBridge
/packages/apps/Settings/src/com/android/settings/qstile/
H A DDevelopmentTiles.java64 getQsTile().getState() == Tile.STATE_INACTIVE ? "true" : "false");
90 getQsTile().getState() == Tile.STATE_INACTIVE ? "visual_bars" : "");
/packages/services/Telephony/src/com/android/phone/
H A DPhoneUtils.java166 (frC.fgCall.getState() == Call.State.DISCONNECTING) &&
226 if (ringingCall.getState() == Call.State.WAITING) {
232 if (DBG) log("answerCall: call state = " + ringingCall.getState());
253 final boolean isRealIncomingCall = isRealIncomingCall(ringingCall.getState());
345 Call.State state = ringing.getState();
410 if (call.getState() == Call.State.ACTIVE && cm.hasActiveBgCall()) {
597 // After calling CallManager#dial(), getState() will return different state.
598 final boolean initiallyIdle = app.mCM.getState() == PhoneConstants.State.IDLE;
695 if (fgCall.getState() == Call.State.ACTIVE) {
864 MmiCode.State state = mmiCode.getState();
[all...]
H A DMMIDialogActivity.java66 if (mCM.getState() == PhoneConstants.State.OFFHOOK) {
110 if (mmiCode.getState() != MmiCode.State.PENDING) {
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DTimerItem.java94 if (timer.getState() != mLastState) {
95 mLastState = timer.getState();
/packages/apps/Settings/src/com/android/settings/drawable/
H A DDrawableWrapper.java94 public int[] getState() { method in class:DrawableWrapper
95 return mDrawable.getState();
/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DStopwatch.java50 public State getState() { return mState; } method in class:Stopwatch

Completed in 533 milliseconds

123456