Home
last modified time | relevance | path

Searched refs:encode (Results 1 - 20 of 20) sorted by relevance

/foundation/CastEngine/castengine_wifi_display/services/utils/
H A Dbase64.h34 static uint32_t Encode(const char *text, uint32_t text_len, uint8_t *encode) in Encode() argument
39 encode[j++] = alphabetMap[text[i] >> 2]; // 2: map to alphabetMap in Encode()
40 encode[j++] = alphabetMap[((text[i] << 4) & 0x30) | (text[i + 1] >> 4)]; // 4: map to alphabetMap in Encode()
41 encode[j++] = alphabetMap[((text[i + 1] << 2) & 0x3c) | (text[i + 2] >> 6)]; // 2: alphabetMap, 6: offset in Encode()
42 encode[j++] = alphabetMap[text[i + 2] & 0x3f]; // 2: map to alphabetMap in Encode()
48 encode[j++] = alphabetMap[text[i] >> 2]; // 2: map to alphabetMap in Encode()
49 encode[j++] = alphabetMap[(text[i] << 4) & 0x30]; // 4: map to alphabetMap in Encode()
50 encode[j++] = '='; in Encode()
51 encode[j++] = '='; in Encode()
53 encode[ in Encode()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dstream_impl.cpp28 std::tuple<int, std::unique_ptr<char[]>, size_t> DecodeString(const std::string& buffer, const std::string& encode) in DecodeString() argument
39 if (encode == "utf-8") { in DecodeString()
63 int64_t offset, const std::string& encode) in GetWriteArg()
67 auto [decodeState, bufferGuard, bufLen] = DecodeString(buffer, encode); in GetWriteArg()
196 tuple<int, int64_t> StreamImpl::WriteCur(const std::string& buffer, int64_t length, const std::string& encode) in WriteCur() argument
202 GetWriteArg(buffer, length, 0.0, encode); in WriteCur()
217 const std::string& encode) in Write()
223 GetWriteArg(buffer, length, offset, encode); in Write()
62 GetWriteArg(const std::string& buffer, int64_t length, int64_t offset, const std::string& encode) GetWriteArg() argument
216 Write(const std::string& buffer, int64_t length, int64_t offset, const std::string& encode) Write() argument
H A Dstream_ffi.cpp45 RetDataI64 FfiOHOSStreamWriteCur(int64_t id, const char* buffer, int64_t length, const char* encode) in FfiOHOSStreamWriteCur() argument
54 auto [state, writeLen] = instance->WriteCur(buffer, length, encode); in FfiOHOSStreamWriteCur()
64 RetDataI64 FfiOHOSStreamWrite(int64_t id, const char* buffer, int64_t length, int64_t offset, const char* encode) in FfiOHOSStreamWrite() argument
73 auto [state, writeLen] = instance->Write(buffer, length, offset, encode); in FfiOHOSStreamWrite()
H A Dstream_impl.h29 int64_t offset, const std::string& encode);
44 std::tuple<int, int64_t> WriteCur(const std::string& buffer, int64_t length, const std::string& encode);
47 const std::string& encode);
H A Dstream_ffi.h27 FFI_EXPORT RetDataI64 FfiOHOSStreamWriteCur(int64_t id, const char* buffer, int64_t length, const char* encode);
29 const char* buffer, int64_t length, int64_t offset, const char* encode);
H A Dfile_fs_impl.h77 static RetDataI64 Write(int32_t fd, char* buf, size_t length, int64_t offset, std::string encode);
78 static RetDataI64 WriteCur(int32_t fd, char* buf, size_t length, std::string encode);
H A Dfile_fs_ffi.h52 const char* encode);
53 FFI_EXPORT RetDataI64 FfiOHOSFileFsWriteCur(int32_t fd, char* buffer, size_t length, const char* encode);
H A Dfile_fs_ffi.cpp195 RetDataI64 FfiOHOSFileFsWrite(int32_t fd, char* buffer, size_t length, int64_t offset, const char* encode) in FfiOHOSFileFsWrite() argument
198 auto ret = FileFsImpl::Write(fd, buffer, length, offset, encode); in FfiOHOSFileFsWrite()
207 RetDataI64 FfiOHOSFileFsWriteCur(int32_t fd, char* buffer, size_t length, const char* encode) in FfiOHOSFileFsWriteCur() argument
210 auto ret = FileFsImpl::WriteCur(fd, buffer, length, encode); in FfiOHOSFileFsWriteCur()
H A Dfile_fs_impl.cpp848 RetDataI64 FileFsImpl::Write(int32_t fd, char* buf, size_t length, int64_t offset, std::string encode) in Write() argument
865 FileFs::GetWriteArg(buf, length, offset, encode); in Write()
890 RetDataI64 FileFsImpl::WriteCur(int32_t fd, char* buf, size_t length, std::string encode) in WriteCur() argument
904 FileFs::GetWriteArg(buf, length, 0, encode); in WriteCur()
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcameradata/feedingsmoother/derived/
H A Ddcamera_time_statistician.cpp27 int64_t encode = frameInfo.timePonit.finishEncode - frameInfo.timePonit.startEncode; in CalProcessTime() local
34 averEncodeTime_ = CalAverValue(encode, encodeTimeSum_); in CalProcessTime()
44 ", averScale %{public}" PRId64", averRecv2Feed %{public}" PRId64, encode, trans, in CalProcessTime()
/foundation/arkui/ace_engine/adapter/preview/sdk/dump/
H A Dresource_index.py215 os.write(out_file, str.encode("keyconfig:{}\n".format(key_)))
216 os.write(out_file, str.encode("{}\n".format(key_str)))
218 os.write(out_file, str.encode("id:{}, '{}' '{}'\n".format(str(id_), idsets[0], str(idsets[1]))))
/foundation/arkui/napi/native_engine/
H A Dnative_engine.cpp434 const char* encode) in SubEncodeToChinese()
438 const int32_t writableSize = 22; // 22 : encode max bytes of the ucnv_convent function; in SubEncodeToChinese()
450 ucnv_convert(encode, encFrom, outBuf, writableSize, tempBuf.c_str(), pos, &errorCode); in SubEncodeToChinese()
464 ucnv_convert(encode, encFrom, outBuf, writableSize, tempBuf.c_str(), pos, &errorCode); in SubEncodeToChinese()
489 auto encode = encoding.c_str(); in EncodeToChinese() local
490 if (encode == nullptr) { in EncodeToChinese()
495 SubEncodeToChinese(vm, nativeValue, nativeString, buffer, encode); in EncodeToChinese()
430 SubEncodeToChinese(const EcmaVM* vm, Local<JSValueRef>& nativeValue, Local<StringRef>& nativeString, std::string& buffer, const char* encode) SubEncodeToChinese() argument
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/adapter/
H A Dp2p_adapter.cpp261 uint8_t encode[CFG_DATA_MAX_BYTES] = { 0 }; in GetSelfWifiConfigInfo() local
263 ret = SoftBusBase64Encode(encode, sizeof(encode), &encodeSize, wifiConfig, wifiConfigSize); in GetSelfWifiConfigInfo()
264 CONN_CHECK_AND_RETURN_RET_LOGE(ret == WIFI_SUCCESS, ret, CONN_WIFI_DIRECT, "encode failed, error=%{public}d", ret); in GetSelfWifiConfigInfo()
266 config = std::string((const char *)encode, encodeSize); in GetSelfWifiConfigInfo()
/foundation/arkui/ui_lite/tools/server/
H A Dtcp_server.py67 clientdata = json.dumps(info).encode("utf-8")
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/
H A Dfile_n_exporter.cpp1253 string encode = (encoding == nullptr) ? ENCODING_UTF8 : encoding.get(); in WriteText() local
1254 transform(encode.begin(), encode.end(), encode.begin(), ::tolower); in WriteText()
1261 if (encode != ENCODING_UTF8) { in WriteText()
1356 string encode = (encoding == nullptr) ? ENCODING_UTF8 : encoding.get(); in ReadText() local
1357 transform(encode.begin(), encode.end(), encode.begin(), ::tolower); in ReadText()
1364 if (encode ! in ReadText()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/theme/tools/
H A Dbuild_theme_code.py101 file_write.write(content.encode())
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_vertices.cpp123 skiaVertices_->priv().encode(writer); in Serialize()
/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Dwant.cpp1785 std::string encode; in Encode() local
1789 encode += "\\\\"; in Encode()
1791 encode += "\\" + OCT_EQUALSTO; in Encode()
1793 encode += "\\" + OCT_SEMICOLON; in Encode()
1795 encode += str[i]; in Encode()
1799 return encode; in Encode()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_container.cpp183 void DecodeBundleAndModule(const std::string& encode, std::string& bundleName, std::string& moduleName) in DecodeBundleAndModule() argument
186 StringUtils::StringSplitter(encode, ' ', tokens); in DecodeBundleAndModule()
2425 std::string encode = EncodeBundleAndModule(bundle, module); in GetAbilityContextByModule() local
2427 RecordResAdapter(encode); in GetAbilityContextByModule()
2430 [encode, instanceId = instanceId_]() -> void { in GetAbilityContextByModule()
2433 container->RecordResAdapter(encode); in GetAbilityContextByModule()
2497 for (auto &encode : resAdapterRecord_) { in ReleaseResourceAdapter()
2500 DecodeBundleAndModule(encode, bundleName, moduleName); in ReleaseResourceAdapter()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_web.cpp1204 auto encode = args[0]->ToString(); in SetResponseEncoding() local
1205 response_->SetEncoding(encode); in SetResponseEncoding()

Completed in 29 milliseconds