Lines Matching refs:Thread
214 // The singleton ExchangeService object, with its thread and stop flag
216 private static Thread sServiceThread = null;
612 // TODO: Move database work out of UI thread
806 new Thread(new Runnable() {
908 new Thread(new Runnable() {
1269 Thread t = svc.mThread;
1332 // Interrupt the thread so that it can stop
1333 Thread thread = svc.mThread;
1334 if (thread != null) {
1335 thread.setName(thread.getName() + " (Stopped)");
1336 thread.interrupt();
1493 // Handle alerts in a background thread, as we are typically called from a
1494 // broadcast receiver, and are therefore running in the UI thread
1499 new Thread(new Runnable() {
1521 // A false return means that we were forced to interrupt the thread
1523 // thread to do the work
1586 * Starts a service thread and enters it into the service map
1596 Thread thread = new Thread(service, mailboxName + "[" + accountName + "]");
1597 log("Starting thread for " + mailboxName + " in account " + accountName);
1598 thread.start();
1729 * first EAS account is created, etc), in which case the service thread is spun up, mailboxes
1798 Thread.sleep(5000);
1831 // Handle shutting down off the UI thread
1838 // Stop the sync manager thread and return
1848 // Start our thread...
1852 log(sServiceThread == null ? "Starting thread..." : "Restarting thread...");
1853 sServiceThread = new Thread(this, "ExchangeService");
1876 alwaysLog("ExchangeService thread running");
2269 Thread thread = service.mThread;
2271 if (thread != null && !thread.isAlive()) {
2273 log("Dead thread, mailbox released: " +
2280 mNextWaitReason = "Clean up dead thread(s)";
2477 Thread thisThread = Thread.currentThread();
2483 * Sent by services indicating that their thread is finished; action depends on the exitStatus
2493 // If we're no longer the syncing thread for the mailbox, just return