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

123456789

/packages/services/Car/car-support-lib/src/android/support/car/media/
H A DCarAudioRecord.java50 /** See {@link AudioRecord#getState() }. */
51 public abstract int getState() throws CarNotConnectedException; method in class:CarAudioRecord
H A DCarAudioRecordEmbedded.java72 public int getState() throws CarNotConnectedException { method in class:CarAudioRecordEmbedded
73 return mAudioRecord.getState();
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
H A DScheduleRow.java132 && mSchedule.getState() == ScheduledRecording.STATE_RECORDING_NOT_STARTED;
140 && mSchedule.getState() == ScheduledRecording.STATE_RECORDING_IN_PROGRESS;
148 && mSchedule.getState() == ScheduledRecording.STATE_RECORDING_CANCELED;
153 && (mSchedule.getState() == ScheduledRecording.STATE_RECORDING_FAILED
154 || mSchedule.getState() == ScheduledRecording.STATE_RECORDING_CLIPPED
155 || mSchedule.getState() == ScheduledRecording.STATE_RECORDING_FINISHED);
/packages/services/Telephony/src/com/android/services/telephony/
H A DGsmConnection.java79 if (getState() == STATE_ACTIVE || getState() == STATE_HOLDING) {
H A DEmergencyCallStateListener.java156 if (isOkToCall(state.getState())) {
174 return (mPhone.getState() == PhoneConstants.State.OFFHOOK) ||
182 int serviceState = mPhone.getServiceState().getState();
184 mPhone.getState(), serviceState, mNumRetriesSoFar);
H A DImsConferenceController.java200 Log.d(this, "recalc - %s %s supportsConf? %s", connection.getState(), connection,
220 switch (connection.getState()) {
235 Log.d(this, "recalc - %s %s", conference.getState(), conference);
245 switch (conference.getState()) {
375 conference.setState(conferenceHostConnection.getState());
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DBasicCallTests.java82 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureX.getCall(ids.mCallId).getState());
83 assertEquals(Call.STATE_ACTIVE, mInCallServiceFixtureY.getCall(ids.mCallId).getState());
87 mInCallServiceFixtureX.getCall(ids.mCallId).getState());
89 mInCallServiceFixtureY.getCall(ids.mCallId).getState());
100 mInCallServiceFixtureX.getCall(ids.mCallId).getState());
102 mInCallServiceFixtureY.getCall(ids.mCallId).getState());
117 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState());
118 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState());
143 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureX.getCall(ids.mCallId).getState());
144 assertEquals(Call.STATE_RINGING, mInCallServiceFixtureY.getCall(ids.mCallId).getState());
[all...]
H A DCallAudioManagerTest.java96 when(call.getState()).thenReturn(CallState.ACTIVE);
119 when(call2.getState()).thenReturn(CallState.RINGING);
157 when(call.getState()).thenReturn(CallState.ACTIVE);
205 when(call.getState()).thenReturn(CallState.ACTIVE);
218 when(call.getState()).thenReturn(CallState.CONNECTING);
239 when(call.getState()).thenReturn(CallState.DIALING);
248 when(call.getState()).thenReturn(CallState.ACTIVE);
265 when(call.getState()).thenReturn(CallState.RINGING);
292 when(call.getState()).thenReturn(CallState.DISCONNECTED);
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
H A DSipConnection.java140 if (getPhone() != null && getState() == STATE_ACTIVE
141 && getPhone().getRingingCall().getState() != Call.State.WAITING) {
145 mOriginalConnection.getState() == Call.State.ACTIVE) {
160 if (getPhone() != null && getState() == STATE_HOLDING &&
161 getPhone().getForegroundCall().getState() != Call.State.DIALING) {
165 mOriginalConnection.getState() == Call.State.HOLDING) {
235 return call != null && call.getState().isRinging() &&
244 Call.State newState = mOriginalConnection.getState();
281 if (getState() == STATE_ACTIVE || getState()
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
H A DHfpClientConference.java96 if (connection.getState() == Connection.STATE_HOLDING &&
97 getState() == Connection.STATE_ACTIVE) {
99 } else if (connection.getState() == Connection.STATE_ACTIVE &&
100 getState() == Connection.STATE_HOLDING) {
H A DHfpClientDeviceBlock.java195 if (call.getState() == BluetoothHeadsetClientCall.CALL_STATE_DIALING ||
196 call.getState() == BluetoothHeadsetClientCall.CALL_STATE_ALERTING ||
197 call.getState() == BluetoothHeadsetClientCall.CALL_STATE_ACTIVE ||
198 call.getState() == BluetoothHeadsetClientCall.CALL_STATE_WAITING) {
203 } else if (call.getState() == BluetoothHeadsetClientCall.CALL_STATE_INCOMING) {
208 } else if (call.getState() == BluetoothHeadsetClientCall.CALL_STATE_TERMINATED) {
243 Log.d(TAG, "prevConn " + prevConn.isClosing() + " new call " + newCall.getState());
246 newCall.getState() != BluetoothHeadsetClientCall.CALL_STATE_TERMINATED) {
275 if (connection.getState() != Connection.STATE_DISCONNECTED) {
H A DHfpClientConnection.java96 (getState() == STATE_ACTIVE || getState() == STATE_HOLDING ? CAPABILITY_HOLD : 0));
118 getState() != Connection.STATE_DISCONNECTED;
136 int state = mCurrentCall.getState();
282 return "HfpClientConnection{" + getAddress() + "," + stateToString(getState()) + "," +
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/
H A DSession.java54 int getState(); method in interface:Session
/packages/services/Telephony/tests/src/com/android/services/telephony/
H A DMockTelephonyConnection.java52 when(mMockRadioConnection.getState()).thenReturn(Call.State.ACTIVE);
55 when(mMockCall.getState()).thenReturn(Call.State.ACTIVE);
H A DEmergencyCallStateListenerTest.java102 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE);
130 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE);
160 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE);
192 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE);
222 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE);
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
H A DAnswerProximitySensor.java48 if (call.getState() != State.INCOMING) {
110 return display.getState() == Display.STATE_ON;
121 if (call.getState() != State.INCOMING) {
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
H A DUiCall.java42 public int getState() { method in class:UiCall
/packages/apps/Dialer/java/com/android/incallui/
H A DVideoPauseController.java82 && (call.getState() == DialerCall.State.CALL_WAITING
83 || call.getState() == DialerCall.State.INCOMING);
249 mPrevCallState = call.getState();
330 return call != null && call.isVideoCall() && call.getState() == DialerCall.State.ACTIVE;
/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.java52 Preconditions.checkState(call.getState() == CallState.DIALING);
H A DCallAudioManager.java143 CallState.toString(call.getState()));
145 if (mCallStateToCalls.get(call.getState()) != null) {
146 mCallStateToCalls.get(call.getState()).add(call);
151 onCallEnteringState(call, call.getState());
160 CallState.toString(call.getState()));
169 onCallLeavingState(call, call.getState());
225 if (mCallStateToCalls.get(call.getState()) != null) {
226 mCallStateToCalls.get(call.getState()).remove(call);
314 if (mCallStateToCalls.get(call.getState()) != null) {
315 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/TV/tests/common/src/com/android/tv/testing/dvr/
H A DRecordingTestUtils.java72 Assert.assertEquals("state", expected.getState(), actual.getState());
/packages/services/Telephony/src/com/android/phone/
H A DPhoneUtils.java165 (frC.fgCall.getState() == Call.State.DISCONNECTING) &&
225 if (ringingCall.getState() == Call.State.WAITING) {
231 if (DBG) log("answerCall: call state = " + ringingCall.getState());
252 final boolean isRealIncomingCall = isRealIncomingCall(ringingCall.getState());
344 Call.State state = ringing.getState();
409 if (call.getState() == Call.State.ACTIVE && cm.hasActiveBgCall()) {
596 // After calling CallManager#dial(), getState() will return different state.
597 final boolean initiallyIdle = app.mCM.getState() == PhoneConstants.State.IDLE;
694 if (fgCall.getState() == Call.State.ACTIVE) {
863 MmiCode.State state = mmiCode.getState();
[all...]
/packages/services/Telephony/src/com/android/phone/otasp/
H A DOtaspActivationService.java141 if (mPhone.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) {
182 logd("onOtaspCallStateChanged: " + mPhone.getState());
183 if (mPhone.getState().equals(PhoneConstants.State.IDLE)) {

Completed in 2549 milliseconds

123456789