HomeSort by relevance Sort by last modified time
    Searched defs:buffer (Results 376 - 400 of 6723) sorted by null

<<11121314151617181920>>

  /cts/suite/audio_quality/lib/src/
SimpleScriptExec.cpp 73 char buffer[READ_SIZE]; local
81 while((len = fread(buffer, 1, READ_SIZE, fpipe)) > 0) {
82 result.append(buffer, len);
  /cts/suite/audio_quality/lib/src/audio/
AudioHardware.cpp 26 #include "audio/Buffer.h"
111 if (testCase == NULL) { // default implementation only handles local buffer.
114 android::sp<Buffer> buffer = testCase->findBuffer(id); local
115 if (buffer.get() == NULL) {
118 return startPlaybackOrRecord(buffer);
  /cts/suite/audio_quality/lib/src/task/
TaskOutput.cpp 57 android::sp<Buffer> buffer = getTestCase()->findBuffer(mId); local
58 if (buffer.get() == NULL) {
59 LOGE("cannot find buffer %s", mId.string());
62 buffer->restart(); // reset to play from beginning
64 if (!hw->startPlaybackOrRecord(buffer)) {
74 if (!remote->startPlaybackForRemoteData(id, buffer->isStereo())) {
TaskSound.cpp 69 android::sp<Buffer> buffer; local
74 buffer = Buffer::loadFromFile(tokens->at(1));
83 buffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, amplitude,
93 buffer = AudioSignalFactory::generateWhiteNoise(AudioHardware::E2BPS, amplitude,
97 // next buffer check will return
100 if (buffer.get() == NULL) {
103 if (!getTestCase()->registerBuffer(id, buffer)) {
104 LOGE("TaskSound::run registering buffer %s failed", id.string())
    [all...]
  /cts/suite/audio_quality/test/
ClientInterfaceTest.cpp 67 android::sp<Buffer> buffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, local
71 ASSERT_TRUE(audio->downloadData(name, buffer, id));
86 android::sp<Buffer> buffer(new Buffer(samples * 2, samples * 2, false));
89 AudioHardware::EModeVoice, 100, buffer));
91 ASSERT_TRUE(buffer->amountHandled() == (samples * 2));
  /cts/tests/tests/graphics/jni/
ImageReaderTestHelpers.cpp 100 // the buffer, so we can return it here any times we want without worrying
102 AHardwareBuffer *buffer = nullptr; local
103 ret = AImage_getHardwareBuffer(mAcquiredImage.get(), &buffer);
104 if (ret != AMEDIA_OK || buffer == nullptr) {
105 ALOGE("Faild to get hardware buffer, ret=%d, outBuffer=%p.", ret, buffer);
109 *outBuffer = buffer;
android_graphics_cts_CameraVulkanGpuTest.cpp 53 // 5) Validates that there is noise in the buffer.
79 AHardwareBuffer *buffer; local
80 int ret = imageReader.getBufferFromCurrentImage(&buffer);
83 ret = imageReader.getBufferFromCurrentImage(&buffer);
88 ASSERT(vkImage.init(buffer, true /* useExternalFormat */), "Could not initialize VkAHardwareBufferImage.");
  /cts/tests/tests/nativehardware/src/android/hardware/nativehardware/cts/
HardwareBufferVrTest.java 40 HardwareBuffer buffer = HardwareBuffer.create(2, 4, format, 2, flags); local
41 assertEquals(2, buffer.getWidth());
42 assertEquals(4, buffer.getHeight());
43 assertEquals(2, buffer.getLayers());
44 assertEquals(format, buffer.getFormat());
45 assertEquals(flags, buffer.getUsage());
47 buffer = HardwareBuffer.create(345, 231, format, 5, flags);
48 assertEquals(345, buffer.getWidth());
49 assertEquals(231, buffer.getHeight());
50 assertEquals(5, buffer.getLayers())
    [all...]
  /cts/tests/tests/nativemedia/aaudio/jni/
test_session_id.cpp 33 float *buffer = new float[kNumFrames * kChannelCount]; local
55 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, buffer, kNumFrames, NANOS_PER_SECOND));
60 delete[] buffer;
76 float *buffer = new float[kNumFrames * kChannelCount]; local
110 buffer, kNumFrames, NANOS_PER_SECOND));
113 buffer, kNumFrames, NANOS_PER_SECOND));
139 buffer, kNumFrames, NANOS_PER_SECOND));
142 buffer, kNumFrames, NANOS_PER_SECOND));
151 delete[] buffer;
  /dalvik/libdex/
DexProto.h 35 size_t allocatedSize; /* size of the allocated buffer, if allocated */
36 char buffer[120]; /* buffer used to hold small-enough results */ member in struct:DexStringCache
70 * dexStringCacheRelease() if you want the buffer to survive past the
  /development/tools/idegen/src/
Files.java 29 char[] buffer = new char[0x1000]; // 4k local
33 while ((read = in.read(buffer)) > -1) {
34 builder.append(buffer, 0, read);
  /device/generic/car/emulator/audio/driver/
ext_pcm.h 25 // Holds up to 4KB buffer for each mixer pipeline, this value is arbitrary chosen
29 int16_t buffer[MIXER_BUFFER_SIZE]; member in struct:ext_mixer_pipeline
  /device/generic/goldfish/camera/
PreviewWindow.cpp 59 /* The CPU will write each frame to the preview window buffer.
60 * Note that we delay setting preview window buffer geometry until
109 /* Need to set / adjust buffer geometry for the preview window.
130 /* Dequeue preview window buffer for the frame. */
131 buffer_handle_t* buffer = NULL; local
133 res = mPreviewWindow->dequeue_buffer(mPreviewWindow, &buffer, &stride);
134 if (res != NO_ERROR || buffer == NULL) {
135 ALOGE("%s: Unable to dequeue preview window buffer: %d -> %s",
140 /* Let the preview window to lock the buffer. */
141 res = mPreviewWindow->lock_buffer(mPreviewWindow, buffer);
    [all...]
  /device/generic/goldfish/camera/fake-pipeline2/
Base.h 35 // Zero is an auxillary buffer
41 buffer_handle_t *buffer; member in struct:android::StreamBuffer
  /device/google/contexthub/util/stm32_flash/
spi.c 24 uint8_t spi_write_data(handle_t *handle, uint8_t *buffer, int length)
30 .tx_buf = (unsigned long)buffer,
31 .rx_buf = (unsigned long)buffer,
35 buffer[length] = checksum(handle, buffer, length);
38 return buffer[length];
46 uint8_t buffer[] = local
54 .len = sizeof(buffer),
55 .tx_buf = (unsigned long)buffer,
56 .rx_buf = (unsigned long)buffer,
69 uint8_t buffer[] = local
99 uint8_t buffer[] = local
132 uint8_t buffer[] = local
    [all...]
stm32_bl.c 45 uint8_t buffer[sizeof(uint8_t)+1]; local
47 buffer[0] = len-1;
49 return handle->write_data(handle, buffer, sizeof(uint8_t));
54 uint8_t buffer[sizeof(uint16_t)+1]; local
56 buffer[0] = (cnt >> 8) & 0xFF;
57 buffer[1] = (cnt ) & 0xFF;
59 return handle->write_data(handle, buffer, sizeof(uint16_t));
64 uint8_t buffer[sizeof(uint32_t)+1]; local
66 buffer[0] = (addr >> 24) & 0xFF;
67 buffer[1] = (addr >> 16) & 0xFF
77 uint8_t buffer[sizeof(uint8_t)+256+sizeof(uint8_t)]; local
103 uint8_t buffer[sizeof(uint16_t)+sizeof(uint16_t)+1]; local
    [all...]
uart.c 29 uint8_t uart_write_data(handle_t *handle, uint8_t *buffer, int length)
33 buffer[length] = checksum(handle, buffer, length);
35 if (write(uart_handle->fd, buffer, length + 1) == (length + 1))
44 uint8_t buffer[2 * sizeof(uint8_t)] = { cmd, ~cmd }; local
50 if (write(uart_handle->fd, buffer, length) == length)
74 uint8_t buffer; local
76 if (handle->read_data(handle, &buffer, sizeof(uint8_t)) == CMD_ACK)
77 return buffer;
  /device/google/cuttlefish_common/common/vsoc/lib/
wifi_exchange_view.cpp 27 intptr_t WifiExchangeView::Send(const void* buffer, intptr_t length) {
29 return data()->guest_ingress.Write(this, static_cast<const char*>(buffer),
32 return data()->guest_egress.Write(this, static_cast<const char*>(buffer),
37 intptr_t WifiExchangeView::Recv(void* buffer, intptr_t max_length) {
39 return data()->guest_egress.Read(this, static_cast<char*>(buffer),
42 return data()->guest_ingress.Read(this, static_cast<char*>(buffer),
101 char buffer[3 * mac.size()]; local
105 snprintf(buffer,
106 sizeof(buffer),
114 return std::string(buffer);
    [all...]
  /device/google/cuttlefish_common/guest/hals/camera/fake-pipeline2/
Base.h 39 // Zero is an auxillary buffer
45 buffer_handle_t *buffer; member in struct:android::StreamBuffer
  /device/linaro/hikey/bluetooth/
h4_protocol.cc 59 uint8_t buffer[1] = {0}; local
60 size_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, 1));
62 hci_packet_type_ = static_cast<HciPacketType>(buffer[0]);
  /external/ImageMagick/MagickCore/
vms.c 173 buffer[sizeof(directory->entry.d_name)];
190 result.dsc$a_pointer=buffer;
191 result.dsc$w_length=sizeof(buffer)-2;
200 buffer[sizeof(buffer)-1]='\0';
201 for (p=buffer; *p; p++)
207 p=buffer;
211 p=strchr(buffer,']');
215 (void) CopyMagickString(directory->entry.d_name,buffer,MagickPathExtent);
169 buffer[sizeof(directory->entry.d_name)]; local
  /external/ImageMagick/coders/
cip.c 169 buffer[MagickPathExtent];
207 (void) FormatLocaleString(buffer,MagickPathExtent,"<Title>%s</Title>\n",value);
214 (void) FormatLocaleString(buffer,MagickPathExtent,"<Title>%s</Title>\n",
217 (void) WriteBlobString(image,buffer);
218 (void) FormatLocaleString(buffer,MagickPathExtent,
220 (void) WriteBlobString(image,buffer);
221 (void) FormatLocaleString(buffer,MagickPathExtent,
223 (void) WriteBlobString(image,buffer);
224 (void) FormatLocaleString(buffer,MagickPathExtent,"<Width>%.20g</Width>\n",
226 (void) WriteBlobString(image,buffer);
164 buffer[MagickPathExtent]; local
    [all...]
debug.c 173 buffer[MagickPathExtent],
216 (void) FormatLocaleString(buffer,MagickPathExtent,
220 (void) WriteBlobString(image,buffer);
229 (void) FormatLocaleString(buffer,MagickPathExtent,"%.20g,%.20g: ",(double)
231 (void) WriteBlobString(image,buffer);
168 buffer[MagickPathExtent], local
html.c 217 buffer[MagickPathExtent],
310 (void) FormatLocaleString(buffer,MagickPathExtent,"<title>%s</title>\n",
315 (void) FormatLocaleString(buffer,MagickPathExtent,
318 (void) WriteBlobString(image,buffer);
321 (void) FormatLocaleString(buffer,MagickPathExtent,"<h1>%s</h1>\n",
323 (void) WriteBlobString(image,buffer);
327 (void) FormatLocaleString(buffer,MagickPathExtent,"<img usemap=\"#%s\" "
330 (void) WriteBlobString(image,buffer);
340 (void) FormatLocaleString(buffer,MagickPathExtent,
342 (void) WriteBlobString(image,buffer);
211 buffer[MagickPathExtent], local
    [all...]
  /external/antlr/antlr-3.4/runtime/ObjC/Framework/
ANTLRHashMap.h 46 __strong NSMutableData *buffer; variable
108 @property (retain, getter=getBuffer, setter=setBuffer:) NSMutableData *buffer; variable

Completed in 1195 milliseconds

<<11121314151617181920>>