Home
last modified time | relevance | path

Searched refs:mSessions (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareClientState.java55 private final SparseArray<WifiAwareDiscoverySessionState> mSessions = new SparseArray<>(); field in WifiAwareClientState
104 for (int i = 0; i < mSessions.size(); ++i) { in destroy()
105 mSessions.valueAt(i).terminate(); in destroy()
107 mSessions.clear(); in destroy()
136 return mSessions; in getSessions()
148 for (int i = 0; i < mSessions.size(); ++i) { in getAwareSessionStateForPubSubId()
149 WifiAwareDiscoverySessionState session = mSessions.valueAt(i); in getAwareSessionStateForPubSubId()
165 if (mSessions.get(sessionId) != null) { in addSession()
169 mSessions.put(sessionId, session); in addSession()
180 if (mSessions.get(sessionId) == null) { in removeSession()
[all …]
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionManagerImpl.java246 private final Map<String, CaptureSession> mSessions; field in CaptureSessionManagerImpl
272 mSessions = new HashMap<>(); in CaptureSessionManagerImpl()
286 synchronized (mSessions) { in putSession()
287 mSessions.put(sessionUri.toString(), session); in putSession()
293 synchronized (mSessions) { in getSession()
294 return mSessions.get(sessionUri.toString()); in getSession()
300 synchronized (mSessions) { in removeSession()
301 return mSessions.remove(sessionUri.toString()); in removeSession()
353 synchronized (mSessions) { in fillTemporarySession()
354 for (String sessionUri : mSessions.keySet()) { in fillTemporarySession()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiWakeMetrics.java39 private final List<Session> mSessions = new ArrayList<>(); field in WifiWakeMetrics
146 if (mSessions.size() < MAX_RECORDED_SESSIONS) { in recordResetEvent()
147 mSessions.add(mCurrentSession); in recordResetEvent()
169 proto.sessions = new WifiWakeStats.Session[mSessions.size()]; in buildProto()
171 for (int i = 0; i < mSessions.size(); i++) { in buildProto()
172 proto.sessions[i] = mSessions.get(i).buildProto(); in buildProto()
189 pw.println("Stored Sessions: " + mSessions.size()); in dump()
190 for (Session session : mSessions) { in dump()
208 mSessions.clear(); in clear()
/packages/modules/DnsResolver/
DDnsTlsSessionCache.cpp57 mSessions.emplace_front(session); in recordSession()
58 if (mSessions.size() > kMaxSize) { in recordSession()
60 mSessions.pop_back(); in recordSession()
66 if (mSessions.size() == 0) { in getSession()
70 bssl::UniquePtr<SSL_SESSION> ret = std::move(mSessions.front()); in getSession()
71 mSessions.pop_front(); in getSession()
DDnsTlsSessionCache.h54 std::deque<bssl::UniquePtr<SSL_SESSION>> mSessions GUARDED_BY(mLock);
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DTunerTsStreamerManager.java142 private final Map<TunerChannel, Set<Integer>> mSessions = new HashMap<>(); field in TunerTsStreamerManager.StreamerFinder
149 mSessions.put(channel, sessions); in putLocked()
155 if (mSessions.containsKey(channel)) { in appendSessionLocked()
156 mSessions.get(channel).add(sessionId); in appendSessionLocked()
162 Set<Integer> sessions = mSessions.get(channel); in removeSessionLocked()
165 mSessions.remove(channel); in removeSessionLocked()
172 return mSessions.containsKey(channel); in containsLocked()
/packages/apps/SecureElement/src/com/android/se/
DTerminal.java907 private final ArrayList<SecureElementSession> mSessions = field in Terminal.SecureElementReader
926 while (mSessions.size() > 0) { in closeSessions()
928 mSessions.get(0).close(); in closeSessions()
932 mSessions.clear(); in closeSessions()
942 mSessions.remove(session); in removeSession()
943 if (mSessions.size() == 0) { in removeSession()
958 mSessions.add(session); in openSession()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DRadioManagerExt.java128 mSessions.put(module.getId(), tuner); in openSession()
150 private static Map<Integer, RadioTuner> mSessions = new HashMap<>(); field in RadioManagerExt
158 RadioTuner tuner = mSessions.get(moduleId); in getMetadataImage()