Home | History | Annotate | Download | only in server

Lines Matching refs:phoneId

73  * and 15973975 by saving the phoneId of the registrant and then using the
74 * phoneId when deciding to to make a callback. This is necessary because
102 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX;
120 + " callerUserId=" + callerUserId + " subId=" + subId + " phoneId=" + phoneId
532 r.phoneId = SubscriptionManager.getPhoneId(r.subId);
534 int phoneId = r.phoneId;
537 log("listen: Register r=" + r + " r.subId=" + r.subId + " phoneId=" + phoneId);
539 if (notifyNow && validatePhoneId(phoneId)) {
542 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]);
544 new ServiceState(mServiceState[phoneId]));
551 int gsmSignalStrength = mSignalStrength[phoneId]
562 mMessageWaiting[phoneId]);
570 mCallForwarding[phoneId]);
578 + mCellLocation[phoneId]);
580 new Bundle(mCellLocation[phoneId]));
587 r.callback.onCallStateChanged(mCallState[phoneId],
588 getCallIncomingNumber(r, phoneId));
595 r.callback.onDataConnectionStateChanged(mDataConnectionState[phoneId],
596 mDataConnectionNetworkType[phoneId]);
603 r.callback.onDataActivity(mDataActivity[phoneId]);
610 r.callback.onSignalStrengthsChanged(mSignalStrength[phoneId]);
624 if (DBG_LOC) log("listen: mCellInfo[" + phoneId + "] = "
625 + mCellInfo.get(phoneId));
626 r.callback.onCellInfoChanged(mCellInfo.get(phoneId));
655 r.callback.onVoiceActivationStateChanged(mVoiceActivationState[phoneId]);
662 r.callback.onDataActivationStateChanged(mDataActivationState[phoneId]);
692 private String getCallIncomingNumber(Record record, int phoneId) {
694 return record.canReadPhoneState ? mCallIncomingNumber[phoneId] : "";
745 public void notifyCallStateForPhoneId(int phoneId, int subId, int state,
755 phoneId)) {
756 mCallState[phoneId] = state;
757 mCallIncomingNumber[phoneId] = incomingNumber;
763 String incomingNumberOrEmpty = getCallIncomingNumber(r, phoneId);
773 broadcastCallStateChanged(state, incomingNumber, phoneId, subId);
776 public void notifyServiceStateForPhoneId(int phoneId, int subId, ServiceState state) {
782 String str = "notifyServiceStateForSubscriber: subId=" + subId + " phoneId=" + phoneId
788 if (validatePhoneId(phoneId)) {
789 mServiceState[phoneId] = state;
794 + " phoneId=" + phoneId + " state=" + state);
797 idMatch(r.subId, subId, phoneId)) {
801 + " subId=" + subId + " phoneId=" + phoneId
811 log("notifyServiceStateForSubscriber: INVALID phoneId=" + phoneId);
815 broadcastServiceStateChanged(state, phoneId, subId);
818 public void notifySimActivationStateChangedForPhoneId(int phoneId, int subId,
824 log("notifySimActivationStateForPhoneId: subId=" + subId + " phoneId=" + phoneId
828 if (validatePhoneId(phoneId)) {
831 mVoiceActivationState[phoneId] = activationState;
834 mDataActivationState[phoneId] = activationState;
842 + " phoneId=" + phoneId + "type=" + activationType
849 idMatch(r.subId, subId, phoneId)) {
852 + " subId=" + subId + " phoneId=" + phoneId
860 idMatch(r.subId, subId, phoneId)) {
863 + " subId=" + subId + " phoneId=" + phoneId
873 log("notifySimActivationStateForPhoneId: INVALID phoneId=" + phoneId);
879 public void notifySignalStrengthForPhoneId(int phoneId, int subId,
886 +" phoneId=" + phoneId + " signalStrength=" + signalStrength);
890 if (validatePhoneId(phoneId)) {
891 if (VDBG) log("notifySignalStrengthForPhoneId: valid phoneId=" + phoneId);
892 mSignalStrength[phoneId] = signalStrength;
896 + " phoneId=" + phoneId + " ss=" + signalStrength);
900 idMatch(r.subId, subId, phoneId)) {
904 + " subId=" + subId + " phoneId=" + phoneId
913 idMatch(r.subId, subId, phoneId)){
919 + " subId=" + subId + " phoneId=" + phoneId
929 log("notifySignalStrengthForPhoneId: invalid phoneId=" + phoneId);
933 broadcastSignalStrengthChanged(signalStrength, phoneId, subId);
974 int phoneId = SubscriptionManager.getPhoneId(subId);
975 if (validatePhoneId(phoneId)) {
976 mCellInfo.set(phoneId, cellInfo);
979 idMatch(r.subId, subId, phoneId)) {
996 public void notifyMessageWaitingChangedForPhoneId(int phoneId, int subId, boolean mwi) {
1001 log("notifyMessageWaitingChangedForSubscriberPhoneID: subId=" + phoneId
1005 if (validatePhoneId(phoneId)) {
1006 mMessageWaiting[phoneId] = mwi;
1010 idMatch(r.subId, subId, phoneId)) {
1036 int phoneId = SubscriptionManager.getPhoneId(subId);
1037 if (validatePhoneId(phoneId)) {
1038 mCallForwarding[phoneId] = cfi;
1042 idMatch(r.subId, subId, phoneId)) {
1064 int phoneId = SubscriptionManager.getPhoneId(subId);
1065 if (validatePhoneId(phoneId)) {
1066 mDataActivity[phoneId] = state;
1070 idMatch(r.subId, subId, phoneId)) {
1106 int phoneId = SubscriptionManager.getPhoneId(subId);
1107 if (validatePhoneId(phoneId)) {
1110 if (!mConnectedApns[phoneId].contains(apnType)) {
1111 mConnectedApns[phoneId].add(apnType);
1112 if (mDataConnectionState[phoneId] != state) {
1113 mDataConnectionState[phoneId] = state;
1118 phoneId].remove(apnType)) {
1119 if (mConnectedApns[phoneId].isEmpty()) {
1120 mDataConnectionState[phoneId] = state;
1128 mDataConnectionPossible[phoneId] = isDataConnectivityPossible;
1129 mDataConnectionReason[phoneId] = reason;
1130 mDataConnectionLinkProperties[phoneId] = linkProperties;
1131 mDataConnectionNetworkCapabilities[phoneId] = networkCapabilities;
1132 if (mDataConnectionNetworkType[phoneId] != networkType) {
1133 mDataConnectionNetworkType[phoneId] = networkType;
1138 String str = "onDataConnectionStateChanged(" + mDataConnectionState[phoneId]
1139 + ", " + mDataConnectionNetworkType[phoneId] + ")";
1145 idMatch(r.subId, subId, phoneId)) {
1151 mDataConnectionState[phoneId],
1152 mDataConnectionNetworkType[phoneId]);
1232 int phoneId = SubscriptionManager.getPhoneId(subId);
1233 if (validatePhoneId(phoneId)) {
1234 mCellLocation[phoneId] = cellLocation;
1237 idMatch(r.subId, subId, phoneId)) {
1454 private void broadcastServiceStateChanged(ServiceState state, int phoneId, int subId) {
1471 intent.putExtra(PhoneConstants.SLOT_KEY, phoneId);
1475 private void broadcastSignalStrengthChanged(SignalStrength signalStrength, int phoneId,
1491 intent.putExtra(PhoneConstants.SLOT_KEY, phoneId);
1501 private void broadcastCallStateChanged(int state, String incomingNumber, int phoneId,
1529 // If the phoneId is invalid, the broadcast is for overall call state.
1530 if (phoneId != SubscriptionManager.INVALID_PHONE_INDEX) {
1531 intent.putExtra(PhoneConstants.SLOT_KEY, phoneId);
1724 private boolean validatePhoneId(int phoneId) {
1725 boolean valid = (phoneId >= 0) && (phoneId < mNumPhones);
1734 boolean idMatch(int rSubId, int subId, int phoneId) {
1737 // Invalid case, we need compare phoneId with default one.
1738 return (mDefaultPhoneId == phoneId);
1747 private void checkPossibleMissNotify(Record r, int phoneId) {
1753 mServiceState[phoneId]);
1755 new ServiceState(mServiceState[phoneId]));
1763 SignalStrength signalStrength = mSignalStrength[phoneId];
1775 int gsmSignalStrength = mSignalStrength[phoneId]
1791 log("checkPossibleMissNotify: onCellInfoChanged[" + phoneId + "] = "
1792 + mCellInfo.get(phoneId));
1794 r.callback.onCellInfoChanged(mCellInfo.get(phoneId));
1803 log("checkPossibleMissNotify: onMessageWaitingIndicatorChanged phoneId="
1804 + phoneId + " mwi=" + mMessageWaiting[phoneId]);
1807 mMessageWaiting[phoneId]);
1816 log("checkPossibleMissNotify: onCallForwardingIndicatorChanged phoneId="
1817 + phoneId + " cfi=" + mCallForwarding[phoneId]);
1820 mCallForwarding[phoneId]);
1829 + mCellLocation[phoneId]);
1830 r.callback.onCellLocationChanged(new Bundle(mCellLocation[phoneId]));
1840 + "=" + mDataConnectionState[phoneId]
1841 + ", mDataConnectionNetworkType=" + mDataConnectionNetworkType[phoneId]
1844 r.callback.onDataConnectionStateChanged(mDataConnectionState[phoneId],
1845 mDataConnectionNetworkType[phoneId]);