/third_party/python/Lib/ |
H A D | tarfile.py | 39 from builtins import open as bltn_open 73 "DEFAULT_FORMAT", "open"] 321 self.fd = os.open(name, mode, 0o666) 1767 # TarFile class. The open() method is the only one that is needed for 1777 def open(cls, name=None, mode="r", fileobj=None, bufsize=RECORDSIZE, **kwargs): member in TarFile 1782 'r' or 'r:*' open for reading with transparent compression 1783 'r:' open for reading exclusively uncompressed 1784 'r:gz' open for reading with gzip compression 1785 'r:bz2' open for reading with bzip2 compression 1786 'r:xz' open fo 2819 open = TarFile.open global() variable [all...] |
/third_party/python/Lib/test/test_zoneinfo/ |
H A D | test_zoneinfo.py | 162 with open(file_path, "rb") as f: 179 with open(file_path, "rb") as f: 185 with open(file_path, "rb") as f: 195 with open(self.zoneinfo_data.path_from_key(key), "rb") as f: 1453 with open(self.zoneinfo_data.path_from_key(key), "rb") as f: 1484 with open(self.zoneinfo_data.path_from_key(key), "rb") as f: 1513 with open(self.zoneinfo_data.path_from_key("UTC"), "rb") as f: 1661 with open(zone_file, "rb") as f: 1677 with open(zonefile_path, "wb") as f: 1861 with open(source_jso [all...] |
/drivers/hdf_core/adapter/khdf/linux/platform/pwm/ |
H A D | pwm_adapter.c | 85 .open = HdfPwmOpen,
|
/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_file.c | 57 fd = open(pathName, flags, rights); in OsalFileOpen() 59 HDF_LOGE("%s open file fail %d %u %d", __func__, flags, rights, errno); in OsalFileOpen()
|
/drivers/hdf_core/adapter/khdf/linux/model/camera/src/ |
H A D | camera_buffer_manager_adapter.c | 83 .open = CommonVmOpen,
|
/drivers/hdf_core/adapter/khdf/liteos/platform/src/ |
H A D | gpio_dev.c | 145 .open = GpioOpen,
|
/drivers/hdf_core/framework/support/platform/include/can/ |
H A D | can_core.h | 35 int32_t (*open)(struct CanCntlr *cntlr); member
|
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | pwm_virtual.c | 70 .open = VirtualPwmDeviceGet,
|
/drivers/peripheral/audio/test/sample/tools/gen_cr_by_pr/ |
H A D | gen_cr_by_pr.py | 118 files = open(f'{repo_name}{mix}files.json', 'r', encoding='utf-8')
|
/drivers/peripheral/audio/hal/hdi_binder/server/src/ |
H A D | hdf_audio_input_event.c | 125 g_fdSets[j].fd = open(devices[i], O_RDONLY); in AudioPnpInputOpen() 127 AUDIO_FUNC_LOGW("[open] %{public}s failed!", devices[i]); in AudioPnpInputOpen() 130 AUDIO_FUNC_LOGI("[open] %{public}s success!", devices[i]); in AudioPnpInputOpen()
|
/drivers/peripheral/display/hal/default_standard/src/utils/ |
H A D | display_adapter.cpp | 74 DISPLAY_LOGD("use the adapter open function");
in OpenDevice() 77 return open(pathName.c_str(), flags, mode);
in OpenDevice()
|
/drivers/peripheral/display/hal/default_standard/src/display_gralloc/ |
H A D | drm_allocator.cpp | 32 drmFd_ = open(FILE_PATH, O_RDWR); in Init() 34 DISPLAY_LOGE("can not open drm file : %{public}s errno: %{public}d ", FILE_PATH, errno)); in Init()
|
/foundation/ai/ai_engine/test/performance/delay/sync_process/ |
H A D | sync_process_delay_test.cpp | 83 int fd = open("/dev/random", O_RDONLY); in Random()
|
/foundation/ai/intelligent_voice_framework/tests/unittest/intell_voice_test/src/ |
H A D | engine_event_callback.cpp | 74 infile.open(path, ios::in | ios::binary); in ReadFile() 77 INTELL_VOICE_LOG_INFO("open file failed"); in ReadFile()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | base_extractor.cpp | 43 APP_LOGE("open zip file failed, errno:%{public}d", errno); in Init() 92 fileStream.open(targetPath, std::ios_base::out | std::ios_base::binary); in ExtractFile() 94 APP_LOGE("fail to open %{private}s file to write, errno:%{public}d", targetPath.c_str(), errno); in ExtractFile()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/bundlemgr_extension/src/ |
H A D | bms_extension_profile.cpp | 57 in.open(filePath, std::ios_base::in); in ReadFileIntoJson() 60 APP_LOGE("file open failed due to %{public}s, errno:%{public}d", errBuf, errno); in ReadFileIntoJson()
|
/foundation/arkui/ui_lite/frameworks/dfx/ |
H A D | ui_screenshot.cpp | 54 int32_t fd = open(filePath_, O_RDWR | O_CREAT, DEFAULT_FILE_PERMISSION); 58 GRAPHIC_LOGE("UIScreenshotListener::OnScreenshotEnd open file failed Err!\n");
|
/foundation/graphic/graphic_surface/utils/hebc_white_list/ |
H A D | hebc_white_list.cpp | 105 ifs.open(file, std::ifstream::binary); 112 BLOGE("open file failed");
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/ |
H A D | rs_uni_render_judgement_test.cpp | 115 configFile.open("test_file.txt"); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/test_case/ |
H A D | test_common.cpp | 46 int32_t fileDes = open(path.c_str(), O_CREAT | O_RDWR); in PackingPixmap() 48 Log("failed to open"); in PackingPixmap()
|
/foundation/multimedia/media_foundation/test/scenetest/ |
H A D | test_single_audio_recorder_slow.h | 87 fd = open(filePath.c_str(), O_RDWR | O_CREAT | O_BINARY, 0644); // 0644, permission in FIXTURE()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imagegifencoder_fuzzer/src/ |
H A D | image_gif_encoder_fuzzer.cpp | 81 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in GifEncoderPackingByPathNameFuzz()
|
/foundation/multimedia/av_codec/test/nativedemo/avmuxer/ |
H A D | avmuxer_ffmpeg_demo.cpp | 42 outFd_ = open(outFileName.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in DoRunMuxer() 47 std::cout<<"==== open success! =====\noutputFileName: "<<outFileName<<"\n============"<<std::endl; in DoRunMuxer()
|
/foundation/multimedia/player_framework/frameworks/native/system_sound_manager/system_sound_vibrator/ |
H A D | system_sound_vibrator.cpp | 80 MEDIA_LOGI("hapticUri is not fd. Try to open it"); in StartVibratorForSystemTone() 85 fd = open(realPathStr.c_str(), O_RDONLY); in StartVibratorForSystemTone() 87 MEDIA_LOGE("Failed to open hapticUri!"); in StartVibratorForSystemTone() 94 MEDIA_LOGE("Failed to open fd and get size."); in StartVibratorForSystemTone()
|
/foundation/multimedia/player_framework/test/fuzztest/screen_capture_fuzztest/screencaptureaudiocodecformatfile_fuzzer/ |
H A D | screencaptureaudiocodecformatfile_fuzzer.cpp | 113 int32_t outputFd = open((screenCaptureRoot + "screen_capture_fuzz_audiocodecformat_file_01.mp4").c_str(), in FuzzScreenCaptureAudioCodecFormatFile()
|