HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 251 - 275 of 2266) sorted by null

<<11121314151617181920>>

  /external/jmonkeyengine/engine/src/desktop/com/jme3/texture/plugins/
AWTLoader.java 5 * Redistribution and use in source and binary forms, with or without
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
109 case BufferedImage.TYPE_4BYTE_ABGR: // most common in PNG images w/ alpha
117 case BufferedImage.TYPE_3BYTE_BGR: // most common in JPEG images
186 public Image load(InputStream in, boolean flipY) throws IOException{
188 BufferedImage img = ImageIO.read(in);
198 InputStream in = null; local
    [all...]
  /external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/
SavableSerializer.java 5 * Redistribution and use in source and binary forms, with or without
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
106 BufferInputStream in = new BufferInputStream(data); local
107 Savable s = importer.load(in);
108 in.close();
  /external/jmonkeyengine/engine/src/test/jme3test/awt/
AppHarness.java 5 * Redistribution and use in source and binary forms, with or without
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
67 InputStream in = appCfg.openStream(); local
68 settings.load(in);
69 in.close();
  /external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/
PhoneNumberToTimeZonesMapper.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
65 ObjectInputStream in = null; local
68 in = new ObjectInputStream(source);
69 map.readExternal(in);
73 close(in);
78 private static void close(InputStream in) {
79 if (in != null) {
81 in.close();
90 * map data in a thread-safe way
    [all...]
  /external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
PrefixFileReader.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
39 // prefix mapping file is available in the file system, so that a file can be loaded when needed.
54 ObjectInputStream in = null; local
56 in = new ObjectInputStream(source);
57 mappingFileProvider.readExternal(in);
61 close(in);
80 ObjectInputStream in = null; local
82 in = new ObjectInputStream(source);
84 map.readExternal(in);
    [all...]
  /external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
MetadataManager.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
36 * additional data files such as PhoneNumberAlternateFormats, but in the future it is envisaged it
64 private static void close(InputStream in) {
65 if (in != null) {
67 in.close();
77 ObjectInputStream in = null; local
79 in = new ObjectInputStream(source);
81 alternateFormats.readExternal(in);
88 close(in);
107 ObjectInputStream in = null; local
    [all...]
  /external/mockito/src/org/mockito/internal/configuration/
ClassPathLoader.java 21 * Loads configuration or extension points available in the classpath.
44 * <br>Suppose you wrote an extension to create mocks with some <em>Awesome</em> library, in order to tell
45 * Mockito to use it you need to put in your classpath
48 * <li>A file named <code>org.mockito.plugins.MockMaker</code> in a folder named
94 * {@link MockMaker} extension exists or is visible in the current classpath.</p>
153 InputStream in = null; local
155 in = resource.openStream();
156 for (String line : readerToLines(new InputStreamReader(in, "UTF-8"))) {
166 closeQuietly(in);
190 private static void closeQuietly(InputStream in) {
    [all...]
  /external/okhttp/okio/okio/src/test/java/okio/
RealBufferedSourceTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
39 InputStream in = new RealBufferedSource(source).inputStream(); local
40 assertEquals(0, in.available());
44 assertEquals('a', in.read());
45 assertEquals(Segment.SIZE - 1, in.available());
50 assertEquals(Segment.SIZE - 1, in.read(data, 0, data.length));
55 assertEquals('b', in.read());
56 assertEquals(1, in.available());
60 assertEquals('c', in.read())
71 InputStream in = source.inputStream(); local
    [all...]
  /external/vogar/src/vogar/monitor/
HostMonitor.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
58 InputStream in = new BufferedInputStream(socket.getInputStream()); local
59 if (checkStream(in)) {
61 return followStream(in);
70 + port + " failed; retrying in 1s");
85 private boolean checkStream(InputStream in) throws IOException {
86 in.mark(1);
87 if (in.read() == -1) {
90 in.reset()
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
SSLSocketBenchmark.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
85 InputStream in = s.getInputStream(); local
87 int n = in.read(buffer);
92 in.close();
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
AttributedCharacterIteratorAttributeTest.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
73 ObjectInputStream in = null; local
93 in = new ObjectInputStream(new ByteArrayInputStream(bytes
97 dattribute2 = (AttributedCharacterIterator.Attribute) in.readObject();
111 if (in != null)
112 in.close();
  /libcore/luni/src/main/java/java/io/
BufferedReader.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
41 private Reader in; field in class:BufferedReader
44 * The characters that can be read and refilled in bulk. We maintain three
55 * value is in the range {@code [0...pos]}. If the mark is {@code -1}, the
74 * readLine returns a line as soon as it sees '\n' or '\r'. In the latter
83 * We also need to keep the 'lastWasCR' state for the mark position, in case
89 * Constructs a new {@code BufferedReader}, providing {@code in} with a buffer
92 * @param in the {@code Reader} the buffer reads from.
94 public BufferedReader(Reader in) {
    [all...]
InputStreamReader.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
39 private InputStream in; field in class:InputStreamReader
49 * {@code in}. This constructor sets the character converter to the encoding
50 * specified in the "file.encoding" property and falls back to ISO 8859_1
53 * @param in
56 public InputStreamReader(InputStream in) {
57 this(in, Charset.defaultCharset());
61 * Constructs a new InputStreamReader on the InputStream {@code in}. The
66 * @param in
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
ProcessBuilderTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
59 InputStream in = process.getInputStream(); local
65 in.read();
  /libcore/luni/src/test/java/libcore/java/text/
OldAttributedCharacterIteratorAttributeTest.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
158 ObjectInputStream in = null; local
169 in = new ObjectInputStream(new ByteArrayInputStream(bytes
173 attr2 = (AttributedCharacterIterator.Attribute) in.readObject();
187 if (in != null)
188 in.close();
  /libcore/luni/src/test/java/libcore/java/util/zip/
OldAndroidZipStreamTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
139 ZipInputStream in = new ZipInputStream(bytesIn); local
144 ZipEntry entry = in.getNextEntry();
149 while ((len = in.read(buf)) > 0) {
162 assertNull("should only be three entries", in.getNextEntry());
164 in.close();
  /libcore/luni/src/test/java/libcore/util/
ZoneInfoDBTest.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
48 // Given no tzdata files we can use, we should fall back to built-in "GMT".
58 RandomAccessFile in = new RandomAccessFile(TZDATA_IN_ROOT, "r"); local
59 byte[] content = new byte[(int) in.length()];
60 in.readFully(content);
67 in.close();
  /packages/apps/Email/provider_src/com/android/email/provider/
EmailMessageCursor.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
41 * To get around this, we load null values in those columns, and then in this wrapper we directly
44 * This will still potentially blow up if this cursor gets wrapped in a CrossProcessCursorWrapper
72 final InputStream in = cr.openInputStream(htmlUri); local
75 underlyingHtmlString = IOUtils.toString(in);
77 in.close();
88 final InputStream in = cr.openInputStream(textUri); local
91 underlyingTextString = IOUtils.toString(in);
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
Fingerprint.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
35 * Name of the digest algorithm we use in {@link java.security.MessageDigest}
83 DigestInputStream in = null; local
86 in = new DigestInputStream(stream, DIGESTER);
90 int n = in.read(bytes);
95 if (in != null) in.close();
98 return new Fingerprint(in.getMessageDigest().digest());
175 throw new IllegalArgumentException("illegal hex digit in " + streamId)
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
BlockingHttpClientTests.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
152 BufferedInputStream in = new BufferedInputStream(response); local
155 while ((read = in.read()) != -1) {
159 in.close();
163 fail("IOException in onSuccess");
  /packages/services/Telephony/src/com/android/phone/common/mail/internet/
BinaryTempFileBody.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
71 InputStream in = getInputStream(); local
74 IOUtils.copy(in, base64Out);
77 in.close();
81 public BinaryTempFileBodyInputStream(InputStream in) {
82 super(in);
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
WindowsLoader.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
35 BufferedReader in = null; local
47 in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
54 while ((line = in.readLine()) != null) {
83 if (in != null) {
84 in.close();
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
GetElementAt.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
30 private int[] in; field in class:GetElementAt
49 in = new int[size];
51 in[i] = random.nextInt(100);
60 gIn.copyFrom(in);
69 assertEquals("idx = " + k, in[k], out[k]);
81 gIn.copyFrom(in);
90 assertEquals("idx = " + k, in[k], out[k]);
  /development/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/
HelloCompute.java 5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
45 ImageView in = (ImageView) findViewById(R.id.displayin); local
46 in.setImageBitmap(mBitmapIn);
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
ExplicitTest.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
176 DerInputStream in = new DerInputStream((byte[]) taggedType[i][1]); local
178 ((ASN1Type) taggedType[i][2]).decode(in));

Completed in 363 milliseconds

<<11121314151617181920>>