/frameworks/base/core/java/com/android/internal/view/ |
H A D | WindowManagerPolicyThread.java | 22 * Static storage of the thread running the window manager policy, to 29 public static void set(Thread thread, Looper looper) { argument 30 mThread = thread;
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | DrawFrameTask.cpp | 41 void DrawFrameTask::setContext(RenderThread* thread, CanvasContext* context, argument 43 mRenderThread = thread;
|
H A D | EglManager.cpp | 88 EglManager::EglManager(RenderThread& thread) argument 89 : mRenderThread(thread)
|
H A D | CanvasContext.cpp | 64 CanvasContext::CanvasContext(RenderThread& thread, bool translucent, argument 66 : mRenderThread(thread) 67 , mEglManager(thread.eglManager()) 70 , mJankTracker(thread.timeLord().frameIntervalNanos()) 277 // as we will just end up fighting the UI thread. 577 void CanvasContext::invokeFunctor(RenderThread& thread, Functor* functor) { argument 580 if (thread.eglManager().hasEglContext()) { 584 thread.renderState().invokeFunctor(functor, mode, nullptr); 669 void CanvasContext::trimMemory(RenderThread& thread, int level) { argument 671 if (!thread 693 setTextureAtlas(RenderThread& thread, const sp<GraphicBuffer>& buffer, int64_t* map, size_t mapSize) argument [all...] |
H A D | RenderProxy.cpp | 56 CREATE_BRIDGE4(createContext, RenderThread* thread, bool translucent, argument 58 return new CanvasContext(*args->thread, args->translucent, 68 args->thread = &mRenderThread; 245 // the render thread. 249 CREATE_BRIDGE2(invokeFunctor, RenderThread* thread, Functor* functor) { argument 250 CanvasContext::invokeFunctor(*args->thread, args->functor); 256 RenderThread& thread = RenderThread::getInstance(); local 258 args->thread = &thread; 266 thread 354 CREATE_BRIDGE2(trimMemory, RenderThread* thread, int level) argument 362 RenderThread& thread = RenderThread::getInstance(); local 424 CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread, int fd, int dumpFlags) argument 459 CREATE_BRIDGE2(dumpGraphicsMemory, int fd, RenderThread* thread) argument 487 CREATE_BRIDGE4(setTextureAtlas, RenderThread* thread, GraphicBuffer* buffer, int64_t* map, size_t size) argument 504 CREATE_BRIDGE2(setProcessStatsBuffer, RenderThread* thread, int fd) argument 620 CREATE_BRIDGE3(copySurfaceInto, RenderThread* thread, Surface* surface, SkBitmap* bitmap) argument 650 RenderThread& thread = RenderThread::getInstance(); local [all...] |
/frameworks/base/libs/hwui/thread/ |
H A D | TaskManager.cpp | 37 // we do want to limit ourselves to 1 worker thread on dual-core devices. 67 sp<WorkerThread> thread; local 71 thread = mThreads[i]; 76 return thread->addTask(wrapper);
|
/frameworks/base/core/java/android/content/ |
H A D | AbstractThreadedSyncAdapter.java | 30 * An abstract implementation of a SyncAdapter that spawns a thread to invoke a sync operation. 33 * However if there is no sync in progress then a thread will be spawned and {@link #onPerformSync} 34 * will be invoked on that thread. 44 * A sync is cancelled by issuing a {@link Thread#interrupt()} on the syncing thread. <strong>Either 138 * at the same time, each in their own thread. This must be consistent with the setting 234 * The thread that invokes {@link AbstractThreadedSyncAdapter#onPerformSync}. It also acquires 236 * this thread in order to cancel the sync. 341 * thread than the sync thread and so you must consider the multi-threaded implications 359 * thread tha 366 onSyncCanceled(Thread thread) argument [all...] |
/frameworks/volley/src/main/java/com/android/volley/ |
H A D | VolleyLog.java | 81 * calling thread ID and method name. 106 * A simple event log with records containing a name, thread ID, and timestamp. 116 public final long thread; field in class:VolleyLog.MarkerLog.Marker 119 public Marker(String name, long thread, long time) { argument 121 this.thread = thread; 155 d("(+%-4d) [%2d] %s", (thisTime - prevTime), marker.thread, marker.name);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ALooper.cpp | 133 sp<LooperThread> thread; local 139 thread = mThread; 145 if (thread == NULL && !runningLocally) { 149 if (thread != NULL) { 150 thread->requestExit(); 159 if (!runningLocally && !thread->isCurrentThread()) { 160 // If not running locally and this thread _is_ the looper thread, 162 thread->requestExitAndWait();
|
/frameworks/av/services/audioflinger/ |
H A D | PatchPanel.cpp | 230 sp<ThreadBase> thread = local 232 newPatch->mPlaybackThread = (MixerThread *)thread.get(); 233 if (thread == 0) { 234 ALOGW("createAudioPatch() cannot get playback thread"); 298 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local 300 if (thread == 0) { 306 status = thread->sendCreateAudioPatchConfigEvent(patch, &halHandle); 347 sp<ThreadBase> thread = local 349 if (thread == 0) { 355 if (thread 577 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local 604 sp<ThreadBase> thread = local [all...] |
H A D | PlaybackTracks.h | 25 Track( PlaybackThread *thread, 111 // FIXME parameters not needed, could get them from the thread 147 // access these three variables only when holding thread lock. 168 bool mFlushHwPending; // track requests for thread flush 182 OutputTrack(PlaybackThread *thread, 198 const wp<ThreadBase>& thread() const { return mThread; } function in class:OutputTrack
|
H A D | Effects.h | 44 EffectModule(ThreadBase *thread, 92 void setThread(const wp<ThreadBase>& thread) { mThread = thread; } argument 93 const wp<ThreadBase>& thread() { return mThread; } function in class:EffectModule 141 wp<ThreadBase> mThread; // parent thread 237 // There can be any number of EffectChain objects per output mixer thread (PlaybackThread). 248 EffectChain(ThreadBase *thread, audio_session_t sessionId); 360 void clearInputBuffer_l(sp<ThreadBase> thread); 362 void setThread(const sp<ThreadBase>& thread); 364 wp<ThreadBase> mThread; // parent mixer thread [all...] |
H A D | Tracks.cpp | 67 ThreadBase *thread, 81 mThread(thread), 102 mThreadIoHandle(thread->id()) 141 const sp<MemoryDealer> roHeap(thread->readOnlyHeap()); 156 mBufferMemory = thread->pipeMemory(); 281 // will be freed from the main thread once all pending buffers have 337 PlaybackThread *thread, 350 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, 360 mMainBuffer(thread->mixBuffer()), 392 mName = thread 66 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, audio_session_t sessionId, int clientUid, IAudioFlinger::track_flags_t flags, bool isOut, alloc_type alloc, track_type type) argument 336 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, const sp<IMemory>& sharedBuffer, audio_session_t sessionId, int uid, IAudioFlinger::track_flags_t flags, track_type type) argument 450 sp<ThreadBase> thread = mThread.promote(); local 636 sp<ThreadBase> thread = mThread.promote(); local 713 sp<ThreadBase> thread = mThread.promote(); local 745 sp<ThreadBase> thread = mThread.promote(); local 776 sp<ThreadBase> thread = mThread.promote(); local 853 sp<ThreadBase> thread = mThread.promote(); local 870 sp<ThreadBase> thread = mThread.promote(); local 883 sp<ThreadBase> thread = mThread.promote(); local 1054 sp<ThreadBase> thread = mThread.promote(); local 1264 sp<ThreadBase> thread = mThread.promote(); local 1461 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, audio_session_t sessionId, int uid, IAudioFlinger::track_flags_t flags, track_type type) argument 1548 sp<ThreadBase> thread = mThread.promote(); local 1559 sp<ThreadBase> thread = mThread.promote(); local 1579 sp<ThreadBase> thread = mThread.promote(); local [all...] |
/frameworks/base/core/java/android/app/ |
H A D | Service.java | 49 * thread of their hosting process. This means that, if your service is going 51 * networking) operations, it should spawn its own thread in which to do that 55 * as a standard implementation of Service that has its own thread where it 84 * <li> A Service is <b>not</b> a thread. It is not a means itself to do work off 85 * of the main thread (to avoid Application Not Responding errors). 107 * main thread. It is up to the Service to implement these with the appropriate 108 * behavior, such as creating a secondary thread in which it does its work.</p> 235 * to schedule work to be done asynchronously or in another thread, then you 404 * and spawns a thread to do its networking. If its process is killed 486 * service's main thread 759 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument [all...] |
/frameworks/base/libs/hwui/renderstate/ |
H A D | RenderState.cpp | 27 RenderState::RenderState(renderthread::RenderThread& thread) argument 28 : mRenderThread(thread)
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
H A D | LocationBasedCountryDetectorTest.java | 211 // Wait for query thread ending 234 // There is no way to stop the thread, let's test it could be stopped, after get country 236 // Wait for query thread ending 313 // Wait for query thread ending 336 // Wait for query thread ending 358 private void waitForThreadEnding(Thread thread) { argument 360 thread.join(5000); 375 Thread thread = detector.getQueryThread(); 376 assertTrue(thread != null); 377 return thread; [all...] |
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 173 sp<EventThread> thread; member in class:TouchEvents 177 thread = new EventThread(); 178 thread->run("EventThread", PRIORITY_URGENT_DISPLAY); 182 *x = thread->x; 183 *y = thread->y; 184 return thread->down;
|
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureClient_test.cpp | 562 MyThread* thread = new MyThread(mST); local 563 sp<Thread> threadBase(thread); 567 thread->run("MyThread"); 572 thread->bufferDequeued(); 573 thread->requestExitAndWait();
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | PackageMonitor.java | 71 public void register(Context context, Looper thread, boolean externalStorage) { argument 72 register(context, thread, null, externalStorage); 75 public void register(Context context, Looper thread, UserHandle user, argument 78 (thread == null) ? BackgroundThread.getHandler() : new Handler(thread));
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | Watchdog.java | 53 // Set this to true to have the watchdog record kernel thread stacks when it fires 81 /* This handler will be used to post message back onto the main thread */ 119 // to do a context switch to check the thread. Note that we 201 * there is a binder thread available to process in coming IPCs to make sure other processes 225 // Initialize handler checkers for each common thread we want to check. Note 226 // that we are not currently checking the background thread, since it can 230 // The shared foreground thread is the main checker. It is where we 233 "foreground thread", DEFAULT_TIMEOUT); 235 // Add checker for main thread. We only do a quick check since there 236 // can be UI running on the thread 291 addThread(Handler thread) argument 295 addThread(Handler thread, long timeoutMillis) argument [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteConnectionPool.java | 50 * 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/core/java/com/android/server/connectivity/ |
H A D | NetworkDiagnostics.java | 123 Thread thread; field in class:NetworkDiagnostics.Measurement 227 measurement.thread = new Thread(new IcmpCheck(target, measurement)); 239 measurement.thread = new Thread(new IcmpCheck(source, target, measurement)); 249 measurement.thread = new Thread(new DnsUdpCheck(target, measurement)); 260 measurement.thread.start(); 263 measurement.thread.start(); 266 measurement.thread.start();
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 537 sp<BufferProducerThread> thread; local 543 ALOGE("capture thread not existing."); 546 thread = connection.mThread; 548 thread->onCaptured(seq, succeeded);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.c | 113 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe 541 // create thread to read from file 542 pthread_t thread; local 543 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL); 546 // give thread a head start so that the pipe is initially filled 602 // wait for reader thread to exit 603 ok = pthread_join(thread, (void **) NULL);
|
H A D | playbq.cpp | 113 // This thread reads from a (slow) filesystem with unpredictable latency and writes to pipe 541 // create thread to read from file 542 pthread_t thread; local 543 int ok = pthread_create(&thread, (const pthread_attr_t *) NULL, file_reader_loop, NULL); 546 // give thread a head start so that the pipe is initially filled 602 // wait for reader thread to exit 603 ok = pthread_join(thread, (void **) NULL);
|