/system/bt/osi/test/ |
D | fixed_queue_test.cc | 40 static void fixed_queue_ready(fixed_queue_t* queue, UNUSED_ATTR void* context) { in fixed_queue_ready() argument 41 void* msg = fixed_queue_try_dequeue(queue); in fixed_queue_ready() 55 fixed_queue_t* queue; in TEST_F() local 58 queue = fixed_queue_new(0); in TEST_F() 59 EXPECT_TRUE(queue != NULL); in TEST_F() 60 fixed_queue_free(queue, NULL); in TEST_F() 63 queue = fixed_queue_new(1); in TEST_F() 64 EXPECT_TRUE(queue != NULL); in TEST_F() 65 fixed_queue_free(queue, NULL); in TEST_F() 68 queue = fixed_queue_new((size_t)-1); in TEST_F() [all …]
|
/system/bt/osi/src/ |
D | fixed_queue.cc | 68 void fixed_queue_free(fixed_queue_t* queue, fixed_queue_free_cb free_cb) { in fixed_queue_free() argument 69 if (!queue) return; in fixed_queue_free() 71 fixed_queue_unregister_dequeue(queue); in fixed_queue_free() 74 for (const list_node_t* node = list_begin(queue->list); in fixed_queue_free() 75 node != list_end(queue->list); node = list_next(node)) in fixed_queue_free() 78 list_free(queue->list); in fixed_queue_free() 79 semaphore_free(queue->enqueue_sem); in fixed_queue_free() 80 semaphore_free(queue->dequeue_sem); in fixed_queue_free() 81 delete queue->mutex; in fixed_queue_free() 82 osi_free(queue); in fixed_queue_free() [all …]
|
D | alarm.cc | 101 fixed_queue_t* queue; // The processing queue to add this alarm to member 140 fixed_queue_t* queue, bool for_msg_loop); 145 static void alarm_queue_ready(fixed_queue_t* queue, void* context); 153 static void alarm_register_processing_queue(fixed_queue_t* queue, 227 fixed_queue_t* queue, bool for_msg_loop) { in alarm_set_internal() argument 236 alarm->queue = queue; in alarm_set_internal() 273 alarm->queue = NULL; in alarm_cancel_internal() 409 while (fixed_queue_try_remove_from_queue(alarm->queue, alarm) != NULL) { in remove_pending_alarm() 547 static void alarm_register_processing_queue(fixed_queue_t* queue, in alarm_register_processing_queue() argument 549 CHECK(queue != NULL); in alarm_register_processing_queue() [all …]
|
/system/bt/common/ |
D | leaky_bonded_queue_unittest.cc | 54 LeakyBondedQueue<MockItem>* queue = new LeakyBondedQueue<MockItem>(3); in TEST() local 55 EXPECT_EQ(queue->Capacity(), static_cast<size_t>(3)); in TEST() 56 EXPECT_EQ(queue->Length(), static_cast<size_t>(0)); in TEST() 57 queue->Enqueue(item1); in TEST() 58 EXPECT_EQ(queue->Length(), static_cast<size_t>(1)); in TEST() 59 queue->Enqueue(item2); in TEST() 60 EXPECT_EQ(queue->Length(), static_cast<size_t>(2)); in TEST() 61 queue->Enqueue(item3); in TEST() 62 EXPECT_EQ(queue->Length(), static_cast<size_t>(3)); in TEST() 64 queue->Enqueue(item4); in TEST() [all …]
|
/system/bt/osi/include/ |
D | fixed_queue.h | 31 typedef void (*fixed_queue_cb)(fixed_queue_t* queue, void* context); 44 void fixed_queue_free(fixed_queue_t* queue, fixed_queue_free_cb free_cb); 49 void fixed_queue_flush(fixed_queue_t* queue, fixed_queue_free_cb free_cb); 53 bool fixed_queue_is_empty(fixed_queue_t* queue); 57 size_t fixed_queue_length(fixed_queue_t* queue); 61 size_t fixed_queue_capacity(fixed_queue_t* queue); 66 void fixed_queue_enqueue(fixed_queue_t* queue, void* data); 71 void* fixed_queue_dequeue(fixed_queue_t* queue); 77 bool fixed_queue_try_enqueue(fixed_queue_t* queue, void* data); 82 void* fixed_queue_try_dequeue(fixed_queue_t* queue); [all …]
|
/system/bt/gd/os/linux_generic/ |
D | queue_unittest.cc | 67 explicit TestEnqueueEnd(Queue<std::string>* queue, Handler* handler) in TestEnqueueEnd() argument 68 : count(0), handler_(handler), queue_(queue), delay_(0) {} in TestEnqueueEnd() 111 std::queue<std::unique_ptr<std::string>> buffer_; 132 explicit TestDequeueEnd(Queue<std::string>* queue, Handler* handler, int capacity) in TestDequeueEnd() argument 133 : count(0), handler_(handler), queue_(queue), capacity_(capacity), delay_(0) {} in TestDequeueEnd() 175 std::queue<std::unique_ptr<std::string>> buffer_; 204 Queue<std::string> queue(kQueueSize); in TEST_F() local 205 TestEnqueueEnd test_enqueue_end(&queue, enqueue_handler_); in TEST_F() 228 Queue<std::string> queue(kQueueSize); in TEST_F() local 229 TestDequeueEnd test_dequeue_end(&queue, dequeue_handler_, kQueueSize); in TEST_F() [all …]
|
/system/bt/gd/os/ |
D | queue_benchmark.cc | 59 …explicit TestEnqueueEnd(int64_t count, Queue<std::string>* queue, Handler* handler, std::promise<v… in TestEnqueueEnd() argument 60 : count_(count), handler_(handler), queue_(queue), promise_(promise) {} in TestEnqueueEnd() 93 std::queue<std::string> buffer_; 109 …explicit TestDequeueEnd(int64_t count, Queue<std::string>* queue, Handler* handler, std::promise<v… in TestDequeueEnd() argument 110 : count_(count), handler_(handler), queue_(queue), promise_(promise) {} in TestDequeueEnd() 127 std::queue<std::string> buffer_; 143 Queue<std::string> queue(num_data_to_send_); in BENCHMARK_DEFINE_F() local 148 TestDequeueEnd test_dequeue_end(num_data_to_send_, &queue, enqueue_handler_, &dequeue_promise); in BENCHMARK_DEFINE_F() 153 TestEnqueueEnd test_enqueue_end(num_data_to_send_, &queue, enqueue_handler_, &enqueue_promise); in BENCHMARK_DEFINE_F() 177 Queue<std::string> queue(num_data_to_send_); in BENCHMARK_DEFINE_F() local [all …]
|
D | queue.h | 86 std::queue<std::unique_ptr<T>> queue_; 108 EnqueueBuffer(IQueueEnqueue<T>* queue) : queue_(queue) {} in EnqueueBuffer() argument 128 std::queue<std::unique_ptr<T>> empty; in Clear() 160 std::queue<std::unique_ptr<T>> buffer_;
|
/system/core/storaged/ |
D | storaged_diskstats.cpp | 47 << " q: " << perf->queue; in log_debug_disk_perf() 182 perf.queue = (stats->io_in_queue + (stats->io_ticks >> 1)) / in get_disk_perf() 230 mMean.queue = (uint32_t)mStats.queue.get_mean(); in update_mean() 240 mStd.queue = (uint32_t)mStats.queue.get_std(); in update_std() 249 mStats.queue.add(perf->queue); in add() 257 mStats.queue.evict(perf->queue); in evict() 262 return ((double)perf->queue >= (double)mMean.queue + mSigma * (double)mStd.queue) && in detect()
|
/system/extras/simpleperf/ |
D | callchain.h | 91 std::queue<std::vector<std::unique_ptr<NodeT>>*> queue; in SortByPeriod() local 92 queue.push(&children); in SortByPeriod() 93 while (!queue.empty()) { in SortByPeriod() 94 std::vector<std::unique_ptr<NodeT>>* v = queue.front(); in SortByPeriod() 95 queue.pop(); in SortByPeriod() 99 queue.push(&node->children); in SortByPeriod()
|
/system/core/adb/ |
D | adb_utils.h | 70 std::vector<T> queue; variable 76 queue.push_back(t); in Push() 87 cv.wait(lock, [this]() { return !queue.empty(); }); in PopAll() 88 popped = std::move(queue); in PopAll() 89 queue.clear(); in PopAll()
|
/system/bt/stack/rfcomm/ |
D | port_utils.cc | 125 p_port->tx.queue = fixed_queue_new(SIZE_MAX); in port_set_defaults() 126 p_port->rx.queue = fixed_queue_new(SIZE_MAX); in port_set_defaults() 209 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_port->rx.queue)) != in port_release_port() 215 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_port->tx.queue)) != in port_release_port() 237 fixed_queue_free(p_port->tx.queue, nullptr); in port_release_port() 238 p_port->tx.queue = nullptr; in port_release_port() 239 fixed_queue_free(p_port->rx.queue, nullptr); in port_release_port() 240 p_port->rx.queue = nullptr; in port_release_port() 391 (fixed_queue_length(p_port->tx.queue) > PORT_TX_BUF_HIGH_WM); in port_flow_control_user() 487 else if (fixed_queue_length(p_port->rx.queue) >= p_port->credit_rx_max) { in port_flow_control_peer() [all …]
|
/system/bt/gd/ |
D | module.cc | 135 std::queue<DumpsysDataFinisher> queue; in DumpState() local 139 queue.push(instance->second->GetDumpsysData(&builder)); in DumpState() 145 while (!queue.empty()) { in DumpState() 146 queue.front()(&data_builder); in DumpState() 147 queue.pop(); in DumpState()
|
/system/bt/gd/storage/ |
D | mutation.h | 37 std::queue<MutationEntry> normal_config_entries_; 38 std::queue<MutationEntry> memory_only_config_entries_;
|
/system/bt/gd/dumpsys/ |
D | filter_test.cc | 67 std::queue<TableAddFunction> queue; in PopulateTestSchema() local 69 queue.push(test_data_class->GetTable(fb_builder)); in PopulateTestSchema() 84 while (!queue.empty()) { in PopulateTestSchema() 85 queue.front()(&builder); in PopulateTestSchema() 86 queue.pop(); in PopulateTestSchema()
|
/system/bt/gd/hci/acl_manager/ |
D | le_acl_connection.cc | 68 impl(LeAclConnectionInterface* le_acl_connection_interface, std::shared_ptr<Queue> queue, in impl() 70 : queue_(std::move(queue)), tracker(le_acl_connection_interface, std::move(disconnect)) {} in impl() 86 LeAclConnection::LeAclConnection(std::shared_ptr<Queue> queue, LeAclConnectionInterface* le_acl_con… in LeAclConnection() argument 89 …: AclConnection(queue->GetUpEnd(), handle), local_address_(local_address), remote_address_(remote_… in LeAclConnection() 91 …pimpl_ = new LeAclConnection::impl(le_acl_connection_interface, std::move(queue), std::move(discon… in LeAclConnection()
|
/system/bt/gd/os/fuzz/ |
D | fuzz_inject_queue.h | 28 FuzzInjectQueue(IQueueEnqueue<T>* queue, Handler* handler) : handler_(handler) { in FuzzInjectQueue() argument 29 buffer_ = new EnqueueBuffer<T>(queue); in FuzzInjectQueue()
|
D | dev_null_queue.h | 29 DevNullQueue(IQueueDequeue<T>* queue, Handler* handler) : queue_(queue), handler_(handler) {} in DevNullQueue() argument
|
/system/core/init/ |
D | action_manager.h | 54 std::queue<std::variant<EventTrigger, PropertyChange, BuiltinAction>> event_queue_ 57 std::queue<const Action*> current_executing_actions_;
|
/system/bt/gd/security/ |
D | pairing_handler_le.h | 230 queue.push(PairingEvent(PairingEvent::EXIT)); in SendExitSignal() 239 queue.push(PairingEvent(std::move(packet))); in OnCommandView() 248 queue.push(PairingEvent(std::move(hci_event))); in OnHciEvent() 257 queue.push(PairingEvent(ui_action, ui_value)); in OnUiAction() 266 if (!queue.empty()) { in WaitForEvent() 267 PairingEvent e = queue.front(); in WaitForEvent() 268 queue.pop(); in WaitForEvent() 467 std::queue<PairingEvent> queue;
|
/system/bt/btif/avrcp/ |
D | avrcp_service.h | 64 bool queue) override; 66 bool queue) override;
|
/system/libfmq/tests/ |
D | msgq_test_client.cpp | 151 MessageQueueUnsync* queue = nullptr; in TEST_F() local 152 getQueue(&queue, &testService, true /* setupQueue */); in TEST_F() 155 ASSERT_NE(queue, nullptr); in TEST_F() 156 ASSERT_TRUE(queue->isValid()); in TEST_F() 158 size_t numMessagesMax = queue->getQuantumCount(); in TEST_F() 171 ASSERT_FALSE(queue->read(&readData[0], numMessagesMax)); in TEST_F() 183 ASSERT_TRUE(queue->read(&readData[0], dataLen)); in TEST_F() 186 delete queue; in TEST_F() 199 MessageQueueUnsync* queue = nullptr; in TEST_F() local 201 getQueue(&queue, &testService, false /* setupQueue */); in TEST_F() [all …]
|
/system/core/storaged/include/ |
D | storaged_diskstats.h | 110 uint32_t queue; // I/Os in queue member 113 write_perf == 0 && write_ios == 0 && queue == 0; in is_zero() 152 std::queue<struct disk_perf> mBuffer; 158 stream_stats queue; // I/Os in queue member
|
/system/bt/common/benchmark/ |
D | thread_performance_benchmark.cc | 39 auto queue = static_cast<fixed_queue_t*>(context); in pthread_callback_batch() local 40 CHECK_NE(queue, nullptr); in pthread_callback_batch() 41 fixed_queue_dequeue(queue); in pthread_callback_batch() 50 void callback_sequential_queue(fixed_queue_t* queue, void* context) { in callback_sequential_queue() argument 51 CHECK_NE(queue, nullptr); in callback_sequential_queue() 52 fixed_queue_dequeue(queue); in callback_sequential_queue() 56 void callback_batch(fixed_queue_t* queue, void* data) { in callback_batch() argument 57 CHECK_NE(queue, nullptr); in callback_batch() 58 fixed_queue_dequeue(queue); in callback_batch()
|
/system/bt/gd/common/ |
D | blocking_queue.h | 66 std::queue<T> empty; in clear() 71 std::queue<T> queue_;
|