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/services/Telephony/tests/src/com/android/phone/
DPhoneInterfaceManagerTest.java68 Phone mPhone; field in PhoneInterfaceManagerTest
95 mPhoneInterfaceManager.cleanUpAllowedNetworkTypes(mPhone, 1); in cleanUpAllowedNetworkTypes_validPhoneAndSubId_doSetAllowedNetwork()
97 verify(mPhone).loadAllowedNetworksFromSubscriptionDatabase(); in cleanUpAllowedNetworkTypes_validPhoneAndSubId_doSetAllowedNetwork()
98 verify(mPhone).setAllowedNetworkTypes(TelephonyManager.ALLOWED_NETWORK_TYPES_REASON_USER, in cleanUpAllowedNetworkTypes_validPhoneAndSubId_doSetAllowedNetwork()
107 mPhoneInterfaceManager.cleanUpAllowedNetworkTypes(mPhone, -1); in cleanUpAllowedNetworkTypes_validPhoneAndInvalidSubId_doNotSetAllowedNetwork()
109 verify(mPhone, never()).loadAllowedNetworksFromSubscriptionDatabase(); in cleanUpAllowedNetworkTypes_validPhoneAndInvalidSubId_doNotSetAllowedNetwork()
110 verify(mPhone, never()).setAllowedNetworkTypes( in cleanUpAllowedNetworkTypes_validPhoneAndInvalidSubId_doNotSetAllowedNetwork()
117 when(mPhone.getContext()).thenReturn(context); in matchLocaleFromSupportedLocaleList_inputLocaleChangeToSupportedLocale_notMatched()
124 String resultInputEmpty = mPhoneInterfaceManager.matchLocaleFromSupportedLocaleList(mPhone, in matchLocaleFromSupportedLocaleList_inputLocaleChangeToSupportedLocale_notMatched()
131 mPhone, in matchLocaleFromSupportedLocaleList_inputLocaleChangeToSupportedLocale_notMatched()
[all …]
DRcsProvisioningMonitorTest.java183 private PhoneGlobals mPhone; field in RcsProvisioningMonitorTest
234 when(mPhone.getResources()).thenReturn(mResources); in setUp()
235 when(mPhone.getPackageManager()).thenReturn(mPackageManager); in setUp()
238 when(mPhone.getMainExecutor()).thenReturn(mExecutor); in setUp()
239 when(mPhone.getSystemServiceName(eq(CarrierConfigManager.class))) in setUp()
241 when(mPhone.getSystemServiceName(eq(SubscriptionManager.class))) in setUp()
243 when(mPhone.getSystemServiceName(eq(TelephonyRegistryManager.class))) in setUp()
245 when(mPhone.getSystemServiceName(eq(RoleManager.class))) in setUp()
247 when(mPhone.getSystemService(eq(Context.CARRIER_CONFIG_SERVICE))) in setUp()
249 when(mPhone.getSystemService(eq(Context.TELEPHONY_SUBSCRIPTION_SERVICE))) in setUp()
[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.java311 @NonNull private final Phone mPhone; field in SlicePurchaseController
484 mPhone = phone; in SlicePurchaseController()
486 mPhone.mCi.registerForSlicingConfigChanged(this, EVENT_SLICING_CONFIG_CHANGED, null); in SlicePurchaseController()
688 mPhone.getContext().unregisterReceiver(receiver); in handlePurchaseResult()
732 return new PremiumNetworkEntitlementApi(mPhone, getCarrierConfigs()); in getPremiumNetworkEntitlementApi()
802 intent.putExtra(EXTRA_PHONE_ID, mPhone.getPhoneId()); in onStartSlicePurchaseApplication()
803 intent.putExtra(EXTRA_SUB_ID, mPhone.getSubId()); in onStartSlicePurchaseApplication()
826 mPhone.getContext().sendBroadcast(intent); in onStartSlicePurchaseApplication()
839 mPhone.getContext().registerReceiver( in onStartSlicePurchaseApplication()
872 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/phone/
DCallFeaturesSetting.java106 private Phone mPhone; field in CallFeaturesSetting
169 android.provider.Settings.Global.putInt(mPhone.getContext().getContentResolver(), in onPreferenceTreeClick()
199 && mPhone != null in doSsOverUtPrecautions()
200 && SuppServicesUiUtil.isSsOverUtPrecautions(this, mPhone)) { in doSsOverUtPrecautions()
201 SuppServicesUiUtil.showBlockingSuppServicesDialog(this, mPhone, in doSsOverUtPrecautions()
267 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
293 .createForSubscriptionId(mPhone.getSubId()); in listenPhoneState()
350 updateImsManager(mPhone); in onResume()
360 .createForSubscriptionId(mPhone.getSubId()); in onResume()
388 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 …]
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()
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()
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()
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/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.java123 private final Phone mPhone; field in TelecomAccountRegistry.AccountEntry
149 mPhone = phone; in AccountEntry()
152 mIsAdhocConfCapable = mPhone.isImsRegistered(); in AccountEntry()
156 mIncomingCallNotifier = new PstnIncomingCallNotifier((Phone) mPhone); in AccountEntry()
157 mPhoneCapabilitiesNotifier = new PstnPhoneCapabilitiesNotifier((Phone) mPhone, in AccountEntry()
167 if (mPhone.getContext().getPackageManager().hasSystemFeature( in AccountEntry()
293 int subId = mPhone.getSubId(); in buildPstnPhoneAccount()
295 UserHandle userToRegister = mPhone.getUserHandle(); in buildPstnPhoneAccount()
300 mPhone, testPrefix, isEmergency, userToRegister); in buildPstnPhoneAccount()
303 String subscriberId = mPhone.getSubscriberId(); 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.java289 private Phone mPhone = null; field in RadioInfo
426 mTelephonyManager.setCellInfoListRate(sCellInfoListRateDisabled, mPhone.getSubId()); in updatePhoneIndex()
437 mPhone = PhoneFactory.getPhone(phoneIndex); in updatePhoneIndex()
438 mImsManager = new ImsManager(mPhone.getContext()); in updatePhoneIndex()
504 mPhone = getPhone(SubscriptionManager.getDefaultSubscriptionId()); in onCreate()
506 .createForSubscriptionId(mPhone.getSubId()); in onCreate()
508 mImsManager = new ImsManager(mPhone.getContext()); in onCreate()
510 mProvisioningManager = ProvisioningManager.createForSubscriptionId(mPhone.getSubId()); in onCreate()
585 if (!isImsSupportedOnDevice(mPhone.getContext())) { in onCreate()
665 mSelectedPhoneIndex = mPhone.getPhoneId(); in onCreate()
[all …]
DVoicemailSettingsActivity.java203 private Phone mPhone; field in VoicemailSettingsActivity
243 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
255 intent.putExtra(Settings.EXTRA_APP_PACKAGE, mPhone.getContext().getPackageName()); in onCreate()
276 mVoicemailProviders.init(mPhone, getIntent()); in onResume()
436 String vmDisplay = mPhone.getVoiceMailNumber(); in onGetDefaultNumber()
586 .getCarrierConfigForSubId(mPhone.getSubId()); in getBooleanCarrierConfig()
725 if (mPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { in saveVoiceMailAndForwardingNumber()
751 mPhone.getCallForwardingOption( in saveVoiceMailAndForwardingNumber()
819 VoicemailProviderSettingsUtil.save(mPhone.getContext(), in handleForwardingSettingsReadResult()
848 CallForwardInfoUtil.setCallForwardingOption(mPhone, fi, in saveVoiceMailAndForwardingNumberStage2()
[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.java50 private Phone mPhone; field in FdnSetting
125 boolean isEnabled = mPhone.getIccCard().getIccFdnEnabled(); in toggleFDNEnable()
129 mPhone.getIccCard().setIccFdnEnabled(!isEnabled, password, onComplete); in toggleFDNEnable()
202 mPhone.getIccCard().changeIccFdnPassword(mOldPin, in updatePINChangeState()
205 mPhone.getIccCard().supplyPuk2(mPuk2, mNewPin, in updatePINChangeState()
256 mPhone.getIccCard().supplyPuk2(mPuk2, mNewPin, onComplete); in updatePINChangeState()
477 if (mPhone.getIccCard().getIccFdnEnabled()) { in updateEnableFDN()
492 if (mPhone.getIccCard().getIccPuk2Blocked()) { in updateChangePIN2()
495 } else if (mPhone.getIccCard().getIccPin2Blocked()) { in updateChangePIN2()
510 mPhone = mSubscriptionInfoHelper.getPhone(); in onCreate()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/slice/
DSlicePurchaseControllerTest.java94 @Mock Phone mPhone; field in SlicePurchaseControllerTest
124 doReturn(PHONE_ID).when(mPhone).getPhoneId(); in setUp()
125 doReturn(mContext).when(mPhone).getContext(); in setUp()
126 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp()
127 doReturn(mDataSettingsManager).when(mPhone).getDataSettingsManager(); in setUp()
128 mPhone.mCi = mCommandsInterface; in setUp()
156 new SlicePurchaseController(mPhone, mHandler.getLooper()); in setUp()
193 doReturn((int) TelephonyManager.NETWORK_TYPE_BITMASK_NR).when(mPhone) in testIsPremiumCapabilityAvailableForPurchase()
199 doReturn(SubscriptionManager.getDefaultDataSubscriptionId()).when(mPhone).getSubId(); in testIsPremiumCapabilityAvailableForPurchase()
291 doReturn((int) TelephonyManager.NETWORK_TYPE_BITMASK_NR).when(mPhone) in testPurchasePremiumCapabilityResultFeatureNotSupported()
[all …]

12