Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareClientState.java54 private final SparseArray<WifiAwareDiscoverySessionState> mSessions = new SparseArray<>(); field in WifiAwareClientState
90 for (int i = 0; i < mSessions.size(); ++i) { in destroy()
91 mSessions.valueAt(i).terminate(); in destroy()
93 mSessions.clear(); in destroy()
122 return mSessions; in getSessions()
134 for (int i = 0; i < mSessions.size(); ++i) { in getAwareSessionStateForPubSubId()
135 WifiAwareDiscoverySessionState session = mSessions.valueAt(i); in getAwareSessionStateForPubSubId()
151 if (mSessions.get(sessionId) != null) { in addSession()
155 mSessions.put(sessionId, session); in addSession()
166 if (mSessions.get(sessionId) == null) { in removeSession()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp55 return mSessions.getOpenCount(); in getOpenRefCount()
122 return mSessions.hasActiveSession(); in isActive()
127 return mSessions.isSourceActive(source); in isSourceActive()
133 return mSessions.getHighestPrioritySource(activeOnly); in getHighestPrioritySource()
139 return mSessions.valueAt(0)->isSoundTrigger(); in isSoundTrigger()
144 return mSessions.valueFor(session); in getAudioSession()
150 return mSessions.getActiveSessions(); in getAudioSessions()
152 return mSessions; in getAudioSessions()
159 return mSessions.getActiveSessionCount(); in getAudioSessionCount()
161 return mSessions.size(); in getAudioSessionCount()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DSessionLibrary.cpp60 mSessions.insert(std::pair<std::vector<uint8_t>, in createSession()
62 std::map<std::vector<uint8_t>, sp<Session> >::iterator itr = mSessions.find(sessionId); in createSession()
63 if (itr != mSessions.end()) { in createSession()
73 std::map<std::vector<uint8_t>, sp<Session> >::iterator itr = mSessions.find(sessionId); in findSession()
74 if (itr != mSessions.end()) { in findSession()
83 mSessions.erase(session->sessionId()); in destroySession()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java164 private final SparseArray<PackageInstallerSession> mSessions = new SparseArray<>(); field in PackageInstallerService
206 synchronized (mSessions) { in systemReady()
216 for (int i = 0; i < mSessions.size(); i++) { in systemReady()
217 final PackageInstallerSession session = mSessions.valueAt(i); in systemReady()
236 for (int i = 0; i < mSessions.size(); i++) { in reconcileStagesLocked()
237 final PackageInstallerSession session = mSessions.valueAt(i); in reconcileStagesLocked()
251 synchronized (mSessions) { in onPrivateVolumeMounted()
265 synchronized (mSessions) { in allocateStageDirLegacy()
280 synchronized (mSessions) { in allocateExternalStageCidLegacy()
291 mSessions.clear(); in readSessionsLocked()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DSessionLibrary.cpp56 mSessions.add(sessionId, new Session(sessionId)); in createSession()
57 return mSessions.valueFor(sessionId); in createSession()
63 if (mSessions.indexOfKey(sessionId) < 0) { in findSession()
66 return mSessions.valueFor(sessionId); in findSession()
71 mSessions.removeItem(session->sessionId()); in destroySession()
/frameworks/opt/net/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()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java76 private final List<MediaSessionRecord> mSessions = new ArrayList<MediaSessionRecord>(); field in MediaSessionStack
106 mSessions.add(record); in addSession()
121 mSessions.remove(record); in removeSession()
135 return mSessions.contains(record); in contains()
147 mSessions.remove(record); in onPlaystateChanged()
148 mSessions.add(0, record); in onPlaystateChanged()
215 for (MediaSessionRecord session : mSessions) { in findMediaButtonSession()
328 int size = mSessions.size(); in getPriorityList()
330 final MediaSessionRecord session = mSessions.get(i); in getPriorityList()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceImpl.java161 private final SparseArray<Session> mSessions = new SparseArray<>(); field in AutofillManagerServiceImpl
292 final int sessionCount = mSessions.size(); in updateLocked()
294 final Session session = mSessions.valueAt(i); in updateLocked()
323 final Session session = mSessions.get(sessionId); in setAuthenticationResultLocked()
333 final Session session = mSessions.get(sessionId); in setHasCallback()
402 if (mSessions.size() > 0) { in pruneAbandonedSessionsLocked()
413 final Session session = mSessions.get(sessionId); in setAutofillFailureLocked()
427 final Session session = mSessions.get(sessionId); in finishSessionLocked()
451 final Session session = mSessions.get(sessionId); in cancelSessionLocked()
508 } while (sessionId == NO_SESSION || mSessions.indexOfKey(sessionId) >= 0); in createSessionByTokenLocked()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DSessionLibrary.h45 size_t numOpenSessions() const { return mSessions.size(); } in numOpenSessions()
57 std::map<std::vector<uint8_t>, sp<Session> > mSessions; variable
/frameworks/av/media/libstagefright/foundation/
DANetworkSession.cpp923 ssize_t index = mSessions.indexOfKey(sessionID); in destroySession()
929 mSessions.removeItemsAt(index); in destroySession()
1140 mSessions.add(session->sessionID(), session); in createClientOrServer()
1160 ssize_t index = mSessions.indexOfKey(sessionID); in connectUDPSession()
1166 const sp<Session> session = mSessions.valueAt(index); in connectUDPSession()
1199 ssize_t index = mSessions.indexOfKey(sessionID); in sendRequest()
1205 const sp<Session> session = mSessions.valueAt(index); in sendRequest()
1217 ssize_t index = mSessions.indexOfKey(sessionID); in switchToWebSocketMode()
1223 const sp<Session> session = mSessions.valueAt(index); in switchToWebSocketMode()
1251 for (size_t i = 0; i < mSessions.size(); ++i) { in threadLoop()
[all …]
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java59 private ArrayMap<PendingIntent, SessionHolder> mSessions field in MediaSessionLegacyHelper
164 SessionHolder holder = mSessions.get(pi); in getSession()
322 SessionHolder holder = mSessions.get(pi); in getHolder()
328 mSessions.put(pi, holder); in getHolder()
430 mSessions.remove(mPi); in update()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DSessionLibrary.h52 mSessions; variable
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp92 mSessions.add(sessionId); in openSession()
107 mSessions.removeAt(index); in closeSession()
733 ALOGD("findSession: nsessions=%zu, size=%zu", mSessions.size(), sessionId.size()); in findSession()
734 for (size_t i = 0; i < mSessions.size(); ++i) { in findSession()
735 if (memcmp(mSessions[i].array(), sessionId.array(), sessionId.size()) == 0) { in findSession()
DMockDrmCryptoPlugin.h144 SortedVector<Vector<uint8_t> > mSessions; variable
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DANetworkSession.h107 KeyedVector<int32_t, sp<Session> > mSessions; member
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioInputDescriptor.h94 AudioSessionCollection mSessions; variable
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java120 final ArrayList<Session> mSessions = new ArrayList<Session>(); field in ApplicationsState
228 mSessions.add(s); in newSession()
322 for (int i=0; i<mSessions.size(); i++) { in doPauseIfNeededLocked()
323 if (mSessions.get(i).mResumed) { in doPauseIfNeededLocked()
618 for (int i=0; i<mSessions.size(); i++) { in rebuildActiveSessions()
619 Session s = mSessions.get(i); in rebuildActiveSessions()
809 mSessions.remove(this); in onDestroy()
910 int flags = getCombinedSessionFlags(mSessions); in handleMessage()
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java485 mService.mSessions.add(this); in windowAddedLocked()
566 mService.mSessions.remove(this); in killSessionLocked()
DWindowManagerService.java444 final ArraySet<Session> mSessions = new ArraySet<>(); field in WindowManagerService
4935 for (int i=0; i<mSessions.size(); i++) { in handleMessage()
4936 callbacks.add(mSessions.valueAt(i).mCallback); in handleMessage()
6259 for (int i=0; i<mSessions.size(); i++) { in dumpSessionsLocked()
6260 Session s = mSessions.valueAt(i); in dumpSessionsLocked()
7515 for (int i = mSessions.size() - 1; i >= 0; --i) { in disableNonVrUi()
7516 final Session s = mSessions.valueAt(i); in disableNonVrUi()
DDisplayContent.java1025 for (int i = 0; i < mService.mSessions.size(); i++) { in updateRotationUnchecked()
1026 if (mService.mSessions.valueAt(i).hasAlertWindowSurfaces()) { in updateRotationUnchecked()
2441 if (!mService.mSessions.contains(wsa.mSession)) { in destroyLeakedSurfaces()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java201 private final LinkedHashMap<String, Session> mSessions = new LinkedHashMap<String, Session>(); field in AccountManagerService
4716 synchronized (mSessions) {
4717 mSessions.put(toString(), this);
4787 synchronized (mSessions) {
4788 if (mSessions.remove(toString()) == null) {
5220 synchronized (mSessions) {
5222 fout.println("Active Sessions: " + mSessions.size());
5223 for (Session session : mSessions.values()) {