Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 166) sorted by relevance

1234567

/hardware/libhardware/tests/input/evdev/
DInputMocks.cpp30 auto node = new MockInputDeviceNode(); in getElanTouchscreen() local
31 node->setPath("/dev/input/event0"); in getElanTouchscreen()
32 node->setName("elan-touchscreen"); in getElanTouchscreen()
35 node->setBusType(0); in getElanTouchscreen()
36 node->setVendorId(0); in getElanTouchscreen()
37 node->setProductId(0); in getElanTouchscreen()
38 node->setVersion(0); in getElanTouchscreen()
42 node->addAbsAxis(ABS_MT_SLOT, nullptr); in getElanTouchscreen()
43 node->addAbsAxis(ABS_MT_TOUCH_MAJOR, nullptr); in getElanTouchscreen()
44 node->addAbsAxis(ABS_MT_POSITION_X, nullptr); in getElanTouchscreen()
[all …]
DInputDevice_test.cpp68 auto node = std::make_shared<MockInputDeviceNode>(); in TEST_F() local
69 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F()
84 auto node = std::make_shared<MockInputDeviceNode>(); in TEST_F() local
85 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F()
101 auto node = std::shared_ptr<MockInputDeviceNode>(MockNexus7v2::getElanTouchscreen()); in TEST_F() local
102 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F()
108 auto node = std::shared_ptr<MockInputDeviceNode>(MockNexus7v2::getButtonJack()); in TEST_F() local
109 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F()
122 auto node = std::shared_ptr<MockInputDeviceNode>(MockNexus7v2::getHeadsetJack()); in TEST_F() local
123 auto device = std::make_unique<EvdevDevice>(&mHost, node); in TEST_F()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Ddag_test.cpp50 struct node: public dag_node { struct
54 struct node &operator>>(struct node &child) { in operator >>() argument
60 void add_edge(struct node &child, uintptr_t data) { in add_edge() argument
65 void add_edge_max_data(struct node &child, uintptr_t data) { in add_edge_max_data() argument
73 struct node *node = static_cast<struct node *>(dag_node); in output_cb() local
75 util_dynarray_append(output, int, node->val); in output_cb()
79 init_nodes(struct dag *dag, struct node *nodes, unsigned num_nodes) in init_nodes()
89 struct node node[(num_nodes)]; \
90 init_nodes(dag, node, (num_nodes))
153 node[0] >> node[1]; in TEST_F()
[all …]
Drb_tree_test.cpp53 struct rb_node node; member
59 struct rb_test_node *tn = rb_node_data(struct rb_test_node, n, node); in rb_test_node_cmp_void()
66 struct rb_test_node *ta = rb_node_data(struct rb_test_node, a, node); in rb_test_node_cmp()
67 struct rb_test_node *tb = rb_node_data(struct rb_test_node, b, node); in rb_test_node_cmp()
78 rb_tree_foreach(struct rb_test_node, n, tree, node) { in validate_tree_order()
99 rb_tree_foreach_safe(struct rb_test_node, n, tree, node) { in validate_tree_order()
120 rb_tree_foreach_rev(struct rb_test_node, n, tree, node) { in validate_tree_order()
141 rb_tree_foreach_rev_safe(struct rb_test_node, n, tree, node) { in validate_tree_order()
170 tn = rb_node_data(struct rb_test_node, n, node); in validate_search()
175 tn = rb_node_data(struct rb_test_node, n, node); in validate_search()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraQueue.cpp147 camera_q_node *node = in enqueue() local
149 if (NULL == node) { in enqueue()
154 memset(node, 0, sizeof(camera_q_node)); in enqueue()
155 node->data = data; in enqueue()
159 cam_list_add_tail_node(&node->list, &m_head.list); in enqueue()
163 free(node); in enqueue()
184 camera_q_node *node = in enqueueWithPriority() local
186 if (NULL == node) { in enqueueWithPriority()
191 memset(node, 0, sizeof(camera_q_node)); in enqueueWithPriority()
192 node->data = data; in enqueueWithPriority()
[all …]
DQCameraCmdThread.cpp141 camera_cmd_t *node = (camera_cmd_t *)malloc(sizeof(camera_cmd_t)); in sendCmd() local
142 if (NULL == node) { in sendCmd()
146 memset(node, 0, sizeof(camera_cmd_t)); in sendCmd()
147 node->cmd = cmd; in sendCmd()
150 if (!cmd_queue.enqueueWithPriority((void *)node)) { in sendCmd()
151 free(node); in sendCmd()
152 node = NULL; in sendCmd()
155 if (!cmd_queue.enqueue((void *)node)) { in sendCmd()
156 free(node); in sendCmd()
157 node = NULL; in sendCmd()
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/
Ddag.c108 dag_prune_head(struct dag *dag, struct dag_node *node) in dag_prune_head() argument
110 assert(!node->parent_count); in dag_prune_head()
112 list_delinit(&node->link); in dag_prune_head()
114 util_dynarray_foreach(&node->edges, struct dag_edge, edge) { in dag_prune_head()
124 dag_init_node(struct dag *dag, struct dag_node *node) in dag_init_node() argument
126 util_dynarray_init(&node->edges, dag); in dag_init_node()
127 list_addtail(&node->link, &dag->heads); in dag_init_node()
132 void (*cb)(struct dag_node *node, void *data);
137 dag_traverse_bottom_up_node(struct dag_node *node, in dag_traverse_bottom_up_node() argument
140 if (_mesa_set_search(state->seen, node)) in dag_traverse_bottom_up_node()
[all …]
Drb_tree.c80 rb_node_minimum(struct rb_node *node) in rb_node_minimum() argument
82 while (node->left) in rb_node_minimum()
83 node = node->left; in rb_node_minimum()
84 return node; in rb_node_minimum()
88 rb_node_maximum(struct rb_node *node) in rb_node_maximum() argument
90 while (node->right) in rb_node_maximum()
91 node = node->right; in rb_node_maximum()
92 return node; in rb_node_maximum()
150 struct rb_node *node, bool insert_left) in rb_tree_insert_at() argument
153 memset(node, 0, sizeof(*node)); in rb_tree_insert_at()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c47 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq() local
49 if (NULL == node) { in mm_jpeg_queue_enq()
54 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq()
55 node->data = data; in mm_jpeg_queue_enq()
58 cam_list_add_tail_node(&node->list, &queue->head.list); in mm_jpeg_queue_enq()
70 mm_jpeg_q_node_t* node = in mm_jpeg_queue_enq_head() local
72 if (NULL == node) { in mm_jpeg_queue_enq_head()
77 memset(node, 0, sizeof(mm_jpeg_q_node_t)); in mm_jpeg_queue_enq_head()
78 node->data = data; in mm_jpeg_queue_enq_head()
84 cam_list_insert_before_node(&node->list, pos); in mm_jpeg_queue_enq_head()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dcam_queue.h57 cam_node_t *node = in cam_queue_enq() local
59 if (NULL == node) { in cam_queue_enq()
63 memset(node, 0, sizeof(cam_node_t)); in cam_queue_enq()
64 node->data = data; in cam_queue_enq()
67 cam_list_add_tail_node(&node->list, &queue->head.list); in cam_queue_enq()
76 cam_node_t *node = NULL; in cam_queue_deq() local
85 node = member_of(pos, cam_node_t, list); in cam_queue_deq()
86 cam_list_del_node(&node->list); in cam_queue_deq()
91 if (NULL != node) { in cam_queue_deq()
92 data = node->data; in cam_queue_deq()
[all …]
/hardware/libhardware/modules/input/evdev/
DInputDeviceManager.cpp28 void InputDeviceManager::onInputEvent(const std::shared_ptr<InputDeviceNode>& node, InputEvent& eve… in onInputEvent() argument
30 if (mDevices[node] == nullptr) { in onInputEvent()
31 ALOGE("got input event for unknown node %s", node->getPath().c_str()); in onInputEvent()
34 mDevices[node]->processInput(event, event_time); in onInputEvent()
37 void InputDeviceManager::onDeviceAdded(const std::shared_ptr<InputDeviceNode>& node) { in onDeviceAdded() argument
38 mDevices[node] = std::make_shared<EvdevDevice>(mHost, node); in onDeviceAdded()
41 void InputDeviceManager::onDeviceRemoved(const std::shared_ptr<InputDeviceNode>& node) { in onDeviceRemoved() argument
42 if (mDevices[node] == nullptr) { in onDeviceRemoved()
43 ALOGE("could not remove unknown node %s", node->getPath().c_str()); in onDeviceRemoved()
49 mDevices.erase(node); in onDeviceRemoved()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_queue.c85 camera_q_node *node = in mm_qcamera_queue_enqueue() local
87 if (NULL == node) { in mm_qcamera_queue_enqueue()
92 memset(node, 0, sizeof(camera_q_node)); in mm_qcamera_queue_enqueue()
93 node->data = data; in mm_qcamera_queue_enqueue()
96 cam_list_add_tail_node(&node->list, &queue->m_head.list); in mm_qcamera_queue_enqueue()
109 camera_q_node* node = NULL; in mm_qcamera_queue_dequeue() local
122 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_dequeue()
123 cam_list_del_node(&node->list); in mm_qcamera_queue_dequeue()
128 if (NULL != node) { in mm_qcamera_queue_dequeue()
129 data = node->data; in mm_qcamera_queue_dequeue()
[all …]
/hardware/interfaces/audio/common/all-versions/default/
DUuidUtils.cpp34 memcpy(uuid->node.data(), halUuid.node, uuid->node.size()); in uuidFromHal()
42 memcpy(halUuid->node, uuid.node.data(), uuid.node.size()); in uuidToHal()
48 halUuid.timeMid, halUuid.timeHiAndVersion, halUuid.clockSeq, halUuid.node[0], in uuidToString()
49 halUuid.node[1], halUuid.node[2], halUuid.node[3], halUuid.node[4], halUuid.node[5]); in uuidToString()
/hardware/qcom/sm8150/gps/utils/
DLocHeap.cpp48 void swap(LocHeapNode& node);
53 void push(LocHeapNode& node);
64 inline bool outRanks(LocHeapNode& node) { return mData->outRanks(*node.mData); } in outRanks() argument
90 void LocHeapNode::swap(LocHeapNode& node) { in swap() argument
91 LocRankable* tmpData = node.mData; in swap()
92 node.mData = mData; in swap()
109 void LocHeapNode::push(LocHeapNode& node) { in push() argument
111 if (node.outRanks(*this)) { in push()
112 swap(node); in push()
117 mLeft = &node; in push()
[all …]
/hardware/qcom/sm7250/gps/utils/
DLocHeap.cpp48 void swap(LocHeapNode& node);
53 void push(LocHeapNode& node);
64 inline bool outRanks(LocHeapNode& node) { return mData->outRanks(*node.mData); } in outRanks() argument
90 void LocHeapNode::swap(LocHeapNode& node) { in swap() argument
91 LocRankable* tmpData = node.mData; in swap()
92 node.mData = mData; in swap()
109 void LocHeapNode::push(LocHeapNode& node) { in push() argument
111 if (node.outRanks(*this)) { in push()
112 swap(node); in push()
117 mLeft = &node; in push()
[all …]
/hardware/qcom/gps/msm8996/utils/
DLocHeap.cpp46 void swap(LocHeapNode& node);
51 void push(LocHeapNode& node);
62 inline bool outRanks(LocHeapNode& node) { return mData->outRanks(*node.mData); } in outRanks() argument
88 void LocHeapNode::swap(LocHeapNode& node) { in swap() argument
89 LocRankable* tmpData = node.mData; in swap()
90 node.mData = mData; in swap()
107 void LocHeapNode::push(LocHeapNode& node) { in push() argument
109 if (node.outRanks(*this)) { in push()
110 swap(node); in push()
115 mLeft = &node; in push()
[all …]
/hardware/qcom/gps/msm8909w_3100/utils/
DLocHeap.cpp46 void swap(LocHeapNode& node);
51 void push(LocHeapNode& node);
62 inline bool outRanks(LocHeapNode& node) { return mData->outRanks(*node.mData); } in outRanks() argument
88 void LocHeapNode::swap(LocHeapNode& node) { in swap() argument
89 LocRankable* tmpData = node.mData; in swap()
90 node.mData = mData; in swap()
107 void LocHeapNode::push(LocHeapNode& node) { in push() argument
109 if (node.outRanks(*this)) { in push()
110 swap(node); in push()
115 mLeft = &node; in push()
[all …]
/hardware/qcom/gps/msm8998/utils/
DLocHeap.cpp46 void swap(LocHeapNode& node);
51 void push(LocHeapNode& node);
62 inline bool outRanks(LocHeapNode& node) { return mData->outRanks(*node.mData); } in outRanks() argument
88 void LocHeapNode::swap(LocHeapNode& node) { in swap() argument
89 LocRankable* tmpData = node.mData; in swap()
90 node.mData = mData; in swap()
107 void LocHeapNode::push(LocHeapNode& node) { in push() argument
109 if (node.outRanks(*this)) { in push()
110 swap(node); in push()
115 mLeft = &node; in push()
[all …]
/hardware/qcom/gps/msm8909/utils/
DLocHeap.cpp46 void swap(LocHeapNode& node);
51 void push(LocHeapNode& node);
62 inline bool outRanks(LocHeapNode& node) { return mData->outRanks(*node.mData); } in outRanks() argument
88 void LocHeapNode::swap(LocHeapNode& node) { in swap() argument
89 LocRankable* tmpData = node.mData; in swap()
90 node.mData = mData; in swap()
107 void LocHeapNode::push(LocHeapNode& node) { in push() argument
109 if (node.outRanks(*this)) { in push()
110 swap(node); in push()
115 mLeft = &node; in push()
[all …]
/hardware/qcom/sm8150p/gps/utils/
DLocHeap.cpp46 void swap(LocHeapNode& node);
51 void push(LocHeapNode& node);
62 inline bool outRanks(LocHeapNode& node) { return mData->outRanks(*node.mData); } in outRanks() argument
88 void LocHeapNode::swap(LocHeapNode& node) { in swap() argument
89 LocRankable* tmpData = node.mData; in swap()
90 node.mData = mData; in swap()
107 void LocHeapNode::push(LocHeapNode& node) { in push() argument
109 if (node.outRanks(*this)) { in push()
110 swap(node); in push()
115 mLeft = &node; in push()
[all …]
/hardware/qcom/sm7150/gps/utils/
DLocHeap.cpp46 void swap(LocHeapNode& node);
51 void push(LocHeapNode& node);
62 inline bool outRanks(LocHeapNode& node) { return mData->outRanks(*node.mData); } in outRanks() argument
88 void LocHeapNode::swap(LocHeapNode& node) { in swap() argument
89 LocRankable* tmpData = node.mData; in swap()
90 node.mData = mData; in swap()
107 void LocHeapNode::push(LocHeapNode& node) { in push() argument
109 if (node.outRanks(*this)) { in push()
110 swap(node); in push()
115 mLeft = &node; in push()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/inc/
DMap.h37 struct node struct
41 node* prev; argument
42 node* next; argument
43 node(T t, T2 t2,node* p, node* n) : in node() function
46 node* head;
47 node* tail;
48 node* tmp;
68 node* temp(head); in ~Map()
144 tail = new node(data, data2,tail, NULL); in insert()
162 node* prevnode = tmp; in erase()
[all …]
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/inc/
DMap.h36 struct node { struct
39 node* prev; argument
40 node* next; argument
41 node(T t, T2 t2,node* p, node* n) : in node() argument
44 node* head;
45 node* tail;
46 node* tmp;
68 node* temp(head); in ~Map()
148 tail = new node(data, data2,tail, NULL); in insert()
167 node* prevnode = tmp; in erase()
[all …]
/hardware/qcom/sm8150/media/libarbitrarybytes/inc/
DMap.h36 struct node { struct
39 node* prev; argument
40 node* next; argument
41 node(T t, T2 t2,node* p, node* n) : in node() argument
44 node* head;
45 node* tail;
46 node* tmp;
68 node* temp(head); in ~Map()
148 tail = new node(data, data2,tail, NULL); in insert()
167 node* prevnode = tmp; in erase()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/inc/
DMap.h37 struct node { struct
40 node* prev; argument
41 node* next; argument
42 node(T t, T2 t2,node* p, node* n) : in node() argument
45 node* head;
46 node* tail;
47 node* tmp;
69 node* temp(head); in ~Map()
149 tail = new node(data, data2,tail, NULL); in insert()
168 node* prevnode = tmp; in erase()
[all …]

1234567