/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | mp4enc_api.cpp | 725 video->bitstream1 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 1*/ 727 video->bitstream2 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 2*/ 729 video->bitstream3 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 3*/ 909 pVol->stream = (BitstreamEncVideo *)M4VENC_MALLOC(sizeof(BitstreamEncVideo)); /* allocate BitstreamEncVideo Instance */ 910 if (pVol->stream == NULL) goto CLEAN_UP; 1263 if (video->vol[idx]->stream) 1264 M4VENC_FREE(video->vol[idx]->stream); 1364 if (currVol->stream->bitstreamBuffer != video->overrunBuffer) // not used 1449 *size = video->vol[0]->stream->byteCount; 1462 /* Initialize Vol stream structur 2442 BitstreamEncVideo *stream = video->bitstream1; local 2605 BitstreamEncVideo *stream = currVol->stream; local [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.h | 145 virtual status_t setStreamVolume(audio_stream_type_t stream, float value, 147 virtual status_t setStreamMute(audio_stream_type_t stream, bool muted); 149 virtual float streamVolume(audio_stream_type_t stream, 151 virtual bool streamMute(audio_stream_type_t stream) const; 193 virtual status_t invalidateStream(audio_stream_type_t stream); 547 bool streamMute_l(audio_stream_type_t stream) const 548 { return mStreamTypes[stream].mute; } 549 // no range check, doesn't check per-thread stream volume, AudioFlinger::mLock held 550 float streamVolume_l(audio_stream_type_t stream) const 551 { return mStreamTypes[stream] 611 audio_stream_in_t* const stream; member in struct:android::AudioFlinger::AudioStreamIn [all...] |
H A D | Effects.cpp | 457 audio_stream_t *stream = thread->stream(); local 458 if (stream != NULL) { 459 stream->add_audio_effect(stream, mEffectInterface); 537 audio_stream_t *stream = thread->stream(); local 538 if (stream != NULL) { 539 stream->remove_audio_effect(stream, mEffectInterfac [all...] |
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyService.cpp | 477 ALOGV("AudioCommandThread() processing start tone %d on stream %d", 496 ALOGV("AudioCommandThread() processing set volume stream %d, \ 701 audio_stream_type_t stream) 707 data->mStream = stream; 709 ALOGV("AudioCommandThread() adding tone start type %d, stream %d", type, stream); 721 status_t AudioPolicyService::AudioCommandThread::volumeCommand(audio_stream_type_t stream, argument 729 data->mStream = stream; 734 ALOGV("AudioCommandThread() adding set volume stream %d, volume %f, output %d", 735 stream, volum 700 startToneCommand(ToneGenerator::tone_type type, audio_stream_type_t stream) argument 767 stopOutputCommand(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument 782 releaseOutputCommand(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument 1110 setStreamVolume(audio_stream_type_t stream, float volume, audio_io_handle_t output, int delayMs) argument 1119 startTone(audio_policy_tone_t tone, audio_stream_type_t stream) argument [all...] |
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 477 * @param stream the stream to print to 479 public static void dumpCursor(Cursor cursor, PrintStream stream) { argument 480 stream.println(">>>>> Dumping cursor " + cursor); 486 dumpCurrentRow(cursor, stream); 490 stream.println("<<<<<"); 540 * @param stream the stream to print to 542 public static void dumpCurrentRow(Cursor cursor, PrintStream stream) { argument 544 stream [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 227 static jobject doDecode(JNIEnv* env, SkStreamRewindable* stream, jobject padding, jobject options) { argument 228 // This function takes ownership of the input stream. Since the SkAndroidCodec 229 // will take ownership of the stream, we don't necessarily need to take ownership 231 // we need to make sure that we delete the stream. 232 std::unique_ptr<SkStreamRewindable> streamDeleter(stream); 547 std::unique_ptr<SkStream> stream(CreateJavaInputStreamAdaptor(env, is, storage)); 549 if (stream.get()) { 551 SkFrontBufferedStream::Create(stream.release(), SkCodec::MinBufferedBytesNeeded())); 599 // Use a buffered stream. Although an SkFILEStream can be rewound, this 602 std::unique_ptr<SkStreamRewindable> stream(SkFrontBufferedStrea [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_Utils.cpp | 33 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/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWC2.cpp | 1042 Error Layer::setSidebandStream(const native_handle_t* stream) argument 1050 mDisplayId, mId, stream);
|
/frameworks/opt/net/voip/src/jni/rtp/ |
H A D | AudioGroup.cpp | 70 // 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/api/ |
H A D | Specification.cpp | 79 stringstream stream(input); 81 while (getline(stream, entry, ',')) { 962 ostringstream stream; local 963 stream << "<a href='" << d->getUrl() << "'>" << name << "</a>"; 964 return stream.str();
|
/frameworks/support/v4/java/android/support/v4/media/session/ |
H A D | MediaControllerCompat.java | 688 * Move to a new location in the media stream. 764 // TODO update audio stream with AudioAttributes support version 770 PlaybackInfo(int type, int stream, int control, int max, int current) { argument 772 mAudioStream = stream; 792 * Get the stream this is currently controlling volume on. When the volume 796 * @return The stream this session is playing on.
|
/frameworks/av/media/libmedia/ |
H A D | AudioSystem.cpp | 156 status_t AudioSystem::setStreamVolume(audio_stream_type_t stream, float value, argument 159 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE; 162 af->setStreamVolume(stream, value, output); 166 status_t AudioSystem::setStreamMute(audio_stream_type_t stream, bool mute) argument 168 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE; 171 af->setStreamMute(stream, mute); 175 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, argument 178 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE; 181 *volume = af->streamVolume(stream, output); 185 status_t AudioSystem::getStreamMute(audio_stream_type_t stream, boo argument 778 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 790 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 809 startOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument 818 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument 827 releaseOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument 878 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument 887 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument 896 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument 905 getStrategyForStream(audio_stream_type_t stream) argument 912 getDevicesForStream(audio_stream_type_t stream) argument 952 isStreamActive(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument 961 isStreamActiveRemotely(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument 971 isSourceActive(audio_source_t stream, bool* state) argument [all...] |
H A D | IAudioFlinger.cpp | 345 virtual status_t setStreamVolume(audio_stream_type_t stream, float value, argument 350 data.writeInt32((int32_t) stream); 357 virtual status_t setStreamMute(audio_stream_type_t stream, bool muted) argument 361 data.writeInt32((int32_t) stream); 367 virtual float streamVolume(audio_stream_type_t stream, audio_io_handle_t output) const argument 371 data.writeInt32((int32_t) stream); 377 virtual bool streamMute(audio_stream_type_t stream) const 381 data.writeInt32((int32_t) stream); 571 virtual status_t invalidateStream(audio_stream_type_t stream) argument 575 data.writeInt32((int32_t) stream); 1058 int stream = data.readInt32(); local 1066 int stream = data.readInt32(); local 1072 int stream = data.readInt32(); local 1079 int stream = data.readInt32(); local 1206 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local [all...] |
H A D | IAudioPolicyService.cpp | 148 audio_stream_type_t stream, 157 data.writeInt32(static_cast <uint32_t>(stream)); 176 audio_stream_type_t *stream, 188 if (stream == NULL) { 189 ALOGE("getOutputForAttr(): NULL audio attributes and stream type"); 192 if (*stream == AUDIO_STREAM_DEFAULT) { 193 ALOGE("getOutputForAttr unspecified stream type"); 208 if (stream == NULL) { 212 data.writeInt32(*stream); 236 if (stream ! 147 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 173 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 242 startOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument 255 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument 268 releaseOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument 354 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument 367 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument 380 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument 395 getStrategyForStream(audio_stream_type_t stream) argument 404 getDevicesForStream(audio_stream_type_t stream) argument 458 isStreamActive(audio_stream_type_t stream, uint32_t inPastMs) const argument 468 isStreamActiveRemotely(audio_stream_type_t stream, uint32_t inPastMs) const argument 868 audio_stream_type_t stream = local 898 audio_stream_type_t stream = AUDIO_STREAM_DEFAULT; local 929 audio_stream_type_t stream = local 941 audio_stream_type_t stream = local 953 audio_stream_type_t stream = (audio_stream_type_t)data.readInt32(); local 1008 audio_stream_type_t stream = local 1018 audio_stream_type_t stream = local 1030 audio_stream_type_t stream = local 1042 audio_stream_type_t stream = local 1050 audio_stream_type_t stream = local 1098 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local 1106 audio_stream_type_t stream = (audio_stream_type_t) data.readInt32(); local [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 340 StreamType stream, sp<ABuffer> *accessUnit) { 342 sp<AnotherPacketSource> packetSource = mPacketSources.valueFor(stream); 344 ssize_t streamIdx = typeToIndex(stream); 348 const char *streamStr = getNameForStream(stream); 387 if (stream == STREAMTYPE_AUDIO || stream == STREAMTYPE_VIDEO) { 442 } else if (stream == STREAMTYPE_SUBTITLES) { 451 } else if (stream == STREAMTYPE_METADATA) { 470 status_t LiveSession::getStreamFormat(StreamType stream, sp<AMessage> *format) { argument 471 if (!(mStreamMask & stream)) { 339 dequeueAccessUnit( StreamType stream, sp<ABuffer> *accessUnit) argument 539 StreamType stream = indexToType(i); local 605 StreamType stream = indexToType(i); local 1950 swapPacketSource(StreamType stream) argument 1982 StreamType stream = indexToType(idx); local 2007 StreamType stream = (StreamType) (extraStreams & ~(extraStreams - 1)); local [all...] |
H A D | PlaylistFetcher.cpp | 42 #define FSLOGV(stream, fmt, ...) ALOGV("[fetcher-%d] [%s] " fmt, mFetcherID, \ 43 LiveSession::getNameForStream(stream), ##__VA_ARGS__) 804 // Use min stream duration, but ignore streams that never have any packet 805 // enqueued to prevent us from waiting on a non-existent stream; 1372 // If we don't see a stream in the program table after fetching a full ts segment 1389 ALOGW("MPEG2 Transport stream does not contain %s data.", 1410 ALOGE("MPEG2 transport stream is not an even multiple of 188 " 1647 const LiveSession::StreamType stream = mPacketSources.keyAt(i); local 1648 if (stream == LiveSession::STREAMTYPE_SUBTITLES) { 1652 if (stream 1705 const LiveSession::StreamType stream = mPacketSources.keyAt(i); local [all...] |
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | ATSParser.cpp | 57 // Pass to appropriate stream according to pid, and set event if it's a PES 331 // we already checked above the stream count matches 344 // change the PID of the stream, and add it back 455 ALOGI("uh oh. stream PIDs have changed."); 465 sp<Stream> stream = mStreams.editValueAt(i); 467 ALOGI("PID 0x%08x => type 0x%02x", stream->pid(), stream->type()); 493 sp<Stream> stream = new Stream( local 496 mStreams.add(info.mPID, stream); 542 const sp<Stream> &stream local [all...] |
/frameworks/base/core/java/android/app/ |
H A D | AppOpsManager.java | 1366 * Set a non-persisted restriction on an audio operation at a stream-level. 1666 * Like {@link #checkOp} but at a stream-level for audio operations. 1669 public int checkAudioOp(int op, int stream, int uid, String packageName) { argument 1671 final int mode = mService.checkAudioOperation(op, stream, uid, packageName); 1686 public int checkAudioOpNoThrow(int op, int stream, int uid, String packageName) { argument 1688 return mService.checkAudioOperation(op, stream, uid, packageName);
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 121 /** Whether to pass Resources when creating the source from a stream. */ 874 InputStream stream = null; 876 stream = mContext.getContentResolver().openInputStream(uri); 878 mUseCorrectStreamDensity ? getResources() : null, null, stream, null); 882 if (stream != null) { 884 stream.close(); 1521 protected void encodeProperties(@NonNull ViewHierarchyEncoder stream) { argument 1522 super.encodeProperties(stream); 1523 stream.addProperty("layout:baseline", getBaseline());
|
H A D | ProgressBar.java | 1996 protected void encodeProperties(@NonNull ViewHierarchyEncoder stream) { argument 1997 super.encodeProperties(stream); 1999 stream.addProperty("progress:max", getMax()); 2000 stream.addProperty("progress:progress", getProgress()); 2001 stream.addProperty("progress:secondaryProgress", getSecondaryProgress()); 2002 stream.addProperty("progress:indeterminate", isIndeterminate());
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | ProcessStats.java | 847 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 D | Bitmap.java | 1062 * @param stream The outputstream to write the compressed data. 1063 * @return true if successfully compressed to the specified stream. 1065 public boolean compress(CompressFormat format, int quality, OutputStream stream) { argument 1068 if (stream == null) { 1076 quality, stream, new byte[WORKING_COMPRESS_STORAGE]); 1702 int quality, OutputStream stream, 1701 nativeCompress(long nativeBitmap, int format, int quality, OutputStream stream, byte[] tempStorage) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | VolumeDialog.java | 287 public void setStreamImportant(int stream, boolean important) { argument 288 mHandler.obtainMessage(H.SET_STREAM_IMPORTANT, stream, important ? 1 : 0).sendToTarget(); 309 private void addRow(int stream, int iconRes, int iconMuteRes, boolean important) { argument 311 initRow(row, stream, iconRes, iconMuteRes, important); 323 initRow(row, row.stream, row.iconRes, row.iconMuteRes, row.important); 348 if (row.stream == mActiveStream) { 355 private VolumeRow findRow(int stream) { argument 357 if (row.stream == stream) return row; 387 private void initRow(final VolumeRow row, final int stream, in argument 910 setStreamImportantH(int stream, boolean important) argument 1232 private int stream; field in class:VolumeDialog.VolumeRow [all...] |
H A D | VolumeDialogController.java | 226 public void setStreamMute(int stream, boolean mute) { argument 228 mWorker.obtainMessage(W.SET_STREAM_MUTE, stream, mute ? 1 : 0).sendToTarget(); 231 public void setStreamVolume(int stream, int level) { argument 233 mWorker.obtainMessage(W.SET_STREAM_VOLUME, stream, level).sendToTarget(); 236 public void setActiveStream(int stream) { argument 238 mWorker.obtainMessage(W.SET_ACTIVE_STREAM, stream, 0).sendToTarget(); 269 private boolean checkRoutedToBluetoothW(int stream) { argument 271 if (stream == AudioManager.STREAM_MUSIC) { 277 changed |= updateStreamRoutedToBluetoothW(stream, routedToBluetooth); 282 private boolean onVolumeChangedW(int stream, in argument 323 streamStateW(int stream) argument 349 updateStreamRoutedToBluetoothW(int stream, boolean routedToBluetooth) argument 358 updateStreamLevelW(int stream, int level) argument 368 isLogWorthy(int stream) argument 381 updateStreamMuteW(int stream, boolean muted) argument 394 isRinger(int stream) argument 452 onSetStreamMuteW(int stream, boolean mute) argument 457 onSetStreamVolumeW(int stream, int level) argument 466 onSetActiveStreamW(int stream) argument 881 setStreamVolume(int stream, int level) argument 890 findToken(int stream) argument [all...] |
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionRecord.java | 250 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); 251 postAdjustLocalVolume(stream, direction, flags, packageName, uid, useSuggested, 285 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); 286 mAudioManagerInternal.setStreamVolumeForUid(stream, value, flags, packageName, uid); 352 * Get the local audio stream being used. Only valid if playback type is 355 * @return The audio stream the session is using. 460 private void postAdjustLocalVolume(final int stream, final int direction, final int flags, argument 467 if (AudioSystem.isStreamActive(stream, 0)) { 468 mAudioManagerInternal.adjustSuggestedStreamVolumeForUid(stream, direction, 476 mAudioManagerInternal.adjustStreamVolumeForUid(stream, directio [all...] |