/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | combined_decode.cpp | 47 BitstreamDecVideo *stream = video->bitstream; local 124 startPacket = getPointer(stream); 137 BitstreamShowBits16(stream, stuffing_length, &code); 140 PV_BitstreamFlushBits(stream, stuffing_length); 141 BitstreamShowBits16(stream, stuffing_length, &code); 161 movePointerTo(stream, (startPacket & -8)); 176 movePointerTo(stream, (startPacket & -8)); 188 BitstreamShowBits16(stream, stuffing_length, &code); 191 PV_BitstreamFlushBits(stream, stuffing_length); 192 BitstreamShowBits16(stream, stuffing_lengt 347 BitstreamDecVideo *stream = video->bitstream; local 528 BitstreamDecVideo *stream = video->bitstream; local [all...] |
H A D | datapart_decode.cpp | 43 BitstreamDecVideo *stream = video->bitstream; local 100 if ((status = quickSearchVideoPacketHeader(stream, resync_marker_length)) != PV_SUCCESS) 142 BitstreamDecVideo *stream = video->bitstream; local 151 int32 startSecondPart, startFirstPart = getPointer(stream); 159 BitstreamShowBits16(stream, 9, &code); 162 PV_BitstreamFlushBits(stream, 9); 163 BitstreamShowBits16(stream, 9, &code); 169 MCBPC = PV_VlcDecMCBPC_com_intra(stream); 183 movePointerTo(stream, startFirstPart); 191 BitstreamShowBits16(stream, 307 BitstreamDecVideo *stream = video->bitstream; local 519 BitstreamDecVideo *stream = video->bitstream; local 576 BitstreamDecVideo *stream = video->bitstream; local [all...] |
H A D | vlc_dequant.cpp | 23 typedef PV_STATUS(*VlcDecFuncP)(BitstreamDecVideo *stream, Tcoef *pTcoef); 55 BitstreamDecVideo *stream = video->bitstream; local 114 return_status = (*vlcDecCoeff)(stream, &run_level); 387 BitstreamDecVideo *stream = video->bitstream; local 419 return_status = (*vlcDecCoeff)(stream, &run_level); 505 BitstreamDecVideo *stream = video->bitstream; local 560 return_status = (*vlcDecCoeff)(stream, &run_level); 807 BitstreamDecVideo *stream = video->bitstream; local 872 return_status = (*vlcDecCoeff)(stream, &run_level); 945 return_status = (*vlcDecCoeff)(stream, 1069 BitstreamDecVideo *stream = video->bitstream; local [all...] |
H A D | vlc_decode.cpp | 103 PV_STATUS DecodeUserData(BitstreamDecVideo *stream) argument 108 BitstreamReadBits32HC(stream); 109 BitstreamShowBits32(stream, 24, &code); 114 BitstreamReadBits16(stream, 8); 115 BitstreamShowBits32(stream, 24, &code); 116 status = BitstreamCheckEndBuffer(stream); 135 BitstreamDecVideo *stream = video->bitstream; local 164 status = PV_VlcDecMV(stream, &vlc_code_mag); 174 status = PV_VlcDecMV(stream, &vlc_code_mag); 191 status = PV_VlcDecMV(stream, 267 PV_DecodeMBVec(BitstreamDecVideo *stream, MOT *mv_x, MOT *mv_y, int f_code_f) argument 452 PV_VlcDecMV(BitstreamDecVideo *stream, int *mv) argument 503 PV_VlcDecMCBPC_com_intra(BitstreamDecVideo *stream) argument 536 PV_VlcDecMCBPC_com_inter(BitstreamDecVideo *stream) argument 557 PV_VlcDecMCBPC_com_inter_H263(BitstreamDecVideo *stream) argument 590 PV_VlcDecCBPY(BitstreamDecVideo *stream, int intra) argument 628 PV_VlcDecIntraDCPredSize(BitstreamDecVideo *stream, int compnum, uint *DC_size) argument 839 VlcDecTCOEFIntra(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1022 VlcDecTCOEFInter(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1201 VlcDecTCOEFShortHeader(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1261 VlcDecTCOEFShortHeader_AnnexI(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1316 VlcDecTCOEFShortHeader_AnnexT(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1389 VlcDecTCOEFShortHeader_AnnexIT(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1471 RvlcDecTCOEFInter(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1554 RvlcDecTCOEFIntra(BitstreamDecVideo *stream, Tcoef *pTcoef) argument [all...] |
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/base/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | bitstream_io.cpp | 54 BitstreamEncVideo *stream; local 55 stream = (BitstreamEncVideo *) M4VENC_MALLOC(sizeof(BitstreamEncVideo)); 56 if (stream == NULL) 60 stream->bufferSize = bufferSize; 61 stream->bitstreamBuffer = (UChar *) M4VENC_MALLOC(stream->bufferSize * sizeof(UChar)); 62 if (stream->bitstreamBuffer == NULL) 64 M4VENC_FREE(stream); 65 stream = NULL; 68 M4VENC_MEMSET(stream 93 BitstreamCloseEnc(BitstreamEncVideo *stream) argument 120 BitstreamPutBits(BitstreamEncVideo *stream, Int Length, UInt Value) argument 168 BitstreamPutGT16Bits(BitstreamEncVideo *stream, Int Length, ULong Value) argument 207 BitstreamSaveWord(BitstreamEncVideo *stream) argument 257 BitstreamSavePartial(BitstreamEncVideo *stream, Int *fraction) argument 326 BitstreamShortHeaderByteAlignStuffing(BitstreamEncVideo *stream) argument 355 BitstreamMpeg4ByteAlignStuffing(BitstreamEncVideo *stream) argument 760 BitstreamGetPos(BitstreamEncVideo *stream) argument 766 BitstreamEncReset(BitstreamEncVideo *stream) argument 776 BitstreamSetOverrunBuffer(BitstreamEncVideo* stream, UChar* overrunBuffer, Int oBSize, VideoEncData *video) argument 787 BitstreamUseOverrunBuffer(BitstreamEncVideo* stream, Int numExtraBytes) argument [all...] |
H A D | combined_encode.cpp | 118 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/base/media/tests/omxjpegdecoder/ |
H A D | omx_jpeg_decoder.cpp | 99 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/tests/BrowserTestPlugin/jni/ |
H A D | main.cpp | 41 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/core/java/android/net/ |
H A D | LocalSocketImpl.java | 46 * An input stream for local sockets. Needed because we may 100 * An output stream for local sockets. Needed because we may 154 private native FileDescriptor create_native(boolean stream) argument 205 * @param stream true if this should be a stream socket, false for 209 public void create (boolean stream) throws IOException { argument 213 fd = create_native(stream); 283 * Retrieves the input stream for this instance. 285 * @return input stream 304 * Retrieves the output stream fo [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_LocalSocketImpl.cpp | 49 * create_native(boolean stream) 53 socket_create (JNIEnv *env, jobject object, jboolean stream) argument 57 ret = socket(PF_LOCAL, stream ? SOCK_STREAM : SOCK_DGRAM, 0); 545 // Treat this as an end of stream
|
/frameworks/base/libs/rs/ |
H A D | rsElement.cpp | 75 void Element::serialize(OStream *stream) const { 77 stream->addU32((uint32_t)getClassId()); 80 stream->addString(&name); 82 mComponent.serialize(stream); 85 stream->addU32(mFieldCount); 87 stream->addString(&mFields[ct].name); 88 stream->addU32(mFields[ct].arraySize); 89 mFields[ct].e->serialize(stream); 93 Element *Element::createFromStream(Context *rsc, IStream *stream) { argument 95 RsA3DClassID classID = (RsA3DClassID)stream [all...] |
H A D | rsAllocation.cpp | 198 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...] |
/frameworks/base/media/libstagefright/codecs/avc/enc/src/ |
H A D | slice.cpp | 28 AVCEncBitstream *stream = encvid->bitstream; local 140 ue_v(stream, video->mb_skip_run); 161 AVCEncBitstream *stream = encvid->bitstream; local 419 ue_v(stream, video->mb_skip_run); 555 AVCEncBitstream *stream = encvid->bitstream; local 564 status = ue_v(stream, mb_type); 568 status = sub_mb_pred(video, currMB, stream); 572 status = mb_pred(video, currMB, stream) ; 578 status = EncodeCBP(currMB, stream); 584 status = se_v(stream, currM 686 mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument 772 sub_mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument 920 EncodeIntra4x4Mode(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument [all...] |
/frameworks/base/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | DecTestBench.c | 44 /* Global variables for stream handling */ 136 DEBUG(("\t-U NAL unit stream mode\n")); 181 /* check size of the input file -> length of the stream in bytes */ 186 /* allocate memory for stream buffer. if unsuccessful -> exit */ 194 /* read input stream from file to buffer and close input file */ 233 * -> stream information is available for query now */ 271 * "consumed" is computed as difference between the new stream 272 * pointer and old stream pointer */ 286 * "consumed" is computed as difference between the new stream 287 * pointer and old stream pointe 492 u8 *stream; local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Bitmap_Delegate.java | 102 * 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/core/java/android/webkit/ |
H A D | CacheManager.java | 171 public void setInputStream(InputStream stream) { argument 172 this.inStream = stream; 356 * The input stream of the CacheEntry object is initialized and opened and should be closed by 552 // new CacheResult object with a non-null output stream ... 553 // - CacheResult objects returned by getCacheFile() have a null output stream. 554 // - new CacheResult objects have a null output stream and no setter is provided.
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 96 static SkPixelRef* installPixelRef(SkBitmap* bitmap, SkStream* stream, argument 101 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize); 103 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize); 111 // since we "may" create a purgeable imageref, we require the stream be ref'able 114 static jobject doDecode(JNIEnv* env, SkStream* stream, jobject padding, argument 146 SkImageDecoder* decoder = SkImageDecoder::Factory(stream); 191 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode, javaBitmap != NULL)) { 244 pr = installPixelRef(bitmap, stream, sampleSize, doDither); 271 SkStream* stream = CreateJavaInputStreamAdaptor(env, is, storage, 0); local 273 if (stream) { 310 SkFDStream* stream = new SkFDStream(descriptor, weOwnTheFD); local 345 SkStream* stream = new SkMemoryStream(size); local 360 SkStream* stream; local 389 SkStream* stream = new SkMemoryStream(ar.ptr() + offset, length, purgeable); local [all...] |
/frameworks/base/media/libmedia/ |
H A D | IAudioPolicyService.cpp | 133 audio_stream_type_t stream, 141 data.writeInt32(static_cast <uint32_t>(stream)); 151 audio_stream_type_t stream, 157 data.writeInt32(stream); 164 audio_stream_type_t stream, 170 data.writeInt32(stream); 230 virtual status_t initStreamVolume(audio_stream_type_t stream, argument 236 data.writeInt32(static_cast <uint32_t>(stream)); 243 virtual status_t setStreamVolumeIndex(audio_stream_type_t stream, int index) argument 247 data.writeInt32(static_cast <uint32_t>(stream)); 132 getOutput( audio_stream_type_t stream, uint32_t samplingRate, uint32_t format, uint32_t channels, audio_policy_output_flags_t flags) 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 253 getStreamVolumeIndex(audio_stream_type_t stream, int *index) argument 264 getStrategyForStream(audio_stream_type_t stream) argument 273 getDevicesForStream(audio_stream_type_t stream) argument 327 isStreamActive(int stream, uint32_t inPastMs) const argument 427 audio_stream_type_t stream = local 447 uint32_t stream = data.readInt32(); local 458 uint32_t stream = data.readInt32(); local 515 audio_stream_type_t stream = local 525 audio_stream_type_t stream = local 534 audio_stream_type_t stream = local 545 audio_stream_type_t stream = local 553 audio_stream_type_t stream = local 601 int stream = data.readInt32(); local [all...] |
H A D | AudioSystem.cpp | 123 status_t AudioSystem::setStreamVolume(int stream, float value, int output) argument 125 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE; 128 af->setStreamVolume(stream, value, output); 132 status_t AudioSystem::setStreamMute(int stream, bool mute) argument 134 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE; 137 af->setStreamMute(stream, mute); 141 status_t AudioSystem::getStreamVolume(int stream, float* volume, int output) argument 143 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE; 146 *volume = af->streamVolume(stream, output); 150 status_t AudioSystem::getStreamMute(int stream, boo argument 331 getRenderPosition(uint32_t *halFrames, uint32_t *dspFrames, int stream) argument 392 uint32_t stream; local 564 getOutput(audio_stream_type_t stream, uint32_t samplingRate, uint32_t format, uint32_t channels, audio_policy_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 657 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument 666 setStreamVolumeIndex(audio_stream_type_t stream, int index) argument 673 getStreamVolumeIndex(audio_stream_type_t stream, int *index) argument 680 getStrategyForStream(audio_stream_type_t stream) argument 687 getDevicesForStream(audio_stream_type_t stream) argument 726 isStreamActive(int stream, bool* state, uint32_t inPastMs) 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 | 306 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/core/java/android/database/ |
H A D | DatabaseUtils.java | 461 * @param stream the stream to print to 463 public static void dumpCursor(Cursor cursor, PrintStream stream) { argument 464 stream.println(">>>>> Dumping cursor " + cursor); 470 dumpCurrentRow(cursor, stream); 474 stream.println("<<<<<"); 524 * @param stream the stream to print to 526 public static void dumpCurrentRow(Cursor cursor, PrintStream stream) { argument 528 stream [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 717 * @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
|
/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 253 initStreamVolume(int stream, int indexMin, int indexMax) argument 254 setStreamVolumeIndex(int stream, int index) argument 255 getStreamVolumeIndex(int stream) argument 256 getDevicesForStream(int stream) argument [all...] |