/external/tpm2/ |
PolicyGetDigest.c | 16 SESSION *session; local 20 // Get pointer to the session structure 21 session = SessionGet(in->policySession); 23 out->policyDigest = session->u2.policyDigest;
|
GetSessionAuditDigest.c | 20 // TPM_RC_TYPE sessionHandle does not reference an audit session 32 SESSION *session; local 38 // Get session pointer 39 session = SessionGet(in->sessionHandle); 41 // session must be an audit session 42 if(session->attributes.isAudit == CLEAR) 66 auditInfo.attested.sessionAudit.sessionDigest = session->u2.auditDigest; 68 // Exclusive audit session [all...] |
PolicyAuthValue.c | 16 SESSION *session; local 22 // Get pointer to the session structure 23 session = SessionGet(in->policySession); 28 CryptStartHash(session->authHashAlg, &hashState); 31 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); 37 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); 39 // update isAuthValueNeeded bit in the session context 40 session->attributes.isAuthValueNeeded = SET; 41 session->attributes.isPasswordNeeded = CLEAR [all...] |
PolicyCommandCode.c | 21 SESSION *session; local 27 // Get pointer to the session structure 28 session = SessionGet(in->policySession); 30 if(session->commandCode != 0 && session->commandCode != in->code) 39 CryptStartHash(session->authHashAlg, &hashState); 42 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); 51 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); 53 // update commandCode value in session contex [all...] |
PolicyCpHash.c | 23 SESSION *session; local 29 // Get pointer to the session structure 30 session = SessionGet(in->policySession); 32 // A new cpHash is given in input parameter, but cpHash in session context 35 && session->u1.cpHash.t.size != 0 36 && !Memory2BEqual(&in->cpHashA.b, &session->u1.cpHash.b) 40 // A valid cpHash must have the same size as session hash digest 41 if(in->cpHashA.t.size != CryptGetHashDigestSize(session->authHashAlg)) 49 CryptStartHash(session->authHashAlg, &hashState) [all...] |
PolicyDuplicationSelect.c | 22 SESSION *session; local 28 // Get pointer to the session structure 29 session = SessionGet(in->policySession); 31 // cpHash in session context must be empty 32 if(session->u1.cpHash.t.size != 0) 35 // commandCode in session context must be empty 36 if(session->commandCode != 0) 42 session->u1.cpHash.t.size = CryptStartHash(session->authHashAlg, &hashState) [all...] |
PolicyNameHash.c | 23 SESSION *session; local 29 // Get pointer to the session structure 30 session = SessionGet(in->policySession); 32 // A new nameHash is given in input parameter, but cpHash in session context 34 if(in->nameHash.t.size != 0 && session->u1.cpHash.t.size != 0) 37 // A valid nameHash must have the same size as session hash digest 38 if(in->nameHash.t.size != CryptGetHashDigestSize(session->authHashAlg)) 46 CryptStartHash(session->authHashAlg, &hashState); 49 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b) [all...] |
PolicyNvWritten.c | 22 SESSION *session; local 28 // Get pointer to the session structure 29 session = SessionGet(in->policySession); 33 if(session->attributes.checkNvWritten == SET) 35 if(( (session->attributes.nvWrittenState == SET) 42 // Set session attributes so that the NV Index needs to be checked 43 session->attributes.checkNvWritten = SET; 44 session->attributes.nvWrittenState = (in->writtenSet == YES); 50 CryptStartHash(session->authHashAlg, &hashState) [all...] |
PolicyPassword.c | 16 SESSION *session; local 22 // Get pointer to the session structure 23 session = SessionGet(in->policySession); 28 CryptStartHash(session->authHashAlg, &hashState); 31 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); 37 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); 40 session->attributes.isPasswordNeeded = SET; 41 session->attributes.isAuthValueNeeded = CLEAR;
|
PolicyPhysicalPresence.c | 15 SESSION *session; local 21 // Get pointer to the session structure 22 session = SessionGet(in->policySession); 27 CryptStartHash(session->authHashAlg, &hashState); 30 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); 36 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); 38 // update session attribute 39 session->attributes.isPPRequired = SET;
|
PolicyRestart.c | 15 SESSION *session; local 20 session = SessionGet(in->sessionHandle); 21 wasTrialSession = session->attributes.isTrialPolicy == SET; 23 // Initialize policy session 24 SessionResetPolicyData(session); 26 session->attributes.isTrialPolicy = wasTrialSession;
|
PolicyOR.c | 23 SESSION *session; local 28 // Get pointer to the session structure 29 session = SessionGet(in->policySession); 31 // Compare and Update Internal Session policy if match 34 if( session->attributes.isTrialPolicy == SET 35 || (Memory2BEqual(&session->u2.policyDigest.b, 44 session->u2.policyDigest.t.size = CryptStartHash(session->authHashAlg, 47 MemorySet(session->u2.policyDigest.t.buffer, 0 [all...] |
StartAuthSession.c | 20 // TPM_RC_SESSION_HANDLES no session handle is available 21 // TPM_RC_SESSION_MEMORY no more slots for loading a session 37 SESSION *session; // session internal data local 43 // than the digest size of session hash. 63 // HMAC session input handle check. 98 // Create internal session structure. TPM_RC_CONTEXT_GAP, TPM_RC_NO_HANDLES 101 // The detailed actions for creating the session context are not shown here 113 // Get session pointe [all...] |
/external/mockito/src/main/java/org/mockito/session/ |
MockitoSessionLogger.java | 5 package org.mockito.session;
|
/frameworks/support/media/version-compat-tests/current/service/src/androidTest/java/android/support/mediacompat/service/ |
ServiceBroadcastReceiver.java | 58 import android.support.v4.media.session.MediaSessionCompat; 59 import android.support.v4.media.session.MediaSessionCompat.QueueItem; 60 import android.support.v4.media.session.ParcelableVolumeInfo; 61 import android.support.v4.media.session.PlaybackStateCompat; 101 MediaSessionCompat session = StubMediaBrowserServiceCompat.sSession; local 106 session.setExtras(extras.getBundle(KEY_ARGUMENT)); 109 session.setFlags(extras.getInt(KEY_ARGUMENT)); 112 session.setMetadata((MediaMetadataCompat) extras.getParcelable(KEY_ARGUMENT)); 115 session.setPlaybackState( 120 session.setQueue(items) [all...] |
/frameworks/support/media/version-compat-tests/previous/service/src/androidTest/java/android/support/mediacompat/service/ |
ServiceBroadcastReceiver.java | 59 import android.support.v4.media.session.MediaSessionCompat; 60 import android.support.v4.media.session.MediaSessionCompat.QueueItem; 61 import android.support.v4.media.session.ParcelableVolumeInfo; 62 import android.support.v4.media.session.PlaybackStateCompat; 100 MediaSessionCompat session = StubMediaBrowserServiceCompat.sSession; local 105 session.setExtras(extras.getBundle(KEY_ARGUMENT)); 108 session.setFlags(extras.getInt(KEY_ARGUMENT)); 111 session.setMetadata((MediaMetadataCompat) extras.getParcelable(KEY_ARGUMENT)); 114 session.setPlaybackState( 119 session.setQueue(items) [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/command/ |
AppeCommandHandlerTest.java | 48 session.sendReply(ReplyCodes.TRANSFER_DATA_INITIAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_INITIAL_OK));
49 session.openDataConnection();
50 session.readData();
51 control(session).setReturnValue(DATA.getBytes());
52 session.closeDataConnection();
53 session.sendReply(ReplyCodes.TRANSFER_DATA_FINAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_FINAL_OK));
54 replay(session);
57 commandHandler.handleCommand(command, session);
58 verify(session);
|
ListCommandHandlerTest.java | 43 session.sendReply(ReplyCodes.TRANSFER_DATA_INITIAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_INITIAL_OK));
44 session.openDataConnection();
46 session.sendData(bytes, bytes.length);
47 control(session).setMatcher(MockControl.ARRAY_MATCHER);
48 session.closeDataConnection();
49 session.sendReply(ReplyCodes.TRANSFER_DATA_FINAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_FINAL_OK));
51 replay(session);
55 commandHandler.handleCommand(command1, session);
56 commandHandler.handleCommand(command2, session);
57 verify(session);
[all...] |
NlstCommandHandlerTest.java | 43 session.sendReply(ReplyCodes.TRANSFER_DATA_INITIAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_INITIAL_OK));
44 session.openDataConnection();
46 session.sendData(bytes, bytes.length);
47 control(session).setMatcher(MockControl.ARRAY_MATCHER);
48 session.closeDataConnection();
49 session.sendReply(ReplyCodes.TRANSFER_DATA_FINAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_FINAL_OK));
51 replay(session);
55 commandHandler.handleCommand(command1, session);
56 commandHandler.handleCommand(command2, session);
57 verify(session);
[all...] |
StorCommandHandlerTest.java | 48 session.sendReply(ReplyCodes.TRANSFER_DATA_INITIAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_INITIAL_OK));
49 session.openDataConnection();
50 session.readData();
51 control(session).setReturnValue(DATA.getBytes());
52 session.closeDataConnection();
53 session.sendReply(ReplyCodes.TRANSFER_DATA_FINAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_FINAL_OK));
54 replay(session);
57 commandHandler.handleCommand(command, session);
58 verify(session);
|
StouCommandHandlerTest.java | 51 session.sendReply(ReplyCodes.TRANSFER_DATA_INITIAL_OK, replyTextFor(ReplyCodes.TRANSFER_DATA_INITIAL_OK));
52 session.openDataConnection();
53 session.readData();
54 control(session).setReturnValue(DATA.getBytes());
55 session.closeDataConnection();
56 session.sendReply(ReplyCodes.TRANSFER_DATA_FINAL_OK, formattedReplyTextFor("226.WithFilename", FILENAME));
57 replay(session);
61 commandHandler.handleCommand(command, session);
62 verify(session);
|
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/ |
AppeCommandHandlerTest.java | 51 session.sendReply(ReplyCodes.SEND_DATA_INITIAL_OK, replyTextFor(ReplyCodes.SEND_DATA_INITIAL_OK));
52 session.openDataConnection();
53 session.readData();
54 control(session).setReturnValue(DATA.getBytes());
55 session.closeDataConnection();
56 session.sendReply(ReplyCodes.SEND_DATA_FINAL_OK, replyTextFor(ReplyCodes.SEND_DATA_FINAL_OK));
57 replay(session);
60 commandHandler.handleCommand(command, session);
61 verify(session);
|
ListCommandHandlerTest.java | 45 session.sendReply(ReplyCodes.SEND_DATA_INITIAL_OK, replyTextFor(ReplyCodes.SEND_DATA_INITIAL_OK));
46 session.openDataConnection();
48 session.sendData(bytes, bytes.length);
49 control(session).setMatcher(MockControl.ARRAY_MATCHER);
50 session.closeDataConnection();
51 session.sendReply(ReplyCodes.SEND_DATA_FINAL_OK, replyTextFor(ReplyCodes.SEND_DATA_FINAL_OK));
53 replay(session);
57 commandHandler.handleCommand(command1, session);
58 commandHandler.handleCommand(command2, session);
59 verify(session);
[all...] |
NlstCommandHandlerTest.java | 43 session.sendReply(ReplyCodes.SEND_DATA_INITIAL_OK, replyTextFor(ReplyCodes.SEND_DATA_INITIAL_OK));
44 session.openDataConnection();
46 session.sendData(bytes, bytes.length);
47 control(session).setMatcher(MockControl.ARRAY_MATCHER);
48 session.closeDataConnection();
49 session.sendReply(ReplyCodes.SEND_DATA_FINAL_OK, replyTextFor(ReplyCodes.SEND_DATA_FINAL_OK));
51 replay(session);
55 commandHandler.handleCommand(command1, session);
56 commandHandler.handleCommand(command2, session);
57 verify(session);
[all...] |
StorCommandHandlerTest.java | 51 session.sendReply(ReplyCodes.SEND_DATA_INITIAL_OK, replyTextFor(ReplyCodes.SEND_DATA_INITIAL_OK));
52 session.openDataConnection();
53 session.readData();
54 control(session).setReturnValue(DATA.getBytes());
55 session.closeDataConnection();
56 session.sendReply(ReplyCodes.SEND_DATA_FINAL_OK, replyTextFor(ReplyCodes.SEND_DATA_FINAL_OK));
57 replay(session);
60 commandHandler.handleCommand(command, session);
61 verify(session);
|