Searched refs:thread (Results 26 - 50 of 52) sorted by relevance

123

/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
H A DAccessoryChat.java146 Thread thread = new Thread(null, this, "AccessoryChat");
147 thread.start();
186 Log.d(TAG, "thread out");
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnectionPool.java50 * The connection pool is thread-safe (but the connections themselves are not).
141 * This flag indicates that the connection is needed by the UI thread.
657 // Park the thread until a connection is assigned or the pool is closed.
738 final Thread thread = Thread.currentThread();
741 msg.append("' has been unable to grant a connection to thread ");
742 msg.append(thread.getId()).append(" (").append(thread.getName()).append(") ");
967 private ConnectionWaiter obtainConnectionWaiterLocked(Thread thread, long startTime, argument
976 waiter.mThread = thread;
1045 + " ms - thread
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DActiveServices.java106 * while waiting for their corresponding application thread to get
819 if (r.app == null || r.app.thread == null) {
826 r.app.thread.scheduleBindService(r, i.intent.getIntent(), rebind);
973 if (r.app != null && r.app.thread != null) {
1019 if (app != null && app.thread != null) {
1078 if (app.thread == null) {
1102 app.thread.scheduleCreateService(r, r.serviceInfo,
1164 r.app.thread.scheduleServiceArgs(r, si.taskRemoved, si.id, flags, si.intent);
1222 if (r.bindings.size() > 0 && r.app != null && r.app.thread != null) {
1228 if (r.app != null && r.app.thread !
[all...]
H A DProcessRecord.java55 IApplicationThread thread; // the actual proc... may be null only if field in class:ProcessRecord
193 pw.print(prefix); pw.print("thread="); pw.println(thread);
333 thread = _thread;
372 if (deathRecipient != null && thread != null) {
373 thread.asBinder().unlinkToDeath(deathRecipient, 0);
H A DActivityManagerService.java814 * Runtime statistics collection thread. This object's lock is used to
853 IApplicationThread thread) {
856 + " for thread " + thread.asBinder());
859 mAppThread = thread;
865 + " for thread " + mAppThread.asBinder());
1061 if (r.thread != null) {
1063 r.thread.updateTimeZone();
1075 if (r.thread != null) {
1077 r.thread
852 AppDeathRecipient(ProcessRecord app, int pid, IApplicationThread thread) argument
2966 getLRURecordIndexForAppLocked(IApplicationThread thread) argument
2978 getRecordForAppLocked( IApplicationThread thread) argument
2988 appDiedLocked(ProcessRecord app, int pid, IApplicationThread thread) argument
4090 attachApplicationLocked(IApplicationThread thread, int pid) argument
4313 attachApplication(IApplicationThread thread) argument
6945 newProcessRecordLocked(IApplicationThread thread, ApplicationInfo info, String customProcess, boolean isolated) argument
[all...]
H A DActivityStack.java650 if (app.thread == null) {
696 app.thread.scheduleLaunchActivity(new Intent(r.intent), r.appToken,
730 mService.appDiedLocked(app, app.pid, app.thread);
800 if (app != null && app.thread != null) {
956 if (prev.app != null && prev.app.thread != null) {
962 prev.app.thread.schedulePauseActivity(prev.appToken, prev.finishing,
1274 if (r.app == null || r.app.thread == null) {
1315 r.app.thread.scheduleWindowVisibility(r.appToken, true);
1357 && r.app != null && r.app.thread != null) {
1360 r.app.thread
[all...]
H A DBroadcastQueue.java213 if (app.thread == null) {
216 r.receiver = app.thread.asBinder();
230 app.thread.scheduleReceiver(new Intent(r.intent), r.curReceiver,
369 if (app != null && app.thread != null) {
370 // If we have an app thread, do the call through that so it is
372 app.thread.scheduleRegisteredReceiver(receiver, intent, resultCode,
774 if (app != null && app.thread != null) {
H A DCompatModePackages.java320 if (app.thread != null) {
323 app.thread.updatePackageCompatibilityInfo(packageName, ci);
H A DProviderMap.java347 * Invokes IApplicationThread.dumpProvider() on the thread of the specified provider if
348 * there is a thread associated with the provider.
363 if (r.proc != null && r.proc.thread != null) {
369 r.proc.thread.dumpProvider(
H A DActivityRecord.java574 && app != null && app.thread != null) {
581 app.thread.scheduleNewIntent(ar, appToken);
920 if (app != null && app.thread != null) {
922 app.thread.scheduleSleeping(appToken, _sleeping);
/frameworks/native/libs/utils/
H A DThreads.cpp64 * Create and run a new thread.
171 pthread_t thread; local
172 int result = pthread_create(&thread, &attr,
186 *threadId = (android_thread_id_t)thread; // XXX: this is not portable
192 static pthread_t android_thread_id_t_to_pthread(android_thread_id_t thread) argument
194 return (pthread_t) thread;
225 ALOG(LOG_VERBOSE, "thread", "thread exiting\n");
230 * Create and run a new thread.
252 ALOG(LOG_WARN, "thread", "WARNIN
[all...]
/frameworks/base/services/java/com/android/server/
H A DNativeDaemonConnector.java83 HandlerThread thread = new HandlerThread(TAG + ".CallbackHandler");
84 thread.start();
85 mCallbackHandler = new Handler(thread.getLooper(), this);
H A DLocationManagerService.java195 Thread thread = new Thread(null, this, THREAD_NAME);
196 thread.start();
/frameworks/av/include/media/
H A DAudioRecord.h75 /* As a convenience, if a callback is supplied, a handler thread
76 * is automatically created with the appropriate priority. This thread
328 void pause(); // suspend thread from execution at next loop boundary
329 void resume(); // allow thread to execute, if not requested to exit
338 bool mPaused; // whether thread is currently paused
342 bool processAudioBuffer(const sp<AudioRecordThread>& thread);
H A DAudioTrack.h90 /* As a convenience, if a callback is supplied, a handler thread
91 * is automatically created with the appropriate priority. This thread
150 * threadCanCallJava: Whether callbacks are made from an attached thread and thus can call JNI.
469 void pause(); // suspend thread from execution at next loop boundary
470 void resume(); // allow thread to execute, if not requested to exit
479 bool mPaused; // whether thread is currently paused
483 bool processAudioBuffer(const sp<AudioTrackThread>& thread);
/frameworks/native/opengl/libs/EGL/
H A DeglApi.cpp789 static sp<FrameCompletionThread> thread(new FrameCompletionThread);
792 thread->run("GPUFrameCompletion");
796 Mutex::Autolock lock(thread->mMutex);
798 thread->mFramesQueued).string());
799 thread->mQueue.push_back(sync);
800 thread->mCondition.signal();
801 thread->mFramesQueued++;
802 ATRACE_INT("GPU Frames Outstanding", thread->mQueue.size());
1071 // If there is context bound to the thread, release it
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp507 MyThread* thread = new MyThread(mST); local
508 sp<Thread> threadBase(thread);
512 thread->run();
517 thread->bufferDequeued();
518 thread->requestExitAndWait();
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DLayoutTestsExecutor.java275 public void uncaughtException(Thread thread, Throwable e) {
277 "onTestCrashed(): " + mCurrentTestRelativePath + " thread=" + thread, e);
318 // When we create the first WebView, we need to pause to wait for the WebView thread to spin
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DCatService.java583 HandlerThread thread = new HandlerThread("Cat Telephony service");
584 thread.start();
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/testrunner/
H A DUiAutomatorTestRunner.java71 public void uncaughtException(Thread thread, Throwable ex) {
/frameworks/base/services/java/com/android/server/usb/
H A DUsbDeviceManager.java159 // create a thread for our Handler
160 HandlerThread thread = new HandlerThread("UsbDeviceManager",
162 thread.start();
163 mHandler = new UsbHandler(thread.getLooper());
/frameworks/base/voip/java/com/android/server/sip/
H A DSipService.java1166 HandlerThread thread = new HandlerThread("SipService.Executor");
1167 thread.start();
1168 return thread.getLooper();
1171 // Executes immediate tasks in a single thread.
/frameworks/base/core/java/android/app/
H A DInstrumentation.java98 * {@link #start} to begin the instrumentation thread, which will then
101 * <p>If you do not need your own thread -- that is you are writing your
114 * Create and start a new thread in which to run instrumentation. This new
115 * thread will call to {@link #onStart} where you can implement the
127 * Method where the instrumentation thread enters execution. This allows
128 * you to run your instrumentation code in a separate thread than the
305 * Schedule a callback for when the application's main thread goes idle
308 * @param recipient Called the next time the thread's message queue is
318 * from the main application thread -- use {@link #start} to execute
319 * instrumentation in its own thread
1598 init(ActivityThread thread, Context instrContext, Context appContext, ComponentName component, IInstrumentationWatcher watcher) argument
[all...]
H A DActivityThread.java134 * This manages the execution of the main thread in an
2040 // if the thread hasn't started yet, we don't have the handler, so just
2328 * BroadcastReceiver on this thread, or null if none.
4178 // main thread so the main looper is set right.
4243 * network usage on the main event loop / UI thread.
4380 // test thread at this point, and we don't want that racing.
4452 // There is a possible race here. Another thread may try to acquire
4961 ActivityThread thread = new ActivityThread();
4962 thread.attach(true);
4963 return thread;
[all...]
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp104 // Otherwise the callback thread will never exit.
520 // callback thread or sync event hasn't changed
656 bool AudioRecord::processAudioBuffer(const sp<AudioRecordThread>& thread) argument
718 // Keep this thread going to handle timed events and
773 // callback thread or sync event hasn't changed

Completed in 1039 milliseconds

123