Home
last modified time | relevance | path

Searched refs:encodedSize (Results 1 – 3 of 3) sorted by relevance

/hardware/ril/libril/
Dsap_service.cpp201 size_t encodedSize = 0; in connectReq() local
202 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { in connectReq()
208 uint8_t *buffer = (uint8_t *)calloc(1, encodedSize); in connectReq()
214 pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); in connectReq()
241 size_t encodedSize = 0; in disconnectReq() local
242 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { in disconnectReq()
248 uint8_t *buffer = (uint8_t *)calloc(1, encodedSize); in disconnectReq()
255 pb_ostream_t stream = pb_ostream_from_buffer(buffer, encodedSize); in disconnectReq()
294 size_t encodedSize = 0; in apduReq() local
295 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_APDU_REQ_fields, &req)) { in apduReq()
[all …]
/hardware/interfaces/identity/support/include/cppbor/
Dcppbor.h136 virtual size_t encodedSize() const = 0;
168 retval.reserve(encodedSize()); in encode()
178 retval.reserve(encodedSize()); in toString()
225 size_t encodedSize() const override { return headerSize(mValue); } in encodedSize() function
262 size_t encodedSize() const override { return headerSize(addlInfo()); } in encodedSize() function
317 size_t encodedSize() const override { return headerSize(mValue.size()) + mValue.size(); } in encodedSize() function
367 size_t encodedSize() const override { return headerSize(mValue.size()) + mValue.size(); } in encodedSize() function
397 size_t encodedSize() const override { in encodedSize() function
399 [](size_t sum, auto& entry) { return sum + entry->encodedSize(); }); in encodedSize()
539 size_t encodedSize() const override { in encodedSize() function
[all …]
/hardware/interfaces/identity/support/tests/
Dcppbor_test.cpp64 EXPECT_EQ(testCase.second, val.encodedSize()) << "Wrong size for value " << testCase.first; in TEST()
65 EXPECT_EQ(val.encodedSize(), val.toString().size()) in TEST()
397 buf.resize(map.encodedSize()); in TEST()
413 vector<uint8_t> buf(val.encodedSize() - 1); in TEST()
422 buf.resize(val.encodedSize() - 1); in TEST()
431 buf.resize(val.encodedSize() - 1); in TEST()
438 std::vector<uint8_t> buf(val.encodedSize() - 1); in TEST()
450 std::vector<uint8_t> buf(map.encodedSize() - 1); in TEST()