/cts/tests/tests/content/src/android/content/pm/cts/ |
InstallSessionTransferTest.java | 30 import android.content.pm.PackageInstaller.Session; 54 * Get the sessionInfo if this package owns the session. 56 * @param sessionId The id of the session 58 * @return The {@link PackageInstaller.SessionInfo} object, or {@code null} if session is not 96 * Write an APK to the session. 98 * @param session The session to write to 101 private void writeApk(@NonNull Session session, @NonNull String name) throws IOException { 103 try (OutputStream out = session.openWrite(name, 0, -1)) 135 Session session = installer.openSession(sessionId); local 180 Session session = createSession(); local 196 Session session = createSession(); local 213 Session session = createSession(); local 231 Session session = createSession(); local 253 Session session = createSession(); local [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/session/ |
DefaultSession_RunTest.java | 16 package org.mockftpserver.core.session;
36 * Tests for the DefaultSession class that require the session (thread) to be running/active.
48 private DefaultSession session;
field in class:DefaultSession_RunTest 63 public void handleCommand(Command command, Session cmdSession, InvocationRecord invocationRecord) {
65 assertSame("session", session, cmdSession);
76 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {
77 session.close();
89 session = new DefaultSession(stubSocket, commandHandlerMap); [all...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/session/ |
DefaultSession_RunTest.java | 16 package org.mockftpserver.core.session;
33 import org.mockftpserver.core.session.DefaultSession;
34 import org.mockftpserver.core.session.Session;
41 * Tests for the DefaultSession class that require the session (thread) to be running/active.
54 private DefaultSession session;
field in class:DefaultSession_RunTest 76 public void handleCommand(Command command, Session cmdSession, InvocationRecord invocationRecord) {
78 assertSame("session", session, cmdSession);
94 public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) { [all...] |
/frameworks/base/core/java/android/view/textservice/ |
TextServicesManager.java | 59 * <li>The <strong>spell checker session</strong> is one of the text services. 114 * Get a spell checker session for the specified spell checker 122 * @param listener a spell checker session lister for getting results from a spell checker. 123 * @param referToSpellCheckerLanguageSettings if true, the session for one of enabled 125 * @return the spell checker session of the spell checker 181 final SpellCheckerSession session = new SpellCheckerSession(sci, mService, listener); local 184 session.getTextServicesSessionListener(), 185 session.getSpellCheckerSessionListener(), bundle); 189 return session;
|
SpellCheckerSession.java | 139 * @return true if the connection to a text service of this session is disconnected and not 147 * Get the spell checker service info this spell checker session has. 162 * Finish this session and allow TextServicesManagerService to disconnect the bound spell 283 private void processTask(ISpellCheckerSession session, SpellCheckerParams scp, 288 + " session.hashCode()=#" + Integer.toHexString(session.hashCode()) 298 session.onCancel(); 305 session.onGetSuggestionsMultiple(scp.mTextInfos, 313 session.onGetSentenceSuggestionsMultiple( 321 session.onClose() 446 ISpellCheckerSession session; local [all...] |
/packages/apps/Camera2/src/com/android/camera/session/ |
CaptureSessionManagerImpl.java | 17 package com.android.camera.session; 37 * <li>Create a new capture session.</li> 38 * <li>Pass it around to anywhere where the status of a session needs to be 41 * that processing of this session has started. The Camera app right now will 54 * It's OK to call saveAndFinish either before or after the session has been 57 * If startSession is called after the session has been finished, it will be 250 /** Used to fire events to the session listeners from the main thread. */ 253 /** Failed session messages. Uri -> message ID. */ 262 * @param sessionFactory used to create new capture session objects. 264 * temporary session dat 287 mSessions.put(sessionUri.toString(), session); local 372 CaptureSession session; local [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
PackageInstallerImpl.java | 52 private final Map<String, PackageInstaller.Session> mOpenSessionMap; 73 mOpenSessionMap = new HashMap<String, PackageInstaller.Session>(); 98 * This is a placeholder implementation that bundles an entire "session" into a single 99 * call. This will be replaced by more granular versions that allow longer session lifetimes, 110 // 1. Create or recover a session, and open it 112 PackageInstaller.Session session = null; local 116 session = getSession(packageName); 118 // If open failed, or there was no session, create a new one and open it. 120 if (session == null) 164 PackageInstaller.Session session = mOpenSessionMap.get(packageName); local 237 PackageInstaller.Session session = mOpenSessionMap.remove(packageName); local [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaSessionManagerTest.java | 25 import android.media.session.MediaController; 26 import android.media.session.MediaSession; 27 import android.media.session.MediaSessionManager; 28 import android.media.session.PlaybackState; 154 MediaSession session = null; local 156 session = new MediaSession(getInstrumentation().getTargetContext(), TAG); 157 MediaSessionCallback callback = new MediaSessionCallback(2, session); 158 session.setFlags(MediaSession.FLAG_HANDLES_MEDIA_BUTTONS 160 session.setCallback(callback, handler); 163 // Fake the media session service so this session can take the media key events 222 MediaSession session = null; local [all...] |
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
AbstractSessionContextTest.java | 105 NativeSslSession session = new MockSessionBuilder() local 115 context.cacheSession(session);
|
/external/libese/apps/boot/tests/ |
ese_app_boot_tests.cpp | 98 struct EseBootSession session; local 99 ese_boot_session_init(&session); 118 EXPECT_EQ(ESE_APP_RESULT_OK, ese_boot_session_open(&ese_, &session)); 123 struct EseBootSession session; local 124 ese_boot_session_init(&session); 136 EXPECT_EQ(ESE_APP_RESULT_ERROR_COOLDOWN, ese_boot_session_open(&ese_, &session)); 141 struct EseBootSession session; local 142 ese_boot_session_init(&session); 161 EXPECT_EQ(ESE_APP_RESULT_ERROR_OS, ese_boot_session_open(&ese_, &session));
|
/external/libvncserver/libvncserver/ |
rfbssl_gnutls.c | 32 gnutls_session_t session; member in struct:rfbssl_ctx 52 gnutls_session_t session; local 55 if (!GNUTLS_E_SUCCESS == (ret = gnutls_init(&session, GNUTLS_SERVER))) { 57 } else if (!GNUTLS_E_SUCCESS == (ret = gnutls_priority_set_direct(session, "EXPORT", NULL))) { 59 } else if (!GNUTLS_E_SUCCESS == (ret = gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, ctx->x509_cred))) { 62 gnutls_session_enable_compatibility_mode(session); 63 gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t)(uintptr_t)fd); 64 ctx->session = session; 132 while (GNUTLS_E_SUCCESS != (ret = gnutls_handshake(ctx->session))) { [all...] |
/external/mesa3d/src/gallium/drivers/radeon/ |
radeon_vce_40_2_2.c | 49 static void session(struct rvce_encoder *enc) function 51 RVCE_BEGIN(0x00000001); // session cmd 440 enc->session = session;
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/command/ |
AbstractTrackingCommandHandler.java | 19 import org.mockftpserver.core.session.Session;
44 * Handle the specified command for the session. This method is declared to throw Exception,
49 * @param session - the session on which the Command was submitted
51 * @throws AssertFailedException - if the command or session is null
53 * org.mockftpserver.core.session.Session)
55 public final void handleCommand(Command command, Session session) throws Exception { [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
StaticReplyCommandHandlerTest.java | 85 session.sendReply(250, replyTextFor(250));
86 replay(session);
88 commandHandler.handleCommand(COMMAND, session);
89 verify(session);
103 session.sendReply(REPLY_CODE, REPLY_TEXT);
104 replay(session);
106 commandHandler.handleCommand(COMMAND, session);
107 verify(session);
120 commandHandler.handleCommand(COMMAND, session);
|
_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/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/ |
AcctCommandHandlerTest.java | 43 session.sendReply(ReplyCodes.ACCT_OK, replyTextFor(ReplyCodes.ACCT_OK));
44 session.sendReply(ReplyCodes.ACCT_OK, replyTextFor(ReplyCodes.ACCT_OK));
45 replay(session);
47 commandHandler.handleCommand(command1, session);
48 commandHandler.handleCommand(command2, session);
49 verify(session);
|
EprtCommandHandlerTest.java | 43 session.setClientDataPort(PORT);
44 session.setClientDataHost(HOST_IPV4);
45 session.sendReply(ReplyCodes.EPRT_OK, replyTextFor(ReplyCodes.EPRT_OK));
46 replay(session);
48 commandHandler.handleCommand(COMMAND, session);
49 verify(session);
60 session.setClientDataPort(PORT);
61 session.setClientDataHost(HOST_IPV6);
62 session.sendReply(ReplyCodes.EPRT_OK, replyTextFor(ReplyCodes.EPRT_OK));
63 replay(session);
[all...] |
ModeCommandHandlerTest.java | 42 session.sendReply(ReplyCodes.MODE_OK, replyTextFor(ReplyCodes.MODE_OK));
43 session.sendReply(ReplyCodes.MODE_OK, replyTextFor(ReplyCodes.MODE_OK));
44 replay(session);
46 commandHandler.handleCommand(command1, session);
47 commandHandler.handleCommand(command2, session);
48 verify(session);
|
PassCommandHandlerTest.java | 44 session.sendReply(ReplyCodes.PASS_OK, replyTextFor(ReplyCodes.PASS_OK));
45 session.sendReply(ReplyCodes.PASS_OK, replyTextFor(ReplyCodes.PASS_OK));
46 replay(session);
48 commandHandler.handleCommand(command1, session);
49 commandHandler.handleCommand(command2, session);
50 verify(session);
|
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);
|
SiteCommandHandlerTest.java | 38 * Test the handleCommand(Command,Session) method
42 session.sendReply(ReplyCodes.SITE_OK, replyTextFor(ReplyCodes.SITE_OK));
43 session.sendReply(ReplyCodes.SITE_OK, replyTextFor(ReplyCodes.SITE_OK));
44 replay(session);
46 commandHandler.handleCommand(command1, session);
47 commandHandler.handleCommand(command2, session);
48 verify(session);
|
StruCommandHandlerTest.java | 42 session.sendReply(ReplyCodes.STRU_OK, replyTextFor(ReplyCodes.STRU_OK));
43 session.sendReply(ReplyCodes.STRU_OK, replyTextFor(ReplyCodes.STRU_OK));
44 replay(session);
46 commandHandler.handleCommand(command1, session);
47 commandHandler.handleCommand(command2, session);
48 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/stub/command/ |
FileRetrCommandHandler.java | 27 import org.mockftpserver.core.session.Session;
76 * @see org.mockftpserver.stub.command.AbstractStubDataCommandHandler#beforeProcessData(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session, org.mockftpserver.core.command.InvocationRecord)
78 protected void beforeProcessData(Command command, Session session, InvocationRecord invocationRecord) throws Exception {
84 * @see org.mockftpserver.stub.command.AbstractStubDataCommandHandler#processData(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session, org.mockftpserver.core.command.InvocationRecord)
86 protected void processData(Command command, Session session, InvocationRecord invocationRecord) { [all...] |