Home
last modified time | relevance | path

Searched refs:front (Results 1 – 25 of 41) sorted by relevance

12

/system/media/audio_utils/
Dfifo.c66 int32_t front) in audio_utils_fifo_diff() argument
68 int32_t diff = rear - front; in audio_utils_fifo_diff()
71 int32_t genDiff = (rear & mask) - (front & mask); in audio_utils_fifo_diff()
84 int32_t front = android_atomic_acquire_load(&fifo->mFront); in audio_utils_fifo_write() local
86 size_t availToWrite = fifo->mFrameCount - audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_write()
112 int32_t front = fifo->mFront; in audio_utils_fifo_read() local
113 size_t availToRead = audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_read()
117 front &= fifo->mFrameCountP2 - 1; in audio_utils_fifo_read()
118 size_t part1 = fifo->mFrameCount - front; in audio_utils_fifo_read()
123 memcpy(buffer, (char *) fifo->mBuffer + (front * fifo->mFrameSize), in audio_utils_fifo_read()
/system/core/fastboot/
Dsocket_mock.cpp47 if (events_.front().type != EventType::kSend) { in Send()
53 if (events_.front().message != message) { in Send()
54 ADD_FAILURE() << "Send() expected " << events_.front().message << ", but got " << message; in Send()
58 bool return_value = events_.front().status; in Send()
79 const Event& event = events_.front(); in Receive()
115 if (events_.front().type != EventType::kAccept) { in Accept()
120 std::unique_ptr<Socket> sock = std::move(events_.front().sock); in Accept()
/system/connectivity/shill/net/
Devent_history_unittest.cc153 EXPECT_EQ(kTimeEarly, GetEvents()->front().monotonic.tv_sec); in TEST_F()
154 EXPECT_EQ(kTimeEarly, GetEvents()->front().boottime.tv_sec); in TEST_F()
158 EXPECT_EQ(kTimeEarly, GetEvents()->front().monotonic.tv_sec); in TEST_F()
159 EXPECT_EQ(kTimeEarly, GetEvents()->front().boottime.tv_sec); in TEST_F()
169 EXPECT_EQ(kTimeLate, GetEvents()->front().monotonic.tv_sec); in TEST_F()
170 EXPECT_EQ(kTimeLate, GetEvents()->front().boottime.tv_sec); in TEST_F()
182 EXPECT_EQ(kTime1, GetEvents()->front().monotonic.tv_sec); in TEST_F()
183 EXPECT_EQ(kTime1, GetEvents()->front().boottime.tv_sec); in TEST_F()
220 EXPECT_EQ(kTimeEarly, GetEvents()->front().monotonic.tv_sec); in TEST_F()
221 EXPECT_EQ(kTimeEarly, GetEvents()->front().boottime.tv_sec); in TEST_F()
[all …]
Devent_history.cc68 timersub(&now.boottime, &events_.front().boottime, &elapsed); in ExpireEventsBeforeInternal()
71 timersub(&now.monotonic, &events_.front().monotonic, &elapsed); in ExpireEventsBeforeInternal()
77 timersub(&now.boottime, &events_.front().boottime, &elapsed); in ExpireEventsBeforeInternal()
Dbyte_string.cc42 return (GetLength() == 0) ? nullptr : &data_.front(); in GetData()
46 return (GetLength() == 0) ? nullptr : &data_.front(); in GetConstData()
79 return ByteString(&bytes.front(), bytes.size()); in CreateFromHexString()
Dnetlink_manager.cc611 NetlinkPendingMessage to_send = pending_messages_.front(); in OnPendingDumpComplete()
625 return pending_messages_.front().sequence_number; in PendingDumpSequenceNumber()
721 if (pending_messages_.front().retries_left) { in OnNlMessageReceived()
722 pending_messages_.front().last_received_error = error_code; in OnNlMessageReceived()
793 --pending_messages_.front().retries_left; in ResendPendingDumpMessage()
794 if (SendMessageInternal(pending_messages_.front())) { in ResendPendingDumpMessage()
800 if (pending_messages_.front().retries_left) { in ResendPendingDumpMessage()
806 ErrorAckMessage err_message(pending_messages_.front().last_received_error); in ResendPendingDumpMessage()
Devent_history.h77 Timestamp Front() { return events_.front(); } in Front()
Dnetlink_manager_unittest.cc1014 netlink_manager_->pending_messages_.front().retries_left = kNumRetries; in TEST_F()
1017 netlink_manager_->pending_messages_.front().retries_left); in TEST_F()
1028 netlink_manager_->pending_messages_.front().retries_left); in TEST_F()
1039 EXPECT_EQ(0, netlink_manager_->pending_messages_.front().retries_left); in TEST_F()
1055 EXPECT_EQ(1, netlink_manager_->pending_messages_.front().retries_left); in TEST_F()
/system/tpm/attestation/client/
Dmain.cc129 (!args.empty() && args.front() == "help")) { in ScheduleCommand()
132 if (args.empty() || args.front() == kCreateAndCertifyCommand) { in ScheduleCommand()
137 } else if (args.front() == kCreateCommand) { in ScheduleCommand()
152 } else if (args.front() == kInfoCommand) { in ScheduleCommand()
157 } else if (args.front() == kEndorsementCommand) { in ScheduleCommand()
160 } else if (args.front() == kAttestationKeyCommand) { in ScheduleCommand()
163 } else if (args.front() == kActivateCommand) { in ScheduleCommand()
176 } else if (args.front() == kEncryptForActivateCommand) { in ScheduleCommand()
190 } else if (args.front() == kEncryptCommand) { in ScheduleCommand()
206 } else if (args.front() == kDecryptCommand) { in ScheduleCommand()
[all …]
/system/bt/stack/btm/
Dbtm_ble_multi_adv.c389 if (btm_multi_adv_idx_q.front == -1) in btm_ble_multi_adv_gen_rpa_cmpl()
396 index = btm_multi_adv_idx_q.inst_index_queue[btm_multi_adv_idx_q.front]; in btm_ble_multi_adv_gen_rpa_cmpl()
397 if (btm_multi_adv_idx_q.front == btm_multi_adv_idx_q.rear) in btm_ble_multi_adv_gen_rpa_cmpl()
399 btm_multi_adv_idx_q.front = -1; in btm_ble_multi_adv_gen_rpa_cmpl()
404 btm_multi_adv_idx_q.front = (btm_multi_adv_idx_q.front + 1) % BTM_BLE_MULTI_ADV_MAX; in btm_ble_multi_adv_gen_rpa_cmpl()
455 if (btm_multi_adv_idx_q.front == (btm_multi_adv_idx_q.rear + 1) % BTM_BLE_MULTI_ADV_MAX) in btm_ble_multi_adv_configure_rpa()
462 if (btm_multi_adv_idx_q.front == -1) in btm_ble_multi_adv_configure_rpa()
464 btm_multi_adv_idx_q.front = 0; in btm_ble_multi_adv_configure_rpa()
817 btm_multi_adv_idx_q.front = -1; in btm_ble_multi_adv_init()
/system/update_engine/common/
Daction_processor.cc45 current_action_ = actions_.front(); in StartProcessing()
141 current_action_ = actions_.front(); in StartNextActionOrFinish()
Dhttp_fetcher.h77 return proxies_.front(); in GetCurrentProxy()
/system/extras/simpleperf/
Dcallchain.cpp44 if (MatchSampleByName(node->chain.front(), sample)) { in FindMatchingNode()
121 std::vector<std::unique_ptr<CallChainNode>>* v = queue.front(); in SortByPeriod()
/system/connectivity/dhcp_client/
Ddhcp_options_writer.cc96 buffer->Append(ByteString(reinterpret_cast<const char*>(&value.front()), in WriteUInt8ListOption()
194 buffer->Append(ByteString(reinterpret_cast<const char*>(&value.front()), in WriteStringOption()
/system/connectivity/shill/
Drouting_table.cc356 << ", next query seq: " << route_queries_.front().sequence; in RouteMsgHandler()
362 while (route_queries_.front().sequence - message.seq() > kuint32max / 2) { in RouteMsgHandler()
364 << route_queries_.front().sequence in RouteMsgHandler()
371 const Query& query = route_queries_.front(); in RouteMsgHandler()
/system/extras/verity/fec/
Dmain.cpp217 const std::string& inp_filename = inp_filenames.front(); in decode()
394 return get_start(mode, inp_filenames.front()); in main()
/system/media/camera/docs/
Dcamera_device_info.mako101 // Per camera (front/back) informations
Dcamera_device_info.proto157 // Per camera (front/back) informations
/system/core/init/
Daction.cpp354 if (trigger_queue_.front()->CheckTriggers(*action)) { in ExecuteOneCommand()
365 auto action = current_executing_actions_.front(); in ExecuteOneCommand()
/system/update_engine/
Dupdate_engine_client_android.cc145 LOG(ERROR) << "Found a positional argument '" << positional_args.front() in OnInit()
/system/core/adb/
Dfdevent_test.cpp56 char c = handler->queue_.front(); in FdEventCallback()
Dfdevent.cpp378 fdevent* fde = g_pending_list.front(); in fdevent_loop()
/system/extras/perfprofd/quipper/
Daddress_mapper.cc67 const MappedRange& range = mappings_to_delete.front(); in MapWithID()
/system/connectivity/shill/wifi/
Dscan_session.cc147 fraction_wanted = fractions_.front(); in InitiateScan()
/system/connectivity/shill/dbus/
Dchromeos_power_manager_proxy.cc52 return protobuf_out->ParseFromArray(&serialized_protobuf.front(), in DeserializeProtocolBuffer()

12