Home
last modified time | relevance | path

Searched refs:file (Results 3051 - 3075 of 8131) sorted by relevance

1...<<121122123124125126127128129130>>...326

/foundation/multimedia/av_codec/test/nativedemo/audio_demo/
H A Davcodec_audio_avbuffer_g711mu_encoder_demo.cpp4 * you may not use this file except in compliance with the License.
140 std::ifstream file(filePath, std::ios::binary | std::ios::ate); in GetFileSize()
141 if (!file) { in GetFileSize()
142 std::cerr << "Failed to open file: " << filePath << std::endl; in GetFileSize()
146 std::streampos fileSize = file.tellg(); // 获取文件大小 in GetFileSize()
147 file.close(); in GetFileSize()
294 DEMO_CHECK_AND_RETURN_LOG(inputFile_ != nullptr && inputFile_->is_open(), "Fatal: open file fail"); in InputFunc()
347 DEMO_CHECK_AND_RETURN_LOG(outputFile_ != nullptr && outputFile_->is_open(), "Fatal: open output file fail"); in OutputFunc()
H A Davcodec_audio_avbuffer_aac_encoder_demo.cpp4 * you may not use this file except in compliance with the License.
136 std::ifstream file(filePath, std::ios::binary | std::ios::ate); in GetFileSize()
137 if (!file) { in GetFileSize()
138 std::cerr << "Failed to open file: " << filePath << std::endl; in GetFileSize()
142 std::streampos fileSize = file.tellg(); // 获取文件大小 in GetFileSize()
143 file.close(); in GetFileSize()
289 DEMO_CHECK_AND_RETURN_LOG(inputFile_ != nullptr && inputFile_->is_open(), "Fatal: open file fail"); in InputFunc()
341 DEMO_CHECK_AND_RETURN_LOG(outputFile_ != nullptr && outputFile_->is_open(), "Fatal: open output file fail"); in OutputFunc()
358 cout << "OutputFunc write file,buffer index:" << index in OutputFunc()
H A Davcodec_audio_avbuffer_amrwb_encoder_demo.cpp4 * you may not use this file except in compliance with the License.
141 std::ifstream file(filePath, std::ios::binary | std::ios::ate); in GetFileSize()
142 if (!file) { in GetFileSize()
143 std::cerr << "Failed to open file: " << filePath << std::endl; in GetFileSize()
147 std::streampos fileSize = file.tellg(); // 获取文件大小 in GetFileSize()
148 file.close(); in GetFileSize()
295 DEMO_CHECK_AND_RETURN_LOG(inputFile_ != nullptr && inputFile_->is_open(), "Fatal: open file fail"); in InputFunc()
347 DEMO_CHECK_AND_RETURN_LOG(outputFile_ != nullptr && outputFile_->is_open(), "Fatal: open output file fail"); in OutputFunc()
H A Davcodec_audio_avbuffer_amrnb_encoder_demo.cpp4 * you may not use this file except in compliance with the License.
141 std::ifstream file(filePath, std::ios::binary | std::ios::ate); in GetFileSize()
142 if (!file) { in GetFileSize()
143 std::cerr << "Failed to open file: " << filePath << std::endl; in GetFileSize()
147 std::streampos fileSize = file.tellg(); // 获取文件大小 in GetFileSize()
148 file.close(); in GetFileSize()
295 DEMO_CHECK_AND_RETURN_LOG(inputFile_ != nullptr && inputFile_->is_open(), "Fatal: open file fail"); in InputFunc()
347 DEMO_CHECK_AND_RETURN_LOG(outputFile_ != nullptr && outputFile_->is_open(), "Fatal: open output file fail"); in OutputFunc()
H A Davcodec_audio_avbuffer_mp3_encoder_demo.cpp4 * you may not use this file except in compliance with the License.
141 std::ifstream file(filePath, std::ios::binary | std::ios::ate); in GetFileSize()
142 if (!file) { in GetFileSize()
143 std::cerr << "Failed to open file: " << filePath << std::endl; in GetFileSize()
147 std::streampos fileSize = file.tellg(); // 获取文件大小 in GetFileSize()
148 file.close(); in GetFileSize()
295 DEMO_CHECK_AND_RETURN_LOG(inputFile_ != nullptr && inputFile_->is_open(), "Fatal: open file fail"); in InputFunc()
348 DEMO_CHECK_AND_RETURN_LOG(outputFile_ != nullptr && outputFile_->is_open(), "Fatal: open output file fail"); in OutputFunc()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/src/
H A Dfile_source_stream.cpp4 * you may not use this file except in compliance with the License.
52 FileSourceStream::FileSourceStream(std::FILE *file, size_t size, size_t offset, size_t original, in FileSourceStream() argument
54 : filePtr_(file), fileSize_(size), fileOffset_(offset), fileOriginalOffset_(original), in FileSourceStream()
60 FileSourceStream::FileSourceStream(std::FILE *file, size_t size, size_t offset, size_t original, in FileSourceStream() argument
62 : filePtr_(file), fileSize_(size), fileOffset_(offset), fileOriginalOffset_(original), in FileSourceStream()
81 IMAGE_LOGE("[FileSourceStream]input the file path exception, errno:%{public}d.", errno); in CreateSourceStream()
92 IMAGE_LOGE("[FileSourceStream]open file fail."); in CreateSourceStream()
97 IMAGE_LOGE("[FileSourceStream]get the file size fail"); in CreateSourceStream()
120 IMAGE_LOGE("[FileSourceStream]open file fail."); in CreateSourceStream()
126 IMAGE_LOGE("[FileSourceStream]get the file siz in CreateSourceStream()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dfile_metadata_stream.cpp4 * you may not use this file except in compliance with the License.
38 ssize_t FileWrapper::FWrite(const void *src, size_t size, ssize_t nmemb, FILE *file) in FWrite() argument
40 return ::fwrite(src, size, nmemb, file); in FWrite()
43 ssize_t FileWrapper::FRead(void *destv, size_t size, ssize_t nmemb, FILE *file) in FRead() argument
45 return ::fread(destv, size, nmemb, file); in FRead()
92 if (fileDescriptor != -1) { // If the operation is through a file descriptor in HandleFileError()
93 IMAGE_LOGE("%{public}s file failed: %{public}d, reason: " in HandleFileError()
96 } else { // If the operation is through a file path in HandleFileError()
97 IMAGE_LOGE("%{public}s file failed: %{public}s, reason: " in HandleFileError()
189 IMAGE_LOGE("Tell file faile in Tell()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_space_management_test.cpp4 * you may not use this file except in compliance with the License.
142 // use another way calculate small file size(2G)
146 for (const auto &file : fileNames) { in CheckRealFileSize()
148 fileHandle = fopen(file.c_str(), "rb"); in CheckRealFileSize()
150 LOGE("Open file[%s] fail[%d]", file.c_str(), errno); in CheckRealFileSize()
155 LOGD("CheckRealFileSize:FileName[%s],size[%ld]", file.c_str(), fileSize); in CheckRealFileSize()
156 size += static_cast<uint64_t>(fileSize); // file is less than 16M. in CheckRealFileSize()
293 // The file will be deleted after the test, it only for test, no security impact on permissions
314 LOGE("failed to delete the file[ in DeleteFile()
[all...]
/foundation/distributedhardware/distributed_camera/common/src/utils/
H A Ddcamera_utils_tools.cpp4 * you may not use this file except in compliance with the License.
206 DHLOGE("The file path is invalid."); in DumpBufferToFile()
211 DHLOGE("dumpsaving : open file failed."); in DumpBufferToFile()
227 DHLOGE("The file path is invalid."); in IsUnderDumpMaxSize()
232 DHLOGE("dumpsaving : open file failed."); in IsUnderDumpMaxSize()
318 DHLOGE("The file path is invalid."); in OpenDumpFileInner()
330 CHECK_AND_RETURN_RET_LOG(dumpFile == nullptr, dumpFile, "Error opening dump file!"); in OpenDumpFileInner()
333 CHECK_AND_RETURN_RET_LOG(dumpFile == nullptr, dumpFile, "Error opening dump file!"); in OpenDumpFileInner()
346 CHECK_AND_RETURN_LOG(writeResult != bufferSize, "Failed to write the file."); in WriteDumpFile()
359 CHECK_AND_RETURN_LOG(*dumpFile == nullptr, "Invalid file par in ChangeDumpFileState()
373 OpenDumpFile(std::string para, std::string fileName, FILE **file) OpenDumpFile() argument
[all...]
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/softbus/
H A Dsoftbus_adapter.cpp4 * you may not use this file except in compliance with the License.
165 "File receive process sessionId = %{public}d, first file:%{public}s, bytesUpload:%{public}" PRIu64 ", " in OnReceiveFileProcess()
282 for (const string &file : sFileList) { in SendFile()
283 sourceFileList.push_back(file.data()); in SendFile()
286 for (const string &file : dFileList) { in SendFile()
287 destFileList.push_back(file.data()); in SendFile()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_asset_recv_listener.cpp4 * you may not use this file except in compliance with the License.
82 LOGE("fileList has no file"); in OnRecvAssetStart()
107 LOGE("fileList has no file"); in OnRecvAssetFinished()
187 LOGE("get asset temp dir fail, file name is %{public}s", GetAnonyString(oldPath).c_str()); in MoveAsset()
193 LOGE("get asset flag fail, file name is %{public}s", GetAnonyString(oldPath).c_str()); in MoveAsset()
201 LOGE("rename file fail, file name is %{public}s", e.what()); in MoveAsset()
211 LOGE("get asset temp dir fail, file name is %{public}s", GetAnonyString(oldPath).c_str()); in MoveAsset()
219 LOGE("rename file fail, file nam in MoveAsset()
226 RemoveAsset(const std::string &file) RemoveAsset() argument
[all...]
/test/testfwk/developer_test/local_coverage/code_coverage/
H A Dmultiprocess_code_coverage.py7 # you may not use this file except in compliance with the License.
86 print("subsystem config file error.")
194 cmd = "lcov -c -b {} -d {} --gcov-tool {} --config-file {} -o {} --ignore-errors source,gcov".format(
196 print("single_test**##father_pid:%s##child_pid:%s cmd:%s config file:%s" % (
215 print(f"Error: trace file {trace_file} not exists!")
225 print(f"empty file {filename} deleted")
283 for file in files:
284 if file.startswith(subsystem) and file.endswith("_strip.info"):
286 single_test_info_path, root, file
[all...]
/test/xts/hats/kernel/mmap/
H A DMmapApiTest.cpp4 * you may not use this file except in compliance with the License.
74 FILE *file; in CreateFile() local
80 file = fopen("output_file.txt", "wb"); in CreateFile()
81 if (fwrite(buffer, 1, PAGE_SIZE, file) != PAGE_SIZE) { in CreateFile()
82 std::cout << "Error fwrite file.\n" << std::endl; in CreateFile()
85 fclose(file); in CreateFile()
/test/xts/hats/kernel/madvise/
H A DMadviseApiTest.cpp4 * you may not use this file except in compliance with the License.
62 FILE *file; in CreateFile() local
68 file = fopen("output_file.txt", "wb"); in CreateFile()
69 if (fwrite(buffer, 1, PAGE_SIZE, file) != PAGE_SIZE) { in CreateFile()
70 std::cout << "Error fwrite file.\n" << std::endl; in CreateFile()
73 fclose(file); in CreateFile()
/third_party/gn/src/gn/
H A Dbuilder_unittest.cc3 // found in the LICENSE file.
23 void Load(const SourceFile& file,
26 files_.push_back(file);
40 // file(s). This will clear the records so it will be empty for the next call.
41 bool HasLoadedOne(const SourceFile& file) { in HasLoadedOne() argument
46 bool match = (files_[0] == file); in HasLoadedOne()
/third_party/curl/docs/cmdline-opts/
H A Dgen.pl11 # This software is licensed as described in the file COPYING, which
17 # furnished to do so, under the terms of the COPYING file.
37 :crlf so it has to be specified on each file open for text input.
711 * This software is licensed as described in the file COPYING, which
717 * furnished to do so, under the terms of the COPYING file.
730 * This source file is generated with the following command in an autotools
867 .\\" * This software is licensed as described in the file COPYING, which
873 .\\" * furnished to do so, under the terms of the COPYING file.
902 # render the file
/third_party/PyYAML/tests/lib/
H A Dtest_yaml_ext.py235 with open(data_filename, 'rb') as file:
236 _compare_emitters(file.read(), verbose)
237 with open(canonical_filename, 'rb') as file:
238 _compare_emitters(file.read(), verbose)
/third_party/lzma/C/Util/SfxSetup/
H A DSfxSetup.c380 if (InFile_OpenW(&archiveStream.file, sfxPath) != 0) in main()
382 errorMessage = "can not open input file"; in main()
388 if (!FindSignature(&archiveStream.file, &pos)) in main()
390 else if (File_Seek(&archiveStream.file, (Int64 *)&pos, SZ_SEEK_SET) != 0) in main()
488 errorMessage = "Duplicate file"; in main()
494 errorMessage = "Can't open output file"; in main()
503 errorMessage = "Can't write output file"; in main()
539 errorMessage = "There is no file to execute"; in main()
559 File_Close(&archiveStream.file); in main()
/third_party/jerryscript/jerry-main/
H A Dmain-unix-snapshot.c4 * you may not use this file except in compliance with the License.
132 * Loading a single file into the memory.
134 * @return size of file - if loading is successful
139 const char *file_name) /**< file name */ in read_file()
141 FILE *file = fopen (file_name, "rb"); in read_file() local
143 if (file == NULL) in read_file()
145 jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: failed to open file: %s\n", file_name); in read_file()
151 size_t bytes_read = fread (input_pos_p, 1u, max_size, file); in read_file()
152 fclose (file); in read_file()
156 jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: failed to read file in read_file()
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_reg_type.c324 enum brw_reg_file file, in brw_reg_type_to_hw_type()
352 if (file == BRW_IMMEDIATE_VALUE) { in brw_reg_type_to_hw_type()
368 enum brw_reg_file file, unsigned hw_type) in brw_hw_type_to_reg_type()
388 if (file == BRW_IMMEDIATE_VALUE) { in brw_hw_type_to_reg_type()
323 brw_reg_type_to_hw_type(const struct intel_device_info *devinfo, enum brw_reg_file file, enum brw_reg_type type) brw_reg_type_to_hw_type() argument
367 brw_hw_type_to_reg_type(const struct intel_device_info *devinfo, enum brw_reg_file file, unsigned hw_type) brw_hw_type_to_reg_type() argument
/third_party/node/deps/npm/node_modules/normalize-package-data/lib/
H A Dfixer.js78 data.files = data.files.filter(function (file) {
79 if (!file || typeof file !== 'string') {
80 this.warn('invalidFilename', file)
/third_party/libinput/tools/
H A Dlibinput-measure-touch-size.py35 print("Error: {}".format(str(e)), file=sys.stderr)
224 print("Unable to find a touch device.", file=sys.stderr)
233 file=sys.stderr,
264 file=sys.stderr,
/third_party/ltp/tools/sparse/sparse-src/
H A Dscheck.c348 char *file; in main() local
358 FOR_EACH_PTR(filelist, file) { in main()
359 check_functions(sparse(file)); in main()
360 } END_FOR_EACH_PTR(file); in main()
/third_party/mesa3d/src/gallium/drivers/iris/
H A Diris_measure.c24 * @file iris_measure.c
90 if (measure_device->config->file && in iris_destroy_screen_measure()
91 measure_device->config->file != stderr) in iris_destroy_screen_measure()
92 fclose(screen->measure.config->file); in iris_destroy_screen_measure()
166 fprintf(config->file, in measure_start_snapshot()
/third_party/mesa3d/src/gallium/tools/trace/
H A Dpytracediff.py58 print(f"ERROR: {msg}", file=sys.stderr)
65 print(msg, file=sys.stderr)
70 print(msg, file=outpipe.stdin)
106 print(f"\nERROR: {msg}", file=sys.stderr)

Completed in 19 milliseconds

1...<<121122123124125126127128129130>>...326