/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
PasvCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
29 * <li>Otherwise, request the Session to switch to passive data connection mode. Return a reply code of 227,
41 protected void handle(Command command, Session session) {
42 verifyLoggedIn(session);
44 int port = session.switchToPassiveMode();
45 InetAddress server = session.getServerHost();
49 sendReply(session, ReplyCodes.PASV_OK, "pasv", list(hostAndPort));
|
RmdCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
38 protected void handle(Command command, Session session) {
39 verifyLoggedIn(session);
40 String path = getRealPath(session, command.getRequiredParameter(0));
48 verifyWritePermission(session, getFileSystem().getParent(path));
51 sendReply(session, ReplyCodes.RMD_OK, "rmd", list(path));
|
AbstractStoreFileCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
47 protected void handle(Command command, Session session) {
48 verifyLoggedIn(session);
52 String path = getRealPath(session, filename);
59 verifyWritePermission(session, pathMustBeWritable);
62 verifyExecutePermission(session, parentPath);
64 sendReply(session, ReplyCodes.TRANSFER_DATA_INITIAL_OK);
66 session.openDataConnection(); [all...] |
StatCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
36 protected void handle(Command command, Session session) {
38 sendReply(session, ReplyCodes.STAT_SYSTEM_OK, "stat", list(systemStatus));
|
SystCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
38 protected void handle(Command command, Session session) {
39 sendReply(session, ReplyCodes.SYST_OK, "syst", list(getServerConfiguration().getSystemName()));
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/ |
_AbstractStubDataCommandHandlerTest.java | 22 import org.mockftpserver.core.session.Session;
49 private Session session;
field in class:_AbstractStubDataCommandHandlerTest 58 session.sendReply(150, REPLY_TEXT150);
59 session.openDataConnection();
60 session.sendReply(222, REPLY_TEXT222);
61 session.sendReply(333, REPLY_TEXT333);
62 session.sendReply(444, REPLY_TEXT444);
63 session.closeDataConnection(); [all...] |
EprtCommandHandlerTest.java | 43 session.setClientDataPort(PORT);
44 session.setClientDataHost(HOST_IPV4);
45 session.sendReply(ReplyCodes.EPRT_OK, replyTextFor(ReplyCodes.EPRT_OK));
46 replay(session);
48 commandHandler.handleCommand(COMMAND, session);
49 verify(session);
60 session.setClientDataPort(PORT);
61 session.setClientDataHost(HOST_IPV6);
62 session.sendReply(ReplyCodes.EPRT_OK, replyTextFor(ReplyCodes.EPRT_OK));
63 replay(session);
[all...] |
StatCommandHandlerTest.java | 40 session.sendReply(ReplyCodes.STAT_SYSTEM_OK, formattedReplyTextFor(ReplyCodes.STAT_SYSTEM_OK, RESPONSE_DATA));
41 replay(session);
45 commandHandler.handleCommand(COMMAND, session);
46 verify(session);
58 session.sendReply(ReplyCodes.STAT_FILE_OK, formattedReplyTextFor(ReplyCodes.STAT_FILE_OK, RESPONSE_DATA));
59 replay(session);
64 commandHandler.handleCommand(COMMAND, session);
65 verify(session);
76 session.sendReply(200, replyTextFor(200));
77 replay(session);
[all...] |
AborCommandHandlerTest.java | 38 session.sendReply(ReplyCodes.ABOR_OK, replyTextFor(ReplyCodes.ABOR_OK));
39 replay(session);
41 commandHandler.handleCommand(COMMAND, session);
42 verify(session);
|
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/ |
ReinCommandHandlerTest.java | 36 * Test the handleCommand(Command,Session) method
40 session.sendReply(ReplyCodes.REIN_OK, replyTextFor(ReplyCodes.REIN_OK));
41 session.sendReply(ReplyCodes.REIN_OK, replyTextFor(ReplyCodes.REIN_OK));
42 replay(session);
44 commandHandler.handleCommand(command1, session);
45 commandHandler.handleCommand(command2, session);
46 verify(session);
|
_AbstractStubDataCommandHandlerTest.java | 24 import org.mockftpserver.core.session.Session;
49 private Session session;
field in class:_AbstractStubDataCommandHandlerTest 58 session.sendReply(150, REPLY_TEXT150);
59 session.openDataConnection();
60 session.sendReply(222, REPLY_TEXT222);
61 session.sendReply(333, REPLY_TEXT333);
62 session.sendReply(444, REPLY_TEXT444);
63 session.closeDataConnection(); [all...] |
StatCommandHandlerTest.java | 42 session.sendReply(ReplyCodes.STAT_SYSTEM_OK, formattedReplyTextFor(ReplyCodes.STAT_SYSTEM_OK, RESPONSE_DATA));
43 replay(session);
47 commandHandler.handleCommand(COMMAND, session);
48 verify(session);
60 session.sendReply(ReplyCodes.STAT_FILE_OK, formattedReplyTextFor(ReplyCodes.STAT_FILE_OK, RESPONSE_DATA));
61 replay(session);
66 commandHandler.handleCommand(COMMAND, session);
67 verify(session);
78 session.sendReply(200, replyTextFor(200));
79 replay(session);
[all...] |
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
SipSessionListenerProxy.java | 47 public void onCalling(final ISipSession session) { 53 mListener.onCalling(session); 62 public void onRinging(final ISipSession session, final SipProfile caller, 69 mListener.onRinging(session, caller, sessionDescription); 78 public void onRingingBack(final ISipSession session) { 84 mListener.onRingingBack(session); 93 public void onCallEstablished(final ISipSession session, 100 mListener.onCallEstablished(session, sessionDescription); 109 public void onCallEnded(final ISipSession session) { 115 mListener.onCallEnded(session); [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/command/ |
StaticReplyCommandHandler.java | 18 import org.mockftpserver.core.session.Session;
63 * @see AbstractTrackingCommandHandler#handleCommand(Command, org.mockftpserver.core.session.Session, InvocationRecord)
65 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
66 sendReply(session);
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
StouCommandHandler.java | 19 import org.mockftpserver.core.session.Session;
44 * @see org.mockftpserver.stub.command.AbstractStubDataCommandHandler#sendFinalReply(org.mockftpserver.core.session.Session)
46 protected void sendFinalReply(Session session) {
48 sendReply(session, ReplyCodes.TRANSFER_DATA_FINAL_OK, FINAL_REPLY_TEXT_KEY, null, ARGS);
|
QuitCommandHandler.java | 22 import org.mockftpserver.core.session.Session;
41 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
42 sendReply(session);
43 session.close();
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
Camera2CaptureCallbackForwarder.java | 41 public void onCaptureCompleted(final CameraCaptureSession session, final CaptureRequest request, 46 mListener.onCaptureCompleted(session, request, result); 51 public void onCaptureFailed(final CameraCaptureSession session, final CaptureRequest request, 56 mListener.onCaptureFailed(session, request, failure); 61 public void onCaptureProgressed(final CameraCaptureSession session, 67 mListener.onCaptureProgressed(session, request, partialResult); 72 public void onCaptureSequenceAborted(final CameraCaptureSession session, final int sequenceId) { 76 mListener.onCaptureSequenceAborted(session, sequenceId); 81 public void onCaptureSequenceCompleted(final CameraCaptureSession session, final int sequenceId, 86 mListener.onCaptureSequenceCompleted(session, sequenceId, frameNumber) [all...] |
Camera2CaptureCallbackSplitter.java | 50 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, 53 target.onCaptureCompleted(session, request, result); 58 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, 61 target.onCaptureFailed(session, request, failure); 66 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, 69 target.onCaptureProgressed(session, request, partialResult); 74 public void onCaptureSequenceAborted(CameraCaptureSession session, int sequenceId) { 76 target.onCaptureSequenceAborted(session, sequenceId); 81 public void onCaptureSequenceCompleted(CameraCaptureSession session, int sequenceId, 84 target.onCaptureSequenceCompleted(session, sequenceId, frameNumber) [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
SSLServerSessionCache.java | 25 * a session started by a different server based on a session ID provided 30 * session data is dependent upon the caller's implementation and is opaque to 38 * Gets the session data for given session ID. 41 * @return the session data or null if none is cached 47 * Stores session data for the given session. 49 * @param session to cache data for 51 * @throws NullPointerException if session or data is nul [all...] |
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/ |
TestCommandHandler.groovy | 19 import org.mockftpserver.core.session.Session
31 protected void handle(Command command, Session session) {
|
TestCommandHandlerNotServerConfigurationAware.groovy | 20 import org.mockftpserver.core.session.Session
31 public void handleCommand(Command command, Session session) {
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
ConnectCommandHandlerTest.java | 31 session.sendReply(ReplyCodes.CONNECT_OK, replyTextFor(ReplyCodes.CONNECT_OK));
32 replay(session);
34 commandHandler.handleCommand(command1, session);
35 verify(session);
|
UnsupportedCommandHandlerTest.java | 31 session.sendReply(ReplyCodes.COMMAND_NOT_SUPPORTED, replyTextFor(ReplyCodes.COMMAND_NOT_SUPPORTED));
32 replay(session);
34 commandHandler.handleCommand(command1, session);
35 verify(session);
|
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/command/ |
QuitCommandHandler.java | 22 import org.mockftpserver.core.session.Session;
43 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(Command, Session, InvocationRecord)
45 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
46 sendReply(session);
47 session.close();
|
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
CaptureIntentSessionFactory.java | 21 import com.android.camera.session.CaptureSession; 22 import com.android.camera.session.CaptureSessionFactory; 23 import com.android.camera.session.CaptureSessionManager; 24 import com.android.camera.session.SessionNotifier;
|