Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 23 of 23) sorted by relevance

/hardware/ril/include/telephony/
Dril_mnc.h75 static inline int encode(int mnc, int numDigits) { in encode() function
98 static inline int encode(const std::string & mnc) { in encode() function
99 return encode(std::stoi(mnc), mnc.length()); in encode()
126 if (decode(encode(mncs[i].in)).compare(mncs[i].out)) return 1; in test()
/hardware/interfaces/identity/support/include/cppbor/
Dcppbor.h142 virtual uint8_t* encode(uint8_t* pos, const uint8_t* end) const = 0;
147 virtual void encode(EncodeCallback encodeCallback) const = 0;
159 void encode(OutputIterator i) const { in encode() function
160 return encode([&](uint8_t v) { *i++ = v; }); in encode()
166 std::vector<uint8_t> encode() const { in encode() function
169 encode(std::back_inserter(retval)); in encode()
179 encode([&](uint8_t v) { retval.push_back(v); }); in toString()
230 using Item::encode;
231 uint8_t* encode(uint8_t* pos, const uint8_t* end) const override { in encode() function
234 void encode(EncodeCallback encodeCallback) const override { in encode() function
[all …]
DREADME.md62 The set of `encode` methods in `Item` provide the interface for
66 and then call one of the `encode` methods, whichever is convenient for
71 std::vector<uint8_t> encoding = val.encode();
83 std::vector<uint8_t> encoding = val.encode();
107 std::vector<uint8_t> encoding = val.encode();
116 #### `encode` methods
118 There are several variations of `Item::encode`, all of which
123 * `bool encode(uint8\_t** pos, const uint8\_t* end)` encodes into the
126 returns false. This is the most efficient way to encode, into an
128 * `void encode(EncodeCallback encodeCallback)` calls `encodeCallback`
[all …]
/hardware/interfaces/identity/support/tests/
DIdentityCredentialSupportTest.cpp59 EXPECT_EQ("'Some text'", support::cborPrettyPrint(cppbor::Tstr("Some text").encode())); in TEST()
61 EXPECT_EQ("''", support::cborPrettyPrint(cppbor::Tstr("").encode())); in TEST()
65 cppbor::Bstr(vector<uint8_t>({1, 0, 2, 240, 255, 64})).encode())); in TEST()
67 EXPECT_EQ("{}", support::cborPrettyPrint(cppbor::Bstr(vector<uint8_t>()).encode())); in TEST()
69 EXPECT_EQ("true", support::cborPrettyPrint(cppbor::Bool(true).encode())); in TEST()
71 EXPECT_EQ("false", support::cborPrettyPrint(cppbor::Bool(false).encode())); in TEST()
73 EXPECT_EQ("42", support::cborPrettyPrint(cppbor::Uint(42).encode())); in TEST()
76 support::cborPrettyPrint(cppbor::Uint(std::numeric_limits<int64_t>::max()).encode())); in TEST()
78 EXPECT_EQ("-42", support::cborPrettyPrint(cppbor::Nint(-42).encode())); in TEST()
81 support::cborPrettyPrint(cppbor::Nint(std::numeric_limits<int64_t>::min()).encode())); in TEST()
[all …]
Dcppbor_test.cpp399 EXPECT_EQ(buf.data() + buf.size(), map.encode(buf.data(), buf.data() + buf.size())); in TEST()
401 EXPECT_EQ(buf, map.encode()); in TEST()
404 map.encode(std::back_inserter(buf2)); in TEST()
408 map.encode([&](uint8_t c) { EXPECT_EQ(c, *iter++); }); in TEST()
414 EXPECT_EQ(nullptr, val.encode(buf.data(), buf.data() + buf.size())); in TEST()
420 EXPECT_EQ(nullptr, val.encode(buf.data(), buf.data() + buf.size())); in TEST()
423 EXPECT_EQ(nullptr, val.encode(buf.data(), buf.data() + buf.size())); in TEST()
429 EXPECT_EQ(nullptr, val.encode(buf.data(), buf.data() + buf.size())); in TEST()
432 EXPECT_EQ(nullptr, val.encode(buf.data(), buf.data() + buf.size())); in TEST()
439 EXPECT_EQ(nullptr, val.encode(buf.data(), buf.data() + buf.size())); in TEST()
[all …]
/hardware/interfaces/identity/aidl/vts/
DVtsIdentityTestUtils.h63 valueCbor = cppbor::Tstr(((const char*)value.data())).encode(); in TestEntryData()
68 valueCbor = cppbor::Bstr(value).encode(); in TestEntryData()
72 valueCbor = cppbor::Bool(value).encode(); in TestEntryData()
77 valueCbor = cppbor::Uint(value).encode(); in TestEntryData()
79 valueCbor = cppbor::Nint(-value).encode(); in TestEntryData()
DVtsHalIdentityEndToEndTest.cpp317 vector<uint8_t> deviceEngagementBytes = deviceEngagement.encode(); in TEST_P()
318 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in TEST_P()
322 vector<uint8_t> sessionTranscriptEncoded = sessionTranscript.encode(); in TEST_P()
333 .encode(); in TEST_P()
355 .encode(); in TEST_P()
357 cppbor::Semantic(24, encodedReaderAuthentication).encode(); in TEST_P()
448 cppbor::Semantic(24, deviceAuthentication.encode()).encode(); in TEST_P()
457 cppbor::Semantic(24, sessionTranscript.encode()).encode(); in TEST_P()
492 deviceAuthenticationBytes = cppbor::Semantic(24, deviceAuthentication.encode()).encode(); in TEST_P()
518 deviceAuthenticationBytes = cppbor::Semantic(24, deviceAuthentication.encode()).encode(); in TEST_P()
DReaderAuthTests.cpp262 vector<uint8_t> deviceEngagementBytes = deviceEngagement.encode(); in retrieveData()
263 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in retrieveData()
267 vector<uint8_t> sessionTranscriptBytes = sessionTranscript.encode(); in retrieveData()
279 .encode(); in retrieveData()
290 .encode(); in retrieveData()
297 .encode(); in retrieveData()
299 cppbor::Semantic(24, encodedReaderAuthentication).encode(); in retrieveData()
517 vector<uint8_t> deviceEngagementBytes = deviceEngagement.encode(); in TEST_P()
518 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in TEST_P()
522 vector<uint8_t> sessionTranscriptBytes = sessionTranscript.encode(); in TEST_P()
[all …]
DUserAuthTests.cpp158 vector<uint8_t> deviceEngagementBytes = deviceEngagement.encode(); in calcSessionTranscript()
159 vector<uint8_t> eReaderPubBytes = cppbor::Tstr("ignored").encode(); in calcSessionTranscript()
199 sessionTranscriptBytes = sessionTranscript_.encode(); in retrieveData()
208 .encode(); in retrieveData()
213 .encode(); in retrieveData()
/hardware/interfaces/identity/support/src/
Dcppbor.cpp150 uint8_t* Bstr::encode(uint8_t* pos, const uint8_t* end) const { in encode() function in cppbor::Bstr
162 uint8_t* Tstr::encode(uint8_t* pos, const uint8_t* end) const { in encode() function in cppbor::Tstr
183 uint8_t* CompoundItem::encode(uint8_t* pos, const uint8_t* end) const { in encode() function in cppbor::CompoundItem
187 pos = entry->encode(pos, end); in encode()
193 void CompoundItem::encode(EncodeCallback encodeCallback) const { in encode() function in cppbor::CompoundItem
196 entry->encode(encodeCallback); in encode()
DIdentityCredentialSupport.cpp1504 return sigStructure.encode(); in coseBuildToBeSigned()
1510 return emptyBstr.encode(); in coseEncodeHeaders()
1512 return protectedHeaders.encode(); in coseEncodeHeaders()
1633 signatureCoseSign1 = coseSign1.encode(); in coseSignEcDsa()
1827 return macStructure.encode(); in coseBuildToBeMACed()
1861 return array.encode(); in coseMac0()
/hardware/interfaces/identity/aidl/default/
DUtil.cpp56 return map.encode(); in secureAccessControlProfileEncodeCbor()
105 return map.encode(); in entryCreateAdditionalData()
DIdentityCredential.cpp113 vector<uint8_t> proofOfDeletion = array.encode(); in deleteCredential()
324 .encode(); in startRetrieval()
326 cppbor::Semantic(24, encodedReaderAuthentication).encode(); in startRetrieval()
761 vector<uint8_t> encodedDeviceNameSpaces = deviceNameSpacesMap_.encode(); in finishRetrieval()
784 vector<uint8_t> deviceAuthenticationBytes = cppbor::Semantic(24, array.encode()).encode(); in finishRetrieval()
803 vector<uint8_t> sessionTranscriptBytes = cppbor::Semantic(24, sessionTranscript_).encode(); in finishRetrieval()
DWritableIdentityCredential.cpp348 credentialKeys = array.encode(); in generateCredentialKeys()
375 credentialData = array.encode(); in generateCredentialData()
402 vector<uint8_t> encodedCbor = popArray.encode(); in finishAddingEntries()
/hardware/knowles/athletico/sound_trigger_hal/
Dadnc_strm.c67 int encode; member
437 adnc_strm_dev->encode = TNL_Q15; in adnc_strm_open()
454 adnc_strm_dev->encode); in adnc_strm_open()
497 adnc_strm_dev->encode); in adnc_strm_open()
543 adnc_strm_dev->encode); in adnc_strm_close()
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidParser.h137 bool encode(double input, uint32_t *output) const { in encode() function
/hardware/interfaces/graphics/common/1.2/
Dtypes.hal64 * camera framework to encode into a HEIC image.
/hardware/interfaces/neuralnetworks/1.3/
Dtypes.t410 * {@link @1.2::Model::ExtensionTypeEncoding::HIGH_BITS_PREFIX} bits encode
Dtypes.hal5645 * {@link @1.2::Model::ExtensionTypeEncoding::HIGH_BITS_PREFIX} bits encode
/hardware/interfaces/neuralnetworks/1.2/
Dtypes.t386 * {@link Model::ExtensionTypeEncoding::HIGH_BITS_PREFIX} bits encode
Dtypes.hal4988 * {@link Model::ExtensionTypeEncoding::HIGH_BITS_PREFIX} bits encode
/hardware/interfaces/graphics/common/1.0/
Dtypes.hal939 * sRGB space. Values outside the range 0.0 - 1.0 can encode
/hardware/interfaces/radio/1.4/
Dtypes.hal964 * Unable to encode the OTA message for MT PDP or deactivate PDP.