Home
last modified time | relevance | path

Searched refs:sessionId (Results 1 – 25 of 47) sorted by relevance

12

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPackageInstaller.java56 protected PackageInstaller.SessionInfo getSessionInfo(int sessionId) { in getSessionInfo() argument
57 return sessionInfos.get(sessionId); in getSessionInfo()
63 sessionInfo.sessionId = nextSessionId++; in createSession()
72 callbackInfo.callback.onCreated(sessionInfo.sessionId); in createSession()
77 return sessionInfo.sessionId; in createSession()
81 protected void abandonSession(int sessionId) { in abandonSession() argument
82 sessionInfos.remove(sessionId); in abandonSession()
83 sessions.remove(sessionId); in abandonSession()
89 callbackInfo.callback.onFinished(sessionId, false); in abandonSession()
97 protected PackageInstaller.Session openSession(int sessionId) throws IOException { in openSession() argument
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageInstallerTest.java47 int sessionId = packageInstaller.createSession(createSessionParams("packageName")); in packageInstallerCreateAndAbandonSession() local
49 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in packageInstallerCreateAndAbandonSession()
54 packageInstaller.abandonSession(sessionId); in packageInstallerCreateAndAbandonSession()
56 assertThat(packageInstaller.getSessionInfo(sessionId)).isNull(); in packageInstallerCreateAndAbandonSession()
59 verify(mockCallback).onCreated(sessionId); in packageInstallerCreateAndAbandonSession()
60 verify(mockCallback).onFinished(sessionId, false); in packageInstallerCreateAndAbandonSession()
65 int sessionId = packageInstaller.createSession(createSessionParams("packageName")); in packageInstallerOpenSession() local
67 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in packageInstallerOpenSession()
79 int sessionId = packageInstaller.createSession(createSessionParams("packageName")); in sessionOpenWriteDoesNotThrowException() local
80 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in sessionOpenWriteDoesNotThrowException()
[all …]
/external/v8/src/inspector/
Dv8-console.h23 int sessionId);
125 void keysCallback(const v8::FunctionCallbackInfo<v8::Value>&, int sessionId);
127 int sessionId);
129 int sessionId);
131 int sessionId);
133 int sessionId);
135 int sessionId);
137 int sessionId);
139 int sessionId);
140 void copyCallback(const v8::FunctionCallbackInfo<v8::Value>&, int sessionId);
[all …]
Dinspected-context.cc96 bool InspectedContext::isReported(int sessionId) const { in isReported()
97 return m_reportedSessionIds.find(sessionId) != m_reportedSessionIds.cend(); in isReported()
100 void InspectedContext::setReported(int sessionId, bool reported) { in setReported() argument
102 m_reportedSessionIds.insert(sessionId); in setReported()
104 m_reportedSessionIds.erase(sessionId); in setReported()
107 InjectedScript* InspectedContext::getInjectedScript(int sessionId) { in getInjectedScript() argument
108 auto it = m_injectedScripts.find(sessionId); in getInjectedScript()
112 bool InspectedContext::createInjectedScript(int sessionId) { in createInjectedScript() argument
114 InjectedScript::create(this, sessionId); in createInjectedScript()
117 CHECK(m_injectedScripts.find(sessionId) == m_injectedScripts.end()); in createInjectedScript()
[all …]
Dinspected-context.h36 bool isReported(int sessionId) const;
37 void setReported(int sessionId, bool reported);
42 InjectedScript* getInjectedScript(int sessionId);
43 bool createInjectedScript(int sessionId);
44 void discardInjectedScript(int sessionId);
Dv8-console.cc49 InjectedScript* injectedScript(int sessionId) { in injectedScript() argument
52 return context->getInjectedScript(sessionId); in injectedScript()
55 V8InspectorSessionImpl* session(int sessionId) { in session() argument
56 return m_inspector->sessionById(m_groupId, sessionId); in session()
447 int sessionId) { in keysCallback() argument
462 int sessionId) { in valuesCallback() argument
484 static void setFunctionBreakpoint(ConsoleHelper& helper, int sessionId, in setFunctionBreakpoint() argument
489 V8InspectorSessionImpl* session = helper.session(sessionId); in setFunctionBreakpoint()
500 const v8::FunctionCallbackInfo<v8::Value>& info, int sessionId) { in debugFunctionCallback() argument
509 setFunctionBreakpoint(helper, sessionId, function, in debugFunctionCallback()
[all …]
Dv8-inspector-session-impl.cc46 V8InspectorImpl* inspector, int contextGroupId, int sessionId, in create() argument
49 inspector, contextGroupId, sessionId, channel, state)); in create()
54 int sessionId, in V8InspectorSessionImpl() argument
58 m_sessionId(sessionId), in V8InspectorSessionImpl()
191 int sessionId = m_sessionId; in discardInjectedScripts() local
193 [&sessionId](InspectedContext* context) { in discardInjectedScripts()
194 context->discardInjectedScript(sessionId); in discardInjectedScripts()
228 int sessionId = m_sessionId; in releaseObjectGroup() local
230 m_contextGroupId, [&objectGroup, &sessionId](InspectedContext* context) { in releaseObjectGroup()
231 InjectedScript* injectedScript = context->getInjectedScript(sessionId); in releaseObjectGroup()
[all …]
Dv8-inspector-impl.cc160 int sessionId = ++m_lastSessionId; in connect() local
162 V8InspectorSessionImpl::create(this, contextGroupId, sessionId, channel, in connect()
164 m_sessions[contextGroupId][sessionId] = session.get(); in connect()
170 map.erase(session->sessionId()); in disconnect()
349 int sessionId) { in sessionById() argument
352 auto it2 = it->second.find(sessionId); in sessionById()
387 for (auto& sessionId : ids) { in forEachSession() local
390 auto sessionIt = it->second.find(sessionId); in forEachSession()
Dv8-inspector-session-impl.h35 V8InspectorImpl*, int contextGroupId, int sessionId,
46 int sessionId() const { return m_sessionId; } in sessionId() function
95 V8InspectorSessionImpl(V8InspectorImpl*, int contextGroupId, int sessionId,
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiAwareManagerFacade.java122 j.put(NS_KEY_SESSION_ID, ns.sessionId); in getJsonString()
148 int type = 0, role = 0, clientId = 0, sessionId = 0, peerId = 0; in getNetworkSpecifier() local
164 sessionId = j.getInt((NS_KEY_SESSION_ID)); in getNetworkSpecifier()
185 return new WifiAwareNetworkSpecifier(type, role, clientId, sessionId, peerId, peerMac, pmk, in getNetworkSpecifier()
398 int sessionId = getNextSessionId(); in wifiAwareAttach() local
402 new AwareAttachCallbackPostsEvents(sessionId, useIdInCallbackEventName), in wifiAwareAttach()
404 ? new AwareIdentityChangeListenerPostsEvents(sessionId, in wifiAwareAttach()
406 return sessionId; in wifiAwareAttach()
456 Integer sessionId, in wifiAwareUpdatePublish()
461 DiscoverySession session = mDiscoverySessions.get(sessionId); in wifiAwareUpdatePublish()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DFacadeManagerFactory.java48 public FacadeManager create(String sessionId) throws IllegalArgumentException { in create() argument
54 if (mFacadeManagers.containsKey(sessionId)) { in create()
55 throw new IllegalArgumentException("SessionID " + sessionId + " already exists."); in create()
57 mFacadeManagers.put(sessionId, facadeManager); in create()
63 public boolean destroy(String sessionId) { in destroy() argument
64 RpcReceiverManager removed = mFacadeManagers.remove(sessionId); in destroy()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DAbstractSessionContext.java119 public final SSLSession getSession(byte[] sessionId) { in getSession() argument
120 if (sessionId == null) { in getSession()
123 ByteArray key = new ByteArray(sessionId); in getSession()
242 final NativeSslSession getSessionFromCache(byte[] sessionId) { in getSessionFromCache() argument
243 if (sessionId == null) { in getSessionFromCache()
250 session = sessions.get(new ByteArray(sessionId)); in getSessionFromCache()
262 return getSessionFromPersistentCache(sessionId); in getSessionFromCache()
286 abstract NativeSslSession getSessionFromPersistentCache(byte[] sessionId); in getSessionFromPersistentCache() argument
DServerSessionContext.java59 NativeSslSession getSessionFromPersistentCache(byte[] sessionId) { in getSessionFromPersistentCache() argument
61 byte[] data = persistentCache.getSessionData(sessionId); in getSessionFromPersistentCache()
/external/conscrypt/common/src/main/java/org/conscrypt/
DAbstractSessionContext.java118 public final SSLSession getSession(byte[] sessionId) { in getSession() argument
119 if (sessionId == null) { in getSession()
122 ByteArray key = new ByteArray(sessionId); in getSession()
241 final NativeSslSession getSessionFromCache(byte[] sessionId) { in getSessionFromCache() argument
242 if (sessionId == null) { in getSessionFromCache()
249 session = sessions.get(new ByteArray(sessionId)); in getSessionFromCache()
261 return getSessionFromPersistentCache(sessionId); in getSessionFromCache()
285 abstract NativeSslSession getSessionFromPersistentCache(byte[] sessionId); in getSessionFromPersistentCache() argument
DServerSessionContext.java57 NativeSslSession getSessionFromPersistentCache(byte[] sessionId) { in getSessionFromPersistentCache() argument
59 byte[] data = persistentCache.getSessionData(sessionId); in getSessionFromPersistentCache()
/external/jacoco/org.jacoco.core/src/org/jacoco/core/runtime/
DRuntimeData.java34 private String sessionId; field in RuntimeData
54 sessionId = "<none>"; in RuntimeData()
70 sessionId = id; in setSessionId()
80 return sessionId; in getSessionId()
98 final SessionInfo info = new SessionInfo(sessionId, startTimeStamp, in collect()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
DMessageHandler.java75 String sessionId = "" + senderId; in handleMessage() local
78 if (mRpcReceiverManagerFactory.getRpcReceiverManagers().containsKey(sessionId)) { in handleMessage()
80 mRpcReceiverManagerFactory.getRpcReceiverManagers().get(sessionId); in handleMessage()
82 receiverManager = mRpcReceiverManagerFactory.create(sessionId); in handleMessage()
/external/jacoco/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/
DAgent.java160 String sessionId = options.getSessionId(); in startup() local
161 if (sessionId == null) { in startup()
162 sessionId = createSessionId(); in startup()
164 data.setSessionId(sessionId); in startup()
/external/conscrypt/testing/src/main/java/org/conscrypt/tlswire/handshake/
DClientHello.java35 public byte[] sessionId; field in ClientHello
45 sessionId = IoUtils.readTlsVariableLengthByteVector(in, 32); in parseBody()
95 + new BigInteger(1, sessionId).toString(16) + ", cipher suites: " + cipherSuites in toString()
/external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
DRpcReceiverManagerFactory.java29 RpcReceiverManager create(String sessionId); in create() argument
37 boolean destroy(String sessionId); in destroy() argument
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/tlswire/handshake/
DClientHello.java37 public byte[] sessionId; field in ClientHello
47 sessionId = IoUtils.readTlsVariableLengthByteVector(in, 32); in parseBody()
97 + new BigInteger(1, sessionId).toString(16) + ", cipher suites: " + cipherSuites in toString()
/external/jacoco/jacoco-maven-plugin/src/org/jacoco/maven/
DAbstractAgentMojo.java87 String sessionId; field in AbstractAgentMojo
192 if (sessionId != null) { in createAgentOptions()
193 agentOptions.setSessionId(sessionId); in createAgentOptions()
/external/boringssl/src/ssl/test/runner/
Dhandshake_messages.go258 sessionId []byte member
313 bytes.Equal(m.sessionId, m1.sessionId) &&
380 sessionId := hello.addU8LengthPrefixed()
381 sessionId.addBytes(m.sessionId)
684 !reader.readU8LengthPrefixedBytes(&m.sessionId) ||
685 len(m.sessionId) > 32 {
980 sessionId []byte member
1019 sessionId := hello.addU8LengthPrefixed()
1020 sessionId.addBytes(m.sessionId)
1092 if !reader.readU8LengthPrefixedBytes(&m.sessionId) ||
[all …]
Dhandshake_client.go62 hello.sessionId = newHello.sessionId
371 hello.sessionId = make([]byte, sessionIdLen)
372 if _, err := io.ReadFull(c.config.rand(), hello.sessionId); err != nil {
377 hello.sessionId = session.sessionId
386 if len(hello.sessionId) == 0 && maxVersion >= VersionTLS13 {
387 hello.sessionId = make([]byte, 32)
388 if _, err := io.ReadFull(c.config.rand(), hello.sessionId); err != nil {
410 hello.sessionId = c.config.Bugs.SendClientHelloSessionID
421 sessionId: nil,
777 if c.config.Bugs.RequireSessionIDs && len(hs.session.sessionId) == 0 {
[all …]
Dcommon.go279sessionId []uint8 // Session ID supplied by the server. nil if the session … member
317 Get(sessionId string) (session *sessionState, ok bool)
320 Put(sessionId string, session *sessionState)
1971 func (c *lruServerSessionCache) Put(sessionId string, session *sessionState) {
1972 c.lruSessionCache.Put(sessionId, session)
1975 func (c *lruServerSessionCache) Get(sessionId string) (*sessionState, bool) {
1976 cs, ok := c.lruSessionCache.Get(sessionId)

12