Home
last modified time | relevance | path

Searched refs:rb (Results 1 – 13 of 13) sorted by relevance

/system/bt/osi/src/
Dringbuffer.cc44 void ringbuffer_free(ringbuffer_t* rb) { in ringbuffer_free() argument
45 if (rb != NULL) osi_free(rb->base); in ringbuffer_free()
46 osi_free(rb); in ringbuffer_free()
49 size_t ringbuffer_available(const ringbuffer_t* rb) { in ringbuffer_available() argument
50 CHECK(rb); in ringbuffer_available()
51 return rb->available; in ringbuffer_available()
54 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size() argument
55 CHECK(rb); in ringbuffer_size()
56 return rb->total - rb->available; in ringbuffer_size()
59 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length) { in ringbuffer_insert() argument
[all …]
/system/nfc/utils/
Dringbuffer.cc46 void ringbuffer_free(ringbuffer_t* rb) { in ringbuffer_free() argument
47 if (rb != nullptr) free(rb->base); in ringbuffer_free()
48 free(rb); in ringbuffer_free()
51 size_t ringbuffer_available(const ringbuffer_t* rb) { in ringbuffer_available() argument
52 assert(rb); in ringbuffer_available()
53 return rb->available; in ringbuffer_available()
56 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size() argument
57 assert(rb); in ringbuffer_size()
58 return rb->total - rb->available; in ringbuffer_size()
61 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length) { in ringbuffer_insert() argument
[all …]
/system/bt/osi/test/
Dringbuffer_test.cc7 ringbuffer_t* rb = ringbuffer_init(4096); in TEST() local
8 ASSERT_TRUE(rb != NULL); in TEST()
9 EXPECT_EQ((size_t)4096, ringbuffer_available(rb)); in TEST()
10 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST()
11 ringbuffer_free(rb); in TEST()
15 ringbuffer_t* rb = ringbuffer_init(16); in TEST() local
19 ringbuffer_insert(rb, buffer, 10); in TEST()
20 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST()
21 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST()
24 size_t peeked = ringbuffer_peek(rb, 0, peek, 10); in TEST()
[all …]
/system/nfc/utils/test/
Dringbuffer_test.cc6 ringbuffer_t* rb = ringbuffer_init(4096); in TEST() local
7 ASSERT_TRUE(rb != nullptr); in TEST()
8 EXPECT_EQ((size_t)4096, ringbuffer_available(rb)); in TEST()
9 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST()
10 ringbuffer_free(rb); in TEST()
14 ringbuffer_t* rb = ringbuffer_init(16); in TEST() local
18 ringbuffer_insert(rb, buffer, 10); in TEST()
19 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST()
20 EXPECT_EQ((size_t)6, ringbuffer_available(rb)); in TEST()
23 size_t peeked = ringbuffer_peek(rb, 0, peek, 10); in TEST()
[all …]
/system/bt/osi/include/
Dringbuffer.h37 void ringbuffer_free(ringbuffer_t* rb);
40 size_t ringbuffer_available(const ringbuffer_t* rb);
43 size_t ringbuffer_size(const ringbuffer_t* rb);
48 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length);
54 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p,
58 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length);
62 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
/system/nfc/utils/include/
Dringbuffer.h37 void ringbuffer_free(ringbuffer_t* rb);
40 size_t ringbuffer_available(const ringbuffer_t* rb);
43 size_t ringbuffer_size(const ringbuffer_t* rb);
48 size_t ringbuffer_insert(ringbuffer_t* rb, const uint8_t* p, size_t length);
54 size_t ringbuffer_peek(const ringbuffer_t* rb, off_t offset, uint8_t* p,
58 size_t ringbuffer_pop(ringbuffer_t* rb, uint8_t* p, size_t length);
62 size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
/system/bt/gd/security/
Dpairing_handler_le_secure_connections.cc135 auto [Na, Nb, ra, rb] = stage1result; in DoSecureConnectionsStage2()
174 Octet16 Ea = crypto_toolbox::f6(mac_key, Na, Nb, rb, iocapA.data(), a, b); in DoSecureConnectionsStage2()
243 Octet16 Na, Nb, ra, rb; in SecureConnectionsOutOfBand() local
246 rb = remoteR; in SecureConnectionsOutOfBand()
259 rb = localR; in SecureConnectionsOutOfBand()
272 return Stage1Result{Na, Nb, ra, rb}; in SecureConnectionsOutOfBand()
280 Octet16 Na, Nb, ra{0}, rb{0}; in SecureConnectionsPasskeyEntry() local
394 rb = ra; in SecureConnectionsPasskeyEntry()
396 return Stage1Result{Na, Nb, ra, rb}; in SecureConnectionsPasskeyEntry()
408 const auto [Na, Nb, ra, rb] = std::get<Stage1Result>(result); in SecureConnectionsNumericComparison()
[all …]
Dpairing_handler_le_unittest.cc214 Octet16 ra, rb; in TEST_F() local
215 ra = rb = {0}; in TEST_F()
255 Octet16 Ea = crypto_toolbox::f6(mac_key, Na, Nb, rb, iocapA.data(), a, b); in TEST_F()
/system/tools/aidl/build/
Daidl_interface.go629 rb := android.NewRuleBuilder()
631 rb.Command().Text("mkdir -p " + targetDir)
632 rb.Command().Text("rm -rf " + targetDir + "/*")
634 rb.Command().Text("cp -rf " + dump.dir.String() + "/. " + targetDir).Implicits(dump.files)
637 rb.Command().BuiltTool(ctx, "bpmodify").
643 rb.Command().Text("cp -rf " + dump.dir.String() + "/* " + targetDir).Implicits(dump.files)
645 rb.Command().Text("touch").Output(timestampFile)
647 rb.Build(pctx, ctx, "dump_aidl_api"+m.properties.BaseName+"_"+version,
694 rb := android.NewRuleBuilder()
695rb.Command().Text("sed").Flag(" s/%s/" + m.properties.BaseName + "/g ").Input(messageFile).Text(" …
[all …]
/system/core/adb/
Dtest_adb.py175 version_line, rb"^Android Debug Bridge version \d+\.\d+\.\d+$")
181 revision_line, rb"^Revision [0-9a-f]{12}-android$")
/system/tools/hidl/c2hal/
Dc2hal_l.ll270 FILE *file = fopen(ast->getFilename().c_str(), "rb");
/system/core/libprocinfo/testdata/
Dmaps742 7062bce000-7062dce000 rw-p 00000000 00:05 10270726 [anon:dalvik-rb copying gc…
/system/memory/libmeminfo/testdata1/
Dsmaps30450 7007722bf000-7007724bf000 rw-p 00000000 00:00 0 [anon:dalvik-rb copying gc…
30451 Name: [anon:dalvik-rb copying gc mark stack]
30492 700772cbf000-700772ebf000 rw-p 00000000 00:00 0 [anon:dalvik-rb copying gc…
30493 Name: [anon:dalvik-rb copying gc mark stack]