Home
last modified time | relevance | path

Searched refs:mSystemActivityMonitoringService (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeAppFocusService.java30 private final FakeSystemActivityMonitoringService mSystemActivityMonitoringService; field in FakeAppFocusService
36 mSystemActivityMonitoringService = fakeSystemActivityMonitoringService; in FakeAppFocusService()
48 mSystemActivityMonitoringService.setForegroundUid(uid); in setForegroundUid()
53 mSystemActivityMonitoringService.setForegroundPid(pid); in setForegroundPid()
58 mSystemActivityMonitoringService.resetForegroundUid(); in resetForegroundUid()
63 mSystemActivityMonitoringService.resetForegroundPid(); in resetForegroundPid()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarAppFocusManagerTest.java74 @Mock private SystemActivityMonitoringService mSystemActivityMonitoringService; field in CarAppFocusManagerTest
79 mContext, mSystemActivityMonitoringService, mMockBinder); in configureFakeSystemInterface()
89 when(mSystemActivityMonitoringService.isInForeground(anyInt(), anyInt())) in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DAppFocusServiceTest.java58 private SystemActivityMonitoringService mSystemActivityMonitoringService; field in AppFocusServiceTest
72 mService = new AppFocusService(mContext, mSystemActivityMonitoringService); in setUp()
/packages/services/Car/service/src/com/android/car/
DAppFocusService.java63 private final SystemActivityMonitoringService mSystemActivityMonitoringService; field in AppFocusService
106 mSystemActivityMonitoringService = systemActivityMonitoringService; in AppFocusService()
238 return mSystemActivityMonitoringService.isInForeground(info.getPid(), info.getUid()); in isInForeground()
DICarImpl.java137 private final SystemActivityMonitoringService mSystemActivityMonitoringService; field in ICarImpl
297 mSystemActivityMonitoringService = constructWithTrace( in ICarImpl()
343 () -> new AppFocusService(mContext, mSystemActivityMonitoringService), in ICarImpl()
467 mCarPowerManagementService, mSystemActivityMonitoringService), in ICarImpl()
1119 mSystemActivityMonitoringService.handleFocusChanged(pid, uid); in notifyFocusChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarRemoteDeviceServiceTest.java124 private SystemActivityMonitoringService mSystemActivityMonitoringService; field in CarRemoteDeviceServiceTest
160 mSystemActivityMonitoringService); in setUp()
165 mPowerManagementService, mSystemActivityMonitoringService, mActivityManager, in setUp()
505 }).when(mSystemActivityMonitoringService).registerProcessObserverCallback(any()); in testAppStateChanged()
566 }).when(mSystemActivityMonitoringService).registerProcessObserverCallback(any()); in testProcessObserverCallbackInvokedBeforeOccupantZoneCallback()
/packages/services/Car/service/src/com/android/car/occupantconnection/
DCarRemoteDeviceService.java151 private final SystemActivityMonitoringService mSystemActivityMonitoringService; field in CarRemoteDeviceService
288 mSystemActivityMonitoringService = systemActivityMonitoringService; in CarRemoteDeviceService()
364 mSystemActivityMonitoringService.registerProcessObserverCallback(mProcessObserver); in registerStateCallback()
379 mSystemActivityMonitoringService.unregisterProcessObserverCallback( in unregisterStateCallback()