Searched refs:stream (Results 51 - 75 of 207) sorted by relevance

123456789

/frameworks/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp128 SkStream* CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, argument
130 return new JavaInputStreamAdaptor(env, stream, storage);
134 static SkMemoryStream* adaptor_to_mem_stream(SkStream* stream) { argument
135 SkASSERT(stream != NULL);
141 while ((len = stream->read(data + streamLen,
156 SkStreamRewindable* CopyJavaInputStream(JNIEnv* env, jobject stream, argument
158 SkAutoTUnref<SkStream> adaptor(CreateJavaInputStreamAdaptor(env, stream, storage));
172 SkJavaOutputStream(JNIEnv* env, jobject stream, jbyteArray storage) argument
173 : fEnv(env), fJavaOutputStream(stream), fJavaByteArray(storage) {
222 SkWStream* CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream, argument
[all...]
H A DBitmapFactory.cpp124 static SkPixelRef* installPixelRef(SkBitmap* bitmap, SkStreamRewindable* stream, argument
130 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize);
132 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize);
209 // since we "may" create a purgeable imageref, we require the stream be ref'able
212 static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding, argument
262 SkImageDecoder* decoder = SkImageDecoder::Factory(stream);
326 if (!decoder->decode(stream, &decodingBitmap, prefConfig, decodeMode)) {
438 pr = installPixelRef(outputBitmap, stream, sampleSize, doDither);
477 SkAutoTUnref<SkStream> stream(CreateJavaInputStreamAdaptor(env, is, storage));
479 if (stream
531 SkStreamRewindable* stream; local
560 SkMemoryStream* stream = new SkMemoryStream(ar.ptr() + offset, length, purgeable); local
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dcombined_encode.cpp118 video->header_bits -= BitstreamGetPos(currVol->stream); /* Header Bits */
120 video->header_bits += BitstreamGetPos(currVol->stream); /* Header Bits */
182 status = BitstreamAppendPacket(currVol->stream, bs1); /* Put Packet to Buffer */
192 status = BitstreamAppendEnc(currVol->stream, bs1); /* Initialize to 0 */
201 status = BitstreamAppendEnc(currVol->stream, bs1); /* Initialize to 0 */
222 video->header_bits += BitstreamShortHeaderByteAlignStuffing(currVol->stream); /* Byte Align */
234 status = BitstreamAppendPacket(currVol->stream, bs1); /* Put Packet to Buffer */
242 video->header_bits += BitstreamMpeg4ByteAlignStuffing(currVol->stream); /* Byte Align */
303 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
473 status = BitstreamAppendPacketNoOffset(currVol->stream, bs
684 BitstreamEncVideo *stream = (bs1stream ? video->bitstream1 : video->vol[video->currLayer]->stream); local
[all...]
/frameworks/rs/
H A DrsMesh.cpp81 void Mesh::serialize(Context *rsc, OStream *stream) const {
83 stream->addU32((uint32_t)getClassId());
84 stream->addString(getName());
87 stream->addU32(mHal.state.vertexBuffersCount);
89 mHal.state.vertexBuffers[vCount]->serialize(rsc, stream);
92 stream->addU32(mHal.state.primitivesCount);
95 stream->addU8((uint8_t)mHal.state.primitives[pCount]);
98 stream->addU32(1);
99 mHal.state.indexBuffers[pCount]->serialize(rsc, stream);
101 stream
106 createFromStream(Context *rsc, IStream *stream) argument
[all...]
H A DrsType.cpp147 void Type::serialize(Context *rsc, OStream *stream) const {
149 stream->addU32((uint32_t)getClassId());
150 stream->addString(getName());
152 mElement->serialize(rsc, stream);
154 stream->addU32(mHal.state.dimX);
155 stream->addU32(mHal.state.dimY);
156 stream->addU32(mHal.state.dimZ);
158 stream->addU8((uint8_t)(mHal.state.lodCount ? 1 : 0));
159 stream->addU8((uint8_t)(mHal.state.faces ? 1 : 0));
162 Type *Type::createFromStream(Context *rsc, IStream *stream) { argument
[all...]
H A DrsAdapter.h49 virtual void serialize(Context *rsc, OStream *stream) const;
51 static Adapter1D *createFromStream(Context *rsc, IStream *stream);
82 virtual void serialize(Context *rsc, OStream *stream) const;
84 static Adapter2D *createFromStream(Context *rsc, IStream *stream);
H A DrsMesh.h62 virtual void serialize(Context *rsc, OStream *stream) const;
64 static Mesh *createFromStream(Context *rsc, IStream *stream);
H A DrsProgramRaster.h49 virtual void serialize(Context *rsc, OStream *stream) const;
51 static ProgramRaster *createFromStream(Context *rsc, IStream *stream);
H A DrsProgramStore.h62 virtual void serialize(Context *rsc, OStream *stream) const;
64 static ProgramStore *createFromStream(Context *rsc, IStream *stream);
H A DrsProgramVertex.h44 virtual void serialize(Context *rsc, OStream *stream) const;
46 static ProgramVertex *createFromStream(Context *rsc, IStream *stream);
/frameworks/av/media/libmedia/
H A DIAudioPolicyService.cpp126 audio_stream_type_t stream,
135 data.writeInt32(static_cast <uint32_t>(stream));
151 audio_stream_type_t stream,
157 data.writeInt32((int32_t) stream);
164 audio_stream_type_t stream,
170 data.writeInt32((int32_t) stream);
228 virtual status_t initStreamVolume(audio_stream_type_t stream, argument
234 data.writeInt32(static_cast <uint32_t>(stream));
241 virtual status_t setStreamVolumeIndex(audio_stream_type_t stream, argument
247 data.writeInt32(static_cast <uint32_t>(stream));
125 getOutput( audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
150 startOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
163 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
254 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
269 getStrategyForStream(audio_stream_type_t stream) argument
278 getDevicesForStream(audio_stream_type_t stream) argument
332 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument
342 isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs) const argument
454 audio_stream_type_t stream = local
479 uint32_t stream = data.readInt32(); local
490 uint32_t stream = data.readInt32(); local
544 audio_stream_type_t stream = local
554 audio_stream_type_t stream = local
566 audio_stream_type_t stream = local
578 audio_stream_type_t stream = local
586 audio_stream_type_t stream = local
634 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local
642 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local
[all...]
H A DAudioSystem.cpp132 status_t AudioSystem::setStreamVolume(audio_stream_type_t stream, float value, argument
135 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
138 af->setStreamVolume(stream, value, output);
142 status_t AudioSystem::setStreamMute(audio_stream_type_t stream, bool mute) argument
144 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
147 af->setStreamMute(stream, mute);
151 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, argument
154 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
157 *volume = af->streamVolume(stream, output);
161 status_t AudioSystem::getStreamMute(audio_stream_type_t stream, boo argument
373 getRenderPosition(audio_io_handle_t output, size_t *halFrames, size_t *dspFrames, audio_stream_type_t stream) argument
439 audio_stream_type_t stream; local
599 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
611 startOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
620 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
668 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument
677 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument
686 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
695 getStrategyForStream(audio_stream_type_t stream) argument
702 getDevicesForStream(audio_stream_type_t stream) argument
741 isStreamActive(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument
750 isStreamActiveRemotely(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument
760 isSourceActive(audio_source_t stream, bool* state) argument
[all...]
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java43 int stream; field in class:AsyncPlayer.Command
47 return "{ code=" + code + " looping=" + looping + " stream=" + stream
61 player.setAudioStreamType(cmd.stream);
162 * @param stream the AudioStream to use.
165 public void play(Context context, Uri uri, boolean looping, int stream) { argument
172 cmd.stream = stream;
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_eglapi.cpp43 * Task that monitors the control stream from the host and updates
48 TCPStream *stream = state->getStream(); local
50 // The control stream always receives an integer size of the
66 if (stream->receive(&cmdSize, sizeof(uint32_t)) < 0) {
81 if (stream->receive(cmdBuf, cmdSize) < 0) {
118 TCPStream *stream = NULL; local
138 stream = new TCPStream(clientSocket);
141 sGLTraceState = new GLTraceState(stream);
H A Dgltrace_transport.h66 * Construct a Buffered stream of size @bufferSize, using @stream as
69 BufferedOutputStream(TCPStream *stream, size_t bufferSize);
/frameworks/opt/net/voip/src/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 ALOGD("stream[%d] is dead", mSocket);
221 ALOGD("stream[%d] is configured as %s %dkHz %dms mode %d", mSocket,
272 ALOGV("stream[%d] skips %d packets", mSocket, skipped);
337 ALOGV("stream[%d] no data", mSocket);
342 // Special case for device stream.
353 ALOGV("stream[
670 add(AudioStream *stream) argument
694 remove(AudioStream *stream) argument
944 AudioStream *stream = NULL; local
1026 remove(JNIEnv *env, jobject thiz, jint stream) argument
[all...]
/frameworks/av/media/libnbaio/
H A DAudioStreamOutSink.cpp25 AudioStreamOutSink::AudioStreamOutSink(audio_stream_out *stream) : argument
27 mStream(stream),
30 ALOG_ASSERT(stream != NULL);
/frameworks/base/core/java/com/android/internal/util/
H A DProcFileReader.java27 * through the stream using a single space {@code ' '} as token separator, and
43 public ProcFileReader(InputStream stream) throws IOException { argument
44 this(stream, 4096);
47 public ProcFileReader(InputStream stream, int bufferSize) throws IOException { argument
48 mStream = stream;
112 throw new ProtocolException("End of stream while looking for token boundary");
116 * Check if stream has more data to be parsed.
143 throw new ProtocolException("End of stream while looking for line boundary");
/frameworks/base/graphics/java/android/graphics/
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/services/java/com/android/server/updates/
H A DSELinuxPolicyInstallReceiver.java88 private void installFile(File destination, BufferedInputStream stream, int length) argument
91 stream.read(chunk, 0, length);
96 BufferedInputStream stream = new BufferedInputStream(new FileInputStream(updateContent));
98 int[] chunkLengths = readChunkLengths(stream);
99 installFile(new File(updateDir, seappContextsPath), stream, chunkLengths[0]);
100 installFile(new File(updateDir, propertyContextsPath), stream, chunkLengths[1]);
101 installFile(new File(updateDir, fileContextsPath), stream, chunkLengths[2]);
102 installFile(new File(updateDir, sepolicyPath), stream, chunkLengths[3]);
104 IoUtils.closeQuietly(stream);
/frameworks/base/services/java/com/android/server/wm/
H A DDisplaySettings.java98 FileInputStream stream;
100 stream = mFile.openRead();
109 parser.setInput(stream, null);
154 stream.close();
184 FileOutputStream stream;
186 stream = mFile.startWrite();
194 out.setOutput(stream, "utf-8");
218 mFile.finishWrite(stream);
221 mFile.failWrite(stream);
/frameworks/av/services/camera/libcameraservice/device2/
H A DCamera2Device.cpp247 sp<StreamAdapter> stream = new StreamAdapter(mHal2Device); local
249 res = stream->connectToDevice(consumer, width, height, format, size);
251 ALOGE("%s: Camera %d: Unable to create stream (%d x %d, format %x):"
257 *id = stream->getId();
259 mStreams.push_back(stream);
278 ALOGE("%s: Camera %d: Output stream %d doesn't exist; can't create "
279 "reprocess stream from it!", __FUNCTION__, mId, outputId);
283 sp<ReprocessStreamAdapter> stream = new ReprocessStreamAdapter(mHal2Device); local
285 res = stream->connectToDevice((*streamI));
287 ALOGE("%s: Camera %d: Unable to create reprocessing stream fro
1240 StreamAdapter* stream = local
1267 StreamAdapter *stream = local
1302 StreamAdapter *stream = local
1474 ReprocessStreamAdapter* stream = local
1505 ReprocessStreamAdapter *stream = local
[all...]
/frameworks/base/media/tests/omxjpegdecoder/
H A Domx_jpeg_decoder.h45 virtual bool onDecode(SkStream* stream, SkBitmap* bm, Mode mode);
48 JPEGSource* prepareMediaSource(SkStream* stream);
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DNotificationPlayer.java48 int stream; field in class:NotificationPlayer.Command
52 return "{ code=" + code + " looping=" + looping + " stream=" + stream
82 player.setAudioStreamType(mCmd.stream);
93 audioManager.requestAudioFocus(null, mCmd.stream,
96 audioManager.requestAudioFocus(null, mCmd.stream,
281 * @param stream the AudioStream to use.
284 public void play(Context context, Uri uri, boolean looping, int stream) { argument
291 cmd.stream = stream;
[all...]
/frameworks/base/test-runner/src/junit/runner/
H A DTestCaseClassLoader.java142 FileInputStream stream= new FileInputStream(f);
146 while ((n= stream.read(b)) != -1)
148 stream.close();
159 InputStream stream= null;
173 stream= zipFile.getInputStream(entry);
177 int n= stream.read(data, pos, data.length - pos);
185 if (stream != null)
186 stream.close();

Completed in 625 milliseconds

123456789