| /base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
| H A D | hap_resource.h | 37 * @param path resources.index file path 44 static const HapResource *LoadFromIndex(const char *path, const ResConfigImpl *defaultConfig, bool system = false); 52 * Get the resource.index file path 60 * Get the resource path 68 * Describe limitpath and value under the path 111 // the qualifier path name 174 HapResource(const std::string path, time_t lastModTime, const ResConfig *defaultConfig, ResDesc *resDes); 182 // resources.index file path 185 // resource path , calculate [all...] |
| /base/security/dlp_permission_service/ |
| H A D | OAT.xml | 23 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
24 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
26 "compatibility" is used to check license compatibility in the specified path;
27 "license" is used to check source license header in the specified path;
28 "copyright" is used to check source copyright header in the specified path;
29 "import" is used to check source dependency in the specified path, such as import ... ,include ...
30 "filetype" is used to check file type in the specified path, supported file types: archive, binary
31 "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
33 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.
37 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path [all...] |
| /base/security/security_component_manager/ |
| H A D | OAT.xml | 23 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 24 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 26 "compatibility" is used to check license compatibility in the specified path; 27 "license" is used to check source license header in the specified path; 28 "copyright" is used to check source copyright header in the specified path; 29 "import" is used to check source dependency in the specified path, such as import ... ,include ... 30 "filetype" is used to check file type in the specified path, supported file types: archive, binary 31 "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 33 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. 37 8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path [all...] |
| /base/startup/init/services/init/ |
| H A D | init_service_file.c | 36 char path[PATH_MAX] = {0}; in CreateFile() local 37 if (realpath(file->fileName, path) == NULL) { in CreateFile() 39 INIT_ERROR_CHECK(strncpy_s(path, strlen(file->fileName) + 1, file->fileName, strlen(file->fileName)) >= 0, in CreateFile() 42 INIT_LOGV("File path =%s . file flags =%d, file perm =%u ", path, file->flags, file->perm); in CreateFile() 47 int fd = open(path, file->flags | O_CREAT, file->perm); in CreateFile() 48 INIT_ERROR_CHECK(fd >= 0, return -1, "Failed open %s, err=%d ", path, errno); in CreateFile() 50 INIT_CHECK_ONLY_ELOG(chmod(path, file->perm) >= 0, "Failed chmod err=%d", errno); in CreateFile() 51 INIT_CHECK_ONLY_ELOG(chown(path, file->uid, file->gid) >= 0, "Failed chown err=%d", errno); in CreateFile() 52 file->fd = open(path, fil in CreateFile() [all...] |
| /foundation/ability/idl_tool/scripts/ |
| H A D | idl.py | 25 parser.add_argument('--dst-path', help='the converted target path') 27 parser.add_argument('--idl-tool-path', help='path of the idl conversion tool') 43 (path, name) = os.path.split(input_arguments.idl_tool_path) 44 is_exists = os.path.exists(input_arguments.dst_path) 60 file_path = os.path.join(input_arguments.dst_path, file_name) 72 cmd = [os.path.join("./", name, "idl"), 80 run_command(cmd, path, input_argument [all...] |
| /foundation/arkui/ace_engine/frameworks/core/components/drag_bar/ |
| H A D | rosen_render_drag_bar.cpp | 74 SkPath path; in Paint() local 75 path.moveTo(SkDoubleToScalar(barLeftPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 77 path.lineTo(SkDoubleToScalar(barCenterPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 79 path.lineTo(SkDoubleToScalar(barRightPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 86 canvas->drawPath(path, skPaint); in Paint() 105 RSRecordingPath path; in Paint() local 106 path.MoveTo(static_cast<RSScalar>(barLeftPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 108 path.LineTo(static_cast<RSScalar>(barCenterPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 110 path.LineTo(static_cast<RSScalar>(barRightPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 118 canvas->DrawPath(path); in Paint() [all...] |
| /foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/include/util/ |
| H A D | core_library_loader.h | 118 // Get the path to the engine.dll. to use as base for plugins. in GetCoreBinaryPath() 121 // Get the path to the executable. to use as base for plugins. in GetCoreBinaryPath() 125 ::string path = binaryFileName; in GetCoreBinaryPath() local 126 auto pos = path.find_last_of("\\"); in GetCoreBinaryPath() 127 path.resize(pos + 1); in GetCoreBinaryPath() 129 ::string path; in GetCoreBinaryPath() 134 path = ::string { info.dli_fname }; in GetCoreBinaryPath() 135 const auto pos = path.find_last_of("/"); in GetCoreBinaryPath() 137 path.resize(pos + 1); in GetCoreBinaryPath() 142 return path; in GetCoreBinaryPath() [all...] |
| /foundation/filemanagement/user_file_service/services/file_extension_hap/entry/src/main/ets/FileExtensionAbility/ |
| H A D | Common.ts | 46 let path = uri.replace(arr[0] + sep, ''); 48 path = path.replace(arr[1].split('/')[0], ''); 54 if (path.charAt(path.length - 1) === '/') { 55 path = path.substr(0, path.length - 1); 57 hilog.info(DOMAIN_CODE, TAG, 'getPath after ' + path); 58 return path; [all...] |
| /foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/property_display/ |
| H A D | fg_mask_test.cpp | 69 Drawing::Path path = Drawing::Path(); in GRAPHIC_TEST() local 70 path.AddRect(Drawing::Rect(50, 50, 900, 900)); in GRAPHIC_TEST() 71 auto mask = RSMask::CreatePathMask(path, brush); in GRAPHIC_TEST() 85 Drawing::Path path = Drawing::Path(); in GRAPHIC_TEST() local 86 path.AddCircle(500.f, 500.f, radiusList[i]); in GRAPHIC_TEST() 87 auto mask = RSMask::CreatePathMask(path, brus in GRAPHIC_TEST() [all...] |
| /foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/include/ |
| H A D | shadow_test.h | 50 Path path; in TestDrawShadow() local 51 // Add oval to path, bounds of ellipse added is {200, 200, 600, 1000}. in TestDrawShadow() 52 path.AddOval({ 200, 200, 600, 1000 }); in TestDrawShadow() 59 canvas.DrawShadow(path, planeParams, devLightPos, lightRadius, ambientColor, spotColor, flag); in TestDrawShadow() 67 Path path; in TestDrawShadowStyle() local 68 // Add oval to path, bounds of ellipse added is {200, 200, 600, 1000}. in TestDrawShadowStyle() 69 path.AddOval({ 200, 200, 600, 1000 }); in TestDrawShadowStyle() 76 canvas.DrawShadowStyle(path, planeParam in TestDrawShadowStyle() [all...] |
| /foundation/multimedia/media_library/frameworks/services/media_scanner/include/scanner/ |
| H A D | scanner_utils.h | 92 EXPORT static bool IsExists(const std::string &path); 93 EXPORT static std::string GetFileNameFromUri(const std::string &path); 94 EXPORT static std::string GetFileExtension(const std::string &path); 95 EXPORT static std::string GetParentPath(const std::string &path); 96 EXPORT static bool IsFileHidden(const std::string &path); 97 EXPORT static bool IsDirectory(const std::string &path); 98 EXPORT static bool IsRegularFile(const std::string &path); 101 EXPORT static bool IsDirHiddenRecursive(const std::string &path, bool skipPhoto = true); 102 EXPORT static bool IsDirHidden(const std::string &path, bool skipPhoto = true); 103 EXPORT static bool CheckSkipScanList(const std::string &path); [all...] |
| /foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/ |
| H A D | file_operations_local_mock.cpp | 38 string path = FileOperationsHelper::GetCloudDiskRootPath(data->userId); in GetAttr() local 41 int err = stat(path.c_str(), &statBuf); in GetAttr() 43 LOGE("lookup %{public}s error, err: %{public}d", path.c_str(), err); in GetAttr() 63 string path; in ReadDir() local 67 path = FileOperationsHelper::GetCloudDiskRootPath(data->userId); in ReadDir() 75 path = inoPtr->path; in ReadDir() 77 DIR* dir = opendir(path.c_str()); in ReadDir() 79 LOGE("opendir error %{public}d, path:%{public}s", errno, path in ReadDir() [all...] |
| /foundation/filemanagement/file_api/interfaces/kits/native/remote_uri/ |
| H A D | remote_uri.cpp | 38 string path = remoteUri.GetPath(); in IsMediaUri() local 40 if (path.length() > len) { in IsMediaUri() 41 string media = path.substr(0, len); in IsMediaUri() 78 bool RemoteUri::IsRemoteUri(const string& path, int &fd, const int& flags) in IsRemoteUri() argument 80 string::size_type posDatashare = path.find(SCHEME_TAG); in IsRemoteUri() 81 string::size_type posFragment = path.find(FRAGMENT_TAG); in IsRemoteUri() 82 string::size_type posFd = path.find(FD_TAG); in IsRemoteUri() 88 string scheme = path.substr(0, posDatashare); in IsRemoteUri() 93 string fragment = path.substr(posFragment + 1, REMOTE_URI_TAG.size()); in IsRemoteUri() 95 string fdStr = path in IsRemoteUri() [all...] |
| /test/testfwk/developer_test/aw/python/distributed/common/ |
| H A D | common.py | 34 filedir, _ = os.path.split(testsuit_path) 41 result_path = os.path.join(result_rootpath, "result", subpath) 43 result_path = os.path.join(result_rootpath, "result") 45 result_path = os.path.join(result_rootpath, "result") 47 if not os.path.exists(result_path): 69 prefix_path = os.path.abspath(os.path.dirname(prefix_path)) 70 current_dir = os.path.join(prefix_path, product_form_name, 72 if not os.path.exists(current_dir): 87 if not os.path [all...] |
| /test/testfwk/xdevice/src/xdevice/ |
| H A D | __main__.py | 27 srcpath = os.path.dirname(os.path.dirname(__file__)) 28 sys.path.append(srcpath) 41 2.Unzip the template.zip to the path '{resource_path}' 46 resource_path = os.path.join(os.path.dirname(__file__), "_core", "resource") 47 template_path = os.path.join(resource_path, "template") 51 to_path = os.path.join(template_path, file) 52 if os.path.exists(to_path): 63 if not os.path [all...] |
| /test/xts/acts/multimedia/media/media_js_standard/avPlayer/entry/src/ohosTest/ets/test/ |
| H A D | AVPlayerHttpCompatibilityTest.test.ets | 63 let path = VIDEOPLAYER_PATH + 'mp4/h264_aac_640x320_30r.mp4'; 65 testAVPlayerFun(path, avPlayer, avPlayTest, PLAY_TIME, done); 77 let path = VIDEOPLAYER_PATH + 'mp4/h264_mp3_640x480_25r.mp4'; 79 testAVPlayerFun(path, avPlayer, avPlayTest, PLAY_TIME, done); 91 let path = VIDEOPLAYER_PATH + 'mpeg_ts/h264_aac_640x480_30r.ts'; 93 testAVPlayerFun(path, avPlayer, avPlayTest, PLAY_TIME, done); 105 let path = VIDEOPLAYER_PATH + 'mpeg_ts/h264_mp3_640x480_25r.ts'; 107 testAVPlayerFun(path, avPlayer, avPlayTest, PLAY_TIME, done); 119 let path = VIDEO_PATH + 'H264_AAC.mkv'; 121 testAVPlayerFun(path, avPlaye [all...] |
| H A D | AVPlayerHttpSeekTest.test.ets | 63 let path = VIDEOPLAYER_PATH + 'mp4/h264_aac_640x320_30r.mp4'; 65 testAVPlayerSeek(path, avPlayer, avPlayTest, PLAY_TIME, done); 77 let path = VIDEOPLAYER_PATH + 'mp4/h264_mp3_640x480_25r.mp4'; 79 testAVPlayerSeek(path, avPlayer, avPlayTest, PLAY_TIME, done); 91 let path = VIDEOPLAYER_PATH + 'mpeg_ts/h264_aac_640x480_30r.ts'; 93 testAVPlayerSeek(path, avPlayer, avPlayTest, PLAY_TIME, done); 105 let path = VIDEOPLAYER_PATH + 'mpeg_ts/h264_mp3_640x480_25r.ts'; 107 testAVPlayerSeek(path, avPlayer, avPlayTest, PLAY_TIME, done); 119 let path = VIDEO_PATH + 'H264_AAC.mkv'; 121 testAVPlayerSeek(path, avPlaye [all...] |
| /third_party/gn/src/gn/ |
| H A D | file_writer.cc | 34 const std::u16string& path = file_path.value(); in Create() local 36 file_path_ = base::UTF16ToUTF8(path); in Create() 38 reinterpret_cast<LPCWSTR>(path.c_str()), GENERIC_WRITE, in Create() 43 PLOG(ERROR) << "CreateFile failed for path " << file_path_; in Create() 45 // Determine whether the path need long path support. in Create() 46 if (path.size() >= MAX_PATH && !IsLongPathsSupportEnabled()) { in Create() 47 LOG(ERROR) << "You might need to enable Long Path Support on Windows: " in Create() 49 "maximum-file-path-limitation?tabs=registry#enable-long-paths" in Create() 92 PLOG(ERROR) << "creat() failed for path " << file_pat in Create() [all...] |
| /third_party/bounds_checking_function/ |
| 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/curl/lib/ |
| H A D | fopen.c | 45 to, *AND INCLUDING*, a final '/'. If there is no directory in the path, 50 The input path to this function is expected to have a file name part. 64 static char *dirslash(const char *path) in dirslash() argument 68 DEBUGASSERT(path); in dirslash() 70 n = strlen(path); in dirslash() 72 /* find the rightmost path separator, if any */ in dirslash() 73 while(n && !IS_SEP(path[n-1])) in dirslash() 75 /* skip over all the path separators, if any */ in dirslash() 76 while(n && IS_SEP(path[n-1])) in dirslash() 79 if(Curl_dyn_addn(&out, path, in dirslash() [all...] |
| /third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/ |
| H A D | RbPathTest.java | 32 assertBadPath("", "empty path string"); in testBadArgs() 33 assertBadPath("foo//bar", "path segments must not be empty"); in testBadArgs() 42 RbPath path = RbPath.parse("foo/bar/baz"); in testIteration() 43 assertThat(path.length()).isEqualTo(3); in testIteration() 44 assertThat(path.getSegment(0)).isEqualTo("foo"); in testIteration() 45 assertThat(path.getSegment(1)).isEqualTo("bar"); in testIteration() 46 assertThat(path.getSegment(2)).isEqualTo("baz"); in testIteration() 97 // Not a prefix even though it's a suffix of the path. in testCommonPrefixLength() 101 private static void assertBadPath(String path, String errorSnippet) { in assertBadPath() argument 103 assertThrows(IllegalArgumentException.class, () -> RbPath.parse(path)); in assertBadPath() [all...] |
| /third_party/lzma/CPP/Windows/ |
| H A D | FileName.h | 50 bool IsDriveRootPath_SuperAllowed(CFSTR s) throw(); // exact drive root path "a:\" or "\\?\a:\"
82 int FindAltStreamColon(CFSTR path) throw();
96 bool GetSuperPath(CFSTR path, UString &superPath, bool onlyIfNew);
105 #define IF_USE_MAIN_PATH int _useSuperPathType = GetUseSuperPathType(path); if (USE_MAIN_PATH)
119 if (dirPrefix != NULL && (path) is relative)
124 Current_Dir path can be used in 2 cases:
125 1) if (path) is relative && dirPrefix == NULL
126 2) for _WIN32: if (path) is absolute starting wuth "\"
128 bool GetFullPath(CFSTR dirPrefix, CFSTR path, FString &fullPath);
129 bool GetFullPath(CFSTR path, FStrin [all...] |
| /third_party/libfuse/example/ |
| H A D | null.c | 36 static int null_getattr(const char *path, struct stat *stbuf, in null_getattr() argument 41 if(strcmp(path, "/") != 0) in null_getattr() 55 static int null_truncate(const char *path, off_t size, in null_truncate() argument 61 if(strcmp(path, "/") != 0) in null_truncate() 67 static int null_open(const char *path, struct fuse_file_info *fi) in null_open() argument 71 if(strcmp(path, "/") != 0) in null_open() 77 static int null_read(const char *path, char *buf, size_t size, in null_read() argument 84 if(strcmp(path, "/") != 0) in null_read() 94 static int null_write(const char *path, const char *buf, size_t size, in null_write() argument 101 if(strcmp(path, "/") ! in null_write() [all...] |
| /third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
| H A D | truncate.c | 60 char path[PATH_MAX] = {0}; in truncate_0200() local 61 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in truncate_0200() 62 FILE *f = fopen(path, "a"); in truncate_0200() 71 int result = truncate(path, vlen); in truncate_0200() 73 remove(path); in truncate_0200() 79 f = fopen(path, "r"); in truncate_0200() 90 remove(path); in truncate_0200() 104 char path[PATH_MAX] = {0}; in truncate_0300() local 105 FILE_ABSOLUTE_PATH(STR_FILE_TXT, path); in truncate_0300() 106 int result = truncate(path, nle in truncate_0300() [all...] |
| /third_party/rust/crates/bindgen/bindgen-tests/tests/quickchecking/src/ |
| H A D | lib.rs | 34 use std::path::PathBuf; 60 let header_path = dir.path().join("prop_test.h"); in run_predicate_script() 69 .map_err(|_| "error converting path into String")?; in run_predicate_script() 77 .map_err(|_| "error converting path into String")?; in run_predicate_script() 80 // If `None`, output path not specified, don't copy. in run_predicate_script() 81 if let Some(ref path) = CONTEXT.lock().unwrap().output_path { in run_predicate_script() 84 .arg(dir.path().to_str().unwrap()) in run_predicate_script() 85 .arg(path) in run_predicate_script() 116 if let Some(path) = output_path { in test_bindgen() 118 Some(String::from(PathBuf::from(path) in test_bindgen() [all...] |