/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/ |
StouCommandHandlerTest.java | 52 session.sendReply(ReplyCodes.SEND_DATA_INITIAL_OK, replyTextFor(ReplyCodes.SEND_DATA_INITIAL_OK));
53 session.openDataConnection();
54 session.readData();
55 control(session).setReturnValue(DATA.getBytes());
56 session.closeDataConnection();
57 session.sendReply(ReplyCodes.SEND_DATA_FINAL_OK, formattedReplyTextFor("226.WithFilename", FILENAME));
58 replay(session);
62 commandHandler.handleCommand(command, session);
63 verify(session);
|
PasvCommandHandlerTest.java | 48 session.switchToPassiveMode();
49 control(session).setReturnValue(PORT);
50 session.getServerHost();
51 control(session).setReturnValue(SERVER);
52 session.sendReply(ReplyCodes.PASV_OK, formattedReplyTextFor(227, "(192,168,0,2,23,77)"));
53 replay(session);
57 commandHandler.handleCommand(COMMAND, session);
58 verify(session);
|
FileRetrCommandHandlerTest.java | 71 * Test the handleCommand(Command,Session) method. Create a temporary (binary) file, and
80 session.sendReply(ReplyCodes.SEND_DATA_INITIAL_OK, replyTextFor(ReplyCodes.SEND_DATA_INITIAL_OK));
81 session.openDataConnection();
108 session.sendData(BUFFER, 512);
109 control(session).setMatcher(matcher);
110 session.sendData(BUFFER, 512);
111 session.sendData(BUFFER, 512);
112 session.sendData(BUFFER, 512);
113 session.sendData(BUFFER, 512);
114 session.sendData(BUFFER, 3); [all...] |
_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/mockito/src/main/java/org/mockito/internal/session/ |
MockitoSessionLoggerAdapter.java | 5 package org.mockito.internal.session; 8 import org.mockito.session.MockitoSessionLogger;
|
/external/tensorflow/tensorflow/cc/saved_model/ |
loader.h | 26 #include "tensorflow/core/public/session.h" 32 std::unique_ptr<Session> session; member in struct:tensorflow::SavedModelBundle 35 /// A TensorFlow Session does not Close itself on destruction. To avoid 38 if (session) { 39 session->Close().IgnoreError(); 49 /// with a session and the requested meta graph def, if found.
|
/external/tensorflow/tensorflow/contrib/predictor/ |
predictor.py | 34 def session(self): member in class:Predictor
|
/external/tpm2/ |
PolicyAuthorize.c | 25 SESSION *session; local 34 // Get pointer to the session structure 35 session = SessionGet(in->policySession); 50 if(session->attributes.isTrialPolicy == CLEAR) 53 // policyDigest in policy session 54 if(!Memory2BEqual(&session->u2.policyDigest.b, 85 MemorySet(session->u2.policyDigest.t.buffer, 0, 86 session->u2.policyDigest.t.size); 90 NULL, 0, session); [all...] |
PolicySecret.c | 22 // session 31 SESSION *session; local 39 // Get pointer to the session structure 40 session = SessionGet(in->policySession); 42 //Only do input validation if this is not a trial policy session 43 if(session->attributes.isTrialPolicy == CLEAR) 47 authTimeout = expiration * 1000 + session->startTime; 49 result = PolicyParameterChecks(session, authTimeout, 65 &in->cpHashA, authTimeout, session); [all...] |
PolicyTicket.c | 26 SESSION *session; local 33 // Get pointer to the session structure 34 session = SessionGet(in->policySession); 36 // NOTE: A trial policy session is not allowed to use this command. 42 if(session->attributes.isTrialPolicy) 53 result = PolicyParameterChecks(session, timeout, 85 &in->cpHashA, timeout, session);
|
/frameworks/support/media/api22/android/support/v4/media/session/ |
MediaSessionCompatApi22.java | 16 package android.support.v4.media.session; 18 import android.media.session.MediaSession;
|
/packages/apps/Camera2/src/com/android/camera/session/ |
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.
|
SessionStorageManager.java | 17 package com.android.camera.session; 25 * Interface for the session storage manager which handles management of storage 26 * space that can be used for temporary session files. 35 * clean of expired session data. 38 * session space, e.g. "foo". 45 * Initializes the directories for storing the final session output 52 * @param title the title of this session. Will be used to create a unique
|
StackSaver.java | 17 package com.android.camera.session;
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
ServerSessionContext.java | 22 * Caches server sessions. Indexes by session ID. Users typically look up 37 // TODO remove SSL_CTX session cache limit so we can manage it 43 // Set a trivial session id context. OpenSSL uses this to make 63 NativeSslSession session = NativeSslSession.newInstance(this, data, null, -1); local 64 if (session != null && session.isValid()) { 65 cacheSession(session); 66 return session; 75 void onBeforeAddSession(NativeSslSession session) { 78 byte[] data = session.toBytes() [all...] |
/external/tensorflow/tensorflow/java/src/main/java/org/tensorflow/ |
SavedModelBundle.java | 21 * <p>The model consists of a description of the computation (a {@link Graph}), a {@link Session} 36 * @return a bundle containing the graph and associated session. 57 * Returns the {@link Session} with which to perform computation using the model. 59 * @return the initialized session 61 public Session session() { method in class:SavedModelBundle 62 return session; 66 * Releases resources (the {@link Graph} and {@link Session}) associated with the saved model 71 session.close(); 76 private final Session session field in class:SavedModelBundle 94 Session session = new Session(graph, sessionHandle); local [all...] |
/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);
|
PasvCommandHandlerTest.java | 46 session.switchToPassiveMode();
47 control(session).setReturnValue(PORT);
48 session.getServerHost();
49 control(session).setReturnValue(SERVER);
50 session.sendReply(ReplyCodes.PASV_OK, formattedReplyTextFor(227, "(192,168,0,2,23,77)"));
51 replay(session);
55 commandHandler.handleCommand(COMMAND, session);
56 verify(session);
|
FileRetrCommandHandlerTest.java | 68 * Test the handleCommand(Command,Session) method. Create a temporary (binary) file, and
78 session.sendReply(ReplyCodes.TRANSFER_DATA_INITIAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_INITIAL_OK));
79 session.openDataConnection();
107 session.sendData(BUFFER, 512);
108 control(session).setMatcher(matcher);
109 session.sendData(BUFFER, 512);
110 session.sendData(BUFFER, 512);
111 session.sendData(BUFFER, 512);
112 session.sendData(BUFFER, 512);
113 session.sendData(BUFFER, 3); [all...] |
_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/mockito/src/test/java/org/mockito/internal/session/ |
DefaultMockitoSessionBuilderTest.java | 5 package org.mockito.internal.session; 14 import org.mockito.session.MockitoSessionLogger; 72 MockitoSession session = new DefaultMockitoSessionBuilder() local 85 session.finishMocking();
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
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();
|
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/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
QuitCommandHandler.java | 22 import org.mockftpserver.core.session.Session;
41 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
42 sendReply(session);
43 session.close();
|
/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();
|