Searched refs:queue (Results 1 - 25 of 71) sorted by last modified time

123

/frameworks/support/v7/palette/src/android/support/v7/graphics/
H A DColorCutQuantizer.java125 // Create the priority queue which is sorted by volume descending. This means we always
126 // split the largest box in the queue
142 * {@link ColorCutQuantizer.Vbox} objects from the queue
144 * queue.
146 * @param queue {@link java.util.PriorityQueue} to poll for boxes
149 private void splitBoxes(final PriorityQueue<Vbox> queue, final int maxSize) { argument
150 while (queue.size() < maxSize) {
151 final Vbox vbox = queue.poll();
155 queue.offer(vbox.splitBox());
157 queue
[all...]
/frameworks/volley/src/com/android/volley/
H A DNetworkDispatcher.java27 * Provides a thread for performing network dispatch from a queue of requests.
29 * Requests added to the specified queue are processed from the network via a
35 /** The queue of requests to service. */
50 * @param queue Queue of incoming requests for triage
55 public NetworkDispatcher(BlockingQueue<Request<?>> queue, argument
58 mQueue = queue;
66 * the queue, they are not guaranteed to be processed.
87 // Take a request from the queue.
98 request.addMarker("network-queue-take");
/frameworks/volley/src/com/android/volley/toolbox/
H A DImageLoader.java82 * @param queue The RequestQueue to use for making image requests.
85 public ImageLoader(RequestQueue queue, ImageCache imageCache) { argument
86 mRequestQueue = queue;
H A DVolley.java65 RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network);
66 queue.start();
68 return queue;
/frameworks/volley/tests/src/com/android/volley/
H A DRequestQueueTest.java73 RequestQueue queue = new RequestQueue(new NoCache(), network, 1, mDelivery);
76 queue.add(request);
80 queue.start();
82 queue.stop();
101 RequestQueue queue = new RequestQueue(new NoCache(), network, 3, mDelivery);
102 queue.add(req1);
103 queue.add(req2);
104 queue.start();
106 queue.stop();
111 RequestQueue queue
[all...]
/frameworks/support/v4/api21/android/support/v4/media/session/
H A DMediaControllerCompatApi21.java68 List<MediaSession.QueueItem> queue = ((MediaController) controllerObj).getQueue();
69 if (queue == null) {
72 List<Object> queueObjs = new ArrayList<Object>(queue);
H A DMediaSessionCompatApi21.java120 ArrayList<MediaSession.QueueItem> queue = new ArrayList<MediaSession.QueueItem>();
122 queue.add((MediaSession.QueueItem) itemObj);
124 ((MediaSession) sessionObj).setQueue(queue);
/frameworks/support/v4/java/android/support/v4/media/session/
H A DIMediaControllerCallback.aidl36 void onQueueChanged(in List<MediaSessionCompat.QueueItem> queue);
H A DMediaControllerCompat.java142 * Get the current play queue for this session if one is set. If you only
145 * @return The current play queue or null.
152 * Get the queue title for this session.
387 * Override to handle changes to items in the queue.
390 * @param queue A list of items in the current play queue. It should
394 public void onQueueChanged(List<MediaSessionCompat.QueueItem> queue) { argument
398 * Override to handle changes to the queue title.
401 * queue such as "Now Playing". May be null if there is no
483 public void onQueueChanged(List<QueueItem> queue) throw argument
[all...]
H A DMediaSessionCompat.java327 * Update the list of items in the play queue. It is an ordered list and
329 * exist. Specify null if there is no current play queue.
331 * The queue should be of reasonable size. If the play queue is unbounded
335 * @param queue A list of items in the play queue.
337 public void setQueue(List<QueueItem> queue) { argument
338 mImpl.setQueue(queue);
342 * Set the title of the play queue. The UI should display this title along
343 * with the play queue itsel
917 setQueue(List<QueueItem> queue) argument
1236 setQueue(List<QueueItem> queue) argument
1445 sendQueue(List<QueueItem> queue) argument
1873 setQueue(List<QueueItem> queue) argument
[all...]
/frameworks/native/include/android/
H A Dinput.h797 * Input queue
799 * An input queue is the facility through which you retrieve input
806 * Add this input queue to a looper for processing. See
809 void AInputQueue_attachLooper(AInputQueue* queue, ALooper* looper,
813 * Remove the input queue from the looper it is currently attached to.
815 void AInputQueue_detachLooper(AInputQueue* queue);
819 * input queue. Returns 1 if the queue has events; 0 if
822 int32_t AInputQueue_hasEvents(AInputQueue* queue);
825 * Returns the next available event from the queue
[all...]
H A Dnative_activity.h196 * The input queue for this native activity's window has been created.
197 * You can use the given input queue to start retrieving input events.
199 void (*onInputQueueCreated)(ANativeActivity* activity, AInputQueue* queue);
202 * The input queue for this native activity's window is being destroyed.
206 void (*onInputQueueDestroyed)(ANativeActivity* activity, AInputQueue* queue);
H A Dsensor.h225 * Creates a new sensor event queue and associate it with a looper.
231 * Destroys the event queue and free all resources associated to it.
233 int ASensorManager_destroyEventQueue(ASensorManager* manager, ASensorEventQueue* queue);
241 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor);
246 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor);
255 int ASensorEventQueue_setEventRate(ASensorEventQueue* queue, ASensor const* sensor, int32_t usec);
259 * sensor queue. Returns 1 if the queue has events; 0 if
262 int ASensorEventQueue_hasEvents(ASensorEventQueue* queue);
265 * Returns the next available events from the queue
[all...]
/frameworks/native/libs/gui/
H A DSensorManager.cpp143 sp<SensorEventQueue> queue; local
154 queue = new SensorEventQueue(connection);
157 return queue;
/frameworks/native/services/inputflinger/
H A DInputDispatcher.cpp82 // queue of waiting unfinished events, then ANRs will similarly be delayed by one second.
282 // The inbound queue is empty so the app switch key we were waiting
304 // Inbound queue has at least one entry.
451 // Flag the event, and start pruning the input queue.
1647 "Outbound queue length: %d. Wait queue length: %d.",
1667 "delivered to it. Outbound queue length: %d. Wait queue length: %d.",
1683 // The one case where we pause input event delivery is when the wait queue is piling
1691 "%0.1fms ago. Wait queue lengt
2077 drainDispatchQueueLocked(Queue<DispatchEntry>* queue) argument
[all...]
H A DInputDispatcher.h604 // Generic queue implementation.
860 // Adds an event to a queue of recent events for debugging purposes.
1063 void drainDispatchQueueLocked(Queue<DispatchEntry>* queue);
/frameworks/native/services/surfaceflinger/
H A DMessageQueue.cpp178 MessageQueue* queue = reinterpret_cast<MessageQueue *>(data); local
179 return queue->eventReceiver(fd, events);
H A DMessageQueue.h72 Handler(MessageQueue& queue) : mQueue(queue), mEventMask(0) { } argument
/frameworks/compile/mclinker/include/mcld/ADT/
H A DBinTree.h19 #include <queue>
94 std::queue<NodeBase *> m_Queue;
/frameworks/compile/mclinker/lib/LD/
H A DGarbageCollection.cpp26 #include <queue>
298 typedef std::queue<const LDSection*> WorkListTy;
/frameworks/ex/variablespeed/jni/
H A Dvariablespeed.h32 #include <queue>
104 std::queue<int16*> playingBuffers_;
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp251 Queue queue; local
277 queue.push(x, y);
278 queue.get(lag, &lag_x, &lag_y);
/frameworks/base/tools/aapt/
H A DResource.cpp1506 std::queue<CompileResourceWorkItem>& workQueue = table.getWorkQueue();
H A DResourceTable.h11 #include <queue>
112 * Returns the queue of resources that need to be compiled.
119 queue<CompileResourceWorkItem>& getWorkQueue() {
593 queue<CompileResourceWorkItem> mWorkQueue;
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java581 // Round-robin queue for scheduling full backup passes
673 ArrayList<BackupRequest> queue = new ArrayList<BackupRequest>();
676 // Do we have any work to do? Construct the work queue
681 queue.add(b);
686 // Start a new backup-queue journal file too
698 if (queue.size() > 0) {
703 queue, oldJournal);
813 HashSet<String> queue;
815 // Snapshot the pending-init queue and work on that
817 queue
2326 PerformBackupTask(IBackupTransport transport, String dirName, ArrayList<BackupRequest> queue, File journal) argument
[all...]

Completed in 3554 milliseconds

123