/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageSessionVerifierTest.java | 50 PackageInstallerSession session2 = createSession(false, true, "com.foo"); in checkRebootlessApex() local 52 () -> mSessionVerifier.checkRebootlessApex(session2)); in checkRebootlessApex() 68 StagingManager.StagedSession session2 = createStagedSession(222, "com.bar", 2); in checkActiveSessions() local 69 mSessionVerifier.storeSession(session2); in checkActiveSessions() 80 StagingManager.StagedSession session2 = createStagedSession(222, "com.bar", 2); in checkRollbacks() local 82 session2.sessionParams().setInstallReason(PackageManager.INSTALL_REASON_ROLLBACK); in checkRollbacks() 84 when(session2.isDestroyed()).thenReturn(true); in checkRollbacks() 86 mSessionVerifier.storeSession(session2); in checkRollbacks() 90 mSessionVerifier.checkRollbacks(session2); in checkRollbacks() 106 StagingManager.StagedSession session2 = createStagedSession(222, "com.foo", 2); in checkOverlaps() local [all …]
|
D | StagingManagerTest.java | 155 FakeStagedSession session2 = new FakeStagedSession(57); in restoreSessions_deviceUpgrading_failsAllSessions() local 156 session2.setCommitted(true); in restoreSessions_deviceUpgrading_failsAllSessions() 158 mStagingManager.restoreSessions(Arrays.asList(session1, session2), true); in restoreSessions_deviceUpgrading_failsAllSessions() 163 assertThat(session2.getErrorCode()).isEqualTo(PackageManager.INSTALL_ACTIVATION_FAILED); in restoreSessions_deviceUpgrading_failsAllSessions() 164 assertThat(session2.getErrorMessage()).isEqualTo("Build fingerprint has changed"); in restoreSessions_deviceUpgrading_failsAllSessions() 172 FakeStagedSession session2 = new FakeStagedSession(57); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE() local 173 session2.setCommitted(true); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE() 178 () -> mStagingManager.restoreSessions(Arrays.asList(session1, session2), false)); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ContentRecordingSessionTest.java | 60 ContentRecordingSession session2 = ContentRecordingSession.CREATOR.createFromParcel(parcel); in testParcelable() local 61 assertThat(session).isEqualTo(session2); in testParcelable() 173 ContentRecordingSession session2 = ContentRecordingSession.createTaskSession(WINDOW_TOKEN); in testEquals() local 174 session2.setVirtualDisplayId(DISPLAY_ID); in testEquals() 175 assertThat(session).isEqualTo(session2); in testEquals()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserJourneyLoggerTest.java | 444 final UserJourneyLogger.UserJourneySession session2 = mUserJourneyLogger in testSwitchFGUserJourney() local 447 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 11, in testSwitchFGUserJourney() 457 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 11, in testSwitchFGUserJourney() 461 report2.captureAndAssert(mUserJourneyLogger, session2.mSessionId, in testSwitchFGUserJourney() 489 final UserJourneyLogger.UserJourneySession session2 = mUserJourneyLogger in testSwitchUIUserJourney() local 492 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 11, in testSwitchUIUserJourney() 502 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 11, in testSwitchUIUserJourney() 506 report2.captureAndAssert(mUserJourneyLogger, session2.mSessionId, in testSwitchUIUserJourney() 538 final UserJourneyLogger.UserJourneySession session2 = mUserJourneyLogger in testSwitchWithStopUIUserJourney() local 541 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 10, in testSwitchWithStopUIUserJourney() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/ |
D | LightsServiceTest.java | 170 LightsManager.LightsSession session2 = manager.openSession(); in testControlLights_firstCallerWinsContention() local 174 session2.requestLights(new Builder().addLight(micLight, new LightState(WHITE)).build()); in testControlLights_firstCallerWinsContention() 185 session2.close(); in testControlLights_firstCallerWinsContention() 218 try (LightsManager.LightsSession session2 = manager.openSession(HIGH_PRIORITY)) { in testControlLights_higherPriorityCallerWinsContention() argument 222 session2.requestLights( in testControlLights_higherPriorityCallerWinsContention()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/data/repository/ |
D | PackageInstallerMonitorTest.kt | 66 private lateinit var session2: SessionInfo in <lambda>() variable in com.android.systemui.common.data.repository.PackageInstallerMonitorTest 83 session2 = in <lambda>() 95 defaultSessions = listOf(session1, session2) in <lambda>() 99 whenever(packageInstaller.getSessionInfo(2)).thenReturn(session2) in <lambda>()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/ |
D | BlobStoreManagerServiceTest.java | 122 final BlobStoreSession session2 = createBlobStoreSessionMock(TEST_PKG2, TEST_UID2, in testHandlePackageRemoved() local 124 mUserSessions.append(sessionId2, session2); in testHandlePackageRemoved() 174 verify(session2, never()).destroy(); in testHandlePackageRemoved() 251 final BlobStoreSession session2 = createBlobStoreSessionMock(TEST_PKG2, TEST_UID2, in testHandleIdleMaintenance_deleteStaleSessions() local 253 mUserSessions.append(sessionId2, session2); in testHandleIdleMaintenance_deleteStaleSessions() 272 verify(session2, never()).destroy(); in testHandleIdleMaintenance_deleteStaleSessions()
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | SystemPerformanceHinterTests.java | 316 final SystemPerformanceHinter.HighPerfSession session2 = in testOverlappingHintsOnSameDisplay() local 325 session2.close(); in testOverlappingHintsOnSameDisplay() 368 final SystemPerformanceHinter.HighPerfSession session2 = in testOverlappingHintsOnDifferentDisplays() local 407 session2.close(); in testOverlappingHintsOnDifferentDisplays()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaSessionBasedFilterTest.kt | 87 private lateinit var session2: MediaSession variable in com.android.systemui.media.controls.domain.pipeline.MediaSessionBasedFilterTest 106 session2 = MediaSession(context, "MediaSessionBasedFilter2") in setUp() 111 token2 = session2.sessionToken in setUp() 152 session2.release() in tearDown()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionStack.java | 306 MediaSession2Record session2 = (MediaSession2Record) record; in getSession2Tokens() local 307 session2Records.add(session2.getSession2Token()); in getSession2Tokens()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/hint/ |
D | HintManagerServiceTest.java | 646 AppHintSession session2 = (AppHintSession) service.getBinderServiceInstance() 649 assertNotNull(session2); 662 assertArrayEquals(session2.getTidsInternal(), expectedTids2); 685 verifyAllHintsEnabled(session2, false); 690 verifyAllHintsEnabled(session2, true); 718 assertArrayEquals(session2.getTidsInternal(), expectedTids2); 720 verifyAllHintsEnabled(session2, false); 732 verifyAllHintsEnabled(session2, true);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | StagingManager.java | 601 StagedSession session2 = sessions.set(j - 1, session); in handleNonReadyAndDestroyedSessions() local 602 sessions.set(i, session2); in handleNonReadyAndDestroyedSessions() 609 StagedSession session2 = sessions.set(j - 1, session); in handleNonReadyAndDestroyedSessions() local 610 sessions.set(i, session2); in handleNonReadyAndDestroyedSessions()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ambient/touch/ |
D | TouchMonitorTest.java | 623 final TouchHandler.TouchSession session2 = captureSession(touchHandler2); in testPilfering() local 625 registerGestureListener(session2); in testPilfering()
|