Home
last modified time | relevance | path

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

12345

/system/chre/apps/test/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/core/fastboot/fuzzer/
Dsocket_mock_fuzz.cpp29 if (events_.front().type != EventType::kSend) { in Send()
34 if (events_.front().message != message) { in Send()
38 bool return_value = events_.front().status; in Send()
58 const Event& event = events_.front(); in Receive()
91 if (events_.front().type != EventType::kAccept) { in Accept()
95 std::unique_ptr<Socket> sock = std::move(events_.front().sock); in Accept()
/system/chre/util/tests/
Ddebug_dump_test.cc39 EXPECT_TRUE(strcmp(buffers.front().get(), str) == 0); in TEST()
53 EXPECT_TRUE(strcmp(buffers.front().get(), bothStr) == 0); in TEST()
81 EXPECT_TRUE(strcmp(buffers.front().get(), str1) == 0); in TEST()
92 EXPECT_TRUE(strcmp(buffers.front().get(), str1) == 0); in TEST()
125 EXPECT_TRUE(strcmp(buffers.front().get(), str1) == 0); in TEST()
133 EXPECT_TRUE(strcmp(buffers.front().get(), str3) == 0); in TEST()
154 EXPECT_TRUE(strcmp(buffers.front().get(), bothStr) == 0); in TEST()
Dcopyable_fixed_size_vector_test.cc99 EXPECT_EQ(container.front().id, 1); in TEST()
101 EXPECT_EQ(container.front().id, 2); in TEST()
102 EXPECT_EQ(container.front().vec.size(), 2); in TEST()
103 EXPECT_EQ(container.front().vec[0], 1.23f); in TEST()
Dintrusive_list_test.cc44 EXPECT_EQ(testLinkedList.front().item, nodeA.item); in TEST()
49 EXPECT_EQ(testLinkedList.front().item, nodeB.item); in TEST()
62 EXPECT_EQ(testLinkedList.front().item, nodeD.item); in TEST()
67 ASSERT_DEATH(testList.front(), ""); in TEST()
Datomic_spsc_queue_test.cc74 EXPECT_EQ(q.consumer().front(), 1); in TEST()
78 EXPECT_EQ(q.consumer().front(), 2); in TEST()
80 EXPECT_EQ(q.consumer().front(), 3); in TEST()
99 EXPECT_EQ(1, q.consumer().front()); in TEST()
102 EXPECT_EQ(2, q.consumer().front()); in TEST()
104 EXPECT_EQ(2, q.consumer().front()); in TEST()
117 q.consumer().front().setValue(0); in TEST()
121 q.consumer().front().setValue(1); in TEST()
192 EXPECT_EQ(0xd00d, q.consumer().front()); in TEST()
243 EXPECT_EQ(c.front(), i - kSize); in TEST()
[all …]
Darray_queue_test.cc173 EXPECT_DEATH(q.front(), ""); in TEST()
184 EXPECT_EQ(1, q.front()); in TEST()
187 EXPECT_EQ(2, q.front()); in TEST()
189 EXPECT_EQ(2, q.front()); in TEST()
228 EXPECT_EQ(2, q.front()); in TEST()
232 EXPECT_EQ(2, q.front()); in TEST()
246 q.front().setValue(0); in TEST()
250 q.front().setValue(1); in TEST()
Dsegmented_queue_test.cc218 ASSERT_EQ(segmentedQueue.front().getValue(), in TEST()
285 EXPECT_EQ(segmentedQueue.front(), 2); in TEST()
319 EXPECT_EQ(segmentedQueue.front().getValue(), 0); in TEST()
382 EXPECT_EQ(segmentedQueue.front(), 3); in TEST()
406 EXPECT_EQ(segmentedQueue.front(), 1); in TEST()
516 ASSERT_EQ(testSegmentedQueue.front().getValue(), in TEST()
517 referenceDeque.front().getValue()); in TEST()
/system/tools/aidl/
Dgenerate_cpp_unittest.cpp51 options_.InputFiles().front(), options_, io_delegate_, &typenames_, &imported_files); in ParseSingleInterface()
59 EXPECT_NE(nullptr, defined_types.front().get()->AsInterface()); in ParseSingleInterface()
61 return defined_types.front().get()->AsInterface(); in ParseSingleInterface()
/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/unwinding/libunwindstack/tests/
DElfFake.cpp40 auto& entry = functions_.front(); in GetFunctionName()
60 auto entry = steps_.front(); in Step()
/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/chre/host/common/
Dfbs_daemon_base.cc167 } else if (mPreloadedNanoappPendingTransactions.front().transactionId != in handleDaemonMessage()
172 mPreloadedNanoappPendingTransactions.front().transactionId); in handleDaemonMessage()
176 mPreloadedNanoappPendingTransactions.front().transactionId); in handleDaemonMessage()
181 mPreloadedNanoappPendingTransactions.front().nanoappId); in handleDaemonMessage()
/system/chre/util/include/chre/util/
Dfixed_size_vector.h47 ElementType &front();
48 const ElementType &front() const;
Dintrusive_list_impl.h37 ListNode<ElementType> &IntrusiveList<ElementType>::front() { in front() function
43 const ListNode<ElementType> &IntrusiveList<ElementType>::front() const { in front() function
Dintrusive_list.h176 ListNode<ElementType> &front();
177 const ListNode<ElementType> &front() const;
Ddynamic_vector.h255 ElementType &front();
263 const ElementType &front() const;
/system/media/audio_utils/
Dfifo.cpp70 int32_t audio_utils_fifo_base::diff(uint32_t rear, uint32_t front, size_t *lost, bool flush) const in diff() argument
80 uint32_t diff = rear - front; in diff()
84 uint32_t frontOffset = front & mask; in diff()
93 uint32_t genDiff = (rear & ~mask) - (front & ~mask); in diff()
209 uint32_t front = mFifo.mThrottleFrontSync == AUDIO_UTILS_FIFO_SYNC_SINGLE_THREADED ? in obtain() local
213 int32_t filled = mFifo.diff(mLocalRear, front); in obtain()
253 err = mFifo.mThrottleFront->wait(op, front, timeout); in obtain()
320 uint32_t front = mFifo.mThrottleFrontSync == AUDIO_UTILS_FIFO_SYNC_SINGLE_THREADED ? in release() local
324 int32_t filled = mFifo.diff(mLocalRear, front); in release()
/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/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/
Ddynamic_vector.h255 ElementType &front();
263 const ElementType &front() const;
/system/sepolicy/prebuilts/api/34.0/public/
Dremote_provisioning_service_server.te2 # front-end for a mainline module that is loaded into system server.
/system/sepolicy/public/
Dremote_provisioning_service_server.te2 # front-end for a mainline module that is loaded into system server.
/system/chre/core/
Dble_request_manager.cc410 if (mPendingRssiRequests.front().connectionHandle != connectionHandle) { in handleReadRssiSync()
413 mPendingRssiRequests.front().connectionHandle, connectionHandle); in handleReadRssiSync()
427 event->result.cookie = mPendingRssiRequests.front().cookie; in resolvePendingRssiRequest()
432 event->connectionHandle = mPendingRssiRequests.front().connectionHandle; in resolvePendingRssiRequest()
437 mPendingRssiRequests.front().instanceId); in resolvePendingRssiRequest()
444 auto req = mPendingRssiRequests.front(); in dispatchNextRssiRequestIfAny()

12345