Home
last modified time | relevance | path

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

123

/cts/hostsidetests/gwp_asan/common/android/cts/gwp_asan/
DTestActivityLauncher.java44 Thread thread = in callActivity() local
53 thread.start(); in callActivity()
57 Thread thread = in callActivityAndCheckSuccess() local
74 thread.start(); in callActivityAndCheckSuccess()
75 thread.join(50000 /* millis */); in callActivityAndCheckSuccess()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DResourceManagerStubActivity.java150 Thread thread = new Thread() { in testReclaimResource() local
173 thread.start(); in testReclaimResource()
175 thread.join(); in testReclaimResource()
183 Thread thread = new Thread() { in testVideoCodecReclaim() local
212 thread.start(); in testVideoCodecReclaim()
214 thread.join(); in testVideoCodecReclaim()
223 Thread thread = new Thread() { in doTestReclaimResource() local
253 thread.start(); in doTestReclaimResource()
255 thread.join(); in doTestReclaimResource()
273 Thread thread = new Thread() { in doTestCodecImportanceReclaimResource() local
[all …]
DMediaCasTest.java355 final HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testClearKeyApis() local
356 thread.start(); in testClearKeyApis()
357 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis()
363 thread.interrupt(); in testClearKeyApis()
609 final HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testResourceLostEvent() local
610 thread.start(); in testResourceLostEvent()
611 Handler handler = new Handler(thread.getLooper()); in testResourceLostEvent()
613 thread.interrupt(); in testResourceLostEvent()
632 HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); in testConstructWithEventListener() local
633 thread.start(); in testConstructWithEventListener()
[all …]
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp59 jthread thread, jobject object, jclass object_klass, in ObjectAllocatedGlobal() argument
65 if (!jni_env->IsSameObject(thread, gExpectedThread)) { in ObjectAllocatedGlobal()
72 jthread thread, jobject object, jclass object_klass, in ObjectAllocatedThread() argument
74 CHECK(jni_env->IsSameObject(thread, gExpectedThread)); in ObjectAllocatedThread()
93 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jboolean enable) { in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking() argument
97 thread); in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
99 if (thread == nullptr) { in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
106 gExpectedThread = env->NewGlobalRef(thread); in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
/cts/tests/tests/os/src/android/os/cts/
DMessageQueueTest.java150 HandlerThread thread = new HandlerThread("testIsIdle"); in testIsIdle() local
151 thread.start(); in testIsIdle()
154 assertTrue(thread.getLooper().getQueue().isIdle()); in testIsIdle()
159 Handler handler = new Handler(thread.getLooper()); in testIsIdle()
179 assertFalse(thread.getLooper().getQueue().isIdle()); in testIsIdle()
185 assertTrue(thread.getLooper().getQueue().isIdle()); in testIsIdle()
187 thread.quitSafely(); in testIsIdle()
340 AssertableHandlerThread thread = new AssertableHandlerThread(); in testFileDescriptorCallbacks() local
341 thread.start(); in testFileDescriptorCallbacks()
345 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/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/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/atrace/src/android/atrace/cts/
DAtraceHostTest.java153 for (ThreadModel thread : process.getThreads()) { in findThread()
154 if (thread.getId() == id) { in findThread()
155 return thread; in findThread()
185 ThreadModel thread = findThread(result.getModel(), result.getTid()); in testBeginEndSection() local
186 assertNotNull(thread); in testBeginEndSection()
187 Slice sdkSlice = SliceQueriesKt.selectFirst(thread, in testBeginEndSection()
190 Slice ndkSlice = SliceQueriesKt.selectFirst(thread, in testBeginEndSection()
250 ThreadModel thread = findThread(result.getModel(), result.getPid()); in testTracingContent() local
251 SliceQueriesKt.iterSlices(thread, (Slice slice) -> { in testTracingContent()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecAsyncHelper.java38 Thread thread = new Thread(new Runnable() { in runThread() local
44 thread.setUncaughtExceptionHandler((Thread t, Throwable e) -> { in runThread()
47 thread.start(); in runThread()
48 thread.join(TIMEOUT_MS); in runThread()
/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()
229 try (InputConnectionHandlingThread thread = new InputConnectionHandlingThread(); in testCloseConnectionWithRestartInput() argument
263 return new HandlerInputConnection(thread.getHandler()) { in testCloseConnectionWithRestartInput()
296 thread.getThreadId(), callingThreadId.get()); in testCloseConnectionWithRestartInput()
308 try (InputConnectionHandlingThread thread = new InputConnectionHandlingThread(); in testCloseConnectionWithLosingViewFocus() argument
341 return new HandlerInputConnection(thread.getHandler()) { in testCloseConnectionWithLosingViewFocus()
373 thread.getThreadId(), callingThreadId.get()); in testCloseConnectionWithLosingViewFocus()
386 try (InputConnectionHandlingThread thread = new InputConnectionHandlingThread(); in testCloseConnectionWithLosingWindowFocus() argument
[all …]
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DUtilsTest.java56 final HandlerThread thread = new HandlerThread("Tester"); in testListenerList() local
57 thread.start(); in testListenerList()
59 private final Handler mHandler = Handler.createAsync(thread.getLooper()); in testListenerList()
/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/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/tests/devicepolicy/src/android/devicepolicy/cts/
DThreadNetworkTest.java20 import static android.net.thread.ThreadNetworkException.ERROR_FAILED_PRECONDITION;
28 import android.net.thread.ThreadNetworkController;
29 import android.net.thread.ThreadNetworkException;
30 import android.net.thread.ThreadNetworkManager;
50 import com.android.net.thread.platform.flags.Flags;
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceTest.kt54 val thread = LaunchActivityThread(activityIntent) in testRemoteProcessActivityPidCheck() constant
56 thread.start() in testRemoteProcessActivityPidCheck()
57 thread.join() in testRemoteProcessActivityPidCheck()
62 thread.getResultCode() in testRemoteProcessActivityPidCheck()
/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/theme/src/android/theme/cts/
DThemeHostTest.java229 Thread thread = new Thread(() -> { in generateDeviceImages() local
238 thread.start(); in generateDeviceImages()
241 thread.join(30_000); in generateDeviceImages()
251 thread.join(); in generateDeviceImages()
253 thread.join(); // test was started, so wait for it to finish in generateDeviceImages()
/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/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java39 HandlerThread thread = new HandlerThread("PixelCopyHelper");
40 thread.start(); in thread.start()
41 sHandler = new Handler(thread.getLooper());
/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/companion/multidevice/client/src/android/companion/cts/multidevice/
DBluetoothConnector.kt89 for (thread in serverThreads.values) { in closeAllSockets() constant
90 thread.shutdown() in closeAllSockets()
/cts/hostsidetests/media/app/MediaExtractorTest/jni/
DMediaExtractorDeviceSideTestNative.cpp48 std::thread(mediaExtractorTask).join(); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()

123