/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/ |
ClassFileVersionTest.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 84 DataInputStream in = new DataInputStream(new FileInputStream( local 86 int magic = in.readInt(); 90 expectedMinorVersion = in.readUnsignedShort(); 91 expectedMajorVersion = in.readUnsignedShort(); 92 in.close(); 94 printErrorAndFail(thisCommandName + "has error in reading target class file!");
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
SequenceTest.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 79 protected Object getDecodedObject(BerInputStream in) 81 Object[] values = (Object[]) in.content; 149 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local 151 .decode(in)); 178 protected Object getDecodedObject(BerInputStream in) 186 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local 187 in.setVerify(); 188 seqVerify.decode(in); [all...] |
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));
|
GeneralizedTimeTest.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 107 DerInputStream in = new DerInputStream( local 111 gtime.decode(in)); //decoded 116 DerInputStream in = new DerInputStream(new ByteArrayInputStream( local 120 gtime.decode(in)); //decoded
|
ImplicitTest.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 167 DerInputStream in = new DerInputStream((byte[]) taggedType[i][1]); local 169 ((ASN1Type) taggedType[i][2]).decode(in));
|
IntegerTest.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 93 DerInputStream in = new DerInputStream((byte[]) validTestcase[i][2]); local 96 (byte[]) asn1.decode(in))); // returned 101 DerInputStream in = new DerInputStream(new ByteArrayInputStream( local 105 (byte[]) asn1.decode(in))); //returned 126 // wrong content: is not encoded in minimum number of octets 128 // wrong content: is not encoded in minimum number of octets 133 DerInputStream in = new DerInputStream(invalid[i]); local 134 ASN1Integer.getInstance().decode(in); [all...] |
UTCTimeTest.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 99 DerInputStream in = new DerInputStream((byte[]) validUTCTimes[i][1]); local 102 utime.decode(in)); //decoded 107 DerInputStream in = new DerInputStream(new ByteArrayInputStream( local 111 utime.decode(in)); //decoded
|
/external/emma/core/java12/com/vladium/util/ |
Files.java | 43 BufferedReader in = null; local 46 in = new BufferedReader (new FileReader (atfile), 8 * 1024); // uses default encoding 49 for (String line; (line = in.readLine ()) != null; ) 59 if (in != null) try { in.close (); } catch (Exception ignore) {} 83 * Note that duplicate removal in classpaths affects ClassLoader.getResources(). 86 * necessary for reproducing its behavior in Sun-compatible JVMs. 292 * A slightly stricter version of File.createTempFile() in J2SDK 1.3: it requires 301 * guarantees do not hold if files are created in the same directory outside 311 * @return writeable temp file descriptor [incorporates 'parentDir' in its pathname [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ImmutableClassToInstanceMapTest.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 74 Map<Class<?>, Object> in = Collections.emptyMap(); local 75 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); 82 Map<Class<? extends Number>, Number> in = Maps.newHashMap(); local 83 in.put(Number.class, 0); 84 in.put(Double.class, Math.PI); 85 ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in); 116 Map<Class<?>, Object> in = Collections.emptyMap(); local 117 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in); 122 ImmutableMap<Class<? extends Number>, ? extends Number> in local [all...] |
/external/jarjar/src/main/com/tonicsystems/jarjar/util/ |
IoUtil.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 InputStream in = new FileInputStream(from); local 45 pipe(in, out, buf); 50 in.close(); 84 // treat them again and write them in output, wenn they not are empty directories
|
/external/libphonenumber/java/src/com/android/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/libphonenumber/java/src/com/android/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/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/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 35 InputStream in = new RealBufferedSource(source).inputStream(); local 36 assertEquals(0, in.available()); 40 assertEquals('a', in.read()); 41 assertEquals(Segment.SIZE - 1, in.available()); 46 assertEquals(Segment.SIZE - 1, in.read(data, 0, data.length)); 51 assertEquals('b', in.read()); 52 assertEquals(1, in.available()); 56 assertEquals('c', in.read()) 68 InputStream in = new RealBufferedSource(source).inputStream(); local [all...] |
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/ |
Crawler.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 96 InputStream in = connection.getInputStream(); local 98 in.close(); 103 Document document = Jsoup.parse(in, mediaType.charset(UTF_8).name(), url.toString()); 110 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-http/src/org/apache/http/impl/conn/ |
LoggingSessionInputBuffer.java | 12 * (the "License"); you may not use this file except in compliance with 17 * Unless required by applicable law or agreed to in writing, software 56 private final SessionInputBuffer in; field in class:LoggingSessionInputBuffer 63 * @param in The session input buffer. 66 public LoggingSessionInputBuffer(final SessionInputBuffer in, final Wire wire) { 68 this.in = in; 73 return this.in.isDataAvailable(timeout); 77 int l = this.in.read(b, off, len); 85 int l = this.in.read() [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
ContentLengthInputStream.java | 12 * "License"); you may not use this file except in compliance 17 * Unless required by applicable law or agreed to in writing, 94 private SessionInputBuffer in = null; field in class:ContentLengthInputStream 99 * @param in The session input buffer to wrap 103 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) { 105 if (in == null) { 111 this.in = in; 152 return this.in.read(); 179 int count = this.in.read(b, off, len) [all...] |
/external/chromium_org/base/json/ |
string_escape_unittest.cc | 3 // found in the LICENSE file. 47 std::string in = cases[0].to_escape; local 49 EscapeJSONString(in, false, &out); 54 EscapeJSONString(in, true, &out_quoted); 59 // now try with a NULL in the string 62 in = null_prepend + in; 66 EscapeJSONString(in, false, &out); 85 string16 in = WideToUTF16(cases[i].to_escape); local 88 EscapeJSONString(in, false, &out) 97 string16 in = WideToUTF16(cases[0].to_escape); local 166 std::string in = std::string(cases[i].to_escape); local [all...] |
/external/chromium_org/remoting/codec/ |
video_decoder_verbatim.cc | 3 // found in the LICENSE file. 32 const char* in = packet.data().data(); local 52 if (in + rect_row_size > packet.data().data() + packet.data().size()) { 56 memcpy(out, in, rect_row_size); 57 in += rect_row_size; 62 if (in != packet.data().data() + packet.data().size()) {
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
FEOffset.cpp | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 14 * This library is distributed in the hope that it will be useful, 80 FilterEffect* in = inputEffect(0); local 86 setIsAlphaImage(in->isAlphaImage()); 88 FloatRect drawingRegion = drawingRegionOfInputImage(in->absolutePaintRect()); 91 resultImage->context()->drawImageBuffer(in->asImageBuffer(), drawingRegion);
|
/external/chromium_org/third_party/boringssl/src/crypto/bytestring/ |
ber.c | 5 * copyright notice and this permission notice appear in all copies. 9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 12 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 25 /* cbs_find_ber walks an ASN.1 structure in |orig_in| and sets |*ber_found| 27 * |in| is not changed. It returns one on success (i.e. |*ber_found| was set) 30 CBS in; local 36 CBS_init(&in, CBS_data(orig_in), CBS_len(orig_in)); 39 while (CBS_len(&in) > 0) { 44 if (!CBS_get_any_asn1_element(&in, &contents, &tag, &header_len)) [all...] |
/external/chromium_org/third_party/skia/gm/rebaseline_server/ |
compare_to_expectations_test.py | 7 found in the LICENSE file. 11 TODO(epoger): Create a command to update the expected results (in 13 1. examine the results in self.output_dir_actual and make sure they are ok 28 import gm_json # must import results first, so that gm_json will be in sys.path namespace
|
/external/chromium_org/third_party/skia/tests/ |
ColorFilterTest.cpp | 5 * found in the LICENSE file. 48 // allow for no filter if we're in Dst mode (its a no op) 97 SkPMColor in, out; local 102 in = SkPackARGB32(i, i, i, i); 103 lf->filterSpan(&in, 1, &out); 112 in = SkPackARGB32(i, 0, 0, 0); 113 lf->filterSpan(&in, 1, &out); 119 in = SkPackARGB32(i, i, i / 2, i / 3); 120 lf->filterSpan(&in, 1, &out); 121 REPORTER_ASSERT(reporter, out != in); [all...] |