Searched refs:stream (Results 26 - 50 of 279) sorted by relevance

1234567891011>>

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DParserFactory.java56 InputStream stream = new FileInputStream(f);
57 return create(stream, f.getName(), f.length());
61 public static XmlPullParser create(@NonNull InputStream stream, @Nullable String name) argument
63 return create(stream, name, -1);
67 private static XmlPullParser create(@NonNull InputStream stream, @Nullable String name, argument
71 stream = readAndClose(stream, name, size);
73 parser.setInput(stream, ENCODING);
89 private static InputStream readAndClose(@NonNull InputStream stream, @Nullable String name, argument
98 BufferedInputStream bufferedStream = new BufferedInputStream(stream);
[all...]
/frameworks/rs/api/
H A DUtilities.cpp130 stringstream stream; local
131 stream << "0x" << std::hex << hash << "l";
132 return stream.str();
153 // Add the value to the stream, prefixed with a ", " if needed.
154 static void addCommaSeparated(const string& value, ostringstream* stream, bool* needComma) { argument
159 *stream << ", ";
161 *stream << value;
167 ostringstream stream; local
173 addCommaSeparated(userAttribute.substr(1), &stream, &needComma);
175 addCommaSeparated(userAttribute, &stream,
[all...]
H A DGenerateDocumentation.cpp67 // If prefix starts input, copy it to stream and remove it from input.
68 static void skipPrefix(ostringstream* stream, string* input, const string& prefix) { argument
74 *stream << prefix;
98 ostringstream stream; local
99 skipPrefix(&stream, &s, "const ");
100 skipPrefix(&stream, &s, "volatile ");
111 stream << anchor;
114 stream << "*";
116 return stream.str();
120 ostringstream stream; local
246 writeSummaryTableEntry(ostream* stream, Definition* definition, DeprecatedSelector deprecatedSelector) argument
310 ostringstream stream; local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPicture.java132 * Create a new picture (already recorded) from the data in the stream. This
139 * input stream cannot be replayed on a hardware accelerated canvas.
147 public static Picture createFromStream(InputStream stream) { argument
148 return new Picture(nativeCreateFromStream(stream, new byte[WORKING_STREAM_STORAGE]));
152 * Write the picture contents to a stream. The data can be used to recreate
154 * The resulting stream is NOT to be persisted across device restarts as
159 * input stream cannot be replayed on a hardware accelerated canvas.
166 public void writeToStream(OutputStream stream) { argument
168 if (stream == null) {
171 if (!nativeWriteToStream(mNativePicture, stream,
179 nativeCreateFromStream(InputStream stream, byte[] storage) argument
185 nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage) argument
[all...]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dvlc_encode.cpp106 AVCEnc_Status EncodeCBP(AVCMacroblock *currMB, AVCEncBitstream *stream) argument
120 status = ue_v(stream, codeNum);
125 AVCEnc_Status ce_TotalCoeffTrailingOnes(AVCEncBitstream *stream, int TrailingOnes, int TotalCoeff, int nC) argument
169 status = BitstreamWriteBits(stream, 6, code);
188 status = BitstreamWriteBits(stream, len, code);
194 AVCEnc_Status ce_TotalCoeffTrailingOnesChromaDC(AVCEncBitstream *stream, int TrailingOnes, int TotalCoeff) argument
209 status = BitstreamWriteBits(stream, len, code);
215 AVCEnc_Status ce_TotalZeros(AVCEncBitstream *stream, int total_zeros, int TotalCoeff) argument
260 status = BitstreamWriteBits(stream, len, code);
266 AVCEnc_Status ce_TotalZerosChromaDC(AVCEncBitstream *stream, in argument
294 ce_RunBefore(AVCEncBitstream *stream, int run_before, int zerosLeft) argument
[all...]
H A Dresidual.cpp25 AVCEncBitstream *stream = encvid->bitstream; local
35 ue_v(stream, 25);
37 i = stream->bit_left & 0x7;
40 BitstreamWriteBits(stream, 0, i);
58 status = BitstreamWriteBits(stream, 32, code);
67 status = BitstreamWriteBits(stream, 16, code);
91 status = BitstreamWriteBits(stream, 32, code);
100 status = BitstreamWriteBits(stream, 16, code);
124 status = BitstreamWriteBits(stream, 32, code);
133 status = BitstreamWriteBits(stream, 1
152 AVCEncBitstream *stream = encvid->bitstream; local
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Ddatapart_decode.cpp43 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 Dcombined_decode.cpp47 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...]
/frameworks/base/services/core/java/com/android/server/updates/
H A DSELinuxPolicyInstallReceiver.java70 private void installFile(File destination, BufferedInputStream stream, int length) argument
73 stream.read(chunk, 0, length);
85 BufferedInputStream stream = new BufferedInputStream(new FileInputStream(updateContent));
88 int[] chunkLengths = readChunkLengths(stream);
91 installFile(new File(tmp, versionPath), stream, chunkLengths[0]);
92 installFile(new File(tmp, macPermissionsPath), stream, chunkLengths[1]);
93 installFile(new File(tmp, seappContextsPath), stream, chunkLengths[2]);
94 installFile(new File(tmp, propertyContextsPath), stream, chunkLengths[3]);
95 installFile(new File(tmp, fileContextsPath), stream, chunkLengths[4]);
96 installFile(new File(tmp, sepolicyPath), stream, chunkLength
[all...]
/frameworks/ex/framesequence/jni/
H A DRegistry.cpp35 const RegistryEntry* Registry::Find(Stream* stream) { argument
38 if (stream->getRawBuffer() != NULL) {
48 headerSize = stream->peek(header, headerSize);
/frameworks/wilhelm/src/desktop/
H A DSDL.c24 static void SDLCALL SDL_callback(void *context, Uint8 *stream, int len) argument
36 IOutputMixExt_FillBuffer(OutputMixExt, stream, (SLuint32) len);
38 memset(stream, 0, (size_t) len);
/frameworks/base/core/java/android/webkit/
H A DPluginData.java26 * HTTP response. For this, it needs a stream with the response body,
38 * The content stream.
61 * @param stream The stream that supplies content for the plugin.
73 InputStream stream,
77 mStream = stream;
84 * Returns the input stream that contains the plugin content.
72 PluginData( InputStream stream, long length, Map<String, String[]> headers, int code) argument
/frameworks/base/core/jni/android/graphics/
H A DPicture.h48 static Picture* CreateFromStream(SkStream* stream);
50 void serialize(SkWStream* stream) const;
H A DBitmapRegionDecoder.cpp72 // Takes ownership of the SkStreamRewindable. For consistency, deletes stream even
74 static jobject createBitmapRegionDecoder(JNIEnv* env, SkStreamRewindable* stream) { argument
75 SkImageDecoder* decoder = SkImageDecoder::Factory(stream);
78 SkDELETE(stream);
87 // This call passes ownership of stream to the decoder, or deletes on failure.
88 if (!decoder->buildTileIndex(stream, &width, &height)) {
108 SkMemoryStream* stream = new SkMemoryStream(ar.ptr() + offset, length, true); local
110 // the decoder owns the stream.
111 jobject brd = createBitmapRegionDecoder(env, stream);
128 SkMemoryStream* stream local
141 SkStreamRewindable* stream = CopyJavaInputStream(env, is, storage); local
154 SkMemoryStream* stream = CopyAssetToStream(asset); local
[all...]
H A DPicture.cpp67 Picture* Picture::CreateFromStream(SkStream* stream) { argument
70 SkPicture* skPicture = SkPicture::CreateFromStream(stream);
82 void Picture::serialize(SkWStream* stream) const {
85 tempPict->serialize(stream);
88 mPicture->serialize(stream);
93 empty->serialize(stream);
/frameworks/rs/
H A DrsAnimation.cpp24 void Animation::serialize(Context *rsc, OStream *stream) const {
27 Animation *Animation::createFromStream(Context *rsc, IStream *stream) { argument
H A DrsComponent.cpp259 void Component::serialize(OStream *stream) const {
260 stream->addU8((uint8_t)mType);
261 stream->addU8((uint8_t)mKind);
262 stream->addU8((uint8_t)(mNormalized ? 1 : 0));
263 stream->addU32(mVectorSize);
266 void Component::loadFromStream(IStream *stream) { argument
267 mType = (RsDataType)stream->loadU8();
268 mKind = (RsDataKind)stream->loadU8();
269 uint8_t temp = stream->loadU8();
271 mVectorSize = stream
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DAtomicFile.java116 * Call when you have successfully finished writing to the stream
119 * will return the new file stream.
134 * Call when you have failed for some reason at writing to the stream
136 * write stream, and roll back to the previous state of the file.
176 FileInputStream stream = openRead();
179 int avail = stream.available();
182 int amt = stream.read(data, pos, data.length-pos);
191 avail = stream.available();
199 stream.close();
203 static boolean sync(FileOutputStream stream) { argument
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImplLegacy.cpp131 audio_io_handle_t AudioPolicyService::getOutput(audio_stream_type_t stream, argument
138 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) {
146 return mpAudioPolicy->get_output(mpAudioPolicy, stream, samplingRate,
151 audio_stream_type_t stream,
154 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) {
161 // create audio processors according to stream
168 status_t status = audioPolicyEffects->addOutputSessionEffects(output, stream, session);
175 return mpAudioPolicy->start_output(mpAudioPolicy, output, stream, session);
179 audio_stream_type_t stream,
182 if (uint32_t(stream) >
150 startOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
178 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
193 doStopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
214 releaseOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
330 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument
348 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument
372 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
393 getStrategyForStream(audio_stream_type_t stream) argument
406 getDevicesForStream(audio_stream_type_t stream) argument
455 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument
467 isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs) const argument
565 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session __unused, audio_stream_type_t *stream, uid_t uid __unused, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId __unused, const audio_offload_info_t *offloadInfo) argument
[all...]
H A DAudioPolicyInterfaceImpl.cpp130 audio_io_handle_t AudioPolicyService::getOutput(audio_stream_type_t stream, argument
137 if (uint32_t(stream) >= AUDIO_STREAM_PUBLIC_CNT) {
145 return mAudioPolicyManager->getOutput(stream, samplingRate,
152 audio_stream_type_t *stream,
175 return mAudioPolicyManager->getOutputForAttr(attr, output, session, stream, uid, samplingRate,
180 audio_stream_type_t stream,
183 if (uint32_t(stream) >= AUDIO_STREAM_CNT) {
196 // create audio processors according to stream
197 status_t status = audioPolicyEffects->addOutputSessionEffects(output, stream, session);
203 return mAudioPolicyManager->startOutput(output, stream, sessio
149 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
179 startOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
206 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
221 doStopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
242 releaseOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
253 doReleaseOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
392 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument
410 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument
429 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
445 getStrategyForStream(audio_stream_type_t stream) argument
458 getDevicesForStream(audio_stream_type_t stream) argument
507 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument
519 isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs) const argument
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioOutputDescriptor.cpp39 // clear usage count for all stream types
90 void AudioOutputDescriptor::changeRefCount(audio_stream_type_t stream, argument
93 if ((delta + (int)mRefCount[stream]) < 0) {
94 ALOGW("changeRefCount() invalid delta %d for stream %d, refCount %d",
95 delta, stream, mRefCount[stream]);
96 mRefCount[stream] = 0;
99 mRefCount[stream] += delta;
100 ALOGV("changeRefCount() stream %d, count %d", stream, mRefCoun
120 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs, nsecs_t sysTime) const argument
145 setVolume(float volume, audio_stream_type_t stream, audio_devices_t device __unused, uint32_t delayMs, bool force) argument
299 changeRefCount(audio_stream_type_t stream, int delta) argument
370 setVolume(float volume, audio_stream_type_t stream, audio_devices_t device, uint32_t delayMs, bool force) argument
393 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument
405 isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs) const argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeDialogController.java231 public void setStreamMute(int stream, boolean mute) { argument
233 mWorker.obtainMessage(W.SET_STREAM_MUTE, stream, mute ? 1 : 0).sendToTarget();
236 public void setStreamVolume(int stream, int level) { argument
238 mWorker.obtainMessage(W.SET_STREAM_VOLUME, stream, level).sendToTarget();
241 public void setActiveStream(int stream) { argument
243 mWorker.obtainMessage(W.SET_ACTIVE_STREAM, stream, 0).sendToTarget();
274 private boolean checkRoutedToBluetoothW(int stream) { argument
276 if (stream == AudioManager.STREAM_MUSIC) {
282 changed |= updateStreamRoutedToBluetoothW(stream, routedToBluetooth);
287 private void onVolumeChangedW(int stream, in argument
327 streamStateW(int stream) argument
354 updateStreamRoutedToBluetoothW(int stream, boolean routedToBluetooth) argument
363 updateStreamLevelW(int stream, int level) argument
373 isLogWorthy(int stream) argument
386 updateStreamMuteW(int stream, boolean muted) argument
399 isRinger(int stream) argument
464 onSetStreamMuteW(int stream, boolean mute) argument
469 onSetStreamVolumeW(int stream, int level) argument
478 onSetActiveStreamW(int stream) argument
895 setStreamVolume(int stream, int level) argument
904 findToken(int stream) argument
[all...]
/frameworks/av/services/audiopolicy/
H A DAudioPolicyInterface.h47 // - process volume control requests: the stream volume is converted from an index value (received from UI) to a float value
99 // request an output appropriate for playback of the supplied stream type and parameters
100 virtual audio_io_handle_t getOutput(audio_stream_type_t stream,
109 audio_stream_type_t *stream,
117 // indicates to the audio policy manager that the output starts being used by corresponding stream.
119 audio_stream_type_t stream,
121 // indicates to the audio policy manager that the output stops being used by corresponding stream.
123 audio_stream_type_t stream,
127 audio_stream_type_t stream,
155 // initialises stream volum
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
H A DEngine.h64 virtual routing_strategy getStrategyForStream(audio_stream_type_t stream) argument
66 return mPolicyEngine->getPropertyForKey<routing_strategy, audio_stream_type_t>(stream);
92 virtual status_t initStreamVolume(audio_stream_type_t stream, argument
95 return mPolicyEngine->initStreamVolume(stream, indexMin, indexMax);
101 audio_stream_type_t stream,
104 return mPolicyEngine->volIndexToDb(deviceCategory, stream, indexInUi);
121 virtual status_t addStream(const std::string &name, audio_stream_type_t stream) argument
123 return mPolicyEngine->add<audio_stream_type_t>(name, stream);
138 virtual bool setStrategyForStream(const audio_stream_type_t &stream, argument
142 stream);
100 volIndexToDb(Volume::device_category deviceCategory, audio_stream_type_t stream, int indexInUi) argument
144 setVolumeProfileForStream(const audio_stream_type_t &stream, Volume::device_category deviceCategory, const VolumeCurvePoints &points) argument
[all...]
/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.h66 virtual routing_strategy getStrategyForStream(audio_stream_type_t stream) argument
68 return mPolicyEngine->getStrategyForStream(stream);
96 virtual status_t initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument
98 return mPolicyEngine->initStreamVolume(stream, indexMin, indexMax);
105 audio_stream_type_t stream,int indexInUi)
107 return mPolicyEngine->volIndexToDb(deviceCategory, stream, indexInUi);
139 routing_strategy getStrategyForStream(audio_stream_type_t stream);
145 audio_stream_type_t stream, int indexInUi);
146 status_t initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax);
104 volIndexToDb(Volume::device_category deviceCategory, audio_stream_type_t stream,int indexInUi) argument

Completed in 506 milliseconds

1234567891011>>