Home
last modified time | relevance | path

Searched refs:sessions (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DStagingManagerTest.java214 List<StagingManager.StagedSession> sessions = new ArrayList<>(); in restoreSessions_handlesDestroyedAndNotReadySessions() local
215 sessions.add(destroyedApkSession); in restoreSessions_handlesDestroyedAndNotReadySessions()
216 sessions.add(destroyedApexSession); in restoreSessions_handlesDestroyedAndNotReadySessions()
217 sessions.add(nonReadyApkSession); in restoreSessions_handlesDestroyedAndNotReadySessions()
218 sessions.add(nonReadyApexSession); in restoreSessions_handlesDestroyedAndNotReadySessions()
219 sessions.add(destroyedNonReadySession); in restoreSessions_handlesDestroyedAndNotReadySessions()
220 sessions.add(regularApkSession); in restoreSessions_handlesDestroyedAndNotReadySessions()
222 mStagingManager.restoreSessions(sessions, false); in restoreSessions_handlesDestroyedAndNotReadySessions()
224 assertThat(sessions).containsExactly(regularApkSession); in restoreSessions_handlesDestroyedAndNotReadySessions()
245 List<StagingManager.StagedSession> sessions = new ArrayList<>(); in restoreSessions_unknownApexSession_failsAllSessions() local
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DStagingManager.java876 private void handleNonReadyAndDestroyedSessions(List<StagedSession> sessions) { in handleNonReadyAndDestroyedSessions() argument
877 int j = sessions.size(); in handleNonReadyAndDestroyedSessions()
883 StagedSession session = sessions.get(i); in handleNonReadyAndDestroyedSessions()
887 StagedSession session2 = sessions.set(j - 1, session); in handleNonReadyAndDestroyedSessions()
888 sessions.set(i, session2); in handleNonReadyAndDestroyedSessions()
894 StagedSession session2 = sessions.set(j - 1, session); in handleNonReadyAndDestroyedSessions()
895 sessions.set(i, session2); in handleNonReadyAndDestroyedSessions()
902 sessions.subList(j, sessions.size()).clear(); in handleNonReadyAndDestroyedSessions()
905 void restoreSessions(@NonNull List<StagedSession> sessions, boolean isDeviceUpgrading) { in restoreSessions() argument
915 for (int i = 0; i < sessions.size(); i++) { in restoreSessions()
[all …]
DApexManager.java731 final ApexSessionInfo[] sessions = waitForApexService().getSessions(); in getSessions() local
732 final SparseArray<ApexSessionInfo> result = new SparseArray<>(sessions.length); in getSessions()
733 for (int i = 0; i < sessions.length; i++) { in getSessions()
734 result.put(sessions[i].sessionId, sessions[i]); in getSessions()
1116 final ApexSessionInfo[] sessions = waitForApexService().getSessions(); in dump() local
1117 for (ApexSessionInfo si : sessions) { in dump()
/frameworks/native/libs/binder/tests/
DbinderRpcTest.cpp249 std::vector<SessionInfo> sessions; member
253 for (auto& session : sessions) { in ~ProcessSession()
257 for (auto& info : sessions) { in ~ProcessSession()
291 EXPECT_EQ(remoteCounts.size(), proc.sessions.size()); in ~BinderRpcTestProcessSession()
393 ret.sessions.push_back({session, session->getRootObject()}); in createRpcTestSocketServerProcess()
410 ret.rootBinder = ret.proc.sessions.at(0).root; in createRpcTestSocketServerProcess()
423 EXPECT_EQ(nullptr, proc.sessions.at(0).root); in TEST_P()
440 for (auto session : proc.proc.sessions) { in TEST_P()
598 proc.rootIface->repeatBinder(proc.proc.sessions.at(1).root, &outBinder) in TEST_P()
702 std::vector<sp<IBinderRpcSession>> sessions; in TEST_P() local
[all …]
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouter2ManagerTest.java335 List<RoutingSessionInfo> sessions = mManager.getRoutingSessions(mPackageName); in testGetRoutingSessions() local
336 assertEquals(2, sessions.size()); in testGetRoutingSessions()
338 RoutingSessionInfo sessionInfo = sessions.get(1); in testGetRoutingSessions()
441 List<RoutingSessionInfo> sessions = mManager.getRoutingSessions(mPackageName); in testSelectAndTransferAndRelease() local
443 assertEquals(2, sessions.size()); in testSelectAndTransferAndRelease()
444 RoutingSessionInfo sessionInfo = sessions.get(1); in testSelectAndTransferAndRelease()
468 List<RoutingSessionInfo> sessions = new ArrayList<>(); in testTransferTwice() local
481 sessions.add(newSession); in testTransferTwice()
514 assertEquals(2, sessions.size()); in testTransferTwice()
519 assertFalse(activeSessionIds.contains(sessions.get(0).getId())); in testTransferTwice()
[all …]
/frameworks/base/media/java/android/media/
DMediaRouter2Manager.java223 List<RoutingSessionInfo> sessions = getRoutingSessions(packageName); in getAvailableRoutes() local
224 return getAvailableRoutes(sessions.get(sessions.size() - 1)); in getAvailableRoutes()
236 List<RoutingSessionInfo> sessions = getRoutingSessions(packageName); in getTransferableRoutes() local
237 return getTransferableRoutes(sessions.get(sessions.size() - 1)); in getTransferableRoutes()
332 List<RoutingSessionInfo> sessions = getRoutingSessions(packageName); in filterRoutesForPackage() local
333 RoutingSessionInfo sessionInfo = sessions.get(sessions.size() - 1); in filterRoutesForPackage()
404 List<RoutingSessionInfo> sessions = new ArrayList<>(); in getRoutingSessions() local
408 sessions.add(new RoutingSessionInfo.Builder(sessionInfo) in getRoutingSessions()
412 sessions.add(sessionInfo); in getRoutingSessions()
415 return sessions; in getRoutingSessions()
DMediaRoute2ProviderService.java515 List<RoutingSessionInfo> sessions; in updateSessions() local
517 sessions = new ArrayList<>(mSessionInfo.values()); in updateSessions()
521 mRemoteCallback.notifySessionsUpdated(sessions); in updateSessions()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DQuotaController.java1043 List<TimingSession> sessions = mTimingSessions.get(userId, packageName);
1045 if (sessions == null || sessions.size() == 0) {
1064 sessions, startMaxElapsed, maxExecutionTimeRemainingMs);
1073 sessions, startMaxElapsed, maxExecutionTimeRemainingMs),
1075 sessions, startWindowElapsed, allowedTimeRemainingMs));
1084 private long calculateTimeUntilQuotaConsumedLocked(@NonNull List<TimingSession> sessions,
1088 for (int i = 0; i < sessions.size(); ++i) {
1089 TimingSession session = sessions.get(i);
1129 List<TimingSession> sessions = mEJTimingSessions.get(userId, packageName);
1130 if (sessions == null || sessions.size() == 0) {
[all …]
/frameworks/base/media/java/android/media/session/
DIActiveSessionsListener.aidl25 void onActiveSessionsChanged(in List<MediaSession.Token> sessions); in onActiveSessionsChanged() argument
/frameworks/native/libs/binder/
DRpcServer.cpp161 std::vector<sp<RpcSession>> sessions; in listSessions() local
164 sessions.push_back(session); in listSessions()
166 return sessions; in listSessions()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DQosCallbackTracker.java99 public void updateSessions(@NonNull final List<QosBearerSession> sessions) { in updateSessions() argument
100 logd("updateSessions: sessions size=" + sessions.size()); in updateSessions()
103 for (final QosBearerSession incomingSession : sessions) { in updateSessions()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerServiceShellCommand.java205 final ArrayList<String> sessions = resultData in requestList()
207 for (String session : sessions) { in requestList()
DContentCaptureManagerService.java513 final ArrayList<String> sessions = new ArrayList<>(); in listSessions() local
519 service.listSessionsLocked(sessions); in listSessions()
522 visitServicesLocked((s) -> s.listSessionsLocked(sessions)); in listSessions()
526 resultData.putStringArrayList(RECEIVER_BUNDLE_EXTRA_SESSIONS, sessions); in listSessions()
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewareValidation.java119 Set<Session> sessions = new HashSet<>(); field in SoundTriggerMiddlewareValidation.ModuleState
268 for (Session session : module.sessions) { in dump()
414 mModules.get(mHandle).sessions.add(this); in attach()
720 mModules.get(mHandle).sessions.remove(this); in detachInternal()
/frameworks/base/core/proto/android/server/
Djobscheduler.proto292 // The maximum number of timing sessions an app can run within this particular standby
295 // The maximum number of timing sessions an app can run within this particular standby
298 // The maximum number of timing sessions an app can run within this particular standby
301 // The maximum number of timing sessions an app can run within this particular standby
304 // The maximum number of timing sessions an app can run within this particular standby
307 // The maximum number of timing sessions that should be allowed to run in the past
317 // standby bucket can only have expedited job sessions totalling EJ_LIMIT (without factoring
321 // standby bucket can only have expedited job sessions totalling EJ_LIMIT (without factoring
325 // standby bucket can only have expedited job sessions totalling EJ_LIMIT (without factoring
329 // standby bucket can only have expedited job sessions totalling EJ_LIMIT (without factoring
[all …]
/frameworks/base/apex/media/framework/java/android/media/
DMediaSession2Service.java134 List<MediaSession2> sessions = getSessions(); in onDestroy() local
135 for (MediaSession2 session : sessions) { in onDestroy()
/frameworks/av/camera/aidl/android/hardware/
DICameraService.aidl126 in CameraIdAndSessionConfiguration[] sessions, in isConcurrentSessionConfigurationSupported() argument
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceShellCommand.java396 final ArrayList<String> sessions = resultData in requestList()
398 for (String session : sessions) { in requestList()
DAutofillManagerService.java418 final ArrayList<String> sessions = new ArrayList<>(); in listSessions() local
424 service.listSessionsLocked(sessions); in listSessions()
427 visitServicesLocked((s) -> s.listSessionsLocked(sessions)); in listSessions()
431 resultData.putStringArrayList(RECEIVER_BUNDLE_EXTRA_SESSIONS, sessions); in listSessions()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java198 private void dumpSessions(List<PackageInstallerSession> sessions) { in dumpSessions() argument
206 for (PackageInstallerSession session : sessions) { in dumpSessions()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioInputDescriptor.h76 void setPreemptedSessions(const SortedVector<audio_session_t>& sessions);
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
DStagedInstallInternalTest.java435 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getStagedSessions(); in assertSessionState() local
437 for (PackageInstaller.SessionInfo session : sessions) { in assertSessionState()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRoute2ProviderServiceProxy.java376 private void onSessionsUpdated(Connection connection, List<RoutingSessionInfo> sessions) { in onSessionsUpdated() argument
383 for (RoutingSessionInfo session : sessions) { in onSessionsUpdated()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp107 void AudioInputDescriptor::setPreemptedSessions(const SortedVector<audio_session_t>& sessions) in setPreemptedSessions() argument
109 mPreemptedSessions = sessions; in setPreemptedSessions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationMediaManager.java494 final List<MediaController> sessions = in findPlayingMediaNotification() local
497 for (MediaController aController : sessions) { in findPlayingMediaNotification()

12