Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/os/src/android/os/cts/
DMessageQueueTest.java127 HandlerThread thread = new HandlerThread("testIsIdle"); in testIsIdle() local
128 thread.start(); in testIsIdle()
131 assertTrue(thread.getLooper().getQueue().isIdle()); in testIsIdle()
136 Handler handler = new Handler(thread.getLooper()); in testIsIdle()
156 assertFalse(thread.getLooper().getQueue().isIdle()); in testIsIdle()
162 assertTrue(thread.getLooper().getQueue().isIdle()); in testIsIdle()
164 thread.quitSafely(); in testIsIdle()
272 AssertableHandlerThread thread = new AssertableHandlerThread(); in testFileDescriptorCallbacks() local
273 thread.start(); in testFileDescriptorCallbacks()
277 final MessageQueue queue = thread.getLooper().getQueue(); in testFileDescriptorCallbacks()
[all …]
DSeccompTest.java314 Thread thread = new Thread(new Runnable() {
324 thread.run();
326 thread.join();
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java152 for (ThreadModel thread : process.getThreads()) { in findThread()
153 if (thread.getId() == id) { in findThread()
154 return thread; in findThread()
184 ThreadModel thread = findThread(result.getModel(), result.getTid()); in testBeginEndSection() local
185 assertNotNull(thread); in testBeginEndSection()
186 assertEquals(2, thread.getSlices().size()); in testBeginEndSection()
187 Slice sdkSlice = thread.getSlices().get(0); in testBeginEndSection()
189 Slice ndkSlice = thread.getSlices().get(1); in testBeginEndSection()
248 ThreadModel thread = findThread(result.getModel(), result.getPid()); in testTracingContent() local
249 SliceQueriesKt.iterSlices(thread, (Slice slice) -> { in testTracingContent()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0415/
Dpoc.cpp56 pthread_t thread; in main() local
57 pthread_create(&thread, NULL, start2, &bufferProducer); in main()
71 pthread_join(thread, NULL); in main()
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java34 HandlerThread thread = new HandlerThread("PixelCopyHelper");
35 thread.start(); in thread.start()
36 sHandler = new Handler(thread.getLooper());
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundService.java75 HandlerThread thread = new HandlerThread("ServiceStartArguments", in onCreate() local
77 thread.start(); in onCreate()
80 mServiceLooper = thread.getLooper(); in onCreate()
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOService.java101 HandlerThread thread = new HandlerThread("ServiceStartArguments", in onCreate() local
103 thread.start(); in onCreate()
106 mServiceLooper = thread.getLooper(); in onCreate()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java71 HandlerThread thread = new HandlerThread("ServiceStartArguments", in onCreate() local
73 thread.start(); in onCreate()
76 mServiceLooper = thread.getLooper(); in onCreate()
/cts/tests/tests/media/src/android/media/cts/
DResourceManagerStubActivity.java78 Thread thread = new Thread() { in testReclaimResource() local
101 thread.start(); in testReclaimResource()
102 thread.join(20000 /* millis */); in testReclaimResource()
DMediaCasTest.java288 final HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testClearKeyApis() local
289 thread.start(); in testClearKeyApis()
290 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis()
293 thread.interrupt(); in testClearKeyApis()
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp46 jthread thread ATTRIBUTE_UNUSED, in ObjectAllocated()
72 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jboolean enable) { in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking() argument
76 thread); in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9515/
Dpoc.c70 pthread_t thread; in main() local
71 if (pthread_create(&thread, NULL, uaf_worker, NULL)) in main()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRenderTarget.java61 HandlerThread thread = new HandlerThread("RenderTarget-GL");
62 thread.start(); in thread.start()
63 sHandler = new Handler(thread.getLooper(), new RenderTargetThread());
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java1817 public synchronized void threadExiting(GLThread thread) { in threadExiting() argument
1819 Log.i("GLThread", "exiting tid=" + thread.getId()); in threadExiting()
1821 thread.mExited = true; in threadExiting()
1822 if (mEglOwner == thread) { in threadExiting()
1835 public boolean tryAcquireEglContextLocked(GLThread thread) { in tryAcquireEglContextLocked() argument
1836 if (mEglOwner == thread || mEglOwner == null) { in tryAcquireEglContextLocked()
1837 mEglOwner = thread; in tryAcquireEglContextLocked()
1859 public void releaseEglContextLocked(GLThread thread) { in releaseEglContextLocked() argument
1860 if (mEglOwner == thread) { in releaseEglContextLocked()
/cts/tests/tests/security/src/android/security/cts/
DRenderTarget.java64 HandlerThread thread = new HandlerThread("RenderTarget-GL");
65 thread.start(); in thread.start()
66 sHandler = new Handler(thread.getLooper(), new RenderTargetThread());
/cts/tests/tests/webkit/src/android/webkit/cts/
DTracingControllerTest.java160 Thread thread = new Thread(r);
161 thread.setName(EXECUTOR_THREAD_PREFIX + "_" + threadCount.incrementAndGet());
162 return thread;
/cts/tests/tests/view/src/android/view/cts/
DFrameMetricsListenerTest.java153 final HandlerThread thread = new HandlerThread("Listener"); in testDropCount() local
154 thread.start(); in testDropCount()
164 new Handler(thread.getLooper()))); in testDropCount()
/cts/suite/audio_quality/lib/include/audio/
DRemoteAudio.h114 CommandHandler(RemoteAudio& thread, int command) in CommandHandler() argument
115 : mThread(thread), in CommandHandler()
/cts/tests/tests/opengl/src/android/opengl/cts/
DEglConfigCtsActivity.java99 Thread thread = new Thread() { in runConfigTests() local
129 thread.start(); in runConfigTests()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DDatabaseStatementTest.java288 StatementTestThread thread = new StatementTestThread(mDatabase, statement); in testStatementMultiThreaded() local
289 thread.start(); in testStatementMultiThreaded()
291 thread.join(); in testStatementMultiThreaded()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DNativeAudioThread.java213 Thread thread = new Thread(new Runnable() { in runDestroy() local
224 thread.start(); in runDestroy()
/cts/tests/tests/content/src/android/content/cts/
DContentQueryMapTest.java272 HandlerThread thread = new HandlerThread("testSetKeepUpdatedWithHandler"); in testSetKeepUpdatedWithHandler() local
273 thread.start(); in testSetKeepUpdatedWithHandler()
274 Handler handler = new Handler(thread.getLooper()); in testSetKeepUpdatedWithHandler()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp299 pthread_t thread; in TEST() local
300 EXPECT_EQ(0, pthread_create(&thread, NULL, clientFunction, &data)); in TEST()
313 EXPECT_EQ(0, pthread_join(thread, &ret_val)); in TEST()
/cts/hostsidetests/jvmti/allocation-tracking/app/src/android/jvmti/cts/
DJvmtiTrackingTest.java171 private static native void enableAllocationTracking(Thread thread, boolean enable); in enableAllocationTracking() argument
/cts/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp93 jthread thread ATTRIBUTE_UNUSED, in ClassPrepareCallback()

12