/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_frame.cpp | 90 jobject buffer) { 94 return ToJBool(AttachDataToJBuffer(env, buffer, data, frame->Size())); 88 Java_android_filterfw_core_NativeFrame_getNativeBuffer(JNIEnv* env, jobject thiz, jobject buffer) argument
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.cpp | 166 bool GLFrame::CopyDataTo(uint8_t* buffer, int size) { argument 168 ? CopyPixelsTo(buffer) 172 bool GLFrame::CopyPixelsTo(uint8_t* buffer) { argument 176 return ReadFboPixels(buffer); 178 return ReadTexturePixels(buffer); 371 "inefficient. Please consider using your original pixel buffer " 404 // Bind the frame buffer, and check if we it is already bound 407 // Bind the texture to the frame buffer
|
H A D | value.cpp | 170 Value MakeBufferValue(const char* buffer, int size) { argument 171 return MakePtrValue<char, BUFFER_VALUE_TYPE>(buffer, size); 174 Value MakeBufferValueNoCopy(const char* buffer, int size) { argument 177 result.value = (void*)buffer; 182 Value MakeMutableBufferValue(const char* buffer, int size) { argument 183 return MakePtrValue<const char, MUTABLE_BUFFER_VALUE_TYPE>(buffer, size); 186 Value MakeMutableBufferValueNoCopy(char* buffer, int size) { argument 189 result.value = (void*)buffer;
|
/frameworks/base/media/native/midi/ |
H A D | midi.cpp | 189 memcpy(message->buffer, readBuffer + 1, dataSize); 222 uint8_t *buffer, uint8_t *data, ssize_t numBytes,uint64_t timestamp) { 223 buffer[0] = AMIDI_OPCODE_DATA; 224 memcpy(buffer + 1, data, numBytes); 225 memcpy(buffer + 1 + numBytes, ×tamp, sizeof(timestamp)); 236 ssize_t AMIDI_send(AMIDI_InputPort *inputPort, uint8_t *buffer, ssize_t numBytes) { argument 237 return AMIDI_sendWithTimestamp(inputPort, buffer, numBytes, 0); 254 ALOGE("AMIDI_sendWithTimestamp Couldn't write MIDI data buffer. requested:%zu, written%zu", 221 AMIDI_makeSendBuffer( uint8_t *buffer, uint8_t *data, ssize_t numBytes,uint64_t timestamp) argument
|
/frameworks/base/media/tests/NativeMidiDemo/jni/ |
H A D | nativemidi-jni.cpp | 101 for (uint8_t *b = msg->buffer, *e = b + msg->len; b < e; ++b) { 184 "Success, sample rate %d, buffer samples %d", sampleRate, playSamples); 239 char buffer[1024]; local 244 // snprintf(buffer, sizeof(buffer), "Obtained device token for uid %d: token %d", deviceId, midiDevice); 246 // snprintf(buffer, sizeof(buffer), "Could not obtain device token for uid %d: %d", deviceId, result); 248 nativemididemo::writeMessage(buffer); 254 snprintf(buffer, sizeof(buffer), "Devic 279 char buffer[1024]; local [all...] |
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | MtpManager.java | 159 long getPartialObject(int deviceId, int objectHandle, long offset, long size, byte[] buffer) argument 163 return device.getPartialObject(objectHandle, offset, size, buffer); 167 long getPartialObject64(int deviceId, int objectHandle, long offset, long size, byte[] buffer) argument 171 return device.getPartialObject64(objectHandle, offset, size, buffer);
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
H A D | TestMtpManager.java | 168 final byte[] buffer = new byte[objectInfo.getCompressedSize()]; 169 if (inputStream.read(buffer, 0, objectInfo.getCompressedSize()) != 174 mImportFileBytes.put(pack(deviceId, CREATED_DOCUMENT_HANDLE), buffer); 216 long getPartialObject(int deviceId, int objectHandle, long offset, long size, byte[] buffer) argument 221 buffer[i] = bytes[(int) (i + offset)];
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifOutputStream.java | 105 private int requestByteToBuffer(int requestByteCount, byte[] buffer 109 mBuffer.put(buffer, offset, byteToRead); 118 public void write(byte[] buffer, int offset, int length) throws IOException { argument 129 out.write(buffer, offset, byteToProcess); 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); 157 byteRead = requestByteToBuffer(4, buffer, offset, length); 187 out.write(buffer, offset, length); 202 * Equivalent to calling write(buffer, 0, buffer.length). 205 public void write(byte[] buffer) throw argument [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
H A D | FullRestoreEngine.java | 117 // Working buffer 157 public boolean restoreOneFile(InputStream instream, boolean mustKillAgent, byte[] buffer, argument 469 int toRead = (toCopy > buffer.length) 470 ? buffer.length : (int) toCopy; 471 int nRead = instream.read(buffer, 0, toRead); 484 pipe.write(buffer, 0, nRead); 532 int toRead = (bytesToConsume > buffer.length) 533 ? buffer.length : (int) bytesToConsume; 534 long nRead = instream.read(buffer, 0, toRead);
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | TarBackupReader.java | 233 * Tries to read exactly the given number of bytes into a buffer at the stated offset. 236 * @param buffer - where to write bytes to. 237 * @param offset - offset in buffer to write bytes to. 242 private static int readExactly(InputStream in, byte[] buffer, int offset, int size) argument 252 int nRead = in.read(buffer, offset + soFar, size - soFar); 282 byte[] buffer = new byte[(int) info.size]; 287 if (readExactly(mInputStream, buffer, 0, (int) info.size) == info.size) { 297 offset = extractLine(buffer, offset, str); 300 offset = extractLine(buffer, offset, str); 304 offset = extractLine(buffer, offse 653 extractLine(byte[] buffer, int offset, String[] outStr) argument [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_net_NetworkStatsService.cpp | 83 char buffer[384]; local 88 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 89 int matched = sscanf(buffer, "%31s %" SCNu64 " %" SCNu64 " %" SCNu64 127 char buffer[384]; local 132 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 133 if (sscanf(buffer,
|
/frameworks/base/test-mock/src/android/test/mock/ |
H A D | MockCursor.java | 177 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { argument
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | Transport.java | 46 // The output buffer. Set to null when the transport is closed. 49 // The input buffer pool. 231 protected abstract int ioRead(byte[] buffer, int offset, int count) argument 233 protected abstract void ioWrite(byte[] buffer, int offset, int count) argument 253 final ByteBuffer buffer = (ByteBuffer)msg.obj; 255 final int limit = buffer.limit(); 256 while (buffer.position() < limit) { 257 final int service = buffer.getShort() & 0xffff; 258 final int what = buffer.getShort() & 0xffff; 259 final int contentSize = buffer [all...] |
/frameworks/base/tools/aapt2/cmd/ |
H A D | Convert.cpp | 139 BigBuffer buffer(4096); 143 XmlFlattener flattener(&buffer, options); 148 io::BigBufferInputStream input_stream(&buffer); variable 154 BigBuffer buffer(4096); 155 TableFlattener table_flattener(tableFlattenerOptions_, &buffer); 160 io::BigBufferInputStream input_stream(&buffer); variable
|
/frameworks/base/tools/aapt2/format/binary/ |
H A D | XmlFlattener.cpp | 77 XmlFlattenerVisitor(BigBuffer* buffer, XmlFlattenerOptions options) argument 78 : buffer_(buffer), options_(options) { 364 // Move the nodeBuffer and append it to the out buffer.
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlPullParser.cpp | 56 const char* buffer = nullptr; local 59 if (!in_->Next(reinterpret_cast<const void**>(&buffer), &buffer_size)) { 69 if (XML_Parse(parser_, buffer, buffer_size, done) == XML_STATUS_ERROR) {
|
/frameworks/compile/libbcc/bcinfo/Wrap/ |
H A D | bitcode_wrapperer.cpp | 118 // front of the buffer. This allows us to assume 130 // Assume the buffer contents have been used, 135 // If we don't have an input, we can't refill the buffer at all. 168 uint8_t buffer[kWordSize]; local 169 buffer[3] = (value >> 24) & 0xFF; 170 buffer[2] = (value >> 16) & 0xFF; 171 buffer[1] = (value >> 8) & 0xFF; 172 buffer[0] = (value >> 0) & 0xFF; 173 return outfile_->Write(buffer, kWordSize); 177 // This buffer ma 179 uint8_t buffer[kMaxVariableFieldSize]; local [all...] |
/frameworks/compile/mclinker/lib/Target/ |
H A D | ELFAttribute.cpp | 142 char* buffer = reinterpret_cast<char*>(pRegion.begin()); local 143 buffer[0] = FormatVersion; 152 total_size += (*subsec_it)->emit(buffer + total_size); 304 char* buffer = pBuf; local 312 subsection_length_hole = buffer; 313 buffer += 4; 317 ::memcpy(buffer, vendor_name.c_str(), vendor_name.length()); 318 buffer += vendor_name.length(); 321 *buffer++ = '\0'; 324 *buffer [all...] |
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonPLT.cpp | 172 unsigned char* buffer = pRegion.begin(); local 173 memcpy(buffer, 183 memcpy(buffer + result, plt1->getValue(), HexagonPLT1::EntrySize);
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequence.java | 44 private static native FrameSequence nativeDecodeByteBuffer(ByteBuffer buffer, int offset, int capacity); argument 74 public static FrameSequence decodeByteBuffer(ByteBuffer buffer) { argument 75 if (buffer == null) throw new IllegalArgumentException(); 76 if (!buffer.isDirect()) { 77 if (buffer.hasArray()) { 78 byte[] byteArray = buffer.array(); 79 return decodeByteArray(byteArray, buffer.position(), buffer.remaining()); 84 return nativeDecodeByteBuffer(buffer, buffer [all...] |
/frameworks/ml/nn/common/include/ |
H A D | CpuExecutor.h | 47 uint8_t* buffer; member in struct:android::nn::RunTimeOperandInfo 48 // The length of the buffer. 54 // we free the buffer. For non-temporary variables, this count is 75 explicit RunTimePoolInfo(uint8_t* buffer); 181 // TODO: Check buffer is at least as long as size of data. 182 T* data = reinterpret_cast<T*>(info.buffer);
|
/frameworks/ml/nn/driver/cache/BlobCache/ |
H A D | BlobCache.cpp | 201 // The key was found. Return the value if we can allocate a buffer. 206 ALOGV("get: copying %zu bytes to caller's buffer", valueBlobSize); 211 ALOGV("get: cannot allocate caller's buffer: needs %zu", valueBlobSize); 231 int BlobCache::flatten(void* buffer, size_t size) const { argument 237 Header* header = reinterpret_cast<Header*>(buffer); 247 uint8_t* byteBuffer = reinterpret_cast<uint8_t*>(buffer); 281 int BlobCache::unflatten(void const* buffer, size_t size) { argument 290 const Header* header = reinterpret_cast<const Header*>(buffer); 306 const uint8_t* byteBuffer = reinterpret_cast<const uint8_t*>(buffer);
|
/frameworks/ml/nn/runtime/ |
H A D | ModelBuilder.cpp | 73 int ModelBuilder::setOperandValue(uint32_t index, const void* buffer, size_t length) { argument 85 if (buffer == nullptr) { 87 LOG(ERROR) << "ANeuralNetworksModel_setOperandValue buffer is nullptr but length is " 116 memcpy(&mSmallOperandValues[operand.location.offset], buffer, valueLength); 128 mLargeOperandValues.push_back(LargeValue{.operandIndex = index, .buffer = buffer}); 166 memcpy(memoryPointer + operand.location.offset, l.buffer, operand.location.length);
|
/frameworks/native/include/binder/ |
H A D | TextOutput.h | 105 inline const void* buffer() const; 194 inline const void* HexDump::buffer() const { return mBuffer; } function in class:android::HexDump
|
/frameworks/native/include/gui/ |
H A D | Surface.h | 86 /* Attaches a sideband buffer stream to the Surface's IGraphicBufferProducer. 131 * thread to queue a buffer. 183 ANativeWindowBuffer* buffer, int fenceFd); 185 ANativeWindowBuffer** buffer, int* fenceFd); 189 ANativeWindowBuffer* buffer, int fenceFd); 193 ANativeWindowBuffer* buffer); 195 ANativeWindowBuffer** buffer); 197 ANativeWindowBuffer* buffer); 199 ANativeWindowBuffer* buffer); 234 virtual int dequeueBuffer(ANativeWindowBuffer** buffer, in 304 sp<GraphicBuffer> buffer; member in struct:android::Surface::BufferSlot [all...] |