/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/ |
RetrCommandHandlerTest.java | 99 session.sendReply(ReplyCodes.SEND_DATA_INITIAL_OK, replyTextFor(ReplyCodes.SEND_DATA_INITIAL_OK));
100 session.openDataConnection();
101 session.sendData(FILE_CONTENTS.getBytes(), FILE_CONTENTS.length());
102 control(session).setMatcher(MockControl.ARRAY_MATCHER);
103 session.closeDataConnection();
104 session.sendReply(ReplyCodes.SEND_DATA_FINAL_OK, replyTextFor(ReplyCodes.SEND_DATA_FINAL_OK));
105 replay(session);
108 commandHandler.handleCommand(command, session);
109 verify(session);
|
RestCommandHandlerTest.java | 44 session.sendReply(ReplyCodes.REST_OK, replyTextFor(ReplyCodes.REST_OK));
45 session.sendReply(ReplyCodes.REST_OK, replyTextFor(ReplyCodes.REST_OK));
46 replay(session);
48 commandHandler.handleCommand(command1, session);
49 commandHandler.handleCommand(command2, session);
50 verify(session);
|
UserCommandHandlerTest.java | 44 session.sendReply(ReplyCodes.USER_NEED_PASSWORD_OK, replyTextFor(ReplyCodes.USER_NEED_PASSWORD_OK));
45 session.sendReply(ReplyCodes.USER_LOGGED_IN_OK, replyTextFor(ReplyCodes.USER_LOGGED_IN_OK));
46 replay(session);
48 commandHandler.handleCommand(command1, session);
50 commandHandler.handleCommand(command2, session);
51 verify(session);
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
HandshakeProtocolTest.java | 105 hs_protocol.session = ses; 106 hs_protocol.session.protocol = ProtocolVersion.TLSv1; 111 hs_protocol.session.protocol.version, 112 hs_protocol.session.id, 115 hs_protocol.session.protocol.version, hs_protocol.session.id, 121 assertEquals(48, hs_protocol.session.master_secret.length); 149 hs_protocol.session = ses; 150 hs_protocol.session.protocol = ProtocolVersion.SSLv3; 155 hs_protocol.session.protocol.version [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
AbstractStoreFileCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
47 protected void handle(Command command, Session session) {
48 verifyLoggedIn(session);
52 String path = getRealPath(session, filename);
59 verifyWritePermission(session, pathMustBeWritable);
62 verifyExecutePermission(session, parentPath);
64 sendReply(session, ReplyCodes.TRANSFER_DATA_INITIAL_OK);
66 session.openDataConnection(); [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
AbstractCommandHandlerTestCase.java | 21 import org.mockftpserver.core.session.Session;
44 protected Session session;
field in class:AbstractCommandHandlerTestCase 57 session.sendReply(ReplyCodes.COMMAND_SYNTAX_ERROR, replyTextFor(ReplyCodes.COMMAND_SYNTAX_ERROR));
58 replay(session);
60 commandHandler.handleCommand(command, session);
61 verify(session);
147 session = (Session) createMock(Session.class); [all...] |
/frameworks/base/media/java/android/media/session/ |
MediaController.java | 17 package android.media.session; 45 * Allows an app to interact with an ongoing media session. Media buttons and 46 * other commands can be sent to the session. A callback may be registered to 47 * receive updates from the session, such as metadata and play state changes. 52 * directly from the session owner. 90 throw new IllegalArgumentException("Session token cannot be null"); 102 * Create a new MediaController from a session's token. 105 * @param token The token for the session. 113 * the associated session. 122 * Send the specified media button event to the session. Only media keys ca [all...] |
/external/llvm/lib/DebugInfo/PDB/DIA/ |
DIAEnumSymbols.cpp | 19 : Session(PDBSession), Enumerator(DiaEnumerator) {} 32 std::unique_ptr<DIARawSymbol> RawSymbol(new DIARawSymbol(Session, Item)); 33 return std::unique_ptr<PDBSymbol>(PDBSymbol::create(Session, std::move(RawSymbol))); 42 std::unique_ptr<DIARawSymbol> RawSymbol(new DIARawSymbol(Session, Item)); 44 PDBSymbol::create(Session, std::move(RawSymbol))); 53 return new DIAEnumSymbols(Session, EnumeratorClone);
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
StatCommandHandler.java | 22 import org.mockftpserver.core.session.Session;
53 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
60 sendReply(session, code, replyMessageKey, replyText, new String[]{status});
62 sendReply(session, status);
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/ |
PortCommandHandlerTest.java | 46 session.setClientDataPort(PORT);
47 session.setClientDataHost(HOST);
48 session.sendReply(ReplyCodes.PORT_OK, replyTextFor(ReplyCodes.PORT_OK));
49 replay(session);
51 commandHandler.handleCommand(COMMAND, session);
52 verify(session);
|
RestCommandHandlerTest.java | 44 session.sendReply(ReplyCodes.REST_OK, replyTextFor(ReplyCodes.REST_OK));
45 session.sendReply(ReplyCodes.REST_OK, replyTextFor(ReplyCodes.REST_OK));
46 replay(session);
48 commandHandler.handleCommand(command1, session);
49 commandHandler.handleCommand(command2, session);
50 verify(session);
|
UserCommandHandlerTest.java | 42 session.sendReply(ReplyCodes.USER_NEED_PASSWORD_OK, replyTextFor(ReplyCodes.USER_NEED_PASSWORD_OK));
43 session.sendReply(ReplyCodes.USER_LOGGED_IN_OK, replyTextFor(ReplyCodes.USER_LOGGED_IN_OK));
44 replay(session);
46 commandHandler.handleCommand(command1, session);
48 commandHandler.handleCommand(command2, session);
49 verify(session);
|
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/core/command/ |
StaticReplyCommandHandler.java | 18 import org.mockftpserver.core.session.Session;
64 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(Command, Session, InvocationRecord)
66 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
67 sendReply(session);
|
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/command/ |
AlloCommandHandler.java | 24 import org.mockftpserver.core.session.Session;
56 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(Command, Session, InvocationRecord)
58 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
72 sendReply(session);
|
HelpCommandHandler.java | 22 import org.mockftpserver.core.session.Session;
53 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(Command, Session, InvocationRecord)
55 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
57 sendReply(session, helpMessage);
|
SystCommandHandler.java | 22 import org.mockftpserver.core.session.Session;
52 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(Command, Session, InvocationRecord)
54 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
55 sendReply(session, quotes(systemName));
|
/external/replicaisland/src/com/replica/replicaisland/ |
EventReporter.java | 22 public long session; field in class:EventReporter.Event 55 public void addEvent(int eventType, float x, float y, float time, String level, int version, long session) { 62 event.session = session; 93 + "&session=" + event.session);
|
/frameworks/base/core/java/android/hardware/display/ |
WifiDisplaySessionInfo.java | 23 * This class contains information regarding a wifi display session 24 * (such as session id, source ip address, etc.). This is needed for 44 int session = in.readInt(); 49 return new WifiDisplaySessionInfo(client, session, group, pp, ip); 63 boolean client, int session, String group, String pp, String ip) { 65 mSessionId = session;
|
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/ |
PictureTakerImpl.java | 30 import com.android.camera.session.CaptureSession; 54 CaptureSession session) { 57 mSession = session; 80 public void takePicture(OneCamera.PhotoCaptureParameters params, final CaptureSession session) { 94 session); 97 imageExposureCallback, imageSaver, session));
|
/frameworks/support/v4/java/android/support/v4/media/session/ |
MediaControllerCompat.java | 17 package android.support.v4.media.session; 33 import android.support.v4.media.session.MediaSessionCompat.QueueItem; 34 import android.support.v4.media.session.PlaybackStateCompat.CustomAction; 43 * Allows an app to interact with an ongoing media session. Media buttons and 44 * other commands can be sent to the session. A callback may be registered to 45 * receive updates from the session, such as metadata and play state changes. 48 * from the session owner. 52 * This is a helper for accessing features in {@link android.media.session.MediaSession} 62 * Creates a media controller from a session. 64 * @param session The session to be controlled [all...] |
/frameworks/av/services/audiopolicy/service/ |
AudioPolicyInterfaceImpl.cpp | 147 audio_session_t session, 171 return mAudioPolicyManager->getOutputForAttr(attr, output, session, stream, uid, samplingRate, 177 audio_session_t session) 193 status_t status = audioPolicyEffects->addOutputSessionEffects(output, stream, session); 195 ALOGW("Failed to add effects on session %d", session); 199 return mAudioPolicyManager->startOutput(output, stream, session); 204 audio_session_t session) 213 mOutputCommandThread->stopOutputCommand(output, stream, session); 219 audio_session_t session) [all...] |
/external/chromium-trace/trace-viewer/third_party/webapp2/webapp2_extras/ |
sessions.py | 6 Lightweight but flexible session support for webapp2. 21 #: Secret key to generate session cookies. Set this to something random 26 #: Name of the cookie to save a session or session id. Default is 27 #: `session`. 30 #: Default session expiration time in seconds. Limits the duration of the 31 #: contents of a cookie, even if a session cookie exists. If None, the 38 #: of a session cookie. If None, the cookie lasts until the client 55 #: A dictionary of available session backend classes used by 59 'cookie_name': 'session', 162 session = None variable in class:BaseSessionFactory [all...] |
/frameworks/av/drm/libdrmframework/plugins/common/include/ |
DrmEngineBase.h | 114 * @param[in] uniqueId Unique identifier for a session 129 * @param[in] uniqueId Unique identifier for a session 141 * @param[in] uniqueId Unique identifier for a session 151 * @param[in] uniqueId Unique identifier for a session. uniqueId is a random 169 * @param[in] uniqueId Unique identifier for a session 178 * @param[in] uniqueId Unique identifier for a session 188 * @param[in] uniqueId Unique identifier for a session 199 * @param[in] uniqueId Unique identifier for a session 213 * @param[in] uniqueId Unique identifier for a session 223 * @param[in] uniqueId Unique identifier for a session [all...] |
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
CaptureIntentSession.java | 25 import com.android.camera.session.CaptureSession; 26 import com.android.camera.session.CaptureSessionManager; 27 import com.android.camera.session.SessionNotifier; 28 import com.android.camera.session.StackSaver; 29 import com.android.camera.session.TemporarySessionFile; 49 /** The capture session manager responsible for this session. */ 51 /** Used to inform about session status updates. */ 55 /** The location this session was created at. Used for media store. */ 63 * @param title the title of this session [all...] |
/frameworks/base/services/core/java/com/android/server/media/ |
MediaSessionService.java | 38 import android.media.session.IActiveSessionsListener; 39 import android.media.session.ISession; 40 import android.media.session.ISessionCallback; 41 import android.media.session.ISessionManager; 42 import android.media.session.MediaSession; 137 Log.d(TAG, "Unknown session updated. Ignoring."); 146 * Tells the system UI that volume has changed on a remote session. 148 public void notifyRemoteVolumeChanged(int flags, MediaSessionRecord session) { 153 mRvc.remoteVolumeChanged(session.getControllerBinder(), flags); 163 Log.d(TAG, "Unknown session changed playback state. Ignoring.") 427 final MediaSessionRecord session = new MediaSessionRecord(callerPid, callerUid, userId, local 545 MediaSessionRecord session = mSessions.get(i); local 771 MediaSessionRecord session = mPriorityStack local 791 MediaSessionRecord session = mPriorityStack local [all...] |