/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);
|