Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 51) sorted by relevance

123

/dalvik/vm/jdwp/
DJdwpMain.cpp76 JdwpState* state = NULL; in dvmJdwpStartup() local
81 state = (JdwpState*) calloc(1, sizeof(JdwpState)); in dvmJdwpStartup()
83 state->params = *pParams; in dvmJdwpStartup()
85 state->requestSerial = 0x10000000; in dvmJdwpStartup()
86 state->eventSerial = 0x20000000; in dvmJdwpStartup()
87 dvmDbgInitMutex(&state->threadStartLock); in dvmJdwpStartup()
88 dvmDbgInitMutex(&state->attachLock); in dvmJdwpStartup()
89 dvmDbgInitMutex(&state->serialLock); in dvmJdwpStartup()
90 dvmDbgInitMutex(&state->eventLock); in dvmJdwpStartup()
91 state->eventThreadId = 0; in dvmJdwpStartup()
[all …]
DJdwpPriv.h52 bool (*startup)(struct JdwpState* state, const JdwpStartupParams* pParams);
53 bool (*accept)(struct JdwpState* state);
54 bool (*establish)(struct JdwpState* state);
55 void (*close)(struct JdwpState* state);
56 void (*shutdown)(struct JdwpState* state);
57 void (*free)(struct JdwpState* state);
58 bool (*isConnected)(struct JdwpState* state);
59 bool (*awaitingHandshake)(struct JdwpState* state);
60 bool (*processIncoming)(struct JdwpState* state);
61 bool (*sendRequest)(struct JdwpState* state, ExpandBuf* pReq);
[all …]
DJdwpEvent.cpp119 u4 dvmJdwpNextRequestSerial(JdwpState* state) in dvmJdwpNextRequestSerial() argument
121 dvmDbgLockMutex(&state->serialLock); in dvmJdwpNextRequestSerial()
122 u4 result = state->requestSerial++; in dvmJdwpNextRequestSerial()
123 dvmDbgUnlockMutex(&state->serialLock); in dvmJdwpNextRequestSerial()
132 u4 dvmJdwpNextEventSerial(JdwpState* state) in dvmJdwpNextEventSerial() argument
134 dvmDbgLockMutex(&state->serialLock); in dvmJdwpNextEventSerial()
135 u4 result = state->eventSerial++; in dvmJdwpNextEventSerial()
136 dvmDbgUnlockMutex(&state->serialLock); in dvmJdwpNextEventSerial()
144 static void lockEventMutex(JdwpState* state) in lockEventMutex() argument
147 dvmDbgLockMutex(&state->eventLock); in lockEventMutex()
[all …]
DJdwp.h121 void dvmJdwpShutdown(JdwpState* state);
126 bool dvmJdwpIsActive(JdwpState* state);
132 pthread_t dvmJdwpGetDebugThread(JdwpState* state);
137 s8 dvmJdwpLastDebuggerActivity(JdwpState* state);
159 void dvmJdwpSetWaitForEventThread(JdwpState* state, ObjectId threadId);
160 void dvmJdwpClearWaitForEventThread(JdwpState* state);
165 bool dvmJdwpCheckConnection(JdwpState* state);
166 bool dvmJdwpAcceptConnection(JdwpState* state);
167 bool dvmJdwpEstablishConnection(JdwpState* state);
168 void dvmJdwpCloseConnection(JdwpState* state);
[all …]
DJdwpSocket.cpp44 static void netShutdown(JdwpNetState* state);
45 static void netFree(JdwpNetState* state);
85 static bool prepareSocket(JdwpState* state, const JdwpStartupParams* pParams) in prepareSocket() argument
93 state->netState = netStartup(port); in prepareSocket()
97 state->netState = netStartup(port); in prepareSocket()
98 if (state->netState != NULL) in prepareSocket()
102 if (state->netState == NULL) { in prepareSocket()
108 state->netState = netStartup(-1); in prepareSocket()
124 static bool awaitingHandshake(JdwpState* state) in awaitingHandshake() argument
126 return state->netState->awaitingHandshake; in awaitingHandshake()
[all …]
DJdwpAdb.cpp114 static bool startup(struct JdwpState* state, const JdwpStartupParams* pParams) in startup() argument
120 state->netState = netState = new JdwpNetState; in startup()
186 static bool acceptConnection(struct JdwpState* state) in acceptConnection() argument
188 JdwpNetState* netState = state->netState; in acceptConnection()
293 static bool establishConnection(struct JdwpState* state) in establishConnection() argument
302 static void closeConnection(struct JdwpState* state) in closeConnection() argument
306 assert(state != NULL && state->netState != NULL); in closeConnection()
308 netState = state->netState; in closeConnection()
352 static void netShutdown(JdwpState* state) in netShutdown() argument
354 adbStateShutdown(state->netState); in netShutdown()
[all …]
DJdwpHandler.cpp102 static JdwpError finishInvoke(JdwpState* state, in finishInvoke() argument
184 static JdwpError handleVM_Version(JdwpState* state, const u1* buf, in handleVM_Version() argument
209 static JdwpError handleVM_ClassesBySignature(JdwpState* state, in handleVM_ClassesBySignature() argument
258 static JdwpError handleVM_AllThreads(JdwpState* state, in handleVM_AllThreads() argument
280 static JdwpError handleVM_TopLevelThreadGroups(JdwpState* state, in handleVM_TopLevelThreadGroups() argument
304 static JdwpError handleVM_IDSizes(JdwpState* state, in handleVM_IDSizes() argument
321 static JdwpError handleVM_Dispose(JdwpState* state, in handleVM_Dispose() argument
333 static JdwpError handleVM_Suspend(JdwpState* state, in handleVM_Suspend() argument
343 static JdwpError handleVM_Resume(JdwpState* state, in handleVM_Resume() argument
353 static JdwpError handleVM_Exit(JdwpState* state, in handleVM_Exit() argument
[all …]
DJdwpEvent.h110 JdwpError dvmJdwpRegisterEvent(JdwpState* state, JdwpEvent* pEvent);
115 void dvmJdwpUnregisterEventById(JdwpState* state, u4 requestId);
120 void dvmJdwpUnregisterAll(JdwpState* state);
127 bool dvmJdwpSendRequest(JdwpState* state, ExpandBuf* pReq);
DJdwpHandler.h41 void dvmJdwpProcessRequest(JdwpState* state, const JdwpReqHeader* pHeader,
/dalvik/vm/
DProfile.cpp364 MethodTraceState* state = &gDvm.methodTrace; in dvmMethodTraceStart() local
368 dvmLockMutex(&state->startStopLock); in dvmMethodTraceStart()
369 while (state->traceEnabled != 0) { in dvmMethodTraceStart()
371 dvmUnlockMutex(&state->startStopLock); in dvmMethodTraceStart()
373 dvmLockMutex(&state->startStopLock); in dvmMethodTraceStart()
383 state->buf = (u1*) malloc(bufferSize); in dvmMethodTraceStart()
384 if (state->buf == NULL) { in dvmMethodTraceStart()
390 state->traceFile = fopen(traceFileName, "w"); in dvmMethodTraceStart()
392 state->traceFile = fdopen(traceFd, "w"); in dvmMethodTraceStart()
394 if (state->traceFile == NULL) { in dvmMethodTraceStart()
[all …]
/dalvik/libdex/
DDexSwapVerify.cpp92 static inline u4 fileOffset(const CheckState* state, const void* ptr) { in fileOffset() argument
93 return ((const u1*) ptr) - state->fileStart; in fileOffset()
99 static inline void* filePointer(const CheckState* state, u4 offset) { in filePointer() argument
100 return (void*) (state->fileStart + offset); in filePointer()
111 static inline bool checkPtrRange(const CheckState* state, in checkPtrRange() argument
113 const void* fileStart = state->fileStart; in checkPtrRange()
114 const void* fileEnd = state->fileEnd; in checkPtrRange()
118 fileOffset(state, start), fileOffset(state, end)); in checkPtrRange()
134 const u1* _startPtr = (const u1*) filePointer(state, (_start)); \
135 const u1* _endPtr = (const u1*) filePointer(state, (_end)); \
[all …]
Dsha1.cpp107 static void SHA1Transform(unsigned long state[5],
135 static void SHA1Transform(unsigned long state[5], in SHA1Transform()
152 a = state[0]; in SHA1Transform()
153 b = state[1]; in SHA1Transform()
154 c = state[2]; in SHA1Transform()
155 d = state[3]; in SHA1Transform()
156 e = state[4]; in SHA1Transform()
187 state[0] += a; in SHA1Transform()
188 state[1] += b; in SHA1Transform()
189 state[2] += c; in SHA1Transform()
[all …]
Dsha1.h8 unsigned long state[5]; member
/dalvik/hit/src/com/android/hit/
DMain.java37 State state = (new HprofParser(dis)).parse(); in main() local
41 testClassesQuery(state); in main()
42 testAllClassesQuery(state); in main()
43 testFindInstancesOf(state); in main()
44 testFindAllInstancesOf(state); in main()
50 private static void testClassesQuery(State state) { in testClassesQuery() argument
57 Map<String, Set<ClassObj>> someClasses = Queries.classes(state, x); in testClassesQuery()
70 private static void testAllClassesQuery(State state) { in testAllClassesQuery() argument
71 Map<String, Set<ClassObj>> allClasses = Queries.allClasses(state); in testAllClassesQuery()
84 private static void testFindInstancesOf(State state) { in testFindInstancesOf() argument
[all …]
DQueries.java66 public static Map<String, Set<ClassObj>> allClasses(State state) { in allClasses() argument
67 return classes(state, null); in allClasses()
70 public static Map<String, Set<ClassObj>> classes(State state, in classes() argument
78 for (Heap heap: state.mHeaps.values()) { in classes()
127 public static ClassObj findClass(State state, String name) { in findClass() argument
128 return state.findClass(name); in findClass()
135 public static Instance[] instancesOf(State state, String baseClassName) { in instancesOf() argument
136 ClassObj theClass = state.findClass(baseClassName); in instancesOf()
152 public static Instance[] allInstancesOf(State state, String baseClassName) { in allInstancesOf() argument
153 ClassObj theClass = state.findClass(baseClassName); in allInstancesOf()
[all …]
DRootObj.java48 public final String getClassName(State state) { in getClassName() argument
52 theClass = state.findClass(mId); in getClassName()
54 Instance instance = state.findReference(mId); in getClassName()
56 theClass = state.findClass(instance.mClassId); in getClassName()
99 public final void resolveReferences(State state) { in resolveReferences() argument
DClassInstance.java40 public void resolveReferences(State state) { in resolveReferences() argument
43 resolve(state, isa, isa.mStaticFieldTypes, isa.mStaticFieldValues); in resolveReferences()
44 resolve(state, isa, isa.mFieldTypes, mFieldValues); in resolveReferences()
47 private void resolve(State state, ClassObj isa, int[] types, in resolve() argument
71 Instance instance = state.findReference(id); in resolve()
106 State state = mHeap.mState; in visit() local
107 ClassObj isa = state.findClass(mClassId); in visit()
131 Instance instance = state.findReference(id); in visit()
DHeap.java153 public final void resolveInstanceRefs(State state) { in resolveInstanceRefs() argument
170 instance.resolveReferences(state); in resolveInstanceRefs()
174 public final void resolveClassStatics(State state) { in resolveClassStatics() argument
176 theClass.resolveReferences(state); in resolveClassStatics()
180 public final void resolveRoots(State state) { in resolveRoots() argument
182 root.resolveReferences(state); in resolveRoots()
DArrayInstance.java37 public final void resolveReferences(State state) { in resolveReferences() argument
62 Instance instance = state.findReference(id); in resolveReferences()
106 State state = mHeap.mState; in visit() local
118 Instance instance = state.findReference(id); in visit()
DClassObj.java48 public final void resolveReferences(State state) { in resolveReferences() argument
82 Instance instance = state.findReference(id); in resolveReferences()
107 ClassObj superclass = state.findClass(mSuperclassId); in resolveReferences()
196 State state = mHeap.mState; in visit() local
216 Instance instance = state.findReference(id); in visit()
/dalvik/vm/alloc/
DDdmHeap.cpp214 static void append_chunk(HeapChunkContext *ctx, u1 state, void* ptr, size_t length) { in append_chunk() argument
264 *ctx->p++ = state | HPSG_PARTIAL; in append_chunk()
268 *ctx->p++ = state; in append_chunk()
283 u1 state; in heap_chunk_callback() local
336 state = HPSG_STATE(SOLIDITY_HARD, KIND_OBJECT); in heap_chunk_callback()
338 state = HPSG_STATE(SOLIDITY_HARD, KIND_CLASS_OBJECT); in heap_chunk_callback()
341 state = HPSG_STATE(SOLIDITY_HARD, KIND_ARRAY_4); in heap_chunk_callback()
346 state = HPSG_STATE(SOLIDITY_HARD, KIND_ARRAY_1); in heap_chunk_callback()
350 state = HPSG_STATE(SOLIDITY_HARD, KIND_ARRAY_2); in heap_chunk_callback()
354 state = HPSG_STATE(SOLIDITY_HARD, KIND_ARRAY_4); in heap_chunk_callback()
[all …]
/dalvik/vm/mterp/armv5te/
Dentry.S70 mov r1, #0 @ prepare the value for the new state
76 ldr r2, [rSELF, #offThread_shadowSpace] @ to find out the jit exit state
78 ldr r3, [r2, #offShadowSpace_jitExitState] @ jit exit state
/dalvik/vm/mterp/mips/
Dentry.S63 lw a2, offThread_shadowSpace(rSELF) # to find out the jit exit state
65 lw a3, offShadowSpace_jitExitState(a2) # jit exit state
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DLocalVariableExtractor.java183 RegisterSpecSet state = (succ == primarySuccessor) ? in processBlock() local
186 if (resultInfo.mergeStarts(succ, state)) { in processBlock()
/dalvik/dx/src/com/android/dx/rop/code/
DLocalVariableExtractor.java183 RegisterSpecSet state = (succ == primarySuccessor) ? in processBlock() local
186 if (resultInfo.mergeStarts(succ, state)) { in processBlock()

123