Home
last modified time | relevance | path

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

123456

/system/chre/apps/chqts/src/shared/
Dnano_endian.cc22 for (size_t front = 0, end = size - 1; front < end; front++, end--) { in swapBytes() local
23 uint8_t tmp = bytes[front]; in swapBytes()
24 bytes[front] = bytes[end]; in swapBytes()
/system/core/property_service/libpropertyinfoserializer/
Dtrie_builder.cpp55 auto child = current_node->FindChild(name_pieces.front()); in AddToTrie()
57 child = current_node->AddChild(name_pieces.front()); in AddToTrie()
69 if (!current_node->AddExactMatchContext(name_pieces.front(), context, type)) { in AddToTrie()
74 if (!current_node->AddPrefixContext(name_pieces.front(), context, type)) { in AddToTrie()
79 auto child = current_node->FindChild(name_pieces.front()); in AddToTrie()
81 child = current_node->AddChild(name_pieces.front()); in AddToTrie()
/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/bt/gd/storage/
Dlegacy_config_file.cc49 if (line.front() == '\0' || line.front() == '#') { in Read()
52 if (line.front() == '[') { in Read()
/system/bt/gd/hal/
Dhci_hal_host_rootcanal_test.cc243 auto packet = incoming_packets_queue_.front(); in TEST_F()
253 auto packet = incoming_packets_queue_.front(); in TEST_F()
263 auto packet = incoming_packets_queue_.front(); in TEST_F()
275 auto packet = incoming_packets_queue_.front(); in TEST_F()
278 packet = incoming_packets_queue_.front(); in TEST_F()
290 auto packet = incoming_packets_queue_.front(); in TEST_F()
293 packet = incoming_packets_queue_.front(); in TEST_F()
307 auto packet = incoming_packets_queue_.front(); in TEST_F()
320 auto packet = incoming_packets_queue_.front(); in TEST_F()
/system/core/libunwindstack/tests/
DElfFake.cpp39 auto entry = functions_.front(); in GetFunctionName()
59 auto entry = steps_.front(); in Step()
/system/netd/server/
DIptablesBaseTest.cpp52 ret = sReturnValues.front(); in fake_android_fork_exec()
69 std::string realCmd = StringPrintf("echo '%s'", sPopenContents.front().c_str()); in fake_popen()
79 *output = sIptablesRestoreOutput.size() ? sIptablesRestoreOutput.front().c_str() : ""; in fakeExecIptablesRestoreWithOutput()
/system/tools/aidl/
Doptions_unittest.cpp134 EXPECT_EQ(string{kCompileCommandInput}, options->InputFiles().front()); in TEST()
150 EXPECT_EQ(string{kCompileCommandInput}, options->InputFiles().front()); in TEST()
164 EXPECT_EQ(string{kCompileCommandInput}, options->InputFiles().front()); in TEST()
176 EXPECT_EQ(kCompileCommandInput, options->InputFiles().front()); in TEST()
196 EXPECT_EQ(kCompileCommandInput, options->InputFiles().front()); in TEST()
208 EXPECT_EQ(kCompileCommandInput, options->InputFiles().front()); in TEST()
Dgenerate_cpp_unittest.cpp1527 options_.InputFiles().front(), options_, io_delegate_, &typenames_, &imported_files); in ParseSingleInterface()
1535 EXPECT_NE(nullptr, defined_types.front().get()->AsInterface()); in ParseSingleInterface()
1537 return defined_types.front().get()->AsInterface(); in ParseSingleInterface()
1545 options_.InputFiles().front(), options_, io_delegate_, &typenames_, &imported_files); in ParseSingleEnumDeclaration()
1553 EXPECT_NE(nullptr, defined_types.front().get()->AsEnumDeclaration()); in ParseSingleEnumDeclaration()
1555 return defined_types.front().get()->AsEnumDeclaration(); in ParseSingleEnumDeclaration()
/system/core/libmodprobe/
Dlibmodprobe_ext_test.cpp41 if (std::find(test_modules.begin(), test_modules.end(), deps.front()) == test_modules.end()) { in Insmod()
82 return std::find(test_modules.begin(), test_modules.end(), deps.front()) != test_modules.end(); in ModuleExists()
/system/media/audio_utils/
Dfifo.cpp69 int32_t audio_utils_fifo_base::diff(uint32_t rear, uint32_t front, size_t *lost, bool flush) const in diff() argument
79 uint32_t diff = rear - front; in diff()
83 uint32_t frontOffset = front & mask; in diff()
92 uint32_t genDiff = (rear & ~mask) - (front & ~mask); in diff()
206 uint32_t front; in obtain() local
208 front = mFifo.mThrottleFront->loadAcquire(); in obtain()
210 int32_t filled = mFifo.diff(mLocalRear, front); in obtain()
247 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
314 uint32_t front = mFifo.mThrottleFront->loadAcquire(); in release() local
316 int32_t filled = mFifo.diff(mLocalRear, front); in release()
/system/chre/util/include/chre/util/
Dfixed_size_vector.h44 ElementType& front();
45 const ElementType& front() const;
Ddynamic_vector.h255 ElementType& front();
263 const ElementType& front() const;
Darray_queue.h67 ElementType& front();
68 const ElementType& front() const;
/system/tools/aidl/tests/
Dend_to_end_tests.cpp86 io_delegate_.SetFileContents(options.InputFiles().front(), kInterfaceDefinition); in TEST_F()
111 io_delegate_.SetFileContents(options.InputFiles().front(), kInterfaceDefinition); in TEST_F()
136 io_delegate_.SetFileContents(options.InputFiles().front(), kInterfaceDefinition); in TEST_F()
162 io_delegate_.SetFileContents(options.InputFiles().front(), kInterfaceDefinitionOutlining); in TEST_F()
190 io_delegate_.SetFileContents(options.InputFiles().front(), kInterfaceDefinitionOutlining); in TEST_F()
/system/update_engine/common/
Daction_processor.cc49 current_action_ = std::move(actions_.front()); in StartProcessing()
141 current_action_ = std::move(actions_.front()); in StartNextActionOrFinish()
/system/bt/test/headless/sdp/
Dsdp.cc144 return sdp_query_uuid(options_.loop_, options_.device_.front(), in Run()
145 options_.uuid_.front()); in Run()
/system/chre/util/tests/
Darray_queue_test.cc156 EXPECT_DEATH(q.front(), ""); in TEST()
167 EXPECT_EQ(1, q.front()); in TEST()
170 EXPECT_EQ(2, q.front()); in TEST()
172 EXPECT_EQ(2, q.front()); in TEST()
211 EXPECT_EQ(2, q.front()); in TEST()
215 EXPECT_EQ(2, q.front()); in TEST()
229 q.front().setValue(0); in TEST()
233 q.front().setValue(1); in TEST()
/system/chre/core/
Devent_ref_queue.cc42 Event *event = mQueue.front(); in pop()
/system/bt/test/headless/pairing/
Dpairing.cc41 RawAddress raw_address = options_.device_.front(); in Run()
/system/bt/common/
Dleaky_bonded_queue.h117 std::unique_ptr<T> item = std::move(queue_.front()); in EnqueueWithPop()
129 std::unique_ptr<T> item = std::move(queue_.front()); in Dequeue()
/system/core/init/
Daction_manager.cpp74 event_queue_.front())) { in ExecuteOneCommand()
86 auto action = current_executing_actions_.front(); in ExecuteOneCommand()
/system/bt/btif/src/
Dbtif_profile_queue.cc118 const ConnectNode& head = connect_queue.front(); in queue_int_advance()
194 ConnectNode& head = connect_queue.front(); in btif_queue_connect_next()
/system/bt/gd/packet/parser/
Dmain.cc447 if (!parse_declarations_one_file(input_files.front(), &declarations)) { in main()
448 std::cerr << "Cannot parse " << input_files.front() << " correctly" << std::endl; in main()
451 …if (!generate_cpp_headers_one_file(declarations, input_files.front(), include_dir, out_dir, root_n… in main()
452 std::cerr << "Didn't generate cpp headers for " << input_files.front() << std::endl; in main()
455 …if (!generate_pybind11_sources_one_file(declarations, input_files.front(), include_dir, out_dir, r… in main()
457 std::cerr << "Didn't generate pybind11 sources for " << input_files.front() << std::endl; in main()
/system/bt/test/headless/
Dget_options.h37 std::string test = non_options_.front(); in GetNextSubTest()

123456