HomeSort by relevance Sort by last modified time
    Searched refs:session (Results 51 - 75 of 1550) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/
DeleCommandHandler.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));
46 verifyWritePermission(session, getFileSystem().getParent(path));
49 sendReply(session, ReplyCodes.DELE_OK, "dele", list(path));
EpsvCommandHandler.java 20 import org.mockftpserver.core.session.Session;
28 * <li>Otherwise, request the Session to switch to passive data connection mode. Return a reply code
39 protected void handle(Command command, Session session) {
40 verifyLoggedIn(session);
41 int port = session.switchToPassiveMode();
42 InetAddress server = session.getServerHost();
44 sendReply(session, ReplyCodes.EPSV_OK, "epsv", list(Integer.toString(port)));
TypeCommandHandler.java 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
35 protected void handle(Command command, Session session) {
36 verifyLoggedIn(session);
39 session.setAttribute(SessionKeys.ASCII_TYPE, Boolean.valueOf(asciiType));
40 sendReply(session, ReplyCodes.TYPE_OK, "type");
CdupCommandHandler.java 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
29 * <li>Otherwise, reply with 200 and change the current directory stored in the session to the parent directory</li>
37 protected void handle(Command command, Session session) {
38 verifyLoggedIn(session);
39 String currentDirectory = (String) getRequiredSessionAttribute(session, SessionKeys.CURRENT_DIRECTORY);
47 verifyExecutePermission(session, path);
49 session.setAttribute(SessionKeys.CURRENT_DIRECTORY, path);
    [all...]
CwdCommandHandler.java 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
30 * <li>Otherwise, reply with 250 and change the current directory stored in the session</li>
39 protected void handle(Command command, Session session) {
40 verifyLoggedIn(session);
41 String path = getRealPath(session, command.getRequiredParameter(0));
48 verifyExecutePermission(session, path);
50 session.setAttribute(SessionKeys.CURRENT_DIRECTORY, path);
    [all...]
MkdCommandHandler.java 20 import org.mockftpserver.core.session.Session;
40 protected void handle(Command command, Session session) {
41 verifyLoggedIn(session);
42 String path = getRealPath(session, command.getRequiredParameter(0));
50 verifyWritePermission(session, parent);
53 verifyExecutePermission(session, parent);
57 dirEntry.setPermissions(getUserAccount(session).getDefaultPermissionsForNewDirectory());
59 sendReply(session, ReplyCodes.MKD_OK, "mkd", list(path));
    [all...]
RnfrCommandHandler.java 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
30 * <li>Otherwise, reply with 350 and store the FROM path in the session</li>
39 protected void handle(Command command, Session session) {
40 verifyLoggedIn(session);
41 String fromPath = getRealPath(session, command.getRequiredParameter(0));
47 verifyReadPermission(session, fromPath);
49 session.setAttribute(SessionKeys.RENAME_FROM, fromPath);
    [all...]
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/
_AbstractStaticReplyCommandHandlerTest.java 21 import org.mockftpserver.core.session.Session;
50 private Session session; field in class:_AbstractStaticReplyCommandHandlerTest
53 * Test the sendReply(Session) method
56 session.sendReply(REPLY_CODE1, REPLY_TEXT1);
57 replay(session);
60 commandHandler.sendReply(session);
61 verify(session);
65 * Test the sendReply(Session) method, when the replyText has been set
    [all...]
_AbstractTrackingCommandHandlerTest.java 21 import org.mockftpserver.core.session.Session;
54 private Session session; field in class:_AbstractTrackingCommandHandlerTest
57 * Test the handleCommand(Command,Session) method
61 commandHandler.handleCommand(COMMAND, session);
67 * Test the handleCommand(Command,Session) method, passing in a null Command
71 commandHandler.handleCommand(null, session);
80 * Test the handleCommand(Command,Session) method, passing in a null Session
    [all...]
  /external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/
_AbstractStubCommandHandlerTest.java 25 import org.mockftpserver.core.session.Session;
51 private Session session; field in class:_AbstractStubCommandHandlerTest
55 * Test the sendReply(Session) method
58 session.sendReply(REPLY_CODE1, REPLY_TEXT1);
59 replay(session);
62 commandHandler.sendReply(session);
63 verify(session);
67 * Test the sendReply(Session) method, when the replyText has been set
    [all...]
  /packages/apps/DevCamera/src/com/android/devcamera/
LoggingCallbacks.java 65 public void onConfigured(CameraCaptureSession session) {
67 Log.v(TAG, "Capture session callback onConfigured("+session+")");
72 public void onConfigureFailed(CameraCaptureSession session) {
73 Log.v(TAG, "Capture session callback onConfigureFailed("+session+")");
74 super.onReady(session);
78 public void onReady(CameraCaptureSession session) {
80 Log.v(TAG, "Capture session callback onReady("+session+")")
    [all...]
  /external/tpm2/
PolicyDuplicationSelect.c 22 SESSION *session; local
28 // Get pointer to the session structure
29 session = SessionGet(in->policySession);
31 // cpHash in session context must be empty
32 if(session->u1.cpHash.t.size != 0)
35 // commandCode in session context must be empty
36 if(session->commandCode != 0)
42 session->u1.cpHash.t.size = CryptStartHash(session->authHashAlg, &hashState)
    [all...]
PolicyCommandCode.c 21 SESSION *session; local
27 // Get pointer to the session structure
28 session = SessionGet(in->policySession);
30 if(session->commandCode != 0 && session->commandCode != in->code)
39 CryptStartHash(session->authHashAlg, &hashState);
42 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
51 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
53 // update commandCode value in session contex
    [all...]
  /external/guice/extensions/persist/test/com/google/inject/persist/jpa/
ClassLevelManagedLocalTransactionsTest.java 65 EntityManager session = injector.getInstance(EntityManager.class); local
67 session.getTransaction().isActive());
70 session.getTransaction().begin();
71 Object result = session.createQuery("from JpaTestEntity where text = :text")
74 session.getTransaction().commit();
89 EntityManager session = injector.getInstance(EntityManager.class); local
91 session.getTransaction().isActive());
94 session.getTransaction().begin();
95 List<?> result = session.createQuery("from JpaTestEntity where text = :text")
98 session.getTransaction().commit()
112 EntityManager session = injector.getInstance(EntityManager.class); local
134 EntityManager session = injector.getInstance(EntityManager.class); local
151 @Inject EntityManager session; field in class:ClassLevelManagedLocalTransactionsTest.TransactionalObject
164 @Inject EntityManager session; field in class:ClassLevelManagedLocalTransactionsTest.TransactionalObject4
179 @Inject EntityManager session; field in class:ClassLevelManagedLocalTransactionsTest.TransactionalObject3
193 @Inject EntityManager session; field in class:ClassLevelManagedLocalTransactionsTest.TransactionalObject2
    [all...]
  /external/libmicrohttpd/src/microspdy/
stream.h 32 * Reads data from session's read buffer and tries to create a new SPDY
35 * received the function changes the read handler of the session and
38 * @param session SPDY_Session whose read buffer is being read
44 SPDYF_stream_new (struct SPDY_Session *session);
67 * Find and return a session's stream, based on stream's ID.
70 * @param session whose streams are considered
74 SPDYF_stream_find(uint32_t stream_id, struct SPDY_Session * session);
  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/command/
CommandHandler.java 18 import org.mockftpserver.core.session.Session;
30 * Handle the specified command for the session. This method is declared to throw
36 * @param session - the session on which the Command was submitted
40 public void handleCommand(Command command, Session session) throws Exception;
  /external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/
EpsvCommandHandlerTest.java 40 session.switchToPassiveMode();
41 control(session).setReturnValue(PORT);
42 session.getServerHost();
43 control(session).setReturnValue(SERVER);
44 session.sendReply(ReplyCodes.EPSV_OK, formattedReplyTextFor(ReplyCodes.EPSV_OK, Integer.toString(PORT)));
45 replay(session);
49 commandHandler.handleCommand(COMMAND, session);
50 verify(session);
  /external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/core/command/
CommandHandler.java 18 import org.mockftpserver.core.session.Session;
30 * Handle the specified command for the session. This method is declared to throw
36 * @param session - the session on which the Command was submitted
40 public void handleCommand(Command command, Session session) throws Exception;
  /frameworks/base/media/java/android/media/session/
MediaSession.aidl 16 package android.media.session;
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/
_AbstractFakeCommandHandlerTest.groovy 23 import org.mockftpserver.core.session.Session
24 import org.mockftpserver.core.session.SessionKeys
25 import org.mockftpserver.core.session.StubSession
53 private session
65 commandHandler.handleCommand(command, session)
73 shouldFail { commandHandler.handleCommand(null, session) }
84 commandHandler.sendReply(session, REPLY_CODE)
85 assert session.sentReplies[0] == [REPLY_CODE, MSG], session.sentReplies[0
    [all...]
  /frameworks/av/services/audiopolicy/common/managerdefinitions/src/
SessionRoute.cpp 38 bool SessionRouteMap::hasRoute(audio_session_t session)
40 return indexOfKey(session) >= 0 && valueFor(session)->mDeviceDescriptor != 0;
43 bool SessionRouteMap::hasRouteChanged(audio_session_t session)
45 if (indexOfKey(session) >= 0) {
46 if (valueFor(session)->mChanged) {
47 valueFor(session)->mChanged = false;
54 void SessionRouteMap::removeRoute(audio_session_t session)
56 sp<SessionRoute> route = indexOfKey(session) >= 0 ? valueFor(session) : 0
    [all...]
  /external/google-breakpad/src/common/windows/
dia_util.h 39 // Find the debug stream of the given |name| in the given |session|. Returns
43 IDiaSession* session,
47 // given |session|. Returns true on success, false on error or if no such
49 bool FindTable(REFIID iid, IDiaSession* session, void** table);
52 // |InterfaceType| in the given |session|. Returns true on success, false on
56 bool FindTable(IDiaSession* session, InterfaceType** table) {
58 session,
  /external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
PairingListener.java 22 * Listener interface for handling events within a pairing session.
33 * Called at the start of a new pairing session. The session object can be
36 * @param session the pairing session
38 void onSessionCreated(PairingSession session);
41 * Called when the session calls for the local entity to act as the input
44 * @param session the pairing session
47 void onPerformInputDeviceRole(PairingSession session) throws PoloException
    [all...]
  /external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/
AbstractStubDataCommandHandler.java 23 import org.mockftpserver.core.session.Session;
36 * Subclasses can optionally override the {@link #beforeProcessData(Command, Session, InvocationRecord)}
37 * method for logic before the data transfer or the {@link #afterProcessData(Command, Session, InvocationRecord)}
97 * @see org.mockftpserver.core.command.AbstractTrackingCommandHandler#handleCommand(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session, org.mockftpserver.core.command.InvocationRecord)
99 public final void handleCommand(Command command, Session session, InvocationRecord invocationRecord) throws Exception {
101 beforeProcessData(command, session, invocationRecord);
103 sendPreliminaryReply(session);
    [all...]
  /external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/command/
AbstractStubDataCommandHandler.java 23 import org.mockftpserver.core.session.Session;
36 * Subclasses can optionally override the {@link #beforeProcessData(Command, Session, InvocationRecord)}
37 * method for logic before the data transfer or the {@link #afterProcessData(Command, Session, InvocationRecord)}
98 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(Command, Session, InvocationRecord)
100 public final void handleCommand(Command command, Session session, InvocationRecord invocationRecord) throws Exception {
102 beforeProcessData(command, session, invocationRecord);
104 sendPreliminaryReply(session);
105 session.openDataConnection();
    [all...]

Completed in 782 milliseconds

1 23 4 5 6 7 8 91011>>