Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 126) sorted by relevance

123456

/interface/sdk_c/third_party/musl/ndk_musl_include/fortify/
Dfcntl.h44 int open(const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags) in open() argument
49 return __open_chk(path, flags); in open()
51 return __open_real(path, flags); in open()
56 int open(const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags, unsigned modes) in open() argument
60 return __open_real(path, flags, modes); in open()
64 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags) in openat() argument
69 return __openat_chk(dirfd, path, flags); in openat()
71 return __openat_real(dirfd, path, flags); in openat()
76 int openat(int dirfd, const char* const __DIAGNOSE_PASS_OBJECT_SIZE path, int flags, mode_t modes) in openat() argument
80 return __openat_real(dirfd, path, flags, modes); in openat()
[all …]
/interface/sdk_c/build-tools/capi_parser/test/testCase/
Drun_main.py21 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../src")))
27 test_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..\\"))
28 test_case_path = os.path.join(test_path, "ut\\check")
29 output_path = os.path.join(test_path, "output\\check")
30 expect_path = os.path.join(test_path, "expect\\check")
34 check_result = get_check_result_list([os.path.join(dirpath, item)])
35 write_in_txt(check_result, os.path.join(output_path, "{}.txt".format(file_name)))
36 with open(os.path.join(expect_path, "{}.txt".format(file_name))) as json_file:
39 …self.assertEqual(result_json, "result_json", "{} case is error".format(os.path.join(dirpath, item)…
/interface/sdk-js/build-tools/jsdoc_format_plugin/test/testCase/
DrunTest.ts17 import path from 'path';
22 const testFileDir = path.join(__dirname, '..', '/ut/');
23 const outputFileDir = path.join(__dirname, '..', '/output/testSingleFile/');
24 const expectFileDir = path.join(__dirname, '..', '/expect/');
28 const testFilePath = path.join(testFileDir, testFileName);
29 const outputFilePath = path.join(outputFileDir, testFileName);
30 const expectFilePath = path.join(expectFileDir, testFileName);
31 const baseName: string = path.basename(testFileName, '.d.ts');
32 const expectReportFilePath: string = path.join(expectFileDir, `${baseName}.json`);
33 const outputReportFilePath: string = path.join(outputFileDir, `${baseName}.json`);
[all …]
/interface/sdk-js/build-tools/dts_parser/test/testCase/
DrunTest.ts17 import path from 'path';
28 const testFileDir: string = path.join(FileUtils.getBaseDirName(), '/test/ut/parserSince');
29 const outputFileDir: string = path.join(FileUtils.getBaseDirName(), '/test/output/parserSince');
30 const expectFileDir: string = path.join(FileUtils.getBaseDirName(), '/test/expect/parserSince');
33 const baseName: string = path
37 const testFilePath: string = path.join(testFileDir, testFileName);
38 const outputFilePath: string = path.join(outputFileDir, `${baseName}.json`);
39 const expectFilePath: string = path.join(expectFileDir, `${baseName}.json`);
56 const testFileDir: string = path.join(FileUtils.getBaseDirName(), '/test/ut/parser');
57 const outputFileDir: string = path.join(FileUtils.getBaseDirName(), '/test/output/parser');
[all …]
/interface/sdk-js/api/
D@ohos.fileio.d.ts111 declare function access(path: string, mode?: number): Promise<void>;
124 declare function access(path: string, callback: AsyncCallback<void>): void;
138 declare function access(path: string, mode: number, callback: AsyncCallback<void>): void;
150 declare function accessSync(path: string, mode?: number): void;
260 declare function createStream(path: string, mode: string): Promise<Stream>;
274 declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
287 declare function createStreamSync(path: string, mode: string): Stream;
300 declare function chown(path: string, uid: number, gid: number): Promise<void>;
314 declare function chown(path: string, uid: number, gid: number, callback: AsyncCallback<void>): void;
326 declare function chownSync(path: string, uid: number, gid: number): void;
[all …]
D@ohos.file.statvfs.d.ts52 function getFreeSize(path: string): Promise<number>;
75 function getFreeSize(path: string, callback: AsyncCallback<number>): void;
98 function getFreeSizeSync(path: string): number;
121 function getTotalSize(path: string): Promise<number>;
144 function getTotalSize(path: string, callback: AsyncCallback<number>): void;
167 function getTotalSizeSync(path: string): number;
D@ohos.file.securityLabel.d.ts56 function setSecurityLabel(path: string, type: DataLevel): Promise<void>;
75 function setSecurityLabel(path: string, type: DataLevel, callback: AsyncCallback<void>): void;
93 function setSecurityLabelSync(path: string, type: DataLevel): void;
111 function getSecurityLabel(path: string): Promise<string>;
129 function getSecurityLabel(path: string, callback: AsyncCallback<string>): void;
147 function getSecurityLabelSync(path: string): string;
D@ohos.data.storage.d.ts50 function getStorageSync(path: string): Storage;
51 function getStorage(path: string, callback: AsyncCallback<Storage>): void;
52 function getStorage(path: string): Promise<Storage>;
69 function deleteStorageSync(path: string): void;
70 function deleteStorage(path: string, callback: AsyncCallback<void>): void;
71 function deleteStorage(path: string): Promise<void>;
87 function removeStorageFromCacheSync(path: string): void;
88 function removeStorageFromCache(path: string, callback: AsyncCallback<void>): void;
89 function removeStorageFromCache(path: string): Promise<void>;
D@ohos.statfs.d.ts43 function getFreeBytes(path: string, callback: AsyncCallback<number>): void;
55 function getFreeBytes(path: string): Promise<number>;
66 function getTotalBytes(path: string, callback: AsyncCallback<number>): void;
78 function getTotalBytes(path: string): Promise<number>;
D@ohos.file.fs.d.ts424 declare function access(path: string): Promise<boolean>;
489 declare function access(path: string, callback: AsyncCallback<boolean>): void;
554 declare function accessSync(path: string): boolean;
1323 declare function createStream(path: string, mode: string): Promise<Stream>;
1360 declare function createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void;
1397 declare function createStreamSync(path: string, mode: string): Stream;
1570 declare function createWatcher(path: string, events: number, listener: WatchEventListener): Watcher;
1946 path: string,
1995 declare function listFile(path: string, callback: AsyncCallback<string[]>): void;
2046 path: string,
[all …]
D@ohos.resourceManager.d.ts1571 getRawFile(path: string, callback: AsyncCallback<Uint8Array>): void;
1583 getRawFile(path: string): Promise<Uint8Array>;
1595 getRawFileDescriptor(path: string, callback: AsyncCallback<RawFileDescriptor>): void;
1607 getRawFileDescriptor(path: string): Promise<RawFileDescriptor>;
1619 closeRawFileDescriptor(path: string, callback: AsyncCallback<void>): void;
1631 closeRawFileDescriptor(path: string): Promise<void>;
3256 getRawFileContent(path: string, callback: _AsyncCallback<Uint8Array>): void;
3291 getRawFileContent(path: string): Promise<Uint8Array>;
3326 getRawFd(path: string, callback: _AsyncCallback<RawFileDescriptor>): void;
3361 getRawFd(path: string): Promise<RawFileDescriptor>;
[all …]
/interface/sdk-js/build-tools/api_check_plugin/autoTest/testCase/
Dtest.js19 const path = require('path'); constant
23 const testCasesDir = path.join(__dirname, '..', '/ut');
25 const expectFileDir = path.join(__dirname, '..', '/expect');
26 const outputFilePath = path.join(__dirname, '..', 'output');
31 const expectFilePath = path.resolve(expectFileDir, `${fileName.replace(/.d.ts/g, '.txt')}`);
34 const url = path.join(testCasesDir, fileName);
36 fs.writeFileSync(path.join(__dirname, 'testMdfile.txt'), url);
37 scanEntry(path.join(__dirname, 'testMdfile.txt'), prId, true);
40 … const resultFilePath = path.join(outputFilePath, `output_${fileName.replace(/.d.ts/g, '.txt')}`);
/interface/sdk-js/build-tools/api_diff/test/testCase/
Dtest.js18 const path = require('path'); constant
22 const testCasesDir = path.join(__dirname, '..', '/ut');
24 const expectFileDir = path.join(__dirname, '..', '/expect');
25 const outputFilePath = path.join(__dirname, '..', 'output');
30 const oldFileDir = path.join(testCasesDir, fileName, 'old');
31 const newFileDir = path.join(testCasesDir, fileName, 'new');
32 const expectFilePath = path.resolve(expectFileDir, `${fileName}.json`);
43 const resultFilePath = path.resolve(argumentObject.output, resultFileName);
/interface/sdk-js/build-tools/collect_application_api/test/testCase/
Dtest.js17 const path = require('path'); constant
24 const appDir = path.join(__dirname, '..', '/ut/');
25 const outputDir = path.join(__dirname, '..', '/output');
26 const expectFileDir = path.join(__dirname, '..', '/expect/');
29 let appProjectPath = path.join(appDir, projectName);
30 let expectFilePath = path.join(expectFileDir, `${projectName}.json`);
31 it('testFile# ' + path.basename(appProjectPath), function () {
42 const outputFilePath = path.join(outputDir, outputFileName[0]);
/interface/sdk-js/build-tools/jsdoc_format_plugin/src/utils/
DfileUtils.ts17 import path from 'path';
29 const filePath = path.join(dirName, dir.name);
46 const parentDir = path.dirname(filePath);
53 static isDirectory(path: string): boolean {
54 const stats: Stats = fs.lstatSync(path);
58 static isExists(path: string | undefined): boolean {
59 if (!path) {
63 fs.accessSync(path, constants.R_OK);
/interface/sdk-js/build-tools/collect_application_api/
Dwebpack.config.js16 const path = require('path'); constant
28 const bundlejsPath = path.resolve(__dirname, 'dist', 'build', bundleName);
34 const libsPath = path.resolve(__dirname, 'libs');
35 const readme = path.resolve(__dirname, 'reademe.md');
36 const outputName = path.resolve(__dirname, 'dist', `apiCollector-${packageJson.version}.zip`);
53 path: path.resolve(__dirname, 'dist', 'build'), property
/interface/sdk-js/build-tools/collect_application_api/scripts/
Dcopylibs.js17 const path = require('path'); constant
20 const targetLibPath = path.resolve(__dirname, '..', 'libs');
24 const esLibPath = path.resolve(__dirname, '../node_modules/typescript/lib');
28 const srcFilePath = path.resolve(esLibPath, file);
32 const targetFile = path.resolve(targetLibPath, file);
42 const targetFile = path.resolve(targetLibPath, excludeFile);
/interface/sdk-js/build-tools/jsdoc_format_plugin/
Dwebpack.config.js16 const path = require('path'); constant
31 include: path.resolve(__dirname, 'src'),
45 loader: path.resolve(__dirname, 'loader/flavor.js'),
56 path: path.resolve(__dirname, './build'), property
/interface/sdk-js/build-tools/dts_parser/
Dwebpack.config.js16 const path = require('path'); constant
31 include: path.resolve(__dirname, 'src'),
42 loader: path.resolve(__dirname, 'loader/flavor.js'),
53 path: path.resolve(__dirname, './package'), property
/interface/sdk_c/build-tools/capi_parser/src/coreImpl/diff/
Ddiff_file.py96 return os.path.splitext(file_name)[1]
109 diff_file_path = os.path.join(old_dir, target_file)
113 diff_file_path = os.path.join(new_dir, target_file)
119 if os.path.isdir(diff_file_path):
128 if os.path.isdir(diff_file_path):
139 if (os.path.isdir(os.path.join(old_dir, target_file))
140 and os.path.isdir(os.path.join(new_dir, target_file))):
141 old_child_dir = os.path.join(old_dir, target_file)
142 new_child_dir = os.path.join(new_dir, target_file)
144 if (os.path.isfile(os.path.join(old_dir, target_file))
[all …]
/interface/sdk-js/build-tools/api_check_plugin/
Dentry.js16 const path = require('path'); constant
24 const mdFilesPath = path.resolve(sourceDirname, '../../../../', 'all_files.txt');
42 const { scanEntry, reqGitApi } = require(path.resolve(__dirname, './src/api_check_plugin'));
45 removeDir(path.resolve(__dirname, '../api_diff/node_modules'));
46 removeDir(path.resolve(__dirname, 'node_modules'));
57 writeResultFile(result, path.resolve(__dirname, './Result.txt'), {});
65 dirs = dirs.map((dir) => path.join(url, dir));
77 …fs.writeFile(path.resolve(__dirname, outputPath), JSON.stringify(resultData, null, STANDARD_INDENT…
/interface/sdk-js/build-tools/api_check_plugin/test/
Dtest.js17 const path = require('path');
23 require(path.resolve(__dirname, '../src/utils'));
27 removeDir(path.resolve(__dirname, "../../api_diff/node_modules"));
28 removeDir(path.resolve(__dirname, "../node_modules"));
39 writeResultFile(result, path.resolve(__dirname, './Result.txt'), {});
/interface/sdk-js/build-tools/dts_parser/src/coreImpl/checker/src/
Dcheck_api_diff.ts16 import path from 'path';
36 const rootDir = path.resolve(
43 const oldFileDir: string = path.resolve(rootDir, './old');
44 const newFileDir: string = path.resolve(rootDir, './new');
53 const oldSDKApiMap: FilesMap = Parser.parseFile(path.resolve(oldFileDir, '..'), oldFileDir);
54 const newSDKApiMap: FilesMap = Parser.parseFile(path.resolve(newFileDir, '..'), newFileDir);
64 const dtsName = path.basename(diffInfo.getOldDtsName());
80 const dtsName = path.basename(diffInfo.getNewDtsName());
/interface/sdk-js/build-tools/collect_application_api/src/
Dindex.js18 const path = require('path'); constant
129 return path.resolve(__dirname, 'libs');
131 return path.resolve(__dirname, '..', 'libs');
140 const apiPath = path.resolve(argv.sdk, 'api');
141 const componentPath = path.resolve(argv.sdk, 'component');
153 checkPathIsValid(path) { argument
154 if (path && !fs.existsSync(path)) {
155 Logger.error(this.logTag, `${path} not exists`);
/interface/sdk-js/build-tools/api_diff/src/
Dutil.js16 const path = require('path'); constant
24 internalListFiles(path.resolve(dir, subdir),
25 (filePath) => path.basename(filePath).endsWith('.d.ts'), allFiles);
36 const filePath = path.join(dir, element);
47 const relative = path.relative(parentDir, subPath);

123456