/foundation/filemanagement/storage_service/services/storage_manager/volume/src/ |
H A D | volume_manager_service.cpp | 60 std::string path, std::string description) in OnVolumeMounted() 73 volumePtr->SetPath(path); in OnVolumeMounted() 252 void VolumeManagerService::NotifyMtpMounted(const std::string &id, const std::string &path, const std::string &desc, in NotifyMtpMounted() argument 258 volumePtr->SetPath(path); in NotifyMtpMounted() 267 void VolumeManagerService::NotifyMtpUnmounted(const std::string &id, const std::string &path) in NotifyMtpUnmounted() argument 59 OnVolumeMounted(std::string volumeId, int fsType, std::string fsUuid, std::string path, std::string description) OnVolumeMounted() argument
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/media_manager/ |
H A D | mpeg_manager.cpp | 230 std::string path = PATH + requestId + tag; in GetFileFd() local 232 tempPath_ = path; in GetFileFd() 234 outPath_ = path; in GetFileFd() 236 DP_DEBUG_LOG("GetFileFd path: %{public}s", path.c_str()); in GetFileFd() 237 int fd = open(path.c_str(), flags, S_IRUSR | S_IWUSR); in GetFileFd()
|
/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | media_scanner_napi.cpp | 236 int32_t MediaScannerNapiCallback::OnScanFinished(const int32_t status, const std::string &uri, const std::string &path) in OnScanFinished() argument 238 auto itr = scannerMap_.find(path); in OnScanFinished() 242 scannerMap_.erase(path); in OnScanFinished() 249 void MediaScannerNapiCallback::SetToMap(const std::string &path, const napi_ref &cbRef) in SetToMap() argument 251 scannerMap_.insert(std::make_pair(path, cbRef)); in SetToMap()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_photo_operations_test/src/ |
H A D | medialibrary_formmap_operations_test.cpp | 234 string path = MediaLibraryFormMapOperations::GetFilePathById(ToString(fileId)); in HWTEST_F() local 235 string uri = MediaLibraryFormMapOperations::GetUriByFileId(fileId, path.c_str()); in HWTEST_F() 278 string path = MediaLibraryFormMapOperations::GetFilePathById(ToString(fileId + 1)); in HWTEST_F() local 279 EXPECT_EQ(path, ""); in HWTEST_F() 281 string uri = MediaLibraryFormMapOperations::GetUriByFileId((fileId + 1), path.c_str()); in HWTEST_F()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/background_cloud_file_processor_test/src/ |
H A D | background_cloud_file_processor_test.cpp | 94 string path = "/storage/cloud/files/photo/1/" + displayName; in InsertPhoto() local 114 valuesBucket.PutString(MediaColumn::MEDIA_FILE_PATH, path); in InsertPhoto() 127 return path; in InsertPhoto() 134 string path = InsertPhoto(mediaType); in PreparePhotos() local 135 photos.push_back(path); in PreparePhotos()
|
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/include/ |
H A D | mock_resource_manager_impl.h | 36 * Add resource path to hap paths 37 * @param path the resource path 38 * @return true if add resource path success, else false 40 virtual bool AddResource(const char *path); 43 * Add resource path to overlay paths 44 * @param path the resource path 45 * @param overlayPaths the exist overlay resource path 46 * @return true if add resource path succes [all...] |
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/ |
H A D | mock_resource_manager.cpp | 33 bool ResourceManagerImpl::AddResource(const char *path)
in AddResource() argument 38 bool ResourceManagerImpl::AddResource(const std::string &path, const std::vector<std::string> &overlayPaths)
in AddResource() argument 43 bool ResourceManagerImpl::RemoveResource(const std::string &path, const std::vector<std::string> &overlayPaths)
in RemoveResource() argument 308 bool AddOverlayResource(const std::string &path)
in AddOverlayResource() argument 313 bool RemoveOverlayResource(const std::string &path)
in RemoveOverlayResource() argument
|
/foundation/distributeddatamgr/relational_store/frameworks/native/dfx/src/ |
H A D | rdb_fault_hiview_reporter.cpp | 51 if (IsReportCorruptedFault(eventInfo.path)) { in ReportFault() 59 CreateCorruptedFlag(eventInfo.path); in ReportFault() 65 if (IsReportCorruptedFault(eventInfo.path) && repair) { in ReportRestore() 73 DeleteCorruptedFlag(eventInfo.path); in ReportRestore() 187 SqliteGlobalConfig::GetDbPath(config, eventInfo.path); in Create()
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_jsonutil/ |
H A D | b_jsonutil_other_test.cpp | 235 std::string path; in HWTEST_F() local 239 bool result = BJsonUtil::BuildOnProcessErrInfo(reportInfo, path, err); in HWTEST_F() 246 result = BJsonUtil::BuildOnProcessErrInfo(reportInfo, path, err); in HWTEST_F() 254 result = BJsonUtil::BuildOnProcessErrInfo(reportInfo, path, err); in HWTEST_F() 268 result = BJsonUtil::BuildOnProcessErrInfo(reportInfo, path, err); in HWTEST_F()
|
/foundation/distributedhardware/distributed_input/common/include/ |
H A D | input_hub.h | 52 const std::string path; member 60 Device(int fd, const std::string &path); 199 bool IsInputNodeNoNeedScan(const std::string &path); 207 void RecordSkipDevicePath(std::string path); 208 bool IsSkipDevicePath(const std::string &path);
|
/kernel/linux/linux-5.10/scripts/ |
H A D | bpf_helpers_doc.py | 436 'struct path', 479 'struct path', 580 script = os.path.abspath(sys.argv[0]) 581 linuxRoot = os.path.dirname(os.path.dirname(script)) 582 bpfh = os.path.join(linuxRoot, 'include/uapi/linux/bpf.h') 591 if (os.path.isfile(bpfh)): 592 argParser.add_argument('--filename', help='path to include/uapi/linux/bpf.h', 595 argParser.add_argument('--filename', help='path to include/uapi/linux/bpf.h')
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | cgroup.c | 168 const char *path; in do_show() local 176 path = GET_ARG(); in do_show() 193 cgroup_fd = open(path, O_RDONLY); in do_show() 195 p_err("can't open cgroup %s", path); in do_show() 202 path, strerror(errno)); in do_show()
|
H A D | link.c | 45 char *path; in link_parse_fd() local 49 path = **argv; in link_parse_fd() 52 return open_obj_pinned_any(path, BPF_OBJ_LINK); in link_parse_fd() 166 jsonw_string(json_wtr, obj->path); in show_link_close_json() 252 printf("\n\tpinned %s", obj->path); in show_link_close_plain()
|
/kernel/linux/linux-5.10/tools/bpf/ |
H A D | bpf_jit_disasm.c | 37 char *path; in get_exec_path() local 43 path = strdup(tpath); in get_exec_path() 44 assert(path); in get_exec_path() 46 len = readlink(path, tpath, size); in get_exec_path() 49 free(path); in get_exec_path()
|
/kernel/linux/linux-5.10/drivers/oprofile/ |
H A D | buffer_sync.c | 211 static inline unsigned long fast_get_dcookie(const struct path *path) in fast_get_dcookie() argument 215 if (path->dentry->d_flags & DCACHE_COOKIE) in fast_get_dcookie() 216 return (unsigned long)path->dentry; in fast_get_dcookie() 217 get_dcookie(path, &cookie); in fast_get_dcookie()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | fsnotify.h | 94 const struct path *path; in fsnotify_file() local 100 path = file_real_path(file); in fsnotify_file() 101 return fsnotify_parent(path->dentry, mask, path, FSNOTIFY_EVENT_PATH); in fsnotify_file()
|
/kernel/linux/linux-6.6/tools/testing/selftests/sgx/ |
H A D | load.c | 44 static bool encl_map_bin(const char *path, struct encl *encl) in encl_map_bin() argument 51 fd = open(path, O_RDONLY); in encl_map_bin() 57 ret = stat(path, &sb); in encl_map_bin() 177 bool encl_load(const char *path, struct encl *encl, unsigned long heap_size) in encl_load() argument 226 if (!encl_map_bin(path, encl)) in encl_load()
|
/kernel/linux/linux-6.6/tools/tracing/rtla/src/ |
H A D | trace.c | 314 char path[1024]; in trace_event_save_hist() local 329 snprintf(path, 1024, "%s_%s_hist.txt", tevent->system, tevent->event); in trace_event_save_hist() 331 printf(" Saving event %s:%s hist to %s\n", tevent->system, tevent->event, path); in trace_event_save_hist() 333 out_fd = creat(path, mode); in trace_event_save_hist() 335 err_msg(" Failed to create %s output file\n", path); in trace_event_save_hist()
|
/kernel/linux/linux-6.6/tools/bpf/ |
H A D | bpf_jit_disasm.c | 38 char *path; in get_exec_path() local 44 path = strdup(tpath); in get_exec_path() 45 assert(path); in get_exec_path() 47 len = readlink(path, tpath, size); in get_exec_path() 50 free(path); in get_exec_path()
|
/kernel/linux/linux-6.6/tools/crypto/ccp/ |
H A D | test_dbc.py | 27 if os.path.exists(fused_part): 52 if os.path.exists(DEVICE_NODE): 71 if not os.path.exists(DEVICE_NODE): 124 if not os.path.exists(DEVICE_NODE): 182 if not os.path.exists(DEVICE_NODE):
|
/foundation/filemanagement/user_file_service/test/unittest/ |
H A D | js_file_access_ext_ability_test.cpp | 411 static void MockNapiFunctionCalls(shared_ptr<AssistantMock> insMoc, const string& path, napi_value rslt) in MockNapiFunctionCalls() argument 429 .WillOnce(DoAll(SetArgPointee<ARG_INDEX_FOUR>(path.length()), Return(napi_ok))) in MockNapiFunctionCalls() 430 .WillOnce(DoAll(SetArrayArgument<ARG_INDEX_SECOND>(path.begin(), path.end()), Return(napi_ok))); in MockNapiFunctionCalls() 447 static void MockNapiFunctionCallsForCopyFile(shared_ptr<AssistantMock> insMoc, const string& path, napi_value rslt) in MockNapiFunctionCallsForCopyFile() argument 683 string path = "test"; in HWTEST_F() local 690 MockNapiFunctionCalls(insMoc, path, rslt); in HWTEST_F() 833 string path = "test"; in HWTEST_F() local 840 MockNapiFunctionCalls(insMoc, path, rslt); in HWTEST_F() 1102 string path in HWTEST_F() local 1604 string path = "test"; HWTEST_F() local 1654 string path = "test"; HWTEST_F() local 1708 string path = "test"; HWTEST_F() local 1746 string path = "test"; HWTEST_F() local 1791 string path = "test"; HWTEST_F() local 1947 string path = "test"; HWTEST_F() local [all...] |
/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_cfgvar.c | 39 return -1, "Failed to format path app: %{public}s", context->bundleName); in VarPackageNameIndexReplace() 49 return -1, "Failed to format path app: %{public}s", context->bundleName); in VarPackageNameReplace() 67 return -1, "Failed to format path app: %{public}s", context->bundleName); in VarCurrentUseIdReplace() 88 "Failed to format path app: %{public}s", arkWebPackageName); in VarArkWebPackageNameReplace() 145 char *path = extraData->data.depNode->source; in ReplaceVariableForDepPath() local 147 path = extraData->data.depNode->target; in ReplaceVariableForDepPath() 148 } else if (CHECK_FLAGS_BY_INDEX(extraData->operation, MOUNT_PATH_OP_REPLACE_BY_SRC) && IsPathEmpty(path)) { in ReplaceVariableForDepPath() 149 path = extraData->data.depNode->target; in ReplaceVariableForDepPath() 151 APPSPAWN_CHECK(path != NULL, return -1, "Invalid path in ReplaceVariableForDepPath() [all...] |
/foundation/ability/idl_tool/idl_tool_2/codegen/SA/rust/ |
H A D | sa_rust_interface_code_emitter.cpp | 127 std::string path = TrimDot(fpnp);
in GeneratePath() local 128 if (path.empty()) {
in GeneratePath() 131 return StringHelper::Replace(path, ".", "::");
in GeneratePath() 134 std::string path = TrimDot(fpnp.substr(0, pos + 1));
in GeneratePath() local 136 if (path.empty()) {
in GeneratePath() 140 if ((path.find("..") != std::string::npos) || (file.find("..") != std::string::npos)) {
in GeneratePath() 145 realPath.Append(StringHelper::Replace(path, ".", "::")).Append("::{");
in GeneratePath()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/canvas/ |
H A D | offscreen_canvas_rendering_context_2d_model_impl.cpp | 145 std::string OffscreenCanvasRenderingContext2DModelImpl::GetJsonData(const std::string& path) in GetJsonData() argument 283 const CanvasFillRule& fillRule, const RefPtr<CanvasPath2D>& path) in SetFillRuleForPath2D() 287 pattern_->Fill(path); in SetFillRuleForPath2D() 291 const CanvasFillRule& fillRule, const RefPtr<CanvasPath2D>& path) in SetStrokeRuleForPath2D() 295 pattern_->Stroke(path); in SetStrokeRuleForPath2D() 313 const CanvasFillRule& fillRule, const RefPtr<CanvasPath2D>& path) in SetClipRuleForPath2D() 317 pattern_->Clip(path); in SetClipRuleForPath2D() 282 SetFillRuleForPath2D( const CanvasFillRule& fillRule, const RefPtr<CanvasPath2D>& path) SetFillRuleForPath2D() argument 290 SetStrokeRuleForPath2D( const CanvasFillRule& fillRule, const RefPtr<CanvasPath2D>& path) SetStrokeRuleForPath2D() argument 312 SetClipRuleForPath2D( const CanvasFillRule& fillRule, const RefPtr<CanvasPath2D>& path) SetClipRuleForPath2D() argument
|
/foundation/arkui/ui_lite/frameworks/font/ |
H A D | ui_font_bitmap.cpp | 82 int8_t UIFontBitmap::SetFontPath(const char* path, FontType type) in SetFontPath() argument 84 if ((path == nullptr) || (type != DYNAMIC_FONT)) { in SetFontPath() 89 int32_t fontFd = open(path, O_RDONLY | O_BINARY); in SetFontPath() 91 int32_t fontFd = open(path, O_RDONLY); in SetFontPath() 98 int32_t ret = dynamicFont_.SetFile(path, fontFd, offset_, GlyphCacheType::CACHE_TYPE_DYNAMIC); in SetFontPath() 203 int8_t UIFontBitmap::GetFontVersion(FontType type, const char* path, char* version, uint8_t len) in GetFontVersion() argument 208 return dynamicFont_.GetFontVersion(path, version, len); in GetFontVersion()
|