/system/bt/osi/src/ |
D | ringbuffer.cc | 44 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/ |
D | ringbuffer.cc | 46 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/ |
D | ringbuffer_test.cc | 7 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/ |
D | ringbuffer_test.cc | 6 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/ |
D | ringbuffer.h | 37 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/ |
D | ringbuffer.h | 37 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/ |
D | pairing_handler_le_secure_connections.cc | 135 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 …]
|
D | pairing_handler_le_unittest.cc | 214 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/ |
D | aidl_interface.go | 629 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() 695 …rb.Command().Text("sed").Flag(" s/%s/" + m.properties.BaseName + "/g ").Input(messageFile).Text(" … [all …]
|
/system/core/adb/ |
D | test_adb.py | 175 version_line, rb"^Android Debug Bridge version \d+\.\d+\.\d+$") 181 revision_line, rb"^Revision [0-9a-f]{12}-android$")
|
/system/tools/hidl/c2hal/ |
D | c2hal_l.ll | 270 FILE *file = fopen(ast->getFilename().c_str(), "rb");
|
/system/core/libprocinfo/testdata/ |
D | maps | 742 7062bce000-7062dce000 rw-p 00000000 00:05 10270726 [anon:dalvik-rb copying gc…
|
/system/memory/libmeminfo/testdata1/ |
D | smaps | 30450 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]
|