/foundation/CastEngine/castengine_wifi_display/services/utils/ |
H A D | base64.h | 34 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 D | stream_impl.cpp | 28 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 D | stream_ffi.cpp | 45 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 D | stream_impl.h | 29 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 D | stream_ffi.h | 27 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 D | file_fs_impl.h | 77 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 D | file_fs_ffi.h | 52 const char* encode); 53 FFI_EXPORT RetDataI64 FfiOHOSFileFsWriteCur(int32_t fd, char* buffer, size_t length, const char* encode);
|
H A D | file_fs_ffi.cpp | 195 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 D | file_fs_impl.cpp | 848 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 D | dcamera_time_statistician.cpp | 27 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 D | resource_index.py | 215 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 D | native_engine.cpp | 434 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 D | p2p_adapter.cpp | 261 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 D | tcp_server.py | 67 clientdata = json.dumps(info).encode("utf-8")
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/ |
H A D | file_n_exporter.cpp | 1253 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 D | build_theme_code.py | 101 file_write.write(content.encode())
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_vertices.cpp | 123 skiaVertices_->priv().encode(writer); in Serialize()
|
/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | want.cpp | 1785 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 D | ace_container.cpp | 183 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 D | js_web.cpp | 1204 auto encode = args[0]->ToString(); in SetResponseEncoding() local 1205 response_->SetEncoding(encode); in SetResponseEncoding()
|