Home
last modified time | relevance | path

Searched refs:queue (Results 1 – 21 of 21) sorted by relevance

/art/runtime/base/
Dmessage_queue_test.cc58 TestMessageQueue queue; in TEST_F() local
60 queue.SendMessage(EmptyMessage{}); in TEST_F()
61 ASSERT_TRUE(std::holds_alternative<EmptyMessage>(queue.ReceiveMessage())); in TEST_F()
63 queue.SendMessage(IntMessage{42}); in TEST_F()
64 ASSERT_TRUE(std::holds_alternative<IntMessage>(queue.ReceiveMessage())); in TEST_F()
66 queue.SendMessage(OtherIntMessage{43}); in TEST_F()
67 ASSERT_TRUE(std::holds_alternative<OtherIntMessage>(queue.ReceiveMessage())); in TEST_F()
69 queue.SendMessage(TwoIntMessage{1, 2}); in TEST_F()
70 ASSERT_TRUE(std::holds_alternative<TwoIntMessage>(queue.ReceiveMessage())); in TEST_F()
72 queue.SendMessage(StringMessage{"Hello, World!"}); in TEST_F()
[all …]
/art/runtime/gc/
Dreference_queue_test.cc41 ReferenceQueue queue(&lock); in TEST_F() local
42 ASSERT_TRUE(queue.IsEmpty()); in TEST_F()
43 ASSERT_EQ(queue.GetLength(), 0U); in TEST_F()
52 queue.EnqueueReference(ref1.Get()); in TEST_F()
53 ASSERT_TRUE(!queue.IsEmpty()); in TEST_F()
54 ASSERT_EQ(queue.GetLength(), 1U); in TEST_F()
55 queue.EnqueueReference(ref2.Get()); in TEST_F()
56 ASSERT_TRUE(!queue.IsEmpty()); in TEST_F()
57 ASSERT_EQ(queue.GetLength(), 2U); in TEST_F()
61 dequeued.insert(queue.DequeuePendingReference().Ptr()); in TEST_F()
[all …]
/art/test/004-NativeAllocations/src-art/
DMain.java43 public static PhantomReference allocPhantom(ReferenceQueue<Object> queue) { in allocPhantom() argument
44 return new PhantomReference(new Object(), queue); in allocPhantom()
54 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in checkRegisterNativeAllocation() local
55 ref = allocPhantom(queue); in checkRegisterNativeAllocation()
71 if (queue.remove(MAX_EXPECTED_GC_DURATION_MS) == null) { in checkRegisterNativeAllocation()
/art/test/079-phantom/src/
DBitmap.java121 ReferenceQueue<PhantomWrapper> queue, int nativeDataPtr) in PhantomWrapper() argument
123 super(wrapper, queue); in PhantomWrapper()
138 BitmapWatcher(ReferenceQueue<PhantomWrapper> queue) { in BitmapWatcher() argument
139 mQueue = queue; in BitmapWatcher()
/art/dexlayout/
Ddex_writer.cc708 void DexWriter::WriteMapItems(Stream* stream, MapItemQueue* queue) { in WriteMapItems() argument
710 const uint32_t map_list_size = queue->size(); in WriteMapItems()
712 while (!queue->empty()) { in WriteMapItems()
713 const MapItem& item = queue->top(); in WriteMapItems()
720 queue->pop(); in WriteMapItems()
725 MapItemQueue queue; in GenerateAndWriteMapItems() local
728 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeHeaderItem, 1, 0)); in GenerateAndWriteMapItems()
729 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeStringIdItem, in GenerateAndWriteMapItems()
732 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeTypeIdItem, in GenerateAndWriteMapItems()
735 queue.AddIfNotEmpty(MapItem(DexFile::kDexTypeProtoIdItem, in GenerateAndWriteMapItems()
[all …]
Ddex_writer.h261 void WriteMapItems(Stream* stream, MapItemQueue* queue);
/art/tools/dexanalyze/
Ddexanalyze_strings.cc249 T PopRealTop(Queue<T, Args...>& queue) { in PopRealTop() argument
250 auto pair = queue.top(); in PopRealTop()
251 queue.pop(); in PopRealTop()
255 queue.push(pair); in PopRealTop()
256 pair = queue.top(); in PopRealTop()
257 queue.pop(); in PopRealTop()
266 std::priority_queue<std::pair<int32_t, MatchTrie*>> queue; in ExtractPrefixes() local
280 queue.emplace(elem->Savings(), elem); in ExtractPrefixes()
285 while (max != 0u && !queue.empty()) { in ExtractPrefixes()
286 std::pair<int32_t, MatchTrie*> pair = PopRealTop(queue); in ExtractPrefixes()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatInstance.java730 Queue<Reference> queue = queues.get(reachability); in computeReachability() local
731 while (!queue.isEmpty()) { in computeReachability()
732 Reference ref = queue.poll(); in computeReachability()
743 queue.add(childRef); in computeReachability()
/art/libartservice/service/java/com/android/server/art/
DDexoptHelper.java281 Queue<SharedLibrary> queue = new LinkedList<>(); in getPackageStates() local
289 queue.add(library); in getPackageStates()
305 while ((library = queue.poll()) != null) { in getPackageStates()
/art/odrefresh/
Dodr_fs_utils.cc115 std::queue<std::string> unvisited; in GetUsedSpace()
/art/libartbase/base/
Darena_containers.h57 using ArenaQueue = std::queue<T, ArenaDeque<T>>;
Dscoped_arena_containers.h55 using ScopedArenaQueue = std::queue<T, ScopedArenaDeque<T>>;
/art/test/1940-ddms-ext/
Dddm_ext.cc48 std::queue<DdmCallbackData> callbacks_received;
/art/runtime/
Dquick_exception_handler.cc118 std::queue<ArtMethod*>& GetUnwoundMethods() { in GetUnwoundMethods()
167 std::queue<ArtMethod*> unwound_methods_;
Dinstrumentation.h574 std::queue<ArtMethod*>& methods,
Dinstrumentation.cc128 std::queue<ArtMethod*>& methods, in ProcessMethodUnwindCallbacks()
Dclass_linker.cc1044 ArtField* queue = java_lang_ref_Reference->GetInstanceField(1); in FinishInit() local
1045 CHECK_STREQ(queue->GetName(), "queue"); in FinishInit()
1046 CHECK_STREQ(queue->GetTypeDescriptor(), "Ljava/lang/ref/ReferenceQueue;"); in FinishInit()
/art/compiler/optimizing/
Dnodes.cc1381 ScopedArenaDeque<std::pair<HInstruction*, size_t>> queue(allocator.Adapter(kArenaAllocMisc)); in Dump() local
1382 auto add_args = [&queue](HInstruction* instruction, size_t indentation) { in Dump()
1384 queue.emplace_front(arg, indentation); in Dump()
1388 while (!queue.empty()) { in Dump()
1391 std::tie(instruction, indentation) = queue.front(); in Dump()
1392 queue.pop_front(); in Dump()
Dexecution_subgraph_test.cc47 std::queue<const HBasicBlock*> worklist; in CalculateValidity()
/art/runtime/verifier/
Dreg_type_test.cc976 std::queue<const RegType*> work_list; in TEST_F()
/art/build/boot/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt2474 Ljava/lang/Daemons$FinalizerDaemon;->queue:Ljava/lang/ref/ReferenceQueue;
3041 Ljava/lang/ref/Reference;->queue:Ljava/lang/ref/ReferenceQueue;
6276 Ljava/util/Collections$CheckedQueue;->queue:Ljava/util/Queue;
7108 Ljava/util/concurrent/ConcurrentLinkedDeque$CLDSpliterator;->queue:Ljava/util/concurrent/Concurrent…
7162 Ljava/util/concurrent/ConcurrentLinkedQueue$CLQSpliterator;->queue:Ljava/util/concurrent/Concurrent…
7683 Ljava/util/concurrent/LinkedBlockingDeque$LBDSpliterator;->queue:Ljava/util/concurrent/LinkedBlocki…
7709 Ljava/util/concurrent/LinkedBlockingQueue$LBQSpliterator;->queue:Ljava/util/concurrent/LinkedBlocki…
8056 Ljava/util/concurrent/PriorityBlockingQueue$PBQSpliterator;->queue:Ljava/util/concurrent/PriorityBl…
8066 Ljava/util/concurrent/PriorityBlockingQueue;->queue:[Ljava/lang/Object;
8095 Ljava/util/concurrent/ScheduledThreadPoolExecutor$DelayedWorkQueue;->queue:[Ljava/util/concurrent/R…
[all …]