/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | fbex.cpp | 172 FbeOptsE ops{ .userIdDouble = userIdDouble, .userIdSingle = userIdSingle }; in InstallEL5KeyToKernel() 173 auto fbeRet = ioctl(fd, FBEX_ADD_CLASS_E, &ops); in InstallEL5KeyToKernel() 209 FbeOpts ops{.user = userId, .type = type, .len = size, .flag = flag}; in InstallKeyToKernel() 210 auto err = memcpy_s(ops.iv, sizeof(ops.iv), iv, size); in InstallKeyToKernel() 216 int ret = ioctl(fd, FBEX_IOC_ADD_IV, &ops); in InstallKeyToKernel() 224 auto errops = memcpy_s(iv, size, ops.iv, sizeof(ops.iv)); in InstallKeyToKernel() 229 (void)memset_s(&ops.iv, sizeof(ops in InstallKeyToKernel() 353 FbeOpts ops; LockScreenToKernel() local 623 FbeOpts ops; GetStatus() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | image_source_native_ndk_test.cpp | 42 OH_ImageSource_Info *ops = nullptr; in HWTEST_F() local 43 Image_ErrorCode ret = OH_ImageSourceInfo_Create(&ops); in HWTEST_F() 56 OH_ImageSource_Info *ops = nullptr; in HWTEST_F() local 58 Image_ErrorCode ret = OH_ImageSourceInfo_GetWidth(ops, width); in HWTEST_F() 71 OH_ImageSource_Info *ops = nullptr; in HWTEST_F() local 73 Image_ErrorCode ret = OH_ImageSourceInfo_GetHeight(ops, width); in HWTEST_F() 86 OH_ImageSource_Info *ops = nullptr; in HWTEST_F() local 87 Image_ErrorCode ret = OH_ImageSourceInfo_Release(ops); in HWTEST_F() 100 OH_DecodingOptions *ops = nullptr; in HWTEST_F() local 101 Image_ErrorCode ret = OH_DecodingOptions_Create(&ops); in HWTEST_F() 114 OH_DecodingOptions *ops = nullptr; HWTEST_F() local 133 OH_DecodingOptions *ops = nullptr; HWTEST_F() local 152 OH_DecodingOptions *ops = nullptr; HWTEST_F() local 171 OH_DecodingOptions *ops = nullptr; HWTEST_F() local 192 OH_DecodingOptions *ops = nullptr; HWTEST_F() local 280 OH_DecodingOptions* ops = nullptr; HWTEST_F() local 295 OH_DecodingOptions *ops = nullptr; HWTEST_F() local [all...] |
H A D | image_packer_native_ndk_test.cpp | 42 OH_PackingOptions *ops = nullptr; in HWTEST_F() local 43 Image_ErrorCode ret = OH_PackingOptions_Create(&ops); in HWTEST_F() 45 OH_PackingOptions_Release(ops); in HWTEST_F() 57 OH_PackingOptions *ops = nullptr; in HWTEST_F() local 66 Image_ErrorCode ret = OH_PackingOptions_Create(&ops); in HWTEST_F() 68 OH_PackingOptions_SetMimeType(ops, mimeType2); in HWTEST_F() 69 OH_PackingOptions_GetMimeType(ops, mimeType); in HWTEST_F() 73 OH_PackingOptions_Release(ops); in HWTEST_F() 85 OH_PackingOptions *ops = nullptr; in HWTEST_F() local 86 Image_ErrorCode ret = OH_PackingOptions_Release(ops); in HWTEST_F() [all...] |
H A D | image_ndk_test.cpp | 288 OhosImageSourceOps* ops= nullptr; in HWTEST_F() local 289 int32_t ret = OH_ImageSource_Create(env, src, ops, res); in HWTEST_F() 307 OhosImageSourceOps* ops= nullptr; in HWTEST_F() local 308 int32_t ret = OH_ImageSource_CreateFromUri(env, uri, size, ops, res); in HWTEST_F() 325 OhosImageSourceOps* ops= nullptr; in HWTEST_F() local 326 int32_t ret = OH_ImageSource_CreateFromFd(env, fd, ops, res); in HWTEST_F() 344 OhosImageSourceOps* ops= nullptr; in HWTEST_F() local 345 int32_t ret = OH_ImageSource_CreateFromData(env, data, dataSize, ops, res); in HWTEST_F() 365 OhosImageSourceOps* ops= nullptr; in HWTEST_F() local 366 int32_t ret = OH_ImageSource_CreateFromRawFile(env, rawFile, ops, re in HWTEST_F() 383 OhosImageSourceOps* ops= nullptr; HWTEST_F() local 402 OhosImageSourceOps* ops= nullptr; HWTEST_F() local 433 OhosImageDecodingOps* ops = nullptr; HWTEST_F() local 450 OhosImageDecodingOps* ops = nullptr; HWTEST_F() local [all...] |
H A D | pixelmap_native_ndk_test.cpp | 55 OH_Pixelmap_InitializationOptions *ops = nullptr; in HWTEST_F() local 56 Image_ErrorCode res = OH_PixelmapInitializationOptions_Create(&ops); in HWTEST_F() 69 OH_Pixelmap_InitializationOptions *ops = nullptr; in HWTEST_F() local 70 OH_PixelmapInitializationOptions_Create(&ops); in HWTEST_F() 72 OH_PixelmapInitializationOptions_SetWidth(ops, 1); in HWTEST_F() 73 OH_PixelmapInitializationOptions_GetWidth(ops, &width); in HWTEST_F() 86 OH_Pixelmap_InitializationOptions *ops = nullptr; in HWTEST_F() local 87 OH_PixelmapInitializationOptions_Create(&ops); in HWTEST_F() 89 OH_PixelmapInitializationOptions_SetHeight(ops, 1); in HWTEST_F() 90 OH_PixelmapInitializationOptions_GetHeight(ops, in HWTEST_F() 103 OH_Pixelmap_InitializationOptions *ops = nullptr; HWTEST_F() local 115 OH_Pixelmap_InitializationOptions *ops = nullptr; HWTEST_F() local 132 OH_Pixelmap_InitializationOptions *ops = nullptr; HWTEST_F() local 519 OH_Pixelmap_InitializationOptions *ops = nullptr; HWTEST_F() local [all...] |
/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/ |
H A D | image_source_mdk.cpp | 50 struct OhosImageSourceOps* ops, napi_value *res)
in OH_ImageSource_Create() 55 args.sourceOps = ops;
in OH_ImageSource_Create() 63 struct OhosImageSourceOps* ops, napi_value *res)
in OH_ImageSource_CreateFromUri() 71 args.sourceOps = ops;
in OH_ImageSource_CreateFromUri() 79 struct OhosImageSourceOps* ops, napi_value *res)
in OH_ImageSource_CreateFromFd() 84 args.sourceOps = ops;
in OH_ImageSource_CreateFromFd() 92 struct OhosImageSourceOps* ops, napi_value *res)
in OH_ImageSource_CreateFromData() 100 args.sourceOps = ops;
in OH_ImageSource_CreateFromData() 108 struct OhosImageSourceOps* ops, napi_value *res)
in OH_ImageSource_CreateFromRawFile() 113 args.sourceOps = ops;
in OH_ImageSource_CreateFromRawFile() 49 OH_ImageSource_Create(napi_env env, struct OhosImageSource* src, struct OhosImageSourceOps* ops, napi_value *res) OH_ImageSource_Create() argument 62 OH_ImageSource_CreateFromUri(napi_env env, char* uri, size_t size, struct OhosImageSourceOps* ops, napi_value *res) OH_ImageSource_CreateFromUri() argument 78 OH_ImageSource_CreateFromFd(napi_env env, int32_t fd, struct OhosImageSourceOps* ops, napi_value *res) OH_ImageSource_CreateFromFd() argument 91 OH_ImageSource_CreateFromData(napi_env env, uint8_t* data, size_t dataSize, struct OhosImageSourceOps* ops, napi_value *res) OH_ImageSource_CreateFromData() argument 107 OH_ImageSource_CreateFromRawFile(napi_env env, RawFileDescriptor rawFile, struct OhosImageSourceOps* ops, napi_value *res) OH_ImageSource_CreateFromRawFile() argument 120 OH_ImageSource_CreateIncremental(napi_env env, struct OhosImageSource* source, struct OhosImageSourceOps* ops, napi_value *res) OH_ImageSource_CreateIncremental() argument 133 OH_ImageSource_CreateIncrementalFromData(napi_env env, uint8_t* data, size_t dataSize, struct OhosImageSourceOps* ops, napi_value *res) OH_ImageSource_CreateIncrementalFromData() argument 158 OH_ImageSource_CreatePixelMap(const ImageSourceNative* native, struct OhosImageDecodingOps* ops, napi_value *res) OH_ImageSource_CreatePixelMap() argument 174 OH_ImageSource_CreatePixelMapList(const ImageSourceNative* native, struct OhosImageDecodingOps* ops, napi_value* res) OH_ImageSource_CreatePixelMapList() argument [all...] |
H A D | image_source_native.cpp | 307 static void ParseDecodingOps(DecodeOptions &decOps, struct OH_DecodingOptions *ops) in ParseDecodingOps() argument 309 if (ops->sampleSize != INVALID_SAMPLE_SIZE) { in ParseDecodingOps() 310 decOps.sampleSize = ops->sampleSize; in ParseDecodingOps() 312 decOps.rotateNewDegrees = ops->rotate; in ParseDecodingOps() 313 decOps.desiredSize.width = static_cast<int32_t>(ops->desiredSize.width); in ParseDecodingOps() 314 decOps.desiredSize.height = static_cast<int32_t>(ops->desiredSize.height); in ParseDecodingOps() 315 decOps.desiredRegion.left = static_cast<int32_t>(ops->desiredRegion.x); in ParseDecodingOps() 316 decOps.desiredRegion.top = static_cast<int32_t>(ops->desiredRegion.y); in ParseDecodingOps() 317 decOps.desiredRegion.width = static_cast<int32_t>(ops->desiredRegion.width); in ParseDecodingOps() 318 decOps.desiredRegion.height = static_cast<int32_t>(ops in ParseDecodingOps() 426 OH_ImageSourceNative_CreatePixelmap(OH_ImageSourceNative *source, OH_DecodingOptions *ops, OH_PixelmapNative **pixelmap) OH_ImageSourceNative_CreatePixelmap() argument 453 OH_ImageSourceNative_CreatePixelmapList(OH_ImageSourceNative *source, OH_DecodingOptions *ops, OH_PixelmapNative *resVecPixMap[], size_t outSize) OH_ImageSourceNative_CreatePixelmapList() argument [all...] |
/foundation/communication/netstack/frameworks/cj/http/src/ |
H A D | net_http_request_context.cpp | 349 void RequestContext::ParseParams(std::string url, CHttpRequestOptions *ops) in ParseParams() argument 352 if (ops != nullptr) { in ParseParams() 353 options.SetMethod(std::string(ops->method)); in ParseParams() 354 options.SetReadTimeout(ops->readTimeout); in ParseParams() 355 options.SetMaxLimit(ops->maxLimit); in ParseParams() 356 options.SetConnectTimeout(ops->connectTimeout); in ParseParams() 357 usingCache_ = ops->usingCache; in ParseParams() 358 if (ops->usingProtocol == static_cast<int32_t>(HttpProtocol::HTTP1_1) || in ParseParams() 359 ops->usingProtocol == static_cast<int32_t>(HttpProtocol::HTTP2)) { in ParseParams() 360 options.SetUsingProtocol(static_cast<HttpProtocol>(ops in ParseParams() 542 Request(std::string url, CHttpRequestOptions *ops, bool isInStream) Request() argument [all...] |
/foundation/resourceschedule/ffrt/src/eu/ |
H A D | cpu_worker.cpp | 155 CPUEUTask* task = worker->ops.PickUpTaskBatch(worker); in GetTask() 162 worker->ops.NotifyTaskPicked(worker); in GetTask() 181 PollerRet ret = worker->ops.TryPoll(worker, timeout); in TryPoll() 197 if (worker->ops.IsBlockAwareInit()) { in Dispatch() 209 worker->ops.WorkerPrepare(worker); in Dispatch() 214 worker->ops.WorkerLooper(worker); in Dispatch() 217 worker->ops.WorkerRetired(worker); in Dispatch() 226 if (!worker->ops.IsExceedRunningThreshold(worker)) { in WorkerLooperDefault() 233 worker->ops.TryPoll(worker, 0); in WorkerLooperDefault() 246 CPUEUTask* task = worker->ops in WorkerLooperDefault() [all...] |
H A D | cpu_worker.h | 31 CPUWorker(const QoS& qos, CpuWorkerOps&& ops) : WorkerThread(qos), ops(ops) in CPUWorker() argument 41 CpuWorkerOps ops; member in ffrt::CPUWorker
|
H A D | scpu_monitor.h | 26 SCPUMonitor(CpuMonitorOps&& ops) : CPUMonitor(std::move(ops)) {}; in SCPUMonitor() argument
|
H A D | cpu_monitor.h | 50 CPUMonitor(CpuMonitorOps&& ops); 88 return ops; in GetOps() 95 CpuMonitorOps ops; member in ffrt::CPUMonitor
|
H A D | cpu_monitor.cpp | 38 CPUMonitor::CPUMonitor(CpuMonitorOps&& ops) in CPUMonitor() argument 39 : ops(ops), in CPUMonitor() 258 size_t taskCount = static_cast<size_t>(ops.GetTaskCount(i)); in MonitorMain() 483 ops.WakeupWorkers(qos); in Poke() 489 ops.IncWorker(qos); in Poke() 509 ops.WakeupWorkers(qos); in NotifyWorkers() 517 ops.IncWorker(qos); in NotifyWorkers() 571 ops.IncWorker(qos); in PokeAdd() 595 ops in PokePick() [all...] |
/foundation/multimedia/image_framework/interfaces/kits/native/include/ |
H A D | image_source_mdk.h | 397 * @param ops Indicates a pointer to the options for creating the image source.
429 struct OhosImageSourceOps* ops, napi_value *res);
438 * @param ops Indicates a pointer to the options for creating the image source.
452 struct OhosImageSourceOps* ops, napi_value *res);
460 * @param ops Indicates a pointer to the options for creating the image source.
474 struct OhosImageSourceOps* ops, napi_value *res);
483 * @param ops Indicates a pointer to the options for creating the image source.
497 struct OhosImageSourceOps* ops, napi_value *res);
505 * @param ops Indicates a pointer to the options for creating the image source.
519 struct OhosImageSourceOps* ops, napi_valu [all...] |
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/ |
H A D | fuse_operations.cpp | 46 inoPtr->ops->Lookup(req, parent, name); in Lookup() 62 inoPtr->ops->Access(req, ino, mask); in Access() 78 inoPtr->ops->GetAttr(req, ino, fi); in GetAttr() 94 inoPtr->ops->Open(req, ino, fi); in Open() 110 inoPtr->ops->Forget(req, ino, nLookup); in Forget() 124 inoPtr->ops->ForgetMulti(req, count, forgets); in ForgetMulti() 141 inoPtr->ops->MkNod(req, parent, name, mode, rdev); in MkNod() 158 inoPtr->ops->Create(req, parent, name, mode, fi); in Create() 176 inoPtr->ops->ReadDir(req, ino, size, off, fi); in ReadDir() 193 inoPtr->ops in SetXattr() [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
H A D | sysio.c | 25 return (SysIoSock *)g_udpIo.ops.createSocket(domain, type, protocol); in SysIoSocketFactory() 30 return g_udpIo.ops.select(FILLP_NULL_PTR, timeoutUs); in SysioSelect() 35 return g_udpIo.ops.canSocketRead(arg); in SysioIsSockReadable()
|
/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/include/ |
H A D | image_source_native_impl.h | 28 OH_ImageSourceNative(char *uri, size_t size, OHOS::Media::SourceOptions ops); 29 OH_ImageSourceNative(int32_t fd, OHOS::Media::SourceOptions ops); 30 OH_ImageSourceNative(uint8_t *data, size_t dataSize, OHOS::Media::SourceOptions ops); 31 OH_ImageSourceNative(RawFileDescriptor rawFile, OHOS::Media::SourceOptions ops);
|
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/ |
H A D | fuse_operations_test.cpp | 129 test1->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 132 test2->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 207 test1->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 210 test2->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 287 test1->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 290 test2->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 365 test1->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 368 test2->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 445 test1->ops = make_shared<FileOperationsCloud>(); in HWTEST_F() 448 test2->ops in HWTEST_F() [all...] |
/foundation/multimedia/image_framework/frameworks/kits/js/common/pixelmap_ndk/ |
H A D | pixelmap_native.cpp | 164 Image_ErrorCode OH_PixelmapInitializationOptions_Create(OH_Pixelmap_InitializationOptions **ops) in OH_PixelmapInitializationOptions_Create() argument 166 if (ops == nullptr) { in OH_PixelmapInitializationOptions_Create() 169 *ops = new OH_Pixelmap_InitializationOptions(); in OH_PixelmapInitializationOptions_Create() 170 if (*ops == nullptr) { in OH_PixelmapInitializationOptions_Create() 177 Image_ErrorCode OH_PixelmapInitializationOptions_GetWidth(OH_Pixelmap_InitializationOptions *ops, in OH_PixelmapInitializationOptions_GetWidth() argument 180 if (ops == nullptr || width == nullptr) { in OH_PixelmapInitializationOptions_GetWidth() 183 *width = ops->width; in OH_PixelmapInitializationOptions_GetWidth() 188 Image_ErrorCode OH_PixelmapInitializationOptions_SetWidth(OH_Pixelmap_InitializationOptions *ops, in OH_PixelmapInitializationOptions_SetWidth() argument 191 if (ops == nullptr) { in OH_PixelmapInitializationOptions_SetWidth() 194 ops in OH_PixelmapInitializationOptions_SetWidth() 199 OH_PixelmapInitializationOptions_GetHeight(OH_Pixelmap_InitializationOptions *ops, uint32_t *height) OH_PixelmapInitializationOptions_GetHeight() argument 210 OH_PixelmapInitializationOptions_SetHeight(OH_Pixelmap_InitializationOptions *ops, uint32_t height) OH_PixelmapInitializationOptions_SetHeight() argument 221 OH_PixelmapInitializationOptions_GetPixelFormat(OH_Pixelmap_InitializationOptions *ops, int32_t *pixelFormat) OH_PixelmapInitializationOptions_GetPixelFormat() argument 232 OH_PixelmapInitializationOptions_SetPixelFormat(OH_Pixelmap_InitializationOptions *ops, int32_t pixelFormat) OH_PixelmapInitializationOptions_SetPixelFormat() argument 243 OH_PixelmapInitializationOptions_GetSrcPixelFormat(OH_Pixelmap_InitializationOptions *ops, int32_t *srcpixelFormat) OH_PixelmapInitializationOptions_GetSrcPixelFormat() argument 254 OH_PixelmapInitializationOptions_SetSrcPixelFormat(OH_Pixelmap_InitializationOptions *ops, int32_t srcpixelFormat) OH_PixelmapInitializationOptions_SetSrcPixelFormat() argument 265 OH_PixelmapInitializationOptions_GetAlphaType(OH_Pixelmap_InitializationOptions *ops, int32_t *alphaType) OH_PixelmapInitializationOptions_GetAlphaType() argument 276 OH_PixelmapInitializationOptions_SetAlphaType(OH_Pixelmap_InitializationOptions *ops, int32_t alphaType) OH_PixelmapInitializationOptions_SetAlphaType() argument 309 OH_PixelmapInitializationOptions_Release(OH_Pixelmap_InitializationOptions *ops) OH_PixelmapInitializationOptions_Release() argument [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr/source/ |
H A D | task_manager.c | 219 if (service->ops.step == BOOT_SYS_WAIT) {
in BeginWork() 223 service->ops.messages++;
in BeginWork() 224 service->ops.timestamp = SAMGR_GetProcessTime();
in BeginWork() 234 if (service->ops.step == BOOT_SYS_WAIT) {
in EndWork() 238 uint32 lastTime = service->ops.timestamp;
in EndWork() 239 service->ops.timestamp = (uint32)SAMGR_GetProcessTime();
in EndWork() 240 uint32 interval = GET_INTERVAL(lastTime, service->ops.timestamp);
in EndWork() 245 service->ops.abnormal++;
in EndWork()
|
/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_source_mdk_kits.cpp | 52 static void ParseImageSourceOps(SourceOptions &opts, struct OhosImageSourceOps* ops) in ParseImageSourceOps() argument 54 opts.baseDensity = ops->density; in ParseImageSourceOps() 55 opts.pixelFormat = static_cast<PixelFormat>(ops->pixelFormat); in ParseImageSourceOps() 56 opts.size.width = ops->size.width; in ParseImageSourceOps() 57 opts.size.height = ops->size.height; in ParseImageSourceOps() 60 static void ParseDecodingOps(DecodeOptions &decOps, struct OhosImageDecodingOps* ops) in ParseDecodingOps() argument 62 if (ops->sampleSize != INVALID_SAMPLE_SIZE) { in ParseDecodingOps() 63 decOps.sampleSize = ops->sampleSize; in ParseDecodingOps() 65 decOps.rotateNewDegrees = ops->rotate; in ParseDecodingOps() 66 decOps.editable = (ops in ParseDecodingOps() 116 ImageSourceNativeCreate(struct OhosImageSource* source, struct OhosImageSourceOps* ops, std::shared_ptr<ImageSource> &result, ImageResource &resource) ImageSourceNativeCreate() argument [all...] |
/foundation/resourceschedule/ffrt/src/sched/ |
H A D | task_state.cpp | 22 std::array<TaskState::Op, static_cast<size_t>(TaskState::MAX)> TaskState::ops; member in ffrt::TaskState 47 if (ops[static_cast<size_t>(state)] && in OnTransition() 48 !ops[static_cast<size_t>(state)](task)) { in OnTransition()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_gpu_context.cpp | 29 OH_Drawing_GpuContext* OH_Drawing_GpuContextCreateFromGL(OH_Drawing_GpuContextOptions ops) in OH_Drawing_GpuContextCreateFromGL() argument 32 contextOps.SetAllowPathMaskCaching(ops.allowPathMaskCaching); in OH_Drawing_GpuContextCreateFromGL()
|
/foundation/graphic/graphic_2d/rosen/modules/effect/test/unittest/ |
H A D | effect_filter_unittest.cpp | 29 OH_Pixelmap_InitializationOptions *ops = nullptr; in CreatePixelMap() local 30 OH_PixelmapInitializationOptions_Create(&ops); in CreatePixelMap() 32 OH_PixelmapInitializationOptions_SetAlphaType(ops, 2); in CreatePixelMap() 34 OH_PixelmapInitializationOptions_SetHeight(ops, 4); in CreatePixelMap() 36 OH_PixelmapInitializationOptions_SetWidth(ops, 4); in CreatePixelMap() 38 OH_PixelmapInitializationOptions_SetPixelFormat(ops, 4); in CreatePixelMap() 48 OH_PixelmapNative_CreatePixelmap(data, dataLength, ops, *pixelmap); in CreatePixelMap()
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | string_expression.cpp | 128 std::string ops = "+-*/()"; in PushOpStack() local 133 if (ops.find(i) == ops.npos) { in PushOpStack() 259 std::string ops = "+-*/()"; in CalculateExpImpl() local 261 if (ops.find(i) == ops.npos) { in CalculateExpImpl()
|