Home
last modified time | relevance | path

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

12345678910>>...44

/developtools/profiler/host/smartperf/ide/src/js-heap/
DLoadDatabase.ts79 private async loadInfo(file: FileStruct) {
80 let result = await queryHeapInfo(file.id);
85 file.snapshotStruct.nodeCount = row.intValue;
88 file.snapshotStruct.edgeCount = row.intValue;
91 file.snapshotStruct.functionCount = row.intValue;
97 private async loadNode(file: FileStruct) {
98 let result = await queryHeapNode(file.id);
99 let heapNodes = file.snapshotStruct.nodeMap;
103 file.id,
106 file.snapshotStruct.strings[row.nameIdx],
[all …]
/developtools/smartperf_host/ide/src/js-heap/
DLoadDatabase.ts75 private async loadInfo(file: FileStruct) {
76 let result = await queryHeapInfo(file.id);
81 file.snapshotStruct.nodeCount = row.intValue;
84 file.snapshotStruct.edgeCount = row.intValue;
87 file.snapshotStruct.functionCount = row.intValue;
93 private async loadNode(file: FileStruct) {
94 let result = await queryHeapNode(file.id);
95 let heapNodes = file.snapshotStruct.nodeMap;
99 file.id,
102 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 …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DFileUtils.java37 import java.nio.file.Files;
98 public static byte[] readFile(File file) throws IOException { in readFile() argument
99 return read(new FileInputStream(file)); in readFile()
180 File file = new File(filePath); in getSuffix() local
181 String fileName = file.getName(); in getSuffix()
196 public static boolean writeFileToDos(String file, DataOutputStream dos) { in writeFileToDos() argument
200 File src = new File(file); in writeFileToDos()
240 File file = new File(filePath); in getFileLen() local
241 if (file.exists() && file.isFile()) { in getFileLen()
242 return file.length(); in getFileLen()
[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 …]
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 …]
DCompressVerify.java116 File file = new File(utility.getRpcidPath()); in isValidRpcid() local
117 if (!file.isFile()) { in isValidRpcid()
121 if (!RPCID_PROFILE.equals(file.getName())) { in isValidRpcid()
131 File file = new File(utility.getPackInfoPath()); in isValidPackInfo() local
132 if (!file.isFile()) { in isValidPackInfo()
136 if (!PACK_INFO.equals(file.getName())) { in isValidPackInfo()
166 File file = new File(utility.getProfilePath()); in isVerifyValidInHapCommonMode() local
167 if (!file.isFile() || !PROFILE_NAME.equals(file.getName())) { in isVerifyValidInHapCommonMode()
200 File file = new File(utility.getIndexPath()); in isVerifyValidInHapMode() local
201 … if (!utility.getIndexPath().isEmpty() && !file.isFile() && INDEX_PROFILE.equals(file.getName())) { in isVerifyValidInHapMode()
[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.ts38 files.forEach((file) => {
39 this.filesData[file.fileId] = this.filesData[file.fileId] || [];
40 PerfFile.setFileName(file);
41 this.filesData[file.fileId].push(file);
/developtools/profiler/host/smartperf/ide/src/trace/component/chart/
DPerfDataQuery.ts38 files.forEach((file) => {
39 this.filesData[file.fileId] = this.filesData[file.fileId] || [];
40 PerfFile.setFileName(file);
41 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/ace_ets2bundle/compiler/src/fast_build/ark_compiler/
Dutils.ts66 export function changeFileExtension(file: string, targetExt: string, originExt = ''): string {
67 let currentExt = originExt.length === 0 ? path.extname(file) : originExt;
68 let fileWithoutExt = file.substring(0, file.lastIndexOf(currentExt));
190 export function isTsOrEtsSourceFile(file: string): boolean {
191 return /(?<!\.d)\.[e]?ts$/.test(file);
194 export function isJsSourceFile(file: string): boolean {
195 return /\.[cm]?js$/.test(file);
198 export function isJsonSourceFile(file: string): boolean {
199 return /\.json$/.test(file);
226 updatedGenerator['_file'] = originMap.file;
/developtools/hiperf/test/fuzztest/elfparser_fuzzer/
DElfParser_fuzzer.cpp28 std::unique_ptr<ElfFileFuzzer> file = std::make_unique<ElfFileFuzzer>(filename); in MakeUnique() local
29 if (file == nullptr) { in MakeUnique()
33 if (!file->IsOpened()) { in MakeUnique()
37 if (!file->ParseFile()) { in MakeUnique()
41 return file; in MakeUnique()
/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/module/
Dmodule_hotreload_mode.ts91 let changedFileListInAbsolutePath: Array<string> = changedFileList.map((file) => {
92 if (isJsonSourceFile(file)) {
93 …this.logger.debug(blue, `ARKTS: json source file: ${file} changed, skip hot reload build!`, reset);
96 return path.join(this.projectConfig.projectPath, file);
119 for (const file of fileList) { constant
120 const sourceMapPath: string = toUnixPath(path.join(relativeProjectPath, file));
/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/host/smartperf/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/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/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/smartperf_host/ide/src/trace/component/trace/sheet/vmtracker/
DTabPaneVmTrackerShmComparison.ts58 for (let file of dataList) { variable
59 if (file.startNs !== data.startNs) {
60 fileArr.push(file);
88 for (let file of baseFileData) { variable
89 baseSumSize += file.size;
91 for (let file of targetFileData) { variable
92 targetSumSize += file.size;

12345678910>>...44