Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 26 for mutableListOf (0.07 seconds)

  1. okhttp/src/jvmTest/kotlin/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()) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 23K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

      private var runCallCount = 0
    
      /** Queues with tasks that are currently executing their [TaskQueue.activeTask]. */
      private val busyQueues = mutableListOf<TaskQueue>()
    
      /** Queues not in [busyQueues] that have non-empty [TaskQueue.futureTasks]. */
      private val readyQueues = mutableListOf<TaskQueue>()
    
      private val runnable: Runnable =
        object : Runnable {
          override fun run() {
            var task: Task =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 11:30:11 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

            .build()
        assertEquals(
          listOf(Protocol.HTTP_1_1),
          client.protocols,
        )
      }
    
      @Test fun nullProtocolInList() {
        val protocols =
          mutableListOf(
            Protocol.HTTP_1_1,
            null,
          )
        assertFailsWith<IllegalArgumentException> {
          OkHttpClient
            .Builder()
            .protocols(protocols as List<Protocol>)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 13.4K bytes
    - Click Count (1)
  4. 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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  5. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/runtimes/CheckTargetRuntimes.kt

            val computedTargetRuntimes = computeTargetRuntimes(projects)
    
            requireNoOrphanProjects(projects, computedTargetRuntimes)
    
            val failures = mutableListOf<String>()
            val mutations = mutableListOf<Pair<File, String>>()
            projects.forEach { (path, info) ->
                val declaredComputed = info.details.computedRuntimes
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:40:18 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

      private var limit = -1L
    
      /** Type hints scoped to the call stack, manipulated with [withTypeHint]. */
      private val typeHintStack = mutableListOf<Any?>()
    
      /**
       * The type hint for the current object. Used to pick adapters based on other fields, such as
       * in extensions which have different types depending on their extension ID.
       */
      var typeHint: Any?
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

     * elements are in the same order as in this.
     */
    internal fun Array<String>.intersect(
      other: Array<String>,
      comparator: Comparator<in String>,
    ): Array<String> {
      val result = mutableListOf<String>()
      for (a in this) {
        for (b in other) {
          if (comparator.compare(a, b) == 0) {
            result.add(a)
            break
          }
        }
      }
      return result.toTypedArray()
    }
    
    /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

        public val settings: Settings
          get() = Settings().apply { merge(settings_) }
    
        public constructor() {
          this.inTunnel = false
          this.informationalResponses_ = mutableListOf()
          this.status = "HTTP/1.1 200 OK"
          this.bodyVar = null
          this.socketHandlerVar = null
          this.webSocketListenerVar = null
          this.headers_ =
            Headers
              .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  9. .teamcity/src/main/kotlin/projects/StageProject.kt

            docsTestProjects.forEach(this::subProject)
            docsTestTriggers = docsTestProjects.map { DocsTestTrigger(model, it) }
            docsTestTriggers.forEach(this::buildType)
    
            flakyTestQuarantineTriggers = mutableListOf()
            if (stage.stageName == StageName.READY_FOR_RELEASE) {
                listOf(Os.LINUX, Os.WINDOWS, Os.MACOS).forEach {
                    val flakyTestQuarantineProject = FlakyTestQuarantineProject(model, stage, it)
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 04:44:29 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

                hasBody = contentLength > 0L || HttpMethod.permitsRequestBody(request.method)
                requestBodySink.write(socket.source, contentLength)
              }
    
              chunked -> {
                chunkSizes = mutableListOf()
                hasBody = true
                while (true) {
                  val chunkSize =
                    socket.source
                      .readUtf8LineStrict()
                      .trim()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 40.3K bytes
    - Click Count (0)
Back to Top