- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 94 for mutableListOf (0.09 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CertificateChainCleanerTest.kt
} } /** Returns a chain starting at the leaf certificate and progressing to the root. */ private fun chainOfLength(length: Int): List<HeldCertificate> { val result = mutableListOf<HeldCertificate>() for (i in 1..length) { result.add( 0, HeldCertificate .Builder() .signedBy(if (result.isNotEmpty()) result[0] else null)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 9.5K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 14:16:22 GMT 2025 - 9.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
body = SlowRequestBody, ), ) call.execute().use { response -> assertThat(response.body.string()).isEqualTo("abc") } val expectedEvents = mutableListOf<KClass<out CallEvent>>() // Start out with standard events... expectedEvents += CallStart::class expectedEvents += ProxySelectStart::class expectedEvents += ProxySelectEnd::classCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 11:54:15 GMT 2026 - 10.7K bytes - Click Count (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt
* 0031 2044 0034). * * All other data is ignored. */ fun BufferedSource.readPlainTextIdnaMappingTable(): SimpleIdnaMappingTable { val mappedTo = Buffer() val result = mutableListOf<Mapping>() while (!exhausted()) { // Skip comment and empty lines. when (select(optionsDelimiter)) { DELIMITER_HASH -> { skipRestOfLine() continue }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 6.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt
internal val key: String, ) { /** Lengths of this entry's files. */ internal val lengths: LongArray = LongArray(valueCount) internal val cleanFiles = mutableListOf<Path>() internal val dirtyFiles = mutableListOf<Path>() /** True if this entry has ever been published. */ internal var readable: Boolean = falseCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 34.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt
assertThat(c1.calls).isEmpty() // Can't allocate once a leak has been detected. assertThat(c1.noNewExchanges).isTrue() } @Test fun interruptStopsThread() { val taskRunnerThreads = mutableListOf<Thread>() val taskRunner = TaskRunner( RealBackend { runnable -> Thread(runnable, "interruptStopsThread TaskRunner") .also { taskRunnerThreads += it } },
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 8.2K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
* configured for testing. */ class OkHttpClientTestRule : BeforeEachCallback, AfterEachCallback { private val clientEventsList = mutableListOf<String>() private var testClient: OkHttpClient? = null private var uncaughtException: Throwable? = null private lateinit var testName: StringCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt
call2.execute().use { assertEquals(".", it.body.string()) } val events2 = eventRecorder.eventSequence.filter { isConnectionEvent(it) }.map { it.name } val expectedEvents2 = mutableListOf<String>().apply { add("CallStart") if (connectionType != H2) { addAll(listOf("ConnectStart", "ConnectEnd")) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 9.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt
constructor( boundary: String = UUID.randomUUID().toString(), ) { private val boundary: ByteString = boundary.encodeUtf8() private var type = MIXED private val parts = mutableListOf<Part>() /** * Set the MIME type. Expected values for `type` are [MIXED] (the default), [ALTERNATIVE], * [DIGEST], [PARALLEL] and [FORM]. */ fun setType(type: MediaType) =
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 10.9K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt
) cleanUp(tmpTestFiles.keys) projectPathToLeftoverFiles[projectPath] = tmpTestFiles } // Third run: verify and throw exceptions val exceptions = mutableListOf<Exception>() projectStates .filter { projectPathToLeftoverFiles.containsKey(it.key) } .forEach { (projectPath: String, projectState: TestFilesCleanupProjectState) -> try {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Feb 11 11:05:07 GMT 2026 - 14.3K bytes - Click Count (1)