Home
last modified time | relevance | path

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

/hardware/libhardware/tests/input/evdev/
DBitUtils_test.cpp25 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/qcom/sm7250/gps/utils/
Dloc_misc_utils.h250 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/sm8150/gps/utils/
Dloc_misc_utils.h250 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/interfaces/confirmationui/support/src/
DConfirmationUITranslations.c152 #define ARRAY_ELEMENTS(arr) \ argument
153 (sizeof(arr)/sizeof(arr[0]))
/hardware/libhardware/modules/input/evdev/
DBitUtils.cpp38 bool testBitInRange(const uint8_t arr[], size_t start, size_t end) { in testBitInRange() argument
53 uint8_t bits = arr[i]; in testBitInRange()
DBitUtils.h25 bool testBitInRange(const uint8_t arr[], size_t start, size_t end);
DInputHub.cpp53 static constexpr bool testBit(int bit, const uint8_t arr[]) { in testBit() argument
54 return arr[bit / 8] & (1 << (bit % 8)); in testBit()
/hardware/google/graphics/common/libscaler/
Dlibscaler-common.h68 #define ARRSIZE(arr) (sizeof(arr)/sizeof(arr[0])) argument
/hardware/google/graphics/common/libacryl/
Dacrylic_internal.h42 #define ARRSIZE(arr) (sizeof(arr) / sizeof(arr[0])) argument
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dcbor.h165 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/ti/am57x/libhwcomposer/
Dhwc.cpp48 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
/hardware/interfaces/confirmationui/support/test/
Dandroid_cbor_test.cpp77 arr(text("♨⚖ⶖ"), bytes(fourHundredAs))); in writeTest()
/hardware/interfaces/identity/support/tests/
Dcppbor_test.cpp372 Array arr; in TEST() local
373 arr.add(Map() // in TEST()
380 m.add("Outer1", std::move(arr)); // Moving is necessary; Map and Array cannot be copied. in TEST()
934 const Array& arr = *(item->asArray()); in TEST() local
935 ASSERT_EQ(arr[0]->type(), TSTR); in TEST()
936 EXPECT_EQ(arr[0]->asTstr()->value(), "hello"); in TEST()