Home
last modified time | relevance | path

Searched refs:FromS (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSLocalAgentTests.kt85 private fun keepScore() = FromS( in keepScore()
123 lnc = FromS(LocalNetworkConfig.Builder().build())) in keepScore()
139 lnc = FromS(LocalNetworkConfig.Builder().build())) in keepScore()
170 lnc = FromS(LocalNetworkConfig.Builder().build()), in keepScore()
206 private fun createLocalAgent(name: String, localNetworkConfig: FromS<LocalNetworkConfig>): in keepScore()
212 score = FromS(NetworkScore.Builder() in keepScore()
250 val lnc = FromS(LocalNetworkConfig.Builder() in keepScore()
287 val lnc = FromS(LocalNetworkConfig.Builder() in keepScore()
327 val lnc = FromS(LocalNetworkConfig.Builder() in keepScore()
379 val lnc = FromS(LocalNetworkConfig.Builder() in keepScore()
[all …]
DCSKeepConnectedTest.kt48 val keepConnectedAgent = Agent(nc = nc, score = FromS(NetworkScore.Builder() in testKeepConnectedLocalAgent()
51 lnc = FromS(LocalNetworkConfig.Builder().build())) in testKeepConnectedLocalAgent()
53 lnc = FromS(LocalNetworkConfig.Builder().build())) in testKeepConnectedLocalAgent()
59 val keepAgent = Agent(score = FromS(NetworkScore.Builder() in testKeepConnectedForTest()
DCSLocalAgentCreationTests.kt50 FromS(NetworkScore.Builder().setKeepConnectedReason(KEEP_CONNECTED_FOR_TEST).build()) in keepConnectedScore()
52 private fun defaultLnc() = FromS(LocalNetworkConfig.Builder().build()) in keepConnectedScore()
DCSCaptivePortalAppTest.kt57 private fun keepScore() = FromS( in keepScore()
DCSSatelliteNetworkTest.kt235 private fun keepScore() = FromS(
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/
DConnectivitySampleMetricsTest.kt37 import com.android.server.FromS in <lambda>()
104 val agentWifi1 = Agent(nc = wifi1Caps, score = FromS(wifi1Score)).also { it.connect() } in testSampleConnectivityState_Network()
117 val agentWifi2 = Agent(nc = wifi2Caps, score = FromS(wifi2Score)).also { it.connect() } in testSampleConnectivityState_Network()
130 val agentCell = Agent(nc = cellCaps, score = FromS(cellScore)).also { it.connect() } in testSampleConnectivityState_Network()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSAgentWrapper.kt75 val lnc: FromS<LocalNetworkConfig>?, in ArgumentCaptor()
76 val score: FromS<NetworkScore>, in ArgumentCaptor()
DCSTest.kt104 open class FromS<Type>(val value: Type) class
535 lnc: FromS<LocalNetworkConfig>? = null, in waitForIdle()
536 score: FromS<NetworkScore> = defaultScore(), in waitForIdle()
DCSTestHelpers.kt83 internal fun defaultScore() = FromS(NetworkScore.Builder().build()) in <lambda>()