| /test/xts/device_attest_lite/services/core/mini/utils/ |
| H A D | attest_utils_file_detail.c | 60 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result) in GetFileSize() argument 62 if (path == NULL || fileName == NULL || result == NULL) { in GetFileSize() 73 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument 75 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile() 105 int32_t ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen) in ReadFile() argument 107 if (path == NULL || fileName == NULL || buffer == NULL || bufferLen == 0) { in ReadFile() 113 if (GetFileSize(path, fileName, &fileSize) != 0 || fileSize > bufferLen) { in ReadFile() 133 int32_t CreateFile(const char* path, const char* fileName) in CreateFile() argument 135 if (path == NULL || fileName == NULL) { in CreateFile() 147 bool IsFileExist(const char* path, cons argument 161 DeleteFile(const char* path, const char* fileName) DeleteFile() argument [all...] |
| /third_party/ffmpeg/libavutil/tests/ |
| H A D | avstring.c | 72 #define TEST_APPEND_PATH_COMPONENT(path, component, expected) \ in main() 73 fullpath = av_append_path_component((path), (component)); \ in main() 77 TEST_APPEND_PATH_COMPONENT("path", NULL, "path"); in main() 79 TEST_APPEND_PATH_COMPONENT("path", "comp", "path/comp"); in main() 80 TEST_APPEND_PATH_COMPONENT("path/", "comp", "path/comp"); in main() 81 TEST_APPEND_PATH_COMPONENT("path", "/comp", "path/com in main() [all...] |
| /third_party/jerryscript/tools/ |
| H A D | js2c.py | 47 def extract_name(path): 49 return special_chars.sub('_', os.path.splitext(os.path.basename(path))[0]) 59 def js_to_native_code(path, name, build_type): 60 with open(path, 'r') as js_source: 99 gen_line = "/* This file is generated by %s. Please do not modify. */" % os.path.basename(__file__) 107 files = glob.glob(os.path.join(script_args.js_source_path, '*.js')) 109 for path in files: 110 if os.path [all...] |
| /third_party/node/lib/internal/watch_mode/ |
| H A D | files_watcher.js | 18 const { resolve, dirname } = require('path'); 48 #isPathWatched(path) { 49 if (this.#watchers.has(path)) { 54 if (watcher.recursive && StringPrototypeStartsWith(path, watchedPath)) { 62 #removeWatchedChildren(path) { 64 if (path !== watchedPath && StringPrototypeStartsWith(watchedPath, path)) { 95 watchPath(path, recursive = true) { 96 if (this.#isPathWatched(path)) { 99 const watcher = watch(path, { recursiv [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-http-response-status-message.js | 30 { path: '/200', statusMessage: 'OK', 32 { path: '/500', statusMessage: 'Internal Server Error', 34 { path: '/302', statusMessage: 'Moved Temporarily', 36 { path: '/missing', statusMessage: '', 38 { path: '/missing-no-space', statusMessage: '', 41 testCases.findByPath = function(path) { 43 return testCase.path === path; 46 assert.fail(`failed to find test case with path ${path}`); [all...] |
| H A D | test-snapshot-basic.js | 11 const path = require('path'); 25 cwd: tmpdir.path 33 snapshotScript = fixtures.path('empty.js'); 36 // By default, the snapshot blob path is cwd/snapshot.blob. 43 cwd: tmpdir.path 51 const stats = fs.statSync(path.join(tmpdir.path, 'snapshot.blob')); 56 const blobPath = path.join(tmpdir.path, 'm [all...] |
| /third_party/node/tools/v8/ |
| H A D | fetch_deps.py | 9 Usage: fetch_deps.py <v8-path> 54 expected_git_dir = os.path.join(v8_path, ".git") 67 # Verify path. 68 v8_path = os.path.abspath(v8_path) 69 assert os.path.isdir(v8_path) 78 # gclient needs to have depot_tools in the PATH. 79 env["PATH"] = depot_tools + os.pathsep + env["PATH"] 80 gclient = os.path.join(depot_tools, "gclient.py") 83 cwd=os.path [all...] |
| /third_party/rust/crates/clap/examples/ |
| H A D | git.rs | 2 use std::path::PathBuf; 23 .arg(arg!(path: [PATH]).last(true)) in cli() 43 .arg(arg!(<PATH> ... "Stuff to add").value_parser(clap::value_parser!(PathBuf))), in cli() 77 let mut path = sub_matches.get_one::<String>("path").map(|s| s.as_str()); in main() variables 78 if path.is_none() { in main() 79 path = head; in main() 81 if path.is_none() { in main() 82 path in main() [all...] |
| /third_party/skia/tests/ |
| H A D | GpuDrawPathTest.cpp | 26 // Filling an empty path should not crash. in test_drawPathEmpty() 35 // Stroking an empty path should not crash. in test_drawPathEmpty() 93 // path to be accepted by AAConvexPathRenderer, then be transformed to something without a in DEF_GPUTEST_FOR_ALL_CONTEXTS() 101 SkPath path; in DEF_GPUTEST_FOR_ALL_CONTEXTS() local 102 path.moveTo(0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 103 path.lineTo(50, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 104 path.lineTo(0, 50); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 105 path.close(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 112 surface->getCanvas()->drawPath(path, paint); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 117 // AAHairlinePathRenderer chops this path t in DEF_GPUTEST_FOR_ALL_CONTEXTS() 126 SkPath path; DEF_GPUTEST_FOR_ALL_CONTEXTS() local [all...] |
| /third_party/rust/crates/rustix/src/fs/ |
| H A D | mount.rs | 6 use crate::{backend, io, path}; 15 pub fn mount<Source: path::Arg, Target: path::Arg, Fs: path::Arg, Data: path::Arg>( in mount() 46 pub fn remount<Target: path::Arg, Data: path::Arg>( in remount() 71 pub fn bind_mount<Source: path::Arg, Target: path::Arg>( in bind_mount() 95 pub fn recursive_bind_mount<Source: path [all...] |
| /third_party/rust/crates/rustix/tests/net/ |
| H A D | unix.rs | 22 use rustix::path::DecInt; 23 use std::path::Path; 30 fn server(ready: Arc<(Mutex<bool>, Condvar)>, path: &Path) { in server() 38 let name = SocketAddrUnix::new(path).unwrap(); in server() 69 unlinkat(cwd(), path, AtFlags::empty()).unwrap(); 72 fn client(ready: Arc<(Mutex<bool>, Condvar)>, path: &Path, runs: &[(&[&str], i32)]) { in client() 81 let addr = SocketAddrUnix::new(path) in client() [all...] |
| /foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/mock/amsthread/ |
| H A D | ams_thread.cpp | 25 static bool IsAbilityInfoValid(const char *path, const char *bundleName) in IsAbilityInfoValid() argument 27 if (path == nullptr || bundleName == nullptr) { in IsAbilityInfoValid() 31 if (strlen(path) == 0 || strlen(bundleName) == 0) { in IsAbilityInfoValid() 35 if (strlen(path) >= APP_RECORD_STRING_BUFFER_MAX || strlen(bundleName) >= APP_RECORD_STRING_BUFFER_MAX) { in IsAbilityInfoValid() 42 int StartAbility(const char *path, const char *bundleName) in StartAbility() argument 48 if (!IsAbilityInfoValid(path, bundleName)) { in StartAbility() 53 if ((strcpy_s(message->path, APP_RECORD_STRING_BUFFER_MAX, path) != 0) || in StartAbility() 95 StartAbilityInner(innerMsg->path, innerMsg->bundle); in run() 140 int AMSThread::StartAbilityInner(const char *path, cons argument 239 CreateNewAppRecord(const char *path, const char *bundleName) CreateNewAppRecord() argument 314 GetAppRecordByInfo(const char *path, const char *bundleName) GetAppRecordByInfo() argument [all...] |
| /foundation/filemanagement/app_file_service/utils/src/b_json/ |
| H A D | b_report_entity.cpp | 43 const string INFO_PATH = "path"; 68 vector<string> &residue, string &path) in ParseSplitsItem() 73 path += splits[i] + ";"; in ParseSplitsItem() 85 // 处理path路径 in ParseReportInfo() 86 string path; in ParseReportInfo() local 89 // 识别path字段与其他字段 in ParseReportInfo() 90 ParseSplitsItem(splits, keys, residue, path); in ParseReportInfo() 98 path = (path.length() > 0 && path[ in ParseReportInfo() 67 ParseSplitsItem(const vector<string> &splits, const unordered_map<string, int> &keys, vector<string> &residue, string &path) ParseSplitsItem() argument 253 CheckAndUpdateIfReportLineEncoded(std::string &path) CheckAndUpdateIfReportLineEncoded() argument [all...] |
| /third_party/libpng/ |
| H A D | OAT.xml | 20 basedir: Root dir, the basedir + project path is the real source file location. 29 5. task project: Projects to be checked, the path field define the source root dir of the project. 34 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 35 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 37 "compatibility" is used to check license compatibility in the specified path; 38 "license" is used to check source license header in the specified path; 39 "copyright" is used to check source copyright header in the specified path; 40 "import" is used to check source dependency in the specified path, such as import ... ,include ... 41 "filetype" is used to check file type in the specified path, supported file types: archive, binary 42 "filename" is used to check whether the specified file exists in the specified path(suppor [all...] |
| /third_party/json/tests/thirdparty/Fuzzer/ |
| H A D | FuzzerIOWindows.cpp | 27 static bool IsFile(const std::string &Path, const DWORD &FileAttributes) { in IsFile() argument 36 CreateFileA(Path.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING, in IsFile() 40 Printf("CreateFileA() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile() 48 Printf("GetFileType() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile() 63 bool IsFile(const std::string &Path) { in IsFile() argument 64 DWORD Att = GetFileAttributesA(Path.c_str()); in IsFile() 68 Path.c_str(), GetLastError()); in IsFile() 72 return IsFile(Path, Att); in IsFile() 81 std::string Path(Dir); in ListFilesInDirRecursive() 82 assert(!Path in ListFilesInDirRecursive() 138 RemoveFile(const std::string &Path) RemoveFile() argument [all...] |
| /third_party/ninja/src/ |
| H A D | test.cc | 95 Node* StateTestWithBuiltinRules::GetNode(const string& path) {
in GetNode() argument 96 EXPECT_FALSE(strpbrk(path.c_str(), "/\\"));
in GetNode() 97 return state_.GetNode(path, 0);
in GetNode() 145 void VirtualFileSystem::Create(const string& path,
in Create() argument 147 files_[path].mtime = now_;
in Create() 148 files_[path].contents = contents;
in Create() 149 files_created_.insert(path);
in Create() 152 TimeStamp VirtualFileSystem::Stat(const string& path, string* err) const {
in Stat() argument 153 FileMap::const_iterator i = files_.find(path);
in Stat() 161 bool VirtualFileSystem::WriteFile(const string& path, cons argument 166 MakeDir(const string& path) MakeDir() argument 171 ReadFile(const string& path, string* contents, string* err) ReadFile() argument 184 RemoveFile(const string& path) RemoveFile() argument [all...] |
| /third_party/node/deps/uv/src/unix/ |
| H A D | linux-inotify.c | 40 char* path; member 116 /* It's critical to keep a copy of path here, because it in uv__inotify_fork() 120 tmp_path = uv__strdup(handle->path); in uv__inotify_fork() 127 handle->path = tmp_path; in uv__inotify_fork() 138 tmp_path = handle->path; in uv__inotify_fork() 139 handle->path = NULL; in uv__inotify_fork() 160 /* No watchers left for this path. Clean up. */ in maybe_free_watcher_list() 175 const char* path; in uv__inotify_read() local 178 /* needs to be large enough for sizeof(inotify_event) + strlen(path) */ in uv__inotify_read() 211 path in uv__inotify_read() 249 uv_fs_event_start(uv_fs_event_t* handle, uv_fs_event_cb cb, const char* path, unsigned int flags) uv_fs_event_start() argument [all...] |
| /third_party/skia/src/gpu/ |
| H A D | GrStyle.h | 19 * as well as an optional path effect. If the path effect represents dashing, the dashing 20 * information is extracted from the path effect and stored explicitly. 27 * A style object that represents a fill with no path effect. 36 * A style object that represents a hairline stroke with no path effect. 62 * into a key. This occurs when there is a path effect that is not a dash. The key can 63 * either reflect just the path effect (if one) or the path effect and the strokerec. Note 113 /** Is this style a fill with no path effect? */ 116 /** Is this style a hairline with no path effec [all...] |
| /third_party/typescript/tests/ts_extra_tests/ |
| H A D | run_ts_case.py | 28 if not os.path.isabs(arg):
30 if not os.path.exists(arg):
36 if not os.path.isfile(arg):
39 return os.path.abspath(arg)
43 if not os.path.isdir(arg):
46 return os.path.abspath(arg)
49 def parse_and_execute(path, ark_runtime=False, skip_negative=True):
50 if (path.endswith(".ts") | path.endswith(".tsx")):
51 test_cases = TestCase(path)
[all...] |
| /third_party/typescript/src/testRunner/unittests/tsserver/ |
| H A D | cancellationToken.ts | 16 path: "/a/b/app.ts",
37 arguments: { file: f1.path }
43 arguments: { files: [f1.path] }
49 arguments: { file: f1.path, line: 1, offset: 6 }
60 path: "/a/app.ts",
64 path: "/a/tsconfig.json",
80 arguments: { file: f1.path }
99 arguments: { files: [f1.path] }
107 arguments: { file: f1.path }
124 arguments: { files: [f1.path] }
[all...] |
| /third_party/protobuf/src/google/protobuf/util/internal/ |
| H A D | field_mask_utility.cc | 47 // Appends a FieldMask path segment to a prefix. 65 std::string ConvertFieldMaskPath(const StringPiece path, in ConvertFieldMaskPath() argument 68 result.reserve(path.size() << 1); in ConvertFieldMaskPath() 76 for (size_t i = 0; i <= path.size(); ++i) { in ConvertFieldMaskPath() 79 if (i == path.size()) { in ConvertFieldMaskPath() 82 result.push_back(path[i]); in ConvertFieldMaskPath() 85 } else if (path[i] == '\\') { in ConvertFieldMaskPath() 87 } else if (path[i] == '\"') { in ConvertFieldMaskPath() 93 if (i == path.size() || path[ in ConvertFieldMaskPath() [all...] |
| /third_party/skia/infra/bots/task_drivers/perf_puppeteer_canvas/ |
| H A D | perf_puppeteer_canvas_test.go | 11 "path/filepath" 26 const fakeNodeBinPath = "/fake/path/to/node/bin" 38 assert.Equal(t, "/fake/path/to/node/bin/npm", cmd.Name) 51 const fakeNodeBinPath = "/fake/path/to/node/bin" 52 const fakeCanvasKitPath = "/fake/path/to/canvaskit" 53 const fakeBenchmarkPath = "/fake/path/to/perf-puppeteer" 71 assert.Equal(t, "/fake/path/to/node/bin/node", cmd.Name) 74 "--canvaskit_js", "/fake/path/to/canvaskit/canvaskit.js", 75 "--canvaskit_wasm", "/fake/path/to/canvaskit/canvaskit.wasm", 77 "--output", "/fake/path/t [all...] |
| /third_party/skia/third_party/externals/angle2/scripts/ |
| H A D | run_code_generation.py | 17 script_dir = sys.path[0] 18 root_dir = os.path.abspath(os.path.join(script_dir, '..')) 27 return os.path.dirname(os.path.abspath(os.path.join(root_dir, script))) 31 def clean_path_slashes(path): 32 return path.replace("\\", "/") 38 return os.path.relpath(os.path [all...] |
| /vendor/hihope/ |
| H A D | OAT.xml | 24 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
25 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
27 "compatibility" is used to check license compatibility in the specified path;
28 "license" is used to check source license header in the specified path;
29 "copyright" is used to check source copyright header in the specified path;
30 "import" is used to check source dependency in the specified path, such as import ... ,include ...
31 "filetype" is used to check file type in the specified path, supported file types: archive, binary
32 "filename" is used to check whether the specified file exists in the specified path(projectroot means the root dir of the project), supported file names: LICENSE, README, README.OpenSource
34 5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be exclude while process this policyitem.
38 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path [all...] |
| /third_party/node/deps/icu-small/source/common/ |
| H A D | uresbund.cpp | 195 * Internal function, determines the search path for resource bundle files. 508 getPoolEntry(const char *path, UErrorCode *status); 514 static UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCode *status) { in init_entry() argument 538 find.fPath = (char *)path; in init_entry() 563 if(path != nullptr) { in init_entry() 564 r->fPath = (char *)uprv_strdup(path); in init_entry() 609 r->fAlias = init_entry(aliasName, path, status); in init_entry() 651 getPoolEntry(const char *path, UErrorCode *status) { in getPoolEntry() argument 652 UResourceDataEntry *poolBundle = init_entry(kPoolBundleName, path, status); in getPoolEntry() 664 findFirstExisting(const char* path, cha argument 811 entryOpen(const char* path, const char* localeID, UResOpenType openType, UErrorCode* status) entryOpen() argument 966 entryOpenDirect(const char* path, const char* localeID, UErrorCode* status) entryOpenDirect() argument 1195 const char *path = nullptr, *locale = nullptr, *keyPath = nullptr; getAliasTargetAsResourceBundle() local 1948 ures_findResource(const char* path, UResourceBundle *fillIn, UErrorCode *status) ures_findResource() argument 2003 ures_findSubResource(const UResourceBundle *resB, char* path, UResourceBundle *fillIn, UErrorCode *status) ures_findSubResource() argument 2061 icu::CharString path; getTableItemByKeyPath() local 2087 createPath(const char* origResPath, int32_t origResPathLen, const char* resPath, int32_t resPathLen, const char* inKey, CharString& path, UErrorCode* status) createPath() argument 2185 CharString path; ures_getByKeyWithFallback() local 2428 ures_getAllChildrenWithFallback(const UResourceBundle *bundle, const char *path, icu::ResourceSink &sink, UErrorCode &errorCode) ures_getAllChildrenWithFallback() argument 2446 ures_getValueWithFallback(const UResourceBundle *bundle, const char *path, UResourceBundle *tempFillIn, ResourceDataValue &value, UErrorCode &errorCode) ures_getValueWithFallback() argument 2470 ures_getAllItemsWithFallback(const UResourceBundle *bundle, const char *path, icu::ResourceSink &sink, UErrorCode &errorCode) ures_getAllItemsWithFallback() argument 2711 ures_openWithType(UResourceBundle *r, const char* path, const char* localeID, UResOpenType openType, UErrorCode* status) ures_openWithType() argument 2770 ures_open(const char* path, const char* localeID, UErrorCode* status) ures_open() argument 2775 ures_openNoDefault(const char* path, const char* localeID, UErrorCode* status) ures_openNoDefault() argument 2784 ures_openDirect(const char* path, const char* localeID, UErrorCode* status) ures_openDirect() argument 2796 ures_openFillIn(UResourceBundle *r, const char* path, const char* localeID, UErrorCode* status) ures_openFillIn() argument 2809 ures_openDirectFillIn(UResourceBundle *r, const char* path, const char* localeID, UErrorCode* status) ures_openDirectFillIn() argument 2986 ures_openAvailableLocales(const char *path, UErrorCode *status) ures_openAvailableLocales() argument 3066 ures_getFunctionalEquivalent(char *result, int32_t resultCapacity, const char *path, const char *resName, const char *keyword, const char *locid, UBool *isAvailable, UBool omitDefault, UErrorCode *status) ures_getFunctionalEquivalent() argument 3402 ures_getKeywordValues(const char *path, const char *keyword, UErrorCode *status) ures_getKeywordValues() argument [all...] |