Home
last modified time | relevance | path

Searched refs:mPhone (Results 1 – 25 of 32) sorted by relevance

12

/packages/services/Telephony/src/com/android/services/telephony/
DPstnIncomingCallNotifier.java64 private final Phone mPhone; field in PstnIncomingCallNotifier
96 mPhone = phone; in PstnIncomingCallNotifier()
109 if (mPhone != null) { in registerForNotifications()
110 Log.i(this, "Registering: %s", mPhone); in registerForNotifications()
111 mPhone.registerForNewRingingConnection(mHandler, EVENT_NEW_RINGING_CONNECTION, null); in registerForNotifications()
112 mPhone.registerForCallWaiting(mHandler, EVENT_CDMA_CALL_WAITING, null); in registerForNotifications()
113 mPhone.registerForUnknownConnection(mHandler, EVENT_UNKNOWN_CONNECTION, null); in registerForNotifications()
118 if (mPhone != null) { in unregisterForNotifications()
119 Log.i(this, "Unregistering: %s", mPhone); in unregisterForNotifications()
120 mPhone.unregisterForNewRingingConnection(mHandler); in unregisterForNotifications()
[all …]
DPstnPhoneCapabilitiesNotifier.java44 private final Phone mPhone; field in PstnPhoneCapabilitiesNotifier
64 mPhone = phone; in PstnPhoneCapabilitiesNotifier()
76 if (mPhone != null) { in registerForNotifications()
77 Log.d(this, "Registering: " + mPhone); in registerForNotifications()
78 mPhone.registerForVideoCapabilityChanged(mHandler, EVENT_VIDEO_CAPABILITIES_CHANGED, in registerForNotifications()
84 if (mPhone != null) { in unregisterForNotifications()
85 Log.d(this, "Unregistering: " + mPhone); in unregisterForNotifications()
86 mPhone.unregisterForVideoCapabilityChanged(mHandler); in unregisterForNotifications()
95 PhoneUtils.makePstnPhoneAccountHandle(mPhone); in handleVideoCapabilitesChanged()
97 TelecomManager telecomMgr = TelecomManager.from(mPhone.getContext()); in handleVideoCapabilitesChanged()
DEmergencyCallHelper.java87 private Phone mPhone; // The phone that will attempt to place the call. field in EmergencyCallHelper
131 mPhone = phone; in startSequenceInternal()
162 if (isOkToCall(state.getState(), mPhone.getState())) { in onServiceStateChanged()
196 PhoneConstants.State phoneState = mPhone.getState(); in onRetryTimeout()
197 int serviceState = mPhone.getServiceState().getState(); in onRetryTimeout()
266 mPhone.setRadioPower(true); in powerOnRadio()
298 mPhone = null; in cleanup()
316 mPhone.registerForServiceStateChanged(mHandler, MSG_SERVICE_STATE_CHANGED, null); in registerForServiceStateChanged()
321 if (mPhone != null) { in unregisterForServiceStateChanged()
322 mPhone.unregisterForServiceStateChanged(mHandler); // Safe even if unnecessary in unregisterForServiceStateChanged()
DTelecomAccountRegistry.java66 private final Phone mPhone; field in TelecomAccountRegistry.AccountEntry
76 mPhone = phone; in AccountEntry()
80 mIncomingCallNotifier = new PstnIncomingCallNotifier((Phone) mPhone); in AccountEntry()
81 mPhoneCapabilitiesNotifier = new PstnPhoneCapabilitiesNotifier((Phone) mPhone, in AccountEntry()
99 mPhone, dummyPrefix, isEmergency); in registerPstnPhoneAccount()
102 int subId = mPhone.getSubId(); in registerPstnPhoneAccount()
109 String subNumber = mPhone.getLine1Number(); in registerPstnPhoneAccount()
171 mIsVideoCapable = mPhone.isVideoEnabled(); in registerPstnPhoneAccount()
246 PhoneGlobals.getInstance().getCarrierConfigForSubId(mPhone.getSubId()); in isCarrierVideoPauseSupported()
258 PhoneGlobals.getInstance().getCarrierConfigForSubId(mPhone.getSubId()); in isCarrierVideoPresenceSupported()
[all …]
DTtyManager.java36 private final Phone mPhone; field in TtyManager
50 mPhone.queryTTYMode(obtainMessage(MSG_GET_TTY_MODE_RESPONSE));
74 mPhone = phone; in TtyManager()
96 mPhone.setTTYMode(telecomModeToPhoneMode(ttyMode), in updateTtyMode()
104 mPhone.setUiTTYMode(telecomModeToPhoneMode(ttyMode), null); in updateUiTtyMode()
/packages/services/Telephony/src/com/android/phone/
DCdmaSystemSelectListPreference.java39 private Phone mPhone; field in CdmaSystemSelectListPreference
45 mPhone = PhoneGlobals.getPhone(); in CdmaSystemSelectListPreference()
47 mPhone.queryCdmaRoamingPreference( in CdmaSystemSelectListPreference()
72 Settings.Global.getInt(mPhone.getContext().getContentResolver(), in onDialogClosed()
85 Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onDialogClosed()
89 mPhone.setCdmaRoamingPreference(statusCdmaRoamingMode, mHandler in onDialogClosed()
122 mPhone.getContext().getContentResolver(), in handleQueryCdmaRoamingPreference()
132 mPhone.getContext().getContentResolver(), in handleQueryCdmaRoamingPreference()
151 Settings.Global.putInt(mPhone.getContext().getContentResolver(), in handleSetCdmaRoamingPreference()
155 mPhone.queryCdmaRoamingPreference(obtainMessage(MESSAGE_GET_ROAMING_PREFERENCE)); in handleSetCdmaRoamingPreference()
[all …]
DMobileNetworkSettings.java122 private Phone mPhone; field in MobileNetworkSettings
172 mPhone.setDataRoamingEnabled(true); in onClick()
194 final int phoneSubId = mPhone.getSubId(); in onPreferenceTreeClick()
215 int settingsNetworkMode = android.provider.Settings.Global.getInt(mPhone.getContext(). in onPreferenceTreeClick()
240 int settingsNetworkMode = android.provider.Settings.Global.getInt(mPhone.getContext(). in onPreferenceTreeClick()
399 mPhone = PhoneFactory.getPhone( in updatePhone()
402 if (mPhone == null) { in updatePhone()
404 mPhone = PhoneGlobals.getPhone(); in updatePhone()
499 mButtonDataRoam.setChecked(mPhone.getDataRoamingEnabled()); in onResume()
530 boolean isLteOnCdma = mPhone.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE; in updateBody()
[all …]
DCallFeaturesSetting.java104 private Phone mPhone; field in CallFeaturesSetting
120 android.provider.Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onPreferenceTreeClick()
141 if (ImsManager.isEnhanced4gLteModeSettingEnabledByUser(mPhone.getContext())) { in onPreferenceChange()
149 startActivity(new Intent(mPhone.getContext(), in onPreferenceChange()
184 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
203 if (telephonyManager.isMultiSimEnabled() || !SipUtil.isVoipSupported(mPhone.getContext())) { in onResume()
218 PhoneGlobals.getInstance().getCarrierConfigForSubId(mPhone.getSubId()); in onResume()
239 int phoneType = mPhone.getPhoneType(); in onResume()
265 if (ImsManager.isVtEnabledByPlatform(mPhone.getContext())) { in onResume()
267 ImsManager.isEnhanced4gLteModeSettingEnabledByUser(mPhone.getContext()) in onResume()
[all …]
DGsmUmtsAdditionalCallOptions.java27 private Phone mPhone; field in GsmUmtsAdditionalCallOptions
39 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
50 mCLIRButton.init(this, false, mPhone); in onCreate()
54 mCLIRButton.init(this, true, mPhone); in onCreate()
55 mCWButton.init(this, true, mPhone); in onCreate()
62 mCLIRButton.init(this, false, mPhone); in onCreate()
88 ((CallWaitingCheckBoxPreference) pref).init(this, false, mPhone); in onFinished()
DCdmaSubscriptionListPreference.java45 private Phone mPhone; field in CdmaSubscriptionListPreference
51 mPhone = PhoneFactory.getDefaultPhone(); in CdmaSubscriptionListPreference()
57 int cdmaSubscriptionMode = Settings.Global.getInt(mPhone.getContext().getContentResolver(), in setCurrentCdmaSubscriptionModeValue()
98 mPhone.setCdmaSubscription(statusCdmaSubscriptionMode, mHandler in onDialogClosed()
118 mPhone = PhoneFactory.getDefaultPhone(); in handleSetCdmaSubscriptionMode()
124 Settings.Global.putInt(mPhone.getContext().getContentResolver(), in handleSetCdmaSubscriptionMode()
DEmergencyCallbackModeExitDialog.java75 private Phone mPhone = null; field in EmergencyCallbackModeExitDialog
81 mPhone = PhoneGlobals.getInstance().getPhoneInEcm(); in onCreate()
85 Log.i(TAG, "ECMModeExitDialog launched - isInEcm: " + isInEcm + " phone:" + mPhone); in onCreate()
86 if (mPhone == null || !isInEcm) { in onCreate()
100 mPhone.registerForEcmTimerReset(mTimerResetHandler, ECM_TIMER_RESET, null); in onCreate()
117 if (mPhone != null) { in onDestroy()
118 mPhone.unregisterForEcmTimerReset(mHandler); in onDestroy()
234 mPhone.exitEmergencyCallbackMode(); in onCreateDialog()
DPhoneInterfaceManager.java146 private Phone mPhone; field in PhoneInterfaceManager
267 mPhone.getNeighboringCids(onCompleted); in handleMessage()
549 mPhone.nvReadItem((Integer) request.argument, onCompleted); in handleMessage()
577 mPhone.nvWriteItem(idValue.first, idValue.second, onCompleted); in handleMessage()
587 mPhone.nvWriteCdmaPrl((byte[]) request.argument, onCompleted); in handleMessage()
597 mPhone.nvResetConfig((Integer) request.argument, onCompleted); in handleMessage()
645 mPhone.invokeOemRilRequestRaw((byte[])request.argument, onCompleted); in handleMessage()
736 mPhone.getModemActivityInfo(onCompleted); in handleMessage()
862 mPhone = phone; in PhoneInterfaceManager()
868 PreferenceManager.getDefaultSharedPreferences(mPhone.getContext()); in PhoneInterfaceManager()
[all …]
DMMIDialogActivity.java46 private Phone mPhone = PhoneGlobals.getPhone(); field in MMIDialogActivity
87 final List<? extends MmiCode> codes = mPhone.getPendingMmiCodes(); in showMMIDialog()
106 int phoneType = mPhone.getPhoneType(); in onMMIComplete()
108 PhoneUtils.displayMMIComplete(mPhone, this, mmiCode, null, null); in onMMIComplete()
126 PhoneUtils.cancelMmiCode(mPhone); in onMMICancel()
DCallWaitingCheckBoxPreference.java23 private Phone mPhone; field in CallWaitingCheckBoxPreference
40 mPhone = phone; in init()
44 mPhone.getCallWaiting(mHandler.obtainMessage(MyHandler.MESSAGE_GET_CALL_WAITING, in init()
56 mPhone.setCallWaiting(isChecked(), in onClick()
135 mPhone.getCallWaiting(obtainMessage(MESSAGE_GET_CALL_WAITING, in handleSetCallWaitingResponse()
DCellBroadcastSms.java170 private Phone mPhone; field in CellBroadcastSms
184 mPhone.activateCellBroadcastSms(RILConstants.CDMA_CELL_BROADCAST_SMS_ENABLED, in onPreferenceTreeClick()
186 android.provider.Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onPreferenceTreeClick()
191 mPhone.activateCellBroadcastSms(RILConstants.CDMA_CELL_BROADCAST_SMS_DISABLED, in onPreferenceTreeClick()
193 android.provider.Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onPreferenceTreeClick()
340 mPhone = PhoneGlobals.getPhone(); in onCreate()
426 mPhone.getContext().getContentResolver(), in onResume()
437 mPhone.getCellBroadcastSmsConfig(Message.obtain(mHandler, MESSAGE_GET_CB_SMS_CONFIG)); in onResume()
446 mPhone.setCellBroadcastSmsConfig(CellBroadcastSmsConfig.getCbSmsAllValues(), in onPause()
548 mPhone.activateCellBroadcastSms(RILConstants.CDMA_CELL_BROADCAST_SMS_DISABLED, in handleMessage()
[all …]
DCLIRListPreference.java26 private Phone mPhone; field in CLIRListPreference
43 mPhone.setOutgoingCallerIdDisplay(findIndexOfValue(getValue()), in onDialogClosed()
52 mPhone = phone; in init()
55 mPhone.getOutgoingCallerIdDisplay(mHandler.obtainMessage(MyHandler.MESSAGE_GET_CLIR, in init()
166 mPhone.getOutgoingCallerIdDisplay(obtainMessage(MESSAGE_GET_CLIR, in handleSetCLIRResponse()
DCdmaOptions.java55 private Phone mPhone; field in CdmaOptions
60 mPhone = phone; in CdmaOptions()
70 PhoneGlobals.getInstance().getCarrierConfigForSubId(mPhone.getSubId()); in create()
88 intent.putExtra("sub_id", mPhone.getSubId()); in create()
113 final boolean isLTE = mPhone.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE; in create()
DEmergencyCallbackModeService.java59 private Phone mPhone = null; field in EmergencyCallbackModeService
94 mPhone = phoneInEcm; in onCreate()
95 mPhone.registerForEcmTimerReset(mHandler, ECM_TIMER_RESET, null); in onCreate()
102 if (mPhone != null) { in onDestroy()
106 mPhone.unregisterForEcmTimerReset(mHandler); in onDestroy()
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailSettingsActivity.java195 private Phone mPhone; field in VoicemailSettingsActivity
223 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
225 mPhone.getContext(), mPhone.getSubId()); in onCreate()
248 mVoicemailProviders.init(mPhone, getIntent()); in onResume()
256 mVoicemailNotificationRingtone.init(mPhone); in onResume()
268 VisualVoicemailSettingsUtil.isVisualVoicemailEnabled(mPhone)); in onResume()
296 VoicemailNotificationSettingsUtil.isVibrationEnabled(mPhone)); in onResume()
390 mPhone, Boolean.TRUE.equals(objValue)); in onPreferenceChange()
393 VisualVoicemailSettingsUtil.setVisualVoicemailEnabled(mPhone, isEnabled, true); in onPreferenceChange()
395 OmtpVvmSourceManager.getInstance(mPhone.getContext()).addPhoneStateListener(mPhone); in onPreferenceChange()
[all …]
DVoicemailRingtonePreference.java25 private Phone mPhone; field in VoicemailRingtonePreference
43 mPhone = phone; in init()
50 VoicemailNotificationSettingsUtil.getVoicemailRingtoneSharedPrefsKey(mPhone); in init()
68 return VoicemailNotificationSettingsUtil.getRingtoneUri(mPhone); in onRestoreRingtone()
75 VoicemailNotificationSettingsUtil.setRingtoneUri(mPhone, ringtoneUri); in onSaveRingtone()
DVoicemailProviderListPreference.java62 private Phone mPhone; field in VoicemailProviderListPreference
81 mPhone = phone; in init()
105 VoicemailProviderSettingsUtil.delete(mPhone.getContext(), providerToIgnore); in initVoicemailProviders()
115 mPhone.getContext().getResources().getString(R.string.voicemail_default); in initVoicemailProviders()
122 PackageManager pm = mPhone.getContext().getPackageManager(); in initVoicemailProviders()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestInCallServiceImpl.java36 private Phone mPhone; field in TestInCallServiceImpl
60 mPhone = phone; in onPhoneCreated()
61 mPhone.addListener(mPhoneListener); in onPhoneCreated()
68 mPhone.removeListener(mPhoneListener); in onPhoneDestroyed()
69 mPhone = null; in onPhoneDestroyed()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DSimStatus.java105 private Phone mPhone = null; field in SimStatus
205 if (mPhone != null) { in onResume()
208 updateSignalStrength(mPhone.getSignalStrength()); in onResume()
209 updateServiceState(mPhone.getServiceState()); in onResume()
231 if (mPhone != null) { in onPause()
294 DefaultPhoneNotifier.convertDataState(mPhone.getDataConnectionState()); in updateDataState()
357 final int state = mPhone.getServiceState().getState(); in updateSignalStrength()
383 if (mPhone.getPhoneType() != TelephonyManager.PHONE_TYPE_CDMA) { in updatePreference()
402 setSummaryText(KEY_IMEI, mPhone.getImei()); in updatePreference()
403 setSummaryText(KEY_IMEI_SV, mPhone.getDeviceSvn()); in updatePreference()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnSetting.java51 private Phone mPhone; field in FdnSetting
116 boolean isEnabled = mPhone.getIccCard().getIccFdnEnabled(); in toggleFDNEnable()
120 mPhone.getIccCard().setIccFdnEnabled(!isEnabled, password, onComplete); in toggleFDNEnable()
190 mPhone.getIccCard().changeIccFdnPassword( in updatePINChangeState()
232 mPhone.getIccCard().supplyPuk2(mPuk2, mNewPin, onComplete); in updatePINChangeState()
460 if (mPhone.getIccCard().getIccFdnEnabled()) { in updateEnableFDN()
475 if (mPhone.getIccCard().getIccPin2Blocked()) { in updateChangePIN2()
490 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
533 mPhone = mSubscriptionInfoHelper.getPhone(); in onResume()
/packages/apps/Settings/src/com/android/settings/
DIccLockSettings.java103 private Phone mPhone; field in IccLockSettings
234 mPhone = (sir == null) ? null in onCreateView()
238 mPhone = PhoneFactory.getDefaultPhone(); in onCreateView()
250 mPinDialog.setEnabled(mPhone != null); in updatePreferences()
251 mPinToggle.setEnabled(mPhone != null); in updatePreferences()
253 if (mPhone != null) { in updatePreferences()
254 mPinToggle.setChecked(mPhone.getIccCard().getIccLockEnabled()); in updatePreferences()
424 mPhone.getIccCard().setIccLockEnabled(mToState, mPin, callback); in tryChangeIccLockState()
456 mPhone.getIccCard().changeIccLockPassword(mOldPin, in tryChangePin()
500 mPhone = (sir == null) ? null

12