Searched defs:stream (Results 151 - 175 of 205) sorted by relevance

123456789

/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp233 static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding, jobject options) { argument
234 // This function takes ownership of the input stream. Since the SkAndroidCodec
235 // will take ownership of the stream, we don't necessarily need to take ownership
237 // we need to make sure that we delete the stream.
238 std::unique_ptr<SkStreamRewindable> streamDeleter(stream);
600 std::unique_ptr<SkStream> stream(CreateJavaInputStreamAdaptor(env, is, storage));
602 if (stream.get()) {
604 SkFrontBufferedStream::Create(stream.release(), SkCodec::MinBufferedBytesNeeded()));
651 // Use a buffered stream. Although an SkFILEStream can be rewound, this
654 std::unique_ptr<SkStreamRewindable> stream(SkFrontBufferedStrea
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp33 AssetStream::AssetStream(SkStream* stream) argument
34 : mStream(stream), mPosition(0) {
56 BufferedStream::BufferedStream(SkStream* stream) argument
57 : mStream(stream) {
145 piex::StreamInterface* stream, const String8& filename,
150 if (!piex::IsRaw(stream)) {
156 piex::Error err = piex::GetPreviewImageData(stream, &image_data);
144 GetExifFromRawImage( piex::StreamInterface* stream, const String8& filename, piex::PreviewImageData& image_data) argument
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationRecord.java262 // prefer audio attributes to stream type
266 // the stream type is valid, use it
271 Log.w(TAG, String.format("Invalid stream type: %d", n.audioStreamType));
652 public boolean isAudioStream(int stream) { argument
653 return getNotification().audioStreamType == stream;
/frameworks/native/libs/gui/
H A DBufferQueueProducer.cpp1307 status_t BufferQueueProducer::setSidebandStream(const sp<NativeHandle>& stream) { argument
1311 mCore->mSidebandStream = stream;
/frameworks/native/libs/gui/bufferqueue/1.0/
H A DH2BGraphicBufferProducer.cpp1143 const sp<NativeHandle>& stream) {
1144 return toStatusT(mBase->setSidebandStream(stream == nullptr ? nullptr : stream->handle()));
1142 setSidebandStream( const sp<NativeHandle>& stream) argument
/frameworks/native/services/vr/hardware_composer/impl/
H A Dvr_hwc.cpp692 buffer_handle_t stream) {
691 setLayerSidebandStream(Display display, Layer layer, buffer_handle_t stream) argument
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp70 // jitter buffer. For a stream at 8000Hz it takes 32 kilobytes. These numbers
73 // Originally a stream does not send packets when it is receive-only or there is
78 // silence packet on the stream for every second. It should be good enough to
79 // keep the stream alive with relatively low resources.
164 ALOGD("stream[%d] is dead", mSocket);
223 ALOGD("stream[%d] is configured as %s %dkHz %dms mode %d", mSocket,
274 ALOGV("stream[%d] skips %d packets", mSocket, skipped);
339 ALOGV("stream[%d] no data", mSocket);
344 // Special case for device stream.
355 ALOGV("stream[
675 add(AudioStream *stream) argument
699 remove(AudioStream *stream) argument
948 AudioStream *stream = NULL; local
1032 remove(JNIEnv *env, jobject thiz, jlong stream) argument
[all...]
/frameworks/rs/script_api/
H A DSpecification.cpp79 stringstream stream(input);
81 while (getline(stream, entry, ',')) {
965 ostringstream stream; local
966 stream << "<a href='" << d->getUrl() << "'>" << name << "</a>";
967 return stream.str();
/frameworks/av/media/libaudioclient/
H A DAudioSystem.cpp159 status_t AudioSystem::setStreamVolume(audio_stream_type_t stream, float value, argument
162 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
165 af->setStreamVolume(stream, value, output);
169 status_t AudioSystem::setStreamMute(audio_stream_type_t stream, bool mute) argument
171 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
174 af->setStreamMute(stream, mute);
178 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, argument
181 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
184 *volume = af->streamVolume(stream, output);
188 status_t AudioSystem::getStreamMute(audio_stream_type_t stream, boo argument
803 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
815 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, const audio_config_t *config, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, audio_port_handle_t *portId) argument
832 startOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
841 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
850 releaseOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
900 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument
909 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument
918 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
927 getStrategyForStream(audio_stream_type_t stream) argument
934 getDevicesForStream(audio_stream_type_t stream) argument
974 isStreamActive(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument
983 isStreamActiveRemotely(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument
993 isSourceActive(audio_source_t stream, bool* state) argument
[all...]
H A DIAudioFlinger.cpp349 virtual status_t setStreamVolume(audio_stream_type_t stream, float value, argument
354 data.writeInt32((int32_t) stream);
361 virtual status_t setStreamMute(audio_stream_type_t stream, bool muted) argument
365 data.writeInt32((int32_t) stream);
371 virtual float streamVolume(audio_stream_type_t stream, audio_io_handle_t output) const argument
375 data.writeInt32((int32_t) stream);
381 virtual bool streamMute(audio_stream_type_t stream) const
385 data.writeInt32((int32_t) stream);
575 virtual status_t invalidateStream(audio_stream_type_t stream) argument
579 data.writeInt32((int32_t) stream);
1088 int stream = data.readInt32(); local
1096 int stream = data.readInt32(); local
1102 int stream = data.readInt32(); local
1109 int stream = data.readInt32(); local
1236 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local
[all...]
H A DIAudioPolicyService.cpp162 audio_stream_type_t stream,
171 data.writeInt32(static_cast <uint32_t>(stream));
190 audio_stream_type_t *stream,
200 if (stream == NULL) {
201 ALOGE("getOutputForAttr(): NULL audio attributes and stream type");
204 if (*stream == AUDIO_STREAM_DEFAULT) {
205 ALOGE("getOutputForAttr unspecified stream type");
224 if (stream == NULL) {
228 data.writeInt32(*stream);
245 if (stream !
161 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
187 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, const audio_config_t *config, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, audio_port_handle_t *portId) argument
252 startOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
265 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
278 releaseOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
367 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument
380 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument
393 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
408 getStrategyForStream(audio_stream_type_t stream) argument
417 getDevicesForStream(audio_stream_type_t stream) argument
471 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument
481 isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs) const argument
908 audio_stream_type_t stream = local
938 audio_stream_type_t stream = AUDIO_STREAM_DEFAULT; local
966 audio_stream_type_t stream = local
978 audio_stream_type_t stream = local
990 audio_stream_type_t stream = (audio_stream_type_t)data.readInt32(); local
1047 audio_stream_type_t stream = local
1057 audio_stream_type_t stream = local
1069 audio_stream_type_t stream = local
1081 audio_stream_type_t stream = local
1089 audio_stream_type_t stream = local
1137 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local
1145 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DLiveSession.cpp335 StreamType stream, sp<ABuffer> *accessUnit) {
337 sp<AnotherPacketSource> packetSource = mPacketSources.valueFor(stream);
339 ssize_t streamIdx = typeToIndex(stream);
343 const char *streamStr = getNameForStream(stream);
382 if (stream == STREAMTYPE_AUDIO || stream == STREAMTYPE_VIDEO) {
437 } else if (stream == STREAMTYPE_SUBTITLES) {
446 } else if (stream == STREAMTYPE_METADATA) {
465 status_t LiveSession::getStreamFormatMeta(StreamType stream, sp<MetaData> *meta) { argument
466 if (!(mStreamMask & stream)) {
334 dequeueAccessUnit( StreamType stream, sp<ABuffer> *accessUnit) argument
542 StreamType stream = indexToType(i); local
608 StreamType stream = indexToType(i); local
1965 swapPacketSource(StreamType stream) argument
1997 StreamType stream = indexToType(idx); local
2022 StreamType stream = (StreamType) (extraStreams & ~(extraStreams - 1)); local
[all...]
H A DPlaylistFetcher.cpp42 #define FSLOGV(stream, fmt, ...) ALOGV("[fetcher-%d] [%s] " fmt, mFetcherID, \
43 LiveSession::getNameForStream(stream), ##__VA_ARGS__)
854 // Use min stream duration, but ignore streams that never have any packet
855 // enqueued to prevent us from waiting on a non-existent stream;
1451 // If we don't see a stream in the program table after fetching a full ts segment
1468 ALOGW("MPEG2 Transport stream does not contain %s data.",
1489 ALOGE("MPEG2 transport stream is not an even multiple of 188 "
1731 const LiveSession::StreamType stream = mPacketSources.keyAt(i); local
1732 if (stream == LiveSession::STREAMTYPE_SUBTITLES) {
1736 if (stream
1789 const LiveSession::StreamType stream = mPacketSources.keyAt(i); local
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DATSParser.cpp60 // Pass to appropriate stream according to pid, and set event if it's a PES
399 // we already checked above the stream count matches
412 // change the PID of the stream, and add it back
550 ALOGI("uh oh. stream PIDs have changed.");
560 sp<Stream> stream = mStreams.editValueAt(i);
562 ALOGI("PID 0x%08x => type 0x%02x", stream->pid(), stream->type());
593 sp<Stream> stream = new Stream( local
597 stream->signalNewSampleAesKey(mSampleAesKeyItem);
601 mStreams.add(info.mPID, stream);
651 const sp<Stream> &stream = mStreams.valueAt(i); local
694 sp<Stream> &stream = mStreams.editValueAt(i); local
[all...]
/frameworks/av/services/audioflinger/
H A DEffects.cpp489 sp<StreamHalInterface> stream = thread->stream(); local
490 if (stream != 0) {
491 status_t result = stream->addEffect(mEffectInterface);
587 sp<StreamHalInterface> stream = thread->stream(); local
588 if (stream != 0) {
589 status_t result = stream->removeEffect(mEffectInterface);
/frameworks/base/core/java/android/app/
H A DAppOpsManager.java1453 * Set a non-persisted restriction on an audio operation at a stream-level.
1753 * Like {@link #checkOp} but at a stream-level for audio operations.
1756 public int checkAudioOp(int op, int stream, int uid, String packageName) { argument
1758 final int mode = mService.checkAudioOperation(op, stream, uid, packageName);
1773 public int checkAudioOpNoThrow(int op, int stream, int uid, String packageName) { argument
1775 return mService.checkAudioOperation(op, stream, uid, packageName);
/frameworks/base/core/java/android/util/proto/
H A DProtoOutputStream.java30 * Class to write to a protobuf stream.
39 * To retrieve the encoded protobuf stream, call getBytes().
42 * stream as the top-level objects are finished.
186 * Our stream. If there is one.
245 public ProtoOutputStream(OutputStream stream) { argument
247 mStream = stream;
2398 * Write a field tage to the stream.
2611 * Write remaining data to the output stream. If there is no output stream,
2637 throw new RuntimeException("Error flushing proto to stream", e
[all...]
/frameworks/base/core/java/android/widget/
H A DImageView.java144 /** Whether to pass Resources when creating the source from a stream. */
949 InputStream stream = null;
951 stream = mContext.getContentResolver().openInputStream(uri);
953 ? getResources() : null, null, stream, null);
957 if (stream != null) {
959 stream.close();
1640 protected void encodeProperties(@NonNull ViewHierarchyEncoder stream) { argument
1641 super.encodeProperties(stream);
1642 stream.addProperty("layout:baseline", getBaseline());
H A DProgressBar.java2016 protected void encodeProperties(@NonNull ViewHierarchyEncoder stream) { argument
2017 super.encodeProperties(stream);
2019 stream.addProperty("progress:max", getMax());
2020 stream.addProperty("progress:progress", getProgress());
2021 stream.addProperty("progress:secondaryProgress", getSecondaryProgress());
2022 stream.addProperty("progress:indeterminate", isIndeterminate());
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DProcessStats.java847 static byte[] readFully(InputStream stream, int[] outLen) throws IOException { argument
849 final int initialAvail = stream.available();
852 int amt = stream.read(data, pos, data.length-pos);
872 public void read(InputStream stream) { argument
875 byte[] raw = readFully(stream, len);
879 stream.close();
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java1221 * @param stream The outputstream to write the compressed data.
1222 * @return true if successfully compressed to the specified stream.
1224 public boolean compress(CompressFormat format, int quality, OutputStream stream) { argument
1227 if (stream == null) {
1236 quality, stream, new byte[WORKING_COMPRESS_STORAGE]);
1932 int quality, OutputStream stream,
1931 nativeCompress(long nativeBitmap, int format, int quality, OutputStream stream, byte[] tempStorage) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeDialogControllerImpl.java144 protected void setAudioManagerStreamVolume(int stream, int level, int flag) { argument
145 mAudio.setStreamVolume(stream, level, flag);
148 protected int getAudioManagerStreamVolume(int stream) { argument
149 return mAudio.getLastAudibleStreamVolume(stream);
152 protected int getAudioManagerStreamMaxVolume(int stream) { argument
153 return mAudio.getStreamMaxVolume(stream);
156 protected int getAudioManagerStreamMinVolume(int stream) { argument
157 return mAudio.getStreamMinVolume(stream);
257 public void setStreamMute(int stream, boolean mute) { argument
259 mWorker.obtainMessage(W.SET_STREAM_MUTE, stream, mut
262 setStreamVolume(int stream, int level) argument
267 setActiveStream(int stream) argument
308 checkRoutedToBluetoothW(int stream) argument
321 onVolumeChangedW(int stream, int flags) argument
362 streamStateW(int stream) argument
388 updateStreamRoutedToBluetoothW(int stream, boolean routedToBluetooth) argument
397 updateStreamLevelW(int stream, int level) argument
407 isLogWorthy(int stream) argument
420 updateStreamMuteW(int stream, boolean muted) argument
433 isRinger(int stream) argument
491 onSetStreamMuteW(int stream, boolean mute) argument
496 onSetStreamVolumeW(int stream, int level) argument
505 onSetActiveStreamW(int stream) argument
940 setStreamVolume(int stream, int level) argument
949 findToken(int stream) argument
[all...]
H A DVolumeDialogImpl.java305 public void setStreamImportant(int stream, boolean important) { argument
306 mHandler.obtainMessage(H.SET_STREAM_IMPORTANT, stream, important ? 1 : 0).sendToTarget();
321 private void addRow(int stream, int iconRes, int iconMuteRes, boolean important) { argument
322 addRow(stream, iconRes, iconMuteRes, important, false);
325 private void addRow(int stream, int iconRes, int iconMuteRes, boolean important, argument
328 initRow(row, stream, iconRes, iconMuteRes, important);
346 initRow(row, row.stream, row.iconRes, row.iconMuteRes, row.important);
358 if (row.stream == mActiveStream) {
365 private VolumeRow findRow(int stream) { argument
367 if (row.stream
396 initRow(final VolumeRow row, final int stream, int iconRes, int iconMuteRes, boolean important) argument
906 setStreamImportantH(int stream, boolean important) argument
1280 private int stream; field in class:VolumeDialogImpl.VolumeRow
[all...]
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionRecord.java252 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs);
253 postAdjustLocalVolume(stream, direction, flags, packageName, uid, useSuggested,
287 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs);
288 mAudioManagerInternal.setStreamVolumeForUid(stream, value, flags, packageName, uid);
351 * Get the local audio stream being used. Only valid if playback type is
354 * @return The audio stream the session is using.
459 private void postAdjustLocalVolume(final int stream, final int direction, final int flags, argument
466 if (AudioSystem.isStreamActive(stream, 0)) {
467 mAudioManagerInternal.adjustSuggestedStreamVolumeForUid(stream, direction,
475 mAudioManagerInternal.adjustStreamVolumeForUid(stream, directio
[all...]
H A DMediaSessionService.java1152 * @param stream stream type to adjust volume.
1156 public void dispatchVolumeKeyEvent(KeyEvent keyEvent, int stream, boolean musicOnly) { argument
1178 dispatchVolumeKeyEventLocked(keyEvent, stream, musicOnly);
1187 mCurrentFullUserRecord.mInitialDownVolumeStream = stream;
1215 dispatchVolumeKeyEventLocked(keyEvent, stream, musicOnly);
1228 KeyEvent keyEvent, int stream, boolean musicOnly) {
1262 dispatchAdjustVolumeLocked(stream, direction, flags);
1265 dispatchAdjustVolumeLocked(stream, AudioManager.ADJUST_TOGGLE_MUTE, flags);
1538 // we only handle public stream type
1227 dispatchVolumeKeyEventLocked( KeyEvent keyEvent, int stream, boolean musicOnly) argument
[all...]

Completed in 7753 milliseconds

123456789