/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPort.cpp | 746 char buffer[SIZE]; local 750 snprintf(buffer, SIZE, "%*s- name: %s\n", spaces, "", mName.string()); 751 result.append(buffer); 755 snprintf(buffer, SIZE, "%*s- sampling rates: ", spaces, ""); 756 result.append(buffer); 759 snprintf(buffer, SIZE, "Dynamic"); 761 snprintf(buffer, SIZE, "%d", mSamplingRates[i]); 763 result.append(buffer); 770 snprintf(buffer, SIZE, "%*s- channel masks: ", spaces, ""); 771 result.append(buffer); [all...] |
H A D | DeviceDescriptor.cpp | 253 char buffer[SIZE]; local 255 snprintf(buffer, SIZE, "\n Available %s devices:\n", direction.string()); 256 write(fd, buffer, strlen(buffer)); 314 char buffer[SIZE]; local 317 snprintf(buffer, SIZE, "%*sDevice %d:\n", spaces, "", index+1); 318 result.append(buffer); 320 snprintf(buffer, SIZE, "%*s- id: %2d\n", spaces, "", mId); 321 result.append(buffer); 323 snprintf(buffer, SIZ [all...] |
H A D | EffectDescriptor.cpp | 28 char buffer[SIZE]; local 31 snprintf(buffer, SIZE, " I/O: %d\n", mIo); 32 result.append(buffer); 33 snprintf(buffer, SIZE, " Strategy: %d\n", mStrategy); 34 result.append(buffer); 35 snprintf(buffer, SIZE, " Session: %d\n", mSession); 36 result.append(buffer); 37 snprintf(buffer, SIZE, " Name: %s\n", mDesc.name); 38 result.append(buffer); 39 snprintf(buffer, SIZ 176 char buffer[SIZE]; local [all...] |
H A D | HwModule.cpp | 252 char buffer[SIZE]; local 255 snprintf(buffer, SIZE, " - name: %s\n", mName); 256 result.append(buffer); 257 snprintf(buffer, SIZE, " - handle: %d\n", mHandle); 258 result.append(buffer); 259 snprintf(buffer, SIZE, " - version: %u.%u\n", mHalVersion >> 8, mHalVersion & 0xFF); 260 result.append(buffer); 265 snprintf(buffer, SIZE, " output %zu:\n", i); 266 write(fd, buffer, strlen(buffer)); 363 char buffer[SIZE]; local [all...] |
H A D | IOProfile.cpp | 124 char buffer[SIZE]; local 129 snprintf(buffer, SIZE, " - flags: 0x%04x\n", mFlags); 130 result.append(buffer); 131 snprintf(buffer, SIZE, " - devices:\n"); 132 result.append(buffer); 142 char buffer[SIZE]; local
|
H A D | StreamDescriptor.cpp | 80 char buffer[SIZE]; local 83 snprintf(buffer, SIZE, "%s %02d %02d ", 85 result.append(buffer); 87 snprintf(buffer, SIZE, "%04x : %02d, ", 90 result.append(buffer); 146 char buffer[SIZE]; local 148 snprintf(buffer, SIZE, "\nStreams dump:\n"); 149 write(fd, buffer, strlen(buffer)); 150 snprintf(buffer, SIZ [all...] |
/frameworks/av/services/audiopolicy/managerdefault/ |
H A D | AudioPolicyManager.cpp | 1204 // the track stop() command is received and at that time the audio track buffer can 1759 // 2: A deep buffer output 1978 char buffer[SIZE]; local 1981 snprintf(buffer, SIZE, "\nAudioPolicyManager Dump: %p\n", this); 1982 result.append(buffer); 1984 snprintf(buffer, SIZE, " Primary Output: %d\n", 1986 result.append(buffer); 1987 snprintf(buffer, SIZE, " Phone state: %d\n", mEngine->getPhoneState()); 1988 result.append(buffer); 1989 snprintf(buffer, SIZ 2925 char buffer[SIZE]; local [all...] |
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyService.cpp | 327 char buffer[SIZE]; local 331 snprintf(buffer, SIZE, "PolicyManager Interface: %p\n", mpAudioPolicy); 333 snprintf(buffer, SIZE, "AudioPolicyManager: %p\n", mAudioPolicyManager); 335 result.append(buffer); 336 snprintf(buffer, SIZE, "Command Thread: %p\n", mAudioCommandThread.get()); 337 result.append(buffer); 338 snprintf(buffer, SIZE, "Tones Thread: %p\n", mTonePlaybackThread.get()); 339 result.append(buffer); 382 char buffer[SIZE]; local 384 snprintf(buffer, SIZ 609 char buffer[SIZE]; local 1009 dump(char* buffer, size_t size) argument [all...] |
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | CameraClient.cpp | 112 char buffer[SIZE]; local 114 size_t len = snprintf(buffer, SIZE, "Client[%d] (%p) with UID %d\n", 120 write(fd, buffer, len); 122 len = snprintf(buffer, SIZE, "Latest set parameters:\n"); 124 write(fd, buffer, len); 318 // set the buffer consumer that the preview will use 328 // Using controlledByApp flag to ensure that the buffer queue remains in 796 // preview callback - frame buffer update 916 // hold the preview lock while we grab a reference to the preview buffer 926 ALOGE("failed to allocate space for preview buffer"); [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | ZslProcessor.h | 107 BufferItem buffer; member in struct:android::camera2::ZslProcessor::ZslPair
|
H A D | ZslProcessor3.h | 108 BufferItem buffer; member in struct:android::camera2::ZslProcessor3::ZslPair
|
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.h | 246 * in the buffer. How this is done is outside of the scope of 468 ALOGE("%s: invalid buffer index %d, max allowed is %d", __FUNCTION__, 487 ALOGE("%s: invalid buffer index %d, max allowed is %d", __FUNCTION__, 574 buffer_handle_t** buffer, int *stride) 581 *buffer = &anb->handle; 594 buffer_handle_t* /*buffer*/) 602 buffer_handle_t* buffer) 606 container_of(buffer, ANativeWindowBuffer, handle), -1); 610 buffer_handle_t* buffer) 614 container_of(buffer, ANativeWindowBuffe 573 __dequeue_buffer(struct preview_stream_ops* w, buffer_handle_t** buffer, int *stride) argument 601 __enqueue_buffer(struct preview_stream_ops* w, buffer_handle_t* buffer) argument 609 __cancel_buffer(struct preview_stream_ops* w, buffer_handle_t* buffer) argument [all...] |
/frameworks/av/services/camera/libcameraservice/device2/ |
H A D | Camera2Device.cpp | 270 // Always give the max jpeg buffer size regardless of the actual jpeg resolution. 590 buffer_handle_t *buffer, wp<BufferReleasedListener> listener) { 598 res = (*streamI)->pushIntoStream(buffer, listener); 600 ALOGE("%s: Unable to push buffer to reprocess stream %d: %s (%d)", 881 result = String8::format(" Stream slot buffer %d:\n", i); 960 camera_metadata_t **buffer) 963 return queue->dequeue(buffer, true); 980 camera_metadata_t **buffer) 986 *buffer = new_buffer; 1125 ALOGE("%s: Unable to configure compressed stream buffer dimension 589 pushReprocessBuffer(int reprocessStreamId, buffer_handle_t *buffer, wp<BufferReleasedListener> listener) argument 958 consumer_dequeue( const camera2_request_queue_src_ops_t *q, camera_metadata_t **buffer) argument 977 producer_dequeue( const camera2_frame_queue_dst_ops_t * , size_t entries, size_t bytes, camera_metadata_t **buffer) argument 1295 dequeue_buffer(const camera2_stream_ops_t *w, buffer_handle_t** buffer) argument 1322 enqueue_buffer(const camera2_stream_ops_t* w, int64_t timestamp, buffer_handle_t* buffer) argument 1358 cancel_buffer(const camera2_stream_ops_t* w, buffer_handle_t* buffer) argument 1528 acquire_buffer( const camera2_stream_in_ops_t *w, buffer_handle_t** buffer) argument 1560 release_buffer( const camera2_stream_in_ops_t* w, buffer_handle_t* buffer) argument [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3Device.cpp | 380 // Get max jpeg buffer size 390 // Calculate final jpeg buffer size for the given resolution. 889 SET_ERR_L("Invalid jpeg buffer size %zd", blobBufferSize); 895 SET_ERR_L("Invalid point cloud buffer size %zd", blobBufferSize); 1375 buffer_handle_t *buffer, wp<BufferReleasedListener> listener) { 1377 (void)reprocessStreamId; (void)buffer; (void)listener; 2065 // Note: stream may be deallocated at this point, if this buffer was 2068 ALOGE("Can't return buffer to its stream: %s (%d)", 2328 ALOGW("%s: Input buffer should be NULL if there is no input" 2329 " buffer sen 1374 pushReprocessBuffer(int reprocessStreamId, buffer_handle_t *buffer, wp<BufferReleasedListener> listener) argument [all...] |
H A D | Camera3DummyStream.cpp | 39 status_t Camera3DummyStream::getBufferLocked(camera3_stream_buffer *buffer) { argument 46 const camera3_stream_buffer &buffer, 54 const camera3_stream_buffer &buffer, 45 returnBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp) argument 53 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument
|
H A D | Camera3IOStreamBase.cpp | 59 " buffer signal time is %" PRId64, 144 void Camera3IOStreamBase::handoutBufferLocked(camera3_stream_buffer &buffer, argument 156 buffer.stream = this; 157 buffer.buffer = handle; 158 buffer.acquire_fence = acquireFence; 159 buffer.release_fence = releaseFence; 160 buffer.status = status; 214 const camera3_stream_buffer &buffer, 232 res = returnBufferCheckedLocked(buffer, timestam 213 returnAnyBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output) argument [all...] |
H A D | Camera3InputStream.cpp | 46 camera3_stream_buffer *buffer) { 71 ALOGE("%s: Stream %d: Can't acquire next output buffer: %s (%d)", 84 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, 92 const camera3_stream_buffer &buffer, 107 // Find the buffer we are returning 115 if (anb != NULL && &(anb->handle) == buffer.buffer) { 123 ALOGE("%s: Stream %d: Can't return buffer that wasn't sent to HAL", 128 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) { 129 if (buffer 45 getInputBufferLocked( camera3_stream_buffer *buffer) argument 91 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument 158 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument [all...] |
H A D | Camera3OutputStream.cpp | 90 status_t Camera3OutputStream::getBufferLocked(camera3_stream_buffer *buffer) { argument 118 ALOGE("%s: Stream %d: Can't dequeue next output buffer: %s (%d)", 127 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, 134 const camera3_stream_buffer &buffer, 138 status_t res = returnAnyBufferLocked(buffer, timestamp, /*output*/true); 150 const camera3_stream_buffer &buffer, 162 sp<Fence> releaseFence = new Fence(buffer.release_fence); 175 * Return buffer back to ANativeWindow 177 if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) { 178 // Cancel buffer 133 returnBufferLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp) argument 149 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument [all...] |
H A D | Camera3Stream.cpp | 193 // Reset prepared state, since buffer config has changed, and existing 307 ALOGE("%s: Stream %d: Can't prepare buffer if stream is not in PREPARING " 312 // Get next buffer - this may allocate, and take a while for large buffers 315 ALOGE("%s: Stream %d: Unable to allocate buffer %d during preparation", 387 // Free buffers by disconnecting and then reconnecting to the buffer queue 422 status_t Camera3Stream::getBuffer(camera3_stream_buffer *buffer) { argument 434 // Wait for new buffer returned back if we are running into the limit. 441 ALOGE("%s: wait for output buffer return timed out after %lldms", __FUNCTION__, 448 res = getBufferLocked(buffer); 450 fireBufferListenersLocked(*buffer, /*acquire 456 returnBuffer(const camera3_stream_buffer &buffer, nsecs_t timestamp) argument 478 getInputBuffer(camera3_stream_buffer *buffer) argument 512 returnInputBuffer(const camera3_stream_buffer &buffer) argument [all...] |
H A D | Camera3ZslStream.cpp | 54 * Try to find the best candidate for a ZSL buffer. 104 * and we get an 'empty' result only if the ring buffer 132 status_t Camera3ZslStream::getInputBufferLocked(camera3_stream_buffer *buffer) { argument 164 ALOGE("%s: Stream %d: No input buffer was queued", 180 handoutBufferLocked(*buffer, &(anb->handle), /*acquireFence*/fenceFd, 189 const camera3_stream_buffer &buffer, 197 return Camera3OutputStream::returnBufferCheckedLocked(buffer, 209 // Find the buffer we are returning 218 if (anb != NULL && &(anb->handle) == buffer.buffer) { 188 returnBufferCheckedLocked( const camera3_stream_buffer &buffer, nsecs_t timestamp, bool output, sp<Fence> *releaseFenceOut) argument 260 returnInputBufferLocked( const camera3_stream_buffer &buffer) argument [all...] |
/frameworks/av/services/mediaresourcemanager/ |
H A D | ResourceManagerService.cpp | 97 char buffer[SIZE]; local 99 snprintf(buffer, SIZE, "ResourceManagerService: %p\n", this); 100 result.append(buffer); 102 snprintf(buffer, SIZE, " SupportsMultipleSecureCodecs: %d\n", mSupportsMultipleSecureCodecs); 103 result.append(buffer); 104 snprintf(buffer, SIZE, " SupportsSecureWithNonSecureCodec: %d\n", mSupportsSecureWithNonSecureCodec); 105 result.append(buffer); 109 snprintf(buffer, SIZE, " Pid: %d\n", mMap.keyAt(i)); 110 result.append(buffer); 115 snprintf(buffer, SIZ [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | BlobBackupHelper.java | 187 byte[] buffer = new byte[4096]; 189 while ((nRead = in.read(buffer)) > 0) { 190 inflated.write(buffer, 0, nRead); 206 private long checksum(byte[] buffer) { argument 207 if (buffer != null) { 210 ByteArrayInputStream bis = new ByteArrayInputStream(buffer);
|
/frameworks/base/core/java/android/content/pm/ |
H A D | LimitedLengthInputStream.java | 68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument 73 final int arrayLength = buffer.length; 84 final int numRead = super.read(buffer, offset, byteCount); 91 public int read(byte[] buffer) throws IOException { argument 92 return read(buffer, 0, buffer.length);
|
H A D | MacAuthenticatedInputStream.java | 71 public int read(byte[] buffer, int offset, int count) throws IOException { argument 72 int numRead = super.read(buffer, offset, count); 74 mMac.update(buffer, offset, numRead);
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 219 byte[] buffer = new byte[1]; 220 int result = read(buffer, 0, 1); 221 return result == -1 ? -1 : buffer[0] & 0xff; 225 public int read(byte[] buffer, int offset, int count) throws IOException { argument 229 int res = super.read(buffer, offset, count); 234 return super.read(buffer, offset, count); 238 public int read(byte[] buffer) throws IOException { argument 239 return read(buffer, 0, buffer.length); 300 public void write(byte[] buffer, in argument 313 write(byte[] buffer) argument [all...] |