Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 261 for Mata (0.15 sec)

  1. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        }
        File file = out.getFile();
        assertNull(file);
    
        // Write data to go over the threshold
        if (chunk2 > 0) {
          if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
            assertThrows(IOException.class, () -> write(out, data, chunk1, chunk2, singleByte));
            return;
          }
          write(out, data, chunk1, chunk2, singleByte);
          file = out.getFile();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

        return new ByteSourceFactory() {
          @Override
          public ByteSource createSource(byte[] data) throws IOException {
            return factory.createSource(new String(data, Charsets.UTF_8)).asByteSource(Charsets.UTF_8);
          }
    
          @Override
          public byte[] getExpected(byte[] data) {
            return factory.getExpected(new String(data, Charsets.UTF_8)).getBytes(Charsets.UTF_8);
          }
    
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, counter.getCount());
    
        byte[] data = new byte[10];
        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 2, 5);
        written += 5;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        assertEquals(written, counter.getCount());
    
        byte[] data = new byte[10];
        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 2, 5);
        written += 5;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

        out.writeFloat(Float.intBitsToFloat(0xCAFEBABE));
        out.writeDouble(Double.longBitsToDouble(0xDEADBEEFCAFEBABEL));
    
        byte[] data = baos.toByteArray();
    
        /* Setup input streams */
        DataInput in = new DataInputStream(new ByteArrayInputStream(data));
    
        /* Read in various values NORMALLY */
        byte[] b = new byte[2];
        in.readFully(b);
        assertEquals(-100, b[0]);
        assertEquals(100, b[1]);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

       * data, and vertical if there is variance in the {@code y} data but not the {@code x} data.
       *
       * <p>This fit minimizes the root-mean-square error in {@code y} as a function of {@code x}. This
       * error is defined as the square root of the mean of the squares of the differences between the
       * actual {@code y} values of the data and the values predicted by the fit for the {@code x}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractIterator.java

     * interface easier to implement for certain types of data sources.
     *
     * <p>{@code Iterator} requires its implementations to support querying the end-of-data status
     * without changing the iterator's state, using the {@link #hasNext} method. But many data sources,
     * such as {@link java.io.Reader#read()}, do not expose this information; the only way to discover
     * whether there is any data left is by trying to retrieve it. These types of data sources are
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

        assertSip("abcdef", 0x2a6e77e733c7c05dL);
        assertSip("SipHash", 0x8325093242a96f60L);
      }
    
      // Test for common pitfall regarding sign extension.
      // For example: (long) data[i++] | (long) data[i++] << 8 | ...
      // If data[i] == (byte) 0x80, the first cast will sign-extend it to 0xffffffffffffff80,
      // masking the remaining seven bytes.
      // To test this, we give an input where bit 7 is not cleared. For example:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/CharSinkTester.java

        Writer writer = sink.openStream();
        try {
          writer.write(data);
        } finally {
          writer.close();
        }
    
        assertContainsExpectedString();
      }
    
      public void testOpenBufferedStream() throws IOException {
        Writer writer = sink.openBufferedStream();
        try {
          writer.write(data);
        } finally {
          writer.close();
        }
    
        assertContainsExpectedString();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        return new AbstractList<T>() {
          ArrayList<T> data = new ArrayList<>();
    
          @Override
          public int size() {
            return Math.max(0, data.size() + delta);
          }
    
          @Override
          public T get(int index) {
            return data.get(index);
          }
    
          @Override
          public T set(int index, T element) {
            return data.set(index, element);
          }
    
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
Back to top