| /hardware/interfaces/wifi/supplicant/1.0/vts/functional/ |
| supplicant_hidl_test_utils.cpp | 96 std::array<char, PROPERTY_VALUE_MAX> buffer; local 97 property_get("wifi.interface", buffer.data(), "wlan0"); 98 return buffer.data(); 102 std::array<char, PROPERTY_VALUE_MAX> buffer; local 103 property_get("wifi.direct.interface", buffer.data(), "p2p0"); 104 return buffer.data();
|
| /hardware/libhardware/modules/camera/3_4/arc/ |
| jpeg_compressor.cpp | 55 std::vector<JOCTET>& buffer = dest->compressor->result_buffer_; local 56 buffer.resize(kBlockSize); 57 dest->mgr.next_output_byte = &buffer[0]; 58 dest->mgr.free_in_buffer = buffer.size(); 63 std::vector<JOCTET>& buffer = dest->compressor->result_buffer_; local 64 size_t oldsize = buffer.size(); 65 buffer.resize(oldsize + kBlockSize); 66 dest->mgr.next_output_byte = &buffer[oldsize]; 73 std::vector<JOCTET>& buffer = dest->compressor->result_buffer_; local 74 buffer.resize(buffer.size() - dest->mgr.free_in_buffer) 78 char buffer[JMSG_LENGTH_MAX]; local [all...] |
| /hardware/libhardware/modules/sensors/dynamic_sensor/ |
| ConnectionDetector.cpp | 75 char buffer[16]; local 76 while (::read(connFd, buffer, sizeof(buffer)) > 0) { 188 } buffer; local 192 ssize_t len = ::read(mInotifyFd, &buffer, sizeof(buffer)); 197 handleInotifyData(len, reinterpret_cast<char*>(&buffer));
|
| /hardware/qcom/camera/msm8998/QCamera2/util/ |
| QCameraDisplay.cpp | 64 android::DisplayEventReceiver::Event buffer[DISPLAY_EVENT_RECEIVER_ARRAY_SIZE]; local 68 while ((n = pQCameraDisplay->mDisplayEventReceiver.getEvents(buffer, 71 if (buffer[i].header.type == DisplayEventReceiver::DISPLAY_EVENT_VSYNC) { 72 pQCameraDisplay->computeAverageVsyncInterval(buffer[i].header.timestamp); 235 * PARAMETERS : current frame time stamp set by VFE when buffer copy done.
|
| /hardware/qcom/camera/msm8998/usbcamcore/src/ |
| QCameraUsbParm.cpp | 377 char buffer[32]; local 380 snprintf(buffer, sizeof(buffer), "%dx%d", sizes[0].width, sizes[0].height); 381 str.append(buffer); 384 snprintf(buffer, sizeof(buffer), ",%dx%d", sizes[i].width, sizes[i].height); 385 str.append(buffer); 431 char buffer[32]; local 434 snprintf(buffer, sizeof(buffer), "(%d,%d)", fps[0].minFPS, fps[0].maxFPS) 459 char buffer[32]; local [all...] |
| /hardware/qcom/display/msm8996/sdm/libs/hwc2/ |
| hwc_color_manager.cpp | 226 DLOGE("Buffer allocation failed. ret: %d", ret); 229 void *buffer = mmap(NULL, buffer_info.alloc_buffer_info.size, PROT_READ | PROT_WRITE, local 232 if (buffer == MAP_FAILED) { 234 frame_capture_data->buffer = NULL; 238 frame_capture_data->buffer = reinterpret_cast<uint8_t *>(buffer); 242 // TODO(user): Call HWC interface to provide the buffer and rectangle information 245 if (frame_capture_data->buffer != NULL) { 246 if (munmap(frame_capture_data->buffer, buffer_info.alloc_buffer_info.size) != 0) {
|
| /hardware/qcom/neuralnetworks/hvxservice/1.0/ |
| HexagonModel.h | 57 uint8_t* buffer; member in struct:android::hardware::neuralnetworks::V1_0::implementation::hexagon::OperandInfo 172 return *reinterpret_cast<const Type*>(mOperands[operand].buffer);
|
| /libcore/benchmarks/src/benchmarks/regression/ |
| SSLSocketBenchmark.java | 34 final byte[] buffer = new byte[BUFFER_SIZE]; field in class:SSLSocketBenchmark 88 int n = in.read(buffer);
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
| Support_Format.java | 39 StringBuffer buffer = new StringBuffer(); local 41 format.format(object, buffer, pos); 43 // System.out.println(buffer); 47 assertEquals("Test " + count + ": incorrect formatted text", this.text, buffer.toString()); 49 assertEquals(text, buffer.toString());
|
| /libcore/luni/src/main/java/libcore/io/ |
| Streams.java | 40 byte[] buffer = new byte[1]; 41 int result = in.read(buffer, 0, 1); 42 return (result != -1) ? buffer[0] & 0xff : -1; 51 byte[] buffer = new byte[1]; 52 buffer[0] = (byte) (b & 0xff); 53 out.write(buffer); 106 byte[] buffer = new byte[1024]; 108 while ((count = in.read(buffer)) != -1) { 109 bytes.write(buffer, 0, count); 120 char[] buffer = new char[1024] local [all...] |
| /libcore/luni/src/test/java/libcore/java/io/ |
| OldFilterWriterTest.java | 48 public void write(char[] buffer, int offset, int count) throws IOException { 96 char[] buffer = new char[5]; local 97 fw.write(buffer, 0, 5); 102 char[] buffer = new char[10]; local 108 fw.write(buffer, 0, -1); 115 fw.write(buffer, -1, 1); 122 fw.write(buffer, 10, 1);
|
| /libcore/luni/src/test/java/libcore/java/net/ |
| OldAndroidDatagramTest.java | 46 byte[] buffer = new byte[256]; field in class:OldAndroidDatagramTest.Reflector 58 packet.setLength(buffer.length); 90 packet = new DatagramPacket(buffer, buffer.length); 128 byte[] buffer = new byte[256]; 130 DatagramPacket packet = new DatagramPacket(buffer, buffer.length); 149 packet.setLength(buffer.length);
|
| /libcore/ojluni/src/main/java/java/io/ |
| PipedInputStream.java | 42 * The piped input stream contains a buffer, 68 * The default size of the pipe's circular input buffer. 77 * The circular buffer into which incoming data is placed. 80 protected byte buffer[]; field in class:PipedInputStream 83 * The index of the position in the circular buffer at which the 85 * piped output stream. <code>in<0</code> implies the buffer is empty, 86 * <code>in==out</code> implies the buffer is full 92 * The index of the position in the circular buffer at which the next 116 * the pipe's buffer. 121 * @param pipeSize the size of the pipe's buffer [all...] |
| PipedReader.java | 51 * The size of the pipe's circular input buffer. 56 * The circular buffer into which incoming data is placed. 58 char buffer[]; field in class:PipedReader 61 * The index of the position in the circular buffer at which the 63 * piped writer. <code>in<0</code> implies the buffer is empty, 64 * <code>in==out</code> implies the buffer is full 69 * The index of the position in the circular buffer at which the next 90 * pipe size for the pipe's buffer. Data written to <code>src</code> 94 * @param pipeSize the size of the pipe's buffer. 119 * the specified pipe size for the pipe's buffer [all...] |
| /libcore/ojluni/src/main/java/java/util/logging/ |
| MemoryHandler.java | 30 * <tt>Handler</tt> that buffers requests in a circular buffer in memory. 33 * into its memory buffer and discards earlier records. This buffering 35 * conditions, the <tt>MemoryHandler</tt> will push out its current buffer 39 * There are three main models for triggering a push of the buffer: 67 * defines the buffer size (defaults to 1000). </li> 95 private LogRecord buffer[]; field in class:MemoryHandler 152 buffer = new LogRecord[size]; 162 * argument and buffer size argument are used. 165 * @param size the number of log records to buffer (must be greater than zero) 187 * Store a <tt>LogRecord</tt> in an internal buffer [all...] |
| /packages/apps/DocumentsUI/src/com/android/documentsui/selection/ |
| Selection.java | 239 StringBuilder buffer = new StringBuilder(size() * 28); local 240 buffer.append("Selection{") 246 return buffer.toString();
|
| /packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
| SimpleSampleBuffer.java | 17 package com.android.tv.tuner.exoplayer.buffer; 32 * Handles I/O for {@link SampleExtractor} when physical storage based buffer is not used. Trickplay
|
| TrickplayStorageManager.java | 17 package com.android.tv.tuner.exoplayer.buffer;
|
| /packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
| encodedstreamtest.cpp | 51 char buffer[1024];
local 53 sprintf(buffer, paths[i], filename);
54 FILE *fp = fopen(buffer, "rb");
72 char* buffer = (char*)malloc(*outLength + 1);
local 73 size_t readLength = fread(buffer, 1, *outLength, fp);
74 buffer[readLength] = '\0';
76 return buffer;
83 char buffer[16];
local 86 FileReadStream fs(fp, buffer, sizeof(buffer));
123 char buffer[16]; local 167 char buffer[16]; local 201 char buffer[16]; local [all...] |
| /packages/apps/UnifiedEmail/src/com/android/mail/ |
| MailLogService.java | 46 * resulting buffer any information of interest at logging time. This is kept in a ring buffer, 59 * A circular buffer of {@value #SIZE} lines. To insert into this buffer, 68 /** The current size of the buffer */ 71 /** Create an empty log buffer. */ 84 * Insert a log message into the buffer. This might evict the oldest message if the log 86 * @param message a log message for this buffer. 125 * Return the circular buffer associated with this tag, or create a new buffer if none i 135 final CircularBuffer buffer = new CircularBuffer(); local [all...] |
| /packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
| buffer_with_extendable_buffer.cpp | 74 uint8_t *const buffer = local 79 ByteArrayUtils::writeUintAndAdvancePosition(buffer, data, size, pos); 94 uint8_t *const buffer = local 99 ByteArrayUtils::writeCodePointsAndAdvancePosition(buffer, codePoints, codePointCount, 125 // Here don't need to care about the additional buffer. 130 // The buffer has sufficient capacity. 133 // Hereafter, pos is in the additional buffer. 136 // The buffer has sufficient capacity. 140 // The additional buffer must be extended from the tail position. 146 // Failed to extend the buffer [all...] |
| /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
| DictDecoder.java | 36 // TODO: Straighten out responsibility for the buffer's file pointer. 52 * Reads a buffer and returns the memory representation of the dictionary. 54 * This high-level method takes a buffer and reads its contents, populating a 95 * Sets the position of the buffer to the given value. 102 * Gets the position of the buffer. 109 * Reads and returns the PtNode count out of a buffer and forwards the pointer. 146 ByteBuffer buffer = null; local 149 buffer = inStream.getChannel().map(FileChannel.MapMode.READ_ONLY, 156 if (buffer != null) { 157 return new BinaryDictDecoderUtils.ByteBufferDictBuffer(buffer); 202 ByteBuffer buffer = null; local [all...] |
| /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
| BlockingHttpClientTests.java | 153 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); local 156 buffer.write(read); 158 byte[] actualResponse = buffer.toByteArray();
|
| /packages/services/BuiltInPrintService/jni/plugins/ |
| lib_pwg.c | 135 * Write a buffer to the output stream 317 * Allocate and fill a blank page of PackBits data. Writes size into buffer_size. The buffer 334 unsigned char *buffer = (unsigned char *) malloc(*buffer_size); local 335 if (buffer == NULL) return NULL; 341 buffer[i++] = 0xFF; 343 buffer[i++] = (unsigned char) ((pixel_height % 256) - 1); 349 buffer[i++] = 0x7F; 351 buffer[i++] = (unsigned char) ((pixel_width % 128) - 1); 355 buffer[i++] = 0xFF; 358 buffer[i++] = 0xFF 371 unsigned char *buffer; local [all...] |
| /prebuilts/clang/host/darwin-x86/clang-4393122/share/clang/ |
| clang-format.el | 53 of the buffer." 57 (make-variable-buffer-local 'clang-format-style) 139 (temp-buffer (generate-new-buffer " *clang-format-temp*")) 142 ;; the encoding used to convert between buffer and file positions, 144 ;; always use ?utf-8-unix? and ignore the buffer coding system. 149 nil `(,temp-buffer ,temp-file) nil 152 "-assume-filename" (or (buffer-file-name) "") 157 (stderr (with-temp-buffer 160 (buffer-substring-no-propertie [all...] |