Home
last modified time | relevance | path

Searched refs:wpc (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/wm/
DVisibleActivityProcessTracker.java43 void onAnyActivityVisible(WindowProcessController wpc) { in onAnyActivityVisible() argument
44 final CpuTimeRecord r = new CpuTimeRecord(wpc); in onAnyActivityVisible()
46 mProcMap.put(wpc, r); in onAnyActivityVisible()
48 if (wpc.hasResumedActivity()) { in onAnyActivityVisible()
55 void onAllActivitiesInvisible(WindowProcessController wpc) { in onAllActivitiesInvisible() argument
56 final CpuTimeRecord r = removeProcess(wpc); in onAllActivitiesInvisible()
63 void onActivityResumedWhileVisible(WindowProcessController wpc) { in onActivityResumedWhileVisible() argument
66 r = mProcMap.get(wpc); in onActivityResumedWhileVisible()
89 final WindowProcessController wpc = mProcMap.keyAt(i); in match() local
90 if (wpc.mUid == uid && (predicate == null || predicate.test(wpc))) { in match()
[all …]
DPackageConfigurationUpdaterImpl.java90 WindowProcessController wpc = mAtm.mProcessMap.getProcess(mPid.get()); in commit() local
91 if (wpc == null) { in commit()
96 uid = wpc.mUid; in commit()
97 mUserId = wpc.mUserId; in commit()
98 mPackageName = wpc.mInfo.packageName; in commit()
125 final WindowProcessController wpc = processes.valueAt(i); in updateConfig() local
126 if (wpc.mInfo.packageName.equals(packageName)) { in updateConfig()
127 wpc.applyAppSpecificConfig(mNightMode, localesOverride, mGrammaticalGender); in updateConfig()
131 wpc.updateAppSpecificSettingsForAllActivitiesInPackage(packageName, mNightMode, in updateConfig()
DActivityServiceConnectionsHolder.java97 final WindowProcessController wpc = mActivity.app; in getActivityPid() local
98 return wpc != null ? wpc.getPid() : -1; in getActivityPid()
DWindowContextListenerController.java76 void registerWindowContainerListener(@NonNull WindowProcessController wpc, in registerWindowContainerListener() argument
79 registerWindowContainerListener(wpc, clientToken, container, type, options, in registerWindowContainerListener()
99 void registerWindowContainerListener(@NonNull WindowProcessController wpc, in registerWindowContainerListener() argument
105 listener = new WindowContextListenerImpl(wpc, clientToken, container, type, in registerWindowContainerListener()
228 private WindowContextListenerImpl(@NonNull WindowProcessController wpc, in WindowContextListenerImpl() argument
231 mWpc = Objects.requireNonNull(wpc); in WindowContextListenerImpl()
DActivityTaskManagerInternal.java493 public abstract void handleAppDied(WindowProcessController wpc, boolean restarting, in handleAppDied() argument
512 public abstract void preBindApplication(WindowProcessController wpc); in preBindApplication() argument
515 public abstract boolean attachApplication(WindowProcessController wpc) throws RemoteException; in attachApplication() argument
564 public abstract void onHandleAppCrash(WindowProcessController wpc); in onHandleAppCrash() argument
597 public abstract void setProfileProc(WindowProcessController wpc); in setProfileProc() argument
DEmbeddedWindowController.java286 final WindowProcessController wpc = in onRemoved() local
288 if (wpc != null) { in onRemoved()
289 wpc.removeHostActivity(mHostActivityRecord); in onRemoved()
DRemoteAnimationController.java385 final WindowProcessController wpc = mService.mAtmService.getProcessController(pid, uid);
386 if (wpc == null) {
390 wpc.setRunningRemoteAnimation(running);
DActivityTaskSupervisor.java1090 final WindowProcessController wpc = in startSpecificActivity() local
1094 if (wpc != null && wpc.hasThread()) { in startSpecificActivity()
1096 realStartActivityLocked(r, wpc, andResume, checkConfig); in startSpecificActivity()
1107 mService.mProcessNames.remove(wpc.mName, wpc.mUid); in startSpecificActivity()
1108 mService.mProcessMap.remove(wpc.getPid()); in startSpecificActivity()
2571 void onProcessActivityStateChanged(WindowProcessController wpc, boolean forceBatch) { in onProcessActivityStateChanged() argument
2573 if (!mActivityStateChangedProcs.contains(wpc)) { in onProcessActivityStateChanged()
2574 mActivityStateChangedProcs.add(wpc); in onProcessActivityStateChanged()
2578 wpc.computeProcessActivityState(); in onProcessActivityStateChanged()
DTaskFragmentOrganizerController.java1264 final WindowProcessController wpc = mAtmService.mProcessMap.getProcess(pid); in getAppThread() local
1265 final IApplicationThread appThread = wpc != null && wpc.mUid == uid in getAppThread()
1266 ? wpc.getThread() in getAppThread()
DActivityTaskManagerService.java4056 final WindowProcessController wpc = mProcessMap.getProcess(pid); in setVrThread() local
4057 mVrController.setVrThreadLocked(tid, pid, wpc); in setVrThread()
4761 final WindowProcessController wpc = processes.get(i); in updateAssetConfiguration() local
4762 wpc.updateAssetConfiguration(assetSeq); in updateAssetConfiguration()
5763 final WindowProcessController wpc = getProcessController(delegate); in setRunningRemoteTransitionDelegate() local
5764 if (wpc == null) { in setRunningRemoteTransitionDelegate()
5768 controller.mRemotePlayer.update(wpc, true /* running */, false /* predict */); in setRunningRemoteTransitionDelegate()
6581 public void handleAppDied(WindowProcessController wpc, boolean restarting, in handleAppDied() argument
6588 hasVisibleActivities = wpc.handleAppDied(); in handleAppDied()
6603 if (wpc.isInstrumenting()) { in handleAppDied()
[all …]
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DWindowProcessControllerHelper.java27 public static int getUid(WindowProcessController wpc) { in getUid() argument
28 return wpc.mUid; in getUid()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java1776 final WindowProcessController wpc = activity.app; in testRemoveImmediately()
1787 assertFalse(wpc.hasActivities()); in testRemoveImmediately()
1798 final WindowProcessController wpc = activity.app; in testRemoveFromHistory() local
1799 assertTrue(wpc.hasActivities()); in testRemoveFromHistory()
1806 assertFalse(wpc.hasActivities()); in testRemoveFromHistory()
1850 final WindowProcessController wpc = activity.app; in testActivityOverridesProcessConfig() local
1851 assertTrue(wpc.registeredForActivityConfigChanges()); in testActivityOverridesProcessConfig()
1852 assertFalse(wpc.registeredForDisplayAreaConfigChanges()); in testActivityOverridesProcessConfig()
1857 assertTrue(wpc.registeredForActivityConfigChanges()); in testActivityOverridesProcessConfig()
1859 .diff(wpc.getRequestedOverrideConfiguration())); in testActivityOverridesProcessConfig()
[all …]
DActivityTaskManagerServiceTests.java720 WindowProcessController wpc = createWindowProcessController( in testPackageConfigUpdate_multipleLocaleUpdates_successfullyApplied() local
722 mAtm.mProcessMap.put(Binder.getCallingPid(), wpc); in testPackageConfigUpdate_multipleLocaleUpdates_successfullyApplied() local
735 wpc.getConfiguration().getLocales()); in testPackageConfigUpdate_multipleLocaleUpdates_successfullyApplied()
746 wpc.getConfiguration().getLocales()); in testPackageConfigUpdate_multipleLocaleUpdates_successfullyApplied()
810 WindowProcessController wpc = createWindowProcessController( in testPackageConfigUpdate_LocalesEmptyAndNightModeUndefined_configShouldNotApply() local
812 mAtm.mProcessMap.put(Binder.getCallingPid(), wpc); in testPackageConfigUpdate_LocalesEmptyAndNightModeUndefined_configShouldNotApply() local
825 wpc.getConfiguration().getLocales()); in testPackageConfigUpdate_LocalesEmptyAndNightModeUndefined_configShouldNotApply()
836 wpc.getConfiguration().getLocales()); in testPackageConfigUpdate_LocalesEmptyAndNightModeUndefined_configShouldNotApply()
932 WindowProcessController wpc = createWindowProcessController( in testPackageConfigUpdate_localesNotSet_localeConfigRetrievedNull() local
934 mAtm.mProcessMap.put(Binder.getCallingPid(), wpc); in testPackageConfigUpdate_localesNotSet_localeConfigRetrievedNull() local
[all …]
DWindowProcessControllerTests.java237 WindowProcessController wpc = new WindowProcessController( in testActivityNotOverridingSystemUiProcessConfig() local
239 wpc.setThread(mock(IApplicationThread.class)); in testActivityNotOverridingSystemUiProcessConfig()
241 final ActivityRecord activity = createActivityRecord(wpc); in testActivityNotOverridingSystemUiProcessConfig()
242 wpc.addActivityIfNeeded(activity); in testActivityNotOverridingSystemUiProcessConfig()
244 assertFalse(wpc.registeredForActivityConfigChanges()); in testActivityNotOverridingSystemUiProcessConfig()
427 private ActivityRecord createActivityRecord(WindowProcessController wpc) { in createActivityRecord() argument
428 return new ActivityBuilder(mAtm).setCreateTask(true).setUseProcess(wpc).build(); in createActivityRecord()
DRootWindowContainerTests.java252 final WindowProcessController wpc = activity.app; in testForceStopPackage() local
255 new ActivityBuilder(mWm.mAtmService).setTask(task).setUseProcess(wpc).build(), in testForceStopPackage()
256 new ActivityBuilder(mWm.mAtmService).setTask(task).setUseProcess(wpc).build() in testForceStopPackage()
261 spyOn(wpc); in testForceStopPackage()
262 doReturn(true).when(wpc).isRemoved(); in testForceStopPackage()
264 mWm.mAtmService.mInternal.onForceStopPackage(wpc.mInfo.packageName, true /* doit */, in testForceStopPackage()
265 false /* evenPersistent */, wpc.mUserId); in testForceStopPackage()
269 wpc.handleAppDied(); in testForceStopPackage()
272 assertFalse(wpc.hasActivities()); in testForceStopPackage()
DDisplayPolicyTests.java283 final WindowProcessController wpc = mNotificationShadeWindow.getProcess(); in testVisibleProcessWhileDozing() local
290 assertTrue(wpc.isShowingUiWhileDozing()); in testVisibleProcessWhileDozing()
292 assertFalse(wpc.isShowingUiWhileDozing()); in testVisibleProcessWhileDozing()
295 assertTrue(wpc.isShowingUiWhileDozing()); in testVisibleProcessWhileDozing()
297 assertFalse(wpc.isShowingUiWhileDozing()); in testVisibleProcessWhileDozing()
DInputMethodDialogWindowContextTest.java109 final WindowProcessController wpc = mAtm.getProcessController(appThread); in setUp()
110 mWm.mWindowContextListenerController.registerWindowContainerListener(wpc, clientToken, in setUp()
DRecentsAnimationTest.java96 final WindowProcessController wpc = mSystemServicesTestRule.addProcess( in testRecentsActivityVisiblility() local
104 .setUseProcess(wpc) in testRecentsActivityVisiblility()
DWindowTestsBase.java1377 ActivityBuilder setUseProcess(WindowProcessController wpc) { in setUseProcess() argument
1378 mWpc = wpc; in setUseProcess()
1506 final WindowProcessController wpc; in buildInner() local
1508 wpc = mWpc; in buildInner()
1511 wpc = p != null ? p : SystemServicesTestRule.addProcess( in buildInner()
1514 activity.setProcess(wpc); in buildInner()
DWindowManagerServiceTests.java253 final WindowProcessController wpc = mSystemServicesTestRule.addProcess( in testTrackOverlayWindow() local
255 final Session session = createTestSession(mAtm, wpc.getPid(), wpc.mUid); in testTrackOverlayWindow()
597 final WindowProcessController wpc = mAtm.getProcessController(mAppThread); in testAttachWindowContextToWindowToken_CallerValid_DoRegister() local
598 verify(mWm.mWindowContextListenerController).registerWindowContainerListener(wpc, in testAttachWindowContextToWindowToken_CallerValid_DoRegister()
DSystemServicesTestRule.java379 final WindowProcessController wpc =
381 wpc.setThread(ActivityThread.currentActivityThread().getApplicationThread());
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java487 WindowProcessController wpc = app.getWindowProcessController(); in testUpdateOomAdj_DoOne_VisibleActivities() local
488 doReturn(true).when(wpc).hasActivities(); in testUpdateOomAdj_DoOne_VisibleActivities()
501 })).when(wpc).computeOomAdjFromActivities( in testUpdateOomAdj_DoOne_VisibleActivities()
517 WindowProcessController wpc = app.getWindowProcessController(); in testUpdateOomAdj_DoOne_RecentTasks() local
518 doReturn(true).when(wpc).hasRecentTasks(); in testUpdateOomAdj_DoOne_RecentTasks()
522 doCallRealMethod().when(wpc).hasRecentTasks(); in testUpdateOomAdj_DoOne_RecentTasks()
793 WindowProcessController wpc = app.getWindowProcessController(); in testUpdateOomAdj_DoOne_HeavyWeight() local
794 doReturn(true).when(wpc).isHeavyWeightProcess(); in testUpdateOomAdj_DoOne_HeavyWeight()
797 doReturn(false).when(wpc).isHeavyWeightProcess(); in testUpdateOomAdj_DoOne_HeavyWeight()
808 WindowProcessController wpc = app.getWindowProcessController(); in testUpdateOomAdj_DoOne_HomeApp() local
[all …]
DServiceBindingOomAdjPolicyTest.java525 final WindowProcessController wpc = app.getWindowProcessController(); in setHomeProcess() local
526 doReturn(true).when(wpc).isHomeProcess(); in setHomeProcess()
DActivityManagerServiceTest.java701 final var wpc = fifoProc.getWindowProcessController(); in testFifoSwitch() local
702 spyOn(wpc); in testFifoSwitch()
703 doReturn(true).when(wpc).useFifoUiScheduling(); in testFifoSwitch()
/frameworks/base/services/core/java/com/android/server/am/
DAppStartInfoTracker.java491 final WindowProcessController wpc = app.getWindowProcessController(); in addBaseFieldsFromProcessRecord() local
493 || (wpc != null ? wpc.wasForceStopped() : false)); in addBaseFieldsFromProcessRecord()

12