Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for newInstance (0.25 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. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.ci-reporting.gradle.kts

        rootProject.plugins.apply(TestFilesCleanupRootPlugin::class.java)
        val globalExtension = rootProject.extensions.getByType<TestFilesCleanupBuildServiceRootExtension>()
    
        val projectState = objects.newInstance(TestFilesCleanupProjectState::class.java)
    
        globalExtension.projectStates.put(path, projectState)
        projectState.projectBuildDir = layout.buildDirectory
        projectState.projectPath = path
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Jul 11 06:57:51 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt

                updateProperties(latestKotlinVersions)
                updateCompatibilityDoc(latestKotlinVersions)
            }
    
        private
        fun fetchLatestKotlinVersions() =
            DocumentBuilderFactory.newInstance().fetchFirstAndLatestsOfEachMinor(
                minimumSupported.get(),
                "https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/maven-metadata.xml"
            )
    
        private
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 26 13:50:17 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  5. 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)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateAgpVersions.kt

        data class FetchedVersions(val latests: List<String>, val nightlyBuildId: String, val nightlyVersion: String)
    
        private
        fun fetchLatestAgpVersions(): FetchedVersions {
            val dbf = DocumentBuilderFactory.newInstance()
            val latests = dbf.fetchLatests(
                minimumSupportedMinor.get(),
                "https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/maven-metadata.xml"
            )
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Jun 02 09:17:07 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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