Home
last modified time | relevance | path

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

123

/dalvik/vm/
DThread.c222 static bool prepareThread(Thread* thread);
223 static void setThreadSelf(Thread* thread);
224 static void unlinkThread(Thread* thread);
225 static void freeThread(Thread* thread);
226 static void assignThreadId(Thread* thread);
227 static bool createFakeEntryFrame(Thread* thread);
228 static bool createFakeRunFrame(Thread* thread);
231 static void threadExitUncaughtException(Thread* thread, Object* group);
233 static void waitForThreadSuspend(Thread* self, Thread* thread);
244 Thread* thread; in dvmThreadStartup() local
[all …]
DDdm.c267 Thread* thread; in dvmDdmSetThreadNotification() local
268 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in dvmDdmSetThreadNotification()
270 dvmDdmSendThreadNotification(thread, true); in dvmDdmSetThreadNotification()
283 void dvmDdmSendThreadNotification(Thread* thread, bool started) in dvmDdmSendThreadNotification() argument
289 dvmGetFieldObject(thread->threadObj, gDvm.offJavaLangThread_name); in dvmDdmSendThreadNotification()
314 set4BE(&buf[0x00], thread->threadId); in dvmDdmSendThreadNotification()
326 set4BE(&buf[0x00], thread->threadId); in dvmDdmSendThreadNotification()
480 Thread* thread; in dvmDdmGenerateThreadStats() local
482 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) in dvmDdmGenerateThreadStats()
500 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in dvmDdmGenerateThreadStats()
[all …]
DException.h159 void* dvmFillInStackTraceInternal(Thread* thread, bool wantObject, int* pCount);
161 INLINE Object* dvmFillInStackTrace(Thread* thread) { in dvmFillInStackTrace() argument
162 return (Object*) dvmFillInStackTraceInternal(thread, true, NULL); in dvmFillInStackTrace()
166 INLINE int* dvmFillInStackTraceRaw(Thread* thread, int* pCount) { in dvmFillInStackTraceRaw() argument
167 return (int*) dvmFillInStackTraceInternal(thread, false, pCount); in dvmFillInStackTraceRaw()
DThread.h254 void dvmSuspendThread(Thread* thread);
256 void dvmResumeThread(Thread* thread);
264 bool dvmIsSuspended(Thread* thread);
269 void dvmWaitForSuspend(Thread* thread);
386 char* dvmGetThreadName(Thread* thread);
392 bool dvmIsOnThreadList(const Thread* thread);
408 void dvmChangeThreadPriority(Thread* thread, int newPriority);
414 void dvmDumpThread(Thread* thread, bool isRunning);
415 void dvmDumpThreadEx(const DebugOutputTarget* target, Thread* thread,
DDebugger.c1694 Thread* thread; in threadObjToThread() local
1696 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in threadObjToThread()
1697 if (thread->threadObj == threadObj) in threadObjToThread()
1701 return thread; in threadObjToThread()
1711 Thread* thread; in dvmDbgGetThreadStatus() local
1720 thread = threadObjToThread(threadObj); in dvmDbgGetThreadStatus()
1721 if (thread == NULL) in dvmDbgGetThreadStatus()
1724 switch (thread->status) { in dvmDbgGetThreadStatus()
1740 if (dvmIsSuspended(thread)) in dvmDbgGetThreadStatus()
1758 Thread* thread; in dvmDbgGetThreadSuspendCount() local
[all …]
DProfile.c240 Thread* thread; in resetCpuClockBase() local
243 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in resetCpuClockBase()
244 thread->cpuClockBaseSet = false; in resetCpuClockBase()
245 thread->cpuClockBase = 0; in resetCpuClockBase()
255 Thread* thread; in dumpThreadList() local
258 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in dumpThreadList()
259 char* name = dvmGetThreadName(thread); in dumpThreadList()
261 fprintf(fp, "%d\t%s\n", thread->threadId, name); in dumpThreadList()
/dalvik/vm/native/
Djava_lang_VMThread.c60 Thread* thread; in Dalvik_java_lang_VMThread_getStatus() local
64 thread = dvmGetThreadFromThreadObject(thisPtr); in Dalvik_java_lang_VMThread_getStatus()
65 if (thread != NULL) in Dalvik_java_lang_VMThread_getStatus()
66 result = thread->status; in Dalvik_java_lang_VMThread_getStatus()
84 Thread* thread; in Dalvik_java_lang_VMThread_holdsLock() local
92 thread = dvmGetThreadFromThreadObject(thisPtr); in Dalvik_java_lang_VMThread_holdsLock()
93 int result = dvmHoldsLock(thread, object); in Dalvik_java_lang_VMThread_holdsLock()
107 Thread* thread; in Dalvik_java_lang_VMThread_interrupt() local
110 thread = dvmGetThreadFromThreadObject(thisPtr); in Dalvik_java_lang_VMThread_interrupt()
111 if (thread != NULL) in Dalvik_java_lang_VMThread_interrupt()
[all …]
Ddalvik_system_VMStack.c168 Thread* thread; in Dalvik_dalvik_system_VMStack_getThreadStackTrace() local
178 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in Dalvik_dalvik_system_VMStack_getThreadStackTrace()
179 if (thread->threadObj == targetThreadObj) in Dalvik_dalvik_system_VMStack_getThreadStackTrace()
182 if (thread == NULL) { in Dalvik_dalvik_system_VMStack_getThreadStackTrace()
195 if (thread != self) in Dalvik_dalvik_system_VMStack_getThreadStackTrace()
196 dvmSuspendThread(thread); in Dalvik_dalvik_system_VMStack_getThreadStackTrace()
197 traceBuf = dvmFillInStackTraceRaw(thread, &stackDepth); in Dalvik_dalvik_system_VMStack_getThreadStackTrace()
198 if (thread != self) in Dalvik_dalvik_system_VMStack_getThreadStackTrace()
199 dvmResumeThread(thread); in Dalvik_dalvik_system_VMStack_getThreadStackTrace()
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/fortress/
DSecurityUtils.java73 public static void putContext(Thread thread, AccessControlContext context) in putContext() argument
75 if (thread == null) { in putContext()
79 if (ACC_CACHE.containsKey(thread)) { in putContext()
88 ACC_CACHE.put(thread, context); in putContext()
99 public static AccessControlContext getContext(Thread thread) in getContext() argument
111 return ACC_CACHE.get(thread); in getContext()
/dalvik/vm/interp/
DStack.h177 bool dvmInitInterpStack(Thread* thread, int stackSize);
183 bool dvmPushJNIFrame(Thread* thread, const Method* method);
188 bool dvmPushLocalFrame(Thread* thread, const Method* method);
189 bool dvmPopLocalFrame(Thread* thread);
232 int dvmComputeVagueFrameDepth(Thread* thread, const void* fp);
274 void dvmDumpThreadStack(const DebugOutputTarget* target, Thread* thread);
275 void dvmDumpRunningThreadStack(const DebugOutputTarget* target, Thread* thread);
DInterp.h26 void dvmInterpret(Thread* thread, const Method* method, JValue* pResult);
34 bool dvmAddSingleStep(Thread* thread, int size, int depth);
35 void dvmClearSingleStep(Thread* thread);
DInterp.c143 bool dvmAddSingleStep(Thread* thread, int size, int depth) in dvmAddSingleStep() argument
148 if (pCtrl->active && thread != pCtrl->thread) { in dvmAddSingleStep()
150 pCtrl->thread, thread); in dvmAddSingleStep()
165 pCtrl->thread = thread; in dvmAddSingleStep()
184 for (fp = thread->curFrame; fp != NULL; fp = saveArea->prevFrame) { in dvmAddSingleStep()
196 thread->threadId); in dvmAddSingleStep()
231 pCtrl->frameDepth = dvmComputeVagueFrameDepth(thread, thread->curFrame); in dvmAddSingleStep()
235 pCtrl->thread, pCtrl->method, pCtrl->method->name, in dvmAddSingleStep()
250 void dvmClearSingleStep(Thread* thread) in dvmClearSingleStep() argument
253 UNUSED_PARAMETER(thread); in dvmClearSingleStep()
DStack.c33 bool dvmInitInterpStack(Thread* thread, int stackSize) in dvmInitInterpStack() argument
35 assert(thread->interpStackStart != NULL); in dvmInitInterpStack()
37 assert(thread->curFrame == NULL); in dvmInitInterpStack()
840 int dvmComputeVagueFrameDepth(Thread* thread, const void* fp) in dvmComputeVagueFrameDepth() argument
842 const u1* interpStackStart = thread->interpStackStart; in dvmComputeVagueFrameDepth()
843 const u1* interpStackBottom = interpStackStart - thread->interpStackSize; in dvmComputeVagueFrameDepth()
1067 Thread* thread) in dumpFrames() argument
1114 (thread->status == THREAD_WAIT || in dumpFrames()
1115 thread->status == THREAD_TIMED_WAIT)) in dumpFrames()
1118 Monitor* mon = thread->waitMonitor; in dumpFrames()
[all …]
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DSocketHandlerTest.java190 ServerThread thread = new ServerThread(); in testConstructor_NoProperties() local
191 thread.start(); in testConstructor_NoProperties()
201 thread.getReadString(); in testConstructor_NoProperties()
238 ServerThread thread = new ServerThread(); in testConstructor_NoBasicProperties() local
239 thread.start(); in testConstructor_NoBasicProperties()
249 thread.getReadString(); in testConstructor_NoBasicProperties()
339 ServerThread thread = new ServerThread(); in testConstructor_ValidProperties() local
340 thread.start(); in testConstructor_ValidProperties()
350 thread.getReadString(); in testConstructor_ValidProperties()
353 thread = new ServerThread(); in testConstructor_ValidProperties()
[all …]
/dalvik/libcore/luni/src/test/java/com/google/coretests/
DCoreTestResult.java126 Thread thread = new Thread(runnable); in runProtected() local
127 thread.start(); in runProtected()
129 thread.join(fTimeout * 1000); in runProtected()
133 if (thread.isAlive()) { in runProtected()
135 thread.stop(); in runProtected()
137 thread.join(fTimeout * 1000); in runProtected()
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/locks/
DLockSupport.java92 public static void unpark(Thread thread) { in unpark() argument
93 if (thread != null) in unpark()
94 unsafe.unpark(thread); in unpark()
DAbstractQueuedSynchronizer.java409 volatile Thread thread; field in AbstractQueuedSynchronizer.Node
446 Node(Thread thread, Node mode) { // Used by addWaiter in Node() argument
448 this.thread = thread; in Node()
451 Node(Thread thread, int waitStatus) { // Used by Condition in Node() argument
453 this.thread = thread; in Node()
567 node.thread = null; in setHead()
588 Thread thread; in unparkSuccessor() local
591 thread = s.thread; in unparkSuccessor()
593 thread = null; in unparkSuccessor()
596 thread = s.thread; in unparkSuccessor()
[all …]
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DTestThread.java34 Thread thread = null; in launcher() local
38 thread = new Thread(this); in launcher()
39 thread.start(); in launcher()
41 thread.join(); in launcher()
DCipherThread.java61 Thread thread = null; in launcher() local
69 thread = new Thread(this); in launcher()
70 thread.start(); in launcher()
72 thread.join(); in launcher()
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/
DProcessManagerTest.java37 Thread thread = null; field in ProcessManagerTest
78 thread = new Thread() { in testSleep()
103 thread.interrupt(); in testSleep()
106 thread.start(); in testSleep()
119 thread.interrupt(); in testSleep()
168 Thread thread = new Thread() { in logErrors() local
183 thread.setDaemon(true); in logErrors()
184 thread.start(); in logErrors()
/dalvik/libcore/luni/src/main/java/java/lang/
DVMThread.java24 Thread thread; field in VMThread
28 thread = t; in VMThread()
50 VMThread.create(thread, stacksize); in start()
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
DLangAccessImpl.java42 public void unpark(Thread thread) { in unpark() argument
43 thread.unpark(); in unpark()
DThreadGroup.java212 final void add(Thread thread) throws IllegalThreadStateException { in add() argument
218 newThreads[numThreads++] = thread; in add()
221 childrenThreads[numThreads++] = thread; in add()
616 final void remove(java.lang.Thread thread) { in remove() argument
619 if (childrenThreads[i].equals(thread)) { in remove()
907 void addThread(Thread thread) throws IllegalThreadStateException { in addThread() argument
908 add(thread); in addThread()
922 void removeThread(Thread thread) throws IllegalThreadStateException { in removeThread() argument
923 remove(thread); in removeThread()
/dalvik/hit/src/com/android/hit/
DStackTrace.java37 public StackTrace(int serial, int thread, StackFrame[] frames) { in StackTrace() argument
39 mThreadSerialNumber = thread; in StackTrace()
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DThreadTest.java1147 Thread thread = new Thread() { in launchFiveSecondDummyThread() local
1157 thread.start(); in launchFiveSecondDummyThread()
1159 return thread; in launchFiveSecondDummyThread()
1183 Thread thread = launchFiveSecondDummyThread(); in test_resume() local
1192 Thread.State state = thread.getState(); in test_resume()
1193 thread.resume(); in test_resume()
1194 assertEquals(state, thread.getState()); in test_resume()
1200 thread.resume(); in test_resume()
1209 thread.join(); in test_resume()
1558 Thread thread = launchFiveSecondDummyThread(); in test_stop() local
[all …]

123