Home
last modified time | relevance | path

Searched refs:SUB_ID (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/opt/net/ims/tests/src/com/android/ims/
DFeatureConnectorTest.java132 private static final int SUB_ID = 2; field in FeatureConnectorTest
156 mTestManager.callback.imsFeatureCreated(createContainer(), SUB_ID); in testConnect() local
159 verify(mListener, never()).connectionReady(any(), eq(SUB_ID)); in testConnect()
163 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_READY, SUB_ID); in testConnect()
164 verify(mListener).connectionReady(mTestManager, SUB_ID); in testConnect()
189 mTestManager.callback.imsFeatureCreated(createContainer(), SUB_ID); in testConnectReadyNotReady() local
190 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_READY, SUB_ID); in testConnectReadyNotReady()
191 verify(mListener).connectionReady(mTestManager, SUB_ID); in testConnectReadyNotReady()
194 mTestManager.callback.imsStatusChanged(ImsFeature.STATE_UNAVAILABLE, SUB_ID); in testConnectReadyNotReady()
198 verify(mListener).connectionReady(mTestManager, SUB_ID); in testConnectReadyNotReady()
[all …]
DFeatureConnectionTest.java90 public static final int SUB_ID = 2; field in FeatureConnectionTest
99 mTestFeatureConnection = new TestFeatureConnection(mContext, PHONE_ID, SUB_ID); in setUp()
DMmTelFeatureConnectionTest.java59 super(context, lock, SLOT_ID, SUB_ID); in CallbackManagerTest()
96 public static final int SUB_ID = 1; field in MmTelFeatureConnectionTest
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/
DNullCipherNotifierTest.java47 private static final int SUB_ID = 3425; field in NullCipherNotifierTest
158 SUB_ID, in onSecurityAlgorithmUpdate_enabled_unprotectedEmergency_noSafetySourceUpdate()
176 SUB_ID, in onSecurityAlgorithmUpdate_disabled_noSafetySourceUpdate()
195 SUB_ID, in onSecurityAlgorithmUpdate_enabled_nonTransportLayerEvent_noSafetySourceUpdate()
218 SUB_ID, in onUpdate_enabled_transportLayerEvent_encryptionNullCipher_notifyNonEncrypted()
232 eq(SUB_ID), in onUpdate_enabled_transportLayerEvent_encryptionNullCipher_notifyNonEncrypted()
249 SUB_ID, in onUpdate_enabled_transportLayerEvent_integrityNullCipher_notifyNonEncrypted()
263 eq(SUB_ID), in onUpdate_enabled_transportLayerEvent_integrityNullCipher_notifyNonEncrypted()
280 SUB_ID, in onUpdate_enabled_transportLayerEvent_encryptionNonNullCipher_encrypted()
294 eq(SUB_ID), in onUpdate_enabled_transportLayerEvent_encryptionNonNullCipher_encrypted()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/
DSatelliteControllerTest.java168 private static final int SUB_ID = 0; field in SatelliteControllerTest
177 private static final int[] ACTIVE_SUB_IDS = {SUB_ID};
485 when(mPhone.getSubId()).thenReturn(SUB_ID); in setUp()
588 mSatelliteControllerUT.requestTimeForNextSatelliteVisibility(SUB_ID, in testRequestTimeForNextSatelliteVisibility()
595 mSatelliteControllerUT.requestTimeForNextSatelliteVisibility(SUB_ID, in testRequestTimeForNextSatelliteVisibility()
607 mSatelliteControllerUT.requestTimeForNextSatelliteVisibility(SUB_ID, in testRequestTimeForNextSatelliteVisibility()
621 mSatelliteControllerUT.requestTimeForNextSatelliteVisibility(SUB_ID, in testRequestTimeForNextSatelliteVisibility()
632 mSatelliteControllerUT.requestTimeForNextSatelliteVisibility(SUB_ID, in testRequestTimeForNextSatelliteVisibility()
643 mSatelliteControllerUT.requestTimeForNextSatelliteVisibility(SUB_ID, in testRequestTimeForNextSatelliteVisibility()
654 mSatelliteControllerUT.requestTimeForNextSatelliteVisibility(SUB_ID, in testRequestTimeForNextSatelliteVisibility()
[all …]
DDatagramReceiverTest.java81 private static final int SUB_ID = 0; field in DatagramReceiverTest
137 Looper.myLooper(), SUB_ID); in setUp()
181 mDatagramReceiverUT.pollPendingSatelliteDatagrams(SUB_ID, mResultListener::offer); in testPollPendingSatelliteDatagrams_usingSatelliteModemInterface_success()
185 mInOrder.verify(mMockDatagramController).updateReceiveStatus(eq(SUB_ID), in testPollPendingSatelliteDatagrams_usingSatelliteModemInterface_success()
199 .updateReceiveStatus(eq(SUB_ID), in testPollPendingSatelliteDatagrams_usingSatelliteModemInterface_success()
213 mDatagramReceiverUT.pollPendingSatelliteDatagrams(SUB_ID, mResultListener::offer); in testPollPendingSatelliteDatagrams_usingSatelliteModemInterface_success()
223 mInOrder.verify(mMockDatagramController).updateReceiveStatus(eq(SUB_ID), in testPollPendingSatelliteDatagrams_usingSatelliteModemInterface_success()
226 mInOrder.verify(mMockDatagramController).updateReceiveStatus(eq(SUB_ID), in testPollPendingSatelliteDatagrams_usingSatelliteModemInterface_success()
259 mDatagramReceiverUT.pollPendingSatelliteDatagrams(SUB_ID, mResultListener::offer); in testPollPendingSatelliteDatagrams_usingSatelliteModemInterface_failure()
264 .updateReceiveStatus(eq(SUB_ID), in testPollPendingSatelliteDatagrams_usingSatelliteModemInterface_failure()
[all …]
DDatagramDispatcherTest.java86 private static final int SUB_ID = 0; field in DatagramDispatcherTest
207 mDatagramDispatcherUT.sendSatelliteDatagram(SUB_ID, datagramType, mDatagram, in testSendSatelliteDatagram_success()
212 mInOrder.verify(mMockDatagramController).updateSendStatus(eq(SUB_ID), eq(datagramType), in testSendSatelliteDatagram_success()
231 .updateSendStatus(eq(SUB_ID), eq(datagramType), in testSendSatelliteDatagram_success()
235 .updateSendStatus(eq(SUB_ID), eq(datagramType), in testSendSatelliteDatagram_success()
240 .updateSendStatus(eq(SUB_ID), eq(datagramType), in testSendSatelliteDatagram_success()
258 mDatagramDispatcherUT.sendSatelliteDatagram(SUB_ID, datagramType, mDatagram, in testSendSatelliteDatagram_success()
300 mDatagramDispatcherUT.sendSatelliteDatagram(SUB_ID, datagramType, mDatagram, in testSendSatelliteDatagram_success()
358 mDatagramDispatcherUT.sendSatelliteDatagram(SUB_ID, datagramType, mDatagram, in testSendSatelliteDatagram_timeout()
365 .updateSendStatus(eq(SUB_ID), eq(datagramType), in testSendSatelliteDatagram_timeout()
[all …]
DDatagramControllerTest.java71 private static final int SUB_ID = 0; field in DatagramControllerTest
93 mDatagramControllerUT.updateSendStatus(SUB_ID, DATAGRAM_TYPE_UNKNOWN, in setUp()
95 mDatagramControllerUT.updateReceiveStatus(SUB_ID, SATELLITE_DATAGRAM_TRANSFER_STATE_IDLE, 0, in setUp()
147 mDatagramControllerUT.updateSendStatus(SUB_ID, DATAGRAM_TYPE_KEEP_ALIVE, in testSuppressSendStatusUpdate()
196 mDatagramControllerUT.updateSendStatus(SUB_ID, datagramType, sendState, sendPendingCount, in testUpdateSendStatus()
202 eq(SUB_ID), eq(datagramType), eq(sendState), eq(sendPendingCount), eq(errorCode)); in testUpdateSendStatus()
222 SUB_ID, receiveState, receivePendingCount, errorCode); in testUpdateReceiveStatus()
227 eq(SUB_ID), eq(receiveState), eq(receivePendingCount), eq(errorCode)); in testUpdateReceiveStatus()
DNtnCapabilityResolverTest.java62 private static final int SUB_ID = 0; field in NtnCapabilityResolverTest
83 .getSupportedSatelliteServices(SUB_ID, SATELLITE_PLMN); in setUp()
104 NtnCapabilityResolver.resolveNtnCapability(satelliteNri, SUB_ID); in testResolveNTNCapability()
123 NtnCapabilityResolver.resolveNtnCapability(cellularNri, SUB_ID); in testResolveNTNCapability()
142 NtnCapabilityResolver.resolveNtnCapability(emptyPlmnNri, SUB_ID); in testResolveNTNCapability()
DPointingAppControllerTest.java70 private static final int SUB_ID = 0; field in PointingAppControllerTest
367 mPointingAppController.registerForSatelliteTransmissionUpdates(SUB_ID, in testUpdateSendDatagramTransferState()
369 mPointingAppController.updateSendDatagramTransferState(SUB_ID, in testUpdateSendDatagramTransferState()
382 mPointingAppController.unregisterForSatelliteTransmissionUpdates(SUB_ID, in testUpdateSendDatagramTransferState()
389 mPointingAppController.registerForSatelliteTransmissionUpdates(SUB_ID, in testUpdateReceiveDatagramTransferState()
391 mPointingAppController.updateReceiveDatagramTransferState(SUB_ID, in testUpdateReceiveDatagramTransferState()
401 mPointingAppController.unregisterForSatelliteTransmissionUpdates(SUB_ID, in testUpdateReceiveDatagramTransferState()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyPermissionsTest.java66 private static final int SUB_ID = 55555; field in TelephonyPermissionsTest
113 new int[]{SUB_ID}); in setUp()
129 when(mMockTelephony.getCarrierPrivilegeStatusForUid(eq(SUB_ID), eq(UID))) in setUp()
150 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG); in testCheckReadPhoneState_noPermissions()
162 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPrivilegedPermission()
174 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPermissionAndAppOp()
182 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasPermissionWithoutAppOp()
187 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneState_hasCarrierPrivileges()
192 mMockContext, SUB_ID, PID, UID, PACKAGE, FEATURE, MSG)); in testCheckReadPhoneState_hasCarrierPrivileges()
231 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneStateOnAnyActiveSub_hasCarrierPrivileges()
[all …]
DCarrierServiceStateTrackerTest.java73 private static final int SUB_ID = 1; field in CarrierServiceStateTrackerTest
85 when(mPhone.getSubId()).thenReturn(SUB_ID); in setUp()
101 setCarrierPrivilegesForSubId(true, SUB_ID); in setUp()
133 CarrierServiceStateTracker.EMERGENCY_NOTIFICATION_TAG, SUB_ID); in testCancelBothNotifications()
135 CarrierServiceStateTracker.PREF_NETWORK_NOTIFICATION_TAG, SUB_ID); in testCancelBothNotifications()
155 eq(SUB_ID), isA(Notification.class)); in testSendBothNotifications()
158 eq(SUB_ID), any()); in testSendBothNotifications()
165 mCarrierConfigChangeListener.onCarrierConfigChanged(0 /* slotIndex */, SUB_ID, in testSendPrefNetworkNotification()
196 eq(SUB_ID), isA(Notification.class)); in testSendPrefNetworkNotification()
208 CarrierServiceStateTracker.PREF_NETWORK_NOTIFICATION_TAG, SUB_ID); in testSendPrefNetworkNotification()
[all …]
DIccLogicalChannelRequestTest.java34 private static final int SUB_ID = 0; field in IccLogicalChannelRequestTest
62 createIccLogicalChannelRequest(SUB_ID, SLOT_INDEX, PORT_INDEX, CALLING_PKG, AID, P2, in testConstructor_withValidParmas_shouldReturnValidValues()
65 assertThat(request.subId).isEqualTo(SUB_ID); in testConstructor_withValidParmas_shouldReturnValidValues()
79 createIccLogicalChannelRequest(SUB_ID, SLOT_INDEX, PORT_INDEX, CALLING_PKG, AID, P2, in testEquals_sameInput_shouldReturnTrue()
82 createIccLogicalChannelRequest(SUB_ID, SLOT_INDEX, PORT_INDEX, CALLING_PKG, AID, P2, in testEquals_sameInput_shouldReturnTrue()
92 createIccLogicalChannelRequest(SUB_ID, SLOT_INDEX, PORT_INDEX, CALLING_PKG, AID, P2, in testEquals_differentBinder_shouldReturnFalse()
96 createIccLogicalChannelRequest(SUB_ID, SLOT_INDEX, PORT_INDEX, CALLING_PKG, AID, P2, in testEquals_differentBinder_shouldReturnFalse()
106 createIccLogicalChannelRequest(SUB_ID, SLOT_INDEX, PORT_INDEX, CALLING_PKG, AID, P2, in testParcel()
DDefaultPhoneNotifierTest.java55 private static final int SUB_ID = 0; field in DefaultPhoneNotifierTest
134 doReturn(SUB_ID).when(mPhone).getSubId(); in testNotifyDataActivityWithSlot()
206 doReturn(SUB_ID).when(mPhone).getSubId(); in testNotifyDisconnectCause()
209 verify(mTelephonyRegistryManager).notifyDisconnectCause(PHONE_ID, SUB_ID, in testNotifyDisconnectCause()
214 verify(mTelephonyRegistryManager).notifyDisconnectCause(PHONE_ID, SUB_ID, in testNotifyDisconnectCause()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DFullMobileConnectionRepositoryTest.kt97 subscriptionId = SUB_ID,
104 private val systemUiCarrierConfig = SystemUiCarrierConfig(SUB_ID, PersistableBundle())
113 SUB_ID, in setUp()
118 SUB_ID, in setUp()
128 eq(SUB_ID), in setUp()
138 eq(SUB_ID), in setUp()
160 SUB_ID, in startingIsCarrierMerged_usesCarrierMergedInitially()
183 SUB_ID, in startingNotCarrierMerged_usesTypicalInitially()
393 SUB_ID, in factory_reusesLogBuffersForSameConnection()
402 SUB_ID, in factory_reusesLogBuffersForSameConnection()
[all …]
DCarrierMergedConnectionRepositoryTest.kt62 whenever(telephonyManager.subscriptionId).thenReturn(SUB_ID) in setUp()
69 SUB_ID, in setUp()
128 subscriptionId = SUB_ID, in carrierMergedWifi_isValidAndFieldsComeFromWifiNetwork()
149 subscriptionId = SUB_ID, in activity_comesFromWifiActivity()
187 subscriptionId = SUB_ID + 10, in carrierMergedWifi_wrongSubId_isDefault()
209 subscriptionId = SUB_ID, in carrierMergedButNotEnabled_isDefault()
230 subscriptionId = SUB_ID, in carrierMergedButWifiNotDefault_isDefault()
250 subscriptionId = SUB_ID, in numberOfLevels_comesFromCarrierMerged()
314 subscriptionId = SUB_ID, in networkName_updatesOnNetworkUpdate()
333 const val SUB_ID = 123 constant
/frameworks/base/tests/vcn/java/android/net/vcn/
DVcnTransportInfoTest.java39 private static final int SUB_ID = 1; field in VcnTransportInfoTest
46 new VcnTransportInfo(SUB_ID, MIN_UDP_PORT_4500_NAT_TIMEOUT);
59 assertEquals(SUB_ID, CELL_UNDERLYING_INFO.getSubId()); in testGetSubId()
94 SUB_ID, in testMakeCopyRedactForAccessFineLocation()
138 assertEquals(SUB_ID, cellRedacted.getSubId()); in testParcelNotRedactedForSysUi()
/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/
DEapSessionConfigUtilsTest.java44 private static final int SUB_ID = 1; field in EapSessionConfigUtilsTest
70 createBuilderWithId().setEapSimConfig(SUB_ID, APPTYPE_USIM).build(); in testSetEapSimEncodeDecodeIsLossless()
78 createBuilderWithId().setEapAkaConfig(SUB_ID, APPTYPE_USIM).build(); in testSetEapAkaEncodeDecodeIsLossless()
88 SUB_ID, APPTYPE_USIM, NETWORK_NAME, ALLOW_MISMATCHED_NETWORK_NAMES) in testSetEapAkaPrimeEncodeDecodeIsLossless()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegateControllerTest.java108 private static final int SUB_ID = 1; field in InternetDialogDelegateControllerTest
219 when(mSubscriptionManager.getActiveSubscriptionIdList()).thenReturn(new int[]{SUB_ID}); in setUp()
220 when(SubscriptionManager.getDefaultDataSubscriptionId()).thenReturn(SUB_ID); in setUp()
222 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID)).thenReturn(info); in setUp()
786 when(mCarrierConfigTracker.getCarrierProvisionsWifiMergedNetworksBool(SUB_ID)) in setMergedCarrierWifiEnabledIfNeed_carrierProvisionsEnabled_doNothing()
789 mInternetDialogController.setMergedCarrierWifiEnabledIfNeed(SUB_ID, true); in setMergedCarrierWifiEnabledIfNeed_carrierProvisionsEnabled_doNothing()
796 when(mCarrierConfigTracker.getCarrierProvisionsWifiMergedNetworksBool(SUB_ID)) in setMergedCarrierWifiEnabledIfNeed_mergedCarrierEntryEmpty_doesntCrash()
800 mInternetDialogController.setMergedCarrierWifiEnabledIfNeed(SUB_ID, true); in setMergedCarrierWifiEnabledIfNeed_mergedCarrierEntryEmpty_doesntCrash()
805 when(mCarrierConfigTracker.getCarrierProvisionsWifiMergedNetworksBool(SUB_ID)) in setMergedCarrierWifiEnabledIfNeed_neededSetMergedCarrierEntry_setTogether()
808 mInternetDialogController.setMergedCarrierWifiEnabledIfNeed(SUB_ID, true); in setMergedCarrierWifiEnabledIfNeed_neededSetMergedCarrierEntry_setTogether()
[all …]
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/
DEapAkaResponseTest.java76 private static final int SUB_ID = 0; field in EapAkaResponseTest
90 when(mMockTelephonyManager.createForSubscriptionId(SUB_ID)) in setUp()
109 EapAkaResponse.respondToEapAkaChallenge(mContext, SUB_ID, challenge); in generateEapAkaChallengeResponse_authSuccess()
127 EapAkaResponse.respondToEapAkaChallenge(mContext, SUB_ID, challenge); in generateEapAkaChallengeResponse_syncFailure()
/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/
DNetworkEvaluationTestBase.java67 protected static final int SUB_ID = 1; field in NetworkEvaluationTestBase
93 new TelephonyNetworkSpecifier.Builder().setSubscriptionId(SUB_ID).build();
99 .setSubscriptionIds(Set.of(SUB_ID))
151 when(mTelephonyManager.createForSubscriptionId(SUB_ID)).thenReturn(mTelephonyManager); in setUp()
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/
DEapAkaHelperTest.java42 private static final int SUB_ID = 1; field in EapAkaHelperTest
55 when(mMockTelephonyManager.createForSubscriptionId(SUB_ID)) in setUp()
58 mEapAkaHelper = EapAkaHelper.getInstance(mContext, SUB_ID); in setUp()
DServiceEntitlementTest.java57 private static final int SUB_ID = 1; field in ServiceEntitlementTest
75 when(mMockTelephonyManager.createForSubscriptionId(SUB_ID)) in setUp()
85 ServiceEntitlement serviceEntitlement = new ServiceEntitlement(mContext, config, SUB_ID); in queryEntitlementStatus_noServerAddress_throwException()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageControllerTest.java50 private static final String SUB_ID = "Test Subscriber"; field in DataUsageControllerTest
78 doReturn(SUB_ID).when(mTelephonyManager).getSubscriberId(); in setUp()
82 .setSubscriberIds(Set.of(SUB_ID)).build(); in setUp()
DNetworkCycleDataForUidLoaderTest.java49 private static final String SUB_ID = "Test Subscriber"; field in NetworkCycleDataForUidLoaderTest
71 .setSubscriberIds(Set.of(SUB_ID)).build(); in setUp()

12