/frameworks/base/docs/html/training/multiple-threads/ |
D | run-code.jd | 76 To stop a task, you need to interrupt the task's thread. To prepare to do this, you need to 94 To interrupt a thread, call {@link java.lang.Thread#interrupt Thread.interrupt()}. Notice that 97 interrupt it, by placing the access in a <code>synchronized</code> block. For example: 119 // if the Thread exists, post an interrupt to it 121 thread.interrupt(); 130 In most cases, {@link java.lang.Thread#interrupt Thread.interrupt()} stops the thread 131 immediately. However, it only stops threads that are waiting, and will not interrupt CPU or 133 any pending interrupt requests before attempting an operation :
|
/frameworks/base/core/java/com/android/server/ |
D | ResettableTimeout.java | 74 mThread.interrupt(); in go() 88 mThread.interrupt(); in cancel()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | ActionSendMultipleConsumerActivity.java | 100 Thread.currentThread().interrupt(); in CustomActionSendMultipleListener() 120 Thread.currentThread().interrupt(); in getExtras()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | AccessibilityManagerTest.java | 102 manager.interrupt(); in testInterrupt() 104 verify(mMockService).interrupt(UserHandle.USER_CURRENT); in testInterrupt()
|
/frameworks/base/core/java/android/content/ |
D | AbstractThreadedSyncAdapter.java | 353 syncThread.interrupt(); in onSyncCanceled() 367 thread.interrupt(); in onSyncCanceled()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLSurfaceView.java | 1653 Thread.currentThread().interrupt(); in requestRenderAndWait() 1674 Thread.currentThread().interrupt(); in surfaceCreated() 1691 Thread.currentThread().interrupt(); in surfaceDestroyed() 1711 Thread.currentThread().interrupt(); in onPause() 1733 Thread.currentThread().interrupt(); in onResume() 1767 Thread.currentThread().interrupt(); in onWindowResize() 1783 Thread.currentThread().interrupt(); in requestExitAndWait()
|
/frameworks/base/core/java/android/os/ |
D | SystemClock.java | 132 Thread.currentThread().interrupt(); in sleep()
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/ |
D | TestContentResolver.java | 77 Thread.currentThread().interrupt(); in notifyChange()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | IAccessibilityManager.aidl | 46 void interrupt(int userId); in interrupt() method
|
D | AccessibilityManager.java | 336 public void interrupt() { in interrupt() method in AccessibilityManager 350 service.interrupt(userId); in interrupt()
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/ |
D | AccessibilityManager.java | 156 public void interrupt() { in interrupt() method in AccessibilityManager
|
/frameworks/base/core/java/android/speech/tts/ |
D | AudioPlaybackHandler.java | 89 mHandlerThread.interrupt(); in quit()
|
/frameworks/volley/src/main/java/com/android/volley/ |
D | CacheDispatcher.java | 75 interrupt(); in quit()
|
D | NetworkDispatcher.java | 71 interrupt(); in quit()
|
/frameworks/av/include/media/stagefright/foundation/ |
D | ANetworkSession.h | 126 void interrupt();
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | CanvasTextureViewActivity.java | 117 interrupt(); in stopRendering()
|
D | HardwareCanvasTextureViewActivity.java | 120 interrupt(); in stopRendering()
|
D | HardwareCanvasSurfaceViewActivity.java | 157 interrupt(); in stopRendering()
|
/frameworks/av/media/libstagefright/foundation/ |
D | ANetworkSession.cpp | 843 interrupt(); in stop() 942 interrupt(); in destroySession() 1153 interrupt(); in createClientOrServer() 1220 interrupt(); in sendRequest() 1238 void ANetworkSession::interrupt() { in interrupt() function in android::ANetworkSession
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
D | BluetoothMnsService.java | 184 mAcceptThread.interrupt(); in unregisterCallback()
|
D | BluetoothMasClient.java | 487 public void interrupt() { in interrupt() method in BluetoothMasClient.SocketConnectThread 640 mConnectThread.interrupt(); in disconnect()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | SecurityLogMonitor.java | 105 mMonitorThread.interrupt(); in stop()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockLooper.java | 264 mAutoDispatchThread.interrupt(); in stopAutoDispatch()
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecSource.cpp | 180 bool interrupt = false; in stop() local 186 …interrupt = queue->mReadPendingSince && (queue->mReadPendingSince < ALooper::GetNowUs() - 1000000); in stop() 190 if (interrupt) { in stop()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ViewServer.java | 128 mThread.interrupt(); in stop()
|