Home
last modified time | relevance | path

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

12

/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnStateListener.java102 private Phone mPhone; // The phone that will attempt to place the call. field in RadioOnStateListener
127 if (mPhone != null) { in waitForRadioOn()
154 mPhone = phone; in startSequenceInternal()
175 if (mPhone == null) return; in onServiceStateChanged()
177 mPhone.getPhoneId()); in onServiceStateChanged()
199 if (mPhone == null) return; in onRadioOn()
200 ServiceState state = mPhone.getServiceState(); in onRadioOn()
202 mPhone.getPhoneId()); in onRadioOn()
214 return (mCallback == null) ? false : mCallback.isOkToCall(mPhone, serviceState); in isOkToCall()
221 if (mPhone == null) return; in onRetryTimeout()
[all …]
DTelecomAccountRegistry.java110 private final Phone mPhone; field in TelecomAccountRegistry.AccountEntry
135 mPhone = phone; in AccountEntry()
138 mIsAdhocConfCapable = mPhone.isImsRegistered(); in AccountEntry()
142 mIncomingCallNotifier = new PstnIncomingCallNotifier((Phone) mPhone); in AccountEntry()
143 mPhoneCapabilitiesNotifier = new PstnPhoneCapabilitiesNotifier((Phone) mPhone, in AccountEntry()
153 if (mPhone.getContext().getPackageManager().hasSystemFeature( in AccountEntry()
277 mPhone, dummyPrefix, isEmergency); in buildPstnPhoneAccount()
280 int subId = mPhone.getSubId(); in buildPstnPhoneAccount()
281 String subscriberId = mPhone.getSubscriberId(); in buildPstnPhoneAccount()
288 String subNumber = mPhone.getLine1Number(); in buildPstnPhoneAccount()
[all …]
DPstnIncomingCallNotifier.java69 private final Phone mPhone; field in PstnIncomingCallNotifier
103 mPhone = phone; in PstnIncomingCallNotifier()
116 if (mPhone != null) { in registerForNotifications()
117 Log.i(this, "Registering: %s", mPhone); in registerForNotifications()
118 mPhone.registerForNewRingingConnection(mHandler, EVENT_NEW_RINGING_CONNECTION, null); in registerForNotifications()
119 mPhone.registerForCallWaiting(mHandler, EVENT_CDMA_CALL_WAITING, null); in registerForNotifications()
120 mPhone.registerForUnknownConnection(mHandler, EVENT_UNKNOWN_CONNECTION, null); in registerForNotifications()
125 if (mPhone != null) { in unregisterForNotifications()
126 Log.i(this, "Unregistering: %s", mPhone); in unregisterForNotifications()
127 mPhone.unregisterForNewRingingConnection(mHandler); in unregisterForNotifications()
[all …]
DPstnPhoneCapabilitiesNotifier.java39 private final Phone mPhone; field in PstnPhoneCapabilitiesNotifier
61 mPhone = phone; in PstnPhoneCapabilitiesNotifier()
73 if (mPhone != null) { in registerForNotifications()
74 Log.d(this, "Registering: " + mPhone); in registerForNotifications()
75 mPhone.registerForVideoCapabilityChanged(mHandler, EVENT_VIDEO_CAPABILITIES_CHANGED, in registerForNotifications()
81 if (mPhone != null) { in unregisterForNotifications()
82 Log.d(this, "Unregistering: " + mPhone); in unregisterForNotifications()
83 mPhone.unregisterForVideoCapabilityChanged(mHandler); in unregisterForNotifications()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimContact.java48 private final String mPhone; field in SimContact
58 mPhone = phone == null ? "" : phone.trim(); in SimContact()
63 this(other.mId, other.mName, other.mPhone, other.mEmails); in SimContact()
75 return mPhone; in getPhone()
98 if (!mPhone.isEmpty()) { in appendCreateContactOperations()
100 Phone.NUMBER, mPhone)); in appendCreateContactOperations()
130 return !mPhone.isEmpty(); in hasPhone()
145 } else if (mPhone != null) { in getLookupKey()
146 return "sim-p-" + Uri.encode(mPhone); in getLookupKey()
157 ", mPhone='" + mPhone + '\'' + in toString()
[all …]
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java72 private Phone mPhone; field in OtaspActivationService
79 mPhone = PhoneGlobals.getPhone(); in onCreate()
80 if ((sIccId == null) || !sIccId.equals(mPhone.getIccSerialNumber())) { in onCreate()
82 sIccId = mPhone.getIccSerialNumber(); in onCreate()
144 if (mPhone.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) { in onStartOtaspCall()
146 mPhone.registerForServiceStateChanged(mHandler, EVENT_SERVICE_STATE_CHANGED, null); in onStartOtaspCall()
150 mPhone.registerForCdmaOtaStatusChange(mHandler, EVENT_CDMA_PROVISION_STATUS_UPDATE, null); in onStartOtaspCall()
151 mPhone.registerForPreciseCallStateChanged(mHandler, EVENT_CALL_STATE_CHANGED, null); in onStartOtaspCall()
183 logd("onOtaspCallStateChanged: " + mPhone.getState()); in onOtaspCallStateChanged()
184 if (mPhone.getState().equals(PhoneConstants.State.IDLE)) { in onOtaspCallStateChanged()
[all …]
/packages/services/Telephony/src/com/android/phone/
DCallFeaturesSetting.java102 private Phone mPhone; field in CallFeaturesSetting
164 android.provider.Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onPreferenceTreeClick()
194 && mPhone != null in doSsOverUtPrecautions()
195 && SuppServicesUiUtil.isSsOverUtPrecautions(this, mPhone)) { in doSsOverUtPrecautions()
196 SuppServicesUiUtil.showBlockingSuppServicesDialog(this, mPhone, in doSsOverUtPrecautions()
262 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
281 .createForSubscriptionId(mPhone.getSubId()); in listenPhoneState()
333 updateImsManager(mPhone); in onResume()
343 .createForSubscriptionId(mPhone.getSubId()); in onResume()
371 PhoneGlobals.getInstance().getCarrierConfigForSubId(mPhone.getSubId()); in onResume()
[all …]
DGsmUmtsAdditionalCallOptions.java33 private Phone mPhone; field in GsmUmtsAdditionalCallOptions
50 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
79 boolean isSsOverUtPrecautions = SuppServicesUiUtil.isSsOverUtPrecautions(this, mPhone); in onCreate()
113 mCWButton.init(this, true, mPhone); in onCreate()
116 mCLIRButton.init(this, true, mPhone); in onCreate()
125 mCLIRButton.init(this, false, mPhone); in onCreate()
142 boolean isPrecaution = SuppServicesUiUtil.isSsOverUtPrecautions(this, mPhone); in onResume()
216 ((CallWaitingSwitchPreference) pref).init(this, false, mPhone); in doPreferenceInit()
218 ((CLIRListPreference) pref).init(this, false, mPhone); in doPreferenceInit()
226 return SuppServicesUiUtil.showBlockingSuppServicesDialog(this, mPhone, BUTTON_CW_KEY); in onCreateDialog()
[all …]
DEmergencyCallbackModeExitDialog.java71 private Phone mPhone = null; field in EmergencyCallbackModeExitDialog
78 mPhone = PhoneGlobals.getInstance().getPhoneInEcm(); in onCreate()
80 if (mPhone == null || !mPhone.isInEcm()) { in onCreate()
81 Log.i(TAG, "ECMModeExitDialog launched - isInEcm: false" + " phone:" + mPhone); in onCreate()
85 Log.i(TAG, "ECMModeExitDialog launched - isInEcm: true" + " phone:" + mPhone); in onCreate()
96 mPhone.registerForEcmTimerReset(mTimerResetHandler, ECM_TIMER_RESET, null); in onCreate()
125 if (mPhone != null) { in onDestroy()
126 mPhone.unregisterForEcmTimerReset(mHandler); in onDestroy()
243 mPhone.exitEmergencyCallbackMode(); in onCreateDialog()
304 boolean shouldRestrictData = mPhone.getImsPhone() != null in getDialogText()
[all …]
DMMIDialogActivity.java48 private Phone mPhone; field in MMIDialogActivity
57 mPhone = PhoneGlobals.getPhone(subId); in onCreate()
58 if (mPhone == null) { in onCreate()
96 final List<MmiCode> codes = new ArrayList<>(mPhone.getPendingMmiCodes()); in showMMIDialog()
98 if (mPhone.getImsPhone() != null) { in showMMIDialog()
99 codes.addAll(mPhone.getImsPhone().getPendingMmiCodes()); in showMMIDialog()
122 int phoneType = mPhone.getPhoneType(); in onMMIComplete()
124 PhoneUtils.displayMMIComplete(mPhone, this, mmiCode, null, null); in onMMIComplete()
144 PhoneUtils.cancelMmiCode(mPhone); in onMMICancel()
DEmergencyCallbackModeService.java60 private Phone mPhone = null; field in EmergencyCallbackModeService
95 mPhone = phoneInEcm; in onCreate()
96 mPhone.registerForEcmTimerReset(mHandler, ECM_TIMER_RESET, null); in onCreate()
103 if (mPhone != null) { in onDestroy()
107 mPhone.unregisterForEcmTimerReset(mHandler); in onDestroy()
174 Phone imsPhone = mPhone.getImsPhone(); in showNotification()
175 boolean isInEcm = mPhone.isInEcm() || (imsPhone != null && imsPhone.isInEcm()); in showNotification()
DGsmUmtsCallBarringOptions.java107 private Phone mPhone; field in GsmUmtsCallBarringOptions
154 mPhone.setCallBarring(CommandsInterface.CB_FACILITY_BA_ALL, false, password, onComplete, 0); in disableAllBarring()
206 ((GsmCdmaPhone) mPhone).changeCallBarringPassword( in updatePWChangeState()
355 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
361 mPhone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE); in onCreate()
417 SubscriptionManager.getSlotIndex(mPhone.getSubId())) in onCreate()
452 pref.init(this, true, mPhone); in onCreate()
474 mPreferences.get(mInitIndex).init(this, false, mPhone); in onResume()
515 mPreferences.get(mInitIndex).init(this, false, mPhone); in onFinished()
DCLIRListPreference.java27 private Phone mPhone; field in CLIRListPreference
51 mPhone.setOutgoingCallerIdDisplay(convertValueToCLIRMode(getValue()), in onDialogClosed()
64 mPhone = phone; in init()
67 .getCarrierConfigForSubId(mPhone.getSubId()) in init()
81 mPhone.getOutgoingCallerIdDisplay(mHandler.obtainMessage(MyHandler.MESSAGE_GET_CLIR, in init()
213 mPhone.getOutgoingCallerIdDisplay(obtainMessage(MESSAGE_GET_CLIR, in handleSetCLIRResponse()
DCallWaitingSwitchPreference.java21 private Phone mPhone; field in CallWaitingSwitchPreference
38 mPhone = phone; in init()
42 mPhone.getCallWaiting(mHandler.obtainMessage(MyHandler.MESSAGE_GET_CALL_WAITING, in init()
54 mPhone.setCallWaiting(isChecked(), in onClick()
133 mPhone.getCallWaiting(obtainMessage(MESSAGE_GET_CALL_WAITING, in handleSetCallWaitingResponse()
DCallForwardEditPreference.java48 private Phone mPhone; field in CallForwardEditPreference
84 mPhone = phone; in init()
132 .getCarrierConfigForSubId(mPhone.getSubId()); in onDialogClosed()
159 mPhone.setCallForwardingOption(action, in onDialogClosed()
201 PhoneGlobals.getInstance().getCarrierConfigForSubId(mPhone.getSubId()); in handleCallForwardResult()
208 String voicemailNumber = mPhone.getVoiceMailNumber(); in handleCallForwardResult()
220 mPhone.getCallForwardingOption(reason, mServiceClass, in startCallForwardOptionsQuery()
431 mPhone.getCallForwardingOption(reason, mServiceClass, in handleSetCFResponse()
546 PhoneGlobals.getInstance().getCarrierConfigForSubId(mPhone.getSubId()); in isSkipCFFailToDisableDialog()
DIccNetworkDepersonalizationPanel.java66 private Phone mPhone; field in IccNetworkDepersonalizationPanel
168 mPhone = PhoneGlobals.getPhone(); in IccNetworkDepersonalizationPanel()
176 mPhone = phone == null ? PhoneGlobals.getPhone() : phone; in IccNetworkDepersonalizationPanel()
230 int phoneId = mPhone == null ? 0 : mPhone.getPhoneId(); in onStop()
258 mPhone.getIccCard().supplySimDepersonalization(mPersoSubState,pin,
DCallBarringEditPreference.java62 private Phone mPhone; field in CallBarringEditPreference
85 mPhone = PhoneFactory.getDefaultPhone(); in CallBarringEditPreference()
106 mPhone = phone; in init()
111 mPhone.getCallBarring(mFacility, "", mHandler.obtainMessage( in init()
205 mPhone.setCallBarring(mFacility, !mIsActivated, password, in onDialogClosed()
326 pref.mPhone.getCallBarring( in handleSetCallBarringResponse()
DEnableIccPinScreen.java48 private Phone mPhone; field in EnableIccPinScreen
70 mPhone = PhoneGlobals.getPhone(); in onCreate()
71 mEnable = !mPhone.getIccCard().getIccLockEnabled(); in onCreate()
105 mPhone.getIccCard().setIccLockEnabled(mEnable, getPin(), callback); in enableIccPin()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java269 private Phone mPhone = null; field in RadioInfo
398 mPhone = PhoneFactory.getPhone(phoneIndex); in updatePhoneIndex()
470 mPhone = PhoneFactory.getDefaultPhone(); in onCreate()
530 if (!ImsManager.isImsSupportedOnDevice(mPhone.getContext())) { in onCreate()
592 mPhone.getPreferredNetworkType( in onCreate()
661 mPhone.registerForPhysicalChannelConfig(mHandler, in updateAllFields()
726 if (ImsManager.isImsSupportedOnDevice(mPhone.getContext())) { in onCreateOptionsMenu()
778 mPhone.unregisterForPhysicalChannelConfig(mHandler); in unregisterPhoneStateListener()
819 mDnsCheckState.setText(mPhone.isDnsCheckDisabled() in updateDnsCheckState()
1040 mSubscriptionId.setText(Integer.toString(mPhone.getSubId())); in updateSubscriptionIds()
[all …]
DVoicemailSettingsActivity.java199 private Phone mPhone; field in VoicemailSettingsActivity
236 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
244 intent.putExtra(Settings.EXTRA_APP_PACKAGE, mPhone.getContext().getPackageName()); in onCreate()
271 mVoicemailProviders.init(mPhone, getIntent()); in onResume()
431 String vmDisplay = mPhone.getVoiceMailNumber(); in onGetDefaultNumber()
570 .getCarrierConfigForSubId(mPhone.getSubId()); in getBooleanCarrierConfig()
709 if (mPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { in saveVoiceMailAndForwardingNumber()
735 mPhone.getCallForwardingOption( in saveVoiceMailAndForwardingNumber()
803 VoicemailProviderSettingsUtil.save(mPhone.getContext(), in handleForwardingSettingsReadResult()
832 CallForwardInfoUtil.setCallForwardingOption(mPhone, fi, in saveVoiceMailAndForwardingNumberStage2()
[all …]
DVoicemailProviderListPreference.java59 private Phone mPhone; field in VoicemailProviderListPreference
78 mPhone = phone; in init()
102 VoicemailProviderSettingsUtil.delete(mPhone.getContext(), providerToIgnore); in initVoicemailProviders()
112 mPhone.getContext().getResources().getString(R.string.voicemail_default); in initVoicemailProviders()
119 PackageManager pm = mPhone.getContext().getPackageManager(); in initVoicemailProviders()
/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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestInCallServiceImpl.java34 private Phone mPhone; field in TestInCallServiceImpl
58 mPhone = phone; in onPhoneCreated()
59 mPhone.addListener(mPhoneListener); in onPhoneCreated()
66 mPhone.removeListener(mPhoneListener); in onUnbind()
67 mPhone = null; in onUnbind()
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeInCallServiceImpl.java37 private Phone mPhone; field in CarModeInCallServiceImpl
61 mPhone = phone; in onPhoneCreated()
62 mPhone.addListener(mPhoneListener); in onPhoneCreated()
69 mPhone.removeListener(mPhoneListener); in onUnbind()
70 mPhone = null; in onUnbind()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DIccLockSettings.java115 private Phone mPhone; field in IccLockSettings
249 mPhone = (sir == null) ? null in onCreateView()
257 mPhone = PhoneFactory.getDefaultPhone(); in onCreateView()
270 mPinDialog.setEnabled(mPhone != null); in updatePreferences()
273 mPinToggle.setEnabled(mPhone != null); in updatePreferences()
275 if (mPhone != null) { in updatePreferences()
276 mPinToggle.setChecked(mPhone.getIccCard().getIccLockEnabled()); in updatePreferences()
461 mPhone.getIccCard().setIccLockEnabled(mToState, mPin, callback); in tryChangeIccLockState()
551 mPhone.getIccCard().changeIccLockPassword(mOldPin, in tryChangePin()
595 mPhone = (sir == null) ? null

12