Home
last modified time | relevance | path

Searched full:path (Results 476 - 500 of 40205) sorted by relevance

1...<<11121314151617181920>>...1609

/foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/
H A Dfile_trash_n_exporter.cpp76 static bool GetRealPath(string &path) in GetRealPath() argument
79 if (realpath(path.c_str(), absPath.get()) == nullptr) { in GetRealPath()
82 path = absPath.get(); in GetRealPath()
86 static string GetTimeSlotFromPath(const string &path) in GetTimeSlotFromPath() argument
90 size_t trashPathPrefixPos = path.find(FileTrashNExporter::trashPath_); in GetTimeSlotFromPath()
92 if (expectTimeSlotStartPos >= path.length()) { in GetTimeSlotFromPath()
95 string realFilePathWithTime = path.substr(trashPathPrefixPos + FileTrashNExporter::trashPath_.length() + slashSize); in GetTimeSlotFromPath()
99 HILOG_ERROR("GetTimeSlotFromPath: Invalid path = %{public}s", path.c_str()); in GetTimeSlotFromPath()
107 static int RecursiveFunc(const string &path, vecto argument
186 FindSourceFilePath(const string &path) FindSourceFilePath() argument
220 Mkdirs(const string &path, bool isDir, string &newRecoveredPath) Mkdirs() argument
319 RecurCheckIfOnlyContentInDir(const string &path, size_t trashWithTimePos, const string &trashWithTimePath) RecurCheckIfOnlyContentInDir() argument
607 string path = fileUri.GetPath(); Recover() local
664 string path = fileUri.GetPath(); CompletelyDelete() local
[all...]
/foundation/multimedia/ringtone_library/services/utils/src/
H A Dringtone_file_utils.cpp77 static bool IsTargetExtension(const string &path) in IsTargetExtension() argument
79 const string ext = RingtoneFileUtils::GetExtensionFromPath(path); in IsTargetExtension()
94 static bool IsVibrateFile(const string &path) in IsVibrateFile() argument
96 const string ext = RingtoneFileUtils::GetExtensionFromPath(path); in IsVibrateFile()
110 string RingtoneFileUtils::GetExtensionFromPath(const string &path) in GetExtensionFromPath() argument
112 string extention = SplitByChar(path, '.'); in GetExtensionFromPath()
119 string RingtoneFileUtils::GetFileNameFromPath(const string &path) in GetFileNameFromPath() argument
122 size_t found = path.rfind("/"); in GetFileNameFromPath()
123 if (found != string::npos && (found + 1) < path.size()) { in GetFileNameFromPath()
124 fileName = path in GetFileNameFromPath()
132 ParseFromUri(const string& path, const string& key) ParseFromUri() argument
152 GetFileNameFromPathOrUri(const string &path, bool &isTitle) GetFileNameFromPathOrUri() argument
167 GetBaseNameFromPath(const string &path) GetBaseNameFromPath() argument
218 RemoveDirectory(const string &path) RemoveDirectory() argument
525 MkdirRecursive(const string &path, size_t start) MkdirRecursive() argument
561 CreatePreloadFolder(const string &path) CreatePreloadFolder() argument
663 GetFileExtension(const string &path) GetFileExtension() argument
[all...]
/third_party/ltp/testcases/kernel/syscalls/nftw/
H A Dtest64.c30 extern int callback(const char *path);
39 * A call to int nftw64(const char *path, int (*fn)(const char *, const
41 * recursively descend the directory hierarchy rooted in path until it
100 * A call to int nftw64(const char *path, int (*fn)(const char *, const
144 * A call to int nftw64(const char *path, int (*fn)(const char *, const
182 * A call to int nftw64(const char *path, int (*fn)(const char *, const
190 char path[] = "./tmp/data/d777"; in test4A() local
199 if ((ret_val = nftw64(path, test_func4, MAX_FD, FTW_DEPTH)) == -1) { in test4A()
205 fprintf(temp, "ERROR: %s never visited\n", path); in test4A()
219 * A call to int nftw64(const char *path, in
227 char path[] = "./tmp/data/d777"; test5A() local
264 char path[PATH_MAX + NAME_MAX]; test6A() local
592 char path[PATH_MAX + NAME_MAX]; test16A() local
857 char path[] = "./tmp/data/dirh"; test21A() local
915 char path[] = "./tmp/data/dirh"; test22A() local
[all...]
H A Dtest.c30 extern int callback(const char *path);
40 * A call to int nftw(const char *path, int (*fn)(const char *, const
42 * recursively descend the directory hierarchy rooted in path until it
102 * A call to int nftw(const char *path, int (*fn)(const char *, const
146 * A call to int nftw(const char *path, int (*fn)(const char *, const
183 * A call to int nftw(const char *path, int (*fn)(const char *, const
191 char path[] = "./tmp/data/d777"; in test4A() local
199 if ((ret_val = nftw(path, test_func4, MAX_FD, FTW_DEPTH)) == -1) { in test4A()
205 fprintf(temp, "ERROR: %s never visited\n", path); in test4A()
219 * A call to int nftw(const char *path, in
227 char path[] = "./tmp/data/d777"; test5A() local
263 char path[PATH_MAX + NAME_MAX]; test6A() local
580 char path[PATH_MAX + NAME_MAX]; test16A() local
841 char path[] = "./tmp/data/dirh"; test21A() local
898 char path[] = "./tmp/data/dirh"; test22A() local
[all...]
/third_party/python/Lib/
H A Dsite.py1 """Append module search paths for third-party packages to sys.path.
7 This will append site-specific paths to the module search path. On
13 resulting directories, if they exist, are appended to sys.path, and
14 also inspected for path configuration files.
26 appended to sys.path, and also inspected for path configuration
29 A path configuration file is a file whose name has the form
31 to be added to sys.path. Non-existing directories (or
32 non-directories) are never added to sys.path; no directory is added to
33 sys.path mor
[all...]
/third_party/skia/infra/bots/recipe_modules/flavor/examples/full.expected/
H A DTest-ChromeOS-Clang-SamsungChromebookPlus-GPU-MaliT860-arm-Release-All.json8 "/path/to/tmp/json",
11 "/path/to/tmp/"
30 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
48 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
67 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
78 "/path/to/tmp/json",
91 "/path/t
[all...]
H A DPerf-ChromeOS-Clang-SamsungChromebookPlus-GPU-MaliT860-arm-Release-All.json8 "/path/to/tmp/json",
11 "/path/to/tmp/"
30 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
48 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
67 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
78 "/path/to/tmp/json",
91 "/path/t
[all...]
H A Dretry_ios_install_retries_exhausted.json12 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
26 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
40 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
51 "/path/to/tmp/json",
64 "/path/to/tmp/json",
82 "PATH": "<PATH>
[all...]
H A DTest-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Release-All-Android_ASAN.json26 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
42 "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
51 "\nimport subprocess\nimport sys\n\n# Remove the path.\nadb = sys.argv[1]\npath = sys.argv[2]\nprint('Removing %s' % path)\ncmd = [adb, 'shell', 'rm', '-rf', path]\nprint(' '.join(cmd))\nsubprocess.check_call(cmd)\n\n# Verify that the path was deleted.\nprint('Checking for existence of %s' % path)\ncmd = [adb, 'shell', 'ls', path]\nprin
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Dfile_operator.cpp41 int32_t FileOperator::InputFileByPathAndContent(const std::string& path, const std::string& content) in InputFileByPathAndContent() argument
43 std::string str = path; in InputFileByPathAndContent()
54 DLP_LOG_INFO(LABEL, "path need to be canonical, str %{public}s realPath %{public}s.", str.c_str(), realPath); in InputFileByPathAndContent()
58 FILE* fp = fopen(path.c_str(), "wb"); in InputFileByPathAndContent()
60 DLP_LOG_INFO(LABEL, "failed to open %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
65 DLP_LOG_INFO(LABEL, "failed to fwrite %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
70 DLP_LOG_INFO(LABEL, "failed to fflush %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
75 DLP_LOG_INFO(LABEL, "failed to fsync %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent()
82 if (!ChangeModeFile(path, S_IRUSR | S_IWUSR)) { in InputFileByPathAndContent()
83 DLP_LOG_INFO(LABEL, "failed to change mode for file %{public}s, errno %{public}d.", path in InputFileByPathAndContent()
89 GetFileContentByPath(const std::string& path, std::string& content) GetFileContentByPath() argument
112 IsExistFile(const std::string& path) IsExistFile() argument
128 IsExistDir(const std::string& path) IsExistDir() argument
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dproxy_filesystem.cpp48 void ProxyFilesystem::AppendSearchPath(string_view path) in AppendSearchPath() argument
50 if (path.back() == '/') { in AppendSearchPath()
51 path.remove_suffix(1); in AppendSearchPath()
53 destinations_.emplace_back(path); in AppendSearchPath()
56 void ProxyFilesystem::PrependSearchPath(string_view path) in PrependSearchPath() argument
58 if (path.back() == '/') { in PrependSearchPath()
59 path.remove_suffix(1); in PrependSearchPath()
61 destinations_.emplace(destinations_.begin(), path); in PrependSearchPath()
75 IDirectory::Entry ProxyFilesystem::GetEntry(const string_view path) in GetEntry() argument
77 auto normalizedPath = NormalizePath(path); in GetEntry()
88 OpenFile(const string_view path) OpenFile() argument
103 CreateFile(const string_view path) CreateFile() argument
118 DeleteFile(const string_view path) DeleteFile() argument
132 OpenDirectory(const string_view path) OpenDirectory() argument
153 CreateDirectory(const string_view path) CreateDirectory() argument
168 DeleteDirectory(const string_view path) DeleteDirectory() argument
201 auto path = NormalizePath(uri); GetUriPaths() local
[all...]
/foundation/multimedia/media_foundation/src/osal/filesystem/
H A Dfile_system.cpp43 bool FileSystem::IsRegularFile(const std::string& path) in IsRegularFile() argument
46 return (stat(path.c_str(), &s) == 0) && S_ISREG(s.st_mode); in IsRegularFile()
71 bool FileSystem::IsDirectory(const std::string& path) in IsDirectory() argument
74 return (stat(path.c_str(), &s) == 0) && S_ISDIR(s.st_mode); in IsDirectory()
77 // judge regular file, directory, symbolic link file path exists
78 bool FileSystem::IsExists(const std::string& path) in IsExists() argument
80 return access(path.c_str(), 0) != -1; in IsExists()
83 bool FileSystem::MakeDir(const std::string& path) in MakeDir() argument
86 if (mkdir(path.c_str()) == -1) { in MakeDir()
87 MEDIA_LOG_E("Fail to create dir " PUBLIC_LOG_S " due to " PUBLIC_LOG_S, path in MakeDir()
108 MakeMultipleDir(const std::string& path) MakeMultipleDir() argument
134 RemoveFilesInDir(const std::string& path) RemoveFilesInDir() argument
[all...]
/foundation/multimodalinput/input/tools/event_inject/test/
H A Dprocessing_joystick_device_test.cpp33 static void CheckTransformJson(const std::string path) in CheckTransformJson() argument
43 std::string jsonBuf = ReadJsonFile(path); in CheckTransformJson()
45 ASSERT_TRUE(false) << "Read file failed" << path; in CheckTransformJson()
57 static void CheckJoyStickJson(const std::string path) in CheckJoyStickJson() argument
66 std::string jsonBuf = ReadJsonFile(path); in CheckJoyStickJson()
68 ASSERT_TRUE(false) << "Read file failed" << path; in CheckJoyStickJson()
90 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputData.json"; in HWTEST_F() local
91 CheckTransformJson(path); in HWTEST_F()
102 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindEvents.json"; in HWTEST_F() local
103 CheckJoyStickJson(path); in HWTEST_F()
114 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataEventsIsEmpty.json"; HWTEST_F() local
126 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindKeyValue.json"; HWTEST_F() local
138 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindKeyValueInThro.json"; HWTEST_F() local
150 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindEventInRocker.json"; HWTEST_F() local
163 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindDirectionInRocker.json"; HWTEST_F() local
176 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindDirectionInDirectionKey.json"; HWTEST_F() local
188 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataNotFindAnyEventType.json"; HWTEST_F() local
200 const std::string path = "/data/json/Test_TransformJoyStickJsonDataToInputDataHasBlockTime.json"; HWTEST_F() local
[all...]
/third_party/mesa3d/src/freedreno/ci/
H A Drestricted-traces-freedreno.yml7 #- path: stellaris/Stellaris-trim--f722-v20201203-v2.trace
12 - path: SirYouAreBeingHunted/sir-f750-v2.trace
18 #- path: SpecOps/specops-s0-1088-f1300-v2.trace
22 - path: AmnesiaTDD/Amnesia-f700-v2.trace
26 - path: Antichamber/antichamber-f240-v2.trace
30 - path: ICEDarkness/ICEDarkness-f230-v2.trace
34 - path: LifelessPlanet/LifelessPlanet-f420-v2.trace
38 - path: civilization-v/CivilizationV-trim--s705-761-f762-v20201203-v2.trace
42 - path: golf-with-your-friends/GolfWithYourFriends-trim--f1070-v20201203-v2.trace
46 - path
[all...]
/third_party/node/deps/npm/node_modules/chownr/
H A Dchownr.js3 const path = require('path')
15 const lchownSync = (path, uid, gid) => {
17 return fs[LCHOWNSYNC](path, uid, gid)
25 const chownSync = (path, uid, gid) => {
27 return fs.chownSync(path, uid, gid)
36 needEISDIRHandled ? (path, uid, gid, cb) => er => {
43 fs.chown(path, uid, gid, cb)
49 needEISDIRHandled ? (path, uid, gid) => {
51 return lchownSync(path, ui
[all...]
/third_party/python/Tools/freeze/test/
H A Dfreeze.py2 import os.path namespace
9 TESTS_DIR = os.path.dirname(__file__)
10 TOOL_ROOT = os.path.dirname(TESTS_DIR)
11 SRCDIR = os.path.dirname(os.path.dirname(TOOL_ROOT))
14 FREEZE = os.path.join(TOOL_ROOT, 'freeze.py')
15 OUTDIR = os.path.join(TESTS_DIR, 'outdir')
79 if os.path.exists(newroot):
89 if os.path.basename(src) == 'Doc':
96 if os.path
[all...]
/third_party/skia/src/gpu/v1/
H A DPathRenderer.h43 * A caller may wish to use a path renderer to draw a path into the stencil buffer. However,
44 * the path renderer itself may require use of the stencil buffer. Also a path renderer may
46 * covered by bounding geometry but outside the path. These exterior pixels would still be
51 * The path is rendered exactly as the draw state indicates including support
54 * 2) kStencilOnly: The path renderer cannot apply arbitrary stencil rules nor shade and stencil
55 * simultaneously. The path renderer does support the stencilPath() function
57 * covered by the path.
58 * 3) kNoSupport: This path rendere
[all...]
/third_party/typescript/src/testRunner/unittests/tsserver/
H A DexportMapCache.ts3 path: "/package.json",
7 path: "/a.ts",
11 path: "/b.ts",
15 path: "/tsconfig.json",
19 path: "/ambient.d.ts",
23 path: "/node_modules/mobx/package.json",
27 path: "/node_modules/mobx/index.d.ts",
31 path: "/lib/foo/constants.d.ts",
41 assert.ok(exportMapCache.isUsableByFile(bTs.path as Path));
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/
H A Dwpas-dbus-new-signals.py31 for path in ifaces:
32 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
89 def scanDone2(success, path=None):
90 print("Scan done: success=%s [path=%s]" % (success, path))
148 path = wpas.GetInterface(ifname)
149 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
152 path_keyword='path')
157 path=path)
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/
H A Dwpas-dbus-new-signals.py31 for path in ifaces:
32 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
89 def scanDone2(success, path=None):
90 print("Scan done: success=%s [path=%s]" % (success, path))
148 path = wpas.GetInterface(ifname)
149 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path)
152 path_keyword='path')
157 path=path)
[all...]
/base/global/resource_management/frameworks/resmgr/include/
H A Dhap_manager.h76 * Add resource path to hap paths
77 * @param path the resource path
78 * @return true if add resource path success, else false
80 bool AddResource(const char *path, const uint32_t &selectedTypes);
82 bool AddPatchResource(const char *path, const char *patchPath);
85 * Add resource path to overlay paths
86 * @param path the resource path
87 * @param overlayPaths the exist overlay resource path
[all...]
/third_party/gn/src/gn/
H A Dcommand_path.cc54 // Stores targets that have a path to the destination, and whether that
55 // path is public, private, or data.
60 // classification of the elided last part of path.
61 DepType ClassifyPath(const PathVector& path, DepType implicit_last_dep) { in ClassifyPath() argument
69 for (size_t i = 1; i < path.size(); i++) { in ClassifyPath()
71 // to find the worst link in the path). in ClassifyPath()
72 if (path[i].second == DepType::PRIVATE) { in ClassifyPath()
75 } else if (path[i].second == DepType::DATA) { in ClassifyPath()
97 // Prints the given path. If the implicit_last_dep is not "none", the last
99 void PrintPath(const PathVector& path, DepTyp argument
130 InsertTargetsIntoFoundPaths(const PathVector& path, DepType implicit_last_dep, Stats* stats) InsertTargetsIntoFoundPaths() argument
[all...]
/third_party/ltp/testcases/kernel/security/prot_hsymlinks/
H A Dprot_hsymlinks.c73 char path[MAX_PATH]; member
89 char path[MAX_PATH]; member
102 char path[MAX_PATH]; member
132 /* full length of the test tmpdir path in /tmp */
159 static void create_link_path(char *buffer, int size, const char *path);
177 static void ufiles_add(int usr, char *path, int type);
334 static void create_sub_dir(const char *path, in create_sub_dir() argument
337 snprintf(bdir->path, MAX_PATH, "%s/tmp_%s", in create_sub_dir()
338 path, users[bdir->owner].name); in create_sub_dir()
339 SAFE_MKDIR(cleanup, bdir->path, mod in create_sub_dir()
380 char path[MAX_PATH]; init_files_dirs() local
406 ufiles_add(int usr, char *path, int type) ufiles_add() argument
426 create_link_path(char *buffer, int size, const char *path) create_link_path() argument
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/
H A Dohos_filesystem.cpp49 auto path = NormalizePath(pathIn); in ValidatePath() local
50 if (!path.empty()) { in ValidatePath()
53 if (path.back() == '/') { in ValidatePath()
54 size_t len = path.length(); in ValidatePath()
55 temp = path.substr(0, len - 1); in ValidatePath()
60 return path; in ValidatePath()
63 IFile::Ptr OhosFilesystem::OpenFile(const BASE_NS::string_view path) in OpenFile() argument
65 if (auto const pos = ohosFiles_.find(path); pos != ohosFiles_.end()) { in OpenFile()
75 if (!path.empty()) { in OpenFile()
76 storage = file->Open(path in OpenFile()
92 GetEntry(BASE_NS::string_view path) GetEntry() argument
101 CreateFile(BASE_NS::string_view path) CreateFile() argument
106 DeleteFile(BASE_NS::string_view path) DeleteFile() argument
113 auto path = ValidatePath(pathIn); OpenDirectory() local
121 CreateDirectory(BASE_NS::string_view path) CreateDirectory() argument
126 DeleteDirectory(BASE_NS::string_view path) DeleteDirectory() argument
[all...]
/third_party/skia/samplecode/
H A DSampleComplexClip.cpp21 SkPath path; variable
22 path.moveTo(SkIntToScalar(0), SkIntToScalar(50));
23 path.quadTo(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(50), SkIntToScalar(0));
24 path.lineTo(SkIntToScalar(175), SkIntToScalar(0));
25 path.quadTo(SkIntToScalar(200), SkIntToScalar(0), SkIntToScalar(200), SkIntToScalar(25));
26 path.lineTo(SkIntToScalar(200), SkIntToScalar(150));
27 path.quadTo(SkIntToScalar(200), SkIntToScalar(200), SkIntToScalar(150), SkIntToScalar(200));
28 path.lineTo(SkIntToScalar(0), SkIntToScalar(200));
29 path.close();
30 path
[all...]

Completed in 14 milliseconds

1...<<11121314151617181920>>...1609