- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 94 for mutableListOf (0.24 seconds)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt
sink: BufferedSink, ) { /** A stack of buffers that will be concatenated once we know the length of each. */ private val stack = mutableListOf(sink) /** Type hints scoped to the call stack, manipulated with [pushTypeHint] and [popTypeHint]. */ private val typeHintStack = mutableListOf<Any?>() /** * The type hint for the current object. Used to pick adapters based on other fields, such asCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 5.7K bytes - Click Count (0) -
build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/Builders.kt
private val settings: Settings, private val projectScope: ProjectScope = ProjectScope("platforms/$name", settings), ) : ArchitectureElementBuilder(name) { private val modules = mutableListOf<ArchitectureModuleBuilder>() private val uses = mutableListOf<PlatformBuilder>() fun subproject(projectName: String) { projectScope.subproject(projectName) } fun uses(platform: PlatformBuilder) {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jan 30 15:37:56 GMT 2026 - 3K bytes - Click Count (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
val resource = HpackJsonUtil::class.java.getResource("/hpack-test-case") ?: return arrayOf() val testCaseDirectory = File(resource.toURI()).toOkioPath() val result = mutableListOf<String>() for (path in fileSystem.list(testCaseDirectory)) { val story00 = path / "story_00.json" if (!fileSystem.exists(story00)) continue try { readStory(story00)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.3K bytes - Click Count (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) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 8.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/FormBody.kt
} return byteCount } class Builder @JvmOverloads constructor( private val charset: Charset? = null, ) { private val names = mutableListOf<String>() private val values = mutableListOf<String>() fun add( name: String, value: String, ) = apply { names += name.canonicalizeWithCharset(Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersKotlinTest.kt
assertThat(headers["c"]).isEqualTo("d") assertThat(headers["e"]).isNull() } @Test fun iteratorOperator() { val headers = headersOf("a", "b", "c", "d") val pairs = mutableListOf<Pair<String, String>>() for ((name, value) in headers) { pairs += name to value } assertThat(pairs).containsExactly("a" to "b", "c" to "d") } @Test fun builderGetOperator() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RecordingExecutor.kt
* been enqueued. */ internal class RecordingExecutor( private val dispatcherTest: DispatcherTest, ) : AbstractExecutorService() { private var shutdown: Boolean = false private val calls = mutableListOf<RealCall.AsyncCall>() override fun execute(command: Runnable) { if (shutdown) throw RejectedExecutionException() calls.add(command as RealCall.AsyncCall) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Oct 06 18:34:01 GMT 2025 - 2.2K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt
file.writeText(lines.joinToString("\n")) } } private fun extractDependencies(startLine: Int): List<String> { val dependencies = mutableListOf<String>() errorLogFile.useLines { lines -> lines.drop(startLine).forEach { line -> if (line.isBlank() || line.startsWith(">")) return@useLines
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 03 06:57:08 GMT 2025 - 6.2K bytes - Click Count (1) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt
} class Builder { private var heldCertificate: HeldCertificate? = null private var intermediates: Array<X509Certificate>? = null private val trustedCertificates = mutableListOf<X509Certificate>() private val insecureHosts = mutableListOf<String>() /** * Configure the certificate chain to use when being authenticated. The first certificate isCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 8.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/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} " +
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.4K bytes - Click Count (0)