Home
last modified time | relevance | path

Searched refs:syncGroup (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceSyncGroupTest.java65 SurfaceSyncGroup syncGroup = new SurfaceSyncGroup(TAG); in testSyncOne() local
66 syncGroup.addSyncCompleteCallback(mExecutor, finishedLatch::countDown); in testSyncOne()
68 syncGroup.add(syncTarget, null /* runnable */); in testSyncOne()
69 syncGroup.markSyncReady(); in testSyncOne()
80 SurfaceSyncGroup syncGroup = new SurfaceSyncGroup(TAG); in testSyncMultiple() local
81 syncGroup.addSyncCompleteCallback(mExecutor, finishedLatch::countDown); in testSyncMultiple()
86 syncGroup.add(syncTarget1, null /* runnable */); in testSyncMultiple()
87 syncGroup.add(syncTarget2, null /* runnable */); in testSyncMultiple()
88 syncGroup.add(syncTarget3, null /* runnable */); in testSyncMultiple()
89 syncGroup.markSyncReady(); in testSyncMultiple()
[all …]
DSyncEngineTests.java141 final BLASTSyncEngine.SyncGroup syncGroup = r.getSyncGroup(); in testWaitingSyncCallback() local
142 r.finishSync(mTransaction, syncGroup, false /* cancel */); in testWaitingSyncCallback()
144 assertTrue(r.isSyncFinished(syncGroup)); in testWaitingSyncCallback()
388 final BLASTSyncEngine.SyncGroup syncGroup = parentWC.mSyncGroup; in testRemoval() local
404 final SurfaceControl.Transaction orphan = syncGroup.getOrphanTransaction(); in testRemoval()
DWindowStateTests.java833 final BLASTSyncEngine.SyncGroup syncGroup = mock(BLASTSyncEngine.SyncGroup.class); in testRequestResizeForBlastSync() local
834 syncGroup.mSyncMethod = BLASTSyncEngine.METHOD_BLAST; in testRequestResizeForBlastSync()
835 win.mSyncGroup = syncGroup; in testRequestResizeForBlastSync()
852 win.finishSync(mTransaction, syncGroup, false /* cancel */); in testRequestResizeForBlastSync()
853 syncGroup.mSyncMethod = BLASTSyncEngine.METHOD_NONE; in testRequestResizeForBlastSync()
854 win.mSyncGroup = syncGroup; in testRequestResizeForBlastSync()
860 assertTrue(win.isSyncFinished(syncGroup)); in testRequestResizeForBlastSync()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DViewRootSync.kt31 val syncGroup = SurfaceSyncGroup("SysUIAnimation") in synchronizeNextDraw() constant
32 syncGroup.addSyncCompleteCallback(view.context.mainExecutor) { then() } in synchronizeNextDraw()
33 syncGroup.add(view.rootSurfaceControl, null /* runnable */) in synchronizeNextDraw()
34 syncGroup.add(otherView.rootSurfaceControl, null /* runnable */) in synchronizeNextDraw()
35 syncGroup.markSyncReady() in synchronizeNextDraw()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipMenuController.java333 final SurfaceSyncGroup syncGroup = new SurfaceSyncGroup("TvPip"); in resizePipMenu() local
334 syncGroup.add(mPipMenuView.getRootSurfaceControl(), null); in resizePipMenu()
335 syncGroup.add(mPipBackgroundView.getRootSurfaceControl(), null); in resizePipMenu()
337 syncGroup.addTransaction(pipTx); in resizePipMenu()
338 syncGroup.markSyncReady(); in resizePipMenu()
395 final SurfaceSyncGroup syncGroup = new SurfaceSyncGroup("TvPip"); in movePipMenu() local
396 syncGroup.add(mPipMenuView.getRootSurfaceControl(), null); in movePipMenu()
397 syncGroup.add(mPipBackgroundView.getRootSurfaceControl(), null); in movePipMenu()
398 syncGroup.addTransaction(pipTx); in movePipMenu()
399 syncGroup.markSyncReady(); in movePipMenu()
/frameworks/base/core/java/android/window/
DSurfaceSyncGroup.md62 SurfaceSyncGroup syncGroup = new SurfaceSyncGroup(NAME);
66 syncGroup.addToSync(view1.getRootSurfaceControl());
67 syncGroup.addToSync(view2.getRootSurfaceControl());
68 syncGroup.addTransactionToSync(transaction);
69 syncGroup.markSyncReady();
77 SurfaceSyncGroup syncGroup = new SurfaceSyncGroup(NAME);
78 syncGroup.addSyncCompleteCallback(mMainThreadExecutor, () -> {
81 syncGroup.addToSync(container.getRootSurfaceControl());
82 syncGroup.addToSync(surfaceView, frameCallback -> {
86 syncGroup.markSyncReady();
[all …]
/frameworks/base/tests/SurfaceControlViewHostTest/src/com/android/test/viewembed/
DSurfaceControlViewHostSyncTest.java133 SurfaceSyncGroup syncGroup = new SurfaceSyncGroup(TAG); in resize() local
134 syncGroup.add(getWindow().getRootSurfaceControl(), svResizeRunnable); in resize()
135 syncGroup.add(mSurfacePackage, resizeRunnable); in resize()
136 syncGroup.markSyncReady(); in resize()
/frameworks/base/services/core/java/com/android/server/wm/
DBLASTSyncEngine.java507 final SyncGroup syncGroup = getSyncGroup(id); in setSyncMethod() local
508 if (!syncGroup.mRootMembers.isEmpty()) { in setSyncMethod()
512 syncGroup.mSyncMethod = method; in setSyncMethod()
537 final SyncGroup syncGroup = getSyncSet(id); in getSyncGroup() local
538 if (syncGroup == null) { in getSyncGroup()
541 return syncGroup; in getSyncGroup()
DTransitionController.java1471 void startLegacySyncOrQueue(BLASTSyncEngine.SyncGroup syncGroup, Consumer<Boolean> applySync) { in startLegacySyncOrQueue() argument
1474 mQueuedTransitions.add(new QueuedTransition(syncGroup, in startLegacySyncOrQueue()
1477 "Queueing legacy sync-set: %s", syncGroup.mSyncId); in startLegacySyncOrQueue()
1480 mSyncEngine.startSyncSet(syncGroup); in startLegacySyncOrQueue()
DWindowContainer.java3992 final BLASTSyncEngine.SyncGroup syncGroup = getSyncGroup(); in finishSync()
3994 if (syncGroup != null && group != syncGroup) return; in finishSync()
4077 final BLASTSyncEngine.SyncGroup syncGroup = getSyncGroup(); in onSyncReparent() local
4080 finishSync(oldParent.mSyncTransaction, syncGroup, true /* cancel */); in onSyncReparent()
4081 } else if (syncGroup != null) { in onSyncReparent()
4084 finishSync(syncGroup.getOrphanTransaction(), syncGroup, true /* cancel */); in onSyncReparent() local
DWindowOrganizerController.java255 final BLASTSyncEngine.SyncGroup syncGroup = prepareSyncWithOrganizer(callback); in applySyncTransaction() local
256 final int syncId = syncGroup.mSyncId; in applySyncTransaction()
258 mTransitionController.startLegacySyncOrQueue(syncGroup, (deferred) -> { in applySyncTransaction()
264 mService.mWindowManager.mSyncEngine.startSyncSet(syncGroup); in applySyncTransaction()
271 () -> mService.mWindowManager.mSyncEngine.startSyncSet(syncGroup), in applySyncTransaction()
DWindowState.java5794 final BLASTSyncEngine.SyncGroup syncGroup = getSyncGroup(); in finishSync() local
5795 if (syncGroup != null && group != syncGroup) return; in finishSync()
5919 final BLASTSyncEngine.SyncGroup syncGroup = getSyncGroup(); in getSyncMethod() local
5920 if (syncGroup == null) return BLASTSyncEngine.METHOD_NONE; in getSyncMethod()
5922 return syncGroup.mSyncMethod; in getSyncMethod()
DActivityRecord.java11060 final BLASTSyncEngine.SyncGroup syncGroup = getSyncGroup();
11061 if (syncGroup != null && group != getSyncGroup()) return;
/frameworks/base/core/java/android/view/
DSurfaceView.java1352 for (SurfaceSyncGroup syncGroup : mSyncGroups) { in vriDrawStarted()
1353 viewRoot.addToSync(syncGroup); in vriDrawStarted()
DViewRootImpl.java12722 private void updateSyncInProgressCount(SurfaceSyncGroup syncGroup) { in updateSyncInProgressCount() argument
12733 syncGroup.addSyncCompleteCallback(mSimpleExecutor, () -> { in updateSyncInProgressCount()