/developtools/hapsigner/hapsigntool_cpp/common/src/ |
H A D | byte_buffer.cpp | 41 ByteBuffer::ByteBuffer() : buffer(nullptr), position(0), limit(0), capacity(0) in ByteBuffer() 45 ByteBuffer::ByteBuffer(int32_t bufferCapacity) : buffer(nullptr), position(0), limit(0), capacity(0) in ByteBuffer() 50 ByteBuffer::ByteBuffer(const char* arr, int32_t length) : buffer(nullptr), position(0), limit(0), capacity(0) in ByteBuffer() 56 ByteBuffer::ByteBuffer(const ByteBuffer& other) : buffer(nullptr), position(0), limit(0), capacity(0) in ByteBuffer() 59 if (buffer != nullptr && capacity > 0) { in ByteBuffer() 60 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in ByteBuffer() 82 capacity = bufferCapacity; in Init() 97 if (buffer != nullptr && other.GetBufferPtr() != nullptr && capacity > 0) { in operator =() 98 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in operator =() 152 return capacity; in GetCapacity() [all...] |
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
H A D | ftrace_field_parser_test.cpp | 38 if (memcpy_s(&buffer_[offset], buffer_.capacity() - offset, &value, sizeof(value))) { in AppendInt() 54 if (memcpy_s(&buffer_[offset], buffer_.capacity() - offset, &str[0], str.size())) { in AppendString()
|
/developtools/smartperf_host/trace_streamer/test/unittest/rawtrace/ |
H A D | ftrace_field_processor_test.cpp | 38 if (memcpy_s(&fieldBuffer_[offset], fieldBuffer_.capacity() - offset, &value, sizeof(value))) { in AppendIntFiled() 54 if (memcpy_s(&fieldBuffer_[offset], fieldBuffer_.capacity() - offset, &str[0], str.size())) { in AppendString()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/utils/ |
H A D | HapUtils.java | 392 int capacity = source.capacity(); in sliceBuffer() 393 if (startPos < 0 || endPos < startPos || endPos > capacity) { in sliceBuffer() 395 "startPos: " + startPos + ", endPos: " + endPos + ", capacity: " + capacity); in sliceBuffer() 422 byte[] signatureBlockBytes = new byte[header.capacity()]; in reverseSliceBuffer()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/ |
H A D | VerifyHap.java | 363 hapSigningBlock.capacity() - ZIP_HEAD_OF_SIGNING_BLOCK_LENGTH, in getHapSignatureSchemeBlockAndOptionalBlocks() 364 hapSigningBlock.capacity()); in getHapSignatureSchemeBlockAndOptionalBlocks() 366 hapSigningBlock.capacity() - ZIP_HEAD_OF_SIGNING_BLOCK_LENGTH); in getHapSignatureSchemeBlockAndOptionalBlocks() 368 byte[] signatureValueBytes = new byte[value.capacity()]; in getHapSignatureSchemeBlockAndOptionalBlocks() 373 int current = value.capacity() - ZIP_HEAD_OF_SUBSIGNING_BLOCK_LENGTH * blockCount; in getHapSignatureSchemeBlockAndOptionalBlocks()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/fsverity/ |
H A D | MerkleTreeBuilder.java | 189 int bufferSize = buffer.capacity(); in runHashTask() 215 long size = inputBuffer.capacity(); in transInputDataToHashData() 290 dataRoundupChunkSize(generateHashBuffer, originalHashBuffer.capacity(), digestSize); in generateHashDataByHashData()
|
/developtools/smartperf_host/trace_streamer/src/parser/pbreader_parser/xpower_parser/ |
H A D | pbreader_xpower_parser.cpp | 70 auto capacity = realBattery.capacity(); in ProcessRealBattery() local 72 capacity); in ProcessRealBattery()
|
/developtools/hdc/hdc_rust/src/common/ |
H A D | uds.rs | 143 let capacity = mem::size_of_val(&addr.addr) as socklen_t; in wrap_accept() 144 addr.len = capacity; in wrap_accept()
|
H A D | hdctransfer.rs | 326 let capacity = read_len as i32; in spawn_handler() 336 capacity, in spawn_handler() 337 capacity, in spawn_handler()
|
/developtools/hapsigner/hapsigntool_cpp_test/fuzztest/hapsign/hapsign001_fuzzer/ |
H A D | hapsign001_fuzzer.cpp | 178 int capacity = 120; in HapSignTest005() local 182 testblock.optionalBlockValue.SetCapacity(capacity); in HapSignTest005()
|
/developtools/hapsigner/hapsigntool_cpp/common/include/ |
H A D | byte_buffer.h | 42 * Equal to capacity when writing status 43 * Capacity: represents the capacity of ByteBuffer, which is the maximum number of bytes that can be stored 52 * Void clear()// Reset to initial state: mark=-1, position=0, limit=capacity 54 * then move the position to the next position of this data segment and set the limit value to capacity 129 int32_t capacity = 0; member in OHOS::SignatureTools::ByteBuffer
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/ |
H A D | ZipUtils.java | 80 int searchBufferSize = searchBuffer.capacity(); in findEocdInSearchBuffer()
|
/developtools/hdc/src/daemon/ |
H A D | jdwp.cpp | 305 size_t capacity = sizeof(saddr.sun_path); in UvPipeBind() local 306 size_t min = size < capacity ? size : capacity; in UvPipeBind() 310 saddr.sun_path[capacity - 1] = '\0'; in UvPipeBind()
|
/developtools/profiler/device/plugins/native_daemon/include/ |
H A D | hashlist.h | 157 // capacity
166 inline std::size_t capacity() const
in capacity() function in OHOS::Developtools::NativeDaemon::HashList
|
/developtools/hiperf/test/unittest/common/native/ |
H A D | hashlist_test.cpp | 45 ASSERT_EQ(hashList.capacity(), size_); in HWTEST_F()
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
H A D | hashlist_test.cpp | 44 ASSERT_EQ(hashList.capacity(), size_);
in HWTEST_F()
|
/developtools/profiler/device/plugins/xpower_plugin/test/ |
H A D | xpower_decoder.cpp | 140 cJSON_AddNumberToObject(cjsonBattery, "capacity", realBattery.capacity());
in CreateRealBattery()
|
/developtools/hiperf/include/ |
H A D | hashlist.h | 157 // capacity 166 inline std::size_t capacity() const in capacity() function in OHOS::Developtools::HiPerf::HashList
|
/developtools/profiler/hiebpf/include/ |
H A D | vmlinux.h | 7692 __u64 capacity; member 22766 long unsigned int capacity; member 23680 long unsigned int capacity; member 117654 int capacity; global() member 123960 sector_t capacity; global() member 124049 unsigned int capacity; global() member 135583 int capacity; global() member 138598 unsigned int capacity; global() member [all...] |