Home
last modified time | relevance | path

Searched refs:slotId (Results 1 – 25 of 88) 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 …]
/packages/apps/Stk/src/com/android/stk/
DStkAppService.java282 int slotId; field in StkAppService.DelayedCmd
284 DelayedCmd(int id, CatCmdMessage msg, int slotId) { in DelayedCmd() argument
287 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.java61 RcsFeatureController createController(Context context, int slotId, int subId); in createController() argument
66 UceControllerManager createUceControllerManager(Context context, int slotId, int subId); in createUceControllerManager() argument
72 SipTransportController createSipTransportController(Context context, int slotId, int subId); in createSipTransportController() argument
77 public RcsFeatureController createController(Context context, int slotId, int subId) {
78 return new RcsFeatureController(context, slotId, subId);
82 public UceControllerManager createUceControllerManager(Context context, int slotId,
84 return new UceControllerManager(context, slotId, subId);
88 public SipTransportController createSipTransportController(Context context, int slotId,
90 return new SipTransportController(context, slotId, subId);
136 int slotId = bundle.getInt(CarrierConfigManager.EXTRA_SLOT_INDEX,
[all …]
/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DTelephonyDomainSelectionService.java59 ImsStateTracker create(Context context, int slotId, @NonNull Looper looper); in create() argument
70 DomainSelectorBase create(Context context, int slotId, int subId, in create() argument
79 public DomainSelectorBase create(Context context, int slotId, int subId, in create() argument
86 logi("create-DomainSelector: slotId=" + slotId + ", subId=" + subId in create()
93 selector = new EmergencyCallDomainSelector(context, slotId, subId, looper, in create()
96 selector = new NormalCallDomainSelector(context, slotId, subId, looper, in create()
102 selector = new EmergencySmsDomainSelector(context, slotId, subId, looper, in create()
105 selector = new SmsDomainSelector(context, slotId, subId, looper, in create()
129 DomainSelectorContainer(int slotId, @SelectorType int selectorType, boolean isEmergency, in DomainSelectorContainer() argument
131 mSlotId = slotId; in DomainSelectorContainer()
[all …]
/packages/services/Telephony/src/com/android/phone/
DImsProvisioningController.java161 FeatureConnector<ImsManager> create(Context context, int slotId, in create() argument
177 FeatureConnector<RcsFeatureManager> create(Context context, int slotId, in create() argument
279 ProvisioningCallbackManager(int slotId) { in ProvisioningCallbackManager() argument
282 mSlotId = slotId; in ProvisioningCallbackManager()
283 mSubId = getSubId(slotId); in ProvisioningCallbackManager()
379 MmTelFeatureListener(int slotId) { in MmTelFeatureListener() argument
380 log(LOG_PREFIX, slotId, "created"); in MmTelFeatureListener()
382 mSlotId = slotId; in MmTelFeatureListener()
383 mSubId = getSubId(slotId); in MmTelFeatureListener()
387 mApp, slotId, TAG, this, new HandlerExecutor(mHandler)); in MmTelFeatureListener()
[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 …]
DTelephonyShellCommand.java1177 int slotId = getDefaultSlot(); in handleBarringSendCommand() local
1178 int subId = SubscriptionManager.getSubscriptionId(slotId); in handleBarringSendCommand()
1189 slotId = Integer.parseInt(getNextArgRequired()); in handleBarringSendCommand()
1190 subId = SubscriptionManager.getSubscriptionId(slotId); in handleBarringSendCommand()
1239 mTelephonyRegistryManager.notifyBarringInfoChanged(slotId, subId, barringInfo); in handleBarringSendCommand()
1271 int slotId = getDefaultSlot(); in handleImsSetServiceCommand() local
1280 slotId = Integer.parseInt(getNextArgRequired()); in handleImsSetServiceCommand()
1333 boolean result = mInterface.setBoundImsServiceOverride(slotId, isCarrierService, in handleImsSetServiceCommand()
1336 Log.v(LOG_TAG, "ims set-ims-service -s " + slotId + " " in handleImsSetServiceCommand()
1343 Log.w(LOG_TAG, "ims set-ims-service -s " + slotId + " " in handleImsSetServiceCommand()
[all …]
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/
DImsEntitlementReceiver.java67 int slotId = in onReceive() local
84 context, currentSubId, slotId, dependencies.jobManager, result)); in onReceive()
94 Context context, int currentSubId, int slotId, JobManager jobManager, in handleCarrierConfigChanged() argument
99 if (isBootUp(context, slotId)) { in handleCarrierConfigChanged()
111 int lastSubId = getAndSetSubId(context, currentSubId, slotId); in handleCarrierConfigChanged()
114 "SubId for slot " + slotId + " changed: " + lastSubId + " -> " + currentSubId); in handleCarrierConfigChanged()
135 boolean isBootUp(Context context, int slotId) { in isBootUp() argument
138 int lastBootCount = preferences.getInt(KEY_LAST_BOOT_COUNT + slotId, 0); in isBootUp()
142 preferences.edit().putInt(KEY_LAST_BOOT_COUNT + slotId, currentBootCount).apply(); in isBootUp()
147 private int getAndSetSubId(Context context, int currentSubId, int slotId) { in getAndSetSubId() argument
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanHelper.java54 public static String getNai(Context context, int slotId, byte[] nextReauthId) { in getNai() argument
62 tm = tm.createForSubscriptionId(getSubId(context, slotId)); in getNai()
65 subInfo = getSubInfo(context, slotId); in getNai()
84 public static int getSubId(Context context, int slotId) { in getSubId() argument
88 subid = getSubInfo(context, slotId).getSubscriptionId(); in getSubId()
95 public static int getCarrierId(Context context, int slotId) { in getCarrierId() argument
97 tm = tm.createForSubscriptionId(IwlanHelper.getSubId(context, slotId)); in getCarrierId()
101 private static SubscriptionInfo getSubInfo(Context context, int slotId) in getSubInfo() argument
104 SubscriptionInfo info = sm.getActiveSubscriptionInfoForSimSlotIndex(slotId); in getSubInfo()
188 public static <T> T getConfig(String key, Context context, int slotId) { in getConfig() 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 …]
DIwlanEventListener.java181 public static IwlanEventListener getInstance(@NonNull Context context, int slotId) { in getInstance() argument
182 return mInstances.computeIfAbsent(slotId, k -> new IwlanEventListener(context, slotId)); in getInstance()
258 int slotId = in onBroadcastReceived() local
267 if (slotId != SubscriptionManager.INVALID_SIM_SLOT_INDEX && context != null) { in onBroadcastReceived()
268 getInstance(context, slotId).onCarrierConfigChanged(carrierId); in onBroadcastReceived()
380 private IwlanEventListener(Context context, int slotId) { in IwlanEventListener() argument
382 mSlotId = slotId; in IwlanEventListener()
384 SUB_TAG = IwlanEventListener.class.getSimpleName() + "[" + slotId + "]"; in IwlanEventListener()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordancePickerInteractorTest.kt94 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_START, in select()
101 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_START, in select()
108 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_START, in select()
115 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_START, in select()
128 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_END, in unselectAll()
132 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_END, in unselectAll()
136 slotId = KeyguardQuickAffordanceSlots.SLOT_ID_BOTTOM_END, in unselectAll()
141 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 unselectAll(slotId: String) { in unselectAll()
69 slotId = slotId, in unselectAll()
DKeyguardQuickAffordanceSnapshotRestorer.kt48 val (slotId, affordanceId) = selection.split(SLOT_AFFORDANCE_SEPARATOR) in <lambda>() constant
49 slotId to affordanceId in <lambda>()
52 selections.forEach { (slotId, affordanceId) -> in <lambda>() method
54 slotId, in <lambda>()
/packages/apps/Settings/src/com/android/settings/network/
DUiccSlotUtil.java122 public static synchronized void switchToRemovableSlot(int slotId, Context context) in switchToRemovableSlot() argument
124 switchToRemovableSlot(context, slotId, null); in switchToRemovableSlot()
139 public static synchronized void switchToRemovableSlot(Context context, int slotId, in switchToRemovableSlot() argument
146 int inactiveRemovableSlot = getInactiveRemovableSlot(telMgr.getUiccSlotsInfo(), slotId); in switchToRemovableSlot()
297 private static int getInactiveRemovableSlot(UiccSlotInfo[] slots, int slotId) in getInactiveRemovableSlot() argument
302 if (slotId == INVALID_PHYSICAL_SLOT_ID) { in getInactiveRemovableSlot()
313 if (slotId >= slots.length || !slots[slotId].isRemovable()) { in getInactiveRemovableSlot()
314 throw new UiccSlotsException("The given slotId is not a removable slot: " + slotId); in getInactiveRemovableSlot()
316 if (!slots[slotId].getPorts().stream().findFirst().get().isActive()) { in getInactiveRemovableSlot()
317 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/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/events/
DEventTest.java35 String slotId = "slotId"; in testBuilderAndEquals() local
46 .setSlotId(slotId) in testBuilderAndEquals()
58 assertEquals(event1.getSlotId(), slotId); in testBuilderAndEquals() local
67 type, timeMillis, slotId, eventData) in testBuilderAndEquals()
79 String slotId = "slotId"; in testBuildTwiceThrows() local
90 .setSlotId(slotId) in testBuildTwiceThrows()
/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()
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/ui/viewmodel/
DKeyguardQuickAffordancePickerViewModel.kt139 .filter { selection -> selection.slotId == slot.id } in <lambda>()
191 .filter { selection -> selection.slotId == selectedSlotId } in <lambda>()
207 slotId = selectedSlotId, in <lambda>()
235 .map { slotId -> "$slotId::${affordance.id}" } in <lambda>() method
250 slotId = selectedSlotId, in <lambda>()
399 slotId: StateFlow<String>, in <lambda>()
404 key = slotId.map { "$it::none" }.stateIn(viewModelScope), in <lambda>()
414 private fun getSlotName(slotId: String): String { in <lambda>()
416 when (slotId) { in <lambda>()
421 else -> error("No name for slot with ID of \"$slotId\"!") in <lambda>()
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementReceiverTest.java114 protected boolean isBootUp(Context context, int slotId) { in setUp()
255 private Intent getCarrierConfigChangedIntent(int subId, int slotId) { in getCarrierConfigChangedIntent() argument
258 intent.putExtra(SubscriptionManager.EXTRA_SLOT_INDEX, slotId); in getCarrierConfigChangedIntent()
272 private void setLastSubId(int subId, int slotId) { in setLastSubId() argument
275 preferences.edit().putInt("last_sub_id_" + slotId, subId).apply(); in setLastSubId()
278 private void setLastBootCount(int slotId, int count) { in setLastBootCount() argument
281 preferences.edit().putInt("last_boot_count_" + slotId, count).apply(); in setLastBootCount()

1234