Lines Matching defs:subId
169 public Integer subId;
175 public MainThreadRequest(Object argument, Integer subId) {
177 this.subId = subId;
250 int answer_subId = request.subId;
256 int end_subId = request.subId;
657 private Object sendRequest(int command, Object argument, Integer subId) {
662 MainThreadRequest request = new MainThreadRequest(argument, subId);
735 return (request.subId == null) ? mPhone : getPhone(request.subId);
738 // returns phone associated with the subId.
739 private Phone getPhone(int subId) {
740 return PhoneFactory.getPhone(mSubscriptionController.getPhoneId(subId));
750 public void dialForSubscriber(int subId, String number) {
762 PhoneConstants.State state = mCM.getState(subId);
774 public void callForSubscriber(int subId, String callingPackage, String number) {
796 if (subInfoRecord.getSubscriptionId() == subId) {
807 intent.putExtra(SUBSCRIPTION_KEY, subId);
821 * End a call based on the call state of the subId
824 public boolean endCallForSubscriber(int subId) {
826 return (Boolean) sendRequest(CMD_END_CALL, null, new Integer(subId));
833 public void answerRingingCallForSubscriber(int subId) {
839 sendRequest(CMD_ANSWER_RINGING_CALL, null, new Integer(subId));
855 private void answerRingingCallInternal(int subId) {
856 final boolean hasRingingCall = !getPhone(subId).getRingingCall().isIdle();
858 final boolean hasActiveCall = !getPhone(subId).getForegroundCall().isIdle();
859 final boolean hasHoldingCall = !getPhone(subId).getBackgroundCall().isIdle();
891 public boolean isOffhookForSubscriber(int subId) {
892 return (getPhone(subId).getState() == PhoneConstants.State.OFFHOOK);
899 public boolean isRingingForSubscriber(int subId) {
900 return (getPhone(subId).getState() == PhoneConstants.State.RINGING);
907 public boolean isIdleForSubscriber(int subId) {
908 return (getPhone(subId).getState() == PhoneConstants.State.IDLE);
920 public boolean supplyPinForSubscriber(int subId, String pin) {
921 int [] resultArray = supplyPinReportResultForSubscriber(subId, pin);
929 public boolean supplyPukForSubscriber(int subId, String puk, String pin) {
930 int [] resultArray = supplyPukReportResultForSubscriber(subId, puk, pin);
939 public int[] supplyPinReportResultForSubscriber(int subId, String pin) {
941 final UnlockSim checkSimPin = new UnlockSim(getPhone(subId).getIccCard());
951 public int[] supplyPukReportResultForSubscriber(int subId, String puk, String pin) {
953 final UnlockSim checkSimPuk = new UnlockSim(getPhone(subId).getIccCard());
1062 public void updateServiceLocationForSubscriber(int subId) {
1066 getPhone(subId).updateServiceLocation();
1073 public boolean isRadioOnForSubscriber(int subId) {
1074 return getPhone(subId).getServiceState().getState() != ServiceState.STATE_POWER_OFF;
1082 public void toggleRadioOnOffForSubscriber(int subId) {
1084 getPhone(subId).setRadioPower(!isRadioOnForSubscriber(subId));
1091 public boolean setRadioForSubscriber(int subId, boolean turnOn) {
1093 if ((getPhone(subId).getServiceState().getState() !=
1095 toggleRadioOnOffForSubscriber(subId);
1132 public boolean setRadioPowerForSubscriber(int subId, boolean turnOn) {
1134 getPhone(subId).setRadioPower(turnOn);
1138 // FIXME: subId version needed
1141 int subId = mSubscriptionController.getDefaultDataSubId();
1142 getPhone(subId).setDataEnabled(true);
1146 // FIXME: subId version needed
1149 int subId = mSubscriptionController.getDefaultDataSubId();
1150 getPhone(subId).setDataEnabled(false);
1154 // FIXME: subId version needed
1156 int subId = mSubscriptionController.getDefaultDataSubId();
1157 return getPhone(subId).isDataConnectivityPossible();
1164 public boolean handlePinMmiForSubscriber(int subId, String dialString) {
1166 return (Boolean) sendRequest(CMD_HANDLE_PIN_MMI, dialString, subId);
1173 public int getCallStateForSubscriber(int subId) {
1174 return DefaultPhoneNotifier.convertCallState(getPhone(subId).getState());
1217 public void enableLocationUpdatesForSubscriber(int subId) {
1220 getPhone(subId).enableLocationUpdates();
1228 public void disableLocationUpdatesForSubscriber(int subId) {
1231 getPhone(subId).disableLocationUpdates();
1431 public int getActivePhoneTypeForSubscriber(int subId) {
1432 return getPhone(subId).getPhoneType();
1443 public int getCdmaEriIconIndexForSubscriber(int subId) {
1444 return getPhone(subId).getCdmaEriIconIndex();
1456 public int getCdmaEriIconModeForSubscriber(int subId) {
1457 return getPhone(subId).getCdmaEriIconMode();
1467 public String getCdmaEriTextForSubscriber(int subId) {
1468 return getPhone(subId).getCdmaEriText();
1474 public String getCdmaMdn(int subId) {
1477 return getPhone(subId).getLine1Number();
1486 public String getCdmaMin(int subId) {
1489 return getPhone(subId).getCdmaMin();
1503 * Sets the voice mail number of a given subId.
1506 public boolean setVoiceMailNumber(int subId, String alphaTag, String number) {
1509 new Pair<String, String>(alphaTag, number), new Integer(subId));
1521 * Returns the unread count of voicemails for a subId
1523 public int getVoiceMessageCountForSubscriber( int subId) {
1524 return getPhone(subId).getVoiceMessageCount();
1538 * Returns the network type for a subId
1541 public int getNetworkTypeForSubscriber(int subId) {
1542 return getPhone(subId).getServiceState().getDataNetworkType();
1554 * Returns the data network type for a subId
1557 public int getDataNetworkTypeForSubscriber(int subId) {
1558 return getPhone(subId).getServiceState().getDataNetworkType();
1570 * Returns the Voice network type for a subId
1573 public int getVoiceNetworkTypeForSubscriber(int subId) {
1574 return getPhone(subId).getServiceState().getVoiceNetworkType();
1589 int subId[] = mSubscriptionController.getSubIdUsingSlotId(slotId);
1590 if (subId != null) {
1591 return getPhone(subId[0]).getIccCard().hasIccCard();
1609 public int getLteOnCdmaModeForSubscriber(int subId) {
1610 return getPhone(subId).getLteOnCdmaMode();
1619 * Returns Default subId, 0 in the case of single standby.
1869 return PhoneFactory.calculatePreferredNetworkType(mPhone.getContext(), 0); // wink FIXME: need to get SubId from somewhere.
1937 public void setDataEnabled(int subId, boolean enable) {
1939 int phoneId = mSubscriptionController.getPhoneId(subId);
1940 log("getDataEnabled: subId=" + subId + " phoneId=" + phoneId);
1943 log("setDataEnabled: subId=" + subId + " enable=" + enable);
1946 loge("setDataEnabled: no phone for subId=" + subId);
1960 public boolean getDataEnabled(int subId) {
1968 int phoneId = mSubscriptionController.getPhoneId(subId);
1969 log("getDataEnabled: subId=" + subId + " phoneId=" + phoneId);
1973 log("getDataEnabled: subId=" + subId + " retVal=" + retVal);
1976 loge("getDataEnabled: no phone subId=" + subId + " retVal=false");
2013 private String getIccId(int subId) {
2014 UiccCard card = getPhone(subId).getUiccCard();
2028 public boolean setLine1NumberForDisplayForSubscriber(int subId, String alphaTag,
2032 final String iccId = getIccId(subId);
2033 final String subscriberId = getPhone(subId).getSubscriberId();
2070 public String getLine1NumberForDisplay(int subId) {
2073 String iccId = getIccId(subId);
2082 public String getLine1AlphaTagForDisplay(int subId) {
2085 String iccId = getIccId(subId);
2102 for (int subId : subIds) {
2103 subId));