/frameworks/base/media/java/android/media/ |
H A D | ThumbnailUtils.java | 101 FileInputStream stream = null; 103 stream = new FileInputStream(filePath); 104 FileDescriptor fd = stream.getFD(); 126 if (stream != null) { 127 stream.close(); 297 * a new input stream will be created using specified ContentResolver.
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequence_webp.cpp | 87 FrameSequence_webp::FrameSequence_webp(Stream* stream) { argument 90 if (stream->read(riff_header, RIFF_HEADER_SIZE) != RIFF_HEADER_SIZE) { 101 if (stream->read(remaining_bytes, remaining_size) != remaining_size) { 369 static FrameSequence* createFramesequence(Stream* stream) { argument 370 return new FrameSequence_webp(stream);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | EriManager.java | 154 FileInputStream stream = null; 159 stream = new FileInputStream( 162 parser.setInput(stream, null); 229 if (stream != null) { 230 stream.close();
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessStatsService.java | 272 FileOutputStream stream = null; 274 stream = file.startWrite(); 275 stream.write(data.marshall()); 276 stream.flush(); 277 file.finishWrite(stream); 281 file.failWrite(stream); 291 FileInputStream stream = file.openRead(); 292 stats.read(stream); 293 stream.close(); 564 InputStream stream [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/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 74 BufferProducerThread(tv_input_device_t* device, int deviceId, const tv_stream_t* stream); 104 tv_input_device_t* device, int deviceId, const tv_stream_t* stream) 112 memcpy(&mStream, stream, sizeof(mStream)); 243 // Connection between a surface and a stream. 335 // Need to configure stream 340 ALOGE("Couldn't get stream configs"); 351 ALOGE("Cannot find a config with given stream ID: %d", streamId); 356 tv_stream_t stream; local 357 stream.stream_id = configs[configIndex].stream_id; 359 stream 103 BufferProducerThread( tv_input_device_t* device, int deviceId, const tv_stream_t* stream) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.cpp | 556 ALOGE("createTrack() invalid stream type %d", streamType); 893 status_t AudioFlinger::setStreamVolume(audio_stream_type_t stream, float value, argument 901 if (uint32_t(stream) >= AUDIO_STREAM_CNT) { 902 ALOGE("setStreamVolume() invalid stream %d", stream); 915 mStreamTypes[stream].volume = value; 919 mPlaybackThreads.valueAt(i)->setStreamVolume(stream, value); 922 thread->setStreamVolume(stream, value); 928 status_t AudioFlinger::setStreamMute(audio_stream_type_t stream, bool muted) argument 935 if (uint32_t(stream) > 949 streamVolume(audio_stream_type_t stream, audio_io_handle_t output) const argument 2109 invalidateStream(audio_stream_type_t stream) argument [all...] |
/frameworks/native/libs/gui/ |
H A D | IGraphicBufferProducer.cpp | 241 virtual status_t setSidebandStream(const sp<NativeHandle>& stream) { argument 245 if (stream.get()) { 247 data.writeNativeHandle(stream->handle()); 405 sp<NativeHandle> stream; local 407 stream = NativeHandle::create(data.readNativeHandle(), true); 409 status_t result = setSidebandStream(stream);
|
/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 147 * Perform an fsync on the given FileOutputStream. The stream at this 150 public static boolean sync(FileOutputStream stream) { argument 152 if (stream != null) { 153 stream.getFD().sync(); 179 * Copy data from a source stream to destFile. 230 // input stream, bytes read not equal to buffer size is not necessarily the correct
|
/frameworks/base/core/java/android/net/http/ |
H A D | AndroidHttpClient.java | 212 * Gets the input stream from a response entity. If the entity is gzipped 213 * then this will get a stream over the uncompressed data. 216 * @return the input stream to read from 446 ByteArrayOutputStream stream = new ByteArrayOutputStream(); 447 entity.writeTo(stream); 450 String base64 = Base64.encodeToString(stream.toByteArray(), Base64.NO_WRAP); 454 String entityString = stream.toString();
|
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionRecord.java | 251 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); 253 if (AudioSystem.isStreamActive(stream, 0)) { 254 mAudioManagerInternal.adjustSuggestedStreamVolumeForUid(stream, direction, 263 mAudioManagerInternal.adjustStreamVolumeForUid(stream, direction, flags, 291 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); 292 mAudioManagerInternal.setStreamVolumeForUid(stream, value, flags, packageName, uid); 357 * Get the local audio stream being used. Only valid if playback type is 360 * @return The audio stream the session is using. 1049 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); 1051 max = mAudioManager.getStreamMaxVolume(stream); [all...] |
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | BluetoothMasRequest.java | 106 * this will trigger ClientOperation to use non-buffered stream so 154 protected void readResponse(InputStream stream) throws IOException { argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Movie.cpp | 87 SkAutoTUnref<SkStreamRewindable> stream (new android::AssetStreamAdaptor(asset, 90 SkMovie* moov = SkMovie::DecodeStream(stream.get()); 106 // trying to determine the stream's format. The only decoder for movies is GIF, which
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | NotificationPlayer.java | 284 * @param stream the AudioStream to use. 289 public void play(Context context, Uri uri, boolean looping, int stream) { argument 296 cmd.attributes = new AudioAttributes.Builder().setInternalLegacyStreamType(stream).build();
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | DisplaySourceService.java | 212 stream(codec); 227 private void stream(MediaCodec codec) { method in class:DisplaySourceService.VirtualDisplayThread
|
/frameworks/base/core/jni/ |
H A D | android_media_AudioSystem.cpp | 222 android_media_AudioSystem_isStreamActive(JNIEnv *env, jobject thiz, jint stream, jint inPastMs) argument 225 AudioSystem::isStreamActive((audio_stream_type_t) stream, &state, inPastMs); 230 android_media_AudioSystem_isStreamActiveRemotely(JNIEnv *env, jobject thiz, jint stream, argument 234 AudioSystem::isStreamActiveRemotely((audio_stream_type_t) stream, &state, inPastMs); 335 android_media_AudioSystem_initStreamVolume(JNIEnv *env, jobject thiz, jint stream, jint indexMin, jint indexMax) argument 337 return (jint) check_AudioSystem_Command(AudioSystem::initStreamVolume(static_cast <audio_stream_type_t>(stream), 345 jint stream, 350 AudioSystem::setStreamVolumeIndex(static_cast <audio_stream_type_t>(stream), 358 jint stream, 362 if (AudioSystem::getStreamVolumeIndex(static_cast <audio_stream_type_t>(stream), 343 android_media_AudioSystem_setStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint index, jint device) argument 356 android_media_AudioSystem_getStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint device) argument 404 android_media_AudioSystem_getDevicesForStream(JNIEnv *env, jobject thiz, jint stream) argument 422 android_media_AudioSystem_getOutputLatency(JNIEnv *env, jobject clazz, jint stream) argument [all...] |
/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 38 # Non-blocking stream wrapper. 40 def __init__(self, stream): 41 fcntl.fcntl(stream, fcntl.F_SETFL, os.O_NONBLOCK) 42 self.stream = stream 57 chunk = os.read(self.stream.fileno(), 4096)
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/ |
H A D | omxVCM4P2_DecodePadMV_PVOP_s.s | 25 ; * the bit stream buffer 39 ; * bit stream syntax 46 ; * stream buffer 254 M_BD_VREAD8 mvVerResidual,temp,T1,T2 ;// Get mvVerResidual from bit stream if fcodeForward>1 and mnVerData!=0
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p2/src/ |
H A D | omxVCM4P2_DecodePadMV_PVOP_s.s | 25 ; * the bit stream buffer 39 ; * bit stream syntax 46 ; * stream buffer 254 M_BD_VREAD8 mvVerResidual,temp,T1,T2 ;// Get mvVerResidual from bit stream if fcodeForward>1 and mnVerData!=0
|
/frameworks/base/keystore/java/android/security/ |
H A D | AndroidKeyStore.java | 510 public void engineStore(OutputStream stream, char[] password) throws IOException, argument 516 public void engineLoad(InputStream stream, char[] password) throws IOException, argument 518 if (stream != null) {
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3IOStreamBase.cpp | 45 ALOGE("%s: Bad format for size-only stream: %d", __FUNCTION__, 150 buffer.stream = this;
|
/frameworks/base/core/java/android/widget/ |
H A D | SuggestionsAdapter.java | 579 InputStream stream = mProviderContext.getContentResolver().openInputStream(uri); 580 if (stream == null) { 584 return Drawable.createFromStream(stream, null); 587 stream.close(); 589 Log.e(LOG_TAG, "Error closing icon stream for " + uri, ex);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 1000 * @param stream The outputstream to write the compressed data. 1001 * @return true if successfully compressed to the specified stream. 1003 public boolean compress(CompressFormat format, int quality, OutputStream stream) { argument 1006 if (stream == null) { 1014 stream, new byte[WORKING_COMPRESS_STORAGE]); 1623 int quality, OutputStream stream, 1622 nativeCompress(long nativeBitmap, int format, int quality, OutputStream stream, byte[] tempStorage) argument
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
H A D | ScoAudioTest.java | 116 name.setText("VOICE_CALL stream"); 334 SimplePlayerController(Context context, int playPausebuttonId, int stopButtonId, String fileName, int stream) { argument 339 mStreamType = stream; 344 SimplePlayerController(Context context, int playPausebuttonId, int stopButtonId, int fileResId, int stream) { argument 349 mStreamType = stream;
|
/frameworks/native/include/gui/ |
H A D | IGraphicBufferProducer.h | 428 // Attaches a sideband buffer stream to the IGraphicBufferProducer. 430 // A sideband stream is a device-specific mechanism for passing buffers 432 // queueBuffer. If a sideband stream is present, the consumer can choose 433 // whether to acquire buffers from the sideband stream or from the queued 436 // Passing NULL or a different stream handle will detach the previous 438 virtual status_t setSidebandStream(const sp<NativeHandle>& stream) = 0;
|