Home
last modified time | relevance | path

Searched refs:PhoneUtils (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Phone/src/com/android/phone/
DInCallControlState.java110 manageConferenceVisible = PhoneUtils.isConferenceCall(fgCall); in update()
120 canAddCall = PhoneUtils.okToAddCall(mCM); in update()
131 canSwap = PhoneUtils.okToSwapCalls(mCM); in update()
132 canMerge = PhoneUtils.okToMergeCalls(mCM); in update()
146 speakerOn = PhoneUtils.isSpeakerOn(mInCallScreen); in update()
157 boolean isECM = PhoneUtils.isPhoneInEcm(fgCall.getPhone()); in update()
163 muteIndicatorOn = PhoneUtils.getMute(); in update()
DCallCard.java518 if (PhoneUtils.isConferenceCall(call)) { in displayMainCallStatus()
541 CallerInfo info = PhoneUtils.getCallerInfo(getContext(), null /* conn */); in displayMainCallStatus()
551 if (o instanceof PhoneUtils.CallerInfoToken) { in displayMainCallStatus()
553 ((PhoneUtils.CallerInfoToken) o).currentInfo); in displayMainCallStatus()
565 if (obj instanceof PhoneUtils.CallerInfoToken) { in displayMainCallStatus()
566 info = ((PhoneUtils.CallerInfoToken) o).currentInfo; in displayMainCallStatus()
587 PhoneUtils.CallerInfoToken info = in displayMainCallStatus()
588 PhoneUtils.startGetCallerInfo(getContext(), conn, this, call); in displayMainCallStatus()
607 } else if (o instanceof PhoneUtils.CallerInfoToken){ in displayMainCallStatus()
608 CallerInfo ci = ((PhoneUtils.CallerInfoToken) o).currentInfo; in displayMainCallStatus()
[all …]
DCallController.java245 if (PhoneUtils.hasPhoneProviderExtras(intent)) { in placeCall()
348 number = PhoneUtils.getInitialNumber(intent); in placeCallInternal()
359 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUri); in placeCallInternal()
366 } catch (PhoneUtils.VoiceMailNumberMissingException ex) { in placeCallInternal()
470 int callStatus = PhoneUtils.placeCall(mApp, in placeCallInternal()
478 case PhoneUtils.CALL_STATUS_DIALED: in placeCallInternal()
525 if (PhoneUtils.isPhoneInEcm(phone) && !isEmergencyNumber) { in placeCallInternal()
535 PhoneUtils.setMute(false); in placeCallInternal()
562 case PhoneUtils.CALL_STATUS_DIALED_MMI: in placeCallInternal()
575 case PhoneUtils.CALL_STATUS_FAILED: in placeCallInternal()
DInCallUiState.java356 providerLabel = PhoneUtils.getProviderLabel(mContext, intent); in setProviderInfo()
357 providerIcon = PhoneUtils.getProviderIcon(mContext, intent); in setProviderInfo()
358 providerGatewayUri = PhoneUtils.getProviderGatewayUri(intent); in setProviderInfo()
359 providerAddress = PhoneUtils.formatProviderUri(providerGatewayUri); in setProviderInfo()
DCallNotifier.java387 PhoneUtils.hangupRingingCall(ringing); in onNewRingingConnection()
440 if (PhoneUtils.isRealIncomingCall(state)) { in onNewRingingConnection()
496 if (PhoneUtils.isPhoneInEcm(phone)) { in ignoreAllIncomingCalls()
563 PhoneUtils.CallerInfoToken cit = PhoneUtils.startGetCallerInfo( in startIncomingCallQuery()
793 PhoneUtils.setAudioMode(mCM); in onPhoneStateChanged()
959 PhoneUtils.hangupRingingCall(mCM.getFirstActiveRingingCall()); in onQueryComplete()
999 PhoneUtils.hangupRingingCall(mCM.getFirstActiveRingingCall()); in onCustomRingtoneQueryTimeout()
1065 if (PhoneUtils.isRealIncomingCall(ringingCall.getState())) { in onDisconnect()
1275 PhoneUtils.placeCall(mApplication, phone, number, null, false, null); in onDisconnect()
1299 PhoneUtils.turnOnSpeaker(mApplication, false, true); in resetAudioStateAfterDisconnect()
[all …]
DInCallScreen.java753 PhoneUtils.restoreMuteState(); in onResume()
780 mMmiStartedDialog = PhoneUtils.displayMMIInitiate(this, mmiCode, in onResume()
1216 PhoneUtils.switchHoldingAndActive(mCM.getFirstActiveBgCall()); in internalResolveIntent()
1404 PhoneUtils.mergeCalls(mCM); in handleCallKey()
1439 PhoneUtils.switchHoldingAndActive( in handleCallKey()
1567 PhoneUtils.dumpCallState(mPhone); in onKeyDown()
1568 PhoneUtils.dumpCallManager(); in onKeyDown()
1950 if (DBG) PhoneUtils.dumpCallState(mPhone); in onDisconnect()
2065 PhoneUtils.cancelMmiCode(mPhone); in onMMICancel()
2093 PhoneUtils.displayMMIComplete(mPhone, mApp, mmiCode, null, null); in onMMIComplete()
[all …]
DManageConferenceUtils.java256 PhoneUtils.CallerInfoToken info = in updateManageConferenceRow()
257 PhoneUtils.startGetCallerInfo(mInCallScreen, in updateManageConferenceRow()
288 callerName = PhoneUtils.getPresentationString(mInCallScreen, presentation); in displayCallerInfoForConferenceRow()
326 PhoneUtils.hangup(connection); in endConferenceConnection()
342 PhoneUtils.separateCall(connection); in separateConferenceConnection()
DEmergencyCallHelper.java389 int callStatus = PhoneUtils.placeCall(mApp, in placeEmergencyCall()
401 case PhoneUtils.CALL_STATUS_DIALED: in placeEmergencyCall()
405 case PhoneUtils.CALL_STATUS_DIALED_MMI: in placeEmergencyCall()
406 case PhoneUtils.CALL_STATUS_FAILED: in placeEmergencyCall()
DPhoneApp.java352 PhoneUtils.cancelMmiCode(phone);
367 PhoneUtils.restoreSpeakerMode(getApplicationContext());
371 PhoneUtils.turnOnSpeaker(getApplicationContext(), false, false);
421 PhoneUtils.turnOnSpeaker(getApplicationContext(), inDockMode, true);
575 PhoneUtils.initializeConnectionHandler(mCM); in onCreate()
624 PhoneUtils.setAudioMode(mCM); in onCreate()
1151 boolean isSpeakerInUse = (state == Phone.State.OFFHOOK) && PhoneUtils.isSpeakerOn(this); in updateWakeState()
1193 PhoneUtils.hasDisconnectedConnections(phone) && isShowingCallScreen; in updateWakeState()
1310 || PhoneUtils.isSpeakerOn(this) in updateProximitySensorMode()
1447 PhoneUtils.displayMMIComplete(phone, getInstance(), mmiCode, null, null); in onMMIComplete()
[all …]
DOtaUtils.java447 int callStatus = PhoneUtils.placeCall(context, in startNonInteractiveOtasp()
454 if (callStatus == PhoneUtils.CALL_STATUS_DIALED) { in startNonInteractiveOtasp()
518 number = PhoneUtils.getInitialNumber(intent); in isOtaspCallIntent()
519 } catch (PhoneUtils.VoiceMailNumberMissingException ex) { in isOtaspCallIntent()
606 if (state == PhoneUtils.isSpeakerOn(mContext)) { in setSpeaker()
615 PhoneUtils.turnOnSpeaker(mContext, state, true); in setSpeaker()
798 boolean speakerOn = PhoneUtils.isSpeakerOn(mContext); in otaShowListeningScreen()
931 boolean speakerOn = PhoneUtils.isSpeakerOn(mContext); in otaShowInProgressScreen()
1278 if (PhoneUtils.hangup(mApplication.mCM) == false) { in onClickOtaEndButton()
1291 boolean isChecked = !PhoneUtils.isSpeakerOn(mContext); in onClickOtaSpeakerButton()
DBluetoothHandsfree.java1982 PhoneUtils.answerCall(mCM.getFirstActiveRingingCall()); in initializeHeadsetAtParser()
2001 PhoneUtils.hangup(PhoneApp.getInstance().mCM); in initializeHeadsetAtParser()
2035 PhoneUtils.answerCall(mCM.getFirstActiveRingingCall()); in initializeHandsfreeAtParser()
2082 PhoneUtils.hangupActiveCall(mCM.getActiveFgCall()); in initializeHandsfreeAtParser()
2084 PhoneUtils.hangupRingingCall(mCM.getFirstActiveRingingCall()); in initializeHandsfreeAtParser()
2086 PhoneUtils.hangupHoldingCall(mCM.getFirstActiveBgCall()); in initializeHandsfreeAtParser()
2346 result = PhoneUtils.hangupRingingCall(ringingCall); in initializeHandsfreeAtParser()
2348 result = PhoneUtils.hangupHoldingCall(backgroundCall); in initializeHandsfreeAtParser()
2360 PhoneUtils.hangupRingingAndActive(phone); in initializeHandsfreeAtParser()
2366 PhoneUtils.hangup(PhoneApp.getInstance().mCM); in initializeHandsfreeAtParser()
[all …]
DNotificationMgr.java696 if ((mCM.getState() == Phone.State.OFFHOOK) && PhoneUtils.getMute()) { in updateMuteNotification()
904 } else if (o instanceof PhoneUtils.CallerInfoToken) { in updateInCallNotification()
905 callerInfo = ((PhoneUtils.CallerInfoToken) o).currentInfo; in updateInCallNotification()
1006 if (PhoneUtils.isConferenceCall(currentCall)) { in updateInCallNotification()
1011 PhoneUtils.CallerInfoToken cit = in updateInCallNotification()
1012 PhoneUtils.startGetCallerInfo(mContext, currentCall, this, this); in updateInCallNotification()
1013 expandedViewLine2 = PhoneUtils.getCompactNameFromCallerInfo(cit.currentInfo, mContext); in updateInCallNotification()
1126 + PhoneUtils.getCompactNameFromCallerInfo(ci, mContext)); in onQueryComplete()
DPhoneInterfaceManager.java152 hungUp = PhoneUtils.hangupRingingAndActive(mPhone); in handleMessage()
155 hungUp = PhoneUtils.hangup(mCM); in handleMessage()
371 PhoneUtils.answerAndEndActive(mCM, mCM.getFirstActiveRingingCall()); in answerRingingCallInternal()
376 PhoneUtils.answerCall(mCM.getFirstActiveRingingCall()); in answerRingingCallInternal()
DRinger.java227 PhoneUtils.setAudioMode(); in stopRing()
323 PhoneUtils.setAudioMode(); in makeLooper()
DSipCallOptionHandler.java141 boolean voipSupported = PhoneUtils.isVoipSupported(); in onCreate()
179 if (!PhoneUtils.hasPhoneProviderExtras(mIntent)) { in onCreate()
355 if (PhoneUtils.getSipPhoneFromUri(cm, p.getUriString()) != null) return; in createSipPhoneIfNeeded()
DOutgoingCallBroadcaster.java279 PhoneUtils.checkAndCopyPhoneProviderExtras(intent, newIntent); in startSipCallOptionHandler()
531 PhoneUtils.sendEmptyFlash(PhoneApp.getPhone()); in processIntent()
597 PhoneUtils.checkAndCopyPhoneProviderExtras(intent, broadcastIntent); in processIntent()
DInCallScreenShowActivation.java122 if (callStatus == PhoneUtils.CALL_STATUS_DIALED) { in onCreate()
DSipBroadcastReceiver.java50 if (!PhoneUtils.isVoipSupported()) { in onReceive()
DPhoneUtils.java75 public class PhoneUtils { class
232 private PhoneUtils() { in PhoneUtils() method in PhoneUtils
614 PhoneUtils.isRoutableViaGateway(number)) { // Filter out MMI, OTA and other codes. in placeCall()
743 PhoneUtils.turnOnSpeaker(app, false, true); in placeCall()
1278 throws PhoneUtils.VoiceMailNumberMissingException { in getInitialNumber()
DDTMFTwelveKeyDialer.java845 mShortTone = PhoneUtils.useShortDtmfTones(phone, phone.getContext()); in startTone()
DCallFeaturesSetting.java1669 if (PhoneUtils.isVoipSupported()) { in createSipCallSettings()
/packages/apps/Phone/tests/src/com/android/phone/unit/
DCnapTest.java24 import com.android.phone.PhoneUtils;
73 return PhoneUtils.modifyForSpecialCnapCases( in modifyForSpecialCnapCases()