Home
last modified time | relevance | path

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

123

/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);
/base/update/packaging_tools/
H A Dupdate_package.py129 save_patch = update_bin_obj.name.encode("utf-8")
133 private_key = OPTIONS_MANAGER.private_key.encode("utf-8")
191 binascii.a2b_hex(digest.encode('utf-8')))
192 component_list[idx].file_path = file_path.encode("utf-8")
194 component_list[idx].component_addr = ('/%s' % component[0]).encode("utf-8")
196 component_list[idx].component_addr = ('%s' % component[0]).encode("utf-8")
197 component_list[idx].version = component[4].encode("utf-8")
242 head_list.product_update_id = head_value_list[1].encode("utf-8")
243 head_list.software_version = head_value_list[2].encode("utf-8")
244 head_list.date = head_value_list[3].encode("ut
[all...]
H A Dcreate_hashdata.py135 self.hashdata += struct.pack(HASH_DATA_HEADER_FMT, component_name.encode(),
200 hash_check_file_p.write(("hash info:").encode())
203 str(self.component_num), str(self.block_size))).encode())
207 hash_check_file_p.write(("%s\n" % (self.hashdata_list[offset][0])).encode())
209 str(self.hashdata_list[offset][1]), str(self.hashdata_list[offset][2]))).encode())
215 hashdata_hexstr)).encode())
220 hash_check_file_p.write(("hash sign:").encode())
221 hash_check_file_p.write(signdata_hexstr.encode())
/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_sms_part_test.cpp898 auto encode = std::make_shared<GsmSmsTpduEncode>(nullptr, tpduCodec->paramCodec_, tpduCodec); in HWTEST_F() local
899 EXPECT_FALSE(encode->EncodeSubmitPdu(*encodeBuffer, pSubmit)); in HWTEST_F()
927 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); in HWTEST_F() local
928 EXPECT_NE(encode, nullptr); in HWTEST_F()
933 EXPECT_FALSE(encode->EncodeSubmitPduPartData(*encodeBuffer, pSubmit)); in HWTEST_F()
939 EXPECT_FALSE(encode->EncodeSubmitPdu(*encodeBuffer, pSubmit)); in HWTEST_F()
942 EXPECT_FALSE(encode->EncodeSubmitPdu(*encodeBuffer, pSubmit)); in HWTEST_F()
958 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); in HWTEST_F() local
959 EXPECT_NE(encode, nullptr); in HWTEST_F()
967 encode in HWTEST_F()
990 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); HWTEST_F() local
1054 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); HWTEST_F() local
1096 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); HWTEST_F() local
1159 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); HWTEST_F() local
1223 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); HWTEST_F() local
1275 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); HWTEST_F() local
[all...]
H A Dzero_branch_sms_test.cpp1204 auto encode = std::make_shared<GsmUserDataEncode>(udPdu); in HWTEST_F() local
1206 EXPECT_TRUE(encode->Encode8bitPdu(*encodeBuffer, userData, str)); in HWTEST_F()
1207 EXPECT_TRUE(encode->EncodeUcs2Pdu(*encodeBuffer, userData)); in HWTEST_F()
1210 EXPECT_EQ(encode->Encode8bitPdu(*encodeBuffer, userData, str), 0); in HWTEST_F()
1211 EXPECT_EQ(encode->EncodeUcs2Pdu(*encodeBuffer, userData), 0); in HWTEST_F()
1358 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); in HWTEST_F() local
1364 EXPECT_EQ(encode->EncodeSubmitPdu(*encodeBuffer, nullptr), 0); in HWTEST_F()
1365 EXPECT_EQ(encode->EncodeSubmitPdu(*encodeBuffer, pSubmit), 1); in HWTEST_F()
1366 EXPECT_EQ(encode->EncodeDeliverPdu(*encodeBuffer, nullptr), 0); in HWTEST_F()
1367 EXPECT_EQ(encode in HWTEST_F()
1396 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); HWTEST_F() local
1446 auto encode = std::make_shared<GsmSmsTpduEncode>(tpduCodec->uDataCodec_, tpduCodec->paramCodec_, tpduCodec); HWTEST_F() local
[all...]
/base/update/packaging_tools/test/
H A Dtest_image_class.py68 default_zero_block = ('\0' * 4096).encode()
69 fill_data = ('\0' * 4096).encode()[:4]
75 fill_data = ('\1' * 4096).encode()[:4]
90 default_zero_block = ('\0' * 4096).encode()
91 data = ('\0' * 4096).encode()
100 data = ('\1' * 4096).encode()
/device/soc/rockchip/rk3588/kernel/scripts/
H A Dmkbootimg68 BOOT_MAGIC = 'ANDROID!'.encode()
81 args.output.write(pack('1536s', args.cmdline.encode()))
86 BOOT_MAGIC = 'VNDRBOOT'.encode()
96 args.vendor_boot.write(pack('2048s', args.vendor_cmdline.encode()))
98 args.vendor_boot.write(pack('16s', args.board.encode())) # asciiz product name
109 BOOT_MAGIC = 'ANDROID!'.encode()
131 args.output.write(pack('16s', args.board.encode())) # asciiz product name
132 args.output.write(pack('512s', args.cmdline[:512].encode()))
147 args.output.write(pack('1024s', args.cmdline[512:].encode()))
/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()
/test/xts/acts/graphic/acts_drawing_native/
H A DDrawingNativeTextBlobTest.cpp141 for (OH_Drawing_TextEncoding encode : encodeArray) { in HWTEST_F()
143 if (encode == TEXT_ENCODING_UTF8) { in HWTEST_F()
145 } else if (encode == TEXT_ENCODING_UTF16) { in HWTEST_F()
147 } else if (encode == TEXT_ENCODING_UTF32) { in HWTEST_F()
149 } else if (encode == TEXT_ENCODING_GLYPH_ID) { in HWTEST_F()
152 OH_Drawing_TextBlob *textBlob = OH_Drawing_TextBlobCreateFromText(str, byteLength, font, encode); in HWTEST_F()
397 for (OH_Drawing_TextEncoding encode : encodeArray) { in HWTEST_F()
398 OH_Drawing_TextBlob *textBlob = OH_Drawing_TextBlobCreateFromString(str, font, encode); in HWTEST_F()
/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]))))
/base/security/device_auth/common_lib/interfaces/
H A Dhc_tlv_parser.h40 int32_t (*encode)(struct TlvBaseT *, HcParcel *); member
72 tlv->base.encode = EncodeTlvStruct; \
151 tlv->base.encode = TlvEncodeFunc; \
311 tlv->base.encode = EncodeTlv##TlvVecName; \
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/
H A Dgenerate_dat.py162 string_pool2bts = string_pool.encode(encoding='utf-8', errors='strict')
182 resource_str2bts = resource_str.encode(encoding='utf-8', errors='strict')
/test/testfwk/xdevice/src/xdevice/_core/report/
H A Dencrypt.py68 plain_text = str(content).encode(encoding='utf-8')
104 cipher_text = str(content).encode()
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
H A Ddmlib.py474 remote_path_content = remote.encode(DEFAULT_ENCODING)
569 remote_path_content = remote.encode(DEFAULT_ENCODING)
571 remote_path_content = remote.encode("UTF-8")
644 path = path.encode(DEFAULT_ENCODING)
646 path = path.encode("UTF-8")
655 mode_content = mode_str.encode(DEFAULT_ENCODING)
900 req = req.encode("utf-8")
940 req = req.encode(DEFAULT_ENCODING)
1041 connect_key = connect_key.encode("utf-8")
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/efuse_tool/
H A Defuse_cfg_gen.py35 c = bytes.encode('hex')
/device/soc/rockchip/rk3399/hardware/mpp/include/
H A Drk_mpi.h24 * call hardware encode and decode. Current MPP fully supports
46 * encode : both send video frame to encoder and get encoded video stream from
122 MPP_RET (*encode)(MppCtx ctx, MppFrame frame, MppPacket *packet); member
/device/soc/rockchip/rk3568/hardware/mpp/include/
H A Drk_mpi.h24 * call hardware encode and decode. Current MPP fully supports
46 * encode : both send video frame to encoder and get encoded video stream from
122 MPP_RET (*encode)(MppCtx ctx, MppFrame frame, MppPacket *packet); member
/device/soc/rockchip/rk3588/hardware/mpp/include/
H A Drk_mpi.h25 * call hardware encode and decode. Current MPP fully supports
47 * encode : both send video frame to encoder and get encoded video stream from
123 MPP_RET (*encode)(MppCtx ctx, MppFrame frame, MppPacket *packet); member
/device/soc/rockchip/common/hardware/mpp/include/
H A Drk_mpi.h24 * call hardware encode and decode. Current MPP fully supports
46 * encode : both send video frame to encoder and get encoded video stream from
122 MPP_RET (*encode)(MppCtx ctx, MppFrame frame, MppPacket *packet); member

Completed in 16 milliseconds

123