- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 86 for mutableListOf (0.18 sec)
-
okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt
@Test fun executeScheduledEarlierReplacesRepeatedLater() { val task = object : Task("task") { val schedules = mutableListOf(50.µs) val delays = mutableListOf(200.µs, -1) override fun runOnce(): Long { log += "run@${taskFaker.nanoTime}" if (schedules.isNotEmpty()) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 29 00:33:04 UTC 2024 - 23K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt
// State for negotiating the next socket address to use. private var inetSocketAddresses = emptyList<InetSocketAddress>() // State for negotiating failed routes private val postponedRoutes = mutableListOf<Route>() init { resetNextProxy(address.url, address.proxy) } /** * Returns true if there's another set of routes to attempt. Every address has at least one route. */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Mar 06 17:33:38 UTC 2024 - 7.2K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/test/kotlin/okhttp3/internal/idn/MappingTablesTest.kt
Mapping(0x40080, 0x400ff, TYPE_DISALLOWED, ByteString.EMPTY), ) } @Test fun mergeAdjacentDeltaMappedRangesWithMultipleDeltas() { assertThat( mergeAdjacentDeltaMappedRanges( mutableListOf( InlineDelta(1, 5), InlineDelta(2, 5), InlineDelta(3, 5), MappedRange.External(4, "a".encodeUtf8()), ), ), ).containsExactly(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.3K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt
for (mapping in mappings) { require(!mapping.spansSections) val section = mapping.section val rangeStart = mapping.rangeStart val sectionList = result.getOrPut(section) { mutableListOf() } sectionList += when (mapping.type) { TYPE_MAPPED -> run { val deltaMapping = inlineDeltaOrNull(mapping) if (deltaMapping != null) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.2K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt
*/ data class Case( val seqno: Int = 0, val wire: ByteString? = null, val headers: List<Map<String, String>>, ) : Cloneable { val headersList: List<Header> get() { val result = mutableListOf<Header>() for (inputHeader in headers) { val (key, value) = inputHeader.entries.iterator().next() result.add(Header(key, value)) } return result }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Dec 23 10:26:25 UTC 2023 - 1.3K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.groovy-dsl-gradle-plugin.gradle.kts
encoding = "utf-8" forkOptions.jvmArgs?.add("-XX:+HeapDumpOnOutOfMemoryError") } options.apply { isFork = true encoding = "utf-8" compilerArgs = mutableListOf("-Xlint:-options", "-Xlint:-path") } } tasks.withType<Test>().configureEach { val testVersionProvider = javaLauncher.map { it.metadata.languageVersion }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Sep 30 15:18:07 UTC 2024 - 2.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt
for (codePoint in dataString.codePoints()) { assertThat(codePoint and 0x7f).isEqualTo(codePoint) } } // Confirm the sections are increasing. val rangesIndices = mutableListOf<Int>() val rangesOffsets = mutableListOf<Int>() for (i in 0 until compactTable.sections.length step 4) { rangesIndices += compactTable.sections.read14BitInt(i) rangesOffsets += compactTable.sections.read14BitInt(i + 2) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/RecordingAuthenticator.kt
class RecordingAuthenticator( private val authentication: PasswordAuthentication? = PasswordAuthentication( "username", "password".toCharArray(), ), ) : Authenticator() { val calls = mutableListOf<String>() override fun getPasswordAuthentication(): PasswordAuthentication? { calls.add( "host=$requestingHost port=$requestingPort site=${requestingSite.hostName} " +
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FallbackTestClientSocketFactory.kt
private class TlsFallbackScsvDisabledSSLSocket( socket: SSLSocket, ) : DelegatingSSLSocket(socket) { override fun setEnabledCipherSuites(suites: Array<String>) { val enabledCipherSuites = mutableListOf<String>() for (suite in suites) { if (suite != TLS_FALLBACK_SCSV) { enabledCipherSuites.add(suite) } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
class Builder { private var notBefore = -1L private var notAfter = -1L private var commonName: String? = null private var organizationalUnit: String? = null private val altNames = mutableListOf<String>() private var serialNumber: BigInteger? = null private var keyPair: KeyPair? = null private var signedBy: HeldCertificate? = null private var maxIntermediateCas = -1
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0)