Searched defs:stream (Results 76 - 100 of 109) sorted by relevance

12345

/frameworks/rs/
H A DrsElement.cpp95 void Element::serialize(Context *rsc, OStream *stream) const {
97 stream->addU32((uint32_t)getClassId());
100 stream->addString(&name);
102 mComponent.serialize(stream);
105 stream->addU32(mFieldCount);
107 stream->addString(&mFields[ct].name);
108 stream->addU32(mFields[ct].arraySize);
109 mFields[ct].e->serialize(rsc, stream);
113 Element *Element::createFromStream(Context *rsc, IStream *stream) { argument
115 RsA3DClassID classID = (RsA3DClassID)stream
[all...]
H A DrsType.cpp158 void Type::serialize(Context *rsc, OStream *stream) const {
160 stream->addU32((uint32_t)getClassId());
163 stream->addString(&name);
165 mElement->serialize(rsc, stream);
167 stream->addU32(mHal.state.dimX);
168 stream->addU32(mHal.state.dimY);
169 stream->addU32(mHal.state.dimZ);
171 stream->addU8((uint8_t)(mHal.state.lodCount ? 1 : 0));
172 stream->addU8((uint8_t)(mHal.state.faces ? 1 : 0));
175 Type *Type::createFromStream(Context *rsc, IStream *stream) { argument
[all...]
H A DrsAllocation.cpp297 void Allocation::packVec3Allocation(Context *rsc, OStream *stream) const {
306 stream->addByteArray(dst, getPackedSize());
312 void Allocation::serialize(Context *rsc, OStream *stream) const {
314 stream->addU32((uint32_t)getClassId());
317 stream->addString(&name);
321 mHal.state.type->serialize(rsc, stream);
327 stream->addU32(packedSize);
330 stream->addByteArray(rsc->mHal.funcs.allocation.lock1D(rsc, this), dataSize);
334 packVec3Allocation(rsc, stream);
338 Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) { argument
[all...]
/frameworks/support/renderscript/v8/rs_support/
H A DrsElement.cpp95 void Element::serialize(Context *rsc, OStream *stream) const {
97 stream->addU32((uint32_t)getClassId());
100 stream->addString(&name);
102 mComponent.serialize(stream);
105 stream->addU32(mFieldCount);
107 stream->addString(&mFields[ct].name);
108 stream->addU32(mFields[ct].arraySize);
109 mFields[ct].e->serialize(rsc, stream);
113 Element *Element::createFromStream(Context *rsc, IStream *stream) { argument
115 RsA3DClassID classID = (RsA3DClassID)stream
[all...]
H A DrsType.cpp158 void Type::serialize(Context *rsc, OStream *stream) const {
160 stream->addU32((uint32_t)getClassId());
163 stream->addString(&name);
165 mElement->serialize(rsc, stream);
167 stream->addU32(mHal.state.dimX);
168 stream->addU32(mHal.state.dimY);
169 stream->addU32(mHal.state.dimZ);
171 stream->addU8((uint8_t)(mHal.state.lodCount ? 1 : 0));
172 stream->addU8((uint8_t)(mHal.state.faces ? 1 : 0));
175 Type *Type::createFromStream(Context *rsc, IStream *stream) { argument
[all...]
H A DrsAllocation.cpp278 void Allocation::packVec3Allocation(Context *rsc, OStream *stream) const {
287 stream->addByteArray(dst, getPackedSize());
293 void Allocation::serialize(Context *rsc, OStream *stream) const {
295 stream->addU32((uint32_t)getClassId());
298 stream->addString(&name);
302 mHal.state.type->serialize(rsc, stream);
308 stream->addU32(packedSize);
311 stream->addByteArray(rsc->mHal.funcs.allocation.lock1D(rsc, this), dataSize);
315 packVec3Allocation(rsc, stream);
319 Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) { argument
[all...]
/frameworks/av/media/libmedia/
H A DIAudioPolicyService.cpp124 audio_stream_type_t stream,
132 data.writeInt32(static_cast <uint32_t>(stream));
142 audio_stream_type_t stream,
148 data.writeInt32((int32_t) stream);
155 audio_stream_type_t stream,
161 data.writeInt32((int32_t) stream);
219 virtual status_t initStreamVolume(audio_stream_type_t stream, argument
225 data.writeInt32(static_cast <uint32_t>(stream));
232 virtual status_t setStreamVolumeIndex(audio_stream_type_t stream, argument
238 data.writeInt32(static_cast <uint32_t>(stream));
123 getOutput( audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument
141 startOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
154 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
245 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
260 getStrategyForStream(audio_stream_type_t stream) argument
269 getDevicesForStream(audio_stream_type_t stream) argument
323 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument
424 audio_stream_type_t stream = local
444 uint32_t stream = data.readInt32(); local
455 uint32_t stream = data.readInt32(); local
509 audio_stream_type_t stream = local
519 audio_stream_type_t stream = local
531 audio_stream_type_t stream = local
543 audio_stream_type_t stream = local
551 audio_stream_type_t stream = local
599 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local
[all...]
H A DIMediaPlayer.cpp203 status_t setAudioStreamType(audio_stream_type_t stream) argument
207 data.writeInt32((int32_t) stream);
H A DAudioSystem.cpp123 status_t AudioSystem::setStreamVolume(audio_stream_type_t stream, float value, argument
126 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
129 af->setStreamVolume(stream, value, output);
133 status_t AudioSystem::setStreamMute(audio_stream_type_t stream, bool mute) argument
135 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
138 af->setStreamMute(stream, mute);
142 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, argument
145 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
148 *volume = af->streamVolume(stream, output);
152 status_t AudioSystem::getStreamMute(audio_stream_type_t stream, boo argument
372 getRenderPosition(uint32_t *halFrames, uint32_t *dspFrames, audio_stream_type_t stream) argument
433 audio_stream_type_t stream; local
588 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags) argument
599 startOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
608 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
656 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument
665 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument
674 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
683 getStrategyForStream(audio_stream_type_t stream) argument
690 getDevicesForStream(audio_stream_type_t stream) argument
729 isStreamActive(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument
738 isSourceActive(audio_source_t stream, bool* state) argument
[all...]
H A DIAudioFlinger.cpp261 virtual status_t setStreamVolume(audio_stream_type_t stream, float value, argument
266 data.writeInt32((int32_t) stream);
273 virtual status_t setStreamMute(audio_stream_type_t stream, bool muted) argument
277 data.writeInt32((int32_t) stream);
283 virtual float streamVolume(audio_stream_type_t stream, audio_io_handle_t output) const argument
287 data.writeInt32((int32_t) stream);
293 virtual bool streamMute(audio_stream_type_t stream) const
297 data.writeInt32((int32_t) stream);
485 virtual status_t setStreamOutput(audio_stream_type_t stream, audio_io_handle_t output) argument
489 data.writeInt32((int32_t) stream);
809 int stream = data.readInt32(); local
817 int stream = data.readInt32(); local
823 int stream = data.readInt32(); local
830 int stream = data.readInt32(); local
954 uint32_t stream = data.readInt32(); local
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpvdec_api.cpp73 BitstreamDecVideo *stream; local
169 stream = IMEM_BitstreamDecVideo;
183 stream = (BitstreamDecVideo *) oscl_malloc(sizeof(BitstreamDecVideo));
186 if (stream == NULL)
194 if ((buffer_size = BitstreamOpen(stream, idx)) < 0)
201 video->vol[idx]->bitstream = stream;
209 BitstreamReset(stream, decCtrl->volbuf[idx], decCtrl->volbuf_size[idx]);
886 if (oscl_memcmp(h263_prefix, video_buffer, 3) == 0) /* we have short header stream */
1036 BitstreamDecVideo *stream; local
1065 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/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
H A DScoAudioTest.java116 name.setText("VOICE_CALL stream");
325 SimplePlayerController(Context context, int playPausebuttonId, int stopButtonId, String fileName, int stream) { argument
330 mStreamType = stream;
335 SimplePlayerController(Context context, int playPausebuttonId, int stopButtonId, int fileResId, int stream) { argument
340 mStreamType = stream;
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A DvoAMRWBEnc.c1600 FrameStream *stream; local
1650 st->stream = (FrameStream *)mem_malloc(pMemOP, sizeof(FrameStream), 32, VO_INDEX_ENC_AMRWB);
1651 if(st->stream == NULL)
1654 st->stream->frame_ptr = (unsigned char *)mem_malloc(pMemOP, Frame_Maxsize, 32, VO_INDEX_ENC_AMRWB);
1655 if(st->stream->frame_ptr == NULL)
1658 stream = st->stream;
1659 voAWB_InitFrameBuffer(stream);
1695 FrameStream *stream; local
1703 stream
1732 FrameStream *stream = (FrameStream *)gData->stream; local
1787 FrameStream *stream = (FrameStream *)(gData->stream); local
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dmp4enc_api.cpp702 video->bitstream1 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 1*/
704 video->bitstream2 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 2*/
706 video->bitstream3 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 3*/
876 pVol->stream = (BitstreamEncVideo *)M4VENC_MALLOC(sizeof(BitstreamEncVideo)); /* allocate BitstreamEncVideo Instance */
877 if (pVol->stream == NULL) goto CLEAN_UP;
1230 if (video->vol[idx]->stream)
1231 M4VENC_FREE(video->vol[idx]->stream);
1331 if (currVol->stream->bitstreamBuffer != video->overrunBuffer) // not used
1416 *size = video->vol[0]->stream->byteCount;
1429 /* Initialize Vol stream structur
2409 BitstreamEncVideo *stream = video->bitstream1; local
2572 BitstreamEncVideo *stream = currVol->stream; local
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DATSParser.cpp333 ALOGI("uh oh. stream PIDs have changed.");
343 sp<Stream> stream = mStreams.editValueAt(i);
345 ALOGI("PID 0x%08x => type 0x%02x", stream->pid(), stream->type());
402 sp<Stream> stream = new Stream( local
405 mStreams.add(info.mPID, stream);
501 ALOGV("new stream PID 0x%02x, type 0x%02x", elementaryPID, streamType);
523 ALOGI("discontinuity on stream pid 0x%04x", mElementaryPID);
825 ALOGV("flushing stream 0x%04x size = %d", mElementaryPID, mBuffer->size());
1123 // MPEG2 transport stream packe
[all...]
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java457 * @param stream the stream to print to
459 public static void dumpCursor(Cursor cursor, PrintStream stream) { argument
460 stream.println(">>>>> Dumping cursor " + cursor);
466 dumpCurrentRow(cursor, stream);
470 stream.println("<<<<<");
520 * @param stream the stream to print to
522 public static void dumpCurrentRow(Cursor cursor, PrintStream stream) { argument
524 stream
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp139 static SkPixelRef* installPixelRef(SkBitmap* bitmap, SkStream* stream, argument
145 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize);
147 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize);
155 // since we "may" create a purgeable imageref, we require the stream be ref'able
158 static jobject doDecode(JNIEnv* env, SkStream* stream, jobject padding, argument
200 SkImageDecoder* decoder = SkImageDecoder::Factory(stream);
254 if (!decoder->decode(stream, decoded, prefConfig, decodeMode, javaBitmap != NULL)) {
368 pr = installPixelRef(bitmap, stream, sampleSize, doDither);
399 SkStream* stream = CreateJavaInputStreamAdaptor(env, is, storage, 0); local
401 if (stream) {
443 SkFDStream* stream = new SkFDStream(descriptor, weOwnTheFD); local
478 SkStream* stream = new SkMemoryStream(size); local
492 SkStream* stream; local
527 SkStream* stream = new SkMemoryStream(ar.ptr() + offset, length, purgeable); local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java863 * @param stream The outputstream to write the compressed data.
864 * @return true if successfully compressed to the specified stream.
866 public boolean compress(CompressFormat format, int quality, OutputStream stream) { argument
869 if (stream == null) {
876 stream, new byte[WORKING_COMPRESS_STORAGE]);
1402 int quality, OutputStream stream,
1401 nativeCompress(int nativeBitmap, int format, int quality, OutputStream stream, byte[] tempStorage) argument
/frameworks/base/services/java/com/android/server/
H A DAppWidgetServiceImpl.java1486 FileInputStream stream = file.openRead();
1487 readStateFromFileLocked(stream);
1489 if (stream != null) {
1491 stream.close();
1503 FileOutputStream stream;
1505 stream = file.startWrite();
1506 if (writeStateToFileLocked(stream)) {
1507 file.finishWrite(stream);
1509 file.failWrite(stream);
1517 boolean writeStateToFileLocked(FileOutputStream stream) { argument
1592 readStateFromFileLocked(FileInputStream stream) argument
[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 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
938 AudioStream *stream = NULL; local
1020 remove(JNIEnv *env, jobject thiz, jint stream) argument
[all...]
/frameworks/base/media/java/android/media/
H A DAudioSystem.java35 /* The audio stream for phone calls */
37 /* The audio stream for system sounds */
39 /* The audio stream for the phone ring and message alerts */
41 /* The audio stream for music playback */
43 /* The audio stream for alarms */
45 /* The audio stream for notifications */
47 /* @hide The audio stream for phone calls when connected on bluetooth */
49 /* @hide The audio stream for enforced system sounds in certain countries (e.g camera in Japan) */
51 /* @hide The audio stream for DTMF tones */
53 /* @hide The audio stream fo
111 isStreamActive(int stream, int inPastMs) argument
384 initStreamVolume(int stream, int indexMin, int indexMax) argument
385 setStreamVolumeIndex(int stream, int index, int device) argument
386 getStreamVolumeIndex(int stream, int device) argument
391 getDevicesForStream(int stream) argument
[all...]
H A DAudioManager.java101 * @hide Broadcast intent when the volume for a particular stream type changes.
102 * Includes the stream, the new volume and previous volumes.
160 * @hide The stream type for the volume changed intent.
165 * @hide The volume associated with the stream for the volume changed intent.
171 * @hide The previous volume associated with the stream for the volume changed intent.
197 /** The audio stream for phone calls */
199 /** The audio stream for system sounds */
201 /** The audio stream for the phone ring */
203 /** The audio stream for music playback */
205 /** The audio stream fo
440 preDispatchKeyEvent(KeyEvent event, int stream) argument
466 handleKeyDown(KeyEvent event, int stream) argument
507 handleKeyUp(KeyEvent event, int stream) argument
[all...]
/frameworks/av/services/audioflinger/
H A DAudioPolicyService.cpp219 audio_io_handle_t AudioPolicyService::getOutput(audio_stream_type_t stream, argument
230 return mpAudioPolicy->get_output(mpAudioPolicy, stream, samplingRate, format, channelMask, flags);
234 audio_stream_type_t stream,
242 return mpAudioPolicy->start_output(mpAudioPolicy, output, stream, session);
246 audio_stream_type_t stream,
254 return mpAudioPolicy->stop_output(mpAudioPolicy, output, stream, session);
359 status_t AudioPolicyService::initStreamVolume(audio_stream_type_t stream, argument
369 if (uint32_t(stream) >= AUDIO_STREAM_CNT) {
373 mpAudioPolicy->init_stream_volume(mpAudioPolicy, stream, indexMin, indexMax);
377 status_t AudioPolicyService::setStreamVolumeIndex(audio_stream_type_t stream, argument
233 startOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
245 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument
401 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
422 getStrategyForStream(audio_stream_type_t stream) argument
432 getDevicesForStream(audio_stream_type_t stream) argument
477 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument
782 startToneCommand(ToneGenerator::tone_type type, audio_stream_type_t stream) argument
808 volumeCommand(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument
1013 setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument
1022 startTone(audio_policy_tone_t tone, audio_stream_type_t stream) argument
1474 aps_set_stream_output(void *service, audio_stream_type_t stream, audio_io_handle_t output) argument
1510 aps_set_stream_volume(void *service, audio_stream_type_t stream, float volume, audio_io_handle_t output, int delay_ms) argument
1520 aps_start_tone(void *service, audio_policy_tone_t tone, audio_stream_type_t stream) argument
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCamera2Device.cpp243 sp<StreamAdapter> stream = new StreamAdapter(mDevice); local
245 res = stream->connectToDevice(consumer, width, height, format, size);
247 ALOGE("%s: Camera %d: Unable to create stream (%d x %d, format %x):"
253 *id = stream->getId();
255 mStreams.push_back(stream);
274 ALOGE("%s: Camera %d: Output stream %d doesn't exist; can't create "
275 "reprocess stream from it!", __FUNCTION__, mId, outputId);
279 sp<ReprocessStreamAdapter> stream = new ReprocessStreamAdapter(mDevice); local
281 res = stream->connectToDevice((*streamI));
283 ALOGE("%s: Camera %d: Unable to create reprocessing stream fro
1214 StreamAdapter* stream = local
1241 StreamAdapter *stream = local
1276 StreamAdapter *stream = local
1448 ReprocessStreamAdapter* stream = local
1479 ReprocessStreamAdapter *stream = local
[all...]

Completed in 4046 milliseconds

12345