/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | common_macros.h | 24 #define ALIGN_UP(sz, align) (((sz) + ((align) - 1)) & (-(align))) 25 #define ALIGN_DOWN(sz, align) ((sz) & (-(align))) 26 #define ADDR_ALIGN(ptr, sz, align) \ 28 uint32_t _sz = ALIGN_DOWN(sz, align); \ 29 (ptr) = decltype(ptr)((uintptr_t)(void*)(ptr) + ((sz)-_sz)); \ 30 (sz) = _sz; \ 32 #define STRUCT_ALIGN(sz) alignas(sz) [all...] |
/foundation/resourceschedule/ffrt/benchmarks/base/ |
H A D | base.cpp | 21 static constexpr uint64_t sz = 30; // 该值越大任务平均可并行度越大(平均并发度=sz/9) variable 42 idx[i] = rnd() % sz; in GenerateIndexes() 54 uint64_t* arr = new uint64_t[sz]; in BenchmarkNative() 57 for (uint64_t i = 0; i < sz; i++) { in BenchmarkNative() 75 for (uint64_t i = 0; i < sz; i++) { in BenchmarkNative() 84 uint64_t* arr = new uint64_t[sz]; in BenchmarkFFRT() 87 for (uint64_t i = 0; i < sz; i++) { in BenchmarkFFRT() 106 for (uint64_t i = 0; i < sz; i++) { in BenchmarkFFRT()
|
/foundation/multimedia/camera_lite/services/server/src/ |
H A D | camera_server.cpp | 90 size_t sz; in GetCameraAbility() local 91 string cameraId((const char*)(ReadString(req, &sz))); in GetCameraAbility() 125 size_t sz; in GetCameraInfo() local 126 string cameraId((const char*)(ReadString(req, &sz))); in GetCameraInfo() 152 size_t sz; in CreateCamera() local 153 string cameraId((const char*)(ReadString(req, &sz))); in CreateCamera() 166 size_t sz; in CloseCamera() local 167 string cameraId((const char*)(ReadString(req, &sz))); in CloseCamera() 180 size_t sz; in SetCameraConfig() local 181 string cameraId((const char*)(ReadString(req, &sz))); in SetCameraConfig() 250 size_t sz; SetFrameConfig() local 266 size_t sz; TriggerLoopingCapture() local 282 size_t sz; TriggerSingleCapture() local 298 size_t sz; StopLoopingCapture() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/ |
H A D | matrix44.cpp | 30 void Matrix44::Scale(scalar sx, scalar sy, scalar sz) in Scale() argument 32 impl_->Scale(sx, sy, sz); in Scale() 45 void Matrix44::PreScale(scalar sx, scalar sy, scalar sz) in PreScale() argument 47 impl_->PreScale(sx, sy, sz); in PreScale()
|
/foundation/ai/ai_engine/services/common/utils/encdec/source/ |
H A D | data_encoder.cpp | 28 MemBlock *AllocateMemBlock(const size_t sz) in AllocateMemBlock() argument 30 size_t size = sz + sizeof(MemBlock); in AllocateMemBlock() 36 block->blockSize = sz; in AllocateMemBlock() 58 int DataEncoder::Init(size_t sz) in Init() argument 60 buffer_ = AllocateMemBlock(sz); in Init()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_matrix44.cpp | 36 void SkiaMatrix44::Scale(scalar sx, scalar sy, scalar sz) in Scale() argument 38 skMatrix44_.setScale(sx, sy, sz); in Scale() 51 void SkiaMatrix44::PreScale(scalar sx, scalar sy, scalar sz) in PreScale() argument 53 skMatrix44_.preScale(sx, sy, sz); in PreScale()
|
H A D | skia_matrix44.h | 38 void Scale(scalar sx, scalar sy, scalar sz) override; 41 void PreScale(scalar sx, scalar sy, scalar sz) override;
|
/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/interfaces/ |
H A D | type_converter.h | 56 TypeConverterConfig(DataType dt, size_t sz)
in TypeConverterConfig() 59 size = sz;
in TypeConverterConfig()
|
/foundation/communication/dsoftbus/adapter/common/bus_center/network/ |
H A D | lnn_netlink_monitor.c | 58 int32_t sz = DEFAULT_NETLINK_RECVBUF; in CreateNetlinkSocket() local 66 if (SoftBusSocketSetOpt(sockFd, SOFTBUS_SOL_SOCKET, SOFTBUS_SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0 && in CreateNetlinkSocket() 67 SoftBusSocketSetOpt(sockFd, SOFTBUS_SOL_SOCKET, SOFTBUS_SO_RCVBUF, &sz, sizeof(sz)) < 0) { in CreateNetlinkSocket()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | matrix44.h | 43 * @brief Sets Matrix44 to scale by sx, sy and sz about pivot point at (0, 0, 0). 46 * @param sz z-axis scale factor. 48 void Scale(scalar sx, scalar sy, scalar sz); 54 void PreScale(scalar sx, scalar sy, scalar sz = 1);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | matrix44_impl.h | 38 virtual void Scale(scalar sx, scalar sy, scalar sz) = 0; 41 virtual void PreScale(scalar sx, scalar sy, scalar sz);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/benchmarks/ |
H A D | file_utils.cpp | 131 size_t sz = messageParcel->GetDataSize(); in WriteMessageParcelToFile() local 134 std::to_string(frameNum) + ", size = " + std::to_string(sz); in WriteMessageParcelToFile() 138 return OHOS::Rosen::Benchmarks::WriteToFile(buf, sz, drawCmdListFile) && in WriteMessageParcelToFile()
|
/foundation/filemanagement/storage_service/services/storage_daemon/netlink/test/ |
H A D | netlink_listener_test.cpp | 92 int32_t sz = 256 * 1024; in StartSocket() local 105 if (setsockopt(socketFd, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) != 0) { in StartSocket()
|
H A D | netlink_handler_test.cpp | 94 int32_t sz = 256 * 1024; in StartSocket() local 108 if (setsockopt(socketFd, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) != 0) { in StartSocket()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/ |
H A D | obex_utils.cpp | 247 std::vector<uint8_t> ObexUtils::MakeRequestDigest(const uint8_t *nonce, int sz, const std::string &password) in MakeRequestDigest() argument 252 (void)memcpy_s(nonceBuf, sizeof(nonceBuf), nonce, sz); in MakeRequestDigest() 253 nonceBuf[sz] = ':'; in MakeRequestDigest() 254 (void)memcpy_s(&nonceBuf[sz + 1], sizeof(nonceBuf) - sz - 1, in MakeRequestDigest() 258 std::vector<uint8_t> vc = digest->Digest((uint8_t *)nonceBuf, sz + password.size() + 1); in MakeRequestDigest()
|
H A D | obex_utils.h | 43 static std::vector<uint8_t> MakeRequestDigest(const uint8_t *nonce, int sz, const std::string &password);
|
/foundation/ability/dmsfwk_lite/source/ |
H A D | dmslite_packet.c | 126 size_t sz = strlen(field) + 1; in MarshallString() local 127 if (g_counter + (TYPE_FILED_LENGTH + MAX_BYTE_NUM + sz) > PACKET_DATA_SIZE) { in MarshallString() 133 EncodeLengthOfTlv(sz); in MarshallString()
|
/foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base/ |
H A D | ace_mem_base.h | 28 void *(*malloc_func)(size_t sz);
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/recovery/ |
H A D | ability_recovery.cpp | 159 size_t sz = parcel.GetDataSize(); in SerializeDataToFile() local 161 if (sz == 0 || buf == 0) { in SerializeDataToFile() 167 if (DefaultRecovery() && (sz > DEFAULT_RECOVERY_MAX_RESTORE_SIZE)) { in SerializeDataToFile() 168 TAG_LOGE(AAFwkTag::RECOVERY, "data is too large, size: %{public}zu", sz); in SerializeDataToFile() 173 ssize_t nwrite = write(fd, reinterpret_cast<uint8_t*>(buf), sz); in SerializeDataToFile() 177 TAG_LOGD(AAFwkTag::RECOVERY, "file size: %{public}zu", sz); in SerializeDataToFile()
|
/foundation/graphic/graphic_utils_lite/interfaces/innerkits/ |
H A D | graphic_neon_utils.h | 93 int32_t sz = MATH_MIN(dstSize, srcSize); in NeonMemcpy() local 95 int32_t mod = sz % 64; in NeonMemcpy() 100 sz -= mod; in NeonMemcpy() 101 if (sz == 0) { in NeonMemcpy() 113 " SUBS %[sz], %[sz], #0x40 \n" in NeonMemcpy() 115 : [dst] "+r"(dst), [src] "+r"(src), [sz] "+r"(sz) in NeonMemcpy()
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | tar_file.cpp | 592 size_t sz = name.length() + 1; in WriteLongName() local 596 string size = I2Ocs(sizeof(tmp.size), static_cast<off_t>(sz)); in WriteLongName() 622 buffer.resize(sz); in WriteLongName() 624 if (static_cast<size_t>(WriteAll(buffer, sz)) != sz) { in WriteLongName() 629 return CompleteBlock(static_cast<off_t>(sz)); in WriteLongName()
|
/foundation/ai/ai_engine/services/common/utils/encdec/include/ |
H A D | data_encoder.h | 48 * @param [in] sz The size of the data which needs to be encoded. 51 int Init(size_t sz = INIT_BUFFER_SIZE);
|
/foundation/communication/dhcp/services/dhcp_client/src/ |
H A D | dhcp_ipv6_client.cpp | 469 int32_t sz = KERNEL_BUFF_SIZE; in createKernelSocket() local 476 if (setsockopt(sockFd, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { in createKernelSocket() 481 if (setsockopt(sockFd, SOL_SOCKET, SO_RCVBUF, &sz, sizeof(sz)) < 0) { in createKernelSocket()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/matrix_fuzzer/ |
H A D | matrix_fuzzer.cpp | 93 scalar sz = GetObject<scalar>(); in MatrixFuzzTest001() local 112 matrix.SetMatrix(tx, ty, tz, sx, sy, sz, dx, dy, dz); in MatrixFuzzTest001()
|
/foundation/multimedia/camera_lite/frameworks/binder/src/ |
H A D | camera_service_client.cpp | 143 size_t sz; in Callback() local 144 string cameraId((const char*)(ReadString(reply, &sz))); in Callback()
|