Home
last modified time | relevance | path

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

/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/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java60 HandlerThread thread = new HandlerThread("ServiceStartArguments", in onCreate() local
62 thread.start(); in onCreate()
65 mServiceLooper = thread.getLooper(); in onCreate()
/cts/hostsidetests/incident/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOService.java66 HandlerThread thread = new HandlerThread("ServiceStartArguments", in onCreate() local
68 thread.start(); in onCreate()
71 mServiceLooper = thread.getLooper(); in onCreate()
/cts/common/device-side/util/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/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.java278 final HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testClearKeyApis() local
279 thread.start(); in testClearKeyApis()
280 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis()
282 thread.interrupt(); in testClearKeyApis()
DDecodeAccuracyTestBase.java1387 private final HandlerThread thread; field in SurfaceViewSnapshot.SynchronousPixelCopy
1392 this.thread = new HandlerThread("PixelCopyHelper"); in SynchronousPixelCopy()
1393 thread.start(); in SynchronousPixelCopy()
1394 this.handler = new Handler(thread.getLooper()); in SynchronousPixelCopy()
1398 if (thread.isAlive()) { in release()
1399 thread.quit(); in release()
/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/suite/audio_quality/lib/include/audio/
DRemoteAudio.h114 CommandHandler(RemoteAudio& thread, int command) in CommandHandler() argument
115 : mThread(thread), in CommandHandler()
/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/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/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/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.cpp207 pthread_t thread; in testAHardwareBuffer_SendAndRecv_Succeeds() local
208 ASSERT_EQ(0, pthread_create(&thread, NULL, clientFunction, &data)); in testAHardwareBuffer_SendAndRecv_Succeeds()
221 ASSERT_EQ(0, pthread_join(thread, &ret_val)); in testAHardwareBuffer_SendAndRecv_Succeeds()
/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/allocation-tracking/app/src/android/jvmti/cts/
DJvmtiTrackingTest.java173 private static native void enableAllocationTracking(Thread thread, boolean enable); in enableAllocationTracking() argument
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java582 for (ShardThread thread : threads) { in testSingleModuleRun_sharded()
583 thread.join(5000); in testSingleModuleRun_sharded()
632 for (ShardThread thread : threads) { in testSingleModuleRun_sharded_incomplete()
633 thread.join(5000); in testSingleModuleRun_sharded_incomplete()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java640 HandlerThread thread = new HandlerThread("callback-thread"); in testCallback() local
641 thread.start(); in testCallback()
642 Handler handler = new Handler(thread.getLooper()); in testCallback()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/cts/tools/dex-tools/dex/
Dclasses0.out.dex19901 java.lang.Thread thread
53446 java.lang.Thread thread
54533 volatile java.lang.Thread thread