/external/apache-harmony/support/src/test/java/tests/support/ |
Support_HttpServer.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 218 InputStream in = socket.getInputStream(); local 224 while (((line = readln(in)) != null) && (line.length() > 1)) { 227 // determine the resource requested in the first line 286 postTest(length, in); 291 in.close(); 366 // the URL was in the format: 446 private void postTest(int length, InputStream in) { 451 data.write(in.read()) [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/ |
DecodeTask.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 * decode is complete, even if the task is cancelled, the result is placed in the given cache. 122 InputStream in = null; local 130 in = reset(in); 131 if (in == null) { 169 in = new AutoCloseInputStream(orientationFd); 172 orientation = Exif.getOrientation(in, byteSize); 176 in.close() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
BufferedInputStreamTest.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 194 InputStream in = new InputStream() { local 221 final BufferedInputStream bufin = new BufferedInputStream(in); 260 InputStream in = new BufferedInputStream( local 262 in.skip(6); 263 in.mark(14); 264 in.read(new byte[14], 0, 14); 265 in.reset(); 266 assertTrue("Wrong bytes", in.read() == 6 && in.read() == 7) 325 InputStream in = new BufferedInputStream( local [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldJarURLConnectionTest.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 234 InputStream in = connection.getInputStream(); local 237 in.read(); 238 in.close();
|
/prebuilts/tools/common/m2/repository/org/sonatype/gshell/gshell-io/2.4/ |
gshell-io-2.4.jar | |
/art/runtime/ |
utf_test.cc | 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 159 // Unpaired (or incorrectly paired) surrogates in the middle of the input. 187 std::vector<uint16_t> in = prefix_in; local 188 in.insert(in.end(), test_in.begin(), test_in.end()); 189 in.insert(in.end(), suffix_in.begin(), suffix_in.end()); 193 AssertConversion(in, out);
|
/cts/apps/CtsVerifier/ |
Android.mk | 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 63 define java-files-in 75 $(call java-files-in, src/com/android/cts/verifier) \ 76 $(call java-files-in, src/com/android/cts/verifier/backup) \ 121 # turned off sensor power tests in initial L release 125 # Copy the necessary host-side scripts to include in the zip file:
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
LibraryDeviceInfo.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 = null; local 87 in = new FileInputStream(file); 88 return sha1(in); 90 close(in); 112 private static byte[] digest(InputStream in, String algorithm) 117 int read = in.read(buffer);
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
ServiceControlUtils.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 33 * Utility methods for enabling and disabling the services used in this package 62 InputStream in = new FileInputStream(fd.getFileDescriptor()); local 64 while (in.read(buffer) > 0); 108 * set, which they are in
|
/cts/tests/openglperf2/test/ |
MatrixTest.cpp | 5 * use this file except in compliance with the License. You may obtain a copy of 10 * Unless required by applicable law or agreed to in writing, software 138 // Position the eye in front of the origin. 231 float in[] = {2, 4, 6, 8}; local 240 Matrix::multiplyVector(out, m, in);
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
ProviderInfoTest.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 60 final XmlResourceParser in = info.loadXmlMetaData( local 63 assertNotNull(in); 65 IoUtils.closeQuietly(in);
|
/cts/tests/tests/media/src/android/media/cts/ |
TestMediaDataSource.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 29 * A MediaDataSource that reads from a byte array for use in tests. 45 InputStream in = afd.createInputStream(); local 51 numRead = in.read(data, writeIndex, size - writeIndex);
|
/cts/tests/tests/os/src/android/os/cts/ |
MemoryFileTest.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 72 InputStream in = mMemoryFile.getInputStream(); local 73 assertEquals(1, in.read()); 74 assertEquals(2, in.read()); 75 assertEquals(3, in.read()); 76 assertEquals(4, in.read());
|
/development/apps/Development/src/com/android/development/ |
LogViewer.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 78 final DataInputStream in; field in class:LogViewer.LogReader 86 this.in = new DataInputStream(this.socket.getInputStream()); 95 while (in.available() > 0) { 98 int length = in.readInt(); 100 in.readFully(bytes);
|
/development/ndk/platforms/android-21/include/linux/ |
netfilter.h | 72 struct in_addr in; member in union:nf_inet_addr
|
/development/samples/BackupRestore/src/com/example/android/backuprestore/ |
ExampleAgent.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 89 // may throw an IOException, but in that case something has gone 112 // If we decided that we do in fact need to write our dataset, go 134 // Finally, in all cases, we need to write the new state blob 147 DataInputStream in = new DataInputStream(instream); local 150 int stateVersion = in.readInt(); 155 // In this implementation, we recover by simply rewriting 163 int lastFilling = in.readInt(); 164 boolean lastMayo = in.readBoolean() 223 DataInputStream in = new DataInputStream(baStream); local [all...] |
MultiRecordExampleAgent.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 * stores each distinct piece of application data in a separate record within 42 // Key strings for each record in the backup set 65 // may throw an IOException, but in that case something has gone 88 DataInputStream in = new DataInputStream(instream); local 92 lastFilling = in.readInt(); 93 lastMayo = in.readBoolean(); 94 lastTomato = in.readBoolean(); 169 // In this implementation, we trust that we won't see any record key 176 DataInputStream in = new DataInputStream(instream); local [all...] |
/development/samples/training/network-usage/src/com/example/android/networkusage/ |
StackOverflowXmlParser.java | 5 * in compliance with the License. You may obtain a copy of the License at 9 * Unless required by applicable law or agreed to in writing, software distributed under the License 30 * where each list element represents a single entry (post) in the XML feed. 37 public List<Entry> parse(InputStream in) throws XmlPullParserException, IOException { 41 parser.setInput(in, null); 45 in.close(); 68 // This class represents a single entry (post) in the XML feed. 108 // Processes title tags in the feed. 116 // Processes link tags in the feed. 132 // Processes summary tags in the feed [all...] |
/device/asus/fugu/libaudio/ |
AudioHardwareInput.cpp | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 109 AudioStreamIn* in; local 111 in = new AudioStreamIn(*this); 112 if (in == NULL) { 117 *status = in->set(format, channelMask, sampleRate); 120 delete in; 124 mInputStreams.add(in); 126 return in; 129 void AudioHardwareInput::closeInputStream(AudioStreamIn* in) 146 AudioStreamIn* in = mInputStreams[0]; local [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ |
ClassUnloadDebuggee.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 196 private int loadClassData(InputStream in, byte[] raw, int size) throws IOException { 197 int len = in.read(raw); 200 in.close(); 212 * Internal class used in ClassUnloadTest
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/ |
ConstantPoolTest.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 101 BufferedInputStream in = new BufferedInputStream(new FileInputStream(debuggeeClass)); local 105 count = in.read(bytes,index,length); 110 printErrorAndFail(thisCommandName + "has error in reading target class file!"); 113 // Entry count is placed in byte 8 and byte 9 of class file
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
ChoiceTest.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 106 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local 107 assertEquals("Test case: " + i, testcases[i][0], choice.decode(in)); 206 public Object getDecodedObject(BerInputStream in) 209 assertEquals("choice1", 1, in.choiceIndex); 211 return in.content; 227 public Object getDecodedObject(BerInputStream in) 230 assertEquals("choice2", 0, in.choiceIndex); 232 return in.content [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
ChunkedInputStream.java | 12 * "License"); you may not use this file except in compliance 17 * Unless required by applicable law or agreed to in writing, 79 private SessionInputBuffer in; field in class:ChunkedInputStream 100 public ChunkedInputStream(final SessionInputBuffer in) { 102 if (in == null) { 105 this.in = in; 111 * <p> Returns all the data in a chunked stream in coalesced form. A chunk 136 return in.read() [all...] |
/external/boringssl/src/crypto/x509/ |
pkcs7.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 32 * input. If the input is in BER format, then |*der_bytes| will be set to a 40 CBS in, content_info, content_type, wrapped_signed_data, signed_data; local 43 /* The input may be in BER format. */ 49 CBS_init(&in, *der_bytes, der_len); 51 CBS_init(&in, CBS_data(cbs), CBS_len(cbs)); 55 if (!CBS_get_asn1(&in, &content_info, CBS_ASN1_SEQUENCE) | [all...] |
x_name.c | 10 * apply to all code found in this distribution, be it the RC4, RSA, 15 * Copyright remains Eric Young's, and as such any Copyright notices in 17 * If this package is used in a product, Eric Young should be given attribution 19 * This can be in the form of a textual message at program startup or 20 * in documentation (online or textual) provided with the package. 22 * Redistribution and use in source and binary forms, with or without 27 * 2. Redistributions in binary form must reproduce the above copyright 28 * notice, this list of conditions and the following disclaimer in the 43 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC 522 X509_NAME *in; local [all...] |