Searched defs:stream (Results 1 - 25 of 90) sorted by last modified time

1234

/frameworks/media/libvideoeditor/vss/common/inc/
H A DM4SYS_AccessUnit.h63 M4SYS_StreamDescription* stream ; member in struct:__anon1463
/frameworks/base/media/tests/omxjpegdecoder/
H A DStreamSource.cpp23 StreamSource::StreamSource(SkStream *stream) argument
24 : mStream(stream) {
25 CHECK(stream != NULL);
26 mSize = stream->getLength();
H A Djpeg_decoder_bench.cpp35 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode);
52 int testDecodeBounds(SkImageDecoder* decoder, SkStream* stream, argument
58 // Decode the input stream and then use the bitmap.
59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) {
69 int testDecodePixels(SkImageDecoder* decoder, SkStream* stream, argument
75 // Decode the input stream and then use the bitmap.
76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) {
88 SkStream* stream = new SkFILEStream(filename); local
90 testDecodePixels(decoder, stream, bitmap);
94 stream
[all...]
H A Domx_jpeg_decoder.cpp99 bool OmxJpegImageDecoder::onDecode(SkStream* stream, argument
101 sp<MediaSource> source = prepareMediaSource(stream);
124 JPEGSource* OmxJpegImageDecoder::prepareMediaSource(SkStream* stream) { argument
126 sp<DataSource> dataSource = new StreamSource(stream);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindowManager.java2615 void handleVolumeKey(int stream, int keycode) { argument
2626 audioService.adjustStreamVolume(stream,
/frameworks/base/services/audioflinger/
H A DAudioFlinger.cpp398 LOGE("invalid stream type");
652 status_t AudioFlinger::setStreamVolume(int stream, float value, int output) argument
659 if (stream < 0 || uint32_t(stream) >= AUDIO_STREAM_CNT) {
672 mStreamTypes[stream].volume = value;
676 mPlaybackThreads.valueAt(i)->setStreamVolume(stream, value);
679 thread->setStreamVolume(stream, value);
685 status_t AudioFlinger::setStreamMute(int stream, bool muted) argument
692 if (stream < 0 || uint32_t(stream) >
705 streamVolume(int stream, int output) const argument
1602 setStreamVolume(int stream, float value) argument
1608 setStreamMute(int stream, bool muted) argument
1811 audio_stream_t* AudioFlinger::PlaybackThread::stream() function in class:android::AudioFlinger::PlaybackThread
4890 audio_stream_t* AudioFlinger::RecordThread::stream() function in class:android::AudioFlinger::RecordThread
5171 setStreamOutput(uint32_t stream, int output) argument
6143 audio_stream_t *stream = thread->stream(); local
6465 audio_stream_t *stream = thread->stream(); local
6501 audio_stream_t *stream = thread->stream(); local
[all...]
H A DAudioFlinger.h102 virtual status_t setStreamVolume(int stream, float value, int output);
103 virtual status_t setStreamMute(int stream, bool muted);
105 virtual float streamVolume(int stream, int output) const;
106 virtual bool streamMute(int stream) const;
144 virtual status_t setStreamOutput(uint32_t stream, int output);
433 virtual audio_stream_t* stream() = 0;
716 virtual status_t setStreamVolume(int stream, float value);
717 virtual status_t setStreamMute(int stream, bool muted);
719 virtual float streamVolume(int stream) const;
720 virtual bool streamMute(int stream) cons
1364 audio_stream_out_t *stream; member in struct:android::AudioFlinger::AudioStreamOut
1372 audio_stream_in_t *stream; member in struct:android::AudioFlinger::AudioStreamIn
[all...]
H A DAudioPolicyService.cpp256 audio_io_handle_t AudioPolicyService::getOutput(audio_stream_type_t stream, argument
267 return mpAudioPolicy->get_output(mpAudioPolicy, stream, samplingRate, format, channels, flags);
271 audio_stream_type_t stream,
279 return mpAudioPolicy->start_output(mpAudioPolicy, output, stream, session);
283 audio_stream_type_t stream,
291 return mpAudioPolicy->stop_output(mpAudioPolicy, output, stream, session);
394 status_t AudioPolicyService::initStreamVolume(audio_stream_type_t stream, argument
404 if (stream < 0 || stream >= AUDIO_STREAM_CNT) {
407 mpAudioPolicy->init_stream_volume(mpAudioPolicy, stream, indexMi
270 startOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
282 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
411 setStreamVolumeIndex(audio_stream_type_t stream, int index) argument
426 getStreamVolumeIndex(audio_stream_type_t stream, int *index) argument
437 getStrategyForStream(audio_stream_type_t stream) argument
445 getDevicesForStream(audio_stream_type_t stream) argument
490 isStreamActive(int stream, uint32_t inPastMs) const argument
785 startToneCommand(int type, int stream) argument
812 volumeCommand(int stream, float volume, int output, int delayMs) argument
1018 setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument
1027 startTone(audio_policy_tone_t tone, audio_stream_type_t stream) argument
1435 aps_set_stream_output(void *service, audio_stream_type_t stream, audio_io_handle_t output) argument
1471 aps_set_stream_volume(void *service, audio_stream_type_t stream, float volume, audio_io_handle_t output, int delay_ms) argument
1481 aps_start_tone(void *service, audio_policy_tone_t tone, audio_stream_type_t stream) argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DAppWidgetService.java1207 FileInputStream stream = file.openRead();
1208 readStateFromFileLocked(stream);
1210 if (stream != null) {
1212 stream.close();
1224 FileOutputStream stream;
1226 stream = file.startWrite();
1227 if (writeStateToFileLocked(stream)) {
1228 file.finishWrite(stream);
1230 file.failWrite(stream);
1238 boolean writeStateToFileLocked(FileOutputStream stream) { argument
1293 readStateFromFileLocked(FileInputStream stream) argument
[all...]
H A DNotificationPlayer.java53 int stream; field in class:NotificationPlayer.Command
57 return "{ code=" + code + " looping=" + looping + " stream=" + stream
87 player.setAudioStreamType(mCmd.stream);
94 audioManager.requestAudioFocus(null, mCmd.stream,
97 audioManager.requestAudioFocus(null, mCmd.stream,
261 * @param stream the AudioStream to use.
264 public void play(Context context, Uri uri, boolean looping, int stream) { argument
271 cmd.stream = stream;
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DUsageStatsService.java306 FileInputStream stream = new FileInputStream(file);
307 byte[] raw = readFully(stream);
311 stream.close();
565 FileOutputStream stream = new FileOutputStream(file);
569 stream.write(out.marshall());
571 stream.flush();
573 FileUtils.sync(stream);
574 stream.close();
835 static byte[] readFully(FileInputStream stream) throws java.io.IOException { argument
837 int avail = stream
[all...]
/frameworks/base/tests/BrowserTestPlugin/jni/
H A Dmain.cpp41 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
43 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
44 int32_t NPP_WriteReady(NPP instance, NPStream* stream);
45 int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len,
47 void NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname);
191 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype) argument
197 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason) argument
202 int32_t NPP_WriteReady(NPP instance, NPStream* stream) argument
207 int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer) argument
212 void NPP_StreamAsFile(NPP instance, NPStream* stream, cons argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java102 * Creates and returns a {@link Bitmap} initialized with the given stream content.
104 * @param input the stream from which to read the bitmap content
113 // create a delegate with the content of the stream.
211 // create a delegate with the content of the stream.
239 // create a delegate with the content of the stream.
257 OutputStream stream, byte[] tempStorage) {
256 nativeCompress(int nativeBitmap, int format, int quality, OutputStream stream, byte[] tempStorage) argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DParserFactory.java46 public static XmlPullParser create(InputStream stream, String name) argument
49 parser.setInput(stream, ENCODING);
/frameworks/base/voip/java/android/net/rtp/
H A DAudioGroup.java81 * encoded and sent back to each stream.
145 synchronized void add(AudioStream stream, AudioCodec codec, int dtmfType) { argument
146 if (!mStreams.containsKey(stream)) {
148 int socket = stream.dup();
151 nativeAdd(stream.getMode(), socket,
152 stream.getRemoteAddress().getHostAddress(),
153 stream.getRemotePort(), codecSpec, dtmfType);
154 mStreams.put(stream, socket);
165 synchronized void remove(AudioStream stream) { argument
166 Integer socket = mStreams.remove(stream);
[all...]
/frameworks/base/voip/jni/rtp/
H A DAudioGroup.cpp68 // jitter buffer. For a stream at 8000Hz it takes 32 kilobytes. These numbers
71 // Originally a stream does not send packets when it is receive-only or there is
76 // silence packet on the stream for every second. It should be good enough to
77 // keep the stream alive with relatively low resources.
162 LOGD("stream[%d] is dead", mSocket);
221 LOGD("stream[%d] is configured as %s %dkHz %dms mode %d", mSocket,
272 LOGV("stream[%d] skips %d packets", mSocket, skipped);
337 LOGV("stream[%d] no data", mSocket);
342 // Special case for device stream.
353 LOGV("stream[
670 add(AudioStream *stream) argument
939 AudioStream *stream = NULL; local
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmUtils.java83 private static void quiteDispose(InputStream stream) { argument
85 if (null != stream) {
86 stream.close();
93 private static void quiteDispose(OutputStream stream) { argument
95 if (null != stream) {
96 stream.close();
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java717 * @param stream The outputstream to write the compressed data.
718 * @return true if successfully compressed to the specified stream.
720 public boolean compress(CompressFormat format, int quality, OutputStream stream) { argument
723 if (stream == null) {
730 stream, new byte[WORKING_COMPRESS_STORAGE]);
1183 int quality, OutputStream stream,
1182 nativeCompress(int nativeBitmap, int format, int quality, OutputStream stream, byte[] tempStorage) argument
H A DPicture.java25 * The picture's contents can also be written to a stream, and then later
102 * Create a new picture (already recorded) from the data in the stream. This
105 public static Picture createFromStream(InputStream stream) { argument
107 nativeCreateFromStream(stream, new byte[WORKING_STREAM_STORAGE]));
111 * Write the picture contents to a stream. The data can be used to recreate
114 public void writeToStream(OutputStream stream) { argument
116 if (stream == null) {
119 if (!nativeWriteToStream(mNativePicture, stream,
142 private static native int nativeCreateFromStream(InputStream stream, argument
149 OutputStream stream, byt
148 nativeWriteToStream(int nativePicture, OutputStream stream, byte[] storage) argument
[all...]
H A DYuvImage.java118 * @param stream OutputStream to write the compressed data.
121 * 100]; or stream is null.
123 public boolean compressToJpeg(Rect rectangle, int quality, OutputStream stream) { argument
134 if (stream == null) {
135 throw new IllegalArgumentException("stream cannot be null");
142 rectangle.height(), offsets, mStrides, quality, stream,
239 int quality, OutputStream stream, byte[] tempStorage);
237 nativeCompressToJpeg(byte[] oriYuv, int format, int width, int height, int[] offsets, int[] strides, int quality, OutputStream stream, byte[] tempStorage) argument
/frameworks/base/graphics/java/android/renderscript/
H A DFileA3D.java162 FileA3D(int id, RenderScript rs, InputStream stream) { argument
164 mInputStream = stream;
287 throw new RSRuntimeException("Unsupported asset stream");
/frameworks/base/libs/rs/
H A DrsAdapter.cpp62 void Adapter1D::serialize(OStream *stream) const {
65 Adapter1D *Adapter1D::createFromStream(Context *rsc, IStream *stream) { argument
179 void Adapter2D::serialize(OStream *stream) const {
182 Adapter2D *Adapter2D::createFromStream(Context *rsc, IStream *stream) { argument
H A DrsAllocation.cpp198 void Allocation::serialize(OStream *stream) const {
200 stream->addU32((uint32_t)getClassId());
203 stream->addString(&name);
207 mHal.state.type->serialize(stream);
211 stream->addU32(dataSize);
213 stream->addByteArray(getPtr(), dataSize);
216 Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) { argument
218 RsA3DClassID classID = (RsA3DClassID)stream->loadU32();
225 stream->loadString(&name);
227 Type *type = Type::createFromStream(rsc, stream);
[all...]
H A DrsAnimation.cpp24 void Animation::serialize(OStream *stream) const {
27 Animation *Animation::createFromStream(Context *rsc, IStream *stream) { argument
H A DrsComponent.cpp239 void Component::serialize(OStream *stream) const {
240 stream->addU8((uint8_t)mType);
241 stream->addU8((uint8_t)mKind);
242 stream->addU8((uint8_t)(mNormalized ? 1 : 0));
243 stream->addU32(mVectorSize);
246 void Component::loadFromStream(IStream *stream) { argument
247 mType = (RsDataType)stream->loadU8();
248 mKind = (RsDataKind)stream->loadU8();
249 uint8_t temp = stream->loadU8();
251 mVectorSize = stream
[all...]

Completed in 3836 milliseconds

1234