Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for newInstance (0.19 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        val callbackHandler = ConsoleCallbackHandler
    
        val builderList: List<KeyStore.Builder> =
          listOf(
            KeyStore.Builder.newInstance("PKCS11", null, KeyStore.CallbackHandlerProtection(callbackHandler)),
            // Example if you want to combine multiple keystore types
            // KeyStore.Builder.newInstance("PKCS12", null, File("keystore.p12"), PasswordProtection("rosebud".toCharArray()))
          )
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (1)
  2. okhttp-android/src/test/kotlin/okhttp3/android/ShadowDnsResolver.kt

      ) {
        responder(Request(network, domain, nsType, flags, callback))
      }
    
      companion object {
        @Implementation
        @JvmStatic
        fun getInstance(): DnsResolver = Shadow.newInstance(DnsResolver::class.java, arrayOf(), arrayOf())
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 22 20:07:09 GMT 2024
    - 1.7K bytes
    - Viewed (1)
  3. native-image-tests/src/main/kotlin/okhttp3/RunTests.kt

        }.get(null)
      return Class.forName(
        "org.junit.platform.console.tasks.TreePrintingListener",
      ).declaredConstructors.first()
        .apply {
          isAccessible = true
        }
        .newInstance(PrintWriter(System.out), colorPalette, Theme.UNICODE) as TestExecutionListener
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  4. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioProvisioningPlugin.kt

            val unpackAndroidStudio = project.tasks.named("unpackAndroidStudio", Copy::class.java)
            val androidStudioInstallation = project.objects.newInstance<AndroidStudioInstallation>().apply {
                studioInstallLocation.fileProvider(unpackAndroidStudio.map { it.destinationDir })
            }
            return AndroidStudioSystemProperties(
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Fri Dec 22 13:46:27 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

         * percent-encoded in a path.
         *
         * See https://url.spec.whatwg.org/#percent-encoded-bytes
         */
        fun newInstance(): UrlComponentEncodingTester {
          return UrlComponentEncodingTester()
            .allAscii(Encoding.IDENTITY)
            .nonPrintableAscii(Encoding.PERCENT)
            .override(
              Encoding.SKIP,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  6. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

        if (executer == "embedded") {
            // Apply the instrumentation agent to the test process when running integration tests with embedded Gradle executer.
            jvmArgumentProviders.add(project.objects.newInstance<AgentsClasspathProvider>().apply {
                agentsClasspath.from(project.configurations["${testType.prefix}TestAgentsClasspath"])
            })
        }
    
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Mon Feb 12 13:19:06 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        UrlComponentEncodingTester.newInstance()
          .override(Encoding.IDENTITY, '?'.code, '`'.code)
          .override(Encoding.PERCENT, '\''.code)
          .override(Encoding.SKIP, '#'.code, '+'.code)
          .test(UrlComponentEncodingTester.Component.QUERY_VALUE)
      }
    
      @Test
      fun fragmentCharacters() {
        UrlComponentEncodingTester.newInstance()
          .override(
            Encoding.IDENTITY,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
Back to top