/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | DefaultPhoneNotifierTest.java | 80 mDefaultPhoneNotifierUT.notifyCallForwardingChanged(mPhone); in testNotifyCallForwarding() 83 doReturn(true).when(mPhone).getCallForwardingIndicator(); in testNotifyCallForwarding() 84 doReturn(1).when(mPhone).getSubId(); in testNotifyCallForwarding() 85 mDefaultPhoneNotifierUT.notifyCallForwardingChanged(mPhone); in testNotifyCallForwarding() 92 doReturn(Phone.DataActivityState.NONE).when(mPhone).getDataActivityState(); in testNotifyDataActivity() 93 mDefaultPhoneNotifierUT.notifyDataActivity(mPhone); in testNotifyDataActivity() 97 doReturn(1).when(mPhone).getSubId(); in testNotifyDataActivity() 98 doReturn(Phone.DataActivityState.DATAIN).when(mPhone).getDataActivityState(); in testNotifyDataActivity() 99 mDefaultPhoneNotifierUT.notifyDataActivity(mPhone); in testNotifyDataActivity() 108 doReturn(mSignalStrength).when(mPhone).getSignalStrength(); in testNotifySignalStrength() [all …]
|
D | CallManagerTest.java | 72 registerForPhone(mPhone); in onLooperPrepared() 93 private void registerForPhone(Phone mPhone) { in registerForPhone() argument 94 CallManager.getInstance().registerPhone(mPhone); in registerForPhone() 104 doReturn(mBgCall).when(mPhone).getBackgroundCall(); in setUp() 105 doReturn(mFgCall).when(mPhone).getForegroundCall(); in setUp() 106 doReturn(mRingingCall).when(mPhone).getRingingCall(); in setUp() 107 doReturn(mPhone).when(mBgCall).getPhone(); in setUp() 108 doReturn(mPhone).when(mFgCall).getPhone(); in setUp() 109 doReturn(mPhone).when(mRingingCall).getPhone(); in setUp() 124 CallManager.getInstance().unregisterPhone(mPhone); in tearDown() [all …]
|
D | SmsNumberUtilsTest.java | 141 assertEquals("123", SmsNumberUtils.filterDestAddr(mPhone, "123")); in testInvalidNumberConversion() 148 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testNaPcCountryCodeAreaLocalNumberConversion() 149 assertEquals("18583420022", SmsNumberUtils.filterDestAddr(mPhone, "+1-858-342-0022")); in testNaPcCountryCodeAreaLocalNumberConversion() 156 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mPhone, "+886-7-1234567")); in testPcCountryCodeAreaLocalNumberConversion() 164 assertEquals("0119172345678", SmsNumberUtils.filterDestAddr(mPhone, "+91-7-234-5678")); in testIndiaPcCountryCodeAreaLocalNumberConversion() 171 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mPhone, "+011886-7-1234567")); in testPcHomeIddCountryCodeAreaLocalNumberConversion() 178 assertEquals("01188671234567", SmsNumberUtils.filterDestAddr(mPhone, "011886-7-1234567")); in testHomeIddCountryCodeAreaLocalNumberConversion() 186 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mPhone, "002-1-858-1234567")); in testLocalIddCountryCodeAreaLocalNumberConversion() 194 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mPhone, "010-1-858-1234567")); in testIndiaLocalIddCountryCodeAreaLocalNumberConversion() 202 assertEquals("01118581234567", SmsNumberUtils.filterDestAddr(mPhone, "010-1-858-1234567")); in testJapanLocalIddCountryCodeAreaLocalNumberConversion() [all …]
|
D | GsmCdmaConnectionTest.java | 59 connection = new GsmCdmaConnection(mPhone, String.format( in testFormatDialString() 75 connection = new GsmCdmaConnection(mPhone, String.format( in testSanityGSM() 92 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSanityCDMA() 93 connection = new GsmCdmaConnection(mPhone, String.format( in testSanityCDMA() 111 connection = new GsmCdmaConnection(mPhone, String.format( in testConnectionStateUpdate() 128 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testCDMAPostDialPause() 129 connection = new GsmCdmaConnection(mPhone, String.format( in testCDMAPostDialPause() 146 connection = new GsmCdmaConnection(mPhone, String.format( in testGSMPostDialPause() 164 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testPostDialWait() 165 connection = new GsmCdmaConnection(mPhone, in testPostDialWait() [all …]
|
D | PhoneSubInfoControllerTest.java | 64 new Phone[]{mPhone, mSecondPhone}); in setUp() 75 doReturn("353626073736741").when(mPhone).getDeviceId(); in testGetDeviceId() 85 doReturn("353626073736741").when(mPhone).getDeviceId(); in testGetDeviceIdWithOutPermission() 125 doReturn("aaa@example.com").when(mPhone).getNai(); in testGetNai() 135 doReturn("aaa@example.com").when(mPhone).getNai(); in testGetNaiWithOutPermission() 175 doReturn("990000862471854").when(mPhone).getImei(); in testGetImei() 185 doReturn("990000862471854").when(mPhone).getImei(); in testGetImeiWithOutPermission() 225 doReturn("00").when(mPhone).getDeviceSvn(); in testGetDeviceSvn() 235 doReturn("00").when(mPhone).getDeviceSvn(); in testGetDeviceSvnWithOutPermission() 276 doReturn("310260426283121").when(mPhone).getSubscriberId(); in testGetSubscriberId() [all …]
|
D | SimActivationTrackerTest.java | 44 mSAT = new SimActivationTracker(mPhone); in setUp() 60 verify(mPhone, times(1)).notifyVoiceActivationStateChanged( in testSetVoiceActivationState() 72 verify(mPhone, times(0)).notifyVoiceActivationStateChanged( in testSetVoiceActivationState() 88 verify(mPhone, times(1)).notifyDataActivationStateChanged( in testSetDataActivationState() 99 verify(mPhone, times(1)).notifyDataActivationStateChanged( in testSetDataActivationState()
|
D | TelephonyTest.java | 90 protected GsmCdmaPhone mPhone; field in TelephonyTest 313 mPhone.mCi = mSimulatedCommands; in setUp() 368 doReturn(mContext).when(mPhone).getContext(); in setUp() 370 doReturn(true).when(mPhone).getUnitTestMode(); in setUp() 371 doReturn(mIccCardProxy).when(mPhone).getIccCard(); in setUp() 372 doReturn(mServiceState).when(mPhone).getServiceState(); in setUp() 374 doReturn(mPhone).when(mImsPhone).getDefaultPhone(); in setUp() 375 doReturn(true).when(mPhone).isPhoneTypeGsm(); in setUp() 376 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mPhone).getPhoneType(); in setUp() 377 doReturn(mCT).when(mPhone).getCallTracker(); in setUp() [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | InCallService.java | 86 if (mPhone == null && msg.what != MSG_SET_IN_CALL_ADAPTER) { 93 mPhone = new Phone(new InCallAdapter((IInCallAdapter) msg.obj), callingPackage, 95 mPhone.addListener(mPhoneListener); 96 onPhoneCreated(mPhone); 99 mPhone.internalAddCall((ParcelableCall) msg.obj); 102 mPhone.internalUpdateCall((ParcelableCall) msg.obj); 109 mPhone.internalSetPostDialWait(callId, remaining); 116 mPhone.internalCallAudioStateChanged((CallAudioState) msg.obj); 119 mPhone.internalBringToForeground(msg.arg1 == 1); 122 mPhone.internalSetCanAddCall(msg.arg1 == 1); [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | TelephonyTester.java | 88 private Phone mPhone; field in TelephonyTester 98 if (action.equals(mPhone.getActionDetached())) { 100 mPhone.getServiceStateTracker().mDetachedRegistrants.notifyRegistrants(); 101 } else if (action.equals(mPhone.getActionAttached())) { 103 mPhone.getServiceStateTracker().mAttachedRegistrants.notifyRegistrants(); 124 mPhone = phone; in TelephonyTester() 129 filter.addAction(mPhone.getActionDetached()); in TelephonyTester() 130 log("register for intent action=" + mPhone.getActionDetached()); in TelephonyTester() 132 filter.addAction(mPhone.getActionAttached()); in TelephonyTester() 133 log("register for intent action=" + mPhone.getActionAttached()); in TelephonyTester() [all …]
|
D | GsmCdmaCallTracker.java | 87 private GsmCdmaPhone mPhone; field in GsmCdmaCallTracker 145 this.mPhone = phone; in GsmCdmaCallTracker() 154 mPhone.getContext().registerReceiver(mEcmExitReceiver, filter); in GsmCdmaCallTracker() 168 if (mPhone.isPhoneTypeGsm()) { in updatePhoneType() 274 dialString = convertNumberIfNecessary(mPhone, dialString); in dial() 305 boolean isEmergencyCall = PhoneNumberUtils.isLocalEmergencyNumber(mPhone.getContext(), in dial() 307 mPendingMO = new GsmCdmaConnection(mPhone, checkForTestEmergencyNumber(dialString), in dial() 310 mMetrics.writeRilDial(mPhone.getPhoneId(), mPendingMO, clirMode, uusInfo); in dial() 334 mPhone.notifyPreciseCallStateChanged(); in dial() 344 mPhone.handleTimerInEmergencyCallbackMode(action); in handleEcmTimer() [all …]
|
D | ServiceStateTracker.java | 300 int subId = mPhone.getSubId(); in onSubscriptionsChanged() 303 Context context = mPhone.getContext(); in onSubscriptionsChanged() 305 mPhone.notifyPhoneStateChanged(); in onSubscriptionsChanged() 306 mPhone.notifyCallForwardingIndicator(); in onSubscriptionsChanged() 310 mPhone.sendSubscriptionSettings(restoreSelection); in onSubscriptionsChanged() 312 mPhone.setSystemProperty(TelephonyProperties.PROPERTY_DATA_NETWORK_TYPE, in onSubscriptionsChanged() 317 mSubscriptionController.setPlmnSpn(mPhone.getPhoneId(), mCurShowPlmn, in onSubscriptionsChanged() 355 mPhone.updateVoiceMail(); in onSubscriptionsChanged() 361 private GsmCdmaPhone mPhone; field in ServiceStateTracker 463 if (!mPhone.isPhoneTypeGsm()) { [all …]
|
D | SimActivationTracker.java | 48 private Phone mPhone; field in SimActivationTracker 73 mPhone = phone; in SimActivationTracker() 94 mPhone.getContext().registerReceiver(mReceiver, intentFilter); in SimActivationTracker() 104 mPhone.notifyVoiceActivationStateChanged(state); in setVoiceActivationState() 114 mPhone.notifyDataActivationStateChanged(state); in setDataActivationState() 156 Rlog.d(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s); in log() 160 Rlog.e(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s); in loge() 177 mPhone.getContext().unregisterReceiver(mReceiver); in dispose()
|
D | CarrierSignalAgent.java | 67 private final Phone mPhone; field in CarrierSignalAgent 104 if (mPhone.getIccCard() != null 105 && IccCardConstants.State.ABSENT == mPhone.getIccCard().getState()) { 116 mPhone = phone; in CarrierSignalAgent() 119 mPhone.getContext().registerReceiver(mReceiver, in CarrierSignalAgent() 127 CarrierConfigManager configManager = (CarrierConfigManager) mPhone.getContext() in loadCarrierConfig() 219 final PackageManager packageManager = mPhone.getContext().getPackageManager(); in broadcast() 237 signal.putExtra(PhoneConstants.SUBSCRIPTION_KEY, mPhone.getSubId()); in broadcast() 242 mPhone.getContext().sendBroadcast(signal); in broadcast() 278 Rlog.d(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s); in log() [all …]
|
D | IccSmsInterfaceManager.java | 82 protected Phone mPhone; field in IccSmsInterfaceManager 130 mPhone = phone; in IccSmsInterfaceManager() 144 IccFileHandler fh = mPhone.getIccFileHandler(); in markMessagesAsRead() 172 mPhone = phone; in updatePhoneObject() 214 if (PhoneConstants.PHONE_TYPE_GSM == mPhone.getPhoneType()) { in updateMessageOnIccEf() 215 mPhone.mCi.deleteSmsOnSim(index, response); in updateMessageOnIccEf() 217 mPhone.mCi.deleteSmsOnRuim(index, response); in updateMessageOnIccEf() 221 IccFileHandler fh = mPhone.getIccFileHandler(); in updateMessageOnIccEf() 264 if (PhoneConstants.PHONE_TYPE_GSM == mPhone.getPhoneType()) { in copyMessageToIccEf() 265 mPhone.mCi.writeSmsToSim(status, IccUtils.bytesToHexString(smsc), in copyMessageToIccEf() [all …]
|
D | CarrierActionAgent.java | 61 private final Phone mPhone; field in CarrierActionAgent 99 if (Settings.Global.getInt(mPhone.getContext().getContentResolver(), in onChange() 108 mPhone = phone; in CarrierActionAgent() 109 mPhone.getContext().registerReceiver(mReceiver, in CarrierActionAgent() 112 mPhone.getContext().getContentResolver().registerContentObserver( in CarrierActionAgent() 141 mPhone.getCarrierSignalAgent().notifyCarrierSignalReceivers( in handleMessage() 236 Rlog.d(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s); in log() 240 Rlog.e(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s); in loge() 244 Rlog.v(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s); in logv()
|
D | DeviceStateMonitor.java | 63 private final Phone mPhone; field in DeviceStateMonitor 170 mPhone = phone; in DeviceStateMonitor() 190 mPhone.getContext().registerReceiver(mBroadcastReceiver, filter, null, mPhone); in DeviceStateMonitor() 192 mPhone.mCi.registerForRilConnected(this, EVENT_RIL_CONNECTED, null); in DeviceStateMonitor() 330 mPhone.mCi.sendDeviceState(type, state, null); in sendDeviceState() 342 mPhone.mCi.setUnsolResponseFilter(newFilter, null); in setUnsolResponseFilter() 352 final PowerManager pm = (PowerManager) mPhone.getContext().getSystemService( in isPowerSaveModeOn() 364 final BatteryManager bm = (BatteryManager) mPhone.getContext().getSystemService( in isDeviceCharging() 377 final DisplayManager dm = (DisplayManager) mPhone.getContext().getSystemService( in isScreenOn()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcTesterFailBringUpAll.java | 44 private Phone mPhone; field in DcTesterFailBringUpAll 60 } else if (action.equals(mPhone.getActionDetached())) { 66 } else if (action.equals(mPhone.getActionAttached())) { 78 mPhone = phone; in DcTesterFailBringUpAll() 85 filter.addAction(mPhone.getActionDetached()); in DcTesterFailBringUpAll() 86 log("register for intent action=" + mPhone.getActionDetached()); in DcTesterFailBringUpAll() 88 filter.addAction(mPhone.getActionAttached()); in DcTesterFailBringUpAll() 89 log("register for intent action=" + mPhone.getActionAttached()); in DcTesterFailBringUpAll() 97 mPhone.getContext().unregisterReceiver(mIntentReceiver); in dispose()
|
D | DcTracker.java | 318 mPhone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE); 320 PersistableBundle cfg = configMgr.getConfigForSubId(mPhone.getSubId()); 364 int subId = mPhone.getSubId(); 421 simSuffix = Integer.toString(mPhone.getSubId()); in registerSettingsObserver() 479 int phoneSubId = mPhone.getSubId(); in onActionIntentReconnectAlarm() 548 private final Phone mPhone; field in DcTracker 689 mPhone = phone; in DcTracker() 693 mResolver = mPhone.getContext().getContentResolver(); in DcTracker() 697 (AlarmManager) mPhone.getContext().getSystemService(Context.ALARM_SERVICE); in DcTracker() 698 mCm = (ConnectivityManager) mPhone.getContext().getSystemService( in DcTracker() [all …]
|
D | DcTesterDeactivateAll.java | 38 private Phone mPhone; field in DcTesterDeactivateAll 53 || action.equals(mPhone.getActionDetached())) { 69 mPhone = phone; in DcTesterDeactivateAll() 78 filter.addAction(mPhone.getActionDetached()); in DcTesterDeactivateAll() 79 log("register for intent action=" + mPhone.getActionDetached()); in DcTesterDeactivateAll() 87 mPhone.getContext().unregisterReceiver(sIntentReceiver); in dispose()
|
D | DcController.java | 52 private Phone mPhone; field in DcController 94 mPhone = phone; in DcController() 160 mPhone.mCi.registerForRilConnected(getHandler(), in enter() 162 mPhone.mCi.registerForDataCallListChanged(getHandler(), in enter() 166 new DcTesterDeactivateAll(mPhone, DcController.this, getHandler()); in enter() 172 if (mPhone != null) { in exit() 173 mPhone.mCi.unregisterForRilConnected(getHandler()); in exit() 174 mPhone.mCi.unregisterForDataCallListChanged(getHandler()); in exit() 271 if (failCause.isRestartRadioFail(mPhone.getContext(), in onDataStateChanged() 272 mPhone.getSubId())) { in onDataStateChanged() [all …]
|
D | DataConnection.java | 160 private Phone mPhone; field in DataConnection 383 int mtu = mPhone.getContext().getResources().getInteger( in checkSetMtu() 400 mPhone = phone; in DataConnection() 406 ServiceState ss = mPhone.getServiceState(); in DataConnection() 408 mDataRegState = mPhone.getServiceState().getDataRegState(); in DataConnection() 470 mPhone.mCi.setupDataCall(cp.mRilRat, dp, in onConnect() 471 mPhone.getServiceState().getDataRoamingFromRegistration(), in onConnect() 472 mPhone.getDataRoamingEnabled(), msg); in onConnect() 494 if (mPhone.mCi.getRadioState().isOn() in tearDownData() 495 || (mPhone.getServiceState().getRilDataRadioTechnology() in tearDownData() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | TelephonyMetricsTest.java | 143 mMetrics.writeDataStallEvent(mPhone.getPhoneId(), i); in testEventDropped() 157 mMetrics.writeDataStallEvent(mPhone.getPhoneId(), 3); in testWriteDataStallEvent() 163 assertEquals(mPhone.getPhoneId(), log.events[0].phoneId); in testWriteDataStallEvent() 171 mMetrics.writeModemRestartEvent(mPhone.getPhoneId(), "Test"); in testModemRestartEvent() 178 assertEquals(mPhone.getPhoneId(), log.events[0].phoneId); in testModemRestartEvent() 186 mMetrics.writeOnImsCallStart(mPhone.getPhoneId(), mImsCallSession); in testWriteOnImsCallStart() 187 mMetrics.writePhoneState(mPhone.getPhoneId(), PhoneConstants.State.IDLE); in testWriteOnImsCallStart() 194 assertEquals(mPhone.getPhoneId(), log.callSessions[0].phoneId); in testWriteOnImsCallStart() 209 mMetrics.writeOnImsCallReceive(mPhone.getPhoneId(), mImsCallSession); in testWriteOnImsCallReceive() 210 mMetrics.writePhoneState(mPhone.getPhoneId(), PhoneConstants.State.IDLE); in testWriteOnImsCallReceive() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTracker.java | 158 ImsPhoneConnection conn = new ImsPhoneConnection(mPhone, imsCall, 179 TelephonyMetrics.getInstance().writeOnImsCallReceive(mPhone.getPhoneId(), 183 mPhone.notifyUnknownConnection(conn); 190 mPhone.notifyNewRingingConnection(conn); 191 mPhone.notifyIncomingRing(); 195 mPhone.notifyPreciseCallStateChanged(); 204 if (subId == mPhone.getSubId()) { 263 ImsPhone mPhone; field in ImsPhoneCallTracker 638 this.mPhone = phone; in ImsPhoneCallTracker() 645 mPhone.getContext().registerReceiver(mReceiver, intentfilter); in ImsPhoneCallTracker() [all …]
|
D | ImsExternalCallTracker.java | 129 private final ImsPhone mPhone; field in ImsExternalCallTracker 155 mPhone = phone; in ImsExternalCallTracker() 162 mPhone = phone; in ImsExternalCallTracker() 166 mPhone.notifyUnknownConnection(c); in ImsExternalCallTracker() 171 mPhone.notifyPreciseCallStateChanged(); in ImsExternalCallTracker() 216 if (mPhone != null) { in registerForNotifications() 217 Log.d(TAG, "Registering: " + mPhone); in registerForNotifications() 218 mPhone.getDefaultPhone().registerForVideoCapabilityChanged(mHandler, in registerForNotifications() 227 if (mPhone != null) { in unregisterForNotifications() 228 Log.d(TAG, "Unregistering: " + mPhone); in unregisterForNotifications() [all …]
|
D | ImsPhoneMmiCode.java | 170 private ImsPhone mPhone; field in ImsPhoneMmiCode 477 mPhone = phone; in ImsPhoneMmiCode() 479 mIccRecords = mPhone.mDefaultPhone.getIccRecords(); in ImsPhoneMmiCode() 497 public Phone getPhone() { return mPhone; } in getPhone() 511 mPhone.cancelUSSD(); in cancel() 513 mPhone.onMMIDone (this); in cancel() 774 mPhone.getCallForwardingOption(reason, in processCode() 810 mPhone.setCallForwardingOption(cfAction, reason, in processCode() 825 mPhone.getCallBarring(facility, in processCode() 828 mPhone.setCallBarring(facility, isActivate(), password, in processCode() [all …]
|