Home
last modified time | relevance | path

Searched refs:encoding (Results 1 - 25 of 67) sorted by relevance

123

/base/hiviewdfx/hidumper/test/scripts/testModule/
H A Dutils.py31 with open(filePath, "r", encoding="utf-8") as f:
45 with open(f"{dirname}/log.txt", "r", encoding="utf-8") as f:
63 pid = subprocess.check_output(cmd, shell=True, encoding="utf-8", text=True)
90 output = subprocess.check_output(f"hdc shell \"{command}\"", shell=True, text=True, encoding="utf-8")
95 subprocess.check_output(f"hdc shell \"{command}\" > {filePath}", shell=True, text=True, encoding="utf-8")
99 output = subprocess.check_output(f"hdc shell \"{command} --zip\"", shell=True, text=True, encoding="utf-8")
102 subprocess.check_output(f"hdc file recv {zipSourceFile} {zipTargetFile}", shell=True, text=True, encoding="utf-8")
106 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
110 output = subprocess.check_output("hdc shell param get const.debuggable", shell=True, text=True, encoding="utf-8").strip()
114 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding
[all...]
H A Dtest_performance.py39 output = subprocess.check_output(f"hdc shell ls -lh /system/lib/libhidumper*", shell=True, text=True, encoding="utf-8")
45 subprocess.check_call(f"hdc shell hidumper --mem 1", shell=True, text=True, encoding="utf-8")
46 output = subprocess.check_output(f"hdc shell hidumper --mem `pidof hidumper_service`", shell=True, text=True, encoding="utf-8")
52 output = subprocess.check_output(f"hdc shell \"ls -Z /system/bin | grep hidumper\"", shell=True, text=True, encoding="utf-8")
58 subprocess.check_call(f"hdc shell hidumper --mem 1", shell=True, text=True, encoding="utf-8")
59 output = subprocess.check_output(f"hdc shell \"ps -eZ | grep hidumper\"", shell=True, text=True, encoding="utf-8")
H A Dconftest.py19 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
23 output = subprocess.check_output("hdc shell param get const.debuggable", shell=True, text=True, encoding="utf-8").strip()
27 output = subprocess.check_output("hdc shell param get const.product.software.version", shell=True, text=True, encoding="utf-8").strip()
H A Dtest_ipc.py33 output = subprocess.check_output(f"hdc shell hidumper --ipc {pid} --start-stat", shell=True, text=True, encoding="utf-8")
40 output = subprocess.check_output(f"hdc shell hidumper --ipc {pid} --stop-stat", shell=True, text=True, encoding="utf-8")
H A Dtest_base_command.py147 output = subprocess.check_output(command, shell=True, encoding="utf-8", text=True)
151 output = subprocess.check_output(command, shell=True, encoding="utf-8", text=True)
H A Dtest_permission.py163 output = subprocess.check_output("hdc shell \"hidumper -h |grep mem\"", shell=True, text=True, encoding="utf-8")
169 output = subprocess.check_output("hdc shell \"hidumper -p 1\"", shell=True, text=True, encoding="utf-8")
/base/web/webview/test/fuzztest/ohos_adapter/audio_adapter/audiocreaterender_fuzzer/
H A Daudiocreaterender_fuzzer.cpp36 return encoding;
65 AudioAdapterEncodingType encoding; member in MockAudioRendererOptionsAdapter
83 rendererOptions->encoding = AudioAdapterEncodingType::ENCODING_PCM; in AudioCreateRenderFuzzTest()
/base/web/webview/test/fuzztest/loadwithdataandbaseurl_fuzzer/
H A Dloadwithdataandbaseurl_fuzzer.cpp35 const std::string encoding; in LoadWithDataAndBaseUrlFuzzTest() local
37 g_nweb->LoadWithDataAndBaseUrl(baseUrl, datas, mimeType, encoding, historyUrl); in LoadWithDataAndBaseUrlFuzzTest()
/base/web/webview/test/fuzztest/loadwithdata_fuzzer/
H A Dloadwithdata_fuzzer.cpp34 const std::string encoding; in LoadWithDataFuzzTest() local
35 g_nweb->LoadWithData(datas, mimeType, encoding); in LoadWithDataFuzzTest()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_memory.cpp229 size_t DfxMemory::GetEncodedSize(uint8_t encoding) in GetEncodedSize() argument
231 switch (encoding & 0x0f) { in GetEncodedSize()
253 uintptr_t DfxMemory::ReadEncodedValue(uintptr_t& addr, uint8_t encoding) in ReadEncodedValue() argument
257 if (encoding == DW_EH_PE_omit) { in ReadEncodedValue()
259 } else if (encoding == DW_EH_PE_aligned) { in ReadEncodedValue()
268 switch (encoding & DW_EH_PE_FORMAT_MASK) { in ReadEncodedValue()
327 DFXLOGW("Unexpected encoding format 0x%{public}x", encoding & DW_EH_PE_FORMAT_MASK); in ReadEncodedValue()
331 switch (encoding & DW_EH_PE_APPL_MASK) { in ReadEncodedValue()
348 if (encoding in ReadEncodedValue()
[all...]
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/
H A Dgenerate_dat.py65 with open(os.path.join(path, locales_file_name), 'r', encoding='utf-8') as locale_file:
71 with open(os.path.join(path, resource_item_file_name), 'r', encoding='utf-8') as resource_file:
78 with open(os.path.join(path, resource_name), 'r', encoding='utf-8') as item_file:
162 string_pool2bts = string_pool.encode(encoding='utf-8', errors='strict')
182 resource_str2bts = resource_str.encode(encoding='utf-8', errors='strict')
/base/security/selinux_adapter/scripts/selinux_check/
H A Dcheck_baseline.py41 with open(cil_file, 'r', encoding='utf-8') as cil_read:
86 with open(cil_file, 'r', encoding='utf-8') as cil_read:
98 with open(cil_file, 'r', encoding='utf-8') as cil_read:
109 with open(cil_file, 'r', encoding='utf-8') as cil_read:
118 with open(cil_file, 'r', encoding='utf-8') as cil_read:
144 with open(output_conf, 'w', encoding="utf-8") as fd:
H A Dcheck_perm_group.py40 with open(cil_file, 'r', encoding='utf-8') as cil_read:
84 with open(cil_file, 'r', encoding='utf-8') as cil_read:
96 with open(cil_file, 'r', encoding='utf-8') as cil_read:
107 with open(cil_file, 'r', encoding='utf-8') as cil_read:
116 with open(cil_file, 'r', encoding='utf-8') as cil_read:
H A Dcheck_permissive.py32 with open(cil_file, 'r', encoding='utf-8') as cil_read:
/base/web/webview/ohos_interface/ohos_glue/scripts/
H A Dsystem_util.py37 with open(name, 'r', encoding='utf-8') as f:
46 with open(name, 'w', encoding='utf-8') as f:
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_memory.h85 virtual size_t GetEncodedSize(uint8_t encoding);
86 virtual uintptr_t ReadEncodedValue(uintptr_t& addr, uint8_t encoding);
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_url_resource_response_impl.cpp74 void ArkWebUrlResourceResponseImpl::PutResponseEncoding(const ArkWebString& encoding) in PutResponseEncoding() argument
76 nweb_url_resource_response_->PutResponseEncoding(ArkWebStringStructToClass(encoding)); in PutResponseEncoding()
H A Dark_web_url_resource_response_impl.h85 * @brief get encoding
87 * @return encoding the resource response's encoding
94 * @param encoding encoding { "utf-8" }
96 void PutResponseEncoding(const ArkWebString& encoding) override;
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_url_resource_response.h90 * @brief get encoding
92 * @return encoding the resource response's encoding
100 * @param encoding encoding { "utf-8" }
103 virtual void PutResponseEncoding(const ArkWebString& encoding) = 0;
/base/global/i18n/tools/
H A Ddata_process.py88 with os.fdopen(os.open("data/name2num.txt", os.O_RDWR | os.O_CREAT, 0o640), "w", encoding="utf-8") as f:
94 with os.fdopen(os.open("data/num2name.txt", os.O_RDWR | os.O_CREAT, 0o640), "w", encoding="utf-8") as f:
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_url_resource_response_wrapper.cpp106 void ArkWebUrlResourceResponseWrapper::PutResponseEncoding(const std::string& encoding) in PutResponseEncoding() argument
108 ArkWebString stEncoding = ArkWebStringClassToStruct(encoding); in PutResponseEncoding()
H A Dark_web_url_resource_response_wrapper.h85 * @brief get encoding
87 * @return encoding the resource response's encoding
94 * @param encoding encoding { "utf-8" }
96 void PutResponseEncoding(const std::string& encoding) override;
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_url_resource_response.h60 * @param encoding encoding { "utf-8" }
62 virtual void PutResponseEncoding(const std::string& encoding) = 0;
65 * @brief get encoding
67 * @retval encoding the resource response's encoding
/base/web/webview/test/unittest/audio_adapter_impl_test/
H A Daudio_adapter_impl_test.cpp77 return encoding;
106 AudioAdapterEncodingType encoding; member in OHOS::NWeb::AudioRendererOptionsAdapterMock
161 return encoding;
185 AudioAdapterEncodingType encoding; member in OHOS::NWeb::AudioCapturerOptionsAdapterMock
331 rendererOptions.streamInfo.encoding = AudioEncodingType::ENCODING_PCM; in HWTEST_F()
688 rendererOptions->encoding = AudioAdapterEncodingType::ENCODING_PCM; in HWTEST_F()
747 rendererOptions->encoding = AudioAdapterEncodingType::ENCODING_PCM; in HWTEST_F()
784 rendererOptions->encoding = AudioAdapterEncodingType::ENCODING_PCM; in HWTEST_F()
1066 capturerOptions->encoding = AudioAdapterEncodingType::ENCODING_PCM; in HWTEST_F()
1194 rendererOptions.streamInfo.encoding in HWTEST_F()
[all...]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dweb_scheme_handler_request.cpp257 char *encoding; in GetEncoding() local
258 OH_ArkWebResponse_GetCharset(response_, &encoding); in GetEncoding()
259 return encoding; in GetEncoding()
262 int32_t WebSchemeHandlerResponse::SetEncoding(const char* encoding) in SetEncoding() argument
264 return OH_ArkWebResponse_SetCharset(response_, encoding); in SetEncoding()

Completed in 11 milliseconds

123