Searched refs:mPhone (Results 1 - 25 of 72) sorted by relevance

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DDefaultPhoneNotifierTest.java78 mDefaultPhoneNotifierUT.notifyCallForwardingChanged(mPhone);
81 doReturn(true).when(mPhone).getCallForwardingIndicator();
82 doReturn(1).when(mPhone).getSubId();
83 mDefaultPhoneNotifierUT.notifyCallForwardingChanged(mPhone);
90 doReturn(Phone.DataActivityState.NONE).when(mPhone).getDataActivityState();
91 mDefaultPhoneNotifierUT.notifyDataActivity(mPhone);
95 doReturn(1).when(mPhone).getSubId();
96 doReturn(Phone.DataActivityState.DATAIN).when(mPhone).getDataActivityState();
97 mDefaultPhoneNotifierUT.notifyDataActivity(mPhone);
106 doReturn(mSignalStrength).when(mPhone)
[all...]
H A DCallManagerTest.java72 registerForPhone(mPhone);
93 private void registerForPhone(Phone mPhone) { argument
94 CallManager.getInstance().registerPhone(mPhone);
104 doReturn(mBgCall).when(mPhone).getBackgroundCall();
105 doReturn(mFgCall).when(mPhone).getForegroundCall();
106 doReturn(mRingingCall).when(mPhone).getRingingCall();
107 doReturn(mPhone).when(mBgCall).getPhone();
108 doReturn(mPhone).when(mFgCall).getPhone();
109 doReturn(mPhone).when(mRingingCall).getPhone();
124 CallManager.getInstance().unregisterPhone(mPhone);
[all...]
H A DSmsNumberUtilsTest.java140 assertEquals("123", SmsNumberUtils.filterDestAddr(mPhone, "123"));
147 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType();
148 assertEquals("18583420022", SmsNumberUtils.filterDestAddr(mPhone, "+1-858-342-0022"));
155 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mPhone, "+886-7-1234567"));
163 assertEquals("0119172345678", SmsNumberUtils.filterDestAddr(mPhone, "+91-7-234-5678"));
170 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mPhone, "+011886-7-1234567"));
177 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mPhone, "011886-7-1234567"));
185 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mPhone, "002-1-858-1234567"));
193 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mPhone, "010-1-858-1234567"));
201 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mPhone, "01
[all...]
H A DGsmCdmaConnectionTest.java59 connection = new GsmCdmaConnection(mPhone, String.format(
75 connection = new GsmCdmaConnection(mPhone, String.format(
92 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType();
93 connection = new GsmCdmaConnection(mPhone, String.format(
111 connection = new GsmCdmaConnection(mPhone, String.format(
128 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType();
129 connection = new GsmCdmaConnection(mPhone, String.format(
146 connection = new GsmCdmaConnection(mPhone, String.format(
164 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType();
165 connection = new GsmCdmaConnection(mPhone,
[all...]
H A DTelephonyTest.java91 protected GsmCdmaPhone mPhone; field in class:TelephonyTest
307 mPhone.mCi = mSimulatedCommands;
349 //mPhone
350 doReturn(mContext).when(mPhone).getContext();
352 doReturn(true).when(mPhone).getUnitTestMode();
353 doReturn(mIccCardProxy).when(mPhone).getIccCard();
354 doReturn(mServiceState).when(mPhone).getServiceState();
356 doReturn(mPhone).when(mImsPhone).getDefaultPhone();
357 doReturn(true).when(mPhone).isPhoneTypeGsm();
358 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mPhone)
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcTesterFailBringUpAll.java44 private Phone mPhone; field in class:DcTesterFailBringUpAll
60 } else if (action.equals(mPhone.getActionDetached())) {
66 } else if (action.equals(mPhone.getActionAttached())) {
78 mPhone = phone;
85 filter.addAction(mPhone.getActionDetached());
86 log("register for intent action=" + mPhone.getActionDetached());
88 filter.addAction(mPhone.getActionAttached());
89 log("register for intent action=" + mPhone.getActionAttached());
97 mPhone.getContext().unregisterReceiver(mIntentReceiver);
H A DDcTesterDeactivateAll.java38 private Phone mPhone; field in class:DcTesterDeactivateAll
53 || action.equals(mPhone.getActionDetached())) {
69 mPhone = phone;
78 filter.addAction(mPhone.getActionDetached());
79 log("register for intent action=" + mPhone.getActionDetached());
87 mPhone.getContext().unregisterReceiver(sIntentReceiver);
H A DDcTracker.java353 int subId = mPhone.getSubId();
410 simSuffix = Integer.toString(mPhone.getSubId());
468 int phoneSubId = mPhone.getSubId();
537 private final Phone mPhone; field in class:DcTracker
662 mPhone = phone;
666 mResolver = mPhone.getContext().getContentResolver();
670 (AlarmManager) mPhone.getContext().getSystemService(Context.ALARM_SERVICE);
671 mCm = (ConnectivityManager) mPhone.getContext().getSystemService(
686 mPhone.getContext().registerReceiver(mIntentReceiver, filter, null, mPhone);
[all...]
H A DDcController.java52 private Phone mPhone; field in class:DcController
94 mPhone = phone;
160 mPhone.mCi.registerForRilConnected(getHandler(),
162 mPhone.mCi.registerForDataNetworkStateChanged(getHandler(),
166 new DcTesterDeactivateAll(mPhone, DcController.this, getHandler());
172 if (mPhone != null) {
173 mPhone.mCi.unregisterForRilConnected(getHandler());
174 mPhone.mCi.unregisterForDataNetworkStateChanged(getHandler());
333 mPhone.notifyDataConnection(
442 pw.println(" mPhone
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DInCallService.java84 if (mPhone == null && msg.what != MSG_SET_IN_CALL_ADAPTER) {
90 mPhone = new Phone(new InCallAdapter((IInCallAdapter) msg.obj));
91 mPhone.addListener(mPhoneListener);
92 onPhoneCreated(mPhone);
95 mPhone.internalAddCall((ParcelableCall) msg.obj);
98 mPhone.internalUpdateCall((ParcelableCall) msg.obj);
105 mPhone.internalSetPostDialWait(callId, remaining);
112 mPhone.internalCallAudioStateChanged((CallAudioState) msg.obj);
115 mPhone.internalBringToForeground(msg.arg1 == 1);
118 mPhone
245 private Phone mPhone; field in class:InCallService
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsExternalCall.java32 private Phone mPhone; field in class:ImsExternalCall
35 mPhone = phone;
46 return mPhone;
H A DImsPhoneCallTracker.java151 ImsPhoneConnection conn = new ImsPhoneConnection(mPhone, imsCall,
167 TelephonyMetrics.getInstance().writeOnImsCallReceive(mPhone.getPhoneId(),
171 mPhone.notifyUnknownConnection(conn);
178 mPhone.notifyNewRingingConnection(conn);
179 mPhone.notifyIncomingRing();
183 mPhone.notifyPreciseCallStateChanged();
192 if (subId == mPhone.getSubId()) {
248 ImsPhone mPhone; field in class:ImsPhoneCallTracker
331 this.mPhone = phone;
338 mPhone
[all...]
H A DImsExternalCallTracker.java129 private final ImsPhone mPhone; field in class:ImsExternalCallTracker
155 mPhone = phone;
162 mPhone = phone;
166 mPhone.notifyUnknownConnection(c);
171 mPhone.notifyPreciseCallStateChanged();
216 if (mPhone != null) {
217 Log.d(TAG, "Registering: " + mPhone);
218 mPhone.getDefaultPhone().registerForVideoCapabilityChanged(mHandler,
227 if (mPhone != null) {
228 Log.d(TAG, "Unregistering: " + mPhone);
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCarrierSignalAgent.java44 private final Phone mPhone; field in class:CarrierSignalAgent
67 mPhone = phone;
82 CarrierConfigManager configManager = (CarrierConfigManager) mPhone.getContext()
121 final PackageManager packageManager = mPhone.getContext().getPackageManager();
138 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, mPhone.getSubId());
142 mPhone.getContext().sendBroadcast(intent);
160 Rlog.d(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s);
164 Rlog.e(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s);
H A DTelephonyTester.java87 private Phone mPhone; field in class:TelephonyTester
96 if (action.equals(mPhone.getActionDetached())) {
98 mPhone.getServiceStateTracker().mDetachedRegistrants.notifyRegistrants();
99 } else if (action.equals(mPhone.getActionAttached())) {
101 mPhone.getServiceStateTracker().mAttachedRegistrants.notifyRegistrants();
118 mPhone = phone;
123 filter.addAction(mPhone.getActionDetached());
124 log("register for intent action=" + mPhone.getActionDetached());
126 filter.addAction(mPhone.getActionAttached());
127 log("register for intent action=" + mPhone
[all...]
H A DServiceStateTracker.java299 int subId = mPhone.getSubId();
302 Context context = mPhone.getContext();
304 mPhone.notifyPhoneStateChanged();
305 mPhone.notifyCallForwardingIndicator();
309 mPhone.sendSubscriptionSettings(restoreSelection);
311 mPhone.setSystemProperty(TelephonyProperties.PROPERTY_DATA_NETWORK_TYPE,
316 mSubscriptionController.setPlmnSpn(mPhone.getPhoneId(), mCurShowPlmn,
354 mPhone.updateVoiceMail();
360 private GsmCdmaPhone mPhone; field in class:ServiceStateTracker
442 if (!mPhone
[all...]
H A DGsmCdmaCallTracker.java85 private GsmCdmaPhone mPhone; field in class:GsmCdmaCallTracker
141 this.mPhone = phone;
150 mPhone.getContext().registerReceiver(mEcmExitReceiver, filter);
164 if (mPhone.isPhoneTypeGsm()) {
270 dialString = convertNumberIfNecessary(mPhone, dialString);
301 boolean isEmergencyCall = PhoneNumberUtils.isLocalEmergencyNumber(mPhone.getContext(),
303 mPendingMO = new GsmCdmaConnection(mPhone, checkForTestEmergencyNumber(dialString),
328 mPhone.notifyPreciseCallStateChanged();
338 mPhone.handleTimerInEmergencyCallbackMode(action);
352 if (PhoneNumberUtils.isLocalEmergencyNumber(mPhone
[all...]
H A DIccSmsInterfaceManager.java80 protected Phone mPhone; field in class:IccSmsInterfaceManager
128 mPhone = phone;
142 IccFileHandler fh = mPhone.getIccFileHandler();
170 mPhone = phone;
212 if (PhoneConstants.PHONE_TYPE_GSM == mPhone.getPhoneType()) {
213 mPhone.mCi.deleteSmsOnSim(index, response);
215 mPhone.mCi.deleteSmsOnRuim(index, response);
219 IccFileHandler fh = mPhone.getIccFileHandler();
262 if (PhoneConstants.PHONE_TYPE_GSM == mPhone.getPhoneType()) {
263 mPhone
[all...]
H A DIccPhoneBookInterfaceManager.java45 protected Phone mPhone; field in class:IccPhoneBookInterfaceManager
114 this.mPhone = phone;
166 if (mPhone.getContext().checkCallingOrSelfPermission(
219 if (mPhone.getContext().checkCallingOrSelfPermission(
265 IccFileHandler fh = mPhone.getIccFileHandler();
287 if (mPhone.getContext().checkCallingOrSelfPermission(
335 if (mPhone.getCurrentUiccAppType() == AppType.APPTYPE_USIM) {
H A DRatRatcheter.java50 private final Phone mPhone; field in class:RatRatcheter
54 mPhone = phone;
106 mPhone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE);
H A DSmsStorageMonitor.java59 Phone mPhone; field in class:SmsStorageMonitor
75 mPhone = phone;
147 SubscriptionManager.putPhoneIdAndSubIdExtra(intent, mPhone.getPhoneId());
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
H A DTelephonyMetricsTest.java130 mMetrics.writeDataStallEvent(mPhone.getPhoneId(), i);
145 mMetrics.writeDataStallEvent(mPhone.getPhoneId(), 3);
152 assertEquals(mPhone.getPhoneId(), log.events[0].getPhoneId());
160 mMetrics.writeOnImsCallStart(mPhone.getPhoneId(), mImsCallSession);
161 mMetrics.writePhoneState(mPhone.getPhoneId(), PhoneConstants.State.IDLE);
168 assertEquals(mPhone.getPhoneId(), log.callSessions[0].getPhoneId());
183 mMetrics.writeOnImsCallStart(mPhone.getPhoneId(), mImsCallSession);
184 mMetrics.writeImsCallState(mPhone.getPhoneId(), mImsCallSession, Call.State.ACTIVE);
185 mMetrics.writePhoneState(mPhone.getPhoneId(), PhoneConstants.State.IDLE);
204 mMetrics.writeOnImsCallStart(mPhone
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmInboundSmsHandler.java61 mPhone.mCi.unSetOnNewGsmSms(getHandler());
109 destPort, mPhone.getSubId());
118 UsimServiceTable ust = mPhone.getUsimServiceTable();
156 mPhone.setVoiceMessageCount(voicemailCount);
159 mPhone.getPhoneId(), UiccController.APP_FAM_3GPP);
176 mPhone.mCi.acknowledgeLastIncomingGsmSms(success, resultToCause(result), response);
180 * Called when the phone changes the default method updates mPhone
H A DGsmMmiCode.java118 GsmCdmaPhone mPhone; field in class:GsmMmiCode
310 mPhone.setVoiceCallForwardingFlag(1, cffEnabled, null);
546 mPhone = phone;
570 return ((Phone) mPhone);
589 mPhone.mCi.cancelPendingUssd(obtainMessage(EVENT_USSD_CANCEL_COMPLETE, this));
600 mPhone.onMMIDone (this);
793 mPhone.mCi.queryCLIP(
801 mPhone.mCi.setCLIR(CommandsInterface.CLIR_INVOCATION,
804 mPhone.mCi.setCLIR(CommandsInterface.CLIR_SUPPRESSION,
807 mPhone
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
H A DImsPhoneFactoryTest.java47 mImsPhoneUT = ImsPhoneFactory.makePhone(mContext, mPhoneNotifer, mPhone);
70 assertEquals(mPhone, mImsPhoneUT.getDefaultPhone());

Completed in 4269 milliseconds

123