Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 915) sorted by relevance

12345678910>>...37

/developtools/smartperf_host/ide/src/js-heap/
DLoadDatabase.ts73 private async loadInfo(file: FileStruct) {
74 let result = await queryHeapInfo(file.id);
79 file.snapshotStruct.nodeCount = row.intValue;
82 file.snapshotStruct.edgeCount = row.intValue;
85 file.snapshotStruct.functionCount = row.intValue;
91 private async loadNode(file: FileStruct) {
92 let result = await queryHeapNode(file.id);
93 let heapNodes = file.snapshotStruct.nodeMap;
97 file.id,
100 file.snapshotStruct.strings[row.nameIdx],
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
DRandomAccessFileZipDataOutput.java29 private final RandomAccessFile file; field in RandomAccessFileZipDataOutput
33 public RandomAccessFileZipDataOutput(RandomAccessFile file) { in RandomAccessFileZipDataOutput() argument
34 this(file, 0); in RandomAccessFileZipDataOutput()
37 public RandomAccessFileZipDataOutput(RandomAccessFile file, long startPosition) { in RandomAccessFileZipDataOutput() argument
38 if (file == null) { in RandomAccessFileZipDataOutput()
44 this.file = file; in RandomAccessFileZipDataOutput()
45 this.fileChannel = file.getChannel(); in RandomAccessFileZipDataOutput()
60 synchronized (file) { in write()
61 file.seek(position); in write()
62 file.write(buffer, offset, length); in write()
[all …]
DRandomAccessFileZipDataInput.java31 private final RandomAccessFile file; field in RandomAccessFileZipDataInput
36 public RandomAccessFileZipDataInput(RandomAccessFile file) { in RandomAccessFileZipDataInput() argument
37 this.file = file; in RandomAccessFileZipDataInput()
38 this.fileChannel = file.getChannel(); in RandomAccessFileZipDataInput()
43 public RandomAccessFileZipDataInput(RandomAccessFile file, long offset, long size) { in RandomAccessFileZipDataInput() argument
50 this.file = file; in RandomAccessFileZipDataInput()
51 this.fileChannel = file.getChannel(); in RandomAccessFileZipDataInput()
60 return file.length(); in size()
81 synchronized (file) { in copyTo()
82 file.seek(offsetInFile); in copyTo()
[all …]
DZip.java65 private String file; field in Zip
74 this.file = inputFile.getCanonicalPath(); in Zip()
103 private EndOfCentralDirectory getZipEndOfCentralDirectory(File file) throws IOException { in getZipEndOfCentralDirectory() argument
104 if (file.length() < EndOfCentralDirectory.EOCD_LENGTH) { in getZipEndOfCentralDirectory()
110 eOCDOffset = file.length() - eocdLength; in getZipEndOfCentralDirectory()
111 byte[] bytes = FileUtils.readFileByOffsetAndLength(file, eOCDOffset, eocdLength); in getZipEndOfCentralDirectory()
118 …long eocdMaxLength = Math.min(EndOfCentralDirectory.EOCD_LENGTH + MAX_COMMENT_LENGTH, file.length(… in getZipEndOfCentralDirectory()
119 eOCDOffset = file.length() - eocdMaxLength; in getZipEndOfCentralDirectory()
120 bytes = FileUtils.readFileByOffsetAndLength(file, eOCDOffset, eocdMaxLength); in getZipEndOfCentralDirectory()
131 private void getZipCentralDirectory(File file) throws IOException { in getZipCentralDirectory() argument
[all …]
/developtools/packing_tool/adapter/ohos/
DUncompressVerify.java80 File file = new File(utility.getHapPath()); in hapCommandVerify() local
81 if (!file.isFile() || !file.getName().toLowerCase(Locale.ENGLISH).endsWith(HAP_SUFFIX)) { in hapCommandVerify()
94 return verifyOutPath(utility, file); in hapCommandVerify()
99 File file = new File(utility.getHspPath()); in hspCommandVerify() local
100 if (!file.isFile() || !file.getName().toLowerCase(Locale.ENGLISH).endsWith(HSP_SUFFIX)) { in hspCommandVerify()
104 return verifyOutPath(utility, file); in hspCommandVerify()
130 File file = new File(utility.getHarPath()); in harCommandVerify() local
131 if (!file.isFile() || !file.getName().toLowerCase(Locale.ENGLISH).endsWith(HAR_SUFFIX)) { in harCommandVerify()
141 return verifyOutPath(utility, file); in harCommandVerify()
158 File file = new File(utility.getAppPath()); in appCommandVerify() local
[all …]
DScanStatSuffix.java103 private String file; field in ScanStatSuffix.FileInfo
107 return this.file; in getFile()
109 public void setFile(String file) { in setFile() argument
110 this.file = file; in setFile()
253 for (String file : soList) { in getPathListData()
254 if (file.contains(HAP) || file.contains(HSP)) { in getPathListData()
255 file = splitPath(file, TMP_FOLDER_NAME); in getPathListData()
256 pathList.add(pack.getName() + file); in getPathListData()
344 for (String file : soList) { in getOldSize()
345 File tmp = new File(file); in getOldSize()
[all …]
DFileUtils.java60 File file = new File(filePath); in getFileData() local
61 long fileSize = file.length(); in getFileData()
69 fi = new FileInputStream(file); in getFileData()
109 File file = new File(filePath); in getFileList() local
110 if (!file.exists()) { in getFileList()
114 File[] files = file.listFiles(); in getFileList()
189 File file = new File(path); in deleteFile() local
190 if (file.exists()) { in deleteFile()
191 file.delete(); in deleteFile()
202 File file = new File(destDir); in unzip() local
[all …]
/developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/common/
Dutils.test.ts286 file: `${path.basename(moduleSource.moduleId)}`,
311 file: `${path.basename(moduleSource.moduleId)}`,
336 file: `${path.basename(moduleSource.moduleId)}`,
346 file: `${path.basename(dynamicModuleSource.moduleId)}`,
359 expect(newSourceMaps[relativeSourceFilePath].file === DYNAMICIMPORT_ETS).to.be.true;
376 file: `${path.basename(moduleSource.moduleId)}`,
401 file: `${path.basename(moduleSource.moduleId)}`,
426 file: `${path.basename(moduleSource.moduleId)}`,
530 for (const file of this.mockfileList) { constant
531 if (file.endsWith(EXTNAME_TS) || file.endsWith(EXTNAME_ETS) || file.endsWith(EXTNAME_JS)) {
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DFileUtils.java38 import java.nio.file.Files;
116 public static byte[] readFile(File file) throws IOException { in readFile() argument
117 return read(Files.newInputStream(file.toPath())); in readFile()
148 …public static byte[] readFileByOffsetAndLength(File file, long offset, long length) throws IOExcep… in readFileByOffsetAndLength() argument
149 try (FileInputStream input = new FileInputStream(file)) { in readFileByOffsetAndLength()
283 File file = new File(filePath); in getSuffix() local
284 String fileName = file.getName(); in getSuffix()
299 public static boolean writeFileToDos(String file, DataOutputStream dos) { in writeFileToDos() argument
303 File src = new File(file); in writeFileToDos()
346 File file = new File(filePath); in getFileLen() local
[all …]
/developtools/integration_verification/DeployDevice/src/aw/ExtractFile/
DExtractFile.py48 file = zfile.extract(file_name, extract_dir)
50 copyFile(file, extract_dir)
92 def backupFile(file): argument
104 logger.info("file is %s" % file)
105 if not os.path.isfile(file):
106 logger.error("%s file is not exist" % file)
109 backup_file = file + ".bak"
114 os.rename(file, backup_file)
120 if os.path.isfile(file):
121 os.remove(file)
/developtools/smartperf_host/ide/src/trace/component/chart/
DPerfDataQuery.ts39 files.forEach((file) => {
40 this.filesData[file.fileId] = this.filesData[file.fileId] || [];
41 PerfFile.setFileName(file);
42 this.filesData[file.fileId].push(file);
/developtools/profiler/hiebpf/src/
Dbpf_event_receiver.cpp84 auto file = file_.lock(); in ReceiveFSTraceEvent() local
85 if (file == nullptr) { in ReceiveFSTraceEvent()
90 void *dest = file->Reserve(tlvItemSize); in ReceiveFSTraceEvent()
97 file->Discard(dest); in ReceiveFSTraceEvent()
100 file->Submit(dest); in ReceiveFSTraceEvent()
108 auto file = file_.lock(); in ReceivePFTraceEvent() local
109 if (file == nullptr) { in ReceivePFTraceEvent()
114 void *dest = file->Reserve(tlvItemSize); in ReceivePFTraceEvent()
121 file->Discard(dest); in ReceivePFTraceEvent()
124 file->Submit(dest); in ReceivePFTraceEvent()
[all …]
/developtools/profiler/hiebpf/scripts/
Dfstrace_args_converter_generator.py16 def get_type_def(file): argument
17 offset = file.tell()
18 file.seek(0, 2)
19 file_size = file.tell()
20 file.seek(offset, 0)
23 while file.tell() < file_size:
24 startline = file.readline()
29 line = file.readline()
/developtools/integration_verification/tools/fotff/utils/
Dlog.go42 CallerPrettyfier: func(f *runtime.Frame) (function string, file string) {
64 file := filepath.Join("logs", pkg+".log")
67 if _, err = os.Stat(file); err == nil {
68 f, err = os.OpenFile(file, os.O_RDWR|os.O_APPEND, 0666)
70 f, err = os.Create(file)
73 logrus.Errorf("failed to open new log file %s: %v", file, err)
76 logrus.Infof("now log to %s", file)
/developtools/hapsigner/hapsigntool/hap_sign_tool/src/main/resources/
Dhelp.txt4 * you may not use this file except in compliance with the License.
24 -keystoreFile : keystore file, required fields, JKS or P12 format;
37 -keystoreFile : keystore file, required fields, JKS or P12 format;
39 … -outFile : output file, optional fields, if not filled, it will be directly output to the console;
62 -keystoreFile : keystore file, required fields, JKS or P12 format;
64 … -outFile : output file, optional fields, if not filled, it will be directly output to the console;
66 -issuerKeystoreFile : issuer keystore file, optional fields, JKS or P12 format;
84 -keystoreFile : keystore file, required fields, JKS or P12 format;
86 … -outFile : output file, optional fields, if not filled, it will be directly output to the console;
88 -issuerKeystoreFile : issuer keystore file, optional fields, JKS or P12 format;
[all …]
/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/
Dutils.ts74 export function changeFileExtension(file: string, targetExt: string, originExt = ''): string {
75 let currentExt = originExt.length === 0 ? path.extname(file) : originExt;
76 let fileWithoutExt = file.substring(0, file.lastIndexOf(currentExt));
200 export function isTsOrEtsSourceFile(file: string): boolean {
201 return /(?<!\.d)\.[e]?ts$/.test(file);
204 export function isJsSourceFile(file: string): boolean {
205 return /\.[cm]?js$/.test(file);
208 export function isJsonSourceFile(file: string): boolean {
209 return /\.json$/.test(file);
236 updatedGenerator['_file'] = originMap.file;
/developtools/packing_tool/adapter/scanner/
DREADME_zh.md123 java -jar app_check_tool.jar --input ./test.app --out-path ./test --stat-file-size 4
132 | --stat-file-size | 否 | 扫描超过设定大小的文件,单位KB <br>范围为 0-4294967295 KB。 |
140 "param":"--stat-file-size 4",
144 "file":"/application-entry-default.hap/libs/x86_64/example.so",
163 <td colspan="2">--stat-file-size 4</td>
177 <td>file</td> <td>size</td>
201 | file | String | 扫描的大文件的对应路径。 |
225 "taskDesc":"show files group by file type[.suffix]",
238 "file":"/application-entry-default.hap/libs/x86_64/example.so",
246 "file":"/application-entry-default.hap/ets/modules.abc",
[all …]
/developtools/hapsigner/autosign/
DREADME.md19 1. Run the `start_creat.bat` file in the terminal to generate certs.
20 2. Prepare your unsigned app and provision profile. Make sure correct config file location.
21 3. Run the `start_sign.bat` file in the terminal to start signing.
35 2. Run the `start_create.sh` file in the terminal to generate certs.
40 3. Prepare your unsigned app and provision profile. Make sure correct config file location.
41 4. Run the `start_sign.sh` file in the terminal to start signing.
/developtools/smartperf_host/ide/
Dtsconfig.json4 /* Visit https://aka.ms/tsconfig.json to read more about this file */
14 // "declaration": true, /* Generates corresponding '.d.ts' file. */
15 …larationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
16 // "sourceMap": true, /* Generates corresponding '.map' file. */
17 // "outFile": "./", /* Concatenate and emit output to single file. */
21 …// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation informa…
26 …// "isolatedModules": true, /* Transpile each file as a separate module (similar to …
36 …ict": true, /* Parse in strict mode and emit "use strict" for each source file. */
59 …SourceMap": true, /* Emit a single file with source maps instead of having a separat…
60 … /* Emit the source alongside the sourcemaps within a single file; requires '--inline…
[all …]
/developtools/profiler/device/base/test/unittest/
Dcommon_test.cpp34 FILE* file = fopen(filePath.c_str(), "w"); in WriteFile() local
35 if (file == nullptr) { in WriteFile()
41 size_t len = fwrite(const_cast<char*>(fileContent.c_str()), 1, fileContent.length(), file); in WriteFile()
45 (void)fclose(file); in WriteFile()
49 if (fflush(file) == EOF) { in WriteFile()
52 (void)fclose(file); in WriteFile()
56 fsync(fileno(file)); in WriteFile()
57 if (fclose(file) != 0) { in WriteFile()
/developtools/profiler/device/services/ipc/src/
Dipc_generator.cpp23 bool IpcGenerator::Generate(const google::protobuf::FileDescriptor* file, in Generate() argument
29 std::string base_name = pcsp->SetNames(file->name(), file->package()); in Generate()
31 for (int i = 0; i < file->service_count(); i++) { in Generate()
32 const google::protobuf::ServiceDescriptor* service = file->service(i); in Generate()
/developtools/hdc/hdc_rust/src/common/
Dfilemanager.rs23 file: Option<File>, field
34 file: None, in new()
45 self.file = Some(f); in open()
59 if let Some(f) = &self.file { in file_size()
/developtools/integration_verification/cases/smoke/basic/screenshot32/acls_check/
Dread_acl_whitelist.py31 file = f.read()
32 return file
38 def get_acl_dict(file): argument
41 f = json.loads(file)
/developtools/integration_verification/cases/smoke/basic/screenshot32/xdevice_smoke/acls_check/
Dread_acl_whitelist.py31 file = f.read()
32 return file
38 def get_acl_dict(file): argument
41 f = json.loads(file)
/developtools/smartperf_host/ide/src/trace/component/trace/sheet/vmtracker/
DTabPaneVmTrackerShmComparison.ts59 for (let file of dataList) { variable
60 if (file.startNs !== data.startNs) {
61 fileArr.push(file);
89 for (let file of baseFileData) { variable
90 baseSumSize += file.size;
92 for (let file of targetFileData) { variable
93 targetSumSize += file.size;

12345678910>>...37