Home
last modified time | relevance | path

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

12

/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DSessionLibrary.cpp60 mSessions.insert(std::pair<std::vector<uint8_t>, in createSession()
63 mSessions.find(sessionId); in createSession()
64 if (itr != mSessions.end()) { in createSession()
75 mSessions.find(sessionId); in findSession()
76 if (itr != mSessions.end()) { in findSession()
85 mSessions.erase(session->sessionId()); in destroySession()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCapturePerUserService.java92 private final SparseArray<ContentCaptureServerSession> mSessions = new SparseArray<>(); field in ContentCapturePerUserService
178 for (int i = 0; i < mSessions.size(); i++) { in updateLocked()
179 mSessions.valueAt(i).setContentCaptureEnabledLocked(!disabled); in updateLocked()
216 final int numSessions = mSessions.size(); in resurrectSessionsLocked()
223 final ContentCaptureServerSession session = mSessions.valueAt(i); in resurrectSessionsLocked()
229 final int numSessions = mSessions.size(); in onPackageUpdatingLocked()
234 final ContentCaptureServerSession session = mSessions.valueAt(i); in onPackageUpdatingLocked()
311 final ContentCaptureServerSession existingSession = mSessions.get(sessionId); in startSessionLocked()
352 mSessions.put(sessionId, newSession); in startSessionLocked()
362 final ContentCaptureServerSession session = mSessions.get(sessionId); in finishSessionLocked()
[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/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java186 private final SparseArray<PackageInstallerSession> mSessions = new SparseArray<>(); field in PackageInstallerService
233 synchronized (mSessions) {
271 synchronized (mSessions) { in systemReady()
280 for (int i = 0; i < mSessions.size(); i++) { in systemReady()
281 final PackageInstallerSession session = mSessions.valueAt(i); in systemReady()
307 synchronized (mSessions) { in restoreAndApplyStagedSessionIfNeeded()
308 for (int i = 0; i < mSessions.size(); i++) { in restoreAndApplyStagedSessionIfNeeded()
309 final PackageInstallerSession session = mSessions.valueAt(i); in restoreAndApplyStagedSessionIfNeeded()
346 for (int i = 0; i < mSessions.size(); i++) { in reconcileStagesLocked()
347 final PackageInstallerSession session = mSessions.valueAt(i); in reconcileStagesLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java55 private final List<MediaSessionRecordImpl> mSessions = new ArrayList<>(); field in MediaSessionStack
85 mSessions.add(record); in addSession()
100 mSessions.remove(record); in removeSession()
115 return mSessions.contains(record); in contains()
125 for (MediaSessionRecordImpl record : mSessions) { in getMediaSessionRecord()
145 mSessions.remove(record); in onPlaybackStateChanged()
146 mSessions.add(0, record); in onPlaybackStateChanged()
245 for (MediaSessionRecordImpl session : mSessions) { in findMediaButtonSession()
293 for (MediaSessionRecordImpl record : mSessions) { in getSession2Tokens()
351 pw.println(prefix + "Sessions Stack - have " + mSessions.size() + " sessions:"); in dump()
[all …]
/frameworks/av/media/libmediatranscoding/tests/
DTranscodingClientManager_tests.cpp143 if (mSessions.count(sessionKey) > 0) { in submit()
157 mSessions[sessionKey].request = request; in submit()
158 mSessions[sessionKey].callback = clientCallback; in submit()
159 mSessions[sessionKey].allClientUids.insert(clientUid); in submit()
168 if (mSessions.count(sessionKey) == 0) { in addClientUid()
171 if (mSessions[sessionKey].allClientUids.count(clientUid) > 0) { in addClientUid()
174 mSessions[sessionKey].allClientUids.insert(clientUid); in addClientUid()
182 if (mSessions.count(sessionKey) == 0) { in getClientUids()
186 for (uid_t uid : mSessions[sessionKey].allClientUids) { in getClientUids()
197 if (mSessions.count(sessionKey) == 0) { in cancel()
[all …]
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceImpl.java142 private final SparseArray<Session> mSessions = new SparseArray<>(); field in AutofillManagerServiceImpl
222 final int sessionCount = mSessions.size(); in updateLocked()
224 final Session session = mSessions.valueAt(i); in updateLocked()
285 final Session session = mSessions.get(sessionId); in setAuthenticationResultLocked()
295 final Session session = mSessions.get(sessionId); in setHasCallback()
400 if (mSessions.size() > 0) { in pruneAbandonedSessionsLocked()
411 final Session session = mSessions.get(sessionId); in setAutofillFailureLocked()
425 final Session session = mSessions.get(sessionId); in finishSessionLocked()
455 final Session session = mSessions.get(sessionId); in cancelSessionLocked()
513 || mSessions.indexOfKey(sessionId) >= 0); in createSessionByTokenLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/storage/
DStorageUserConnection.java79 @GuardedBy("mSessionsLock") private final Map<String, Session> mSessions = new HashMap<>(); field in StorageUserConnection
108 Preconditions.checkArgument(!mSessions.containsKey(sessionId)); in startSession()
109 mSessions.put(sessionId, session); in startSession()
126 if (!mSessions.containsKey(sessionId)) { in notifyVolumeStateChanged()
146 for (String sessionId : mSessions.keySet()) { in freeCache()
161 for (String sessionId : mSessions.keySet()) { in notifyAnrDelayStarted()
180 return mSessions.remove(sessionId); in removeSession()
206 if (mSessions.isEmpty()) { in resetUserSessions()
220 Slog.i(TAG, "Removing " + mSessions.size() + " sessions for user: " + mUserId + "..."); in removeAllSessions()
221 mSessions.clear(); in removeAllSessions()
[all …]
/frameworks/native/libs/binder/
DRpcServer.cpp162 for (auto& [id, session] : mSessions) { in listSessions()
209 mSessions[mSessionIdCounter] = session; in establishConnection()
211 auto it = mSessions.find(id); in establishConnection()
212 if (it == mSessions.end()) { in establishConnection()
268 auto it = mSessions.find(*id); in onSessionTerminating()
269 LOG_ALWAYS_FATAL_IF(it == mSessions.end(), "Bad state, unknown session id %d", *id); in onSessionTerminating()
271 (void)mSessions.erase(it); in onSessionTerminating()
/frameworks/base/apex/media/framework/java/android/media/
DMediaSession2Service.java84 private Map<String, MediaSession2> mSessions = new ArrayMap<>(); field in MediaSession2Service
138 mSessions.clear(); in onDestroy()
198 MediaSession2 previousSession = mSessions.get(session.getId()); in addSession()
206 mSessions.put(session.getId(), session); in addSession()
223 if (mSessions.get(session.getId()) != session) { in removeSession()
227 mSessions.remove(session.getId()); in removeSession()
247 list.addAll(mSessions.values()); in getSessions()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPreRebootLoggerTest.java62 @Mock List<SessionInfo> mSessions; field in PreRebootLoggerTest
88 when(mPackageInstaller.getActiveStagedSessions()).thenReturn(mSessions); in prepareActiveStagedSessions()
89 when(mSessions.isEmpty()).thenReturn(false); in prepareActiveStagedSessions()
115 when(mSessions.isEmpty()).thenReturn(true); in log_noActiveStagedSession_wipesDumpedInformation()
/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java98 private final List<Session> mSessions = new ArrayList<>(); field in LightsService.LightsManagerBinderService
171 mSessions.add(new Session(token, priority)); in openSession()
172 Collections.sort(mSessions); in openSession()
207 for (Session session : mSessions) { in dump()
222 mSessions.remove(session); in closeSessionInternal()
243 for (int i = mSessions.size() - 1; i >= 0; i--) { in invalidateLightStatesLocked()
244 SparseArray<LightState> requests = mSessions.get(i).mRequests; in invalidateLightStatesLocked()
263 for (int i = 0; i < mSessions.size(); i++) { in getSessionLocked()
264 if (token.equals(mSessions.get(i).mToken)) { in getSessionLocked()
265 return mSessions.get(i); in getSessionLocked()
/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/base/services/people/java/com/android/server/people/
DPeopleService.java388 private Map<AppPredictionSessionId, SessionInfo> mSessions = new ArrayMap<>(); field in PeopleService.LocalService
393 mSessions.put(sessionId, in onCreatePredictionSession()
443 mSessions.remove(sessionId); in onDestroyPredictionSession()
465 return mSessions.get(sessionId); in getSessionInfo()
469 SessionInfo sessionInfo = mSessions.get(sessionId); in runForSession()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerService.java147 private final SparseArray<LongSparseArray<BlobStoreSession>> mSessions = new SparseArray<>(); field in BlobStoreManagerService
263 LongSparseArray<BlobStoreSession> userSessions = mSessions.get(userId); in getUserSessionsLocked()
266 mSessions.put(userId, userSessions); in getUserSessionsLocked()
274 mSessions.put(userId, userSessions); in addUserSessionsForTest()
781 for (int i = 0, userCount = mSessions.size(); i < userCount; ++i) { in writeBlobSessionsLocked()
783 mSessions.valueAt(i); in writeBlobSessionsLocked()
818 mSessions.clear(); in readBlobSessionsLocked()
1058 mSessions.removeReturnOld(userId); in handleUserRemoved()
1123 for (int i = 0, userCount = mSessions.size(); i < userCount; ++i) { in handleIdleMaintenanceLocked()
1124 final LongSparseArray<BlobStoreSession> userSessions = mSessions.valueAt(i); in handleIdleMaintenanceLocked()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DSessionLibrary.h52 mSessions; variable
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java59 private ArrayMap<PendingIntent, SessionHolder> mSessions field in MediaSessionLegacyHelper
165 SessionHolder holder = mSessions.get(pi); in getSession()
323 SessionHolder holder = mSessions.get(pi); in getHolder()
329 mSessions.put(pi, holder); in getHolder()
431 mSessions.remove(mPi); in update()
/frameworks/native/libs/binder/include/binder/
DRpcServer.h160 std::map<int32_t, sp<RpcSession>> 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/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java132 final ArrayList<Session> mSessions = new ArrayList<>(); field in ApplicationsState
253 mSessions.add(s); in newSession()
445 for (int i = 0; i < mSessions.size(); i++) { in doPauseIfNeededLocked()
446 if (mSessions.get(i).mResumed) { in doPauseIfNeededLocked()
767 for (int i = 0; i < mSessions.size(); i++) { in rebuildActiveSessions()
768 Session s = mSessions.get(i); in rebuildActiveSessions()
972 mSessions.remove(this); in onDestroy()
1097 int flags = getCombinedSessionFlags(mSessions); in handleMessage()
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java654 mService.mSessions.add(this); in windowAddedLocked()
735 mService.mSessions.remove(this); in killSessionLocked()
DWindowManagerService.java591 final ArraySet<Session> mSessions = new ArraySet<>(); field in WindowManagerService
5171 for (int i=0; i<mSessions.size(); i++) { in handleMessage()
5172 callbacks.add(mSessions.valueAt(i).mCallback); in handleMessage()
6169 for (int i=0; i<mSessions.size(); i++) { in dumpSessionsLocked()
6170 Session s = mSessions.valueAt(i); in dumpSessionsLocked()
7961 for (int i = mSessions.size() - 1; i >= 0; --i) { in disableNonVrUi()
7962 final Session s = mSessions.valueAt(i); in disableNonVrUi()
DDisplayContent.java3599 if (!mWmService.mSessions.contains(wsa.mSession)) { in destroyLeakedSurfaces()
3623 for (int i = mWmService.mSessions.size() - 1; i >= 0; --i) { in hasAlertWindowSurfaces()
3624 if (mWmService.mSessions.valueAt(i).hasAlertWindowSurfaces(this)) { in hasAlertWindowSurfaces()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java203 private final LinkedHashMap<String, Session> mSessions = new LinkedHashMap<String, Session>(); field in AccountManagerService
4822 synchronized (mSessions) {
4823 mSessions.put(toString(), this);
4898 synchronized (mSessions) {
4899 if (mSessions.remove(toString()) == null) {
5326 synchronized (mSessions) {
5328 fout.println("Active Sessions: " + mSessions.size());
5329 for (Session session : mSessions.values()) {

12