Searched refs:array_t (Results 1 – 5 of 5) sorted by relevance
/system/bt/osi/include/ |
D | array.h | 25 typedef struct array_t array_t; typedef 30 array_t* array_new(size_t element_size); 33 void array_free(array_t* array); 37 void* array_ptr(const array_t* array); 41 void* array_at(const array_t* array, size_t index); 44 size_t array_length(const array_t* array); 52 bool array_append_value(array_t* array, uint32_t value); 58 bool array_append_ptr(array_t* array, void* data);
|
/system/bt/osi/src/ |
D | array.cc | 30 struct array_t { struct 38 static bool grow(array_t* array); argument 42 array_t* array_new(size_t element_size) { in array_new() 45 array_t* array = static_cast<array_t*>( in array_new() 46 osi_calloc(sizeof(array_t) + element_size * INTERNAL_ELEMENTS)); in array_new() 54 void array_free(array_t* array) { in array_free() 62 void* array_ptr(const array_t* array) { return array_at(array, 0); } in array_ptr() 64 void* array_at(const array_t* array, size_t index) { in array_at() 70 size_t array_length(const array_t* array) { in array_length() 75 bool array_append_value(array_t* array, uint32_t value) { in array_append_value() [all …]
|
/system/bt/osi/test/ |
D | array_test.cc | 10 array_t* array = array_new(4); in TEST_F() 18 array_t* array = array_new(4); in TEST_F() 24 array_t* array = array_new(4); in TEST_F() 30 array_t* array = array_new(sizeof(int)); in TEST_F() 42 array_t* array = array_new(sizeof(int)); in TEST_F() 59 array_t* array = array_new(128); in TEST_F()
|
/system/media/audio_utils/tests/ |
D | variadic_tests.cpp | 88 using array_t = std::array<double, 2>; in TEST() typedef 90 EXPECT_TRUE(android::audio_utils::is_variadic<array_t>::value); in TEST() 91 EXPECT_FALSE(android::audio_utils::is_tuple<array_t>::value); in TEST() 92 EXPECT_FALSE(android::audio_utils::is_pair<array_t>::value); in TEST() 93 EXPECT_TRUE(android::audio_utils::is_array<array_t>::value); in TEST() 94 EXPECT_FALSE(std::is_array<array_t>::value); in TEST() 140 using array_t = std::array<double, 2>; in TEST() typedef 141 array_t ax{1, 2}; in TEST() 142 array_t ay{0, 3}; in TEST()
|
D | statistics_tests.cpp | 379 using array_t = std::array<double, 2>; in TEST() typedef 381 std::vector<array_t> arrays(TEST_SIZE); in TEST() 383 Statistics<array_t, array_t, array_t, double, in TEST() 384 double, innerProduct_scalar<array_t>> stat_array; in TEST() 385 Statistics<array_t, array_t, array_t, double, in TEST() 386 array_covariance_ut_t, outerProduct_UT_array<array_t>> stat_array_ut; in TEST() 447 using array_t = std::array<double, 2>; in TEST() typedef 448 array_t data{0.0, 1.5}; in TEST() 452 data = data + array_t{0.1, 0.2}; in TEST() 496 using array_t = std::array<double, 2>; in TEST() typedef [all …]
|