| /foundation/graphic/graphic_3d/lume/LumeEngine/src/io/dev/ |
| H A D | file_monitor.h | 33 /** Adds path to watch list, the monitor will recursively monitor all files in this directory and it's subtree. 34 * @param path Path to directory that is being monitored, such as 'file://x:/images/' or 'file://./images' or 36 * @return True if path is succesfully added to watch list, otherwise false. 38 bool AddPath(BASE_NS::string_view path); 40 /** Removes path from watch list, the monitor will no longer watch files in this directory or it's subtree. 41 * @param path Path to directory to be no longer monitored. 44 bool RemovePath(BASE_NS::string_view path); 71 bool IsWatchingDirectory(BASE_NS::string_view path); [all...] |
| /foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_dfx_test/src/ |
| H A D | medialibrary_dfx_test.cpp | 52 std::string path = "common.jpg"; in HWTEST_F() local 56 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, width, height); in HWTEST_F() 62 std::string path = "other.png"; in HWTEST_F() local 66 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, width, height); in HWTEST_F() 72 std::string path = "big_image.jpg"; in HWTEST_F() local 76 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, width, height); in HWTEST_F() 82 std::string path = "common.mp4"; in HWTEST_F() local 86 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaType, width, height); in HWTEST_F() 92 std::string path = "8K.mp4"; in HWTEST_F() local 96 int32_t result = DfxManager::GetInstance()->HandleHighMemoryThumbnail(path, mediaTyp in HWTEST_F() 102 std::string path = "/storage/cloud/files/DCIM/123"; HWTEST_F() local [all...] |
| /foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
| H A D | file_fs_ffi.h | 30 FFI_EXPORT RetDataI64 FfiOHOSFileFsCreateStream(const char* path, const char* mode); 32 FFI_EXPORT RetDataI64 FfiOHOSFileFsLstat(const char* path); 41 FFI_EXPORT int32_t FfiOHOSFileFsMkdir(const char* path, bool recursion, bool isTwoArgs); 42 FFI_EXPORT int32_t FfiOHOSFileFsRmdir(const char* path); 46 FFI_EXPORT int32_t FfiOHOSFileFsUnlink(const char* path); 47 FFI_EXPORT RetDataBool FfiOHOSFileFsAccess(const char* path); 48 FFI_EXPORT RetDataI64 FfiOHOSFileFsOpen(const char* path, uint64_t mode); 64 FFI_EXPORT RetDataI64 FfiOHOSFileFsReadLines(char* path, char* encoding); 65 FFI_EXPORT RetDataCString FfiOHOSFileFsReadText(char* path, int64_t offset, bool hasLen, int64_t len, 67 FFI_EXPORT int32_t FfiOHOSFileFsUtimes(char* path, doubl [all...] |
| /foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
| H A D | mkdtemp.cpp | 39 HILOGE("Invalid path"); in Sync() 44 string path = tmp.get(); in Sync() local 52 int ret = uv_fs_mkdtemp(nullptr, mkdtemp_req.get(), const_cast<char *>(path.c_str()), nullptr); in Sync() 54 HILOGE("Failed to create a temporary directory with path"); in Sync() 59 return NVal::CreateUTF8String(env, mkdtemp_req->path).val_; in Sync() 62 static NError MkdTempExec(shared_ptr<string> arg, const string &path) in MkdTempExec() argument 70 int ret = uv_fs_mkdtemp(nullptr, mkdtemp_req.get(), path.c_str(), nullptr); in MkdTempExec() 72 HILOGE("Failed to create a temporary directory with path"); in MkdTempExec() 75 *arg = mkdtemp_req->path; in MkdTempExec() 91 HILOGE("Invalid path"); in Async() [all...] |
| /foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/ |
| H A D | mask_cmd_list.h | 22 #include "draw/path.h" 37 MaskPlayer(std::shared_ptr<Path>& path, Brush& brush, const CmdList& cmdList); 38 MaskPlayer(std::shared_ptr<Path>& path, Brush& brush, Pen& pen, const CmdList& cmdList); 47 std::shared_ptr<Path>& path_; 77 bool Playback(std::shared_ptr<Path>& path, Brush& brush) const; 79 bool Playback(std::shared_ptr<Path>& path, Pe [all...] |
| /test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/test/ |
| H A D | path.test.ets | 25 url: 'MainAbility/pages/path', 30 console.info("get path state success " + JSON.stringify(pages)); 31 if (!("path" == pages.name)) { 32 console.info("get path state success " + JSON.stringify(pages.name)); 35 console.info("push path page success " + JSON.stringify(result)); 38 console.error("push path page error: " + err); 55 let strJson = getInspectorByKey('Path'); 58 expect(obj.$type).assertEqual('Path'); 72 let strJson = getInspectorByKey('Path'); 75 expect(obj.$type).assertEqual('Path'); [all...] |
| /test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
| H A D | inotifyndk.cpp | 72 char path[] = "/data/storage/el2/base/files/testWatch";
in InotifyAddWatch() local 73 if (access(path, NO_ERRORS) != NO_ERRORS) {
in InotifyAddWatch() 74 mkdir(path, CHMOD);
in InotifyAddWatch() 76 remove(path);
in InotifyAddWatch() 77 mkdir(path, CHMOD);
in InotifyAddWatch() 83 wd = inotify_add_watch(fd, path, IN_ALL_EVENTS);
in InotifyAddWatch() 96 char path[] = "/data/storage/el2/base/files/testWatch";
in InotifyRmWatch() local 97 if (access(path, NO_ERRORS) != NO_ERRORS) {
in InotifyRmWatch() 98 mkdir(path, CHMOD);
in InotifyRmWatch() 100 remove(path);
in InotifyRmWatch() [all...] |
| /third_party/eudev/src/shared/ |
| H A D | smack-util.c | 28 #include "path-util.h" 48 int mac_smack_apply(const char *path, const char *label) { in mac_smack_apply() argument 51 assert(path); in mac_smack_apply() 58 r = lsetxattr(path, "security.SMACK64", label, strlen(label), 0); in mac_smack_apply() 60 r = lremovexattr(path, "security.SMACK64"); in mac_smack_apply() 150 int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) { in mac_smack_fix() argument 157 assert(path); in mac_smack_fix() 164 * Path must be in /dev and must exist in mac_smack_fix() 166 if (!path_startswith(path, "/dev")) in mac_smack_fix() 169 r = lstat(path, in mac_smack_fix() [all...] |
| /third_party/ffmpeg/libavformat/ |
| H A D | gopher.c | 45 static int gopher_connect(URLContext *h, const char *path) in gopher_connect() argument 49 if (!*path) return AVERROR(EINVAL); in gopher_connect() 50 switch (*++path) { in gopher_connect() 53 path = strchr(path, '/'); in gopher_connect() 54 if (!path) return AVERROR(EINVAL); in gopher_connect() 59 *path); in gopher_connect() 64 snprintf(buffer, sizeof(buffer), "%s\r\n", path); in gopher_connect() 82 char proto[10], hostname[1024], auth[1024], path[1024], buf[1024]; in gopher_open() local 90 hostname, sizeof(hostname), &port, path, sizeo in gopher_open() [all...] |
| /third_party/jerryscript/tools/runners/ |
| H A D | run-unittests.py | 34 parser.add_argument('path', 35 help='Path of test binaries') 41 def get_unittests(path): 43 files = glob.glob(os.path.join(path, 'unit-*')) 45 if os.path.isfile(testfile) and os.access(testfile, os.X_OK): 53 unittests = get_unittests(args.path) 56 print("%s: no unit-* test to execute", args.path) 66 test_path = os.path.relpath(test) 79 util.print_test_summary(os.path [all...] |
| /third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/tools/ |
| H A D | run_one.py | 21 BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 22 FOOZZIE = os.path.join(BASE_PATH, 'workdir', 'app_dir', 'v8_foozzie.py') 23 TEST_CASES = os.path.join(BASE_PATH, 'workdir', 'output') 25 assert os.path.exists(FOOZZIE) 38 test_dir = os.path.join(TEST_CASES, 'dir-%d' % dir_number) 39 assert os.path.exists(test_dir) 69 yield (os.path.join(test_dir, f), os.path [all...] |
| /third_party/musl/libc-test/src/functionalext/supplement/linux/ |
| H A D | sync_file_range.c | 32 char path[PATH_MAX] = {0}; in sync_file_range_0100() local 33 FILE_ABSOLUTE_PATH(STR_FILE_SYNC_TXT, path); in sync_file_range_0100() 35 fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in sync_file_range_0100() 46 remove(path); in sync_file_range_0100() 78 char path[PATH_MAX] = {0}; in sync_file_range_0300() local 79 FILE_ABSOLUTE_PATH(STR_FILE_SYNC_TXT, path); in sync_file_range_0300() 80 fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in sync_file_range_0300() 94 remove(path); in sync_file_range_0300() 107 char path[PATH_MAX] = {0}; in sync_file_range_0400() local 108 FILE_ABSOLUTE_PATH(STR_FILE_SYNC_TXT, path); in sync_file_range_0400() [all...] |
| /third_party/musl/libc-test/src/functionalext/supplement/stat/ |
| H A D | utimensat.c | 33 char path[PATH_MAX] = {0}; in utimensat_0100() local 34 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in utimensat_0100() 35 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in utimensat_0100() 38 int result = utimensat(fd, path, times, 0); in utimensat_0100() 46 result = stat(path, &statbuf); in utimensat_0100() 55 remove(path); in utimensat_0100() 83 char path[PATH_MAX] = {0}; in utimensat_time64_0100() local 84 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in utimensat_time64_0100() 85 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in utimensat_time64_0100() 88 int result = __utimensat_time64(fd, path, time in utimensat_time64_0100() [all...] |
| /third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
| H A D | readlinkat.c | 28 int create_file(char *path) in create_file() argument 30 int fd = open(path, O_RDWR | O_CREAT, TEST_MODE); in create_file() 55 char path[PATH_MAX] = {0}; in readlinkat_0100() local 56 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in readlinkat_0100() 57 int result = create_file(path); in readlinkat_0100() 67 result = symlink(path, linkpath); in readlinkat_0100() 85 if (strcmp(rbuf, path)) { in readlinkat_0100() 90 remove(path); in readlinkat_0100() 100 char path[PATH_MAX] = {0}; in readlinkat_0200() local 101 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in readlinkat_0200() [all...] |
| /third_party/openssl/ |
| H A D | OAT.xml | 21 <policyitem type="compatibility" name="OpenSSL" path=".*" desc="OpenSSL license"/> 22 <policyitem type="compatibility" name="GPL-2.0+" path="external/perl/Text-Template-1.46/.*" desc="BSD-like with advertising clause or GNU GPL v2 or later"/> 23 <policyitem type="compatibility" name="LGPLStyleLicense" path="crypto/.*" desc="Compile tool not runs target, running on host build environment only."/> 24 <policyitem type="compatibility" name="GPLStyleLicense" path="crypto/.*" desc="Compile tool not runs target, running on host build environment only."/> 25 <policyitem type="compatibility" name="OpenSSL|LGPLStyleLicense" path="crypto/.*" desc="Compile tool not runs target, running on host build environment only."/> 26 <policyitem type="compatibility" name="OpenSSL|GPLStyleLicense" path="crypto/.*" desc="Compile tool not runs target, running on host build environment only."/> 27 <policyitem type="compatibility" name="Artistic-1.0-Perl" path="external/perl/Text-Template-1.46/.*" desc="Compile tool not runs target, running on host build environment only."/> 28 <policyitem type="compatibility" name="InvalidLicense" path="external/perl/Text-Template-1.46/lib/Text/Template.pm" desc="release file,not need license declare"/> 29 <policyitem type="compatibility" name="InvalidLicense" path="NOTES.PERL" desc="release file,not need license declare"/> 30 <policyitem type="compatibility" name="InvalidLicense" path [all...] |
| /third_party/skia/samplecode/ |
| H A D | SamplePathEffects.cpp | 33 SkPath path; in make_pe() local 34 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_pe() 36 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_pe() 37 path.close(); in make_pe() 38 path.offset(SkIntToScalar(-6), 0); in make_pe() 40 auto outer = SkPath1DPathEffect::Make(path, 12, phase, SkPath1DPathEffect::kRotate_Style); in make_pe() 51 SkPath path; in make_warp_pe() local 52 path.moveTo(SkIntToScalar(gXY[0]), SkIntToScalar(gXY[1])); in make_warp_pe() 54 path.lineTo(SkIntToScalar(gXY[i]), SkIntToScalar(gXY[i+1])); in make_warp_pe() 56 path in make_warp_pe() [all...] |
| /third_party/parse5/test/data/parser-feedback/ |
| H A D | tests21.test | 348 "description": "<svg><![CDATA[<svg>]]><path>", 349 "input": "<svg><![CDATA[<svg>]]><path>", 362 "path", 369 "description": "<svg><![CDATA[<svg>]]></path>", 370 "input": "<svg><![CDATA[<svg>]]></path>", 383 "path" 389 "description": "<svg><![CDATA[<svg>]]><!--path-->", 390 "input": "<svg><![CDATA[<svg>]]><!--path-->", 403 "path" 409 "description": "<svg><![CDATA[<svg>]]>path", [all...] |
| /third_party/skia/tools/ |
| H A D | check-headers-self-sufficient | 92 for path in headers: 93 assert os.path.exists(path) 94 pool.apply_async(compile_header, args=(path, ), callback=print_and_exit_if) 104 skia_dir = os.path.join(os.path.dirname(__file__), os.pardir) 106 paths = [os.path.relpath(os.path.abspath(arg), skia_dir) for arg in argv[1:]] 110 paths = [path for path i [all...] |
| /third_party/skia/tools/skiaserve/tester/ |
| H A D | tester.py | 13 from os.path import isfile, join 28 def WriteJson(request, path): 30 with open(path, 'wb+') as fd: 35 def WritePng(request, path): 36 with open(path, 'wb+') as fd: 65 path = self.output_dir + '/' + self.skp_name + '.cmd.json' 66 return WriteJson(Check(requests.get(self.url + '/cmd')), path) 71 path = self.output_dir + '/' + self.skp_name + '.png' 72 return WritePng(Check(requests.get(url)), path) 85 path [all...] |
| /third_party/python/Lib/distutils/tests/ |
| H A D | test_core.py | 65 path = os_helper.TESTFN 66 if os.path.isfile(path): 67 os.remove(path) 68 elif os.path.isdir(path): 69 shutil.rmtree(path) 71 def write_setup(self, text, path=os_helper.TESTFN): 72 f = open(path, "w") 77 return path [all...] |
| /third_party/protobuf/src/google/protobuf/ |
| H A D | test_util2.h | 47 std::string path = google3_path.substr(prefix.size()); in TranslatePathToOpensource() local 49 path = StringReplace(path, "internal/", "", false); in TranslatePathToOpensource() 50 path = StringReplace(path, "proto/", "", false); in TranslatePathToOpensource() 51 path = StringReplace(path, "public/", "", false); in TranslatePathToOpensource() 52 return "google/protobuf/" + path; in TranslatePathToOpensource() 56 std::string path = google3_path; in MaybeTranslatePath() local 57 path in MaybeTranslatePath() [all...] |
| /third_party/skia/gm/ |
| H A D | daa.cpp | 36 SkPath path = SkPathBuilder().addPolygon(tri1, SK_ARRAY_COUNT(tri1), false) in DEF_SIMPLE_GM() local 41 canvas->drawPath(path, paint); in DEF_SIMPLE_GM() 54 SkPath path = SkPath::Polygon({{0,0},{0,K},{K*0.5f,K},{K*0.5f,0}}, false); in DEF_SIMPLE_GM() local 56 canvas->drawPath(path, paint); in DEF_SIMPLE_GM() 60 SkPath path = SkPath::Polygon({{K*0.5f,0},{K*0.5f,K},{K,K},{K,0}}, false); in DEF_SIMPLE_GM() local 62 canvas->drawPath(path, paint); in DEF_SIMPLE_GM() 76 SkPath path = SkPathBuilder().addPolygon({{0,0},{0,K},{K*0.5f,K},{K*0.5f,0}}, false) in DEF_SIMPLE_GM() local 81 canvas->drawPath(path, paint); in DEF_SIMPLE_GM() 95 SkPath path = SkPathBuilder().addPolygon({{0,0},{0,K},{K*0.5f,K},{K*0.5f,0}}, false) in DEF_SIMPLE_GM() local 100 canvas->drawPath(path, pain in DEF_SIMPLE_GM() 113 SkPath path = SkPath::Polygon({{K*0.5f,0},{0,0},{0,K},{K*0.5f,K}, DEF_SIMPLE_GM() local [all...] |
| H A D | pathinterior.cpp | 40 void show(SkCanvas* canvas, const SkPath& path) { in show() argument 46 bool hasInterior = path.hasRectangularInterior(&rect); in show() 52 canvas->drawPath(path, paint); in show() 55 canvas->drawPath(path, paint); in show() 77 SkPath path; variable 78 path.setFillType(doEvenOdd ? SkPathFillType::kEvenOdd : SkPathFillType::kWinding); 84 path.addRoundRect(r, RAD, RAD, outerDir); 86 path.addRect(r, outerDir); 90 path.addRoundRect(r, RAD, RAD, innerDir); 92 path [all...] |
| /third_party/skia/include/core/ |
| H A D | SkContourMeasure.h | 37 Returns false if there is no path, or a zero-length path was specified, in which case 95 * Initialize the Iter with a path. 96 * The parts of the path that are needed are copied, so the client is free to modify/delete 97 * the path after this call. 102 SkContourMeasureIter(const SkPath& path, bool forceClosed, SkScalar resScale = 1); 106 * Reset the Iter with a path. 107 * The parts of the path that are needed are copied, so the client is free to modify/delete 108 * the path after this call. 110 void reset(const SkPath& path, boo [all...] |
| /third_party/skia/infra/bots/recipes/perf.expected/ |
| H A D | Perf-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-ANGLE.json | 8 "/path/to/tmp/json", 23 "/path/to/tmp/json", 26 "/path/to/tmp/" 41 "/path/to/tmp/json", 59 "/path/to/tmp/json", 62 "/path/to/tmp/" 77 "/path/to/tmp/json", 95 "/path/to/tmp/json", 108 "/path/to/tmp/json", 171 "PATH" [all...] |