Home
last modified time | relevance | path

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

12

/packages/modules/StatsD/framework/java/android/util/
DStatsEvent.java239 @NonNull final byte[] payload, final int numBytes) { in StatsEvent() argument
243 mNumBytes = numBytes; in StatsEvent()
465 final int numBytes = value.length; in writeByteArray() local
466 mPos += mBuffer.putInt(mPos, numBytes); in writeByteArray()
759 private boolean hasEnoughSpace(final int index, final int numBytes) { in hasEnoughSpace() argument
760 final int totalBytesNeeded = index + numBytes; in hasEnoughSpace()
871 final int numBytes = value.length; in putByteArray() local
872 if (hasEnoughSpace(index, numBytes)) { in putByteArray()
873 System.arraycopy(value, 0, mBytes, index, numBytes); in putByteArray()
874 return numBytes; in putByteArray()
/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/StatsD/statsd/src/logd/
DLogEvent.cpp122 int32_t numBytes = readNextValue<int32_t>(); in parseString() local
123 if ((uint32_t)numBytes > mRemainingLen) { in parseString()
128 string value = string((char*)mBuf, numBytes); in parseString()
129 mBuf += numBytes; in parseString()
130 mRemainingLen -= numBytes; in parseString()
149 int32_t numBytes = readNextValue<int32_t>(); in parseByteArray() local
150 if ((uint32_t)numBytes > mRemainingLen) { in parseByteArray()
155 vector<uint8_t> value(mBuf, mBuf + numBytes); in parseByteArray()
156 mBuf += numBytes; in parseByteArray()
157 mRemainingLen -= numBytes; in parseByteArray()
/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/StatsD/statsd/src/config/
DConfigManager.cpp144 const int numBytes = config.ByteSize(); in UpdateConfig() local
145 vector<uint8_t> buffer(numBytes); in UpdateConfig()
146 config.SerializeToArray(&buffer[0], numBytes); in UpdateConfig()
166 update_saved_configs_locked(key, buffer, numBytes); in UpdateConfig()
171 update_saved_configs_locked(key, buffer, numBytes); in UpdateConfig()
362 const int numBytes) { in update_saved_configs_locked() argument
370 StorageManager::writeFile(file_name.c_str(), &buffer[0], numBytes); in update_saved_configs_locked()
DConfigManager.h132 const int numBytes);
/packages/modules/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DPatchUtils.java50 final int numBytes) throws IOException { in readFully() argument
52 while (numRead < numBytes) { in readFully()
53 int readNow = in.read(destination, startAt + numRead, numBytes - numRead); in readFully()
/packages/services/Car/cpp/powerpolicy/server/src/
DSilentModeHandler.cpp161 int numBytes = read(mFdInotify, eventBuf, sizeof(eventBuf)); in startMonitoringSilentModeHwState() local
162 if (numBytes < static_cast<int>(inotifyEventSize)) { in startMonitoringSilentModeHwState()
175 while (numBytes >= static_cast<int>(inotifyEventSize)) { in startMonitoringSilentModeHwState()
182 numBytes -= eventSize; in startMonitoringSilentModeHwState()
/packages/modules/StatsD/lib/libstatssocket/
Dstats_event.c233 void AStatsEvent_writeByteArray(AStatsEvent* event, const uint8_t* buf, size_t numBytes) { in AStatsEvent_writeByteArray() argument
236 numBytes = 0; in AStatsEvent_writeByteArray()
238 append_int32(event, numBytes); in AStatsEvent_writeByteArray()
239 if (numBytes > 0) { in AStatsEvent_writeByteArray()
240 append_byte_array(event, buf, numBytes); in AStatsEvent_writeByteArray()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/audio/
DWavWriter.java64 private static void writeFileHeader(DataOutputStream stream, int numBytes) throws IOException { in writeFileHeader() argument
68 stream.write(toLittleEndianBytes(HEADER_SIZE + numBytes - 8)); in writeFileHeader()
94 stream.write(toLittleEndianBytes(numBytes), 0, 4); in writeFileHeader()
DAudioDebug.java103 int numBytes = numShorts * 2; in onAudioRecorded() local
118 .setBufferSizeInBytes(numBytes) in onAudioRecorded()
131 Log.i(TAG, String.format("Wrote %d bytes to an AudioTrack", numBytes)); in onAudioRecorded()
/packages/modules/DnsResolver/
Dres_cache.cpp316 static int _dnsPacket_checkBytes(DnsPacket* packet, int numBytes, const void* bytes) { in _dnsPacket_checkBytes() argument
319 if (p + numBytes > packet->end) return 0; in _dnsPacket_checkBytes()
321 if (memcmp(p, bytes, numBytes) != 0) return 0; in _dnsPacket_checkBytes()
323 packet->cursor = p + numBytes; in _dnsPacket_checkBytes()
454 static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned hash) { in _dnsPacket_hashBytes() argument
458 while (numBytes > 0 && p < end) { in _dnsPacket_hashBytes()
460 numBytes--; in _dnsPacket_hashBytes()
600 static int _dnsPacket_isEqualBytes(DnsPacket* pack1, DnsPacket* pack2, int numBytes) { in _dnsPacket_isEqualBytes() argument
604 if (p1 + numBytes > pack1->end || p2 + numBytes > pack2->end) return 0; in _dnsPacket_isEqualBytes()
606 if (memcmp(p1, p2, numBytes) != 0) return 0; in _dnsPacket_isEqualBytes()
[all …]
/packages/modules/adb/client/
Dusb_osx.cpp512 UInt32 numBytes = len; in usb_read() local
532 result = (*handle->interface)->ReadPipe(handle->interface, handle->bulkIn, buf, &numBytes); in usb_read()
537 result = (*handle->interface)->ReadPipe(handle->interface, handle->bulkIn, buf, &numBytes); in usb_read()
541 return numBytes; in usb_read()
/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/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/src/
DgenPCLm.cpp437 int PCLmGenerator::injectRLEStrip(ubyte *RLEBuffer, int numBytes, int imageWidth, int imageHeight, in injectRLEStrip() argument
489 sprintf(pOutStr, "/Length %d\n", numBytes); in injectRLEStrip()
511 write2Buff(RLEBuffer, numBytes); in injectRLEStrip()
526 int PCLmGenerator::injectLZStrip(ubyte *LZBuffer, int numBytes, int imageWidth, int imageHeight, in injectLZStrip() argument
578 sprintf(pOutStr, "/Length %d\n", numBytes); in injectLZStrip()
600 write2Buff(LZBuffer, numBytes); in injectLZStrip()
993 sint32 numBytes = imageHeight * imageWidth * numComponents; in prepImageForBacksideDuplex() local
997 for (head = imagePtr, tail = imagePtr + numBytes - 1; tail > head;) { in prepImageForBacksideDuplex()
1013 for (head = imagePtr, tail = imagePtr + numBytes; tail > head;) { in prepImageForBacksideDuplex()
/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/modules/StatsD/lib/libstatssocket/include/
Dstats_event.h120 void AStatsEvent_writeByteArray(AStatsEvent* event, const uint8_t* buf, size_t numBytes);
/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/modules/StatsD/statsd/src/storage/
DStorageManager.h50 static void writeFile(const char* file, const void* buffer, int numBytes);
DStorageManager.cpp126 void StorageManager::writeFile(const char* file, const void* buffer, int numBytes) { in writeFile() argument
135 if (android::base::WriteFully(fd, buffer, numBytes)) { in writeFile()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java975 protected void onBytesCopied(long numBytes) { in onBytesCopied() argument
1061 public void onBytesCopied(long numBytes) { in onBytesCopied() argument
1062 mBytesCopied.getAndAdd(numBytes); in onBytesCopied()

12