/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...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
BCDHPublicKey.java | 76 throw new IllegalArgumentException("invalid info structure in DH public key"); 186 ObjectInputStream in) 189 in.defaultReadObject(); 191 this.dhSpec = new DHParameterSpec((BigInteger)in.readObject(), (BigInteger)in.readObject(), in.readInt());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
BCDSAPrivateKey.java | 77 * return the encoding format we produce in getEncoded(). 148 ObjectInputStream in) 151 in.defaultReadObject(); 153 this.dsaSpec = new DSAParameterSpec((BigInteger)in.readObject(), (BigInteger)in.readObject(), (BigInteger)in.readObject());
|
BCDSAPublicKey.java | 72 throw new IllegalArgumentException("invalid info structure in DSA public key"); 154 ObjectInputStream in) 157 in.defaultReadObject(); 159 this.dsaSpec = new DSAParameterSpec((BigInteger)in.readObject(), (BigInteger)in.readObject(), (BigInteger)in.readObject());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
BCRSAPrivateKey.java | 131 ObjectInputStream in) 134 in.defaultReadObject();
|
BCRSAPublicKey.java | 73 throw new IllegalArgumentException("invalid info structure in RSA public key"); 148 ObjectInputStream in) 151 in.defaultReadObject(); 155 algorithmIdentifier = AlgorithmIdentifier.getInstance(in.readObject());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
BaseCipherSpi.java | 180 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded); local 182 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); 190 throw new InvalidKeyException("algorithm " + in.getPrivateKeyAlgorithm().getAlgorithm() + " not supported");
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
monsoon.py | 3 # found in the LICENSE file. 18 import serial # pylint: disable=import-error,no-name-in-module namespace 19 import serial.tools.list_ports # pylint: disable=import-error,no-name-in-module namespace 58 for (port, desc, _) in serial.tools.list_ports.comports(): 64 # Put the import in here to avoid doing it on unsupported platforms. 68 logging.error('device %s is in use', port) 73 self.StopDataCollection() # Just in case. 131 for k in status.keys(): 201 for x in range(4, len(data) - 8, 8)] 213 for main, usb, _, voltage in data [all...] |
/external/chromium-trace/catapult/third_party/coverage/ |
setup.py | 13 from distutils.core import Extension # pylint: disable=no-name-in-module, import-error namespace 14 from distutils.command.build_ext import build_ext # pylint: disable=no-name-in-module, import-error namespace 15 from distutils import errors # pylint: disable=no-name-in-module namespace 42 # Execute the code in version.py. 52 elif version_info[3] in ['beta', 'candidate']: 139 if "'path'" in str(err): # works with both py 2/3 152 if '__pypy__' in sys.builtin_module_names:
|