Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 96) sorted by relevance

1234

/packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/src/
DVehicleNetworkAudioHelper.cpp101 void VehicleNetworkAudioHelper::notifyStreamStarted(int32_t stream) { in notifyStreamStarted() argument
106 int32_t streamNumber = streamFlagToStreamNumber(stream); in notifyStreamStarted()
108 ALOGE("notifyStreamStarted, wrong stream:0x%x", stream); in notifyStreamStarted()
125 void VehicleNetworkAudioHelper::notifyStreamStopped(int32_t stream) { in notifyStreamStopped() argument
130 int32_t streamNumber = streamFlagToStreamNumber(stream); in notifyStreamStopped()
132 ALOGE("notifyStreamStopped, wrong stream:0x%x", stream); in notifyStreamStopped()
158 int32_t stream) { in getStreamFocusState() argument
160 if ((mAllowedStreams & stream) == stream) { in getStreamFocusState()
163 int32_t streamNumber = streamFlagToStreamNumber(stream); in getStreamFocusState()
165 ALOGE("getStreamFocusState, wrong stream:0x%x", stream); in getStreamFocusState()
[all …]
Dvehicle-network-audio-helper-for-c.cpp62 int32_t stream) { in vehicle_network_audio_helper_notify_stream_started() argument
65 helperObj->notifyStreamStarted(stream); in vehicle_network_audio_helper_notify_stream_started()
69 int32_t stream) { in vehicle_network_audio_helper_notify_stream_stopped() argument
72 helperObj->notifyStreamStopped(stream); in vehicle_network_audio_helper_notify_stream_stopped()
76 vehicle_network_audio_helper_t* helper, int32_t stream) { in vehicle_network_audio_helper_get_stream_focus_state() argument
79 return helperObj->getStreamFocusState(stream); in vehicle_network_audio_helper_get_stream_focus_state()
83 int32_t stream, nsecs_t waitTimeNs) { in vehicle_network_audio_helper_wait_for_stream_focus() argument
86 if (helperObj->waitForStreamFocus(stream, waitTimeNs)) { in vehicle_network_audio_helper_wait_for_stream_focus()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DContentTypeParser.java129 public ContentTypeParser(java.io.InputStream stream) { in ContentTypeParser() argument
130 this(stream, null); in ContentTypeParser()
132 public ContentTypeParser(java.io.InputStream stream, String encoding) { in ContentTypeParser() argument
133 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in ContentTypeParser()
141 public void ReInit(java.io.InputStream stream) { in ReInit() argument
142 ReInit(stream, null); in ReInit()
144 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
145 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
153 public ContentTypeParser(java.io.Reader stream) { in ContentTypeParser() argument
154 jj_input_stream = new SimpleCharStream(stream, 1, 1); in ContentTypeParser()
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/field/contenttype/parser/
DContentTypeParser.java129 public ContentTypeParser(java.io.InputStream stream) { in ContentTypeParser() argument
130 this(stream, null); in ContentTypeParser()
132 public ContentTypeParser(java.io.InputStream stream, String encoding) { in ContentTypeParser() argument
133 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in ContentTypeParser()
141 public void ReInit(java.io.InputStream stream) { in ReInit() argument
142 ReInit(stream, null); in ReInit()
144 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
145 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
153 public ContentTypeParser(java.io.Reader stream) { in ContentTypeParser() argument
154 jj_input_stream = new SimpleCharStream(stream, 1, 1); in ContentTypeParser()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dstream.md3 …g JSON. Here we first show how to use streams provided. And then see how to create a custom stream.
13 `StringStream` is the most basic input stream. It represents a complete, read-only JSON stored in m…
37 …tringStream<UTF8<> >`, user may use another encodings to represent the character set of the stream.
41 `StringBuffer` is a simple output stream. It allocates a memory buffer for writing the whole JSON. …
91 …ng streams, `FileReadStream` is byte stream. It does not handle encodings. If the file is not UTF-…
97 `FileWriteStream` is buffered output stream. Its usage is very similar to `FileReadStream`.
128 …k). When reading from a byte stream, it is needed to detect or just consume the BOM if exists. Whe…
130 If the encoding of stream is known in compile-time, you may use `EncodedInputStream` and `EncodedOu…
132 … than file. For example, you may have a file in memory, or a custom byte stream, be wrapped in enc…
136 …`UTF16LE`, defined in `rapidjson/encodings.h`. The second one is the class of stream to be wrapped.
[all …]
Ddom.md78 // (2) Using the same Encoding for stream
105 …torial.md) uses (8) for normal parsing of string. The examples of [stream](doc/stream.md) uses the…
116stream, stop further processing the rest of stream. When this flag is used, parser will not genera…
121 The `SourceEncoding` parameter defines what encoding is in the stream. This can be differed to the …
123 And the `InputStream` is type of input stream.
148 The offset of error is defined as the character number from beginning of stream. Currently RapidJSO…
218 2. The source encoding in stream and target encoding in document must be the same.
226stream can be different from the encoding of the DOM. For example, the source stream contains a UT…
228 …riting a JSON from DOM to output stream, transcoding can also be used. An example is in [EncodedOu…
232 When the source encoding of stream is the same as encoding of DOM, by default, the parser will *not…
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
DManagedImageReader.java108 AllocatingImageStream stream = new AllocatingImageStream(capacity, in createUnallocatedStream() local
110 mLifetime.add(stream); in createUnallocatedStream()
112 return stream; in createUnallocatedStream()
150 AllocatingImageStream stream = createUnallocatedStream(capacity); in createPreallocatedStream() local
152 stream.allocate(); in createPreallocatedStream()
153 return stream; in createPreallocatedStream()
156 stream.close(); in createPreallocatedStream()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java428 public DateTimeParser(java.io.InputStream stream) { in DateTimeParser() argument
429 this(stream, null); in DateTimeParser()
431 public DateTimeParser(java.io.InputStream stream, String encoding) { in DateTimeParser() argument
432 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in DateTimeParser()
440 public void ReInit(java.io.InputStream stream) { in ReInit() argument
441 ReInit(stream, null); in ReInit()
443 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
444 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
452 public DateTimeParser(java.io.Reader stream) { in DateTimeParser() argument
453 jj_input_stream = new SimpleCharStream(stream, 1, 1); in DateTimeParser()
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java428 public DateTimeParser(java.io.InputStream stream) { in DateTimeParser() argument
429 this(stream, null); in DateTimeParser()
431 public DateTimeParser(java.io.InputStream stream, String encoding) { in DateTimeParser() argument
432 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in DateTimeParser()
440 public void ReInit(java.io.InputStream stream) { in ReInit() argument
441 ReInit(stream, null); in ReInit()
443 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
444 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
452 public DateTimeParser(java.io.Reader stream) { in DateTimeParser() argument
453 jj_input_stream = new SimpleCharStream(stream, 1, 1); in DateTimeParser()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DFileWriterWithEncoding.java230 OutputStream stream = null; in initWriter() local
233 stream = new FileOutputStream(file, append); in initWriter()
235 writer = new OutputStreamWriter(stream, (Charset)encoding); in initWriter()
237 writer = new OutputStreamWriter(stream, (CharsetEncoder)encoding); in initWriter()
239 writer = new OutputStreamWriter(stream, (String)encoding); in initWriter()
243 IOUtils.closeQuietly(stream); in initWriter()
250 IOUtils.closeQuietly(stream); in initWriter()
DLockableFileWriter.java232 OutputStream stream = null; in initWriter() local
238 stream = new FileOutputStream(file.getAbsolutePath(), append); in initWriter()
239 writer = new OutputStreamWriter(stream, encoding); in initWriter()
243 IOUtils.closeQuietly(stream); in initWriter()
251 IOUtils.closeQuietly(stream); in initWriter()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DQuotedPrintableInputStream.java40 private InputStream stream; field in QuotedPrintableInputStream
45 public QuotedPrintableInputStream(InputStream stream) { in QuotedPrintableInputStream() argument
46 this.stream = stream; in QuotedPrintableInputStream()
55 stream.close(); in close()
87 int i = stream.read(); in populatePushbackQueue()
/packages/services/Telephony/src/org/apache/james/mime4j/decoder/
DQuotedPrintableInputStream.java40 private InputStream stream; field in QuotedPrintableInputStream
45 public QuotedPrintableInputStream(InputStream stream) { in QuotedPrintableInputStream() argument
46 this.stream = stream; in QuotedPrintableInputStream()
55 stream.close(); in close()
87 int i = stream.read(); in populatePushbackQueue()
/packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/include/
Dvehicle-network-audio-helper-for-c.h65 int32_t stream);
71 int32_t stream);
87 vehicle_network_audio_helper_t* helper, int32_t stream);
96 int32_t stream, nsecs_t waitTimeNs);
DVehicleNetworkAudioHelper.h53 void notifyStreamStarted(int32_t stream);
54 void notifyStreamStopped(int32_t stream);
56 vehicle_network_audio_helper_focus_state getStreamFocusState(int32_t stream);
58 bool waitForStreamFocus(int32_t stream, nsecs_t waitTimeNs);
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ringtone/
DInCallTonePlayer.java111 toneGenerator = mToneGeneratorFactory.newInCallToneGenerator(info.stream, info.volume); in playOnBackgroundThread()
150 public final int stream; field in InCallTonePlayer.ToneGeneratorInfo
153 int stream) { in ToneGeneratorInfo() argument
157 this.stream = stream; in ToneGeneratorInfo()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java51 int stream; field in NotificationPlayer.Command
58 return "{ code=" + code + " looping=" + looping + " stream=" + stream in toString()
90 player.setAudioStreamType(mCmd.stream); in run()
97 audioManager.requestAudioFocus(null, mCmd.stream, in run()
278 public void play(final Uri uri, final boolean looping, final int stream, final float volume) { in play() argument
284 cmd.stream = stream; in play()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java71 BufferedInputStream stream = null; in testExtraOutput() local
89 stream = new BufferedInputStream(new FileInputStream(file)); in testExtraOutput()
90 stream.read(jpegData); in testExtraOutput()
92 if (stream != null) stream.close(); in testExtraOutput()
/packages/apps/Camera2/tests_camera/src/com/android/camera/functional/
DImageCaptureIntentTest.java71 BufferedInputStream stream = null; in testExtraOutput() local
89 stream = new BufferedInputStream(new FileInputStream(file)); in testExtraOutput()
90 stream.read(jpegData); in testExtraOutput()
92 if (stream != null) stream.close(); in testExtraOutput()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DHexDump.java60 OutputStream stream, int index) in dump() argument
69 if (stream == null) { in dump()
98 stream.write(buffer.toString().getBytes()); in dump()
99 stream.flush(); in dump()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java76 BufferedInputStream stream = null; in testExtraOutput() local
94 stream = new BufferedInputStream(new FileInputStream(file)); in testExtraOutput()
95 stream.read(jpegData); in testExtraOutput()
97 if (stream != null) stream.close(); in testExtraOutput()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DAddressListParser.java724 public AddressListParser(java.io.InputStream stream) { in AddressListParser() argument
725 this(stream, null); in AddressListParser()
727 public AddressListParser(java.io.InputStream stream, String encoding) { in AddressListParser() argument
728 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in AddressListParser()
737 public void ReInit(java.io.InputStream stream) { in ReInit() argument
738 ReInit(stream, null); in ReInit()
740 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
741 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
751 public AddressListParser(java.io.Reader stream) { in AddressListParser() argument
752 jj_input_stream = new SimpleCharStream(stream, 1, 1); in AddressListParser()
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/
DAddressListParser.java724 public AddressListParser(java.io.InputStream stream) { in AddressListParser() argument
725 this(stream, null); in AddressListParser()
727 public AddressListParser(java.io.InputStream stream, String encoding) { in AddressListParser() argument
728 …try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedE… in AddressListParser()
737 public void ReInit(java.io.InputStream stream) { in ReInit() argument
738 ReInit(stream, null); in ReInit()
740 public void ReInit(java.io.InputStream stream, String encoding) { in ReInit() argument
741 …try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException… in ReInit()
751 public AddressListParser(java.io.Reader stream) { in AddressListParser() argument
752 jj_input_stream = new SimpleCharStream(stream, 1, 1); in AddressListParser()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DRequestTemplate.java94 public RequestTemplate addStream(CaptureStream stream) { in addStream() argument
95 mCaptureStreams.add(stream); in addStream()
108 for (CaptureStream stream : mCaptureStreams) { in create()
109 builder.addStream(stream); in create()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DEmlMessageLoader.java55 final InputStream stream; in loadInBackground() local
57 stream = resolver.openInputStream(mEmlFileUri); in loadInBackground()
66 mimeMessage = new MimeMessage(stream); in loadInBackground()
76 stream.close(); in loadInBackground()

1234