Home
last modified time | relevance | path

Searched refs:slotId (Results 1 – 25 of 84) sorted by relevance

1234

/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DQnsComponents.java68 synchronized void createQnsComponents(int slotId) { in createQnsComponents() argument
69 mSlotIds.add(slotId); in createQnsComponents()
70 mQnsTelephonyListeners.put(slotId, new QnsTelephonyListener(mContext, slotId)); in createQnsComponents()
71 mQnsImsManagers.put(slotId, new QnsImsManager(mContext, slotId)); in createQnsComponents()
73 slotId, in createQnsComponents()
74 new CellularNetworkStatusTracker(mQnsTelephonyListeners.get(slotId), slotId)); in createQnsComponents()
76 slotId, new QnsProvisioningListener(mContext, mQnsImsManagers.get(slotId), slotId)); in createQnsComponents()
78 slotId, in createQnsComponents()
81 mQnsProvisioningListeners.get(slotId), in createQnsComponents()
82 mQnsImsManagers.get(slotId), in createQnsComponents()
[all …]
DIwlanNetworkStatusTracker.java99 IwlanEventHandler(int slotId, Looper l) { in IwlanEventHandler() argument
101 mSlotIndex = slotId; in IwlanEventHandler()
161 int slotId) { in initBySlotIndex() argument
162 mQnsConfigManagers.put(slotId, configManager); in initBySlotIndex()
163 mQnsEventDispatchers.put(slotId, dispatcher); in initBySlotIndex()
164 mQnsImsManagers.put(slotId, imsManager); in initBySlotIndex()
165 mQnsTelephonyListeners.put(slotId, telephonyListener); in initBySlotIndex()
166 mHandlerSparseArray.put(slotId, new IwlanEventHandler(slotId, mHandlerThread.getLooper())); in initBySlotIndex()
169 void closeBySlotIndex(int slotId) { in closeBySlotIndex() argument
170 IwlanEventHandler handler = mHandlerSparseArray.get(slotId); in closeBySlotIndex()
[all …]
DQnsMetrics.java123 int slotId, in reportAtomForQualifiedNetworks() argument
137 mHandler.post(() -> procQualifiedNetworksForHandoverTime(info, slotId)); in reportAtomForQualifiedNetworks()
141 slotId, in reportAtomForQualifiedNetworks()
166 int netCapability, int slotId, DataConnectionChangedInfo info, int carrierId) { in reportAtomForDataConnectionChanged() argument
167 mHandler.post(() -> procDataConnectionChangedForHandoverTime(netCapability, slotId, info)); in reportAtomForDataConnectionChanged()
169 netCapability, slotId, info, carrierId)); in reportAtomForDataConnectionChanged()
171 netCapability, slotId, info, carrierId)); in reportAtomForDataConnectionChanged()
185 int slotId, in reportAtomForRestrictions() argument
190 netCapability, slotId, wlanRestrictions, wwanRestrictions, carrierId)); in reportAtomForRestrictions()
205 int slotId, in reportAtomForCallTypeChanged() argument
[all …]
DQnsUtils.java110 static int getSubId(Context context, int slotId) { in getSubId() argument
112 return getSubscriptionInfo(context, slotId).getSubscriptionId(); in getSubId()
130 static boolean isDefaultDataSubs(int slotId) { in isDefaultDataSubs() argument
135 return ddsSlotId == slotId; in isDefaultDataSubs()
144 private static SubscriptionInfo getSubscriptionInfo(Context context, int slotId) in getSubscriptionInfo() argument
147 SubscriptionInfo info = sm.getActiveSubscriptionInfoForSimSlotIndex(slotId); in getSubscriptionInfo()
255 static boolean isWifiCallingAvailable(Context context, int slotId) { in isWifiCallingAvailable() argument
257 int subId = QnsUtils.getSubId(context, slotId); in isWifiCallingAvailable()
741 static synchronized int getConfigCarrierId(Context context, int slotId) { in getConfigCarrierId() argument
743 tm = tm.createForSubscriptionId(QnsUtils.getSubId(context, slotId)); in getConfigCarrierId()
/packages/apps/Stk/src/com/android/stk/
DStkAppService.java281 int slotId; field in StkAppService.DelayedCmd
283 DelayedCmd(int id, CatCmdMessage msg, int slotId) { in DelayedCmd() argument
286 this.slotId = slotId; in DelayedCmd()
345 int slotId = 0; in onStart() local
348 slotId = args.getInt(SLOT_ID); in onStart()
350 CatLog.d(LOG_TAG, "onStart sim id: " + slotId + ", op: " + op + ", *****"); in onStart()
351 if ((slotId >= 0 && slotId < mSimCount) && mStkService[slotId] == null) { in onStart()
352 mStkService[slotId] = CatService.getInstance(slotId); in onStart()
353 if (mStkService[slotId] == null) { in onStart()
354 CatLog.d(LOG_TAG, "mStkService is: " + mStkContext[slotId].mStkServiceState); in onStart()
[all …]
DStkMenuConfig.java90 public String getLabel(int slotId) { in getLabel() argument
91 findConfig(slotId); in getLabel()
93 if (DBG) CatLog.d(LOG_TAG, "getLabel: " + mConfigs[slotId].label + ", slot id: " + slotId); in getLabel()
94 return mConfigs[slotId].label; in getLabel()
100 public Bitmap getIcon(int slotId) { in getIcon() argument
101 findConfig(slotId); in getIcon()
104 if (mConfigs[slotId].icon != null) { in getIcon()
105 int resId = mContext.getResources().getIdentifier(mConfigs[slotId].icon, in getIcon()
110 if (DBG) CatLog.d(LOG_TAG, "getIcon: " + mConfigs[slotId].icon + ", slot id: " + slotId); in getIcon()
114 private void findConfig(int slotId) { in findConfig() argument
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsComponentsTest.java40 int slotId = 0; in testCreateQnsComponents() local
43 assertNull(qnsComponents.getQnsTelephonyListener(slotId)); in testCreateQnsComponents()
44 assertNull(qnsComponents.getQnsImsManager(slotId)); in testCreateQnsComponents()
45 assertNull(qnsComponents.getCellularNetworkStatusTracker(slotId)); in testCreateQnsComponents()
46 assertNull(qnsComponents.getCellularQualityMonitor(slotId)); in testCreateQnsComponents()
47 assertNull(qnsComponents.getQnsProvisioningListener(slotId)); in testCreateQnsComponents()
48 assertNull(qnsComponents.getQnsEventDispatcher(slotId)); in testCreateQnsComponents()
49 assertNull(qnsComponents.getQnsCarrierConfigManager(slotId)); in testCreateQnsComponents()
50 assertNull(qnsComponents.getQnsCallStatusTracker(slotId)); in testCreateQnsComponents()
51 assertNull(qnsComponents.getWifiBackhaulMonitor(slotId)); in testCreateQnsComponents()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DTelephonyRcsService.java62 RcsFeatureController createController(Context context, int slotId, int subId); in createController() argument
67 UceControllerManager createUceControllerManager(Context context, int slotId, int subId, in createUceControllerManager() argument
74 SipTransportController createSipTransportController(Context context, int slotId, int subId); in createSipTransportController() argument
79 public RcsFeatureController createController(Context context, int slotId, int subId) {
80 return new RcsFeatureController(context, slotId, subId);
84 public UceControllerManager createUceControllerManager(Context context, int slotId,
86 return new UceControllerManager(context, slotId, subId, featureFlags);
90 public SipTransportController createSipTransportController(Context context, int slotId,
92 return new SipTransportController(context, slotId, subId);
139 int slotId = bundle.getInt(CarrierConfigManager.EXTRA_SLOT_INDEX,
[all …]
/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DTelephonyDomainSelectionService.java60 ImsStateTracker create(Context context, int slotId, @NonNull Looper looper); in create() argument
71 DomainSelectorBase create(Context context, int slotId, int subId, in create() argument
81 public DomainSelectorBase create(Context context, int slotId, int subId, in create() argument
89 logi("create-DomainSelector: slotId=" + slotId + ", subId=" + subId in create()
96 selector = new EmergencyCallDomainSelector(context, slotId, subId, looper, in create()
100 selector = new NormalCallDomainSelector(context, slotId, subId, looper, in create()
106 selector = new EmergencySmsDomainSelector(context, slotId, subId, looper, in create()
109 selector = new SmsDomainSelector(context, slotId, subId, looper, in create()
133 DomainSelectorContainer(int slotId, @SelectorType int selectorType, boolean isEmergency, in DomainSelectorContainer() argument
135 mSlotId = slotId; in DomainSelectorContainer()
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanCarrierConfig.java253 private static PersistableBundle getConfig(Context context, int slotId, String key) { in getConfig() argument
264 int subId = IwlanHelper.getSubId(context, slotId); in getConfig()
290 public static int getConfigInt(Context context, int slotId, String key) { in getConfigInt() argument
291 return getConfig(context, slotId, key).getInt(key); in getConfigInt()
302 public static long getConfigLong(Context context, int slotId, String key) { in getConfigLong() argument
303 return getConfig(context, slotId, key).getLong(key); in getConfigLong()
314 public static double getConfigDouble(Context context, int slotId, String key) { in getConfigDouble() argument
315 return getConfig(context, slotId, key).getDouble(key); in getConfigDouble()
326 public static boolean getConfigBoolean(Context context, int slotId, String key) { in getConfigBoolean() argument
327 return getConfig(context, slotId, key).getBoolean(key); in getConfigBoolean()
[all …]
DIwlanHelper.java52 public static String getNai(Context context, int slotId, byte[] nextReauthId) { in getNai() argument
60 tm = tm.createForSubscriptionId(getSubId(context, slotId)); in getNai()
63 subInfo = getSubInfo(context, slotId); in getNai()
82 public static int getSubId(Context context, int slotId) { in getSubId() argument
86 subid = getSubInfo(context, slotId).getSubscriptionId(); in getSubId()
93 public static int getCarrierId(Context context, int slotId) { in getCarrierId() argument
95 tm = tm.createForSubscriptionId(IwlanHelper.getSubId(context, slotId)); in getCarrierId()
99 private static SubscriptionInfo getSubInfo(Context context, int slotId) in getSubInfo() argument
102 SubscriptionInfo info = sm.getActiveSubscriptionInfoForSimSlotIndex(slotId); in getSubInfo()
193 public static boolean isDefaultDataSlot(Context context, int slotId) { in isDefaultDataSlot() argument
[all …]
DIwlanNetworkService.java242 int slotId; in handleMessage() local
278 slotId = iwlanNetworkServiceProvider.getSlotIndex(); in handleMessage()
280 isActiveDataOnOtherSub(slotId), in handleMessage()
281 IwlanHelper.isCrossSimCallingEnabled(mContext, slotId))) { in handleMessage()
288 TAG + "[" + slotId + "]", in handleMessage()
295 Log.d(TAG + "[" + slotId + "]", ": reg state REGISTRATION_STATE_HOME"); in handleMessage()
314 slotId = iwlanNetworkServiceProvider.getSlotIndex(); in handleMessage()
315 IwlanNetworkServiceProvider nsp = sIwlanNetworkServiceProviders.remove(slotId); in handleMessage()
318 TAG + "[" + slotId + "]", in handleMessage()
390 static boolean isActiveDataOnOtherSub(int slotId) { in isActiveDataOnOtherSub() argument
[all …]
/packages/services/Telephony/src/com/android/phone/
DImsProvisioningController.java168 FeatureConnector<ImsManager> create(Context context, int slotId, in create() argument
184 FeatureConnector<RcsFeatureManager> create(Context context, int slotId, in create() argument
265 int slotId = msg.arg1; in handleMessage() local
269 log("slotId " + slotId + " subId " + subId in handleMessage()
273 notifyMmTelProvisioningStatus(slotId, subId, callback); in handleMessage()
274 notifyRcsProvisioningStatus(slotId, subId, callback); in handleMessage()
299 ProvisioningCallbackManager(int slotId) { in ProvisioningCallbackManager() argument
302 mSlotId = slotId; in ProvisioningCallbackManager()
303 mSubId = getSubId(slotId); in ProvisioningCallbackManager()
399 MmTelFeatureListener(int slotId) { in MmTelFeatureListener() argument
[all …]
DImsStateCallbackController.java93 FeatureConnector<ImsManager> create(Context context, int slotId, in create() argument
109 FeatureConnector<RcsFeatureManager> create(Context context, int slotId, in create() argument
173 int slotId = bundle.getInt(CarrierConfigManager.EXTRA_SLOT_INDEX,
178 if (slotId <= SubscriptionManager.INVALID_SIM_SLOT_INDEX) {
189 notifyCarrierConfigChanged(slotId);
275 MmTelFeatureListener(int slotId) { in MmTelFeatureListener() argument
276 mSlotId = slotId; in MmTelFeatureListener()
277 mLogPrefix = "[" + slotId + ", MMTEL] "; in MmTelFeatureListener()
281 mApp, slotId, TAG, this, new HandlerExecutor(mHandler)); in MmTelFeatureListener()
436 RcsFeatureListener(int slotId) { in RcsFeatureListener() argument
[all …]
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/
DImsEntitlementReceiver.java69 int slotId = in onReceive() local
87 context, currentSubId, slotId, dependencies.jobManager, result)); in onReceive()
97 Context context, int currentSubId, int slotId, JobManager jobManager, in handleCarrierConfigChanged() argument
102 int lastSubId = getAndSetSubId(context, currentSubId, slotId); in handleCarrierConfigChanged()
105 "SubId for slot " + slotId + " changed: " + lastSubId + " -> " + currentSubId); in handleCarrierConfigChanged()
113 if (!shouldQuery && isBootUp(context, slotId)) { in handleCarrierConfigChanged()
146 boolean isBootUp(Context context, int slotId) { in isBootUp() argument
149 int lastBootCount = preferences.getInt(KEY_LAST_BOOT_COUNT + slotId, 0); in isBootUp()
153 preferences.edit().putInt(KEY_LAST_BOOT_COUNT + slotId, currentBootCount).apply(); in isBootUp()
158 private int getAndSetSubId(Context context, int currentSubId, int slotId) { in getAndSetSubId() argument
[all …]
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordancePickerInteractorTest.kt89 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_START, in select()
96 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_START, in select()
103 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_START, in select()
110 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_START, in select()
123 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_END, in unselectAll()
127 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_END, in unselectAll()
131 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_END, in unselectAll()
136 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_END, in unselectAll()
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordancePickerInteractor.kt57 suspend fun select(slotId: String, affordanceId: String) { in select()
59 slotId = slotId, in select()
67 suspend fun unselectAllFromSlot(slotId: String) { in unselectAllFromSlot()
69 slotId = slotId, in unselectAllFromSlot()
DKeyguardQuickAffordanceSnapshotRestorer.kt53 val (slotId, affordanceId) = selection.split(SLOT_AFFORDANCE_SEPARATOR) in <lambda>() constant
54 slotId to affordanceId in <lambda>()
57 selections.forEach { (slotId, affordanceId) -> in <lambda>() method
59 slotId, in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/ui/viewmodel/
DKeyguardQuickAffordancePickerViewModel.kt141 .filter { selection -> selection.slotId == slot.id } in <lambda>()
194 .filter { selection -> selection.slotId == selectedSlotId } in <lambda>()
210 slotId = selectedSlotId, in <lambda>()
244 .map { slotId -> "$slotId::${affordance.id}" } in <lambda>() method
259 slotId = selectedSlotId, in <lambda>()
413 slotId: StateFlow<String>, in <lambda>()
418 key = slotId.map { "$it::none" }.stateIn(viewModelScope), in <lambda>()
428 private fun getSlotName(slotId: String): String { in <lambda>()
430 when (slotId) { in <lambda>()
435 else -> error("No name for slot with ID of \"$slotId\"!") in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DUiccSlotUtil.java129 public static synchronized void switchToRemovableSlot(int slotId, Context context) in switchToRemovableSlot() argument
131 switchToRemovableSlot(context, slotId, null); in switchToRemovableSlot()
146 public static synchronized void switchToRemovableSlot(Context context, int slotId, in switchToRemovableSlot() argument
153 int inactiveRemovableSlot = getInactiveRemovableSlot(telMgr.getUiccSlotsInfo(), slotId); in switchToRemovableSlot()
304 private static int getInactiveRemovableSlot(UiccSlotInfo[] slots, int slotId) in getInactiveRemovableSlot() argument
309 if (slotId == INVALID_PHYSICAL_SLOT_ID) { in getInactiveRemovableSlot()
321 if (slotId >= slots.length || slots[slotId] == null || !slots[slotId].isRemovable()) { in getInactiveRemovableSlot()
322 Log.d(TAG, "The given slotId is not a removable slot: " + slotId); in getInactiveRemovableSlot()
325 if (!slots[slotId].getPorts().stream().findFirst().get().isActive()) { in getInactiveRemovableSlot()
326 return slotId; in getInactiveRemovableSlot()
DSwitchSlotSidecar.java50 int slotId; field in SwitchSlotSidecar.Param
75 param.slotId = id; in runSwitchToRemovableSlot()
93 param.slotId = physicalSlotId; in runSwitchToEuiccSlot()
118 UiccSlotUtil.switchToRemovableSlot(getContext(), param.slotId, in doInBackground()
123 UiccSlotUtil.switchToEuiccSlot(getContext(), param.slotId, param.port, in doInBackground()
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/
DTestImsService.java75 public MmTelFeature createMmTelFeature(int slotId) { in createMmTelFeature() argument
81 public RcsFeature createRcsFeature(int slotId) { in createRcsFeature() argument
86 public ImsRegistrationImplBase getRegistration(int slotId) { in getRegistration() argument
92 public ImsConfigImplBase getConfig(int slotId) { in getConfig() argument
97 public SipTransportImpl getSipTransport(int slotId) { in getSipTransport() argument
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogController.java56 public ImeiInfoDialogController(@NonNull ImeiInfoDialogFragment dialog, int slotId) { in ImeiInfoDialogController() argument
58 mSlotId = slotId; in ImeiInfoDialogController()
61 .getActiveSubscriptionInfoForSimSlotIndex(slotId); in ImeiInfoDialogController()
66 } else if(isValidSlotIndex(slotId, tm)) { in ImeiInfoDialogController()
134 boolean isSimPresent(int slotId) { in isSimPresent() argument
135 final int simState = mTelephonyManager.getSimState(slotId); in isSimPresent()
DImeiInfoDialogFragment.java50 public static void show(@NonNull Fragment host, int slotId, String dialogTitle) { in show() argument
54 bundle.putInt(SLOT_ID_BUNDLE_KEY, slotId); in show()
70 final int slotId = bundle.getInt(SLOT_ID_BUNDLE_KEY); in onCreateDialog() local
73 final ImeiInfoDialogController controller = new ImeiInfoDialogController(this, slotId); in onCreateDialog()
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementReceiverTest.java121 protected boolean isBootUp(Context context, int slotId) { in setUp()
300 private Intent getCarrierConfigChangedIntent(int subId, int slotId) { in getCarrierConfigChangedIntent() argument
303 intent.putExtra(SubscriptionManager.EXTRA_SLOT_INDEX, slotId); in getCarrierConfigChangedIntent()
328 private void setLastSubId(int subId, int slotId) { in setLastSubId() argument
331 preferences.edit().putInt("last_sub_id_" + slotId, subId).apply(); in setLastSubId()
334 private void setLastBootCount(int slotId, int count) { in setLastBootCount() argument
337 preferences.edit().putInt("last_boot_count_" + slotId, count).apply(); in setLastBootCount()

1234