/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | others_clone_restore.cpp | 325 auto fName = (char *)calloc(FILENAME_MAX, sizeof(char)); in GetAllfilesInCurrentDir() local 326 if (fName == nullptr) { in GetAllfilesInCurrentDir() 329 if (strcpy_s(fName, FILENAME_MAX, path.c_str()) != ERR_SUCCESS) { in GetAllfilesInCurrentDir() 330 FREE_MEMORY_AND_SET_NULL(fName); in GetAllfilesInCurrentDir() 333 fName[len++] = '/'; in GetAllfilesInCurrentDir() 335 FREE_MEMORY_AND_SET_NULL(fName); in GetAllfilesInCurrentDir() 345 MEDIA_ERR_LOG("Failed to copy file name %{private}s ", fName); in GetAllfilesInCurrentDir() 348 if (lstat(fName, &statInfo) == -1) { in GetAllfilesInCurrentDir() 352 std::string currentPath = fName; in GetAllfilesInCurrentDir() 356 SetFileInfosInCurrentDir(fName, statInfo); in GetAllfilesInCurrentDir() [all …]
|
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/ |
H A D | ringtone_scanner.cpp | 333 auto fName = (char *)calloc(FILENAME_MAX, sizeof(char)); in WalkFileTree() local 334 if (fName == nullptr) { in WalkFileTree() 337 if (strcpy_s(fName, FILENAME_MAX, path.c_str()) != ERR_SUCCESS) { in WalkFileTree() 338 free(fName); in WalkFileTree() 341 fName[len++] = '/'; in WalkFileTree() 343 free(fName); in WalkFileTree() 354 if (strncpy_s(fName + len, FILENAME_MAX - len, ent->d_name, FILENAME_MAX - len)) { in WalkFileTree() 357 if (lstat(fName, &statInfo) == -1) { in WalkFileTree() 360 string currentPath = fName; in WalkFileTree() 371 free(fName); in WalkFileTree()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/include/scanner/ |
H A D | media_scanner.h | 49 #define FREE_MEMORY_AND_SET_NULL(fName) \ argument 51 free(fName); \ 52 fName = nullptr; \
|
/ohos5.0/drivers/peripheral/wlan/hostapd/interfaces/hdi_service/service_common/ |
H A D | hdi_hostapd_hal.c | 530 static int SendPrivateCmd(struct iwreq *wrq, struct iw_priv_args *privPtr, const char *fName, in SendPrivateCmd() argument 537 if (wrq == NULL || privPtr == NULL || fName == NULL) { in SendPrivateCmd() 544 if (strncmp(privPtr[i].name, fName, strlen(fName)) == 0) { in SendPrivateCmd() 551 HDF_LOGE("fName: %{public}s - function not supported", fName); in SendPrivateCmd() 566 HDF_LOGE("fName: %{public}s - invalid private ioctl", fName); in SendPrivateCmd() 588 static int SetCommandHwHisi(const char *iface, const char *fName, unsigned int bufLen, char dataBuf… in SetCommandHwHisi() argument 594 if (iface == NULL || fName == NULL) { in SetCommandHwHisi() 628 ret = SendPrivateCmd(&wrq, privPtr, fName, bufLen, sock, dataBuf); in SetCommandHwHisi()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_gpu_context.cpp | 241 GrGpuResourceTag grTag(tag.fPid, tag.fTid, tag.fWid, tag.fFid, tag.fName); in PurgeUnlockedResourcesByTag() 279 GrGpuResourceTag grTag(tag.fPid, tag.fTid, tag.fWid, tag.fFid, tag.fName); in ReleaseByTag() 308 GrGpuResourceTag grTag(tag.fPid, tag.fTid, tag.fWid, tag.fFid, tag.fName); in DumpMemoryStatisticsByTag() 337 GrGpuResourceTag grTag(tag.fPid, tag.fTid, tag.fWid, tag.fFid, tag.fName); in SetCurrentGpuResourceTag()
|
/ohos5.0/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/hostapd_hal/ |
H A D | wifi_hostapd_hal.c | 558 static int SendPrivateCmd(struct iwreq *wrq, struct iw_priv_args *privPtr, const char *fName, in SendPrivateCmd() argument 565 if (wrq == NULL || privPtr == NULL || fName == NULL) { in SendPrivateCmd() 569 if (strncmp(privPtr[i].name, fName, strlen(fName)) == 0) { in SendPrivateCmd() 575 LOGE("fName: %{public}s - function not supported", fName); in SendPrivateCmd() 587 LOGE("fName: %{public}s - invalid private ioctl", fName); in SendPrivateCmd() 606 static int SetCommandHwHisi(const char *iface, const char *fName, unsigned int bufLen, char dataBuf… in SetCommandHwHisi() argument 612 if (iface == NULL || fName == NULL) { in SetCommandHwHisi() 646 ret = SendPrivateCmd(&wrq, privPtr, fName, bufLen, sock, dataBuf); in SetCommandHwHisi()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | media_scanner.cpp | 815 auto fName = (char *)calloc(FILENAME_MAX, sizeof(char)); in WalkFileTree() local 816 if (fName == nullptr) { in WalkFileTree() 820 if (strcpy_s(fName, FILENAME_MAX, path.c_str()) != ERR_SUCCESS) { in WalkFileTree() 821 FREE_MEMORY_AND_SET_NULL(fName); in WalkFileTree() 824 fName[len++] = '/'; in WalkFileTree() 826 FREE_MEMORY_AND_SET_NULL(fName); in WalkFileTree() 840 if (strncpy_s(fName + len, FILENAME_MAX - len, ent->d_name, FILENAME_MAX - len)) { in WalkFileTree() 844 if (lstat(fName, &statInfo) == -1) { in WalkFileTree() 848 string currentPath = fName; in WalkFileTree() 868 FREE_MEMORY_AND_SET_NULL(fName); in WalkFileTree()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/image/ |
H A D | gpu_context.h | 48 : fPid(pid), fTid(tid), fWid(wid), fFid(fid), fName(name) {} in GPUResourceTag() 53 std::string fName; member
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/include/ |
H A D | js_field_node.h | 26 explicit JsFieldNode(const std::string& fName);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/include/ |
H A D | js_field_node.h | 26 explicit JsFieldNode(const std::string& fName);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | js_field_node.cpp | 41 JsFieldNode::JsFieldNode(const std::string& fName) in JsFieldNode() argument 42 : fieldName_(fName) in JsFieldNode()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | js_field_node.cpp | 41 JsFieldNode::JsFieldNode(const std::string& fName) in JsFieldNode() argument 42 : fieldName_(fName) in JsFieldNode()
|
/ohos5.0/foundation/graphic/graphic_3d/3d_scene_adapter/src/ |
H A D | scene_adapter.cpp | 126 bool LoadFunc(T &fn, const char *fName, void* handle) in LoadFunc() argument 128 fn = reinterpret_cast<T>(dlsym(handle, fName)); in LoadFunc()
|
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_query.c | 205 const char *fName) in MallocCertNameAndPath() argument 216 uint32_t nameSize = strlen(fName) + 1; in MallocCertNameAndPath()
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/ |
H A D | lume_common.cpp | 124 bool LoadFunc(T &fn, const char *fName, void* handle) in LoadFunc() argument 126 fn = reinterpret_cast<T>(dlsym(handle, fName)); in LoadFunc()
|