Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 28) 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/libs/vogar-expect/src/vogar/util/
DThreads.java35 Thread thread = new Thread(r, name + "-" + (nextId++)); in daemonThreadFactory() local
36 thread.setDaemon(true); in daemonThreadFactory()
37 return thread; in daemonThreadFactory()
/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/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.java279 final HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testClearKeyApis() local
280 thread.start(); in testClearKeyApis()
281 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis()
283 thread.interrupt(); in testClearKeyApis()
DDecodeAccuracyTestBase.java1424 private final HandlerThread thread; field in SurfaceViewSnapshot.SynchronousPixelCopy
1429 this.thread = new HandlerThread("PixelCopyHelper"); in SynchronousPixelCopy()
1430 thread.start(); in SynchronousPixelCopy()
1431 this.handler = new Handler(thread.getLooper()); in SynchronousPixelCopy()
1435 if (thread.isAlive()) { in release()
1436 thread.quit(); in release()
/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/hostsidetests/jvmti/base/jni/
Dtracking.cpp45 jthread thread ATTRIBUTE_UNUSED, in ObjectAllocated()
71 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jboolean enable) { in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking() argument
75 thread); in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
/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/suite/audio_quality/lib/include/audio/
DRemoteAudio.h114 CommandHandler(RemoteAudio& thread, int command) in CommandHandler() argument
115 : mThread(thread), in CommandHandler()
/cts/tests/tests/webkit/src/android/webkit/cts/
DTracingControllerTest.java158 Thread thread = new Thread(r);
159 thread.setName(EXECUTOR_THREAD_PREFIX + "_" + threadCount.incrementAndGet());
160 return thread;
/cts/tests/tests/view/src/android/view/cts/
DFrameMetricsListenerTest.java152 final HandlerThread thread = new HandlerThread("Listener"); in testDropCount() local
153 thread.start(); in testDropCount()
163 new Handler(thread.getLooper()))); in testDropCount()
/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/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/hostsidetests/jvmti/run-tests/
DAndroid.mk30 src/1934-jvmti-signal-thread/src/art/Threads.java \
72 src/931-agent-thread/src/art/Test931.java \
112 src/1915-get-set-local-current-thread/src/art/Test1915.java \
128 src/1934-jvmti-signal-thread/src/art/Test1934.java \
129 src/1936-thread-end-events/src/art/Test1936.java \
/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/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp272 pthread_t thread; in TEST() local
273 EXPECT_EQ(0, pthread_create(&thread, NULL, clientFunction, &data)); in TEST()
286 EXPECT_EQ(0, pthread_join(thread, &ret_val)); in TEST()
/cts/hostsidetests/jvmti/allocation-tracking/app/src/android/jvmti/cts/
DJvmtiTrackingTest.java173 private static native void enableAllocationTracking(Thread thread, boolean enable); in enableAllocationTracking() argument
/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/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp93 jthread thread ATTRIBUTE_UNUSED, in ClassPrepareCallback()
/cts/hostsidetests/jvmti/base/run-test-based-app/src/android/jvmti/cts/
DJvmtiRunTestBasedTest.java95 main_thread.setUncaughtExceptionHandler((thread, e) -> { final_throw[0] = e; }); in testRunTest() argument
/cts/tests/jdwp/runner/host-side/resources/expectations/
Dexternal_oj_libjdwp_art_failures.txt8 description: "Test fails due to unexpectedly getting the thread-groups of zombie threads",

12