Home
last modified time | relevance | path

Searched refs:writePtr (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tools/aapt2/compile/
DPng.cpp92 static void writeDataToStream(png_structp writePtr, png_bytep data, in writeDataToStream() argument
94 BigBuffer* outBuffer = reinterpret_cast<BigBuffer*>(png_get_io_ptr(writePtr)); in writeDataToStream()
434 static bool writePng(IDiagnostics* diag, png_structp writePtr, in writePng() argument
436 if (setjmp(png_jmpbuf(writePtr))) { in writePng()
463 png_set_compression_level(writePtr, Z_BEST_COMPRESSION); in writePng()
511 png_set_IHDR(writePtr, infoPtr, info->width, info->height, 8, colorType, in writePng()
516 png_set_PLTE(writePtr, infoPtr, rgbPalette, paletteEntries); in writePng()
518 png_set_tRNS(writePtr, infoPtr, alphaPalette, paletteEntries, in writePng()
521 png_set_filter(writePtr, 0, PNG_NO_FILTERS); in writePng()
523 png_set_filter(writePtr, 0, PNG_ALL_FILTERS); in writePng()
[all …]
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java870 int writePtr = 0; in writeCommStatusAndClose() local
872 Memory.pokeInt(buf, writePtr, status, ByteOrder.BIG_ENDIAN); in writeCommStatusAndClose()
873 writePtr += 4; in writeCommStatusAndClose()
877 final int len = Math.min(rawMsg.length, buf.length - writePtr); in writeCommStatusAndClose()
878 System.arraycopy(rawMsg, 0, buf, writePtr, len); in writeCommStatusAndClose()
879 writePtr += len; in writeCommStatusAndClose()
883 Os.write(mCommFd, buf, 0, writePtr); in writeCommStatusAndClose()