Searched defs:stream (Results 1 - 25 of 35) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/async/
H A DRefCountedBufferQueueController.java27 public RefCountedBufferQueueController(BufferQueueController<T> stream) { argument
28 mBuffer = new RefCountBase<BufferQueueController>(stream, 1);
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
H A DImapTempFileLiteral.java45 /* package */ ImapTempFileLiteral(FixedLengthInputStream stream) throws IOException { argument
46 mSize = stream.getLength();
54 IOUtils.copy(stream, out);
81 // Return 0 byte stream as a dummy...
/packages/apps/Email/provider_src/com/android/email/service/
H A DImapTempFileLiteral.java48 /* package */ ImapTempFileLiteral(FixedLengthInputStream stream) throws IOException { argument
49 mSize = stream.getLength();
57 IOUtils.copy(stream, out);
84 // Return 0 byte stream as a dummy...
/packages/apps/Gallery2/jni_jpegstream/src/
H A Dstream_wrapper.cpp40 bool StreamWrapper::init(JNIEnv *env, jobject stream) { argument
46 mStream = env->NewGlobalRef(stream);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DHexDump.java48 * @param stream the OutputStream to which the data is to be
53 * the data to stream
56 * @throws IllegalArgumentException if the output stream is null
60 OutputStream stream, int index)
69 if (stream == null) {
98 stream.write(buffer.toString().getBytes());
99 stream.flush();
59 dump(byte[] data, long offset, OutputStream stream, int index) argument
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
H A DQuotedPrintableInputStream.java31 * Performs Quoted-Printable decoding on an underlying stream.
40 private InputStream stream; field in class:QuotedPrintableInputStream
45 public QuotedPrintableInputStream(InputStream stream) { argument
46 this.stream = stream;
50 * Closes the underlying stream.
55 stream.close();
72 * Pulls bytes out of the underlying stream and places them in the
74 * underlying stream directly) to detect and filter out "transport
78 * @throws IOException Underlying stream thre
[all...]
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/
H A DImapTempFileLiteral.java45 /* package */ ImapTempFileLiteral(FixedLengthInputStream stream) throws IOException { argument
46 mSize = stream.getLength();
54 IOUtils.copy(stream, out);
81 // Return 0 byte stream as a dummy...
/packages/services/Telephony/src/org/apache/james/mime4j/decoder/
H A DQuotedPrintableInputStream.java31 * Performs Quoted-Printable decoding on an underlying stream.
40 private InputStream stream; field in class:QuotedPrintableInputStream
45 public QuotedPrintableInputStream(InputStream stream) { argument
46 this.stream = stream;
50 * Closes the underlying stream.
55 stream.close();
72 * Pulls bytes out of the underlying stream and places them in the
74 * underlying stream directly) to detect and filter out "transport
78 * @throws IOException Underlying stream thre
[all...]
/packages/apps/Camera2/src/com/android/camera/data/
H A DFilmstripItemUtils.java60 * @param is An input stream with the data of the bitmap.
80 * @param stream The input stream of the image.
90 public static Bitmap loadImageThumbnailFromStream(InputStream stream, int imageWidth, argument
130 Bitmap b = BitmapFactory.decodeStream(stream, null, opts);
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
H A DRequestTemplate.java92 * Attaches the given stream to all derived RequestBuilders.
94 public RequestTemplate addStream(CaptureStream stream) { argument
95 mCaptureStreams.add(stream);
108 for (CaptureStream stream : mCaptureStreams) {
109 builder.addStream(stream);
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DJarUtils.java109 public static void close(final Closeable stream) { argument
111 if (stream != null) {
112 stream.close();
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DFingerprint.java40 // Hard coded stream id length limit is 40-chars. Don't ask!
77 * Note that this will close() stream after calculating the digest.
81 public static Fingerprint fromInputStream(InputStream stream, long[] byteCount) argument
86 in = new DigestInputStream(stream, DIGESTER);
102 * Decodes a string stream id to a 128-bit fingerprint.
125 * @param streamIdList list of stream id's to be scanned
138 * Encodes a 128-bit fingerprint as a string stream id.
/packages/apps/Browser/src/com/android/browser/homepages/
H A DTemplate.java52 void write(OutputStream stream, EntityData params) throws IOException; argument
56 void writeValue(OutputStream stream, String key) throws IOException; argument
74 public void write(OutputStream stream, EntityData params) throws IOException { argument
75 stream.write(mValue);
89 public void write(OutputStream stream, EntityData params) throws IOException { argument
90 params.writeValue(stream, mKey);
106 public void write(OutputStream stream, EntityData params) throws IOException { argument
110 mSubTemplate.write(stream, iter);
159 public void writeValue(OutputStream stream, String key) throws IOException { argument
160 stream
226 write(OutputStream stream) argument
230 write(OutputStream stream, EntityData data) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/util/
H A DNotificationPlayer.java51 int stream; field in class:NotificationPlayer.Command
58 return "{ code=" + code + " looping=" + looping + " stream=" + stream
90 player.setAudioStreamType(mCmd.stream);
97 audioManager.requestAudioFocus(null, mCmd.stream,
272 * @param stream the AudioStream to use.
275 * the relevant stream type. A value of 1 is the maximum and means play at the system
278 public void play(final Uri uri, final boolean looping, final int stream, final float volume) { argument
284 cmd.stream = stream;
[all...]
/packages/apps/Settings/src/com/android/settings/notification/
H A DVolumeSeekBarPreference.java38 /** A slider preference that directly controls an audio stream volume (no dialog) **/
74 public void setStream(int stream) { argument
75 mStream = stream;
100 Log.w(TAG, "No stream found, not binding volumizer");
203 void onStreamValueChanged(int stream, int progress); argument
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java129 public ContentTypeParser(java.io.InputStream stream) { argument
130 this(stream, null);
132 public ContentTypeParser(java.io.InputStream stream, String encoding) { argument
133 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
141 public void ReInit(java.io.InputStream stream) { argument
142 ReInit(stream, null);
144 public void ReInit(java.io.InputStream stream, String encoding) { argument
145 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
153 public ContentTypeParser(java.io.Reader stream) { argument
154 jj_input_stream = new SimpleCharStream(stream,
162 ReInit(java.io.Reader stream) argument
[all...]
H A DContentTypeParserTokenManager.java635 public ContentTypeParserTokenManager(SimpleCharStream stream){ argument
638 input_stream = stream;
640 public ContentTypeParserTokenManager(SimpleCharStream stream, int lexState){ argument
641 this(stream);
644 public void ReInit(SimpleCharStream stream) argument
648 input_stream = stream;
658 public void ReInit(SimpleCharStream stream, int lexState) argument
660 ReInit(stream);
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java428 public DateTimeParser(java.io.InputStream stream) { argument
429 this(stream, null);
431 public DateTimeParser(java.io.InputStream stream, String encoding) { argument
432 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
440 public void ReInit(java.io.InputStream stream) { argument
441 ReInit(stream, null);
443 public void ReInit(java.io.InputStream stream, String encoding) { argument
444 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
452 public DateTimeParser(java.io.Reader stream) { argument
453 jj_input_stream = new SimpleCharStream(stream,
461 ReInit(java.io.Reader stream) argument
[all...]
H A DDateTimeParserTokenManager.java674 public DateTimeParserTokenManager(SimpleCharStream stream){ argument
677 input_stream = stream;
679 public DateTimeParserTokenManager(SimpleCharStream stream, int lexState){ argument
680 this(stream);
683 public void ReInit(SimpleCharStream stream) argument
687 input_stream = stream;
697 public void ReInit(SimpleCharStream stream, int lexState) argument
699 ReInit(stream);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictDecoderUtils.java237 * @param stream the OutputStream to write to.
241 static int writeString(final OutputStream stream, final String word, argument
249 stream.write((byte) codePoint);
251 stream.write((byte) (0xFF & (codePoint >> 16)));
252 stream.write((byte) (0xFF & (codePoint >> 8)));
253 stream.write((byte) (0xFF & codePoint));
257 stream.write(FormatSpec.PTNODE_CHARACTERS_TERMINATOR);
H A DBinaryDictEncoderUtils.java188 static void writeUIntToStream(final OutputStream stream, final int value, final int size) argument
192 stream.write((value >> 24) & 0xFF);
195 stream.write((value >> 16) & 0xFF);
198 stream.write((value >> 8) & 0xFF);
201 stream.write(value & 0xFF);
734 * Writes a file header to an output stream.
736 * @param destination the stream to write the file header to.
/packages/services/Telephony/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java129 public ContentTypeParser(java.io.InputStream stream) { argument
130 this(stream, null);
132 public ContentTypeParser(java.io.InputStream stream, String encoding) { argument
133 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
141 public void ReInit(java.io.InputStream stream) { argument
142 ReInit(stream, null);
144 public void ReInit(java.io.InputStream stream, String encoding) { argument
145 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
153 public ContentTypeParser(java.io.Reader stream) { argument
154 jj_input_stream = new SimpleCharStream(stream,
162 ReInit(java.io.Reader stream) argument
[all...]
H A DContentTypeParserTokenManager.java635 public ContentTypeParserTokenManager(SimpleCharStream stream){ argument
638 input_stream = stream;
640 public ContentTypeParserTokenManager(SimpleCharStream stream, int lexState){ argument
641 this(stream);
644 public void ReInit(SimpleCharStream stream) argument
648 input_stream = stream;
658 public void ReInit(SimpleCharStream stream, int lexState) argument
660 ReInit(stream);
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java428 public DateTimeParser(java.io.InputStream stream) { argument
429 this(stream, null);
431 public DateTimeParser(java.io.InputStream stream, String encoding) { argument
432 try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
440 public void ReInit(java.io.InputStream stream) { argument
441 ReInit(stream, null);
443 public void ReInit(java.io.InputStream stream, String encoding) { argument
444 try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
452 public DateTimeParser(java.io.Reader stream) { argument
453 jj_input_stream = new SimpleCharStream(stream,
461 ReInit(java.io.Reader stream) argument
[all...]
H A DDateTimeParserTokenManager.java674 public DateTimeParserTokenManager(SimpleCharStream stream){ argument
677 input_stream = stream;
679 public DateTimeParserTokenManager(SimpleCharStream stream, int lexState){ argument
680 this(stream);
683 public void ReInit(SimpleCharStream stream) argument
687 input_stream = stream;
697 public void ReInit(SimpleCharStream stream, int lexState) argument
699 ReInit(stream);

Completed in 775 milliseconds

12