/libcore/luni/src/main/java/javax/net/ssl/ |
HandshakeCompletedEvent.java | 31 private transient SSLSession session; field in class:HandshakeCompletedEvent 35 * socket and SSL session. 40 * the SSL session. 44 session = s; 48 * Returns the SSL session associated with this event. 50 * @return the SSL session associated with this event. 53 return session; 62 return session.getCipherSuite(); 74 return session.getLocalCertificates(); 87 return session.getPeerCertificates() [all...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/session/ |
DefaultSessionTest.java | 16 package org.mockftpserver.core.session;
54 private DefaultSession session;
field in class:DefaultSessionTest 70 session = createDefaultSession("");
113 session.socketFactory = stubSocketFactory;
114 session.setClientDataPort(PORT);
115 session.setClientDataHost(clientHost);
116 session.openDataConnection();
121 * Test the setClientDataPort() method after the session was in passive data mode
126 session.serverSocketFactory = stubServerSocketFactory;
128 session.switchToPassiveMode(); [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
AcctCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
28 * <li>Store the account name in the session and reply with 230</li>
36 protected void handle(Command command, Session session) {
38 String username = (String) getRequiredSessionAttribute(session, SessionKeys.USERNAME);
40 session.setAttribute(SessionKeys.ACCOUNT_NAME, accountName);
41 sendReply(session, ReplyCodes.ACCT_OK, "acct", list(username));
|
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...] |
/frameworks/av/media/libeffects/preprocessing/ |
PreProcessing.cpp | 50 // Session state 89 preproc_session_t *session; // session the effect is on member in struct:preproc_effect_s 98 // Session context 100 struct preproc_effect_s effects[PREPROC_NUM_EFFECTS]; // effects in this session 102 int id; // audio session ID 103 int io; // handle of input stream this session is on 281 webrtc::GainControl *agc = effect->session->apm->gain_control(); 444 webrtc::EchoControlMobile *aec = effect->session->apm->echo_control_mobile(); 469 *(uint32_t *)pValue = 1000 * effect->session->apm->stream_delay_ms() 1174 preproc_session_t * session = (preproc_session_t *)effect->session; local 1726 preproc_session_t * session = (preproc_session_t *)effect->session; local 1833 preproc_session_t *session; local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
HostnameVerifierTest.java | 35 * session) 38 mySSLSession session = new mySSLSession("localhost", 1080, null); local 40 assertFalse(hv.verify("localhost", session)); 50 mySSLSession session = new mySSLSession(new X509Certificate[] {x509}); local 53 assertTrue(verifier.verify("foo.com", session)); 54 assertFalse(verifier.verify("a.foo.com", session)); 55 assertFalse(verifier.verify("bar.com", session)); 59 session = new mySSLSession(new X509Certificate[] {x509}); 60 assertTrue(verifier.verify("\u82b1\u5b50.co.jp", session)); 61 assertFalse(verifier.verify("a.\u82b1\u5b50.co.jp", session)); 144 mySSLSession session = new mySSLSession(new X509Certificate[] {x509}); local 158 mySSLSession session = new mySSLSession(new X509Certificate[] { x509 }); local 181 mySSLSession session = new mySSLSession(new X509Certificate[] { x509 }); local 209 mySSLSession session = new mySSLSession(new X509Certificate[] { x509 }); local 242 mySSLSession session = new mySSLSession(new X509Certificate[] { x509 }); local 279 mySSLSession session = new mySSLSession(new X509Certificate[] { x509 }); local [all...] |
/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;
|
/frameworks/support/v4/api22/android/support/v4/media/session/ |
MediaSessionCompatApi22.java | 16 package android.support.v4.media.session; 18 import android.media.session.MediaSession;
|
/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...] |