Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 49) 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 …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0837/
Dpoc.cpp73 pthread_t thread[MAX_NUMBER_OF_THREADS]; in main() local
77 pthread_create(&thread[i], nullptr, acquireSoundTriggerSessionThread, in main()
83 pthread_create(&thread[i], nullptr, releaseSoundTriggerSessionThread, in main()
89 pthread_join(thread[i], nullptr); in main()
/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/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 Slice sdkSlice = SliceQueriesKt.selectFirst(thread, in testBeginEndSection()
189 Slice ndkSlice = SliceQueriesKt.selectFirst(thread, in testBeginEndSection()
249 ThreadModel thread = findThread(result.getModel(), result.getPid()); in testTracingContent() local
250 SliceQueriesKt.iterSlices(thread, (Slice slice) -> { in testTracingContent()
/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateManagerTestBase.java73 final RequestAwareThread thread = new RequestAwareThread(request, runnable); in runWithRequestActive() local
74 thread.setUncaughtExceptionHandler(exceptionHandler); in runWithRequestActive()
77 isBaseStateRequest, thread)) { in runWithRequestActive() argument
79 thread.start(); in runWithRequestActive()
82 thread.join(); in runWithRequestActive()
/cts/hostsidetests/tagging/sdk_30/src/android/cts/tagging/sdk30/
DTestActivity.java58 Thread thread = new Thread() { in callActivity() local
74 thread.start(); in callActivity()
75 thread.join(50000 /* millis */); in callActivity()
/cts/tests/tests/gwp-asan/enabled/src/android/gwpasan/
DGwpAsanTestActivity.java51 Thread thread = new Thread() { in callActivity() local
67 thread.start(); in callActivity()
68 thread.join(20000 /* millis */); in callActivity()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DUtilsTest.java50 final HandlerThread thread = new HandlerThread("Tester"); in testListenerList() local
51 thread.start(); in testListenerList()
53 private final Handler mHandler = Handler.createAsync(thread.getLooper()); in testListenerList()
/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/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/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/misc/src/android/media/misc/cts/
DResourceManagerStubActivity.java78 Thread thread = new Thread() { in testReclaimResource() local
101 thread.start(); in testReclaimResource()
102 thread.join(20000 /* millis */); in testReclaimResource()
DMediaCasTest.java335 final HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testClearKeyApis() local
336 thread.start(); in testClearKeyApis()
337 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis()
343 thread.interrupt(); in testClearKeyApis()
572 final HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testResourceLostEvent() local
573 thread.start(); in testResourceLostEvent()
574 Handler handler = new Handler(thread.getLooper()); in testResourceLostEvent()
576 thread.interrupt(); in testResourceLostEvent()
594 HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testConstructWithEventListener() local
595 thread.start(); in testConstructWithEventListener()
[all …]
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdCtsForegroundService.java75 HandlerThread thread = new HandlerThread("ServiceStartArguments", in onCreate() local
77 thread.start(); in onCreate()
80 mServiceLooper = thread.getLooper(); in onCreate()
/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/hostsidetests/tagging/common/src/android/cts/tagging/
DServiceRunnerActivity.java127 Thread thread = new Thread() { in runServiceCommon() local
140 thread.start(); in runServiceCommon()
141 thread.join(50000 /* millis */); in runServiceCommon()
/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/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionHandlerTest.java151 try (InputConnectionHandlingThread thread = new InputConnectionHandlingThread(); in testCommitText() argument
162 super(thread.getHandler()); in testCommitText()
217 thread.getThreadId(), callingThreadId.get()); in testCommitText()
227 try (InputConnectionHandlingThread thread = new InputConnectionHandlingThread(); in testReportFullscreenMode() argument
239 super(thread.getHandler()); in testReportFullscreenMode()
307 thread.getThreadId(), callingThreadId.get()); in testReportFullscreenMode()
/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/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/hostsidetests/media/app/MediaExtractorTest/jni/
DMediaExtractorDeviceSideTestNative.cpp48 std::thread(mediaExtractorTask).join(); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
/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/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/opengl/src/android/opengl/cts/
DEglConfigCtsActivity.java99 Thread thread = new Thread() { in runConfigTests() local
129 thread.start(); in runConfigTests()
/cts/tests/input/src/android/input/cts/
DIncompleteMotionTest.kt42 import kotlin.concurrent.thread
108 val sendMoveAndFocus = thread(start = true) { in testIncompleteMotion()

12