Lines Matching refs:state
114 static bool startup(struct JdwpState* state, const JdwpStartupParams* pParams)
120 state->netState = netState = new JdwpNetState;
186 static bool acceptConnection(struct JdwpState* state)
188 JdwpNetState* netState = state->netState;
293 static bool establishConnection(struct JdwpState* state)
302 static void closeConnection(struct JdwpState* state)
306 assert(state != NULL && state->netState != NULL);
308 netState = state->netState;
352 static void netShutdown(JdwpState* state)
354 adbStateShutdown(state->netState);
358 * Free up anything we put in state->netState. This is called after
361 static void netFree(struct JdwpState* state)
363 JdwpNetState* netState = state->netState;
371 static bool isConnected(struct JdwpState* state)
373 return (state->netState != NULL &&
374 state->netState->clientSock >= 0);
380 static bool awaitingHandshake(struct JdwpState* state)
382 return state->netState->awaitingHandshake;
426 static bool handlePacket(JdwpState* state)
428 JdwpNetState* netState = state->netState;
461 dvmJdwpProcessRequest(state, &hdr, buf, dataLen, pReply);
500 static bool processIncoming(JdwpState* state)
502 JdwpNetState* netState = state->netState;
649 return handlePacket(state);
652 closeConnection(state);
664 static bool sendRequest(JdwpState* state, ExpandBuf* pReq)
666 JdwpNetState* netState = state->netState;
695 static bool sendBufferedRequest(JdwpState* state, const struct iovec* iov,
698 JdwpNetState* netState = state->netState;