/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/conscrypt/src/main/java/org/conscrypt/ |
ServerSessionContext.java | 22 * Caches server sessions. Indexes by session ID. Users typically look up 35 // TODO remove SSL_CTX session cache limit so we can manage it 41 // Set a trivial session id context. OpenSSL uses this to make 53 protected void sessionRemoved(SSLSession session) {} 68 OpenSSLSessionImpl session = toSession(data, null, -1); local 69 if (session != null && session.isValid()) { 70 super.putSession(session); 71 return Platform.wrapSSLSession(session); 80 void putSession(SSLSession session) { [all...] |
SSLClientSessionCache.java | 29 * session data is dependent upon the caller's implementation and is opaque to 35 * Gets data from a pre-existing session for a given server host and port. 39 * @return the session data or null if none is cached 45 * Stores session data for the given session. 47 * @param session to cache data for 49 * @throws NullPointerException if session, result of 50 * {@code session.getPeerHost()} or data is null 52 public void putSessionData(SSLSession session, byte[] sessionData);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/core/ |
FrameServerImpl.java | 33 * {@link FrameServer.Session}. 36 public class Session implements FrameServer.Session { 40 private Session() { 76 private final FrameServer.Session mCaptureSession; 80 * @param captureSession The underlying session to manage access to. Note 81 * that this will never close the session. 83 public FrameServerImpl(FrameServer.Session captureSession) { 90 public Session createExclusiveSession() throws InterruptedException { 92 "FrameServer.Session on the same thread.") [all...] |
/external/libmicrohttpd/src/microspdy/ |
io_openssl.c | 28 #include "session.h" 91 //TODO here session tickets are disabled for easier debuging with 134 SPDYF_openssl_new_session(struct SPDY_Session *session) 138 if(NULL == (session->io_context = SSL_new(session->daemon->io_context))) 143 if(1 != (ret = SSL_set_fd(session->io_context, session->socket_fd))) 146 SSL_free(session->io_context); 147 session->io_context = NULL; 153 if(1 != (ret = SSL_accept(session->io_context)) [all...] |
/packages/apps/Camera2/src/com/android/camera/session/ |
CaptureSessionManager.java | 17 package com.android.camera.session; 31 * Callback interface for session events. 35 * Called when the session with the given Uri was queued and will be 41 * Called when the media underlying the session with the given Uri has 47 * Called when the capture indicator for the given session has changed 55 /** Called when the session with the given Uri finished. */ 58 /** Called when the session with the given Uri failed processing. */ 61 /** Called when the session with the given Uri was canceled. */ 64 /** Called when the session with the given Uri has progressed. */ 67 /** Called when the session with the given Uri has changed its progress text. * [all...] |
CaptureSessionFactory.java | 17 package com.android.camera.session; 23 * Creates a new capture session. 25 * @param sessionManager the capture session manager. 27 * session. 28 * @param title the title of the new session. 29 * @param sessionStartMillis the start time of the new session (millis since 31 * @param location the location of the new session.
|
/external/tpm2/ |
SessionProcess.c | 88 SESSION *session = NULL; local 89 // Don't increment lockout unless the handle associated with the session 90 // is DA protected or the session is bound to a DA protected entity. 98 session = SessionGet(sessionHandle); 99 // If the session is bound to lockout, then use that as the relevant 100 // handle. This means that an auth failure with a bound session 103 if(session->attributes.isLockoutBound == SET) 105 if( session->attributes.isDaBound == CLEAR 161 // This function indicates if the entity associated with the handle is the entity, to which this session is bound 571 SESSION *session; local 735 SESSION *session; local 878 SESSION *session; local 1108 SESSION *session = NULL; local 1261 SESSION *session; local 1617 SESSION *session; local 1759 SESSION *session = SessionGet(s_sessionHandles[sessionIndex]); local 1793 SESSION *session; local 1838 SESSION *session = SessionGet(s_sessionHandles[i]); local [all...] |
FlushContext.c | 14 // TPM_RC_HANDLE flushHandle does not reference a loaded object or session 23 // Call object or session specific routine to flush 39 // If the session to be flushed is the exclusive audit session, then 40 // indicate that there is no exclusive audit session any longer. 44 // Flush session 48 // This command only take object or session handle. Other handles
|
/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/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
RetrCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
49 protected void handle(Command command, Session session) {
50 verifyLoggedIn(session);
53 String path = getRealPath(session, command.getRequiredParameter(0));
60 verifyReadPermission(session, path);
63 verifyExecutePermission(session, getFileSystem().getParent(path));
65 sendReply(session, ReplyCodes.TRANSFER_DATA_INITIAL_OK); [all...] |
QuitCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
23 * CommandHandler for the QUIT command. Return a reply code of 221 and close the current session.
30 protected void handle(Command command, Session session) {
31 sendReply(session, ReplyCodes.QUIT_OK, "quit");
32 session.close();
|
ReinCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
35 protected void handle(Command command, Session session) {
36 session.removeAttribute(SessionKeys.USER_ACCOUNT);
37 sendReply(session, ReplyCodes.REIN_OK, "rein");
|
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));
|
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)));
|
PassCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
39 protected void handle(Command command, Session session) {
41 String username = (String) getRequiredSessionAttribute(session, SessionKeys.USERNAME);
43 if (validateUserAccount(username, session)) {
48 login(userAccount, session, replyCode, replyMessageKey);
50 sendReply(session, ReplyCodes.PASS_LOG_IN_FAILED, "pass.loginFailed");
|
/external/autotest/client/tests/kvm/tests/ |
stop_continue.py | 12 4) Check is the ssh session to guest is still responsive, 22 session = vm.wait_for_login(timeout=timeout) 30 logging.info("Check the session is responsive") 31 if session.is_responsive(): 32 raise error.TestFail("Session is still responsive after stop") 40 session = vm.wait_for_login(timeout=timeout) 43 session.close()
|
/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;
|
ConnectCommandHandler.java | 18 import org.mockftpserver.core.session.Session;
42 * @see AbstractTrackingCommandHandler#handleCommand(Command, org.mockftpserver.core.session.Session, InvocationRecord)
44 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
45 sendReply(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;
|
/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();
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
TvInputServiceTest.java | 295 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 296 return session != null && session.mTuneCount > 0 297 && Objects.equals(session.mTunedChannelUri, fakeChannelUri); 310 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 311 return session != null 312 && session.mTuneCount > 0 313 && session.mTuneWithBundleCount > 0 314 && Objects.equals(session.mTunedChannelUri, fakeChannelUri) 315 && bundleEquals(session.mTuneWithBundleData, sDummyBundle) 326 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 340 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 354 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 368 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 380 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 396 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 412 final CountingRecordingSession session = CountingTvInputService.sRecordingSession; local 458 final CountingSession session = CountingTvInputService.sSession; local 476 final CountingSession session = CountingTvInputService.sSession; local 495 final CountingSession session = CountingTvInputService.sSession; local 511 final CountingSession session = CountingTvInputService.sSession; local 529 final CountingSession session = CountingTvInputService.sSession; local 548 final CountingSession session = CountingTvInputService.sSession; local 567 final CountingSession session = CountingTvInputService.sSession; local 587 final CountingSession session = CountingTvInputService.sSession; local 608 final CountingSession session = CountingTvInputService.sSession; local 628 final CountingSession session = CountingTvInputService.sSession; local 647 final CountingSession session = CountingTvInputService.sSession; local 662 final CountingSession session = CountingTvInputService.sSession; local 675 final CountingSession session = CountingTvInputService.sSession; local 690 final CountingSession session = CountingTvInputService.sSession; local 707 final CountingSession session = CountingTvInputService.sSession; local 723 final CountingSession session = CountingTvInputService.sSession; local 757 final CountingSession session = CountingTvInputService.sSession; local 774 final CountingSession session = CountingTvInputService.sSession; local 786 final CountingSession session = CountingTvInputService.sSession; local 801 final CountingSession session = CountingTvInputService.sSession; local 815 final CountingSession session = CountingTvInputService.sSession; local 831 final CountingSession session = CountingTvInputService.sSession; local 847 final CountingSession session = CountingTvInputService.sSession; local 863 final CountingSession session = CountingTvInputService.sSession; local 879 final CountingSession session = CountingTvInputService.sSession; local 893 final CountingSession session = CountingTvInputService.sSession; local 910 final CountingSession session = CountingTvInputService.sSession; local 929 final CountingSession session = CountingTvInputService.sSession; local [all...] |
/external/chromium-trace/catapult/third_party/webapp2/tests/ |
extras_appengine_sessions_ndb_test.py | 24 self.register_model('Session', sessions_ndb.Session) 34 session = store.get_session(backend='datastore') 40 session['a'] = 'b' 41 session['c'] = 'd' 42 session['e'] = 'f' 53 session = store.get_session(backend='datastore') 54 self.assertEqual(session['a'], 'b') 55 self.assertEqual(session['c'], 'd') 56 self.assertEqual(session['e'], 'f' [all...] |
/external/curl/tests/data/ |
test572 | 16 Session: getparams-test
24 Session: getparams-test
37 Session: getparams-test
45 Session: getparams-test
55 Session: getparams-test
96 Session: getparams-test
104 Session: getparams-test
108 Session: getparams-test
116 Session: getparams-test
|
/external/dbus/test/name-test/ |
test-privserver.c | 69 DBusConnection *session; local 79 session = dbus_bus_get (DBUS_BUS_SESSION, &error); 80 if (!session) 81 die ("couldn't access session bus"); 83 test_connection_setup (loop, session); 85 dbus_bus_request_name (session, "org.freedesktop.DBus.TestSuite.PrivServer", 0, &error); 89 if (!dbus_connection_add_filter (session, filter_session_message, testdata, NULL)) 114 test_connection_shutdown (loop, session); 116 dbus_connection_unref (session);
|