/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
TextBody.java | 26 import java.io.InputStream; 51 * Returns an InputStream that reads this body's text in UTF-8 format. 53 public InputStream getInputStream() throws MessagingException {
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
RecognizerLogger.java | 33 import java.io.InputStream; 209 * InputStream wrapper which will log the contents to a WAV file. 210 * @param inputStream 214 public InputStream logInputStream(final InputStream inputStream, final int sampleRate) { 217 return new InputStream() { 220 return inputStream.available(); 224 int rtn = inputStream.read(b, offset, length); 230 int rtn = inputStream.read(b) [all...] |
/cts/libs/util/src/android/provider/cts/ |
FileCopyHelper.java | 24 import java.io.InputStream; 63 InputStream source = mContext.getResources().openRawResource(resId); 71 InputStream source = mContext.getResources().openRawResource(resId); 76 private void copyFile(InputStream source, OutputStream target) throws IOException {
|
/cts/tests/tests/content/src/android/content/res/cts/ |
AssetFileDescriptor_AutoCloseOutputStreamTest.java | 71 FileInputStream inputStream = mAssetFileDes.createInputStream(); 73 assertEquals(FILE_DATA[i], inputStream.read()); 76 assertEquals(FILE_DATA[i], inputStream.read()); 78 assertEquals(FILE_END, inputStream.read());
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CertificateFactorySpiTest.java | 27 import java.io.InputStream; 258 public Certificate engineGenerateCertificate(InputStream inStream) 261 throw new CertificateException("InputStream null"); 266 public Collection engineGenerateCertificates(InputStream inStream) 269 throw new CertificateException("InputStream null"); 274 public CRL engineGenerateCRL(InputStream inStream) throws CRLException { 276 throw new CRLException("InputStream null"); 281 public Collection engineGenerateCRLs(InputStream inStream) 284 throw new CRLException("InputStream null");
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
LocalStreamForwarder.java | 8 import java.io.InputStream; 37 * @return An <code>InputStream</code> object. 40 public InputStream getInputStream() throws IOException 64 * be sent. Pending input (InputStream) can still be read. If the shutdown
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/ |
BlenderLoader.java | 181 BlenderInputStream inputStream = new BlenderInputStream(assetInfo.openStream(), assetInfo.getManager());
187 blenderContext.setBlenderVersion(inputStream.getVersionNumber());
189 blenderContext.setInputStream(inputStream);
193 blenderContext.putHelper(ArmatureHelper.class, new ArmatureHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
194 blenderContext.putHelper(TextureHelper.class, new TextureHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
195 blenderContext.putHelper(MeshHelper.class, new MeshHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
196 blenderContext.putHelper(ObjectHelper.class, new ObjectHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
197 blenderContext.putHelper(CurvesHelper.class, new CurvesHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
198 blenderContext.putHelper(LightHelper.class, new LightHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis()));
199 blenderContext.putHelper(CameraHelper.class, new CameraHelper(inputStream.getVersionNumber(), blenderKey.isFixUpAxis())); [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/asset/ |
AssetInfo.java | 35 import java.io.InputStream; 39 * a means to read the asset data through an InputStream. 67 * Implementations of this method should return an {@link InputStream} 75 public abstract InputStream openStream();
|
/libcore/benchmarks/src/benchmarks/ |
XmlParseBenchmark.java | 43 ByteArrayInputStream inputStream; 59 inputStream = new ByteArrayInputStream(xmlBytes); 60 inputStream.mark(xmlBytes.length); 88 inputStream.reset(); 90 saxParser.parse(inputStream, elementCounterSaxHandler); 107 inputStream.reset(); 108 Document document = documentBuilder.parse(inputStream); 137 inputStream.reset(); 139 xmlPullParser.setInput(inputStream, "UTF-8");
|
/libcore/luni/src/main/java/java/security/cert/ |
CertificateFactorySpi.java | 20 import java.io.InputStream; 50 public abstract Certificate engineGenerateCertificate(InputStream inStream) 64 engineGenerateCertificates(InputStream inStream) throws CertificateException; 76 public abstract CRL engineGenerateCRL(InputStream inStream) 90 engineGenerateCRLs(InputStream inStream) throws CRLException; 93 * Generates a {@code CertPath} from the provided {@code InputStream}. The 102 public CertPath engineGenerateCertPath(InputStream inStream) 109 * {@code inputStream}, assuming the given {@code encoding} from 117 public CertPath engineGenerateCertPath(InputStream inStream, String encoding)
|
/libcore/luni/src/main/java/java/util/zip/ |
DeflaterInputStream.java | 22 import java.io.InputStream; 27 * An {@code InputStream} filter to compress data. Callers read 46 * @param in the source {@code InputStream} 48 public DeflaterInputStream(InputStream in) { 57 * @param in the source {@code InputStream} 60 public DeflaterInputStream(InputStream in, Deflater deflater) { 69 * @param in the source {@code InputStream} 73 public DeflaterInputStream(InputStream in, Deflater deflater, int bufferSize) { 167 * {@link InputStream#available()}, and violates the <a
|
/libcore/luni/src/test/java/libcore/io/ |
StrictLineReaderTest.java | 24 import java.io.InputStream; 25 import java.io.InputStream; 35 InputStream refStream = createTestInputStream(); 64 private InputStream createTestInputStream() {
|
/libcore/luni/src/test/java/libcore/java/io/ |
FilterInputStreamNullSourceTest.java | 23 import java.io.InputStream; 49 InputStream in = new CipherInputStream(null, new NullCipher()); 105 private void assertReadsFailWithIoException(InputStream in) throws IOException { 121 private void assertReadsFailWithNullPointerException(InputStream in) throws IOException {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/templates/ |
TemplatedInputStream.java | 20 import java.io.InputStream; 26 public class TemplatedInputStream extends InputStream { 28 private final InputStream mIn; 34 public TemplatedInputStream(InputStream in, Map<String, String> map) {
|
/libcore/luni/src/main/java/java/io/ |
InputStreamReader.java | 41 private InputStream in; 50 * Constructs a new {@code InputStreamReader} on the {@link InputStream} 58 public InputStreamReader(InputStream in) { 63 * Constructs a new InputStreamReader on the InputStream {@code in}. The 69 * the InputStream from which to read characters. 77 public InputStreamReader(InputStream in, final String charsetName) 96 * Constructs a new InputStreamReader on the InputStream {@code in} and 100 * the source InputStream from which to read characters. 104 public InputStreamReader(InputStream in, CharsetDecoder dec) { 113 * Constructs a new InputStreamReader on the InputStream {@code in} an [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
CertificateFactory.java | 4 import java.io.InputStream; 45 private InputStream currentStream = null; 49 private InputStream currentCrlStream = null; 94 InputStream in) 115 InputStream in) 169 InputStream in) 231 InputStream inStream) 250 InputStream inStream) 321 InputStream inStream) 343 InputStream inStream [all...] |
/libcore/luni/src/main/java/java/sql/ |
PreparedStatement.java | 20 import java.io.InputStream; 147 * {@code InputStream}, which has a specified number of bytes. 151 * InputStream} until end-of-file is reached or the specified number of 158 * the ASCII {@code InputStream} carrying the data to which the 161 * the number of bytes in the {@code InputStream} to copy to the 166 public void setAsciiStream(int parameterIndex, InputStream theInputStream, 188 * binary {@code InputStream}, which has a specified number of bytes. 197 * the binary {@code InputStream} carrying the data to update the 200 * the number of bytes in the {@code InputStream} to copy to the 205 public void setBinaryStream(int parameterIndex, InputStream theInputStream [all...] |
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
ExternalStorageTest.java | 25 import java.io.InputStream; 40 final InputStream is = new FileInputStream(file);
|
/cts/tools/dex-tools/test/dex/reader/util/ |
JavaSource.java | 20 import java.io.InputStream; 53 public InputStream openInputStream() {
|
MemoryByteCode.java | 20 import java.io.InputStream; 53 public InputStream openInputStream() {
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
ResultReporter.java | 22 import java.io.InputStream; 45 InputStream input = new FileInputStream(reportFile);
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
TestPackageDefTest.java | 20 import java.io.InputStream; 36 InputStream getFileStream(File dir, String fileName) {
|
/developers/samples/android/connectivity/network/NetworkConnect/NetworkConnect/src/main/java/com/example/android/networkconnect/ |
MainActivity.java | 32 import java.io.InputStream; 119 InputStream stream = null; 137 * @return An InputStream retrieved from a successful HttpURLConnection. 140 private InputStream downloadUrl(String urlString) throws IOException { 150 InputStream stream = conn.getInputStream(); 155 /** Reads an InputStream and converts it to a String. 156 * @param stream InputStream containing HTML from targeted site. 162 private String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {
|
/development/tools/mkstubs/tests/data/ |
TestTemplateClass.java | 21 import java.io.InputStream; 30 public class TestTemplateClass<T extends InputStream, U> {
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
CheckedInputStreamTest.java | 22 import java.io.InputStream; 44 * @tests java.util.zip.CheckedInputStream#CheckedInputStream(java.io.InputStream, 48 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); 63 InputStream inEmp = new FileInputStream("empty.txt"); 72 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); 97 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); 113 InputStream checkInput = Support_Resources 130 InputStream checkInput = Support_Resources
|