Home
last modified time | relevance | path

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

12

/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java73 private Phone mPhone; field in OtaspActivationService
80 mPhone = PhoneGlobals.getPhone(); in onCreate()
81 ServiceStateTracker sst = mPhone.getServiceStateTracker(); in onCreate()
86 if ((sIccId == null) || !sIccId.equals(mPhone.getIccSerialNumber())) { in onCreate()
88 sIccId = mPhone.getIccSerialNumber(); in onCreate()
150 if (mPhone.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) { in onStartOtaspCall()
152 mPhone.registerForServiceStateChanged(mHandler, EVENT_SERVICE_STATE_CHANGED, null); in onStartOtaspCall()
156 mPhone.registerForCdmaOtaStatusChange(mHandler, EVENT_CDMA_PROVISION_STATUS_UPDATE, null); in onStartOtaspCall()
157 mPhone.registerForPreciseCallStateChanged(mHandler, EVENT_CALL_STATE_CHANGED, null); in onStartOtaspCall()
189 logd("onOtaspCallStateChanged: " + mPhone.getState()); in onOtaspCallStateChanged()
[all …]
/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.mRecordNumber, 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/slice/
DSlicePurchaseController.java312 @NonNull private final Phone mPhone; field in SlicePurchaseController
492 mPhone = phone; in SlicePurchaseController()
495 mPhone.mCi.registerForSlicingConfigChanged(this, EVENT_SLICING_CONFIG_CHANGED, null); in SlicePurchaseController()
697 mPhone.getContext().unregisterReceiver(receiver); in handlePurchaseResult()
741 return new PremiumNetworkEntitlementApi(mPhone, getCarrierConfigs()); in getPremiumNetworkEntitlementApi()
811 intent.putExtra(EXTRA_PHONE_ID, mPhone.getPhoneId()); in onStartSlicePurchaseApplication()
812 intent.putExtra(EXTRA_SUB_ID, mPhone.getSubId()); in onStartSlicePurchaseApplication()
835 mPhone.getContext().sendBroadcast(intent); in onStartSlicePurchaseApplication()
848 mPhone.getContext().registerReceiver( in onStartSlicePurchaseApplication()
881 if (mPhone.getPhoneId() < TelephonyProperties.icc_operator_alpha().size()) { in getSimOperator()
[all …]
DPremiumNetworkEntitlementApi.java67 @NonNull private final Phone mPhone; field in PremiumNetworkEntitlementApi
72 mPhone = phone; in PremiumNetworkEntitlementApi()
76 mPhone.getContext(), in PremiumNetworkEntitlementApi()
78 mPhone.getSubId(), in PremiumNetworkEntitlementApi()
84 mPhone.getContext(), in PremiumNetworkEntitlementApi()
86 mPhone.getSubId()); in PremiumNetworkEntitlementApi()
97 Log.d(TAG, "checkEntitlementStatus subId=" + mPhone.getSubId()); in checkEntitlementStatus()
/packages/services/Telephony/src/com/android/services/telephony/
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()
DTelecomAccountRegistry.java132 private final Phone mPhone; field in TelecomAccountRegistry.AccountEntry
161 mPhone = phone; in AccountEntry()
164 mIsAdhocConfCapable = mPhone.isImsRegistered(); in AccountEntry()
168 mSCT.getSubIdsSupportingSimultaneousCalling(mPhone.getSubId()); in AccountEntry()
173 mIncomingCallNotifier = new PstnIncomingCallNotifier((Phone) mPhone); in AccountEntry()
174 mPhoneCapabilitiesNotifier = new PstnPhoneCapabilitiesNotifier((Phone) mPhone, in AccountEntry()
184 if (mPhone.getContext().getPackageManager().hasSystemFeature( in AccountEntry()
235 + "phoneId = " + mPhone.getPhoneId() + "; subId = " + mPhone.getSubId()); in AccountEntry()
329 int subId = mPhone.getSubId(); in buildPstnPhoneAccount()
331 UserHandle userToRegister = mPhone.getUserHandle(); in buildPstnPhoneAccount()
[all …]
DPstnIncomingCallNotifier.java80 private final Phone mPhone; field in PstnIncomingCallNotifier
120 mPhone = phone; in PstnIncomingCallNotifier()
133 if (mPhone != null) { in registerForNotifications()
135 mPhone.registerForNewRingingConnection(mHandler, EVENT_NEW_RINGING_CONNECTION, null); in registerForNotifications()
136 mPhone.registerForCallWaiting(mHandler, EVENT_CDMA_CALL_WAITING, null); in registerForNotifications()
137 mPhone.registerForUnknownConnection(mHandler, EVENT_UNKNOWN_CONNECTION, null); in registerForNotifications()
142 if (mPhone != null) { in unregisterForNotifications()
144 mPhone.unregisterForNewRingingConnection(mHandler); in unregisterForNotifications()
145 mPhone.unregisterForCallWaiting(mHandler); in unregisterForNotifications()
146 mPhone.unregisterForUnknownConnection(mHandler); in unregisterForNotifications()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java336 private Phone mPhone = null; field in RadioInfo
478 mTelephonyManager.setCellInfoListRate(sCellInfoListRateDisabled, mPhone.getSubId()); in updatePhoneIndex()
489 mPhone = PhoneFactory.getPhone(phoneIndex); in updatePhoneIndex()
490 mImsManager = new ImsManager(mPhone.getContext()); in updatePhoneIndex()
565 mPhone = getPhone(SubscriptionManager.getDefaultSubscriptionId()); in onCreate()
567 .createForSubscriptionId(mPhone.getSubId()); in onCreate()
570 mImsManager = new ImsManager(mPhone.getContext()); in onCreate()
572 mProvisioningManager = ProvisioningManager.createForSubscriptionId(mPhone.getSubId()); in onCreate()
671 if (!isImsSupportedOnDevice(mPhone.getContext())) { in onCreate()
750 mPhone.getContext().startActivity( in onCreate()
[all …]
DVoicemailSettingsActivity.java205 private Phone mPhone; field in VoicemailSettingsActivity
254 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
266 intent.putExtra(Settings.EXTRA_APP_PACKAGE, mPhone.getContext().getPackageName()); in onCreate()
288 mVoicemailProviders.init(mPhone, getIntent()); in onResume()
448 String vmDisplay = mPhone.getVoiceMailNumber(); in onGetDefaultNumber()
598 .getCarrierConfigForSubId(mPhone.getSubId()); in getBooleanCarrierConfig()
737 if (mPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { in saveVoiceMailAndForwardingNumber()
763 mPhone.getCallForwardingOption( in saveVoiceMailAndForwardingNumber()
831 VoicemailProviderSettingsUtil.save(mPhone.getContext(), in handleForwardingSettingsReadResult()
860 CallForwardInfoUtil.setCallForwardingOption(mPhone, fi, in saveVoiceMailAndForwardingNumberStage2()
[all …]
/packages/services/Telephony/src/com/android/phone/
DCallFeaturesSetting.java107 private Phone mPhone; field in CallFeaturesSetting
171 android.provider.Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onPreferenceTreeClick()
201 && mPhone != null in doSsOverUtPrecautions()
202 && SuppServicesUiUtil.isSsOverUtPrecautions(this, mPhone)) { in doSsOverUtPrecautions()
203 SuppServicesUiUtil.showBlockingSuppServicesDialog(this, mPhone, in doSsOverUtPrecautions()
277 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
303 .createForSubscriptionId(mPhone.getSubId()); in listenPhoneState()
360 updateImsManager(mPhone); in onResume()
370 .createForSubscriptionId(mPhone.getSubId()); in onResume()
398 PhoneGlobals.getInstance().getCarrierConfigForSubId(mPhone.getSubId()); in onResume()
[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()
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.java79 private Phone mPhone = null; field in EmergencyCallbackModeExitDialog
86 mPhone = PhoneGlobals.getInstance().getPhoneInEcm(); in onCreate()
88 if (mPhone == null || !mPhone.isInEcm()) { in onCreate()
89 Log.i(TAG, "ECMModeExitDialog launched - isInEcm: false" + " phone:" + mPhone); in onCreate()
93 Log.i(TAG, "ECMModeExitDialog launched - isInEcm: true" + " phone:" + mPhone); in onCreate()
104 mPhone.registerForEcmTimerReset(mTimerResetHandler, ECM_TIMER_RESET, null); in onCreate()
133 if (mPhone != null) { in onDestroy()
134 mPhone.unregisterForEcmTimerReset(mHandler); in onDestroy()
257 mPhone.exitEmergencyCallbackMode(); in onCreateDialog()
321 boolean shouldRestrictData = mPhone.getImsPhone() != null in getDialogText()
[all …]
DCdmaCallWaitingPreference.java38 private Phone mPhone; field in CdmaCallWaitingPreference
57 mPhone = phone; in init()
59 Log.d(LOG_TAG, "phone id= " + mPhone.getPhoneId()); in init()
60 mPhone.getCallWaiting(mHandler.obtainMessage(MyHandler.MESSAGE_GET_CALL_WAITING, in init()
86 mPhone.setCallWaiting(true, in onClick()
95 mPhone.setCallWaiting(false, in onClick()
205 mPhone.getCallWaiting(obtainMessage(MESSAGE_GET_CALL_WAITING, in handleSetCallWaitingResponse()
DIccNetworkDepersonalizationPanel.java68 private Phone mPhone; field in IccNetworkDepersonalizationPanel
172 mPhone = PhoneGlobals.getPhone(); in IccNetworkDepersonalizationPanel()
175 .getActiveSubscriptionInfoForSimSlotIndex(mPhone.getPhoneId()); in IccNetworkDepersonalizationPanel()
182 mPhone = phone == null ? PhoneGlobals.getPhone() : phone; in IccNetworkDepersonalizationPanel()
185 .getActiveSubscriptionInfoForSimSlotIndex(mPhone.getPhoneId()); in IccNetworkDepersonalizationPanel()
239 int phoneId = mPhone == null ? 0 : mPhone.getPhoneId(); in onStop()
267 mPhone.getIccCard().supplySimDepersonalization(mPersoSubState,pin,
296 log("Operator displayName is: " + displayName + "phoneId: " + mPhone.getPhoneId()); in displayStatus()
DCallBarringEditPreference.java63 private Phone mPhone; field in CallBarringEditPreference
86 mPhone = PhoneFactory.getDefaultPhone(); in CallBarringEditPreference()
106 mPhone = phone; in init()
111 mPhone.getCallBarring(mFacility, "", mHandler.obtainMessage( in init()
112 MyHandler.MESSAGE_GET_CALL_BARRING), getServiceClassForCallBarring(mPhone)); in init()
203 mPhone.setCallBarring(mFacility, !mIsActivated, password, in onDialogClosed()
205 getServiceClassForCallBarring(mPhone)); in onDialogClosed()
322 pref.mPhone.getCallBarring( in handleSetCallBarringResponse()
326 ar.exception), getServiceClassForCallBarring(pref.mPhone)); in handleSetCallBarringResponse()
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()
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()
/packages/services/Telephony/tests/src/com/android/phone/
DPhoneInterfaceManagerTest.java90 Phone mPhone; field in PhoneInterfaceManagerTest
137 mPhoneInterfaceManager.cleanUpAllowedNetworkTypes(mPhone, 1); in cleanUpAllowedNetworkTypes_validPhoneAndSubId_doSetAllowedNetwork()
139 verify(mPhone).loadAllowedNetworksFromSubscriptionDatabase(); in cleanUpAllowedNetworkTypes_validPhoneAndSubId_doSetAllowedNetwork()
140 verify(mPhone).setAllowedNetworkTypes(TelephonyManager.ALLOWED_NETWORK_TYPES_REASON_USER, in cleanUpAllowedNetworkTypes_validPhoneAndSubId_doSetAllowedNetwork()
149 mPhoneInterfaceManager.cleanUpAllowedNetworkTypes(mPhone, -1); in cleanUpAllowedNetworkTypes_validPhoneAndInvalidSubId_doNotSetAllowedNetwork()
151 verify(mPhone, never()).loadAllowedNetworksFromSubscriptionDatabase(); in cleanUpAllowedNetworkTypes_validPhoneAndInvalidSubId_doNotSetAllowedNetwork()
152 verify(mPhone, never()).setAllowedNetworkTypes( in cleanUpAllowedNetworkTypes_validPhoneAndInvalidSubId_doNotSetAllowedNetwork()
159 when(mPhone.getContext()).thenReturn(context); in matchLocaleFromSupportedLocaleList_inputLocaleChangeToSupportedLocale_notMatched()
166 String resultInputEmpty = mPhoneInterfaceManager.matchLocaleFromSupportedLocaleList(mPhone, in matchLocaleFromSupportedLocaleList_inputLocaleChangeToSupportedLocale_notMatched()
173 mPhone, in matchLocaleFromSupportedLocaleList_inputLocaleChangeToSupportedLocale_notMatched()
[all …]
DRcsProvisioningMonitorTest.java184 private PhoneGlobals mPhone; field in RcsProvisioningMonitorTest
235 when(mPhone.getResources()).thenReturn(mResources); in setUp()
236 when(mPhone.getPackageManager()).thenReturn(mPackageManager); in setUp()
239 when(mPhone.getMainExecutor()).thenReturn(mExecutor); in setUp()
240 when(mPhone.getSystemServiceName(eq(CarrierConfigManager.class))) in setUp()
242 when(mPhone.getSystemServiceName(eq(SubscriptionManager.class))) in setUp()
244 when(mPhone.getSystemServiceName(eq(TelephonyRegistryManager.class))) in setUp()
246 when(mPhone.getSystemServiceName(eq(RoleManager.class))) in setUp()
248 when(mPhone.getSystemService(eq(Context.CARRIER_CONFIG_SERVICE))) in setUp()
250 when(mPhone.getSystemService(eq(Context.TELEPHONY_SUBSCRIPTION_SERVICE))) in setUp()
[all …]
/packages/services/Telecomm/testapps/companionapp/src/com/android/server/telecom/companionapp/
DCompanionInCallServiceImpl.java35 private Phone mPhone; field in CompanionInCallServiceImpl
56 mPhone = phone; in onPhoneCreated()
57 mPhone.addListener(mPhoneListener); in onPhoneCreated()
63 mPhone.removeListener(mPhoneListener); in onUnbind()
64 mPhone = null; in onUnbind()
/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/Telephony/src/com/android/phone/settings/fdn/
DFdnSetting.java53 private Phone mPhone; field in FdnSetting
128 boolean isEnabled = mPhone.getIccCard().getIccFdnEnabled(); in toggleFDNEnable()
132 mPhone.getIccCard().setIccFdnEnabled(!isEnabled, password, onComplete); in toggleFDNEnable()
205 mPhone.getIccCard().changeIccFdnPassword(mOldPin, in updatePINChangeState()
208 mPhone.getIccCard().supplyPuk2(mPuk2, mNewPin, in updatePINChangeState()
259 mPhone.getIccCard().supplyPuk2(mPuk2, mNewPin, onComplete); in updatePINChangeState()
480 if (mPhone.getIccCard().getIccFdnEnabled()) { in updateEnableFDN()
495 if (mPhone.getIccCard().getIccPuk2Blocked()) { in updateChangePIN2()
498 } else if (mPhone.getIccCard().getIccPin2Blocked()) { in updateChangePIN2()
513 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/slice/
DSlicePurchaseControllerTest.java95 @Mock Phone mPhone; field in SlicePurchaseControllerTest
126 doReturn(PHONE_ID).when(mPhone).getPhoneId(); in setUp()
127 doReturn(mContext).when(mPhone).getContext(); in setUp()
128 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp()
129 doReturn(mDataSettingsManager).when(mPhone).getDataSettingsManager(); in setUp()
130 mPhone.mCi = mCommandsInterface; in setUp()
158 new SlicePurchaseController(mPhone, mFeatureFlags, mHandler.getLooper()); in setUp()
195 doReturn((int) TelephonyManager.NETWORK_TYPE_BITMASK_NR).when(mPhone) in testIsPremiumCapabilityAvailableForPurchase()
201 doReturn(SubscriptionManager.getDefaultDataSubscriptionId()).when(mPhone).getSubId(); in testIsPremiumCapabilityAvailableForPurchase()
293 doReturn((int) TelephonyManager.NETWORK_TYPE_BITMASK_NR).when(mPhone) in testPurchasePremiumCapabilityResultFeatureNotSupported()
[all …]

12