Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 296 for val2 (0.18 sec)

  1. okhttp/src/test/java/okhttp3/RequestTest.kt

    import okio.ByteString.Companion.encodeUtf8
    import org.junit.jupiter.api.Test
    
    class RequestTest {
      @Test
      fun constructor() {
        val url = "https://example.com/".toHttpUrl()
        val body = "hello".toRequestBody()
        val headers = headersOf("User-Agent", "RequestTest")
        val method = "PUT"
        val request =
          Request(
            url = url,
            headers = headers,
            method = method,
            body = body,
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

        val hasGetterName = hasGetGetterName || hasIsGetterName
        val hasSetterName = method.name.matches(propertySetterNameRegex)
        val paramCount = method.parameterTypes.size
        val returnsVoid = method.returnType.name == "void"
    
        val couldBeProperty =
            (hasGetterName && paramCount == 0 && !returnsVoid) || (hasSetterName && paramCount == 1 && returnsVoid)
    
        val couldBeExtensionProperty =
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 20 20:38:19 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

    class ConnectionPoolTest {
      private val routePlanner = FakeRoutePlanner()
      private val factory = routePlanner.factory
      private val taskFaker = routePlanner.taskFaker
      private val peer = MockHttp2Peer()
    
      /** The fake task runner prevents the cleanup runnable from being started.  */
      private val addressA = factory.newAddress("a")
      private val routeA1 = factory.newRoute(addressA)
      private val addressB = factory.newAddress("b")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      var testLogHandler = TestLogHandler(OkHttpClient::class.java)
      private lateinit var webServer: MockWebServer
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private val clientListener = WebSocketRecorder("client")
      private val serverListener = WebSocketRecorder("server")
      private val random = Random(0)
      private var client =
        clientTestRule.newClientBuilder()
          .writeTimeout(Duration.ofMillis(500))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

            val firBreakExpressions = mutableListOf<FirBreakExpression>()
            val firContinueExpressions = mutableListOf<FirContinueExpression>()
    
            private val firReturnTargets = mutableSetOf<FirFunction>()
            private val firLoopJumpTargets = mutableSetOf<FirLoop>()
    
            private val firFunctionDeclarations = mutableSetOf<FirFunction>()
            private val firLoopStatements = mutableSetOf<FirLoop>()
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 16 06:40:43 GMT 2024
    - 22.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

        static void writeInt2( int val, byte[] dst, int dstIndex ) {
            dst[dstIndex++] = (byte)(( val >> 8 ) & 0xFF );
            dst[dstIndex] = (byte)( val & 0xFF );
        }
        static void writeInt4( int val, byte[] dst, int dstIndex ) {
            dst[dstIndex++] = (byte)(( val >> 24 ) & 0xFF );
            dst[dstIndex++] = (byte)(( val >> 16 ) & 0xFF );
            dst[dstIndex++] = (byte)(( val >> 8 ) & 0xFF );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 12.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

        val call = client.newCall(request)
        assertThat(call.timeout().timeoutNanos()).isEqualTo(0)
      }
    
      @Test
      fun configureClientDefault() {
        val request =
          Request.Builder()
            .url(server.url("/"))
            .build()
        val timeoutClient =
          client.newBuilder()
            .callTimeout(Duration.ofMillis(456))
            .build()
        val call = timeoutClient.newCall(request)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      private val clientEventsList = mutableListOf<String>()
      private var testClient: OkHttpClient? = null
      private var uncaughtException: Throwable? = null
      private lateinit var testName: String
      private var defaultUncaughtExceptionHandler: Thread.UncaughtExceptionHandler? = null
      private var taskQueuesWereIdle: Boolean = false
      val connectionListener = RecordingConnectionListener()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirMetadataCalculator.kt

    @OptIn(KtAnalysisNonPublicApi::class)
    internal class KtFirMetadataCalculator(override val analysisSession: KtFirAnalysisSession) : KtMetadataCalculator(),
        KtFirAnalysisSessionComponent {
        private val firSession: FirSession
            get() = rootModuleSession
    
        private val scopeSession: ScopeSession
            get() = firResolveSession.getScopeSessionFor(firSession)
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Mar 26 09:19:07 GMT 2024
    - 10K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                writer: DerWriter,
                value: Long,
              ) {
                val string = formatUtcTime(value)
                return writer.writeUtf8(string)
              }
            },
        )
    
      internal fun parseUtcTime(string: String): Long {
        val utc = TimeZone.getTimeZone("GMT")
        val dateFormat =
          SimpleDateFormat("yyMMddHHmmss'Z'").apply {
            timeZone = utc
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top