/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionMonitor.java | 88 for (int phoneId = 0; phoneId < numPhones; phoneId++) { in SubscriptionMonitor() 89 mSubscriptionsChangedRegistrants[phoneId] = new RegistrantList(); in SubscriptionMonitor() 90 mDefaultDataSubChangedRegistrants[phoneId] = new RegistrantList(); in SubscriptionMonitor() 91 mPhoneSubId[phoneId] = mSubscriptionController.getSubIdUsingPhoneId(phoneId); in SubscriptionMonitor() 113 for (int phoneId = 0; phoneId < mPhoneSubId.length; phoneId++) { 114 final int newSubId = mSubscriptionController.getSubIdUsingPhoneId(phoneId); 115 final int oldSubId = mPhoneSubId[phoneId]; 117 log("Phone[" + phoneId + "] subId changed " + oldSubId + "->" + 119 mSubscriptionsChangedRegistrants[phoneId].size() + " registrants"); 120 mPhoneSubId[phoneId] = newSubId; [all …]
|
D | PhoneSwitcher.java | 315 for (int phoneId = 0; phoneId < mNumPhones; phoneId++) { in onEvaluate() 316 if (newActivePhones.contains(phoneId) == false) { in onEvaluate() 317 deactivate(phoneId); in onEvaluate() 322 for (int phoneId : newActivePhones) { in onEvaluate() 323 activate(phoneId); in onEvaluate() 333 private void deactivate(int phoneId) { in deactivate() argument 334 PhoneState state = mPhoneStates[phoneId]; in deactivate() 337 log("deactivate " + phoneId); in deactivate() 339 mCommandsInterfaces[phoneId].setDataAllowed(false, null); in deactivate() 340 mActivePhoneRegistrants[phoneId].notifyRegistrants(); in deactivate() [all …]
|
D | ProxyController.java | 172 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in registerForAllDataDisconnected() local 174 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in registerForAllDataDisconnected() 175 mPhones[phoneId].registerForAllDataDisconnected(h, what, obj); in registerForAllDataDisconnected() 180 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in unregisterForAllDataDisconnected() local 182 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in unregisterForAllDataDisconnected() 183 mPhones[phoneId].unregisterForAllDataDisconnected(h); in unregisterForAllDataDisconnected() 188 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in isDataDisconnected() local 190 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) { in isDataDisconnected() 191 return mPhones[phoneId].mDcTracker.isDisconnected(); in isDataDisconnected() 204 public int getRadioAccessFamily(int phoneId) { in getRadioAccessFamily() argument [all …]
|
D | CarrierServiceBindHelper.java | 73 for (int phoneId = 0; phoneId < mBindings.length; phoneId++) { 74 mBindings[phoneId].rebind(); 110 for (int phoneId = 0; phoneId < numPhones; phoneId++) { in CarrierServiceBindHelper() 111 mBindings[phoneId] = new AppBinding(phoneId); in CarrierServiceBindHelper() 121 void updateForPhoneId(int phoneId, String simState) { in updateForPhoneId() argument 122 log("update binding for phoneId: " + phoneId + " simState: " + simState); in updateForPhoneId() 123 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in updateForPhoneId() 127 if (simState.equals(mLastSimState[phoneId])) { in updateForPhoneId() 131 mLastSimState[phoneId] = simState; in updateForPhoneId() 133 mHandler.sendMessage(mHandler.obtainMessage(EVENT_REBIND, mBindings[phoneId])); in updateForPhoneId() [all …]
|
D | UiccSmsController.java | 331 int phoneId = SubscriptionController.getInstance().getPhoneId(subId) ; in getIccSmsInterfaceManager() local 333 if (!SubscriptionManager.isValidPhoneId(phoneId) in getIccSmsInterfaceManager() 334 || phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getIccSmsInterfaceManager() 335 phoneId = 0; in getIccSmsInterfaceManager() 340 ((Phone)mPhone[(int)phoneId]).getIccSmsInterfaceManager(); in getIccSmsInterfaceManager() 402 int phoneId = SubscriptionController.getInstance().getPhoneId(subId); in createAppSpecificSmsToken() local 404 if (!SubscriptionManager.isValidPhoneId(phoneId) in createAppSpecificSmsToken() 405 || phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in createAppSpecificSmsToken() 406 phoneId = 0; in createAppSpecificSmsToken() 408 if (phoneId < 0 || phoneId >= mPhone.length || mPhone[phoneId] == null) { in createAppSpecificSmsToken() [all …]
|
D | DefaultPhoneNotifier.java | 55 int phoneId = sender.getPhoneId(); in notifyPhoneState() local 62 mRegistry.notifyCallStateForPhoneId(phoneId, subId, in notifyPhoneState() 74 int phoneId = sender.getPhoneId(); in notifyServiceState() local 78 + " sender=" + sender + " phondId=" + phoneId + " subId=" + subId); in notifyServiceState() 85 mRegistry.notifyServiceStateForPhoneId(phoneId, subId, ss); in notifyServiceState() 94 int phoneId = sender.getPhoneId(); in notifySignalStrength() local 103 mRegistry.notifySignalStrengthForPhoneId(phoneId, subId, in notifySignalStrength() 113 int phoneId = sender.getPhoneId(); in notifyMessageWaitingChanged() local 118 mRegistry.notifyMessageWaitingChangedForPhoneId(phoneId, subId, in notifyMessageWaitingChanged()
|
D | SubscriptionController.java | 318 final int phoneId = getPhoneId(subId); in getSubscriptionCountryIso() local 319 if (phoneId < 0) { in getSubscriptionCountryIso() 322 return mTelephonyManager.getSimCountryIsoForPhone(phoneId); in getSubscriptionCountryIso() 1007 int phoneId = getPhoneId(subId); in setDisplayNumber() local 1009 if (number == null || phoneId < 0 || in setDisplayNumber() 1010 phoneId >= mTelephonyManager.getPhoneCount()) { in setDisplayNumber() 1193 int phoneId; in getPhoneId() local 1210 phoneId = mDefaultPhoneId; in getPhoneId() 1211 if (DBG) logdl("[getPhoneId]- no sims, returning default phoneId=" + phoneId); in getPhoneId() 1212 return phoneId; in getPhoneId() [all …]
|
D | PhoneSubInfoController.java | 65 public String getDeviceIdForPhone(int phoneId, String callingPackage) { in getDeviceIdForPhone() argument 69 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in getDeviceIdForPhone() 70 phoneId = 0; in getDeviceIdForPhone() 72 final Phone phone = mPhone[phoneId]; in getDeviceIdForPhone() 76 loge("getDeviceIdForPhone phone " + phoneId + " is null"); in getDeviceIdForPhone() 271 int phoneId = SubscriptionManager.getPhoneId(subId); in getPhone() local 272 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in getPhone() 273 phoneId = 0; in getPhone() 275 return mPhone[phoneId]; in getPhone()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | SubscriptionMonitorMock.java | 44 public void registerForSubscriptionChanged(int phoneId, Handler h, int what, Object o) { in registerForSubscriptionChanged() argument 45 validatePhoneId(phoneId); in registerForSubscriptionChanged() 47 mSubscriptionsChangedRegistrants[phoneId].add(r); in registerForSubscriptionChanged() 52 public void unregisterForSubscriptionChanged(int phoneId, Handler h) { in unregisterForSubscriptionChanged() argument 53 validatePhoneId(phoneId); in unregisterForSubscriptionChanged() 54 mSubscriptionsChangedRegistrants[phoneId].remove(h); in unregisterForSubscriptionChanged() 58 public void registerForDefaultDataSubscriptionChanged(int phoneId, Handler h, int what, in registerForDefaultDataSubscriptionChanged() argument 60 validatePhoneId(phoneId); in registerForDefaultDataSubscriptionChanged() 62 mDefaultSubscriptionRegistrants[phoneId].add(r); in registerForDefaultDataSubscriptionChanged() 67 public void unregisterForDefaultDataSubscriptionChanged(int phoneId, Handler h) { in unregisterForDefaultDataSubscriptionChanged() argument [all …]
|
D | PhoneSwitcherMock.java | 47 public void resendDataAllowed(int phoneId) { in resendDataAllowed() argument 52 public boolean isPhoneActive(int phoneId) { in isPhoneActive() argument 53 return mIsActive[phoneId].get(); in isPhoneActive() 57 public void registerForActivePhoneSwitch(int phoneId, Handler h, int what, Object o) { in registerForActivePhoneSwitch() argument 58 validatePhoneId(phoneId); in registerForActivePhoneSwitch() 60 mActivePhoneRegistrants[phoneId].add(r); in registerForActivePhoneSwitch() 65 public void unregisterForActivePhoneSwitch(int phoneId, Handler h) { in unregisterForActivePhoneSwitch() argument 66 validatePhoneId(phoneId); in unregisterForActivePhoneSwitch() 67 mActivePhoneRegistrants[phoneId].remove(h); in unregisterForActivePhoneSwitch() 70 private void validatePhoneId(int phoneId) { in validatePhoneId() argument [all …]
|
D | TelephonyRegistryMock.java | 53 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX; field in TelephonyRegistryMock.Record 71 + " callerUserId=" + callerUserId + " subId=" + subId + " phoneId=" + phoneId in toString() 192 public void notifyCallStateForPhoneId(int phoneId, int subId, int state, in notifyCallStateForPhoneId() argument 198 public void notifyServiceStateForPhoneId(int phoneId, int subId, ServiceState state) { in notifyServiceStateForPhoneId() argument 203 public void notifySignalStrengthForPhoneId(int phoneId, int subId, in notifySignalStrengthForPhoneId() argument 209 public void notifyMessageWaitingChangedForPhoneId(int phoneId, int subId, boolean mwi) { in notifyMessageWaitingChangedForPhoneId() argument 316 public void notifySimActivationStateChangedForPhoneId(int phoneId, int subId, in notifySimActivationStateChangedForPhoneId() argument
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 102 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX; field in TelephonyRegistry.Record 120 + " callerUserId=" + callerUserId + " subId=" + subId + " phoneId=" + phoneId in toString() 532 r.phoneId = SubscriptionManager.getPhoneId(r.subId); in listen() 534 int phoneId = r.phoneId; in listen() local 537 log("listen: Register r=" + r + " r.subId=" + r.subId + " phoneId=" + phoneId); in listen() 539 if (notifyNow && validatePhoneId(phoneId)) { in listen() 542 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); in listen() 544 new ServiceState(mServiceState[phoneId])); in listen() 551 int gsmSignalStrength = mSignalStrength[phoneId] in listen() 562 mMessageWaiting[phoneId]); in listen() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactoryTest.java | 107 private TelephonyNetworkFactory makeTnf(int phoneId, TestSetup ts) { in makeTnf() argument 109 ts.subscriptionMonitorMock, ts.looper, ts.contextMock, phoneId, ts.dcTrackerMock); in makeTnf() 138 final int phoneId = 0; in testActive() local 143 makeTnf(phoneId, ts); in testActive() 146 ts.subscriptionControllerMock.setSlotSubId(phoneId, subId); in testActive() 147 ts.subscriptionMonitorMock.notifySubscriptionChanged(phoneId); in testActive() 148 ts.subscriptionMonitorMock.notifyDefaultSubscriptionChanged(phoneId); in testActive() 157 log("setPhoneActive true: phoneId = " + phoneId); in testActive() 158 ts.phoneSwitcherMock.setPhoneActive(phoneId, true); in testActive() 171 log("setPhoneActive false: phoneId = " + phoneId); in testActive() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | TelephonyMetrics.java | 339 pw.print(event.phoneId); in printAllMetrics() 629 private synchronized void annotateInProgressCallSession(long timestamp, int phoneId, in annotateInProgressCallSession() argument 631 InProgressCallSession callSession = mInProgressCallSessions.get(phoneId); in annotateInProgressCallSession() 644 private synchronized void annotateInProgressSmsSession(long timestamp, int phoneId, in annotateInProgressSmsSession() argument 646 InProgressSmsSession smsSession = mInProgressSmsSessions.get(phoneId); in annotateInProgressSmsSession() 658 private synchronized InProgressCallSession startNewCallSessionIfNeeded(int phoneId) { in startNewCallSessionIfNeeded() argument 659 InProgressCallSession callSession = mInProgressCallSessions.get(phoneId); in startNewCallSessionIfNeeded() 661 if (VDBG) Rlog.v(TAG, "Starting a new call session on phone " + phoneId); in startNewCallSessionIfNeeded() 662 callSession = new InProgressCallSession(phoneId); in startNewCallSessionIfNeeded() 663 mInProgressCallSessions.append(phoneId, callSession); in startNewCallSessionIfNeeded() [all …]
|
D | InProgressSmsSession.java | 34 public final int phoneId; field in InProgressSmsSession 77 public InProgressSmsSession(int phoneId) { in InProgressSmsSession() argument 78 this.phoneId = phoneId; in InProgressSmsSession()
|
D | InProgressCallSession.java | 33 public final int phoneId; field in InProgressCallSession 61 public InProgressCallSession(int phoneId) { in InProgressCallSession() argument 62 this.phoneId = phoneId; in InProgressCallSession()
|
D | TelephonyEventBuilder.java | 39 public TelephonyEventBuilder(int phoneId) { in TelephonyEventBuilder() argument 40 this(SystemClock.elapsedRealtime(), phoneId); in TelephonyEventBuilder() 43 public TelephonyEventBuilder(long timestamp, int phoneId) { in TelephonyEventBuilder() argument 45 mEvent.phoneId = phoneId; in TelephonyEventBuilder()
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsServiceBase.java | 44 public int open(int phoneId, int serviceClass, PendingIntent incomingCallIntent, in open() argument 46 return onOpen(phoneId, serviceClass, incomingCallIntent, listener); in open() 97 public IImsConfig getConfigInterface(int phoneId) { in getConfigInterface() argument 98 return onGetConfigInterface(phoneId); in getConfigInterface() 102 public void turnOnIms(int phoneId) { in turnOnIms() argument 103 onTurnOnIms(phoneId); in turnOnIms() 107 public void turnOffIms(int phoneId) { in turnOffIms() argument 108 onTurnOffIms(phoneId); in turnOffIms() 137 protected int onOpen(int phoneId, int serviceClass, PendingIntent incomingCallIntent, in onOpen() argument 193 protected IImsConfig onGetConfigInterface(int phoneId) { in onGetConfigInterface() argument [all …]
|
/frameworks/base/telephony/java/com/android/ims/internal/uce/uceservice/ |
D | ImsUceManager.java | 91 public static ImsUceManager getInstance(Context context, int phoneId) { in getInstance() argument 94 if (sUceManagerInstances.containsKey(phoneId)) { in getInstance() 95 return sUceManagerInstances.get(phoneId); in getInstance() 97 ImsUceManager uceMgr = new ImsUceManager(context, phoneId); in getInstance() 98 sUceManagerInstances.put(phoneId, uceMgr); in getInstance() 108 private ImsUceManager(Context context, int phoneId) { in ImsUceManager() argument 111 mPhoneId = phoneId; in ImsUceManager() 132 private String getUceServiceName(int phoneId) { in getUceServiceName() argument
|
/frameworks/base/telephony/java/android/telephony/ |
D | TelephonyManager.java | 1257 int phoneId; in getCurrentPhoneType() local 1261 phoneId = 0; in getCurrentPhoneType() 1263 phoneId = SubscriptionManager.getPhoneId(subId); in getCurrentPhoneType() 1266 return getCurrentPhoneTypeForSlot(phoneId); in getCurrentPhoneType() 1315 private int getPhoneTypeFromProperty(int phoneId) { in getPhoneTypeFromProperty() argument 1316 String type = getTelephonyProperty(phoneId, in getPhoneTypeFromProperty() 1319 return getPhoneTypeFromNetworkType(phoneId); in getPhoneTypeFromProperty() 1329 private int getPhoneTypeFromNetworkType(int phoneId) { in getPhoneTypeFromNetworkType() argument 1333 String mode = getTelephonyProperty(phoneId, "ro.telephony.default_network", null); in getPhoneTypeFromNetworkType() 1496 int phoneId = SubscriptionManager.getPhoneId(subId); in getNetworkOperatorName() local [all …]
|
D | SubscriptionManager.java | 1188 public static boolean isValidPhoneId(int phoneId) { in isValidPhoneId() argument 1189 return phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount(); in isValidPhoneId() 1193 public static void putPhoneIdAndSubIdExtra(Intent intent, int phoneId) { in putPhoneIdAndSubIdExtra() argument 1194 int[] subIds = SubscriptionManager.getSubId(phoneId); in putPhoneIdAndSubIdExtra() 1196 putPhoneIdAndSubIdExtra(intent, phoneId, subIds[0]); in putPhoneIdAndSubIdExtra() 1203 public static void putPhoneIdAndSubIdExtra(Intent intent, int phoneId, int subId) { in putPhoneIdAndSubIdExtra() argument 1204 if (VDBG) logd("putPhoneIdAndSubIdExtra: phoneId=" + phoneId + " subId=" + subId); in putPhoneIdAndSubIdExtra() 1207 intent.putExtra(PhoneConstants.PHONE_KEY, phoneId); in putPhoneIdAndSubIdExtra() 1210 intent.putExtra(PhoneConstants.SLOT_KEY, phoneId); in putPhoneIdAndSubIdExtra() 1248 final int phoneId = getPhoneId(subId); in isNetworkRoaming() local [all …]
|
/frameworks/base/telephony/java/com/android/ims/internal/ |
D | IImsService.aidl | 36 int open(int phoneId, int serviceClass, in PendingIntent incomingCallIntent, in open() argument 51 void addRegistrationListener(int phoneId, int serviceClass, in addRegistrationListener() argument 68 IImsConfig getConfigInterface(int phoneId); in getConfigInterface() argument 73 void turnOnIms(int phoneId); in turnOnIms() argument 79 void turnOffIms(int phoneId); in turnOffIms() argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | UiccController.java | 155 public UiccCard getUiccCard(int phoneId) { in getUiccCard() argument 157 if (isValidCardIndex(phoneId)) { in getUiccCard() 158 return mUiccCards[phoneId]; in getUiccCard() 173 public IccRecords getIccRecords(int phoneId, int family) { in getIccRecords() argument 175 UiccCardApplication app = getUiccCardApplication(phoneId, family); in getIccRecords() 184 public IccFileHandler getIccFileHandler(int phoneId, int family) { in getIccFileHandler() argument 186 UiccCardApplication app = getUiccCardApplication(phoneId, family); in getIccFileHandler() 273 public UiccCardApplication getUiccCardApplication(int phoneId, int family) { in getUiccCardApplication() argument 275 if (isValidCardIndex(phoneId)) { in getUiccCardApplication() 276 UiccCard c = mUiccCards[phoneId]; in getUiccCardApplication() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | ITelephonyRegistry.aidl | 40 void notifyCallStateForPhoneId(in int phoneId, in int subId, int state, String incomingNumber); in notifyCallStateForPhoneId() argument 41 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); in notifyServiceStateForPhoneId() argument 42 void notifySignalStrengthForPhoneId(in int phoneId, in int subId, in notifySignalStrengthForPhoneId() argument 44 void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi); in notifyMessageWaitingChangedForPhoneId() argument 68 void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId, in notifySimActivationStateChangedForPhoneId() argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactory.java | 71 Looper looper, Context context, int phoneId, DcTracker dcTracker) { in TelephonyNetworkFactory() argument 72 super(looper, context, "TelephonyNetworkFactory[" + phoneId + "]", null); in TelephonyNetworkFactory() 75 setCapabilityFilter(makeNetworkFilter(subscriptionController, phoneId)); in TelephonyNetworkFactory() 81 mPhoneId = phoneId; in TelephonyNetworkFactory() 82 LOG_TAG = "TelephonyNetworkFactory[" + phoneId + "]"; in TelephonyNetworkFactory() 101 int phoneId) { in makeNetworkFilter() argument 102 final int subscriptionId = subscriptionController.getSubIdUsingPhoneId(phoneId); in makeNetworkFilter()
|