/external/mockito/src/main/java/org/mockito/internal/session/ |
MockitoLoggerAdapter.java | 5 package org.mockito.internal.session; 8 import org.mockito.session.MockitoSessionLogger;
|
/external/mockito/src/main/java/org/mockito/session/ |
MockitoSessionBuilder.java | 5 package org.mockito.session; 67 * {@linkplain MockitoSession#finishMocking() finishing} a session. 73 * Passing {@code null} is permitted and will make the session use a default value. 76 * otherwise, {@code "<Unnamed Session>"} is used. 90 * Passing {@code null} is permitted and will make the session use a default value. 101 * {@linkplain org.mockito.quality.MockitoHint warnings} when finishing the session. 108 * Passing {@code null} is permitted and will make the session use a default value. 119 * Starts new mocking session! Creates new {@code MockitoSession} instance to initialize the session. 121 * When you are done with the session it is required to invoke {@link MockitoSession#finishMocking()} [all...] |
/external/tensorflow/tensorflow/core/common_runtime/ |
session_test.cc | 16 #include "tensorflow/core/public/session.h" 31 Session* session; local 32 Status s = tensorflow::NewSession(options, &session); 37 "No session factory registered for the given session options")); 40 // Register a fake session factory to test error handling paths in 50 Session* NewSession(const SessionOptions& options) override { 67 Session* session; local [all...] |
/external/tpm2/ |
PolicyCounterTimer.c | 25 SESSION *session; local 45 // Get pointer to the session structure 46 session = SessionGet(in->policySession); 49 if(session->attributes.isTrialPolicy == CLEAR) 147 argHash.t.size = CryptStartHash(session->authHashAlg, &hashState); 159 CryptStartHash(session->authHashAlg, &hashState); 162 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); 171 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
|
PolicyLocality.c | 23 SESSION *session; local 34 // Get pointer to the session structure 35 session = SessionGet(in->policySession); 49 TPMA_LOCALITY_Marshal(&session->commandLocality, &buffer, &bufferSize); 90 CryptStartHash(session->authHashAlg, &hashState); 93 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); 102 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); 104 // update session locality by unmarshal function. The function must succeed 107 TPMA_LOCALITY_Unmarshal(&session->commandLocality, &buffer [all...] |
PolicyNV.c | 29 SESSION *session; local 42 // Get pointer to the session structure 43 session = SessionGet(in->policySession); 46 if(session->attributes.isTrialPolicy == CLEAR) 154 argHash.t.size = CryptStartHash(session->authHashAlg, &hashState); 170 CryptStartHash(session->authHashAlg, &hashState); 173 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); 186 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
|
PolicyPCR.c | 22 SESSION *session; local 33 // Get pointer to the session structure 34 session = SessionGet(in->policySession); 36 // Do validation for non trial session 37 if(session->attributes.isTrialPolicy == CLEAR) 40 if(session->pcrCounter != 0 && session->pcrCounter != gr.pcrCounter) 44 PCRComputeCurrentDigest(session->authHashAlg, &in->pcrs, &pcrDigest); 56 // For trial session, just use the input PCR diges [all...] |
PolicySigned.c | 25 // session 34 SESSION *session; local 45 session = SessionGet(in->policySession); // the session structure 47 // Only do input validation if this is not a trial policy session 48 if(session->attributes.isTrialPolicy == CLEAR) 51 authTimeout = expiration * 1000 + session->startTime; 53 result = PolicyParameterChecks(session, authTimeout, 69 // session, the size of this value is zero [all...] |
/frameworks/av/media/libaudioclient/include/media/ |
IAudioPolicyServiceClient.h | 31 audio_session_t session; member in struct:android::record_client_info
|
/frameworks/support/media/api23/android/support/v4/media/session/ |
MediaControllerCompatApi23.java | 17 package android.support.v4.media.session; 19 import android.media.session.MediaController;
|
/packages/apps/Camera2/src/com/android/camera/session/ |
StackSaverFactory.java | 17 package com.android.camera.session; 47 * @param mTitle the title of this stack session. 48 * @param location the GPS location that the media in this session was
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
NlstCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
47 protected void handle(Command command, Session session) {
48 verifyLoggedIn(session);
49 sendReply(session, ReplyCodes.TRANSFER_DATA_INITIAL_OK);
50 String path = getRealPath(session, command.getParameter(0));
55 verifyReadPermission(session, path);
63 session.openDataConnection();
64 session.sendData(directoryListing.getBytes(), directoryListing.length()); [all...] |
RetrCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
21 import org.mockftpserver.core.session.SessionKeys;
49 protected void handle(Command command, Session session) {
50 verifyLoggedIn(session);
53 String path = getRealPath(session, command.getRequiredParameter(0));
60 verifyReadPermission(session, path);
63 verifyExecutePermission(session, getFileSystem().getParent(path));
65 sendReply(session, ReplyCodes.TRANSFER_DATA_INITIAL_OK); [all...] |
ListCommandHandler.java | 20 import org.mockftpserver.core.session.Session;
49 protected void handle(Command command, Session session) {
50 verifyLoggedIn(session);
51 sendReply(session, ReplyCodes.TRANSFER_DATA_INITIAL_OK);
53 String path = getRealPath(session, command.getParameter(0));
58 verifyReadPermission(session, path);
72 session.openDataConnection();
74 session.sendData(result.getBytes(), result.length()); [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/ |
QuitCommandHandlerTest.java | 38 session.sendReply(ReplyCodes.QUIT_OK, replyTextFor(ReplyCodes.QUIT_OK));
39 session.close();
40 replay(session);
42 commandHandler.handleCommand(COMMAND, session);
43 verify(session);
|
RetrCommandHandlerTest.java | 100 session.sendReply(ReplyCodes.TRANSFER_DATA_INITIAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_INITIAL_OK));
101 session.openDataConnection();
102 session.sendData(FILE_CONTENTS.getBytes(), FILE_CONTENTS.length());
103 control(session).setMatcher(MockControl.ARRAY_MATCHER);
104 session.closeDataConnection();
105 session.sendReply(ReplyCodes.TRANSFER_DATA_FINAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_FINAL_OK));
106 replay(session);
109 commandHandler.handleCommand(command, session);
110 verify(session);
|
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/ |
QuitCommandHandlerTest.java | 40 session.sendReply(ReplyCodes.QUIT_OK, replyTextFor(ReplyCodes.QUIT_OK));
41 session.close();
42 replay(session);
44 commandHandler.handleCommand(COMMAND, session);
45 verify(session);
|
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);
|
/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...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/session/ |
DefaultSessionTest.java | 16 package org.mockftpserver.core.session;
54 private DefaultSession session;
field in class:DefaultSessionTest 70 session = createDefaultSession("");
113 session.socketFactory = stubSocketFactory;
114 session.setClientDataPort(PORT);
115 session.setClientDataHost(clientHost);
116 session.openDataConnection();
121 * Test the setClientDataPort() method after the session was in passive data mode
126 session.serverSocketFactory = stubServerSocketFactory;
128 session.switchToPassiveMode(); [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowPackageInstallerTest.java | 66 PackageInstaller.Session session = packageInstaller.openSession(sessionId); local 68 assertThat(session).isNotNull(); 73 PackageInstaller.Session session = packageInstaller.openSession(-99); local 79 PackageInstaller.Session session = packageInstaller.openSession(sessionId); local 81 OutputStream filename = session.openWrite("filename", 0, 0); 88 PackageInstaller.Session session = packageInstaller.openSession(sessionId) local 99 PackageInstaller.Session session = packageInstaller.openSession(sessionId); local 113 PackageInstaller.Session session = packageInstaller.openSession(sessionId); local 132 PackageInstaller.Session session = packageInstaller.openSession(sessionId); local [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
ClientSessionContext.java | 25 * looking to reuse any session for a given host and port. 53 * Gets the suitable session reference from the session cache container. 60 NativeSslSession session = getSession(hostName, port); local 61 if (session == null) { 65 String protocol = session.getProtocol(); 77 String cipherSuite = session.getCipherSuite(); 89 return session; 97 * Finds a cached session for the given host name and port. 101 * @return cached session or null if none foun 109 NativeSslSession session; local [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
AbstractStubDataCommandHandler.java | 23 import org.mockftpserver.core.session.Session;
36 * Subclasses can optionally override the {@link #beforeProcessData(Command, Session, InvocationRecord)}
37 * method for logic before the data transfer or the {@link #afterProcessData(Command, Session, InvocationRecord)}
97 * @see org.mockftpserver.core.command.AbstractTrackingCommandHandler#handleCommand(org.mockftpserver.core.command.Command, org.mockftpserver.core.session.Session, org.mockftpserver.core.command.InvocationRecord)
99 public final void handleCommand(Command command, Session session, InvocationRecord invocationRecord) throws Exception {
101 beforeProcessData(command, session, invocationRecord);
103 sendPreliminaryReply(session);
[all...] |
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/command/ |
AbstractStubDataCommandHandler.java | 23 import org.mockftpserver.core.session.Session;
36 * Subclasses can optionally override the {@link #beforeProcessData(Command, Session, InvocationRecord)}
37 * method for logic before the data transfer or the {@link #afterProcessData(Command, Session, InvocationRecord)}
98 * @see org.mockftpserver.core.command.CommandHandler#handleCommand(Command, Session, InvocationRecord)
100 public final void handleCommand(Command command, Session session, InvocationRecord invocationRecord) throws Exception {
102 beforeProcessData(command, session, invocationRecord);
104 sendPreliminaryReply(session);
105 session.openDataConnection(); [all...] |
/frameworks/support/media/api24/android/support/v4/media/session/ |
MediaSessionCompatApi24.java | 17 package android.support.v4.media.session; 19 import android.media.session.MediaSession; 38 MediaSession session = (MediaSession) sessionObj; local 40 Method getCallingPackageMethod = session.getClass().getMethod("getCallingPackage"); 41 return (String) getCallingPackageMethod.invoke(session);
|