/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | Image.cpp | 68 bool Image::setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected, int32_t cropWidth, argument 77 if (buffer) { 80 static_cast<EGLClientBuffer>(buffer), attrs.data());
|
/frameworks/native/services/surfaceflinger/tests/vsync/ |
H A D | vsync.cpp | 28 DisplayEventReceiver::Event buffer[1]; local 32 while ((n = q->getEvents(buffer, 1)) > 0) { 34 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { 35 printf("event vsync: count=%d\t", buffer[i].vsync.count); 38 float t = float(buffer[i].header.timestamp - oldTimeStamp) / s2ns(1); 41 oldTimeStamp = buffer[i].header.timestamp;
|
/frameworks/native/services/vr/bufferhubd/ |
H A D | detached_buffer_channel.h | 18 auto buffer = std::unique_ptr<DetachedBufferChannel>( local 20 return buffer->IsValid() ? std::move(buffer) : nullptr; 23 // Returns whether the object holds a valid graphic buffer. 30 // Captures buffer info for use by BufferHubService::DumpState(). 37 // Creates a detached buffer from existing IonBuffers. 39 int channel_id, IonBuffer buffer, 42 // Allocates a new detached buffer. 52 // Gralloc buffer handles.
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | TouchableMovementMethod.java | 59 public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) { argument 61 boolean result = super.onTouchEvent(widget, buffer, event); 66 mLastEventResult = Selection.getSelectionStart(buffer) != -1;
|
/frameworks/av/cmds/stagefright/ |
H A D | SineSource.cpp | 66 MediaBufferBase *buffer; local 67 status_t err = mGroup->acquire_buffer(&buffer); 74 size_t numFramesPerBuffer = buffer->size() / frameSize; 76 int16_t *ptr = (int16_t *)buffer->data(); 92 buffer->meta_data().setInt64( 97 buffer->set_range(0, numFramesPerBuffer * frameSize); 99 *out = buffer;
|
/frameworks/av/media/libaaudio/tests/ |
H A D | test_recovery.cpp | 35 float *buffer = nullptr; local 45 // in a buffer if we hang or crash. 86 buffer = new float[samplesPerBurst]; 101 buffer, framesPerBurst, 137 delete[] buffer;
|
/frameworks/av/media/libnbaio/ |
H A D | AudioBufferProviderSource.cpp | 49 ssize_t AudioBufferProviderSource::read(void *buffer, size_t count) argument 69 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize); 77 // return a short count rather than continuing with next buffer. 138 // don't get next buffer until we really need it
|
H A D | AudioStreamInSource.cpp | 75 ssize_t AudioStreamInSource::read(void *buffer, size_t count) argument 81 status_t result = mStream->read(buffer, count * mFrameSize, &bytesRead);
|
H A D | SourceAudioBufferProvider.cpp | 48 status_t SourceAudioBufferProvider::getNextBuffer(Buffer *buffer) argument 50 ALOG_ASSERT(buffer != NULL && buffer->frameCount > 0 && mGetCount == 0); 54 if (mRemaining < buffer->frameCount) { 55 buffer->frameCount = mRemaining; 57 buffer->raw = (char *) mAllocated + (mOffset * mFrameSize); 58 mGetCount = buffer->frameCount; 62 if (buffer->frameCount > mSize) { 67 mAllocated = calloc(buffer->frameCount, mFrameSize); 72 mSize = buffer 94 releaseBuffer(Buffer *buffer) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | RemoteMediaSource.cpp | 53 MediaBufferBase **buffer, const MediaSource::ReadOptions *options) { 54 return mSource->read(buffer, reinterpret_cast<const MediaSource::ReadOptions*>(options)); 52 read( MediaBufferBase **buffer, const MediaSource::ReadOptions *options) argument
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | UDPPusher.cpp | 82 sp<ABuffer> buffer = new ABuffer(length); local 83 if (fread(buffer->data(), 1, length, mFile) < length) { 89 mSocket, buffer->data(), buffer->size(), 0, 92 CHECK_EQ(n, (ssize_t)buffer->size()); 118 sp<ABuffer> buffer = new ABuffer(8); local 119 uint8_t *data = buffer->data(); 128 buffer->setRange(0, 8); 134 mSocket, buffer->data(), buffer [all...] |
H A D | rtp_test.cpp | 185 MediaBuffer *buffer; local 186 status_t err = decoder->read(&buffer); 202 if (buffer->range_length() != 0) { 204 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); 207 buffer->range_length(), timeUs / 1E6); 211 buffer->release(); 212 buffer = NULL;
|
/frameworks/av/services/audioflinger/ |
H A D | SpdifStreamOut.cpp | 116 ssize_t SpdifStreamOut::writeDataBurst(const void* buffer, size_t bytes) argument 118 return AudioStreamOut::write(buffer, bytes); 121 ssize_t SpdifStreamOut::write(const void* buffer, size_t numBytes) argument 124 return mSpdifEncoder.write(buffer, numBytes);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioGain.cpp | 104 char buffer[SIZE]; local 107 snprintf(buffer, SIZE, "%*sGain %d:\n", spaces, "", index+1); 108 result.append(buffer); 109 snprintf(buffer, SIZE, "%*s- mode: %08x\n", spaces, "", mGain.mode); 110 result.append(buffer); 111 snprintf(buffer, SIZE, "%*s- channel_mask: %08x\n", spaces, "", mGain.channel_mask); 112 result.append(buffer); 113 snprintf(buffer, SIZE, "%*s- min_value: %d mB\n", spaces, "", mGain.min_value); 114 result.append(buffer); 115 snprintf(buffer, SIZ [all...] |
H A D | VolumeCurve.cpp | 74 char buffer[SIZE]; local 76 snprintf(buffer, SIZE, " {"); 77 result.append(buffer); 79 snprintf(buffer, SIZE, "(%3d, %5d)", 81 result.append(buffer); 90 char buffer[SIZE]; local 94 snprintf(buffer, SIZE, "%s %02d %02d ", 96 result.append(buffer); 98 snprintf(buffer, SIZE, "%04x : %02d, ", mIndexCur.keyAt(i), mIndexCur.valueAt(i)); 99 result.append(buffer); 121 char buffer[SIZE]; local [all...] |
/frameworks/base/cmds/statsd/benchmark/ |
H A D | log_event_benchmark.cpp | 38 static void write4Bytes(int val, vector<char>* buffer) { argument 39 buffer->push_back(static_cast<char>(val)); 40 buffer->push_back(static_cast<char>((val >> 8) & 0xFF)); 41 buffer->push_back(static_cast<char>((val >> 16) & 0xFF)); 42 buffer->push_back(static_cast<char>((val >> 24) & 0xFF)); 46 vector<char> buffer; local 48 write4Bytes(1937006964, &buffer); 49 buffer.push_back(EVENT_TYPE_LIST); 50 buffer.push_back(2); // field counts; 51 buffer [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/ |
H A D | Marshaler.java | 69 * Marshal the specified object instance (value) into a byte buffer. 74 * @param value the value of type T that we wish to write into the byte buffer 75 * @param buffer the byte buffer into which the marshaled object will be written 77 public abstract void marshal(T value, ByteBuffer buffer); argument 81 * into a byte buffer using the given {@code nativeType}. 83 * <p>If the size of this {@code T} instance when serialized into a buffer is always constant, 89 * @param value the value of type T that we wish to write into the byte buffer 90 * @return the size that would need to be written to the byte buffer 103 * Unmarshal a new object instance from the byte buffer int 111 unmarshal(ByteBuffer buffer) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableBlackLevelPattern.java | 41 public void marshal(BlackLevelPattern value, ByteBuffer buffer) { argument 44 buffer.putInt(value.getOffsetForIndex(j, i)); 50 public BlackLevelPattern unmarshal(ByteBuffer buffer) { argument 53 channelOffsets[i] = buffer.getInt();
|
H A D | MarshalQueryableBoolean.java | 38 public void marshal(Boolean value, ByteBuffer buffer) { argument 40 buffer.put((byte)(unboxValue ? 1 : 0)); 44 public Boolean unmarshal(ByteBuffer buffer) { argument 45 return buffer.get() != 0;
|
H A D | MarshalQueryableColorSpaceTransform.java | 45 public void marshal(ColorSpaceTransform value, ByteBuffer buffer) { argument 50 buffer.putInt(transformAsArray[i]); 55 public ColorSpaceTransform unmarshal(ByteBuffer buffer) { argument 59 transformAsArray[i] = buffer.getInt();
|
H A D | MarshalQueryableHighSpeedVideoConfiguration.java | 47 public void marshal(HighSpeedVideoConfiguration value, ByteBuffer buffer) { argument 48 buffer.putInt(value.getWidth()); 49 buffer.putInt(value.getHeight()); 50 buffer.putInt(value.getFpsMin()); 51 buffer.putInt(value.getFpsMax()); 52 buffer.putInt(value.getBatchSizeMax()); 56 public HighSpeedVideoConfiguration unmarshal(ByteBuffer buffer) { argument 57 int width = buffer.getInt(); 58 int height = buffer.getInt(); 59 int fpsMin = buffer [all...] |
H A D | MarshalQueryableMeteringRectangle.java | 42 public void marshal(MeteringRectangle value, ByteBuffer buffer) { argument 49 buffer.putInt(xMin); 50 buffer.putInt(yMin); 51 buffer.putInt(xMax); 52 buffer.putInt(yMax); 53 buffer.putInt(weight); 57 public MeteringRectangle unmarshal(ByteBuffer buffer) { argument 58 int xMin = buffer.getInt(); 59 int yMin = buffer.getInt(); 60 int xMax = buffer [all...] |
H A D | MarshalQueryableNativeByteToInteger.java | 41 public void marshal(Integer value, ByteBuffer buffer) { argument 42 buffer.put((byte)(int)value); // truncate down to byte 46 public Integer unmarshal(ByteBuffer buffer) { argument 48 return buffer.get() & UINT8_MASK;
|
H A D | MarshalQueryableRect.java | 41 public void marshal(Rect value, ByteBuffer buffer) { argument 42 buffer.putInt(value.left); 43 buffer.putInt(value.top); 44 buffer.putInt(value.width()); 45 buffer.putInt(value.height()); 49 public Rect unmarshal(ByteBuffer buffer) { argument 50 int left = buffer.getInt(); 51 int top = buffer.getInt(); 52 int width = buffer.getInt(); 53 int height = buffer [all...] |
H A D | MarshalQueryableReprocessFormatsMap.java | 44 public void marshal(ReprocessFormatsMap value, ByteBuffer buffer) { argument 57 buffer.putInt(input); 62 buffer.putInt(outputs.length); 66 buffer.putInt(output); 72 public ReprocessFormatsMap unmarshal(ByteBuffer buffer) { argument 73 int len = buffer.remaining() / SIZEOF_INT32; 74 if (buffer.remaining() % SIZEOF_INT32 != 0) { 80 IntBuffer intBuffer = buffer.asIntBuffer();
|