/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/ |
CaptureSessionCreator.java | 38 * @param device The device on which to create the capture session. 39 * @param cameraHandler The handler on which to process capture session 48 * Asynchronously creates a capture session, returning a future to it. 51 * session. 52 * @return A Future for the camera capture session. 60 public void onActive(CameraCaptureSessionProxy session) { 65 public void onConfigureFailed(CameraCaptureSessionProxy session) { 67 session.close(); 71 public void onConfigured(CameraCaptureSessionProxy session) { 72 boolean valueSet = sessionFuture.set(session); [all...] |
/external/conscrypt/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 36 * Gets the session data for given session ID. 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 or data is nul [all...] |
AbstractSessionContext.java | 37 * Supports SSL session caches. 42 * Maximum lifetime of a session (in seconds) after which it's considered invalid and should not 70 * Constructs a new session context. 101 SSLSession session = i.next(); local 102 if (session.isValid()) { 103 next = session; 143 SSLSession session = i.next(); local 145 sessionRemoved(session); 162 SSLSession session = i.next(); local 165 if (!session.isValid()) 288 SSLSession session; local [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
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...] |
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...] |
UserCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
30 * current directory in the session, and reply with 230</li>
31 * <li>Otherwise, set the username in the session and reply with 331</li>
39 protected void handle(Command command, Session session) {
44 if (!validateUserAccount(username, session)) {
50 login(userAccount, session, ReplyCodes.USER_LOGGED_IN_OK, "user.loggedIn");
54 session.setAttribute(SessionKeys.USERNAME, username); [all...] |
PwdCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
26 * <li>If the required "current directory" property is missing from the session, then reply with 550</li>
35 protected void handle(Command command, Session session) {
36 String currentDirectory = (String) session.getAttribute(SessionKeys.CURRENT_DIRECTORY);
39 sendReply(session, ReplyCodes.PWD_OK, "pwd", list(currentDirectory));
|
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");
|
/external/libmicrohttpd/doc/examples/ |
sessions.c | 87 #define COOKIE_NAME "session" 91 * State we keep for each user/session/browser. 93 struct Session 98 struct Session *next; 101 * Unique ID for this session. 107 * currently using this session. 112 * Time when this session was last active. 136 * Associated session. 138 struct Session *session; member in struct:Request 481 struct Session *session = request->session; local 565 struct Session *session; local [all...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/command/ |
_AbstractCommandHandlerTest.java | 23 import org.mockftpserver.core.session.Session;
55 private Session session;
field in class:_AbstractCommandHandlerTest 59 * Test the handleCommand(Command,Session) method
63 commandHandler.handleCommand(COMMAND, session);
69 * Test the handleCommand(Command,Session) method, passing in a null Command
73 commandHandler.handleCommand(null, session);
82 * Test the handleCommand(Command,Session) method, passing in a null Session
[all...] |
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/appengine/ |
sessions_ndb.py | 48 class Session(model.Model): 49 """A model to store session data.""" 53 #: Session data, pickled. 58 """Returns a ``Session`` instance by session id. 61 A session id. 63 An existing ``Session`` entity. 67 session = model.Key(cls, sid).get() 68 if session: 69 data = session.dat [all...] |
/external/autotest/client/virt/tests/ |
watchdog.py | 16 session = vm.wait_for_login(timeout=timeout) 25 session = vm.wait_for_login(timeout=timeout) 29 session.sendline(crash_cmd) 31 if not virt_utils.wait_for(lambda: not session.is_responsive(), 36 session = vm.wait_for_login(timeout=relogin_timeout) 39 session.cmd(watchdog_enable_cmd, timeout=320) 42 # Close stablished session 43 session.close()
|
kdump.py | 21 session = vm.wait_for_login(timeout=timeout) 37 session = vm.wait_for_login(timeout=timeout) 38 session.cmd_output("rm -rf /var/crash/*") 42 session.sendline(crash_cmd) 44 if not virt_utils.wait_for(lambda: not session.is_responsive(), 240, 0, 49 session = vm.wait_for_login(timeout=crash_timeout) 52 session.cmd("ls -R /var/crash | grep vmcore") 55 session.cmd_output("rm -rf /var/crash/*") 60 session.cmd(crash_kernel_prob_cmd) 63 session.cmd(kernel_param_cmd [all...] |
lvm.py | 6 def mount_lv(lv_path, session): 9 session.cmd("mkdir -p /mnt/kvm_test_lvm") 10 session.cmd("mount %s /mnt/kvm_test_lvm" % lv_path) 14 def umount_lv(lv_path, session): 17 session.cmd("umount %s" % lv_path) 18 session.cmd("rm -rf /mnt/kvm_test_lvm") 37 session = vm.wait_for_login(timeout=timeout) 48 session.cmd("pvcreate %s" % disks) 51 session.cmd("vgcreate %s %s" % (vg_name, disks)) 54 session.cmd("vgchange -ay %s" % vg_name [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/nist-sip/java/javax/sip/header/ |
ContentDispositionHeader.java | 9 String SESSION = "Session";
|
/external/selinux/policycoreutils/newrole/ |
newrole.pamd | 7 session include system-auth 8 session optional pam_xauth.so
|
/external/selinux/policycoreutils/run_init/ |
run_init.pamd | 7 session include system-auth 8 session optional pam_xauth.so
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
ISipSession.aidl | 23 * A SIP session that is associated with a SIP dialog or a transaction that is 29 * Gets the IP address of the local host on which this SIP session runs. 36 * Gets the SIP profile that this session is associated with. 38 * @return the SIP profile that this session is associated with 43 * Gets the SIP profile that this session is connected to. Only available 44 * when the session is associated with a SIP dialog. 46 * @return the SIP profile that this session is connected to 51 * Gets the session state. The value returned must be one of the states in 54 * @return the session state 59 * Checks if the session is in a call [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/session/ |
DefaultSessionTest.java | 16 package org.mockftpserver.core.session;
55 private DefaultSession session;
field in class:DefaultSessionTest 71 session = createDefaultSession("");
114 session.socketFactory = stubSocketFactory;
115 session.setClientDataPort(PORT);
116 session.setClientDataHost(clientHost);
117 session.openDataConnection();
122 * Test the setClientDataPort() method after the session was in passive data mode
127 session.serverSocketFactory = stubServerSocketFactory;
129 session.switchToPassiveMode(); [all...] |
/hardware/qcom/audio/msm8909/hal/voice_extn/ |
voice_extn.c | 54 /* Voice Session Indices */ 123 ALOGE("%s: Invalid voice session index\n", __func__); 132 struct voice_session *session = NULL; local 137 session = &adev->voice.session[i]; 138 if(session->state.current == call_state){ 139 session_id = session->vsid; 152 struct voice_session *session = NULL; local 160 session = &adev->voice.session[i] 283 struct voice_session *session = NULL; local 328 struct voice_session *session = NULL; local [all...] |
/external/libmicrohttpd/src/microspdy/ |
io_raw.c | 27 #include "session.h" 62 SPDYF_raw_new_session(struct SPDY_Session *session) 69 fd_flags = fcntl (session->socket_fd, F_GETFL); 71 || 0 != fcntl (session->socket_fd, F_SETFL, fd_flags | O_NONBLOCK)) 74 if(SPDY_DAEMON_FLAG_NO_DELAY & session->daemon->flags) 76 ret = setsockopt(session->socket_fd, IPPROTO_TCP, TCP_NODELAY, &val, (socklen_t)sizeof(val)); 86 SPDYF_raw_close_session(struct SPDY_Session *session) 88 (void)session; 93 SPDYF_raw_recv(struct SPDY_Session *session, 97 int n = read(session->socket_fd, [all...] |
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
SessionMap.h | 25 * A thread safe wrapper template class for session handlings for Drm Engines. It wraps a 27 * allocated pointer can be of any type of structure/class meant for keeping session data. 28 * so session object here means pointer to the session data. 42 * Adds a new value in the session map table. It expects memory to be allocated already 43 * for the session object 45 * @param key - key or Session ID 46 * @param value - session object to add 60 * returns the session object by the key 62 * @param key - key or Session I [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
MediaSessionStatus.java | 25 * Describes the playback status of a media session. 30 * When a media session is created, it is initially in the 31 * {@link #SESSION_STATE_ACTIVE active} state. When the media session ends 33 * If the media session is invalidated due to another session forcibly taking 38 * To monitor session status, the application should supply a {@link PendingIntent} to use as the 39 * {@link MediaControlIntent#EXTRA_SESSION_STATUS_UPDATE_RECEIVER session status update receiver} 40 * for a given {@link MediaControlIntent#ACTION_START_SESSION session start request}. 54 * Session state: Active. 56 * Indicates that the media session is active and in control of the route [all...] |
/packages/apps/Camera2/src/com/android/camera/session/ |
CaptureSession.java | 17 package com.android.camera.session; 34 * A session is an item that is in progress of being created and saved, such as 39 /** Classes implementing this interface can produce a capture session. */ 41 /** Creates and starts a new capture session. */ 47 * this session. 67 * this session. 104 * This occurs if a capture session is created but is later canceled for 110 * This occurs if a capture session is created but failed to persist the 116 /** Returns the title/name of this session. */ 119 /** Returns the location of this session or null. * [all...] |