/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
H A D | preferences_value_parcel.cpp | 107 uint8_t *startAddr = data.data(); in MarshallingBasicValueInner() local 119 errCode = memcpy_s(startAddr + sizeof(uint8_t), memLen, &intValue, basicDataLen); in MarshallingBasicValueInner() 125 errCode = memcpy_s(startAddr + sizeof(uint8_t), memLen, &longValue, basicDataLen); in MarshallingBasicValueInner() 131 errCode = memcpy_s(startAddr + sizeof(uint8_t), memLen, &floatValue, basicDataLen); in MarshallingBasicValueInner() 137 errCode = memcpy_s(startAddr + sizeof(uint8_t), memLen, &doubleValue, basicDataLen); in MarshallingBasicValueInner() 143 errCode = memcpy_s(startAddr + sizeof(uint8_t), memLen, &boolValue, basicDataLen); in MarshallingBasicValueInner() 166 uint8_t *startAddr = data.data(); in MarshallingBasicValue() local 167 int errCode = memcpy_s(startAddr, data.size(), &type, sizeof(uint8_t)); in MarshallingBasicValue() 192 uint8_t *startAddr = data.data(); in MarshallingStringValue() local 193 int errCode = memcpy_s(startAddr, sizeo in MarshallingStringValue() 226 uint8_t *startAddr = data.data(); MarshallingStringArrayValue() local 266 MarshallingVecUInt8AfterType(const PreferencesValue &value, uint8_t *startAddr) MarshallingVecUInt8AfterType() argument 294 MarshallingVecBigIntAfterType(const PreferencesValue &value, uint8_t *startAddr) MarshallingVecBigIntAfterType() argument 330 MarshallingVecDoubleAfterType(const PreferencesValue &value, uint8_t *startAddr) MarshallingVecDoubleAfterType() argument 355 MarshallingVecBoolAfterType(const PreferencesValue &value, uint8_t *startAddr) MarshallingVecBoolAfterType() argument 389 uint8_t *startAddr = data.data(); MarshallingBasicArrayValue() local 454 const uint8_t *startAddr = data.data(); UnmarshallingBasicValue() local 485 const uint8_t *startAddr = data.data(); UnmarshallingStringValue() local 513 const uint8_t *startAddr = data.data() + sizeof(uint8_t); UnmarshallingStringArrayValue() local 537 const uint8_t *startAddr = data.data() + sizeof(uint8_t); UnmarshallingVecUInt8() local 553 const uint8_t *startAddr = data.data() + sizeof(uint8_t); UnmarshallingVecDouble() local 569 const uint8_t *startAddr = data.data() + sizeof(uint8_t); UnmarshallingVecBool() local 585 const uint8_t *startAddr = data.data() + sizeof(uint8_t); UnmarshallingVecBigInt() local [all...] |
/foundation/arkui/ace_engine_lite/frameworks/common/memory/cache/test/unittest/common/ |
H A D | cache_manager_tdd_test.cpp | 49 uintptr_t startAddr = reinterpret_cast<uintptr_t>(buffer); in HWTEST_F() local 50 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); in HWTEST_F() 56 const uintptr_t targetPos = startAddr + MAGIC_NUMBER_LENGTH; in HWTEST_F() 91 uintptr_t startAddr = reinterpret_cast<uintptr_t>(buffer); in HWTEST_F() local 92 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); in HWTEST_F() 101 startAddr + (pageFileBufLength * unit) + (magicNumberCount * MAGIC_NUMBER_LENGTH) + MAGIC_NUMBER_LENGTH; in HWTEST_F() 127 uintptr_t startAddr = reinterpret_cast<uintptr_t>(buffer); in HWTEST_F() local 128 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); in HWTEST_F() 158 uintptr_t startAddr = reinterpret_cast<uintptr_t>(buffer); in HWTEST_F() local 159 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSiz in HWTEST_F() 191 uintptr_t startAddr = reinterpret_cast<uintptr_t>(buffer); HWTEST_F() local 229 uintptr_t startAddr = reinterpret_cast<uintptr_t>(buffer); HWTEST_F() local [all...] |
/foundation/arkui/ace_engine_lite/frameworks/common/memory/cache/ |
H A D | cache_manager.cpp | 70 void CacheManager::SetupCacheMemInfo(uintptr_t startAddr, size_t length) in SetupCacheMemInfo() argument 77 cacheState_ = DistributeCacheRange(startAddr, length); in SetupCacheMemInfo() 81 wholeCacheMemInfo_.cacheStartAddr = startAddr; in SetupCacheMemInfo() 85 CacheSetupState CacheManager::PrecheckStatus(uintptr_t startAddr, size_t totalBytes) const in PrecheckStatus() argument 96 if (startAddr == 0 || totalBytes == 0) { in PrecheckStatus() 126 CacheSetupState CacheManager::DistributeCacheRange(uintptr_t startAddr, size_t totalBytes) in DistributeCacheRange() argument 128 CacheSetupState setupResult = PrecheckStatus(startAddr, totalBytes); in DistributeCacheRange() 138 uintptr_t startPos = startAddr + offset; in DistributeCacheRange()
|
H A D | cache_manager.h | 52 void SetupCacheMemInfo(uintptr_t startAddr, size_t length); 77 * @param startAddr the entire cache buffer start address 82 CacheSetupState DistributeCacheRange(uintptr_t startAddr, size_t totalBytes); 83 CacheSetupState PrecheckStatus(uintptr_t startAddr, size_t totalBytes) const;
|
/foundation/arkui/ui_lite/frameworks/dfx/ |
H A D | ui_screenshot.cpp | 102 bool WriteBlockToFile(int32_t fd, uint32_t* buffer, uint8_t*& startAddr, uint32_t row, in WriteBlockToFile() argument 108 uint16_t* temp = reinterpret_cast<uint16_t*>(startAddr); in WriteBlockToFile() 113 if (memcpy_s(buffer, width * DEFAULT_COLOR_SIZE, startAddr, width * DEFAULT_COLOR_SIZE) != EOK) { in WriteBlockToFile() 117 startAddr += stride; in WriteBlockToFile()
|
/foundation/distributeddatamgr/preferences/frameworks/native/include/ |
H A D | preferences_value_parcel.h | 55 static int MarshallingVecUInt8AfterType(const PreferencesValue &value, uint8_t *startAddr); 56 static int MarshallingVecBigIntAfterType(const PreferencesValue &value, uint8_t *startAddr); 57 static int MarshallingVecDoubleAfterType(const PreferencesValue &value, uint8_t *startAddr); 58 static int MarshallingVecBoolAfterType(const PreferencesValue &value, uint8_t *startAddr);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_ashmem_helper.cpp | 93 void *startAddr = ::mmap(nullptr, size_, mapType, MAP_SHARED, fd_, 0); in MapAshmem() local 94 if (startAddr == MAP_FAILED) { in MapAshmem() 98 data_ = startAddr; in MapAshmem()
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bitmap_manager.cpp | 479 int32_t IpParamParser::GetIp4AndMask(const in_addr &startAddr, const in_addr &endAddr, std::vector<Ip4Data> &list) in GetIp4AndMask() argument 481 uint32_t startIpInt = ntohl(startAddr.s_addr); in GetIp4AndMask()
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/ |
H A D | bitmap_manager.h | 188 * @param startAddr start ip 193 static int32_t GetIp4AndMask(const in_addr &startAddr, const in_addr &endAddr, std::vector<Ip4Data> &list);
|