Lines Matching refs:phone

17 package com.android.phone;
101 import com.android.phone.vvm.PhoneAccountHandleConverter;
102 import com.android.phone.vvm.RemoteVvmTaskManager;
103 import com.android.phone.vvm.VisualVoicemailSettingsUtil;
104 import com.android.phone.vvm.VisualVoicemailSmsFilterConfig;
284 final Phone phone = getPhoneFromRequest(request); in handleMessage() local
305 request.result = phone != null ? in handleMessage()
306 phone.handleUssdRequest(ussdRequest, wrappedCallback) in handleMessage()
320 final Phone phone = getPhoneFromRequest(request); in handleMessage() local
321 request.result = phone != null ? in handleMessage()
363 Phone phone = getPhone(end_subId); in handleMessage() local
364 if (phone == null) { in handleMessage()
368 int phoneType = phone.getPhoneType(); in handleMessage()
1030 /* package */ static PhoneInterfaceManager init(PhoneGlobals app, Phone phone) { in init() argument
1033 sInstance = new PhoneInterfaceManager(app, phone); in init()
1042 private PhoneInterfaceManager(PhoneGlobals app, Phone phone) { in PhoneInterfaceManager() argument
1044 mPhone = phone; in PhoneInterfaceManager()
1068 Phone phone = getPhoneFromRequest(request); in getUiccCardFromRequest() local
1069 return phone == null ? null : in getUiccCardFromRequest()
1070 UiccController.getInstance().getUiccCard(phone.getPhoneId()); in getUiccCardFromRequest()
1233 final Phone phone = getPhone(subId); in isOffhookForSubscriber() local
1234 if (phone != null) { in isOffhookForSubscriber()
1235 return (phone.getState() == PhoneConstants.State.OFFHOOK); in isOffhookForSubscriber()
1252 final Phone phone = getPhone(subId); in isRingingForSubscriber() local
1253 if (phone != null) { in isRingingForSubscriber()
1254 return (phone.getState() == PhoneConstants.State.RINGING); in isRingingForSubscriber()
1271 final Phone phone = getPhone(subId); in isIdleForSubscriber() local
1272 if (phone != null) { in isIdleForSubscriber()
1273 return (phone.getState() == PhoneConstants.State.IDLE); in isIdleForSubscriber()
1429 final Phone phone = getPhone(subId); in updateServiceLocationForSubscriber() local
1430 if (phone != null) { in updateServiceLocationForSubscriber()
1431 phone.updateServiceLocation(); in updateServiceLocationForSubscriber()
1449 final Phone phone = getPhone(subId); in isRadioOnForSubscriber() local
1450 if (phone != null) { in isRadioOnForSubscriber()
1451 return phone.getServiceState().getState() != ServiceState.STATE_POWER_OFF; in isRadioOnForSubscriber()
1464 final Phone phone = getPhone(subId); in toggleRadioOnOffForSubscriber() local
1465 if (phone != null) { in toggleRadioOnOffForSubscriber()
1466 phone.setRadioPower(!isRadioOnForSubscriber(subId)); in toggleRadioOnOffForSubscriber()
1476 final Phone phone = getPhone(subId); in setRadioForSubscriber() local
1477 if (phone == null) { in setRadioForSubscriber()
1480 if ((phone.getServiceState().getState() != in setRadioForSubscriber()
1493 Phone phone = PhoneFactory.getPhone(i); in needMobileRadioShutdown() local
1494 if (phone != null && phone.isRadioAvailable()) return true; in needMobileRadioShutdown()
1509 Phone phone = PhoneFactory.getPhone(phoneId); in shutdownRadioUsingPhoneId() local
1510 if (phone != null && phone.isRadioAvailable()) { in shutdownRadioUsingPhoneId()
1511 phone.shutdownRadio(); in shutdownRadioUsingPhoneId()
1529 final Phone phone = getPhone(subId); in setRadioPowerForSubscriber() local
1530 if (phone != null) { in setRadioPowerForSubscriber()
1531 phone.setRadioPower(turnOn); in setRadioPowerForSubscriber()
1543 final Phone phone = getPhone(subId); in enableDataConnectivity() local
1544 if (phone != null) { in enableDataConnectivity()
1545 phone.setDataEnabled(true); in enableDataConnectivity()
1557 final Phone phone = getPhone(subId); in disableDataConnectivity() local
1558 if (phone != null) { in disableDataConnectivity()
1559 phone.setDataEnabled(false); in disableDataConnectivity()
1570 final Phone phone = getPhone(subId); in isDataConnectivityPossible() local
1571 if (phone != null) { in isDataConnectivityPossible()
1572 return phone.isDataConnectivityPossible(); in isDataConnectivityPossible()
1605 Phone phone = PhoneFactory.getPhone(slotIndex); in getCallStateForSlot() local
1606 return phone == null ? TelephonyManager.CALL_STATE_IDLE : in getCallStateForSlot()
1607 PhoneConstantConversions.convertCallState(phone.getState()); in getCallStateForSlot()
1612 Phone phone = getPhone(mSubscriptionController.getDefaultDataSubId()); in getDataState() local
1613 if (phone != null) { in getDataState()
1614 return PhoneConstantConversions.convertDataState(phone.getDataConnectionState()); in getDataState()
1622 Phone phone = getPhone(mSubscriptionController.getDefaultDataSubId()); in getDataActivity() local
1623 if (phone != null) { in getDataActivity()
1624 return DefaultPhoneNotifier.convertDataActivityState(phone.getDataActivityState()); in getDataActivity()
1645 Phone phone = getPhone(mSubscriptionController.getDefaultDataSubId()); in getCellLocation() local
1646 if (phone == null) { in getCellLocation()
1651 phone.getCellLocation(workSource).fillInNotifierBundle(data); in getCellLocation()
1682 final Phone phone = getPhone(subId); in enableLocationUpdatesForSubscriber() local
1683 if (phone != null) { in enableLocationUpdatesForSubscriber()
1684 phone.enableLocationUpdates(); in enableLocationUpdatesForSubscriber()
1697 final Phone phone = getPhone(subId); in disableLocationUpdatesForSubscriber() local
1698 if (phone != null) { in disableLocationUpdatesForSubscriber()
1699 phone.disableLocationUpdates(); in disableLocationUpdatesForSubscriber()
1756 for (Phone phone : PhoneFactory.getPhones()) { in getAllCellInfo()
1757 final List<CellInfo> info = phone.getAllCellInfo(workSource); in getAllCellInfo()
1779 Phone phone = PhoneFactory.getPhone(slotIndex); in getImeiForSlot() local
1780 return phone == null ? null : phone.getImei(); in getImeiForSlot()
1788 Phone phone = PhoneFactory.getPhone(slotIndex); in getMeidForSlot() local
1789 return phone == null ? null : phone.getMeid(); in getMeidForSlot()
1797 Phone phone = PhoneFactory.getPhone(slotIndex); in getDeviceSoftwareVersionForSlot() local
1798 return phone == null ? null : phone.getDeviceSvn(); in getDeviceSoftwareVersionForSlot()
1926 final Phone phone = PhoneFactory.getPhone(slotIndex); in getActivePhoneTypeForSlot() local
1927 if (phone == null) { in getActivePhoneTypeForSlot()
1930 return phone.getPhoneType(); in getActivePhoneTypeForSlot()
1947 final Phone phone = getPhone(subId); in getCdmaEriIconIndexForSubscriber() local
1948 if (phone != null) { in getCdmaEriIconIndexForSubscriber()
1949 return phone.getCdmaEriIconIndex(); in getCdmaEriIconIndexForSubscriber()
1970 final Phone phone = getPhone(subId); in getCdmaEriIconModeForSubscriber() local
1971 if (phone != null) { in getCdmaEriIconModeForSubscriber()
1972 return phone.getCdmaEriIconMode(); in getCdmaEriIconModeForSubscriber()
1991 final Phone phone = getPhone(subId); in getCdmaEriTextForSubscriber() local
1992 if (phone != null) { in getCdmaEriTextForSubscriber()
1993 return phone.getCdmaEriText(); in getCdmaEriTextForSubscriber()
2005 final Phone phone = getPhone(subId); in getCdmaMdn() local
2006 if (mPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA && phone != null) { in getCdmaMdn()
2007 return phone.getLine1Number(); in getCdmaMdn()
2019 final Phone phone = getPhone(subId); in getCdmaMin() local
2020 if (phone != null && phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { in getCdmaMin()
2021 return phone.getCdmaMin(); in getCdmaMin()
2127 final Phone phone = getPhone(subId); in setVoiceActivationState() local
2128 if (phone != null) { in setVoiceActivationState()
2129 phone.setVoiceActivationState(activationState); in setVoiceActivationState()
2141 final Phone phone = getPhone(subId); in setDataActivationState() local
2142 if (phone != null) { in setDataActivationState()
2143 phone.setDataActivationState(activationState); in setDataActivationState()
2157 final Phone phone = getPhone(subId); in getVoiceActivationState() local
2158 if (phone != null) { in getVoiceActivationState()
2159 return phone.getVoiceActivationState(); in getVoiceActivationState()
2173 final Phone phone = getPhone(subId); in getDataActivationState() local
2174 if (phone != null) { in getDataActivationState()
2175 return phone.getDataActivationState(); in getDataActivationState()
2193 final Phone phone = getPhone(subId); in getVoiceMessageCountForSubscriber() local
2194 if (phone != null) { in getVoiceMessageCountForSubscriber()
2195 return phone.getVoiceMessageCount(); in getVoiceMessageCountForSubscriber()
2207 final Phone phone = getPhone(subId); in isConcurrentVoiceAndDataAllowed() local
2208 return (phone == null ? false : phone.isConcurrentVoiceAndDataAllowed()); in isConcurrentVoiceAndDataAllowed()
2234 final Phone phone = getPhone(getDefaultSubscription()); in getNetworkType() local
2235 if (phone != null) { in getNetworkType()
2236 return phone.getServiceState().getDataNetworkType(); in getNetworkType()
2251 final Phone phone = getPhone(subId); in getNetworkTypeForSubscriber() local
2252 if (phone != null) { in getNetworkTypeForSubscriber()
2253 return phone.getServiceState().getDataNetworkType(); in getNetworkTypeForSubscriber()
2276 final Phone phone = getPhone(subId); in getDataNetworkTypeForSubscriber() local
2277 if (phone != null) { in getDataNetworkTypeForSubscriber()
2278 return phone.getServiceState().getDataNetworkType(); in getDataNetworkTypeForSubscriber()
2293 final Phone phone = getPhone(subId); in getVoiceNetworkTypeForSubscriber() local
2294 if (phone != null) { in getVoiceNetworkTypeForSubscriber()
2295 return phone.getServiceState().getVoiceNetworkType(); in getVoiceNetworkTypeForSubscriber()
2315 final Phone phone = PhoneFactory.getPhone(slotIndex); in hasIccCardUsingSlotIndex() local
2316 if (phone != null) { in hasIccCardUsingSlotIndex()
2317 return phone.getIccCard().hasIccCard(); in hasIccCardUsingSlotIndex()
2343 final Phone phone = getPhone(subId); in getLteOnCdmaModeForSubscriber() local
2344 if (phone == null) { in getLteOnCdmaModeForSubscriber()
2347 return phone.getLteOnCdmaMode(); in getLteOnCdmaModeForSubscriber()
2351 public void setPhone(Phone phone) { in setPhone() argument
2352 mPhone = phone; in setPhone()
2759 Phone phone = PhoneFactory.getPhone(phoneId); in setDataEnabled() local
2760 if (phone != null) { in setDataEnabled()
2762 phone.setDataEnabled(enable); in setDataEnabled()
2785 Phone phone = PhoneFactory.getPhone(phoneId); in getDataEnabled() local
2786 if (phone != null) { in getDataEnabled()
2787 boolean retVal = phone.getDataEnabled(); in getDataEnabled()
2798 final Phone phone = getPhone(subId); in getCarrierPrivilegeStatus() local
2799 if (phone == null) { in getCarrierPrivilegeStatus()
2803 UiccCard card = UiccController.getInstance().getUiccCard(phone.getPhoneId()); in getCarrierPrivilegeStatus()
2809 phone.getContext().getPackageManager()); in getCarrierPrivilegeStatus()
2894 final Phone phone = getPhone(subId); in getIccId() local
2895 UiccCard card = phone == null ? null : phone.getUiccCard(); in getIccId()
2914 final Phone phone = getPhone(subId); in setLine1NumberForDisplayForSubscriber() local
2915 if (phone == null) { in setLine1NumberForDisplayForSubscriber()
2918 final String subscriberId = phone.getSubscriberId(); in setLine1NumberForDisplayForSubscriber()
3065 final Phone phone = getPhone(subId); in setOperatorBrandOverride() local
3066 return phone == null ? false : phone.setOperatorBrandOverride(brand); in setOperatorBrandOverride()
3074 final Phone phone = getPhone(subId); in setRoamingOverride() local
3075 if (phone == null) { in setRoamingOverride()
3078 return phone.setRoamingOverride(gsmRoamingList, gsmNonRoamingList, cdmaRoamingList, in setRoamingOverride()
3190 final Phone phone = PhoneFactory.getPhone(0); in getDeviceId() local
3191 if (phone != null) { in getDeviceId()
3192 return phone.getDeviceId(); in getDeviceId()
3435 final Phone phone = getPhone(subId); in getServiceStateForSubscriber() local
3436 if (phone == null) { in getServiceStateForSubscriber()
3440 return phone.getServiceState(); in getServiceStateForSubscriber()
3453 Phone phone = PhoneUtils.getPhoneForPhoneAccountHandle(accountHandle); in getVoicemailRingtoneUri() local
3454 if (phone == null) { in getVoicemailRingtoneUri()
3455 phone = mPhone; in getVoicemailRingtoneUri()
3458 return VoicemailNotificationSettingsUtil.getRingtoneUri(phone.getContext()); in getVoicemailRingtoneUri()
3481 Phone phone = PhoneUtils.getPhoneForPhoneAccountHandle(phoneAccountHandle); in setVoicemailRingtoneUri() local
3482 if (phone == null){ in setVoicemailRingtoneUri()
3483 phone = mPhone; in setVoicemailRingtoneUri()
3485 VoicemailNotificationSettingsUtil.setRingtoneUri(phone.getContext(), uri); in setVoicemailRingtoneUri()
3497 Phone phone = PhoneUtils.getPhoneForPhoneAccountHandle(accountHandle); in isVoicemailVibrationEnabled() local
3498 if (phone == null) { in isVoicemailVibrationEnabled()
3499 phone = mPhone; in isVoicemailVibrationEnabled()
3502 return VoicemailNotificationSettingsUtil.isVibrationEnabled(phone.getContext()); in isVoicemailVibrationEnabled()
3526 Phone phone = PhoneUtils.getPhoneForPhoneAccountHandle(phoneAccountHandle); in setVoicemailVibrationEnabled() local
3527 if (phone == null){ in setVoicemailVibrationEnabled()
3528 phone = mPhone; in setVoicemailVibrationEnabled()
3530 VoicemailNotificationSettingsUtil.setVibrationEnabled(phone.getContext(), enabled); in setVoicemailVibrationEnabled()
3581 Phone phone = getPhone(subId); in getAidForAppType() local
3582 if (phone == null) { in getAidForAppType()
3587 aid = UiccController.getInstance().getUiccCard(phone.getPhoneId()) in getAidForAppType()
3604 Phone phone = getPhone(subId); in getEsn() local
3605 if (phone == null) { in getEsn()
3610 esn = phone.getEsn(); in getEsn()
3626 Phone phone = getPhone(subId); in getCdmaPrlVersion() local
3627 if (phone == null) { in getCdmaPrlVersion()
3632 cdmaPrlVersion = phone.getCdmaPrlVersion(); in getCdmaPrlVersion()
3694 final Phone phone = getPhone(subId); in carrierActionSetMeteredApnsEnabled() local
3695 if (phone == null) { in carrierActionSetMeteredApnsEnabled()
3700 phone.carrierActionSetMeteredApnsEnabled(enabled); in carrierActionSetMeteredApnsEnabled()
3715 final Phone phone = getPhone(subId); in carrierActionSetRadioEnabled() local
3716 if (phone == null) { in carrierActionSetRadioEnabled()
3721 phone.carrierActionSetRadioEnabled(enabled); in carrierActionSetRadioEnabled()
3763 for (Phone phone : phones) { in getVtDataUsage()
3764 total += phone.getVtDataUsage(); in getVtDataUsage()
3778 Phone phone = getPhone(subId); in setPolicyDataEnabled() local
3779 if (phone != null) { in setPolicyDataEnabled()
3780 phone.setPolicyDataEnabled(enabled); in setPolicyDataEnabled()
3795 Phone phone = getPhone(subId); in getClientRequestStats() local
3796 if (phone != null) { in getClientRequestStats()
3797 return phone.getClientRequestStats(); in getClientRequestStats()
3823 Phone phone = PhoneFactory.getPhone(slotIndex); in setSimPowerStateForSlot() local
3825 if (phone != null) { in setSimPowerStateForSlot()
3826 phone.setSimPowerState(powerUp); in setSimPowerStateForSlot()
3851 final Phone phone = getPhone(subId); in getEmergencyCallbackMode() local
3852 if (phone != null) { in getEmergencyCallbackMode()
3853 return phone.isInEcm(); in getEmergencyCallbackMode()