Search Options

Results per page
Sort
Preferred Languages
Advance

Results 661 - 670 of 956 for builder_ (0.08 sec)

  1. misc/go_android_exec/main.go

    	"syscall"
    )
    
    func adbRun(args string) (int, error) {
    	// The exit code of adb is often wrong. In theory it was fixed in 2016
    	// (https://code.google.com/p/android/issues/detail?id=3254), but it's
    	// still broken on our builders in 2023. Instead, append the exitcode to
    	// the output and parse it from there.
    	filter, exitStr := newExitCodeFilter(os.Stdout)
    	args += "; echo -n " + exitStr + "$?"
    
    	cmd := adbCmd("exec-out", args)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/BaseEncoding.java

        public String toString() {
          StringBuilder builder = new StringBuilder("BaseEncoding.");
          builder.append(alphabet);
          if (8 % alphabet.bitsPerChar != 0) {
            if (paddingChar == null) {
              builder.append(".omitPadding()");
            } else {
              builder.append(".withPadChar('").append(paddingChar).append("')");
            }
          }
          return builder.toString();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt

      val platform = PlatformRule()
    
      @Test fun get(server: MockWebServer) {
        server.enqueue(MockResponse(body = "hello, OkHttp"))
    
        val client = OkHttpClient()
    
        val request =
          Request.Builder()
            .url(server.url("/"))
            .header("Accept", "text/plain")
            .build()
        val response = client.newCall(request).execute()
        assertThat(response.code).isEqualTo(200)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/AsynchronousGet.java

    import okhttp3.Response;
    import okhttp3.ResponseBody;
    
    public final class AsynchronousGet {
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build();
    
        client.newCall(request).enqueue(new Callback() {
          @Override public void onFailure(Call call, IOException e) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  5. api/maven-api-model/src/site/apt/index.apt

     The following are generated from this model:
    
       * {{{./apidocs/index.html}Java sources}} with <<<Builder>>> inner classes for immutable instances creation.
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Dec 31 16:32:07 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/UpgradeUtil.java

            try {
                final PutMappingRequestBuilder builder = indicesClient.preparePutMapping(index).setSource(source, XContentType.JSON);
                final AcknowledgedResponse pmResponse = builder.execute().actionGet();
                if (pmResponse.isAcknowledged()) {
                    return true;
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilderTest.groovy

    import gradlebuild.docs.dsl.docbook.model.PropertyDoc
    
    class ClassDocMethodsBuilderTest extends XmlSpecification {
        final JavadocConverter javadocConverter = Mock()
        final ClassDocMethodsBuilder builder = new ClassDocMethodsBuilder(javadocConverter, null)
    
        def buildsMethodsForClass() {
            ClassMetaData classMetaData = classMetaData()
            MethodMetaData methodA = method('a', classMetaData)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 8.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/net/InetAddressesTest.java

        ImmutableSet.Builder<String> builder = ImmutableSet.builder();
        Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
        assertTrue(interfaces.hasMoreElements());
        while (interfaces.hasMoreElements()) {
          NetworkInterface i = interfaces.nextElement();
          builder.add(i.getName()).add(String.valueOf(i.getIndex()));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/PerCallSettings.kt

    import java.util.concurrent.TimeUnit
    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class PerCallSettings {
      private val client = OkHttpClient()
    
      fun run() {
        val request =
          Request.Builder()
            .url("http://httpbin.org/delay/1") // This URL is served with a 1 second delay.
            .build()
    
        // Copy to customize OkHttp for this request.
        val client1 =
          client.newBuilder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt

      private val fileSystem = FakeFileSystem()
      val path = "test.json".toPath()
    
      fun run() {
        fileSystem.write(path) {
          writeUtf8("{}")
        }
    
        val request =
          Request.Builder()
            .url("https://httpbin.org/anything")
            .put(path.asRequestBody(fileSystem, MEDIA_TYPE_JSON))
            .build()
    
        client.newCall(request).execute().use { response ->
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top