Searched refs:phoneId (Results 1 - 25 of 44) 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
/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 DCarrierServiceBindHelper.java65 for (int phoneId = 0; phoneId < mBindings.length; phoneId++) {
66 mBindings[phoneId].rebind();
83 log("Rebinding if necessary for phoneId: " + binding.getPhoneId());
97 for (int phoneId = 0; phoneId < numPhones; phoneId++) {
98 mBindings[phoneId] = new AppBinding(phoneId);
108 updateForPhoneId(int phoneId, String simState) argument
124 private int phoneId; field in class:CarrierServiceBindHelper.AppBinding
133 AppBinding(int phoneId) argument
[all...]
H A DPhoneSwitcher.java318 for (int phoneId = 0; phoneId < mNumPhones; phoneId++) {
319 if (newActivePhones.contains(phoneId) == false) {
320 deactivate(phoneId);
325 for (int phoneId : newActivePhones) {
326 activate(phoneId);
336 private void deactivate(int phoneId) { argument
337 PhoneState state = mPhoneStates[phoneId];
340 log("deactivate " + phoneId);
346 activate(int phoneId) argument
358 resendDataAllowed(int phoneId) argument
391 isPhoneActive(int phoneId) argument
396 registerForActivePhoneSwitch(int phoneId, Handler h, int what, Object o) argument
403 unregisterForActivePhoneSwitch(int phoneId, Handler h) argument
408 validatePhoneId(int phoneId) argument
[all...]
H A DProxyController.java172 int phoneId = SubscriptionController.getInstance().getPhoneId(subId);
174 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) {
175 mPhones[phoneId].registerForAllDataDisconnected(h, what, obj);
180 int phoneId = SubscriptionController.getInstance().getPhoneId(subId);
182 if (phoneId >= 0 && phoneId < TelephonyManager.getDefault().getPhoneCount()) {
183 mPhones[phoneId].unregisterForAllDataDisconnected(h);
188 int phoneId = SubscriptionController.getInstance().getPhoneId(subId);
190 if (phoneId >
204 getRadioAccessFamily(int phoneId) argument
599 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.java59 int phoneId = sender.getPhoneId();
66 mRegistry.notifyCallStateForPhoneId(phoneId, subId,
77 int phoneId = sender.getPhoneId();
81 + " sender=" + sender + " phondId=" + phoneId + " subId=" + subId);
88 mRegistry.notifyServiceStateForPhoneId(phoneId, subId, ss);
97 int phoneId = sender.getPhoneId();
106 mRegistry.notifySignalStrengthForPhoneId(phoneId, subId,
116 int phoneId = sender.getPhoneId();
121 mRegistry.notifyMessageWaitingChangedForPhoneId(phoneId, subId,
H A DPhoneSubInfoController.java64 public String getDeviceIdForPhone(int phoneId, String callingPackage) { argument
68 if (!SubscriptionManager.isValidPhoneId(phoneId)) {
69 phoneId = 0;
71 final Phone phone = mPhone[phoneId];
75 loge("getDeviceIdForPhone phone " + phoneId + " is null");
270 int phoneId = SubscriptionManager.getPhoneId(subId);
271 if (!SubscriptionManager.isValidPhoneId(phoneId)) {
272 phoneId = 0;
274 return mPhone[phoneId];
H A DSubscriptionController.java61 * Any setters which take subId, slotId or phoneId as a parameter will throw an exception if the
317 final int phoneId = getPhoneId(subId);
318 if (phoneId < 0) {
321 return mTelephonyManager.getSimCountryIsoForPhone(phoneId);
741 // If sSlotIdxToSubId already has a valid subId for a slotId/phoneId,
742 // do not add another subId for same slotId/phoneId.
749 // FIXME: Currently we assume phoneId == slotId which in the future
1009 int phoneId = getPhoneId(subId);
1011 if (number == null || phoneId < 0 ||
1012 phoneId >
1558 getSubIdUsingPhoneId(int phoneId) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
H A DInProgressCallSession.java33 public final int phoneId; field in class:InProgressCallSession
56 * @param phoneId Phone id
58 public InProgressCallSession(int phoneId) { argument
59 this.phoneId = phoneId;
H A DTelephonyMetrics.java609 * @param phoneId Phone id
612 private synchronized void annotateInProgressCallSession(long timestamp, int phoneId, argument
614 InProgressCallSession callSession = mInProgressCallSessions.get(phoneId);
624 * @param phoneId Phone id
627 private synchronized void annotateInProgressSmsSession(long timestamp, int phoneId, argument
629 InProgressSmsSession smsSession = mInProgressSmsSessions.get(phoneId);
638 * @param phoneId Phone id
641 private synchronized InProgressCallSession startNewCallSessionIfNeeded(int phoneId) { argument
642 InProgressCallSession callSession = mInProgressCallSessions.get(phoneId);
644 if (VDBG) Rlog.v(TAG, "Starting a new call session on phone " + phoneId);
680 startNewSmsSessionIfNeeded(int phoneId) argument
774 writeServiceStateChanged(int phoneId, ServiceState serviceState) argument
798 writeDataStallEvent(int phoneId, int recoveryAction) argument
812 writeImsSetFeatureValue(int phoneId, int feature, int network, int value, int status) argument
847 writeSetPreferredNetworkType(int phoneId, int networkType) argument
860 writeOnImsConnectionState(int phoneId, int state, ImsReasonInfo reasonInfo) argument
899 writeOnImsCapabilities(int phoneId, boolean[] capabilities) argument
955 writeRilSetupDataCall(int phoneId, int rilSerial, int radioTechnology, int profile, String apn, int authType, String protocol) argument
980 writeRilDeactivateDataCall(int phoneId, int rilSerial, int cid, int reason) argument
996 writeRilDataCallList(int phoneId, ArrayList<DataCallResponse> dcsList) argument
1022 writeRilDial(int phoneId, int rilSerial, int clirMode, UUSInfo uusInfo) argument
1039 writeRilCallRing(int phoneId, char[] response) argument
1053 writeRilHangup(int phoneId, int rilSerial, int callId) argument
1072 writeRilAnswer(int phoneId, int rilSerial) argument
1090 writeRilSrvcc(int phoneId, int rilSrvccState) argument
1145 writeOnSetupDataCallResponse(int phoneId, int rilSerial, int rilError, int rilRequest, DataCallResponse response) argument
1179 writeOnCallSolicitedResponse(int phoneId, int rilSerial, int rilError, int rilRequest) argument
1201 writeOnSmsSolicitedResponse(int phoneId, int rilSerial, int rilError, SmsResponse response) argument
1232 writeOnDeactivateDataCallResponse(int phoneId, int rilError) argument
1246 writeOnRilSolicitedResponse(int phoneId, int rilSerial, int rilError, int rilRequest, Object ret) argument
1279 writePhoneState(int phoneId, PhoneConstants.State phoneState) argument
1334 writeImsCallState(int phoneId, ImsCallSession session, ImsPhoneCall.State callState) argument
1377 writeOnImsCallStart(int phoneId, ImsCallSession session) argument
1392 writeOnImsCallReceive(int phoneId, ImsCallSession session) argument
1403 writeOnImsCommand(int phoneId, ImsCallSession session, int command) argument
1442 writeOnImsCallTerminated(int phoneId, ImsCallSession session, ImsReasonInfo reasonInfo) argument
1465 writeOnImsCallHandoverEvent(int phoneId, int eventType, ImsCallSession session, int srcAccessTech, int targetAccessTech, ImsReasonInfo reasonInfo) argument
1489 writeRilSendSms(int phoneId, int rilSerial, int tech, int format) argument
1508 writeRilNewSms(int phoneId, int tech, int format) argument
1525 writeNITZEvent(int phoneId, long timestamp) argument
1536 writeOnImsCallProgressing(int phoneId, ImsCallSession session) argument
1537 writeOnImsCallStarted(int phoneId, ImsCallSession session) argument
1538 writeOnImsCallStartFailed(int phoneId, ImsCallSession session, ImsReasonInfo reasonInfo) argument
1540 writeOnImsCallHeld(int phoneId, ImsCallSession session) argument
1541 writeOnImsCallHoldReceived(int phoneId, ImsCallSession session) argument
1542 writeOnImsCallHoldFailed(int phoneId, ImsCallSession session, ImsReasonInfo reasonInfo) argument
1544 writeOnImsCallResumed(int phoneId, ImsCallSession session) argument
1545 writeOnImsCallResumeReceived(int phoneId, ImsCallSession session) argument
1546 writeOnImsCallResumeFailed(int phoneId, ImsCallSession session, ImsReasonInfo reasonInfo) argument
1548 writeOnRilTimeoutResponse(int phoneId, int rilSerial, int rilRequest) argument
[all...]
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.java38 public TelephonyEventBuilder(int phoneId) { argument
39 this(SystemClock.elapsedRealtime(), phoneId);
42 public TelephonyEventBuilder(long timestamp, int phoneId) { argument
44 mEvent.setPhoneId(phoneId);
/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);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DTelephonyNetworkFactoryTest.java111 private TelephonyNetworkFactory makeTnf(int phoneId, TestSetup ts) { argument
113 ts.subscriptionMonitorMock, ts.looper, ts.contextMock, phoneId, ts.dcTrackerMock);
142 final int phoneId = 0;
147 TelephonyNetworkFactory tnf = makeTnf(phoneId, ts);
150 ts.subscriptionControllerMock.setSlotSubId(phoneId, subId);
151 ts.subscriptionMonitorMock.notifySubscriptionChanged(phoneId);
152 ts.subscriptionMonitorMock.notifyDefaultSubscriptionChanged(phoneId);
160 ts.phoneSwitcherMock.setPhoneActive(phoneId, true);
172 ts.phoneSwitcherMock.setPhoneActive(phoneId, false);
184 ts.phoneSwitcherMock.setPhoneActive(phoneId, tru
[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/base/services/core/java/com/android/server/
H A DTelephonyRegistry.java72 * and 15973975 by saving the phoneId of the registrant and then using the
73 * phoneId when deciding to to make a callback. This is necessary because
101 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX; field in class:TelephonyRegistry.Record
119 + " callerUserId=" + callerUserId + " subId=" + subId + " phoneId=" + phoneId
525 r.phoneId = SubscriptionManager.getPhoneId(r.subId);
527 int phoneId = r.phoneId;
530 log("listen: Register r=" + r + " r.subId=" + r.subId + " phoneId=" + phoneId);
672 getCallIncomingNumber(Record record, int phoneId) argument
725 notifyCallStateForPhoneId(int phoneId, int subId, int state, String incomingNumber) argument
756 notifyServiceStateForPhoneId(int phoneId, int subId, ServiceState state) argument
798 notifySignalStrengthForPhoneId(int phoneId, int subId, SignalStrength signalStrength) argument
916 notifyMessageWaitingChangedForPhoneId(int phoneId, int subId, boolean mwi) argument
1350 broadcastServiceStateChanged(ServiceState state, int phoneId, int subId) argument
1370 broadcastSignalStrengthChanged(SignalStrength signalStrength, int phoneId, int subId) argument
1397 broadcastCallStateChanged(int state, String incomingNumber, int phoneId, int subId) argument
1617 validatePhoneId(int phoneId) argument
1634 set(Time t, String s, int subId, int phoneId, ServiceState state) argument
1648 logServiceStateChanged(String s, int subId, int phoneId, ServiceState state) argument
1684 idMatch(int rSubId, int subId, int phoneId) argument
1697 checkPossibleMissNotify(Record r, int phoneId) argument
[all...]
/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/base/telephony/java/android/telephony/
H A DTelephonyManager.java866 // FIXME this assumes phoneId == slotId
1107 int phoneId;
1111 phoneId = 0;
1113 phoneId = SubscriptionManager.getPhoneId(subId);
1116 return getCurrentPhoneTypeForSlot(phoneId);
1165 private int getPhoneTypeFromProperty(int phoneId) { argument
1166 String type = getTelephonyProperty(phoneId,
1169 return getPhoneTypeFromNetworkType(phoneId);
1179 private int getPhoneTypeFromNetworkType(int phoneId) { argument
1183 String mode = getTelephonyProperty(phoneId, "r
1388 getNetworkOperatorForPhone(int phoneId) argument
1456 getNetworkCountryIsoForPhone(int phoneId) argument
1982 getSimOperatorNumericForPhone(int phoneId) argument
2018 getSimOperatorNameForPhone(int phoneId) argument
2046 getSimCountryIsoForPhone(int phoneId) argument
3676 setTelephonyProperty(int phoneId, String property, String value) argument
3815 getTelephonyProperty(int phoneId, String property, String defaultVal) argument
4417 getCarrierPackageNamesForIntentAndPhone(Intent intent, int phoneId) argument
5012 setSimOperatorNumericForPhone(int phoneId, String numeric) argument
5032 setSimOperatorNameForPhone(int phoneId, String name) argument
5052 setSimCountryIsoForPhone(int phoneId, String iso) argument
5072 setSimStateForPhone(int phoneId, String state) argument
5095 setBasebandVersionForPhone(int phoneId, String version) argument
5123 setPhoneType(int phoneId, int type) argument
5152 getOtaSpNumberSchemaForPhone(int phoneId, String defaultValue) argument
5183 getSmsReceiveCapableForPhone(int phoneId, boolean defaultValue) argument
5214 getSmsSendCapableForPhone(int phoneId, boolean defaultValue) argument
5239 setNetworkOperatorNameForPhone(int phoneId, String name) argument
5261 setNetworkOperatorNumericForPhone(int phoneId, String numeric) argument
5281 setNetworkRoamingForPhone(int phoneId, boolean isRoaming) argument
5306 setNetworkCountryIsoForPhone(int phoneId, String iso) argument
5329 setDataNetworkTypeForPhone(int phoneId, int type) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccController.java151 public UiccCard getUiccCard(int phoneId) { argument
153 if (isValidCardIndex(phoneId)) {
154 return mUiccCards[phoneId];
169 public IccRecords getIccRecords(int phoneId, int family) { argument
171 UiccCardApplication app = getUiccCardApplication(phoneId, family);
180 public IccFileHandler getIccFileHandler(int phoneId, int family) { argument
182 UiccCardApplication app = getUiccCardApplication(phoneId, family);
269 public UiccCardApplication getUiccCardApplication(int phoneId, int family) { argument
271 if (isValidCardIndex(phoneId)) {
272 UiccCard c = mUiccCards[phoneId];
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DTelephonyNetworkFactory.java72 Looper looper, Context context, int phoneId, DcTracker dcTracker) {
73 super(looper, context, "TelephonyNetworkFactory[" + phoneId + "]", null);
76 setCapabilityFilter(makeNetworkFilter(subscriptionController, phoneId));
82 mPhoneId = phoneId;
83 LOG_TAG = "TelephonyNetworkFactory[" + phoneId + "]";
102 int phoneId) {
103 final int subscriptionId = subscriptionController.getSubIdUsingPhoneId(phoneId);
201 // phoneId->subId map change or direct change of default subId)
70 TelephonyNetworkFactory(PhoneSwitcher phoneSwitcher, SubscriptionController subscriptionController, SubscriptionMonitor subscriptionMonitor, Looper looper, Context context, int phoneId, DcTracker dcTracker) argument
101 makeNetworkFilter(SubscriptionController subscriptionController, int phoneId) argument

Completed in 518 milliseconds

12