Home
last modified time | relevance | path

Searched refs:testConfig (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNonCarrierMergedNetworksStatusTrackerTest.java102 WifiConfiguration testConfig = WifiConfigurationTestUtil.createOpenNetwork(); in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled() local
103 testConfig.carrierMerged = true; in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
104 testConfig.subscriptionId = INVALID_SUBSCRIPTION_ID; in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
105 assertTrue(mNonCarrierMergedNetworksStatusTracker.isNetworkDisabled(testConfig)); in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
108 testConfig.carrierMerged = false; in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
109 testConfig.subscriptionId = TEST_SUBSCRIPTION_ID; in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
110 assertTrue(mNonCarrierMergedNetworksStatusTracker.isNetworkDisabled(testConfig)); in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
113 testConfig.carrierMerged = true; in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
114 testConfig.subscriptionId = TEST_SUBSCRIPTION_ID; in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
115 assertFalse(mNonCarrierMergedNetworksStatusTracker.isNetworkDisabled(testConfig)); in testCarrierMergedNetworkWithMatchingSubscriptionIdIsEnabled()
[all …]
DSupplicantStaIfaceHalTest.java316 WifiConfiguration testConfig = new WifiConfiguration(); in testConnectToNetwork() local
319 assertTrue(mDut.connectToNetwork(IFACE_NAME, testConfig)); in testConnectToNetwork()
320 verify(mStaIfaceHalAidlMock).connectToNetwork(eq(IFACE_NAME), eq(testConfig)); in testConnectToNetwork()
329 WifiConfiguration testConfig = mock(WifiConfiguration.class); in testRoamToNetwork() local
332 assertTrue(mDut.roamToNetwork(IFACE_NAME, testConfig)); in testRoamToNetwork()
333 verify(mStaIfaceHalAidlMock).roamToNetwork(eq(IFACE_NAME), eq(testConfig)); in testRoamToNetwork()
DWifiNetworkSelectorTest.java410 WifiConfiguration testConfig = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkInsufficientWhenSufficiencyCheckDisabled() local
413 .thenReturn(testConfig); in testNetworkInsufficientWhenSufficiencyCheckDisabled()
433 WifiConfiguration testConfig = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkInsufficientWhenMetered() local
436 .thenReturn(testConfig); in testNetworkInsufficientWhenMetered()
442 testConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testNetworkInsufficientWhenMetered()
449 WifiConfiguration testConfig = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkInsufficientWhenMarkedUnusable() local
452 .thenReturn(testConfig); in testNetworkInsufficientWhenMarkedUnusable()
465 WifiConfiguration testConfig = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkInsufficientWhenLowAospScore() local
468 .thenReturn(testConfig); in testNetworkInsufficientWhenLowAospScore()
499 WifiConfiguration testConfig = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkInsufficientWhenIpProvisioningTimedOut() local
[all …]
DClientModeImplTest.java9815 WifiConfiguration testConfig = setupTrustOnFirstUse(true, true, true); in verifyTrustOnFirstUseAcceptWhenConnectByUser() local
9817 mCmi.mInsecureEapNetworkHandlerCallbacksImpl.onAccept(testConfig.SSID, in verifyTrustOnFirstUseAcceptWhenConnectByUser()
9818 testConfig.networkId); in verifyTrustOnFirstUseAcceptWhenConnectByUser()
9826 assertEquals(testConfig.networkId, wifiConfigurationArgumentCaptor.getValue().networkId); in verifyTrustOnFirstUseAcceptWhenConnectByUser()
9837 WifiConfiguration testConfig = setupTrustOnFirstUse(true, true, true); in verifyTrustOnFirstUseRejectWhenConnectByUser() local
9839 mCmi.mInsecureEapNetworkHandlerCallbacksImpl.onReject(testConfig.SSID, false); in verifyTrustOnFirstUseRejectWhenConnectByUser()
9854 assertEquals(testConfig.networkId, wifiConfigurationArgumentCaptor.getValue().networkId); in verifyTrustOnFirstUseRejectWhenConnectByUser()
9866 WifiConfiguration testConfig = setupTrustOnFirstUse(true, true, true); in verifyTrustOnFirstUseErrorWhenConnectByUser() local
9868 mCmi.mInsecureEapNetworkHandlerCallbacksImpl.onError(testConfig.SSID); in verifyTrustOnFirstUseErrorWhenConnectByUser()
9888 WifiConfiguration testConfig = setupTrustOnFirstUse(true, true, false); in verifyTrustOnFirstUseAcceptWhenAutoConnect() local
[all …]
DActiveModeWardenTest.java2964 SoftApConfiguration testConfig = new SoftApConfiguration.Builder() in testUpdateConfigInSoftApActiveMode() local
2967 mActiveModeWarden.updateSoftApConfiguration(testConfig); in testUpdateConfigInSoftApActiveMode()
2969 verify(mSoftApManager).updateConfiguration(testConfig); in testUpdateConfigInSoftApActiveMode()
2994 SoftApConfiguration testConfig = new SoftApConfiguration.Builder() in testUpdateConfigInNonSoftApActiveMode() local
2997 mActiveModeWarden.updateSoftApConfiguration(testConfig); in testUpdateConfigInNonSoftApActiveMode()
DWifiServiceImplTest.java5197 SoftApConfiguration testConfig = new SoftApConfiguration.Builder() in testRestoreSoftApBackupData() local
5199 byte[] testData = testConfig.toString().getBytes(); in testRestoreSoftApBackupData()
5201 .thenReturn(testConfig); in testRestoreSoftApBackupData()
5204 inorder.verify(mWifiApConfigStore).upgradeSoftApConfiguration(testConfig); in testRestoreSoftApBackupData()
10341 WifiConfiguration testConfig = WifiConfigurationTestUtil.createPskSaeNetwork(); in testGetPrivilegedConnectedNetworkSuccess() local
10342 testConfig.networkId = TEST_NETWORK_ID; in testGetPrivilegedConnectedNetworkSuccess()
10343 testConfig.setRandomizedMacAddress(TEST_FACTORY_MAC_ADDR); in testGetPrivilegedConnectedNetworkSuccess()
10345 wifiInfo.setNetworkId(testConfig.networkId); in testGetPrivilegedConnectedNetworkSuccess()
10347 when(mWifiConfigManager.getConfiguredNetworkWithPassword(testConfig.networkId)).thenReturn( in testGetPrivilegedConnectedNetworkSuccess()
10348 testConfig); in testGetPrivilegedConnectedNetworkSuccess()
[all …]
DWifiMetricsTest.java2998 WifiConfiguration testConfig = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkDisableReasonInUserActionEvent() local
2999 NetworkSelectionStatus status = testConfig.getNetworkSelectionStatus(); in testNetworkDisableReasonInUserActionEvent()
3004 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonInUserActionEvent()
3037 WifiConfiguration testConfig = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkDisableReasonDisableAutojoinInUserActionEvent() local
3038 NetworkSelectionStatus status = testConfig.getNetworkSelectionStatus(); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
3043 when(mWcm.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(testConfig); in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
3046 testConfig.allowAutojoin = false; in testNetworkDisableReasonDisableAutojoinInUserActionEvent()
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/
DTextConfigTest.cpp99 TextConfig testConfig; in TEST_F() local
100 testConfig = config1; in TEST_F()
101 EXPECT_EQ(config1, testConfig); in TEST_F()
DVideoConfigTest.cpp148 VideoConfig testConfig; in TEST_F() local
149 testConfig = config1; in TEST_F()
150 EXPECT_EQ(config1, testConfig); in TEST_F()
DAudioConfigTest.cpp141 AudioConfig testConfig; in TEST_F() local
142 testConfig = config1; in TEST_F()
143 EXPECT_EQ(config1, testConfig); in TEST_F()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointXmlUtilsTest.java210 private void serializeAndDeserializePasspointConfiguration(PasspointConfiguration testConfig) in serializeAndDeserializePasspointConfiguration() argument
215 PasspointXmlUtils.serializePasspointConfiguration(out, testConfig); in serializeAndDeserializePasspointConfiguration()
225 assertEquals(testConfig, deserializedConfig); in serializeAndDeserializePasspointConfiguration()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterConfigReader.java142 SafetyCenterConfigInternal testConfig = mConfigInternalOverrideForTests; in getExternalSafetySource() local
144 if (testConfig == null) { in getExternalSafetySource()
150 testConfig.getExternalSafetySources().get(safetySourceId); in getExternalSafetySource()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsCarrierConfigManagerTest.java866 QnsCarrierAnspSupportConfig testConfig = mConfigManager.getQnsCarrierAnspSupportConfig(); in testGetPolicyInternalApi() local
877 testConfig.loadQnsAnspSupportArray(bundle, null); in testGetPolicyInternalApi()
885 testConfig.loadQnsAnspSupportArray(bundle, null); in testGetPolicyInternalApi()
1415 QnsCarrierAnspSupportConfig testConfig = mConfigManager.getQnsCarrierAnspSupportConfig(); in testInvalidThresholdConfig() local
1416 testConfig.loadQnsAnspSupportArray(bundle, null); in testInvalidThresholdConfig()
1419 testConfig.getAnspCarrierThreshold( in testInvalidThresholdConfig()
1426 testConfig.getAnspCarrierThreshold( in testInvalidThresholdConfig()
1433 testConfig.getAnspCarrierThreshold( in testInvalidThresholdConfig()
1439 testConfig.getAnspCarrierThreshold( in testInvalidThresholdConfig()
1546 QnsCarrierAnspSupportConfig testConfig = mConfigManager.getQnsCarrierAnspSupportConfig(); in testGetWifiRssiThresholdWithoutCellularWithTestBundle() local
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_private_dns_test.cpp772 const std::vector<std::vector<std::string>> testConfig = { in TEST_F() local
787 for (const auto& serverList : testConfig) { in TEST_F()
/packages/modules/Media/apex/framework/java/android/media/
DMediaTranscodingManager.java662 parcel.testConfig = mTestConfig; in writeToParcel()