Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 329 for initializer (0.07 seconds)

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformInitializer.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform
    
    import android.content.Context
    import androidx.startup.Initializer
    
    /**
     * Androidx Startup initializer to ensure that the AndroidPlatform has access to the application context.
     */
    class PlatformInitializer : Initializer<Platform> {
      override fun create(context: Context): Platform {
        PlatformRegistry.applicationContext = context
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Dec 31 14:50:53 GMT 2024
    - 1K bytes
    - Click Count (1)
  2. okhttp/src/androidMain/kotlin/okhttp3/OkHttp.android.kt

      /**
       * Configure the ApplicationContext. Not needed unless the AndroidX Startup [Initializer] is disabled, or running
       * a robolectric test.
       *
       * The functionality that will fail without a valid Context is primarily Cookies and URL Domain handling, but
       * may expand in the future.
       */
      fun initialize(applicationContext: Context) {
        if (PlatformRegistry.applicationContext == null) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  3. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/unsafeLazy.kt

    package org.gradle.kotlin.dsl.internal.sharedruntime.support
    
    
    /**
     * Thread unsafe version of [lazy].
     *
     * @see LazyThreadSafetyMode.NONE
     */
    internal
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Sun Oct 01 11:18:48 GMT 2023
    - 867 bytes
    - Click Count (0)
  4. dbflute_fess/dfprop/littleAdjustmentMap.dfprop

        # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        # o extendedDBFluteInitializerClass: (NotRequired - Default null)
        #  If you want to extend the embedded DBFlute initializer,
        #  specify the class name of your original initializer
        #  that extends the embedded one.
        #  *Basically for fixed DBFluteConfig settings
        #
        #; extendedDBFluteInitializerClass = com.example.ExtendedDBFluteInitializer
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Jul 25 06:04:16 GMT 2015
    - 8.8K bytes
    - Click Count (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/publicsuffix/AssetPublicSuffixList.kt

              "Platform applicationContext not initialized. " +
                "Possibly running Android unit test without Robolectric. " +
                "Android tests should run with Robolectric " +
                "and call OkHttp.initialize before test",
            )
          } else {
            throw IOException(
              "Platform applicationContext not initialized. " +
                "Startup Initializer possibly disabled, " +
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jul 28 07:33:49 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt

          hasMessage("Unable to load PublicSuffixDatabase.list resource.")
          cause().isNotNull().all {
            hasMessage(
              "Platform applicationContext not initialized. " +
                "Startup Initializer possibly disabled, " +
                "call OkHttp.initialize before test.",
            )
            hasClass<IOException>()
          }
        }
      }
    
      companion object {
        @AfterClass
        @JvmStatic
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Aug 30 16:25:39 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

      return FileSpec
        .builder(packageName, "IdnaMappingTableInstance")
        .addProperty(
          PropertySpec
            .builder("IDNA_MAPPING_TABLE", idnaMappingTable)
            .addModifiers(KModifier.INTERNAL)
            .initializer(
              """
              |%T(⇥
              |sections = "%L",
              |ranges = "%L",
              |mappings = "%L",
              |⇤)
              """.trimMargin(),
              idnaMappingTable,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.8K bytes
    - Click Count (1)
  8. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

      }
    
      /**
       * Creates a new ArrayBasedUnicodeEscaper instance with the given replacement map and specified
       * safe range. If {@code safeMax < safeMin} then no code points are considered safe. This
       * initializer is useful when explicit instances of ArrayBasedEscaperMap are used to allow the
       * sharing of large replacement mappings.
       *
       * <p>If a code point has no mapped replacement then it is checked against the safe range. If it
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Feb 13 15:45:16 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

     *
     * <p>On different platforms AggregateFutureState uses different strategies for its core
     * synchronization primitives. The strategies are all implemented as subtypes of AtomicHelper and
     * the strategy is selected in the static initializer of AggregateFutureState. This is convenient
     * and performant but introduces some testing difficulties. This test exercises the two fallback
     * strategies.
     *
     * <ul>
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  10. README.md

    
    Requirements
    ------------
    
    OkHttp works on Android 5.0+ (API level 21+) and Java 8+.
    
    On Android, OkHttp uses [AndroidX Startup][androidx_startup]. If you disable the initializer in the manifest,
    then apps are responsible for calling `OkHttp.initialize(applicationContext)` in `Application.onCreate`.
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Oct 30 21:39:59 GMT 2025
    - 9.5K bytes
    - Click Count (0)
Back to Top