Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 381 for listOf (0.05 sec)

  1. guava/src/com/google/common/reflect/TypeParameter.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Captures a free type variable that can be used in {@link TypeToken#where}. For example:
     *
     * {@snippet :
     * static <T> TypeToken<List<T>> listOf(Class<T> elementType) {
     *   return new TypeToken<List<T>>() {}
     *       .where(new TypeParameter<T>() {}, elementType);
     * }
     * }
     *
     * @author Ben Yu
     * @since 12.0
     */
    /*
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

      @IgnoreJRERequirement // This function is overridden to require API >= 24.
      open fun getHandshakeServerNames(sslSocket: SSLSocket): List<String> {
        val session = sslSocket.session as? ExtendedSSLSession ?: return listOf()
        return try {
          session.requestedServerNames.mapNotNull { (it as? SNIHostName)?.asciiName }
        } catch (uoe: UnsupportedOperationException) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

      companion object {
        /**
         * Reads all stories in the folders provided, asserts if no story found.
         */
        @JvmStatic
        protected fun createStories(interopTests: Array<String>): List<Any> {
          if (interopTests.isEmpty()) return listOf<Any>(Story.MISSING)
    
          val result = mutableListOf<Any>()
          for (interopTestName in interopTests) {
            val stories = HpackJsonUtil.readStories(interopTestName)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt

        chain: Array<out X509Certificate>,
        authType: String,
        host: String,
      ): List<Certificate> {
        if (host in insecureHosts) return listOf()
        try {
          val method =
            checkServerTrustedMethod
              ?: throw CertificateException("Failed to call checkServerTrusted")
          return method.invoke(delegate, chain, authType, host) as List<Certificate>
        } catch (e: InvocationTargetException) {
          throw e.targetException
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/RichReportScrapper.kt

        fun toText() =
            StringBuilder("Binary compatibility\n").apply {
                listOf("Errors" to errors, "Warnings" to warnings, "Information" to information, "Accepted" to accepted).forEach { (name, list) ->
                    if (list.isNotEmpty()) {
                        append("  $name (").append(list.size).append(")\n")
                        append(list.joinToString(separator = "\n    ", prefix = "    ", postfix = "\n"))
                    }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. .teamcity/src/main/kotlin/configurations/DocsTest.kt

                this,
                "docs:docsTest docs:checkSamples",
                os = os,
                arch = os.defaultArch,
                timeout = if (os == Os.WINDOWS) 90 else 60,
                extraParameters =
                    listOf(
                        buildScanTagParam(docsTestType.docsTestName),
                        parallelizationMethod.extraBuildParameters,
                        "-PenableConfigurationCacheForDocsTests=${docsTestType.ccEnabled}",
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Nov 18 02:29:43 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. android-test/src/test/kotlin/okhttp/android/test/ShadowDnsResolver.kt

    @Implements(DnsResolver::class)
    class ShadowDnsResolver {
      var responder: (Request) -> Unit = {
        it.callback.onAnswer(listOf(), 0)
      }
    
      data class Request(
        val network: Network?,
        val domain: String,
        val nsType: Int,
        val flags: Int,
        val callback: DnsResolver.Callback<List<InetAddress>>,
      )
    
      @Implementation
      fun query(
        network: Network?,
        domain: String,
        nsType: Int,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/util/UpdateWrapper.kt

            param("env.DEFAULT_BRANCH", "%teamcity.build.branch%")
            param("env.TRIGGERED_BY", "%teamcity.build.triggeredBy%")
        }
    
        if (!vcsBranch.isMaster) {
            listOf(FINAL_RELEASE_BUILD_CONFIGURATION_ID, RELEASE_CANDIDATE_BUILD_CONFIGURATION_ID).forEach {
                triggers {
                    finishBuildTrigger {
                        buildType =
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Jul 24 03:08:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt

      }
    
      /** Prepares the proxy servers to try. */
      private fun resetNextProxy(
        url: HttpUrl,
        proxy: Proxy?,
      ) {
        fun selectProxies(): List<Proxy> {
          // If the user specifies a proxy, try that and only that.
          if (proxy != null) return listOf(proxy)
    
          // If the URI lacks a host (as in "http://</"), don't call the ProxySelector.
          val uri = url.toUri()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 7.3K bytes
    - Viewed (2)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

          logFile = File("/tmp/key.log"),
          tlsVersions = tlsVersions,
          launch = launch,
        )
    
      val client =
        OkHttpClient
          .Builder()
          .connectionSpecs(listOf(connectionSpec))
          .eventListenerFactory(eventListenerFactory)
          .build()
    
      fun run() {
        // Launch wireshark in the background
        val process = eventListenerFactory.launchWireShark()
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top