/packages/apps/Camera2/src/com/android/camera/one/v2/core/ |
ObservableFrameServer.java | 37 * availability (whether or not an exclusive session can likely be acquired 43 * The total number of clients which either have an exclusive Session or are 51 private class SessionImpl implements Session { 53 private final Session mDelegate; 55 private SessionImpl(Session delegate) { 85 public Session createExclusiveSession() throws InterruptedException { 90 // the session, which is responsible for decrementing it later. 91 Session session = mDelegate.createExclusiveSession(); local 92 return new SessionImpl(session); 105 Session session = mDelegate.tryCreateExclusiveSession(); local [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
_AbstractCommandHandlerTest.java | 21 import org.mockftpserver.core.session.Session;
108 Session session = (Session) createMock(Session.class);
local 109 control(session).setDefaultMatcher(MockControl.ARRAY_MATCHER);
111 public void handleCommand(Command command, Session session) throws Exception {
|
/external/tensorflow/tensorflow/core/public/ |
session.h | 33 /// \brief A Session instance lets a caller drive a TensorFlow graph 36 /// When a Session is created with a given target, a new Session object 38 /// Those resources are available to this session to perform 39 /// computation described in the GraphDef. After extending the session 53 /// std::unique_ptr<tensorflow::Session> 54 /// session(tensorflow::NewSession(options)); 56 /// // Create the session with this graph. 57 /// tensorflow::Status s = session->Create(graph); 64 /// s = session->Run({}, {"output:0"}, {"update_state"}, &outputs) [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
SessionManagerTest.java | 25 import android.telecom.Logging.Session; 52 private long mfullSessionCompleteTime = Session.UNDEFINED; 64 // Remove automatic stale session cleanup for testing 72 mfullSessionCompleteTime = Session.UNDEFINED; 78 * Starts a Session on the current thread and verifies that it exists in the HashMap 89 Session testSession = mTestSessionManager.mSessionMapper.get(TEST_PARENT_THREAD_ID); 96 * Starts two sessions in the same thread. The first session will be parented to the second 97 * session and the second session will be attached to that thread ID. 107 // Create invisible child session - same Thread ID as paren [all...] |
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/ |
SessionTest.java | 29 /** Unit tests for {@link org.tensorflow.Session}. */ 36 Session s = new Session(g)) { 51 Session s = new Session(g)) { 68 Session s = new Session(g)) { 105 Session s = new Session(g)) { 108 Session.Run result [all...] |
/external/llvm/lib/DebugInfo/PDB/DIA/ |
DIASession.cpp | 78 DIASession::DIASession(CComPtr<IDiaSession> DiaSession) : Session(DiaSession) {} 81 std::unique_ptr<IPDBSession> &Session) { 101 Session.reset(new DIASession(DiaSession)); 106 std::unique_ptr<IPDBSession> &Session) { 126 Session.reset(new DIASession(DiaSession)); 132 bool success = (S_OK == Session->get_loadAddress(&LoadAddress)); 137 Session->put_loadAddress(Address); 142 if (S_OK != Session->get_globalScope(&GlobalScope)) 154 if (S_OK != Session->symbolById(SymbolId, &LocatedSymbol)) 166 if (S_OK != Session->findSymbolByVA(Address, EnumVal, &Symbol)) [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
ConnectionServiceAdapterServant.java | 24 import android.telecom.Logging.Session; 99 null /*Session.Info*/); 106 mDelegate.setActive((String) msg.obj, null /*Session.Info*/); 109 mDelegate.setRinging((String) msg.obj, null /*Session.Info*/); 112 mDelegate.setDialing((String) msg.obj, null /*Session.Info*/); 115 mDelegate.setPulling((String) msg.obj, null /*Session.Info*/); 121 null /*Session.Info*/); 128 mDelegate.setOnHold((String) msg.obj, null /*Session.Info*/); 132 null /*Session.Info*/); 136 null /*Session.Info*/) [all...] |
RemoteConnectionService.java | 24 import android.telecom.Logging.Session; 59 Session.Info info) { 104 public void setActive(String callId, Session.Info sessionInfo) { 115 public void setRinging(String callId, Session.Info sessionInfo) { 121 public void setDialing(String callId, Session.Info sessionInfo) { 127 public void setPulling(String callId, Session.Info sessionInfo) { 134 Session.Info sessionInfo) { 145 public void setOnHold(String callId, Session.Info sessionInfo) { 156 public void setRingbackRequested(String callId, boolean ringing, Session.Info sessionInfo) { 163 Session.Info sessionInfo) [all...] |
/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...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/ |
_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...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
AbstractFakeCommandHandler.java | 24 import org.mockftpserver.core.session.Session;
25 import org.mockftpserver.core.session.SessionKeys;
54 * Reply code sent back when a FileSystemException is caught by the {@link #handleCommand(Command, Session)}
70 public void handleCommand(Command command, Session session) {
73 Assert.notNull(session, "session");
76 handle(command, session);
79 handleException(command, session, e, ReplyCodes.COMMAND_SYNTAX_ERROR); [all...] |
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...] |
EprtCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
40 protected void handle(Command command, Session session) {
44 session.setClientDataHost(client.host);
45 session.setClientDataPort(client.port);
46 sendReply(session, ReplyCodes.EPRT_OK, "eprt");
|
HelpCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
44 protected void handle(Command command, Session session) {
49 sendReply(session, ReplyCodes.HELP_OK, "help.noHelpTextDefined", list(key));
51 sendReply(session, ReplyCodes.HELP_OK, "help", list(help));
|
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...] |
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");
|
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));
|
PortCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
38 protected void handle(Command command, Session session) {
41 session.setClientDataHost(client.host);
42 session.setClientDataPort(client.port);
43 sendReply(session, ReplyCodes.PORT_OK, "port");
|
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));
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordDxe/ |
OpalHii.c | 677 OPAL_SESSION Session;
694 ZeroMem(&Session, sizeof(Session));
695 Session.Sscp = OpalDisk->Sscp;
696 Session.MediaId = OpalDisk->MediaId;
697 Session.OpalBaseComId = OpalDisk->OpalBaseComId;
699 Ret = OpalSupportPsidRevert(&Session, Psid.Psid, (UINT32)sizeof(Psid.Psid), OpalDisk->OpalDevicePath);
735 OPAL_SESSION Session;
765 ZeroMem(&Session, sizeof(Session));
[all...] |
/external/tensorflow/tensorflow/python/client/ |
session_benchmark.py | 15 """Tests and benchmarks for interacting with the `tf.Session`.""" 26 from tensorflow.python.client import session 37 """Tests and benchmarks for interacting with the `tf.Session`.""" 47 target: The session target to use for the benchmark. 58 with session.Session(target) as sess: 76 target: The session target to use for the benchmark. 85 with session.Session(target) as sess: 104 target: The session target to use for the benchmark [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiWakeMetrics.java | 39 private final List<Session> mSessions = new ArrayList<>(); 41 private Session mCurrentSession; 51 * Records the beginning of a Wifi Wake session. 53 * <p>Starts the session. 59 mCurrentSession = new Session(numNetworks, SystemClock.elapsedRealtime()); 65 * Records the initialize event of the current Wifi Wake session. 84 * Records the unlock event of the current Wifi Wake session. 104 * Records the wakeup event of the current Wifi Wake session. 123 * Records the reset event of the current Wifi Wake session. 126 * {@link #MAX_RECORDED_SESSIONS} in the session list [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Library/OpalPasswordSupportLib/ |
OpalPasswordSupportLib.c | 109 Creates a session with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_PSID_AUTHORITY, then reverts device using Admin SP Revert method.
111 @param[in] Session The opal session for the opal device.
120 IN OPAL_SESSION *Session,
128 NULL_CHECK(Session);
131 Ret = OpalUtilPsidRevert (Session, Psid, PsidLength);
140 Opens a session with OPAL_UID_ADMIN_SP as OPAL_ADMIN_SP_SID_AUTHORITY,
144 @param[in] Session The opal session for the opal device.
157 IN OPAL_SESSION *Session,
[all...] |
/cts/tests/tests/tv/src/android/media/tv/cts/ |
FaultyTvInputService.java | 29 public Session onCreateSession(String inputId) { 38 public static class FaultySession extends Session {
|