/frameworks/av/media/libmedia/ |
H A D | IAudioPolicyService.cpp | 126 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 D | IMediaPlayer.cpp | 203 status_t setAudioStreamType(audio_stream_type_t stream) argument 207 data.writeInt32((int32_t) stream);
|
H A D | AudioSystem.cpp | 132 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...] |
H A D | IAudioFlinger.cpp | 277 virtual status_t setStreamVolume(audio_stream_type_t stream, float value, argument 282 data.writeInt32((int32_t) stream); 289 virtual status_t setStreamMute(audio_stream_type_t stream, bool muted) argument 293 data.writeInt32((int32_t) stream); 299 virtual float streamVolume(audio_stream_type_t stream, audio_io_handle_t output) const argument 303 data.writeInt32((int32_t) stream); 309 virtual bool streamMute(audio_stream_type_t stream) const 313 data.writeInt32((int32_t) stream); 509 virtual status_t setStreamOutput(audio_stream_type_t stream, audio_io_handle_t output) argument 513 data.writeInt32((int32_t) stream); 850 int stream = data.readInt32(); local 858 int stream = data.readInt32(); local 864 int stream = data.readInt32(); local 871 int stream = data.readInt32(); local 1002 uint32_t stream = data.readInt32(); local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | pvdec_api.cpp | 73 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/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 83 StreamType stream, sp<ABuffer> *accessUnit) { 84 if (!(mStreamMask & stream)) { 88 sp<AnotherPacketSource> packetSource = mPacketSources.valueFor(stream); 98 switch (stream) { 126 if (stream == STREAMTYPE_AUDIO || stream == STREAMTYPE_VIDEO) { 133 } else if (stream == STREAMTYPE_SUBTITLES) { 145 status_t LiveSession::getStreamFormat(StreamType stream, sp<AMessage> *format) { argument 146 if (!(mStreamMask & stream)) { 150 sp<AnotherPacketSource> packetSource = mPacketSources.valueFor(stream); 82 dequeueAccessUnit( StreamType stream, sp<ABuffer> *accessUnit) argument [all...] |
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
H A D | ScoAudioTest.java | 116 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/base/services/java/com/android/server/am/ |
H A D | UsageStatsService.java | 336 FileInputStream stream = new FileInputStream(file); 337 byte[] raw = readFully(stream); 341 stream.close(); 595 FileOutputStream stream = new FileOutputStream(file); 599 stream.write(out.marshall()); 601 stream.flush(); 603 FileUtils.sync(stream); 604 stream.close(); 885 static byte[] readFully(FileInputStream stream) throws java.io.IOException { argument 887 int avail = stream [all...] |
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/ |
H A D | MediaRouterJellybean.java | 211 public static void setPlaybackStream(Object routeObj, int stream) { argument 212 ((android.media.MediaRouter.UserRouteInfo)routeObj).setPlaybackStream(stream);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | voAMRWBEnc.c | 1600 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 D | mp4enc_api.cpp | 702 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...] |
H A D | mp4lib_int.h | 86 BitstreamEncVideo *stream; /* library bitstream buffer (input buffer) */ member in struct:tagVol
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | ATSParser.cpp | 341 ALOGI("uh oh. stream PIDs have changed."); 351 sp<Stream> stream = mStreams.editValueAt(i); 353 ALOGI("PID 0x%08x => type 0x%02x", stream->pid(), stream->type()); 410 sp<Stream> stream = new Stream( local 413 mStreams.add(info.mPID, stream); 513 ALOGV("new stream PID 0x%02x, type 0x%02x", elementaryPID, streamType); 535 ALOGI("discontinuity on stream pid 0x%04x", mElementaryPID); 847 ALOGV("flushing stream 0x%04x size = %d", mElementaryPID, mBuffer->size()); 1162 // MPEG2 transport stream packe [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.h | 138 virtual status_t setStreamVolume(audio_stream_type_t stream, float value, 140 virtual status_t setStreamMute(audio_stream_type_t stream, bool muted); 142 virtual float streamVolume(audio_stream_type_t stream, 144 virtual bool streamMute(audio_stream_type_t stream) const; 185 virtual status_t setStreamOutput(audio_stream_type_t stream, audio_io_handle_t output); 447 bool streamMute_l(audio_stream_type_t stream) const 448 { return mStreamTypes[stream].mute; } 449 // no range check, doesn't check per-thread stream volume, AudioFlinger::mLock held 450 float streamVolume_l(audio_stream_type_t stream) const 451 { return mStreamTypes[stream] 511 audio_stream_out_t* const stream; member in struct:android::AudioFlinger::AudioStreamOut 522 audio_stream_in_t* const stream; member in struct:android::AudioFlinger::AudioStreamIn [all...] |
H A D | Effects.cpp | 459 audio_stream_t *stream = thread->stream(); local 460 if (stream != NULL) { 461 stream->add_audio_effect(stream, mEffectInterface); 505 audio_stream_t *stream = thread->stream(); local 506 if (stream != NULL) { 507 stream->remove_audio_effect(stream, mEffectInterfac [all...] |
H A D | AudioPolicyService.cpp | 224 audio_io_handle_t AudioPolicyService::getOutput(audio_stream_type_t stream, argument 236 return mpAudioPolicy->get_output(mpAudioPolicy, stream, samplingRate, 241 audio_stream_type_t stream, 249 return mpAudioPolicy->start_output(mpAudioPolicy, output, stream, session); 253 audio_stream_type_t stream, 260 mOutputCommandThread->stopOutputCommand(output, stream, session); 265 audio_stream_type_t stream, 270 return mpAudioPolicy->stop_output(mpAudioPolicy, output, stream, session); 389 status_t AudioPolicyService::initStreamVolume(audio_stream_type_t stream, argument 399 if (uint32_t(stream) > 240 startOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument 252 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument 264 doStopOutput(audio_io_handle_t output, audio_stream_type_t stream, int session) argument 407 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument 431 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument 452 getStrategyForStream(audio_stream_type_t stream) argument 462 getDevicesForStream(audio_stream_type_t stream) argument 507 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument 516 isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs) const argument 844 startToneCommand(ToneGenerator::tone_type type, audio_stream_type_t stream) argument 870 volumeCommand(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument 943 stopOutputCommand(audio_io_handle_t output, audio_stream_type_t stream, int session) argument 1105 setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument 1114 startTone(audio_policy_tone_t tone, audio_stream_type_t stream) argument 1582 aps_set_stream_output(void *service, audio_stream_type_t stream, audio_io_handle_t output) argument 1618 aps_set_stream_volume(void *service, audio_stream_type_t stream, float volume, audio_io_handle_t output, int delay_ms) argument 1628 aps_start_tone(void *service, audio_policy_tone_t tone, audio_stream_type_t stream) argument [all...] |
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 457 * @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 D | BitmapFactory.cpp | 124 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/opt/net/voip/src/jni/rtp/ |
H A D | AudioGroup.cpp | 68 // 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/rs/ |
H A D | rsAllocation.cpp | 320 void Allocation::packVec3Allocation(Context *rsc, OStream *stream) const { 329 stream->addByteArray(dst, getPackedSize()); 335 void Allocation::serialize(Context *rsc, OStream *stream) const { 337 stream->addU32((uint32_t)getClassId()); 338 stream->addString(getName()); 342 mHal.state.type->serialize(rsc, stream); 348 stream->addU32(packedSize); 351 stream->addByteArray(rsc->mHal.funcs.allocation.lock1D(rsc, this), dataSize); 355 packVec3Allocation(rsc, stream); 359 Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) { argument [all...] |
/frameworks/av/services/camera/libcameraservice/device2/ |
H A D | Camera2Device.cpp | 247 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/av/services/camera/libcameraservice/device3/ |
H A D | Camera3Device.cpp | 335 lines.appendFormat(" No input stream.\n"); 535 ALOGV("Camera %d: Creating new input stream %d: %d x %d, format %d", 568 ALOGE("%s: Cannot create more than 1 input stream", __FUNCTION__); 585 ALOGE("%s: Can't reconfigure device for new stream %d: %s (%d)", 592 ALOGV("Camera %d: Created input stream", mId); 606 ALOGV("Camera %d: Creating ZSL stream %d: %d x %d, depth %d", 639 ALOGE("%s: Cannot create more than 1 input stream", __FUNCTION__); 649 ALOGE("%s: Can't add new stream to set: %s (%d)", 663 ALOGE("%s: Can't reconfigure device for new stream %d: %s (%d)", 670 ALOGV("Camera %d: Created ZSL stream", mI 1212 sp<Camera3OutputStreamInterface> stream = local 1742 Camera3Stream *stream = local 1780 Camera3Stream *stream = local 2197 Camera3Stream *stream = local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 981 * @param stream The outputstream to write the compressed data. 982 * @return true if successfully compressed to the specified stream. 984 public boolean compress(CompressFormat format, int quality, OutputStream stream) { argument 987 if (stream == null) { 994 stream, new byte[WORKING_COMPRESS_STORAGE]); 1579 int quality, OutputStream stream, 1578 nativeCompress(int nativeBitmap, int format, int quality, OutputStream stream, byte[] tempStorage) argument
|
/frameworks/base/media/java/android/media/ |
H A D | AudioSystem.java | 35 /* 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 119 isStreamActiveRemotely(int stream, int inPastMs) argument 390 initStreamVolume(int stream, int indexMin, int indexMax) argument 391 setStreamVolumeIndex(int stream, int index, int device) argument 392 getStreamVolumeIndex(int stream, int device) argument 397 getDevicesForStream(int stream) argument 402 getOutputLatency(int stream) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | AppWidgetServiceImpl.java | 1618 FileInputStream stream = file.openRead(); 1619 readStateFromFileLocked(stream); 1621 if (stream != null) { 1623 stream.close(); 1638 FileOutputStream stream; 1640 stream = file.startWrite(); 1641 if (writeStateToFileLocked(stream)) { 1642 file.finishWrite(stream); 1644 file.failWrite(stream); 1652 boolean writeStateToFileLocked(FileOutputStream stream) { argument 1727 readStateFromFileLocked(FileInputStream stream) argument [all...] |