Home
last modified time | relevance | path

Searched refs:wc (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/wm/
DBLASTSyncEngine.java176 boolean isIgnoring(WindowContainer wc) { in isIgnoring() argument
183 if (wc.asWindowState() != null) return false; in isIgnoring()
185 return wc.mSyncGroup != this; in isIgnoring()
199 final WindowContainer wc = mRootMembers.valueAt(i); in tryFinish() local
200 if (!wc.isSyncFinished(this)) { in tryFinish()
202 mSyncId, wc); in tryFinish()
219 for (WindowContainer wc : mRootMembers) { in finishNow()
220 wc.finishSync(merged, this, false /* cancel */); in finishNow()
224 for (WindowContainer wc : mRootMembers) { in finishNow()
225 wc.waitForSyncTransactionCommit(wcAwaitingCommit); in finishNow()
[all …]
DTransition.java422 boolean isInTransientHide(@NonNull WindowContainer wc) { in isInTransientHide() argument
426 if (wc == task || wc.isDescendantOf(task)) { in isInTransientHide()
508 void setConfigAtEnd(@NonNull WindowContainer<?> wc) { in setConfigAtEnd() argument
509 wc.forAllActivities(ar -> { in setConfigAtEnd()
522 snapshotStartState(wc); in setConfigAtEnd()
523 mChanges.get(wc).mFlags |= ChangeInfo.FLAG_CHANGE_CONFIG_AT_END; in setConfigAtEnd()
527 void setSeamlessRotation(@NonNull WindowContainer wc) { in setSeamlessRotation() argument
528 final ChangeInfo info = mChanges.get(wc); in setSeamlessRotation()
531 onSeamlessRotating(wc.getDisplayContent()); in setSeamlessRotation()
571 private void setTransientLaunchToChanges(@NonNull WindowContainer wc) { in setTransientLaunchToChanges() argument
[all …]
DTransitionController.java430 boolean isCollecting(@NonNull WindowContainer wc) { in isCollecting() argument
432 if (mCollectingTransition.mParticipants.contains(wc)) return true; in isCollecting()
434 if (mWaitingTransitions.get(i).mParticipants.contains(wc)) return true; in isCollecting()
443 boolean inCollectingTransition(@NonNull WindowContainer wc) { in inCollectingTransition() argument
445 if (mCollectingTransition.isInTransition(wc)) return true; in inCollectingTransition()
447 if (mWaitingTransitions.get(i).isInTransition(wc)) return true; in inCollectingTransition()
463 boolean inPlayingTransition(@NonNull WindowContainer wc) { in inPlayingTransition() argument
465 if (mPlayingTransitions.get(i).isInTransition(wc)) return true; in inPlayingTransition()
471 boolean inFinishingTransition(WindowContainer<?> wc) { in inFinishingTransition() argument
472 return mFinishingTransition != null && mFinishingTransition.isInTransition(wc); in inFinishingTransition()
[all …]
DWindowOrganizerController.java643 final WindowContainer wc = WindowContainer.fromBinder(entry.getKey()); in applyTransaction() local
644 if (wc == null || !wc.isAttached()) continue; in applyTransaction()
645 transition.setConfigAtEnd(wc); in applyTransaction()
651 final WindowContainer wc = WindowContainer.fromBinder(entry.getKey()); in applyTransaction() local
652 if (wc == null || !wc.isAttached()) { in applyTransaction()
653 Slog.e(TAG, "Attempt to operate on detached container: " + wc); in applyTransaction()
660 addToSyncSet(syncId, wc); in applyTransaction()
662 if (transition != null) transition.collect(wc); in applyTransaction()
676 if (wc.asTask() != null && wc.inPinnedWindowingMode() in applyTransaction()
685 if (!wc.equals(hopWc)) continue; in applyTransaction()
[all …]
DAppTransitionController.java193 WindowContainer wc = participants.valueAt(i); in handleAppTransitionReady() local
194 final ActivityRecord activity = getAppFromContainer(wc); in handleAppTransitionReady()
592 final WindowContainer wc = changingContainers.valueAt(i); in unfreezeEmbeddedChangingWindows() local
593 if (wc.isEmbedded()) { in unfreezeEmbeddedChangingWindows()
594 wc.mSurfaceFreezer.unfreeze(wc.getSyncTransaction()); in unfreezeEmbeddedChangingWindows()
615 final WindowContainer wc = mDisplayContent.mChangingContainers.valueAt(i); in transitionContainsTaskFragmentWithBoundsOverride() local
616 if (wc.isEmbedded()) { in transitionContainsTaskFragmentWithBoundsOverride()
808 static Task findRootTaskFromContainer(WindowContainer wc) { in findRootTaskFromContainer() argument
809 return wc.asTaskFragment() != null ? wc.asTaskFragment().getRootTask() in findRootTaskFromContainer()
810 : wc.asActivityRecord().getRootTask(); in findRootTaskFromContainer()
[all …]
DSnapshotController.java180 final WindowContainer wc = changeInfos.get(i).mContainer; in onTransitionFinish() local
181 if (wc.asTask() == null && wc.asTaskFragment() == null in onTransitionFinish()
182 && wc.asActivityRecord() == null) { in onTransitionFinish()
185 windows.add(wc); in onTransitionFinish()
191 final WindowContainer wc = changeInfos.get(i).mContainer; in onTransitionFinish() local
192 final Task task = wc.asTask(); in onTransitionFinish()
193 if (task != null && wc.isVisibleRequested()) { in onTransitionFinish()
DBackNavigationController.java778 final WindowContainer wc = targets.get(i).mContainer; in onTransactionReady() local
779 if (wc.asActivityRecord() == null && wc.asTask() == null in onTransactionReady()
780 && wc.asTaskFragment() == null) { in onTransactionReady()
784 if (targets.get(i).getTransitMode(wc) == TRANSIT_CHANGE) { in onTransactionReady()
788 if (wc.isVisibleRequested()) { in onTransactionReady()
789 mTmpOpenApps.add(wc); in onTransactionReady()
791 mTmpCloseApps.add(wc); in onTransactionReady()
809 final WindowContainer wc = mTmpOpenApps.get(i); in onTransactionReady() local
810 if (mAnimationHandler.isTarget(wc, true /* open */)) { in onTransactionReady()
828 boolean isMonitorTransitionTarget(WindowContainer wc) { in isMonitorTransitionTarget() argument
[all …]
DRotationWatcherController.java124 final WindowContainer<?> wc = getAssociatedWindowContainer(listener.mToken); in dispatchProposedRotation() local
125 if (wc != null) { in dispatchProposedRotation()
126 if (wc.mDisplayContent == dc) { in dispatchProposedRotation()
143 final WindowContainer<?> wc = ActivityRecord.forTokenLocked(contextToken); in getAssociatedWindowContainer() local
144 if (wc != null) { in getAssociatedWindowContainer()
145 return wc; in getAssociatedWindowContainer()
DWindowContainer.java937 final WindowContainer wc = mChildren.get(i); in removeIfPossible() local
938 wc.removeIfPossible(); in removeIfPossible()
1140 final WindowContainer wc = mChildren.get(i); in onResize() local
1141 wc.onParentResize(); in onResize()
1162 final WindowContainer wc = mChildren.get(i); in onMovedByResize() local
1163 wc.onMovedByResize(); in onMovedByResize()
1169 final WindowContainer wc = mChildren.get(i); in resetDragResizingChangeReported() local
1170 wc.resetDragResizingChangeReported(); in resetDragResizingChangeReported()
1288 final WindowContainer wc = mChildren.get(i); in sendAppVisibilityToClients() local
1289 wc.sendAppVisibilityToClients(); in sendAppVisibilityToClients()
[all …]
DTaskOrganizerController.java890 final WindowContainer wc = WindowContainer.fromBinder(token.asBinder()); in deleteRootTask() local
891 if (wc == null) return false; in deleteRootTask()
892 final Task task = wc.asTask(); in deleteRootTask()
1082 final WindowContainer wc = WindowContainer.fromBinder(token.asBinder()); in setInterceptBackPressedOnTaskRoot() local
1083 if (wc == null) { in setInterceptBackPressedOnTaskRoot()
1087 final Task task = wc.asTask(); in setInterceptBackPressedOnTaskRoot()
1109 final WindowContainer wc = WindowContainer.fromBinder(token.asBinder()); in restartTaskTopActivityProcessIfVisible() local
1110 if (wc == null) { in restartTaskTopActivityProcessIfVisible()
1114 final Task task = wc.asTask(); in restartTaskTopActivityProcessIfVisible()
1137 final WindowContainer wc = WindowContainer.fromBinder(token.asBinder()); in updateCameraCompatControlState() local
[all …]
DDisplayAreaOrganizerController.java259 final WindowContainer wc = WindowContainer.fromBinder(token.asBinder()); in deleteTaskDisplayArea() local
260 if (wc == null || wc.asTaskDisplayArea() == null) { in deleteTaskDisplayArea()
263 final TaskDisplayArea taskDisplayArea = wc.asTaskDisplayArea(); in deleteTaskDisplayArea()
DRunningTasks.java131 private void processTaskInWindowContainer(WindowContainer wc) {
132 wc.forAllLeafTasks(this, true /* traverseTopToBottom */);
DInputConsumerImpl.java144 void reparent(SurfaceControl.Transaction t, WindowContainer wc) { in reparent() argument
145 t.reparent(mInputSurface, wc.getSurfaceControl()); in reparent()
DTaskFragment.java1306 private static boolean hasRunningActivity(WindowContainer wc) { in hasRunningActivity() argument
1307 if (wc.asTaskFragment() != null) { in hasRunningActivity()
1308 return wc.asTaskFragment().topRunningActivity() != null; in hasRunningActivity()
1310 return wc.asActivityRecord() != null && !wc.asActivityRecord().finishing; in hasRunningActivity()
1313 private static boolean isTranslucent(WindowContainer wc, ActivityRecord starting) { in isTranslucent() argument
1314 if (wc.asTaskFragment() != null) { in isTranslucent()
1315 return wc.asTaskFragment().isTranslucent(starting); in isTranslucent()
1316 } else if (wc.asActivityRecord() != null) { in isTranslucent()
1317 return !wc.asActivityRecord().occludesParent(); in isTranslucent()
2814 final WindowContainer<?> wc = getChildAt(i); in getTaskFragmentInfo() local
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DWorkSourceTest.java169 WorkChain wc = ws.createWorkChain(); in testWorkSourceParcelling() local
170 wc.addNode(56, "foo"); in testWorkSourceParcelling()
171 wc.addNode(75, "baz"); in testWorkSourceParcelling()
192 WorkChain wc = ws2.createWorkChain(); in testSet_workChains() local
193 wc.addNode(75, "tag"); in testSet_workChains()
210 wc.addNode(50, "tag2"); in testSet_workChains()
219 WorkChain wc = ws.createWorkChain(); in testSet_nullWorkChain() local
220 wc.addNode(75, "tag"); in testSet_nullWorkChain()
400 WorkChain wc = ws.createWorkChain(); in testGetAttributionWhenEmpty() local
402 assertEquals(-1, wc.getAttributionUid()); in testGetAttributionWhenEmpty()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayAreaOrganizerTest.java136 final WindowContainer wc = mTestDisplayArea.getParent().getChildAt(newTdaIndex); in testCreateTaskDisplayArea_topBelowRoot() local
139 assertThat(wc).isInstanceOf(TaskDisplayArea.class); in testCreateTaskDisplayArea_topBelowRoot()
142 .isEqualTo(wc.mRemoteToken.toWindowContainerToken()); in testCreateTaskDisplayArea_topBelowRoot()
144 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowRoot()
160 final WindowContainer wc = parentTda.getChildAt(parentTda.getChildCount() - 1); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea() local
163 assertThat(wc).isInstanceOf(TaskDisplayArea.class); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
166 .isEqualTo(wc.mRemoteToken.toWindowContainerToken()); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
168 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
DWindowContainerTests.java963 private static void addLocalInsets(WindowContainer wc) { in addLocalInsets() argument
969 wc.addLocalInsetsFrameProvider(provider1, owner); in addLocalInsets()
1108 private void verifyWindowContainerApplyAnimation(WindowContainer wc, ActivityRecord act, in verifyWindowContainerApplyAnimation() argument
1131 wc.getDisplayContent().prepareAppTransition(TRANSIT_OPEN); in verifyWindowContainerApplyAnimation()
1132 wc.getDisplayContent().mAppTransition.overridePendingAppTransitionRemote(adapter); in verifyWindowContainerApplyAnimation()
1133 spyOn(wc); in verifyWindowContainerApplyAnimation()
1134 doReturn(true).when(wc).okToAnimate(); in verifyWindowContainerApplyAnimation()
1142 assertTrue(wc.applyAnimation(null, TRANSIT_OLD_TASK_OPEN, true, false, sources)); in verifyWindowContainerApplyAnimation()
1144 assertEquals(act, wc.getTopMostActivity()); in verifyWindowContainerApplyAnimation()
1145 assertTrue(wc.isAnimating()); in verifyWindowContainerApplyAnimation()
[all …]
DTransitionTests.java710 for (WindowContainer<?> wc : wcs) { in testOpenActivityInTheSameTaskWithDisplayChange()
711 transition.collect(wc); in testOpenActivityInTheSameTaskWithDisplayChange()
716 for (WindowContainer<?> wc : wcs) { in testOpenActivityInTheSameTaskWithDisplayChange()
717 wc.getWindowConfiguration().setRotation(newRotation); in testOpenActivityInTheSameTaskWithDisplayChange()
723 for (WindowContainer<?> wc : wcs) { in testOpenActivityInTheSameTaskWithDisplayChange()
724 assertTrue(Transition.containsChangeFor(wc, targets)); in testOpenActivityInTheSameTaskWithDisplayChange()
1073 final Function<WindowContainer<?>, TransitionInfo.Change> test = wc -> { in testTransitionBounds()
1074 final Transition transition = wc.mTransitionController.createTransition(TRANSIT_OPEN); in testTransitionBounds()
1075 transition.collect(wc); in testTransitionBounds()
1076 final int nextRotation = (wc.getWindowConfiguration().getRotation() + 1) % 4; in testTransitionBounds()
[all …]
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dwchar_test.cc78 wchar_t wc = L'A'; in TEST() local
80 EXPECT_TRUE(mbrtowc(&wc, reinterpret_cast<char*>(&ref_wc), sizeof(wchar_t), nullptr)); in TEST()
81 EXPECT_EQ(wc, ref_wc); in TEST()
/frameworks/base/core/java/android/os/
DWorkSource.java433 for (WorkChain wc : other.mChains) { in add()
434 if (!mChains.contains(wc)) { in add()
435 mChains.add(new WorkChain(wc)); in add()
566 final WorkChain wc = new WorkChain(); in createWorkChain() local
567 mChains.add(wc); in createWorkChain()
569 return wc; in createWorkChain()
1135 final WorkChain wc = oldWs.mChains.get(i);
1136 if (newWs.mChains == null || !newWs.mChains.contains(wc)) {
1140 goneChains.add(wc);
1147 final WorkChain wc = newWs.mChains.get(i);
[all …]
/frameworks/base/tests/TaskOrganizerTest/src/com/android/test/taskembed/
DTaskView.java111 void reparentTask(WindowContainerToken wc, SurfaceControl leash) { in reparentTask() argument
112 mWc = wc; in reparentTask()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDragToDesktopTransitionHandler.kt680 .forEach { wc -> in <lambda>() method
684 wct.reorder(wc, true /* toTop */) in <lambda>()
686 val wc = in <lambda>() constant
690 wct.reorder(wc, true /* toTop */) in <lambda>()
693 val wc = in <lambda>() constant
696 wct.reorder(wc, true /* toTop */) in <lambda>()
/frameworks/base/libs/hwui/tests/scripts/
Dprep_taieye.sh1 nr=$(adb shell cat /proc/cpuinfo | grep processor | wc -l)
Dprep_buller.sh3 nr=$(adb shell cat /proc/cpuinfo | grep processor | wc -l)
/frameworks/base/identity/java/android/security/identity/
DCredstoreIdentityCredentialStore.java125 IWritableCredential wc = mStore.createCredential(credentialName, docType); in createCredential() local
126 return new CredstoreWritableIdentityCredential(mContext, credentialName, docType, wc); in createCredential()

12