/hardware/qcom/msm8998/json-c/ |
D | arraylist.c | 28 struct array_list *arr; in array_list_new() local 30 arr = (struct array_list*)calloc(1, sizeof(struct array_list)); in array_list_new() 31 if(!arr) return NULL; in array_list_new() 32 arr->size = ARRAY_LIST_DEFAULT_SIZE; in array_list_new() 33 arr->length = 0; in array_list_new() 34 arr->free_fn = free_fn; in array_list_new() 35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new() 36 free(arr); in array_list_new() 39 return arr; in array_list_new() 43 array_list_free(struct array_list *arr) in array_list_free() argument [all …]
|
D | arraylist.h | 50 array_list_sort(struct array_list *arr, int(*compar)(const void *, const void *));
|
/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/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);
|
D | InputHub.cpp | 53 static constexpr bool testBit(int bit, const uint8_t arr[]) { in testBit() argument 54 return arr[bit / 8] & (1 << (bit % 8)); in testBit()
|
/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/ti/am57x/libhwcomposer/ |
D | hwc.cpp | 48 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) argument
|
/hardware/interfaces/confirmationui/support/test/ |
D | android_cbor_test.cpp | 77 arr(text("♨⚖ⶖ"), bytes(fourHundredAs))); in writeTest()
|
/hardware/qcom/msm8998/gpt-utils/ |
D | gpt-utils.cpp | 1300 static int gpt_set_pentry_arr(uint8_t *hdr, int fd, uint8_t* arr) in gpt_set_pentry_arr() argument 1307 if (!hdr || fd < 0 || !arr) { in gpt_set_pentry_arr() 1328 arr, in gpt_set_pentry_arr()
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3HWI.cpp | 6935 template <typename halType, class mapType> int lookupFwkName(const mapType *arr, in lookupFwkName() argument 6940 if (arr[i].hal_name == hal_name) { in lookupFwkName() 6941 return arr[i].fwk_name; in lookupFwkName() 6967 template <typename fwkType, class mapType> int lookupHalName(const mapType *arr, in lookupHalName() argument 6971 if (arr[i].fwk_name == fwk_name) { in lookupHalName() 6972 return arr[i].hal_name; in lookupHalName() 6993 template <class mapType> cam_cds_mode_type_t lookupProp(const mapType *arr, in lookupProp() argument 6998 if (!strcmp(arr[i].desc, name)) { in lookupProp() 6999 return arr[i].val; in lookupProp()
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCameraParameters.cpp | 1465 template <class mapType> int lookupAttr(const mapType *arr, in lookupAttr() argument 1470 if (!strcmp(arr[i].desc, name)) in lookupAttr() 1471 return arr[i].val; in lookupAttr() 1489 template <class mapType> const char *lookupNameByValue(const mapType *arr, in lookupNameByValue() argument 1493 if (arr[i].val == value) { in lookupNameByValue() 1494 return arr[i].desc; in lookupNameByValue()
|