/hardware/libhardware/tests/input/evdev/ |
D | BitUtils_test.cpp | 25 uint8_t arr[2] = { 0xff, 0xff }; in TEST() local 26 EXPECT_FALSE(testBitInRange(arr, 0, 0)); in TEST() 27 EXPECT_FALSE(testBitInRange(arr, 1, 0)); in TEST() 31 uint8_t arr[1]; in TEST() local 32 arr[0] = 0; in TEST() 33 EXPECT_FALSE(testBitInRange(arr, 0, 8)); in TEST() 37 uint8_t arr[1]; in TEST() local 39 arr[0] = 1 << i; in TEST() 40 EXPECT_TRUE(testBitInRange(arr, 0, 8)); in TEST() 45 uint8_t arr[1] = { 0x10 }; in TEST() local [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | sparse_array.c | 39 util_sparse_array_init(struct util_sparse_array *arr, in util_sparse_array_init() argument 42 memset(arr, 0, sizeof(*arr)); in util_sparse_array_init() 43 arr->elem_size = elem_size; in util_sparse_array_init() 44 arr->node_size_log2 = util_logbase2_64(node_size); in util_sparse_array_init() 45 assert(node_size >= 2 && node_size == (1ull << arr->node_size_log2)); in util_sparse_array_init() 74 _util_sparse_array_node_finish(struct util_sparse_array *arr, in _util_sparse_array_node_finish() argument 79 size_t node_size = 1ull << arr->node_size_log2; in _util_sparse_array_node_finish() 82 _util_sparse_array_node_finish(arr, children[i]); in _util_sparse_array_node_finish() 90 util_sparse_array_finish(struct util_sparse_array *arr) in util_sparse_array_finish() argument 92 if (arr->root) in util_sparse_array_finish() [all …]
|
D | sparse_array.h | 75 void util_sparse_array_init(struct util_sparse_array *arr, 78 void util_sparse_array_finish(struct util_sparse_array *arr); 80 void *util_sparse_array_get(struct util_sparse_array *arr, uint64_t idx); 82 void util_sparse_array_validate(struct util_sparse_array *arr); 103 struct util_sparse_array *arr; member 120 struct util_sparse_array *arr,
|
/hardware/google/aemu/base/include/aemu/base/ |
D | ArraySize.h | 25 # define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument 36 static constexpr size_t arraySize(const T (&arr)[N]) { in arraySize() 41 static constexpr size_t arraySize(const std::array<T, N>& arr) { in arraySize() argument 54 #define ARRAY_SIZE(arr) (::android::base::arraySize(arr)) argument
|
/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | sparse_array_test.cpp | 36 struct util_sparse_array *arr = (struct util_sparse_array *)_state; in test_thread() local 39 uint32_t *elem = (uint32_t *)util_sparse_array_get(arr, idx); in test_thread() 53 struct util_sparse_array arr; in TEST() local 54 util_sparse_array_init(&arr, sizeof(uint32_t), node_size); in TEST() 58 int ret = thrd_create(&threads[i], test_thread, &arr); in TEST() 67 util_sparse_array_validate(&arr); in TEST() 70 uint32_t *elem = (uint32_t *)util_sparse_array_get(&arr, i); in TEST() 76 util_sparse_array_finish(&arr); in TEST()
|
/hardware/google/aemu/base/ |
D | ArraySize_unittest.cpp | 38 static constexpr int arr[20] = {}; in TEST() local 39 static_assert(ARRAY_SIZE(arr) == 20U, in TEST() 41 static_assert(arraySize(arr) == 20U, in TEST() 44 static constexpr bool arr2[arraySize(arr)] = {}; in TEST() 48 static_assert(arraySize(arr) == ARRAY_SIZE(arr2), in TEST()
|
D | TypeTraits_unittest.cpp | 98 char arr[100]; in TEST() local 99 static_assert(is_range<decltype(arr)>::value, in TEST()
|
/hardware/google/gfxstream/guest/vulkan_enc/ |
D | goldfish_vk_private_defs.h | 27 bool arrayany(const T* arr, uint32_t begin, uint32_t end, const F& func) { in arrayany() argument 28 const T* e = arr + end; in arrayany() 29 return std::find_if(arr + begin, e, func) != e; in arrayany()
|
/hardware/qcom/sm8150/gps/utils/ |
D | loc_misc_utils.h | 250 static string loc_prim_arr_to_string(T* arr, uint32_t size, bool decIfTrue = true) { 253 ss << (decIfTrue ? to_string(arr[i]) : to_string_hex(arr[i]));
|
/hardware/qcom/sm7250/gps/utils/ |
D | loc_misc_utils.h | 250 static string loc_prim_arr_to_string(T* arr, uint32_t size, bool decIfTrue = true) { 253 ss << (decIfTrue ? to_string(arr[i]) : to_string_hex(arr[i]));
|
/hardware/google/gfxstream/host/vulkan/cereal/common/ |
D | goldfish_vk_private_defs.h | 51 bool arrayany(const T* arr, uint32_t begin, uint32_t end, const F& func) { in arrayany() argument 52 const T* e = arr + end; in arrayany() 53 return std::find_if(arr + begin, e, func) != e; in arrayany()
|
/hardware/interfaces/confirmationui/support/src/ |
D | ConfirmationUITranslations.c | 152 #define ARRAY_ELEMENTS(arr) \ argument 153 (sizeof(arr)/sizeof(arr[0]))
|
/hardware/google/gfxstream/host/gl/glestranslator/EGL/ |
D | MacPixelFormatsAttribs.m | 91 static const NSOpenGLPixelFormatAttribute* const arr[] = { 100 *size = sizeof(arr)/sizeof(arr[0]); 101 return arr;
|
/hardware/libhardware/modules/input/evdev/ |
D | BitUtils.cpp | 38 bool testBitInRange(const uint8_t arr[], size_t start, size_t end) { in testBitInRange() argument 53 uint8_t bits = arr[i]; in testBitInRange()
|
D | BitUtils.h | 25 bool testBitInRange(const uint8_t arr[], size_t start, size_t end);
|
/hardware/google/graphics/common/libscaler/ |
D | libscaler-common.h | 68 #define ARRSIZE(arr) (sizeof(arr)/sizeof(arr[0])) argument
|
/hardware/nxp/keymint/KM300/ |
D | CborConverter.h | 129 Array* arr = nullptr; in getItemAtPos() local 134 arr = const_cast<Array*>(item.get()->asArray()); in getItemAtPos() 135 if (arr->size() < (pos + 1)) { in getItemAtPos() 138 return std::move((*arr)[pos]); in getItemAtPos()
|
/hardware/google/graphics/common/libacryl/ |
D | acrylic_internal.h | 42 #define ARRSIZE(arr) (sizeof(arr) / sizeof(arr[0])) argument
|
/hardware/nxp/keymint/KM200/ |
D | CborConverter.h | 126 Array* arr = nullptr; in getItemAtPos() local 131 arr = const_cast<Array*>(item.get()->asArray()); in getItemAtPos() 132 if (arr->size() < (pos + 1)) { in getItemAtPos() 135 subItem = std::move((*arr)[pos]); in getItemAtPos()
|
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/ |
D | cbor.h | 165 Array<Elements...> arr(const Elements&... elements) { 298 WriteState writeArrayHelper(WriteState wState, const Arr<Head, Tail...>& arr) { 299 wState = write(wState, arr.head_); 300 return writeArrayHelper(wState, arr.tail_); 311 WriteState write(WriteState wState, const Array<Elems...>& arr) { 313 wState = writeHeader(wState, Type::ARRAY, arr.size()); 314 return writeArrayHelper(wState, arr);
|
/hardware/google/gfxstream/third-party/glm/include/glm/detail/ |
D | setup.hpp | 815 # define GLM_COUNTOF(arr) glm::countof(arr) argument 817 # define GLM_COUNTOF(arr) _countof(arr) argument 819 # define GLM_COUNTOF(arr) sizeof(arr) / sizeof(arr[0]) argument
|
/hardware/google/gfxstream/host/gl/glestranslator/GLES_CM/ |
D | GLEScmValidate.cpp | 75 bool GLEScmValidate::supportedArrays(GLenum arr) { in supportedArrays() argument 76 switch(arr) { in supportedArrays()
|
D | GLEScmValidate.h | 30 static bool supportedArrays(GLenum arr);
|
/hardware/google/gfxstream/host/gl/glestranslator/GLES_V2/ |
D | GLESv2Context.h | 126 void enableArr(GLenum arr, bool enable) override; 135 void setupArrWithDataSize(GLsizei datasize, const GLvoid* arr,
|
/hardware/interfaces/thermal/utils/ |
D | ThermalHidlWrapper.cpp | 287 char** arr = new char*[args.size()]; in debug() local 289 arr[i] = strdup(args[i].c_str()); in debug() 291 thermal_service_->dump(fd, (const char**)arr, args.size()); in debug()
|