1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 * 6 * This code is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 only, as 8 * published by the Free Software Foundation. Oracle designates this 9 * particular file as subject to the "Classpath" exception as provided 10 * by Oracle in the LICENSE file that accompanied this code. 11 * 12 * This code is distributed in the hope that it will be useful, but WITHOUT 13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15 * version 2 for more details (a copy is included in the LICENSE file that 16 * accompanied this code). 17 * 18 * You should have received a copy of the GNU General Public License version 19 * 2 along with this work; if not, write to the Free Software Foundation, 20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 21 * 22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 23 * or visit www.oracle.com if you need additional information or have any 24 * questions. 25 */ 26 27 package java.lang.ref; 28 29 import android.compat.annotation.UnsupportedAppUsage; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public class ReferenceQueue<T> { 33 ReferenceQueue()34 public ReferenceQueue() { 35 throw new RuntimeException("Stub!"); 36 } 37 enqueueLocked(java.lang.ref.Reference<? extends T> r)38 private boolean enqueueLocked(java.lang.ref.Reference<? extends T> r) { 39 throw new RuntimeException("Stub!"); 40 } 41 isEnqueued(java.lang.ref.Reference<? extends T> reference)42 boolean isEnqueued(java.lang.ref.Reference<? extends T> reference) { 43 throw new RuntimeException("Stub!"); 44 } 45 enqueue(java.lang.ref.Reference<? extends T> reference)46 boolean enqueue(java.lang.ref.Reference<? extends T> reference) { 47 throw new RuntimeException("Stub!"); 48 } 49 reallyPollLocked()50 private java.lang.ref.Reference<? extends T> reallyPollLocked() { 51 throw new RuntimeException("Stub!"); 52 } 53 poll()54 public java.lang.ref.Reference<? extends T> poll() { 55 throw new RuntimeException("Stub!"); 56 } 57 remove(long timeout)58 public java.lang.ref.Reference<? extends T> remove(long timeout) 59 throws java.lang.IllegalArgumentException, java.lang.InterruptedException { 60 throw new RuntimeException("Stub!"); 61 } 62 remove()63 public java.lang.ref.Reference<? extends T> remove() throws java.lang.InterruptedException { 64 throw new RuntimeException("Stub!"); 65 } 66 enqueuePending(java.lang.ref.Reference<?> list)67 public static void enqueuePending(java.lang.ref.Reference<?> list) { 68 throw new RuntimeException("Stub!"); 69 } 70 71 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) add(java.lang.ref.Reference<?> list)72 static void add(java.lang.ref.Reference<?> list) { 73 throw new RuntimeException("Stub!"); 74 } 75 76 private java.lang.ref.Reference<? extends T> head; 77 78 private final java.lang.Object lock; 79 80 { 81 lock = null; 82 } 83 84 private static final java.lang.ref.Reference sQueueNextUnenqueued; 85 86 static { 87 sQueueNextUnenqueued = null; 88 } 89 90 private java.lang.ref.Reference<? extends T> tail; 91 92 public static java.lang.ref.Reference<?> unenqueued; 93 } 94