Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 90 for mutableListOf (0.06 sec)

  1. 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)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. 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(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  5. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

            projectPathToExecutedTaskPaths.computeIfAbsent(taskPathToProjectPath(taskPath)) { mutableListOf() }.add(taskPath)
        }
    
        private
        fun addFailedTaskPath(taskPath: String) {
            projectPathToFailedTaskPaths.computeIfAbsent(taskPathToProjectPath(taskPath)) { mutableListOf() }.add(taskPath)
        }
    
        private
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Nov 05 11:43:49 UTC 2025
    - 12.5K bytes
    - Viewed (1)
  6. 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
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Mon Mar 03 06:57:08 UTC 2025
    - 6.2K bytes
    - Viewed (1)
  7. 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() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. 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)
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Oct 06 18:34:01 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioSystemProperties.kt

            if (autoDownloadAndroidStudio) {
                studioInstallation
            } else {
                null
            }
        }
    
        override fun asArguments(): Iterable<String> {
            val systemProperties = mutableListOf<String>()
    
            systemProperties.add(getStudioHome())
    
            if (runAndroidStudioInHeadlessMode) {
                systemProperties.add("-Dstudio.tests.headless=true")
            }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Feb 20 09:51:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt

    import java.io.IOException
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    
    class FakeProxySelector : ProxySelector() {
      val proxies: MutableList<Proxy> = mutableListOf()
    
      fun addProxy(proxy: Proxy): FakeProxySelector {
        proxies.add(proxy)
        return this
      }
    
      override fun select(uri: URI): List<Proxy> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top