/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
PointerTrackerQueueTests.java | 66 private final PointerTrackerQueue mQueue = new PointerTrackerQueue(); 69 assertEquals(0, mQueue.size()); 70 assertEquals("[]", mQueue.toString()); 74 mQueue.add(mElement1); 75 assertEquals(1, mQueue.size()); 76 assertEquals("[1]", mQueue.toString()); 77 mQueue.add(mElement2); 78 assertEquals(2, mQueue.size()); 79 assertEquals("[1 2]", mQueue.toString()); 80 mQueue.add(mElement3) [all...] |
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
MockExecutor.java | 29 private final LinkedList<Runnable> mQueue = new LinkedList<Runnable>(); 35 mQueue.addLast(task); 39 mQueue.clear(); 48 return mQueue.size(); 52 if (mQueue.isEmpty()) { 55 Runnable command = mQueue.removeFirst();
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
DeferredHandler.java | 35 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>(); 43 synchronized (mQueue) { 44 if (mQueue.size() == 0) { 47 p = mQueue.removeFirst(); 51 synchronized (mQueue) { 82 synchronized (mQueue) { 83 mQueue.add(new Pair<Runnable, Integer>(runnable, type)); 84 if (mQueue.size() == 1) { 99 synchronized (mQueue) { 100 while (mQueue.remove(runnable)) { [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
DeferredHandler.java | 36 private LinkedList<Pair<Runnable, Integer>> mQueue = new LinkedList<Pair<Runnable, Integer>>(); 44 synchronized (mQueue) { 45 if (mQueue.size() == 0) { 48 p = mQueue.removeFirst(); 52 synchronized (mQueue) { 83 synchronized (mQueue) { 84 mQueue.add(new Pair<Runnable, Integer>(runnable, type)); 85 if (mQueue.size() == 1) { 100 synchronized (mQueue) { 101 while (mQueue.remove(runnable)) { [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageLoader.java | 37 private final ArrayList<WorkItem> mQueue = new ArrayList<WorkItem>(); 54 synchronized (mQueue) { 56 mQueue.add(w); 57 mQueue.notifyAll(); 62 synchronized (mQueue) { 65 mQueue.remove(index); 73 // The caller should hold mQueue lock. 75 for (int i = 0; i < mQueue.size(); i++) { 76 if (mQueue.get(i).mImage == image) { 85 synchronized (mQueue) { [all...] |
/packages/apps/Nfc/nci/jni/ |
DataQueue.cpp | 52 while (mQueue.empty() == false) 54 tHeader* header = mQueue.front (); 55 mQueue.pop_front (); 65 bool retval = mQueue.empty(); 98 mQueue.push_back (header); 127 tHeader* header = mQueue.front (); 139 mQueue.pop_front ();
|
DataQueue.h | 103 Queue mQueue;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
SingleThreadNamedTaskExecutor.java | 32 private final LinkedBlockingQueue<NamedTask> mQueue; 37 mQueue = new LinkedBlockingQueue<NamedTask>(); 43 if (DBG) Log.d(TAG, "Cancelling " + mQueue.size() + " tasks: " + mWorker.getName()); 47 mQueue.clear(); 53 mQueue.clear(); 60 mQueue.add(task); 78 task = mQueue.take();
|
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/ |
AwaitableCompletionListener.java | 33 private final BlockingQueue<Object> mQueue = new LinkedBlockingQueue<Object>(); 38 mQueue.put(new Object()); 49 if (mQueue.poll(timeout, unit) == null) { 55 if (mQueue.peek() != null) {
|
AwaitableErrorListener.java | 31 private final BlockingQueue<Object> mQueue = new LinkedBlockingQueue<Object>(); 46 mQueue.put(new Object()); 57 if (mQueue.poll(timeout, unit) == null) { 63 if (mQueue.peek() != null) {
|
/frameworks/base/core/java/android/os/ |
Looper.java | 60 final MessageQueue mQueue; 115 final MessageQueue queue = me.mQueue; 184 return myLooper().mQueue; 188 mQueue = new MessageQueue(quitAllowed); 217 mQueue.quit(false); 233 mQueue.quit(true); 260 return mQueue.enqueueSyncBarrier(SystemClock.uptimeMillis()); 275 mQueue.removeSyncBarrier(token); 287 return mQueue; 297 return mQueue.isIdling() [all...] |
Handler.java | 203 mQueue = mLooper.mQueue; 229 mQueue = looper.mQueue; 479 mQueue.removeMessages(this, r, null); 489 mQueue.removeMessages(this, r, token); 588 MessageQueue queue = mQueue; 591 this + " sendMessageAtTime() called with no mQueue"); 611 MessageQueue queue = mQueue; 614 this + " sendMessageAtTime() called with no mQueue"); [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
OutputPort.java | 39 private FrameQueue mQueue = null; 56 return mQueue == null || mQueue.canPush(); 165 return mQueue; 169 mQueue = queue; 180 return mQueue != null; 188 if (mQueue != null) { 189 mQueue.clear();
|
InputPort.java | 43 private FrameQueue mQueue = null; 178 if (mQueue == null) { 181 Frame frame = mQueue.pullFrame(); 197 if (mQueue == null) { 200 return mQueue.peek(); 208 return mQueue != null; 216 return mQueue != null && mQueue.canPull(); 292 mQueue = queue; 297 return mQueue; [all...] |
/packages/apps/Camera/src/com/android/camera/ |
MediaSaver.java | 45 private ArrayList<SaveRequest> mQueue; 55 mQueue = new ArrayList<SaveRequest>(); 61 return (mQueue.size() >= SAVE_QUEUE_LIMIT); 77 while (mQueue.size() >= SAVE_QUEUE_LIMIT) { 84 mQueue.add(r); 95 if (mQueue.isEmpty()) { 110 r = mQueue.remove(0); 117 if (!mQueue.isEmpty()) { 118 Log.e(TAG, "Media saver thread stopped with " + mQueue.size() + " images unsaved"); 119 mQueue.clear() [all...] |
/frameworks/base/core/java/android/speech/tts/ |
AudioPlaybackHandler.java | 27 private final LinkedBlockingQueue<PlaybackQueueItem> mQueue = 51 mQueue.put(item); 80 return (mQueue.peek() != null) || (mCurrentWorkItem != null); 96 mQueue.clear(); 103 Iterator<PlaybackQueueItem> it = mQueue.iterator(); 123 item = mQueue.take(); 129 // If stop() or stopForApp() are called between mQueue.take()
|
/frameworks/av/media/libstagefright/ |
TimedEventQueue.cpp | 94 mQueue.clear(); 122 List<QueueItem>::iterator it = mQueue.begin(); 123 while (it != mQueue.end() && realtime_us >= (*it).realtime_us) { 132 if (it == mQueue.begin()) { 140 mQueue.insert(it, item); 180 List<QueueItem>::iterator it = mQueue.begin(); 181 while (it != mQueue.end()) { 187 if (it == mQueue.begin()) { 197 it = mQueue.erase(it); 229 while (mQueue.empty()) [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
NuPlayerStreamListener.cpp | 63 mQueue.push_back(entry); 84 mQueue.push_back(entry); 107 if (mQueue.empty()) { 113 QueueEntry *entry = &*mQueue.begin(); 119 mQueue.erase(mQueue.begin()); 130 mQueue.erase(mQueue.begin()); 157 mQueue.erase(mQueue.begin()) [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
LruCache.java | 30 private ReferenceQueue<V> mQueue = new ReferenceQueue<V>(); 53 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); 56 entry = (Entry<K, V>) mQueue.poll(); 64 key, new Entry<K, V>(key, value, mQueue)); 79 mQueue = new ReferenceQueue<V>();
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
ProviderExecutor.java | 54 private final LinkedBlockingQueue<Runnable> mQueue = new LinkedBlockingQueue<Runnable>(); 91 mQueue.add(command); 99 mQueue.add(command); 106 final Runnable command = mQueue.take();
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
IdentityCache.java | 29 private ReferenceQueue<V> mQueue = new ReferenceQueue<V>(); 44 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); 47 entry = (Entry<K, V>) mQueue.poll(); 54 key, new Entry<K, V>(key, value, mQueue)); 68 mQueue = new ReferenceQueue<V>();
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
LruCache.java | 34 private ReferenceQueue<V> mQueue = new ReferenceQueue<V>(); 57 Entry<K, V> entry = (Entry<K, V>) mQueue.poll(); 60 entry = (Entry<K, V>) mQueue.poll(); 73 key, new Entry<K, V>(key, value, mQueue)); 88 mQueue = new ReferenceQueue<V>();
|
/frameworks/native/services/surfaceflinger/ |
MessageQueue.cpp | 54 mQueue.mLooper->sendMessage(this, Message(MessageQueue::REFRESH)); 60 mQueue.mLooper->sendMessage(this, Message(MessageQueue::INVALIDATE)); 66 mQueue.mLooper->sendMessage(this, Message(MessageQueue::TRANSACTION)); 74 mQueue.mFlinger->onMessageReceived(message.what); 78 mQueue.mFlinger->onMessageReceived(message.what); 82 mQueue.mFlinger->onMessageReceived(message.what);
|
/art/test/079-phantom/src/ |
Bitmap.java | 126 ReferenceQueue<PhantomWrapper> mQueue; 130 mQueue = queue; 137 PhantomWrapper ref = (PhantomWrapper) mQueue.remove();
|
/dalvik/tests/079-phantom/src/ |
Bitmap.java | 126 ReferenceQueue<PhantomWrapper> mQueue; 130 mQueue = queue; 137 PhantomWrapper ref = (PhantomWrapper) mQueue.remove();
|