Searched refs:TEST_SUB_ID (Results 1 – 3 of 3) sorted by relevance
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | UtilsTest.java | 92 private static final int TEST_SUB_ID = 1111; field in UtilsTest 330 assertFalse(isImsiPrivacyProtectionProvided(mMockContext, TEST_SUB_ID)); in testCheckRequireImsiPrivacyProtectionWithNoCarrierConfig() 338 when(mCarrierConfigManager.getConfigForSubId(TEST_SUB_ID)).thenReturn(bundle); in testCheckRequireImsiPrivacyProtectionWithCarrierConfigKeyAvailable() 339 assertTrue(isImsiPrivacyProtectionProvided(mMockContext, TEST_SUB_ID)); in testCheckRequireImsiPrivacyProtectionWithCarrierConfigKeyAvailable() 357 when(subscriptionInfo.getSubscriptionId()).thenReturn(TEST_SUB_ID); in testGetSubIdForWifiConfigurationWithMatchingSubscription() 360 assertEquals(TEST_SUB_ID, getSubIdForConfig(mMockContext, config)); in testGetSubIdForWifiConfigurationWithMatchingSubscription()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 211 private static final int TEST_SUB_ID = 42; field in NetworkPolicyManagerServiceTest 1129 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[] { plan }, 1253 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[] { plan }, 1668 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan}, 1689 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan}, 1705 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan}, 1722 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan}, 1742 buildNetworkCapabilities(TEST_SUB_ID, true /* roaming */)); 1973 when(mCarrierConfigManager.getConfigForSubId(eq(TEST_SUB_ID))) in expectNetworkState() 1978 buildNetworkCapabilities(TEST_SUB_ID, roaming), in expectNetworkState() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkSuggestionNominatorTest.java | 69 private static final int TEST_SUB_ID = 2020; field in NetworkSuggestionNominatorTest 815 .thenReturn(TEST_SUB_ID); in testSelectNetworkSuggestionForOneMatchSimBasedWithNoSim() 816 when(mWifiCarrierInfoManager.isSimPresent(TEST_SUB_ID)).thenReturn(false); in testSelectNetworkSuggestionForOneMatchSimBasedWithNoSim() 861 .thenReturn(TEST_SUB_ID); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele() 862 when(mWifiCarrierInfoManager.isSimPresent(TEST_SUB_ID)).thenReturn(true); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele() 863 when(mWifiCarrierInfoManager.requiresImsiEncryption(TEST_SUB_ID)).thenReturn(true); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele() 864 when(mWifiCarrierInfoManager.isImsiEncryptionInfoAvailable(TEST_SUB_ID)).thenReturn(false); in testSelectNetworkSuggestionForOneMatchSimBasedWithEncryptionInfoNotAvailabele()
|