Searched refs:phoneId (Results 1 - 25 of 45) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DSubscriptionMonitorMock.java44 public void registerForSubscriptionChanged(int phoneId, Handler h, int what, Object o) { argument
45 validatePhoneId(phoneId);
47 mSubscriptionsChangedRegistrants[phoneId].add(r);
52 public void unregisterForSubscriptionChanged(int phoneId, Handler h) { argument
53 validatePhoneId(phoneId);
54 mSubscriptionsChangedRegistrants[phoneId].remove(h);
58 public void registerForDefaultDataSubscriptionChanged(int phoneId, Handler h, int what, argument
60 validatePhoneId(phoneId);
62 mDefaultSubscriptionRegistrants[phoneId].add(r);
67 public void unregisterForDefaultDataSubscriptionChanged(int phoneId, Handle argument
73 notifySubscriptionChanged(int phoneId) argument
79 notifyDefaultSubscriptionChanged(int phoneId) argument
84 validatePhoneId(int phoneId) argument
[all...]
H A DPhoneSwitcherMock.java47 public void resendDataAllowed(int phoneId) { argument
52 public boolean isPhoneActive(int phoneId) { argument
53 return mIsActive[phoneId].get();
57 public void registerForActivePhoneSwitch(int phoneId, Handler h, int what, Object o) { argument
58 validatePhoneId(phoneId);
60 mActivePhoneRegistrants[phoneId].add(r);
65 public void unregisterForActivePhoneSwitch(int phoneId, Handler h) { argument
66 validatePhoneId(phoneId);
67 mActivePhoneRegistrants[phoneId].remove(h);
70 private void validatePhoneId(int phoneId) { argument
77 setPhoneActive(int phoneId, boolean active) argument
[all...]
H A DTelephonyRegistryMock.java53 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX; field in class:TelephonyRegistryMock.Record
71 + " callerUserId=" + callerUserId + " subId=" + subId + " phoneId=" + phoneId
192 public void notifyCallStateForPhoneId(int phoneId, int subId, int state, argument
198 public void notifyServiceStateForPhoneId(int phoneId, int subId, ServiceState state) { argument
203 public void notifySignalStrengthForPhoneId(int phoneId, int subId, argument
209 public void notifyMessageWaitingChangedForPhoneId(int phoneId, int subId, boolean mwi) { argument
316 public void notifySimActivationStateChangedForPhoneId(int phoneId, int subId, argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSubscriptionMonitor.java88 for (int phoneId = 0; phoneId < numPhones; phoneId++) {
89 mSubscriptionsChangedRegistrants[phoneId] = new RegistrantList();
90 mDefaultDataSubChangedRegistrants[phoneId] = new RegistrantList();
91 mPhoneSubId[phoneId] = mSubscriptionController.getSubIdUsingPhoneId(phoneId);
113 for (int phoneId = 0; phoneId < mPhoneSubId.length; phoneId
191 registerForSubscriptionChanged(int phoneId, Handler h, int what, Object o) argument
200 unregisterForSubscriptionChanged(int phoneId, Handler h) argument
207 registerForDefaultDataSubscriptionChanged(int phoneId, Handler h, int what, Object o) argument
217 unregisterForDefaultDataSubscriptionChanged(int phoneId, Handler h) argument
224 invalidPhoneId(int phoneId) argument
[all...]
H A DPhoneSwitcher.java315 for (int phoneId = 0; phoneId < mNumPhones; phoneId++) {
316 if (newActivePhones.contains(phoneId) == false) {
317 deactivate(phoneId);
322 for (int phoneId : newActivePhones) {
323 activate(phoneId);
333 private void deactivate(int phoneId) { argument
334 PhoneState state = mPhoneStates[phoneId];
337 log("deactivate " + phoneId);
346 activate(int phoneId) argument
361 resendDataAllowed(int phoneId) argument
406 isPhoneActive(int phoneId) argument
411 registerForActivePhoneSwitch(int phoneId, Handler h, int what, Object o) argument
418 unregisterForActivePhoneSwitch(int phoneId, Handler h) argument
423 validatePhoneId(int phoneId) argument
[all...]
H A DCarrierServiceBindHelper.java73 for (int phoneId = 0; phoneId < mBindings.length; phoneId++) {
74 mBindings[phoneId].rebind();
92 log("Rebinding if necessary for phoneId: " + binding.getPhoneId());
110 for (int phoneId = 0; phoneId < numPhones; phoneId++) {
111 mBindings[phoneId] = new AppBinding(phoneId);
121 updateForPhoneId(int phoneId, String simState) argument
137 private int phoneId; field in class:CarrierServiceBindHelper.AppBinding
147 AppBinding(int phoneId) argument
[all...]
H A DProxyController.java168 int phoneId = SubscriptionController.getInstance().getPhoneId(subId);
170 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) {
171 mPhones[phoneId].registerForAllDataDisconnected(h, what, obj);
176 int phoneId = SubscriptionController.getInstance().getPhoneId(subId);
178 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) {
179 mPhones[phoneId].unregisterForAllDataDisconnected(h);
184 int phoneId = SubscriptionController.getInstance().getPhoneId(subId);
186 if (phoneId >
200 getRadioAccessFamily(int phoneId) argument
595 sendRadioCapabilityRequest(int phoneId, int sessionId, int rcPhase, int radioFamily, String logicalModemId, int status, int eventId) argument
[all...]
H A DRadioCapability.java117 * @param phoneId the phone ID
127 public RadioCapability(int phoneId, int session, int phase, argument
129 mPhoneId = phoneId;
H A DDefaultPhoneNotifier.java52 int phoneId = sender.getPhoneId();
59 mRegistry.notifyCallStateForPhoneId(phoneId, subId,
71 int phoneId = sender.getPhoneId();
75 + " sender=" + sender + " phondId=" + phoneId + " subId=" + subId);
82 mRegistry.notifyServiceStateForPhoneId(phoneId, subId, ss);
91 int phoneId = sender.getPhoneId();
100 mRegistry.notifySignalStrengthForPhoneId(phoneId, subId,
110 int phoneId = sender.getPhoneId();
115 mRegistry.notifyMessageWaitingChangedForPhoneId(phoneId, subId,
H A DPhoneSubInfoController.java66 public String getDeviceIdForPhone(int phoneId, String callingPackage) { argument
70 if (!SubscriptionManager.isValidPhoneId(phoneId)) {
71 phoneId = 0;
73 final Phone phone = mPhone[phoneId];
77 loge("getDeviceIdForPhone phone " + phoneId + " is null");
301 int phoneId = SubscriptionManager.getPhoneId(subId);
302 if (!SubscriptionManager.isValidPhoneId(phoneId)) {
303 phoneId = 0;
305 return mPhone[phoneId];
H A DSubscriptionController.java71 * Any setters which take subId, slotIndex or phoneId as a parameter will throw an exception if the
353 final int phoneId = getPhoneId(subId);
354 if (phoneId < 0) {
357 return mTelephonyManager.getSimCountryIsoForPhone(phoneId);
956 // If sSlotIndexToSubId already has the same subId for a slotIndex/phoneId,
965 // FIXME: Currently we assume phoneId == slotIndex which in the future
1266 int phoneId = getPhoneId(subId);
1268 if (number == null || phoneId < 0 ||
1269 phoneId >= mTelephonyManager.getPhoneCount()) {
1464 int phoneId;
1832 getSubIdUsingPhoneId(int phoneId) argument
[all...]
/frameworks/base/telephony/java/com/android/ims/internal/uce/uceservice/
H A DImsUceManager.java55 * phoneId
91 public static ImsUceManager getInstance(Context context, int phoneId) { argument
94 if (sUceManagerInstances.containsKey(phoneId)) {
95 return sUceManagerInstances.get(phoneId);
97 ImsUceManager uceMgr = new ImsUceManager(context, phoneId);
98 sUceManagerInstances.put(phoneId, uceMgr);
108 private ImsUceManager(Context context, int phoneId) { argument
111 mPhoneId = phoneId;
132 private String getUceServiceName(int phoneId) { argument
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DICarrierConfigLoader.aidl30 void updateConfigForPhoneId(int phoneId, String simState);
H A DITelephonyRegistry.aidl40 void notifyCallStateForPhoneId(in int phoneId, in int subId, int state, String incomingNumber);
41 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state);
42 void notifySignalStrengthForPhoneId(in int phoneId, in int subId,
44 void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi);
68 void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId,
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DTelephonyNetworkFactoryTest.java118 private TelephonyNetworkFactory makeTnf(int phoneId, TestSetup ts) { argument
120 ts.subscriptionMonitorMock, ts.looper, ts.contextMock, phoneId, ts.dcTrackerMock);
149 final int phoneId = 0;
154 makeTnf(phoneId, ts);
157 ts.subscriptionControllerMock.setSlotSubId(phoneId, subId);
158 ts.subscriptionMonitorMock.notifySubscriptionChanged(phoneId);
159 ts.subscriptionMonitorMock.notifyDefaultSubscriptionChanged(phoneId);
168 log("setPhoneActive true: phoneId = " + phoneId);
169 ts.phoneSwitcherMock.setPhoneActive(phoneId, tru
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DTelephonyRegistry.java73 * 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; field in class:TelephonyRegistry.Record
120 + " callerUserId=" + callerUserId + " subId=" + subId + " phoneId=" + phoneId
524 r.phoneId = SubscriptionManager.getPhoneId(r.subId);
526 int phoneId = r.phoneId;
529 log("listen: Register r=" + r + " r.subId=" + r.subId + " phoneId=" + phoneId);
684 getCallIncomingNumber(Record record, int phoneId) argument
737 notifyCallStateForPhoneId(int phoneId, int subId, int state, String incomingNumber) argument
768 notifyServiceStateForPhoneId(int phoneId, int subId, ServiceState state) argument
810 notifySimActivationStateChangedForPhoneId(int phoneId, int subId, int activationType, int activationState) argument
871 notifySignalStrengthForPhoneId(int phoneId, int subId, SignalStrength signalStrength) argument
988 notifyMessageWaitingChangedForPhoneId(int phoneId, int subId, boolean mwi) argument
1442 broadcastServiceStateChanged(ServiceState state, int phoneId, int subId) argument
1463 broadcastSignalStrengthChanged(SignalStrength signalStrength, int phoneId, int subId) argument
1489 broadcastCallStateChanged(int state, String incomingNumber, int phoneId, int subId) argument
1712 validatePhoneId(int phoneId) argument
1722 idMatch(int rSubId, int subId, int phoneId) argument
1735 checkPossibleMissNotify(Record r, int phoneId) argument
[all...]
/frameworks/opt/net/ims/src/java/com/android/ims/
H A DImsServiceBase.java44 public int open(int phoneId, int serviceClass, PendingIntent incomingCallIntent, argument
46 return onOpen(phoneId, serviceClass, incomingCallIntent, listener);
97 public IImsConfig getConfigInterface(int phoneId) { argument
98 return onGetConfigInterface(phoneId);
102 public void turnOnIms(int phoneId) { argument
103 onTurnOnIms(phoneId);
107 public void turnOffIms(int phoneId) { argument
108 onTurnOffIms(phoneId);
137 protected int onOpen(int phoneId, int serviceClass, PendingIntent incomingCallIntent, argument
193 protected IImsConfig onGetConfigInterface(int phoneId) { argument
199 onTurnOnIms(int phoneId) argument
203 onTurnOffIms(int phoneId) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
H A DTelephonyMetrics.java340 pw.print(event.phoneId);
627 * @param phoneId Phone id
630 private synchronized void annotateInProgressCallSession(long timestamp, int phoneId, argument
632 InProgressCallSession callSession = mInProgressCallSessions.get(phoneId);
642 * @param phoneId Phone id
645 private synchronized void annotateInProgressSmsSession(long timestamp, int phoneId, argument
647 InProgressSmsSession smsSession = mInProgressSmsSessions.get(phoneId);
656 * @param phoneId Phone id
659 private synchronized InProgressCallSession startNewCallSessionIfNeeded(int phoneId) { argument
660 InProgressCallSession callSession = mInProgressCallSessions.get(phoneId);
698 startNewSmsSessionIfNeeded(int phoneId) argument
792 writeServiceStateChanged(int phoneId, ServiceState serviceState) argument
823 writeDataStallEvent(int phoneId, int recoveryAction) argument
837 writeImsSetFeatureValue(int phoneId, int feature, int network, int value, int status) argument
881 writeSetPreferredNetworkType(int phoneId, int networkType) argument
904 writeOnImsConnectionState(int phoneId, int state, ImsReasonInfo reasonInfo) argument
951 writeOnImsCapabilities(int phoneId, boolean[] capabilities) argument
1015 writeRilSetupDataCall(int phoneId, int rilSerial, int radioTechnology, int profile, String apn, int authType, String protocol) argument
1040 writeRilDeactivateDataCall(int phoneId, int rilSerial, int cid, int reason) argument
1056 writeRilDataCallList(int phoneId, ArrayList<DataCallResponse> dcsList) argument
1080 writeRilCallList(int phoneId, ArrayList<GsmCdmaConnection> connections) argument
1168 writeRilDial(int phoneId, GsmCdmaConnection conn, int clirMode, UUSInfo uusInfo) argument
1193 writeRilCallRing(int phoneId, char[] response) argument
1207 writeRilHangup(int phoneId, GsmCdmaConnection conn, int callId) argument
1230 writeRilAnswer(int phoneId, int rilSerial) argument
1248 writeRilSrvcc(int phoneId, int rilSrvccState) argument
1303 writeOnSetupDataCallResponse(int phoneId, int rilSerial, int rilError, int rilRequest, DataCallResponse response) argument
1337 writeOnCallSolicitedResponse(int phoneId, int rilSerial, int rilError, int rilRequest) argument
1359 writeOnSmsSolicitedResponse(int phoneId, int rilSerial, int rilError, SmsResponse response) argument
1390 writeOnDeactivateDataCallResponse(int phoneId, int rilError) argument
1404 writeOnRilSolicitedResponse(int phoneId, int rilSerial, int rilError, int rilRequest, Object ret) argument
1437 writePhoneState(int phoneId, PhoneConstants.State phoneState) argument
1497 writeImsCallState(int phoneId, ImsCallSession session, ImsPhoneCall.State callState) argument
1540 writeOnImsCallStart(int phoneId, ImsCallSession session) argument
1555 writeOnImsCallReceive(int phoneId, ImsCallSession session) argument
1570 writeOnImsCommand(int phoneId, ImsCallSession session, int command) argument
1609 writeOnImsCallTerminated(int phoneId, ImsCallSession session, ImsReasonInfo reasonInfo) argument
1632 writeOnImsCallHandoverEvent(int phoneId, int eventType, ImsCallSession session, int srcAccessTech, int targetAccessTech, ImsReasonInfo reasonInfo) argument
1656 writeRilSendSms(int phoneId, int rilSerial, int tech, int format) argument
1675 writeRilNewSms(int phoneId, int tech, int format) argument
1692 writeNITZEvent(int phoneId, long timestamp) argument
1708 writeModemRestartEvent(int phoneId, String reason) argument
1719 writeOnImsCallProgressing(int phoneId, ImsCallSession session) argument
1720 writeOnImsCallStarted(int phoneId, ImsCallSession session) argument
1721 writeOnImsCallStartFailed(int phoneId, ImsCallSession session, ImsReasonInfo reasonInfo) argument
1723 writeOnImsCallHeld(int phoneId, ImsCallSession session) argument
1724 writeOnImsCallHoldReceived(int phoneId, ImsCallSession session) argument
1725 writeOnImsCallHoldFailed(int phoneId, ImsCallSession session, ImsReasonInfo reasonInfo) argument
1727 writeOnImsCallResumed(int phoneId, ImsCallSession session) argument
1728 writeOnImsCallResumeReceived(int phoneId, ImsCallSession session) argument
1729 writeOnImsCallResumeFailed(int phoneId, ImsCallSession session, ImsReasonInfo reasonInfo) argument
1731 writeOnRilTimeoutResponse(int phoneId, int rilSerial, int rilRequest) argument
[all...]
H A DInProgressCallSession.java33 public final int phoneId; field in class:InProgressCallSession
59 * @param phoneId Phone id
61 public InProgressCallSession(int phoneId) { argument
62 this.phoneId = phoneId;
H A DInProgressSmsSession.java34 public final int phoneId; field in class:InProgressSmsSession
75 * @param phoneId Phone id
77 public InProgressSmsSession(int phoneId) { argument
78 this.phoneId = phoneId;
H A DTelephonyEventBuilder.java39 public TelephonyEventBuilder(int phoneId) { argument
40 this(SystemClock.elapsedRealtime(), phoneId);
43 public TelephonyEventBuilder(long timestamp, int phoneId) { argument
45 mEvent.phoneId = phoneId;
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsService.aidl36 int open(int phoneId, int serviceClass, in PendingIntent incomingCallIntent,
51 void addRegistrationListener(int phoneId, int serviceClass,
68 IImsConfig getConfigInterface(int phoneId);
73 void turnOnIms(int phoneId);
79 void turnOffIms(int phoneId);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccController.java152 public UiccCard getUiccCard(int phoneId) { argument
154 if (isValidCardIndex(phoneId)) {
155 return mUiccCards[phoneId];
170 public IccRecords getIccRecords(int phoneId, int family) { argument
172 UiccCardApplication app = getUiccCardApplication(phoneId, family);
181 public IccFileHandler getIccFileHandler(int phoneId, int family) { argument
183 UiccCardApplication app = getUiccCardApplication(phoneId, family);
270 public UiccCardApplication getUiccCardApplication(int phoneId, int family) { argument
272 if (isValidCardIndex(phoneId)) {
273 UiccCard c = mUiccCards[phoneId];
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DTelephonyManager.java1038 // FIXME this assumes phoneId == slotIndex
1295 int phoneId;
1299 phoneId = 0;
1301 phoneId = SubscriptionManager.getPhoneId(subId);
1304 return getCurrentPhoneTypeForSlot(phoneId);
1353 private int getPhoneTypeFromProperty(int phoneId) { argument
1354 String type = getTelephonyProperty(phoneId,
1357 return getPhoneTypeFromNetworkType(phoneId);
1367 private int getPhoneTypeFromNetworkType(int phoneId) { argument
1371 String mode = getTelephonyProperty(phoneId, "r
1576 getNetworkOperatorForPhone(int phoneId) argument
1675 getNetworkCountryIsoForPhone(int phoneId) argument
2192 getSimOperatorNumericForPhone(int phoneId) argument
2228 getSimOperatorNameForPhone(int phoneId) argument
2256 getSimCountryIsoForPhone(int phoneId) argument
4291 setTelephonyProperty(int phoneId, String property, String value) argument
4429 getTelephonyProperty(int phoneId, String property, String defaultVal) argument
5129 getCarrierPackageNamesForIntentAndPhone(Intent intent, int phoneId) argument
5916 setSimOperatorNumericForPhone(int phoneId, String numeric) argument
5936 setSimOperatorNameForPhone(int phoneId, String name) argument
5956 setSimCountryIsoForPhone(int phoneId, String iso) argument
5976 setSimStateForPhone(int phoneId, String state) argument
6077 setBasebandVersionForPhone(int phoneId, String version) argument
6105 setPhoneType(int phoneId, int type) argument
6134 getOtaSpNumberSchemaForPhone(int phoneId, String defaultValue) argument
6165 getSmsReceiveCapableForPhone(int phoneId, boolean defaultValue) argument
6196 getSmsSendCapableForPhone(int phoneId, boolean defaultValue) argument
6221 setNetworkOperatorNameForPhone(int phoneId, String name) argument
6243 setNetworkOperatorNumericForPhone(int phoneId, String numeric) argument
6263 setNetworkRoamingForPhone(int phoneId, boolean isRoaming) argument
6288 setNetworkCountryIsoForPhone(int phoneId, String iso) argument
6315 setDataNetworkTypeForPhone(int phoneId, int type) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DTelephonyNetworkFactory.java71 Looper looper, Context context, int phoneId, DcTracker dcTracker) {
72 super(looper, context, "TelephonyNetworkFactory[" + phoneId + "]", null);
75 setCapabilityFilter(makeNetworkFilter(subscriptionController, phoneId));
81 mPhoneId = phoneId;
82 LOG_TAG = "TelephonyNetworkFactory[" + phoneId + "]";
101 int phoneId) {
102 final int subscriptionId = subscriptionController.getSubIdUsingPhoneId(phoneId);
200 // phoneId->subId map change or direct change of default subId)
69 TelephonyNetworkFactory(PhoneSwitcher phoneSwitcher, SubscriptionController subscriptionController, SubscriptionMonitor subscriptionMonitor, Looper looper, Context context, int phoneId, DcTracker dcTracker) argument
100 makeNetworkFilter(SubscriptionController subscriptionController, int phoneId) argument

Completed in 409 milliseconds

12