Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskCompressImageToJpeg.java118 int numBytes; in run() local
234 numBytes = compressedData.limit(); in run()
282 numBytes = compressJpegFromYUV420Image( in run()
288 if (numBytes > jpgBufferSize) { in run()
301 numBytes = compressJpegFromYUV420Image( in run()
306 if (numBytes < 0) { in run()
310 compressedData.limit(numBytes); in run()
323 writeOut = new byte[numBytes]; in run()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/testmode/
DDeterministicSecureRandom.java79 private byte[] generateBytes(int numBytes) { in generateBytes() argument
82 this, null /* keyBytes; unused */, mBytesToSign, numBytes); in generateBytes()
87 public byte[] generateSeed(int numBytes) { in generateSeed() argument
88 return generateBytes(numBytes); in generateSeed()
/packages/modules/DnsResolver/
Dres_cache.cpp299 static int _dnsPacket_checkBytes(DnsPacket* packet, int numBytes, const void* bytes) { in _dnsPacket_checkBytes() argument
302 if (p + numBytes > packet->end) return 0; in _dnsPacket_checkBytes()
304 if (memcmp(p, bytes, numBytes) != 0) return 0; in _dnsPacket_checkBytes()
306 packet->cursor = p + numBytes; in _dnsPacket_checkBytes()
437 static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned hash) { in _dnsPacket_hashBytes() argument
441 while (numBytes > 0 && p < end) { in _dnsPacket_hashBytes()
443 numBytes--; in _dnsPacket_hashBytes()
584 static int _dnsPacket_isEqualBytes(DnsPacket* pack1, DnsPacket* pack2, int numBytes) { in _dnsPacket_isEqualBytes() argument
588 if (p1 + numBytes > pack1->end || p2 + numBytes > pack2->end) return 0; in _dnsPacket_isEqualBytes()
590 if (memcmp(p1, p2, numBytes) != 0) return 0; in _dnsPacket_isEqualBytes()
[all …]
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/
DgenPCLm.cpp438 int PCLmGenerator::injectRLEStrip(ubyte *RLEBuffer, int numBytes, int imageWidth, int imageHeight, in injectRLEStrip() argument
490 sprintf(pOutStr, "/Length %d\n", numBytes); in injectRLEStrip()
512 write2Buff(RLEBuffer, numBytes); in injectRLEStrip()
527 int PCLmGenerator::injectLZStrip(ubyte *LZBuffer, int numBytes, int imageWidth, int imageHeight, in injectLZStrip() argument
579 sprintf(pOutStr, "/Length %d\n", numBytes); in injectLZStrip()
601 write2Buff(LZBuffer, numBytes); in injectLZStrip()
994 sint32 numBytes = imageHeight * imageWidth * numComponents; in prepImageForBacksideDuplex() local
998 for (head = imagePtr, tail = imagePtr + numBytes - 1; tail > head;) { in prepImageForBacksideDuplex()
1014 for (head = imagePtr, tail = imagePtr + numBytes; tail > head;) { in prepImageForBacksideDuplex()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataWarningPreferenceController.java39 private final BytesThresholdPickedListener mThresholdPickedListener = numBytes -> {
40 getNetworkPolicyEditor().setPolicyWarningBytes(getNetworkTemplate(), numBytes);
DDataLimitPreferenceController.java47 private final BytesThresholdPickedListener mThresholdPickedListener = numBytes -> {
48 getNetworkPolicyEditor().setPolicyLimitBytes(getNetworkTemplate(), numBytes);
DUsageBytesThresholdPickerDialog.java173 void onThresholdPicked(long numBytes); in onThresholdPicked() argument
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/
DPCLmGenerator.h98 int injectRLEStrip(ubyte *RLEBuffer, int numBytes, int imageWidth, int imageHeight,
104 int injectLZStrip(ubyte *LZBuffer, int numBytes, int imageWidth, int imageHeight,
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DSectionParser.java2012 int numBytes = data[pos + 2] & 0xff; in extractText() local
2013 if (data.length < pos + 3 + numBytes) { in extractText()
2020 return new String(data, pos + 3, numBytes, StandardCharsets.ISO_8859_1); in extractText()
2023 return new String(data, pos + 3, numBytes, SCSU_CHARSET); in extractText()
2029 return new String(data, pos + 3, numBytes, StandardCharsets.UTF_16); in extractText()
2035 pos += 3 + numBytes; in extractText()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraImpl.java833 int numBytes = JpegUtilNative.compressJpegFromYUV420Image( in acquireJpegBytesAndClose() local
836 if (numBytes < 0) { in acquireJpegBytesAndClose()
839 buffer.limit(numBytes); in acquireJpegBytesAndClose()
DOneCameraZslImpl.java1031 int numBytes = JpegUtilNative.compressJpegFromYUV420Image( in acquireJpegBytes() local
1035 if (numBytes < 0) { in acquireJpegBytes()
1039 buffer.limit(numBytes); in acquireJpegBytes()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java851 protected void onBytesCopied(long numBytes) { in onBytesCopied() argument
937 public void onBytesCopied(long numBytes) { in onBytesCopied() argument
938 mBytesCopied.getAndAdd(numBytes); in onBytesCopied()
/packages/apps/Camera2/jni/
Djpegutil.cpp342 auto flush = [](size_t numBytes __unused) { in Compress()