/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/ |
D | EventLogHelper.java | 42 public static void writeCarHelperUserSwitching(int fromUserId, int toUserId) { in writeCarHelperUserSwitching() argument 43 EventLog.writeEvent(EventLogTags.CAR_HELPER_USER_SWITCHING, fromUserId, toUserId); in writeCarHelperUserSwitching() 82 public static void writeCarServiceOnUserLifecycle(int type, int fromUserId, int toUserId) { in writeCarServiceOnUserLifecycle() argument 83 EventLog.writeEvent(EventLogTags.CAR_SERVICE_ON_USER_LIFECYCLE, type, fromUserId, toUserId); in writeCarServiceOnUserLifecycle() 227 @Nullable String packageName, int eventType, int fromUserId, int toUserId) { in writeCarUserServiceNotifyAppLifecycleListener() argument 229 packageName, eventType, fromUserId, toUserId); in writeCarUserServiceNotifyAppLifecycleListener() 233 @Nullable String listenerName, int eventType, int fromUserId, int toUserId) { in writeCarUserServiceNotifyInternalLifecycleListener() argument 235 listenerName, eventType, fromUserId, toUserId); in writeCarUserServiceNotifyInternalLifecycleListener() 486 int eventType, int fromUserId, int toUserId) { in writeCarUserManagerNotifyLifecycleListener() argument 488 eventType, fromUserId, toUserId); in writeCarUserManagerNotifyLifecycleListener()
|
/packages/services/Car/cpp/watchdog/stable_server/tests/ |
D | WatchdogPerfServiceTest.cpp | 906 userid_t toUserId = 100; in TEST_F() local 912 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 930 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 950 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 985 userid_t toUserId = 100; in TEST_F() local 991 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 1012 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 1042 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 1060 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 1080 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() [all …]
|
D | PerformanceProfilerTest.cpp | 1342 UserSwitchCollectionInfo setupUserSwitchCollection(userid_t fromUserId, userid_t toUserId) { in setupUserSwitchCollection() argument 1347 .to = toUserId, in setupUserSwitchCollection()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | WatchdogPerfServiceTest.cpp | 906 userid_t toUserId = 100; in TEST_F() local 912 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 930 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 950 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 985 userid_t toUserId = 100; in TEST_F() local 991 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 1012 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 1042 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 1060 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() 1080 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F() [all …]
|
D | PerformanceProfilerTest.cpp | 1342 UserSwitchCollectionInfo setupUserSwitchCollection(userid_t fromUserId, userid_t toUserId) { in setupUserSwitchCollection() argument 1347 .to = toUserId, in setupUserSwitchCollection()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 2522 @UserIdInt int fromUserId, @UserIdInt int toUserId) { in onUserLifecycleEvent() argument 2525 toUserId); in onUserLifecycleEvent() 2527 int userId = toUserId; in onUserLifecycleEvent() 2532 onUserSwitching(fromUserId, toUserId); in onUserLifecycleEvent() 2868 private void onUserSwitching(@UserIdInt int fromUserId, @UserIdInt int toUserId) { in onUserSwitching() argument 2870 Slogf.i(TAG, "onUserSwitching(from=%d, to=%d)", fromUserId, toUserId); in onUserSwitching() 2873 t.traceBegin("onUserSwitching-" + toUserId); in onUserSwitching() 2875 notifyLegacyUserSwitch(fromUserId, toUserId); in onUserSwitching() 2877 mInitialUserSetter.setLastActiveUser(toUserId); in onUserSwitching() 2882 private void notifyLegacyUserSwitch(@UserIdInt int fromUserId, @UserIdInt int toUserId) { in notifyLegacyUserSwitch() argument [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
D | ICarSystemServerClient.aidl | 35 void onUserLifecycleEvent(int eventType, int fromUserId, int toUserId); in onUserLifecycleEvent() argument
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | ICarImplUnitTest.java | 403 int toUserId = 2; in testCarSystemServerClientImpl_onUserLifecycleEvent() local 405 carSystemServerClient.onUserLifecycleEvent(eventType, fromUserId, toUserId); in testCarSystemServerClientImpl_onUserLifecycleEvent() 407 verify(mMockCarUserService).onUserLifecycleEvent(eventType, fromUserId, toUserId); in testCarSystemServerClientImpl_onUserLifecycleEvent()
|
/packages/services/Car/service/src/com/android/car/ |
D | ICarImpl.java | 1132 public void onUserLifecycleEvent(int eventType, int fromUserId, int toUserId) in onUserLifecycleEvent() argument 1135 EventLogHelper.writeCarServiceOnUserLifecycle(eventType, fromUserId, toUserId); in onUserLifecycleEvent() 1140 + toUserId + ")"); in onUserLifecycleEvent() 1142 mCarUserService.onUserLifecycleEvent(eventType, fromUserId, toUserId); in onUserLifecycleEvent()
|
D | CarMediaService.java | 946 private void onUserSwitch(@UserIdInt int fromUserId, @UserIdInt int toUserId) { in onUserSwitch() argument 948 Slogf.d(TAG, "onUserSwitch() fromUserId=%d, toUserId=%d", fromUserId, toUserId); in onUserSwitch() 955 onUserVisible(toUserId); in onUserSwitch()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/ |
D | FixedActivityServiceTest.java | 636 private void testClearingOfRunningActivitiesOnUserSwitch(int fromUserId, int toUserId, in testClearingOfRunningActivitiesOnUserSwitch() argument 645 mockAmGetCurrentUser(toUserId); in testClearingOfRunningActivitiesOnUserSwitch() 647 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, toUserId)); in testClearingOfRunningActivitiesOnUserSwitch()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | BaseCarUserServiceTestCase.java | 1112 protected void sendUserLifecycleEvent(@UserIdInt int fromUserId, @UserIdInt int toUserId, in sendUserLifecycleEvent() argument 1115 toUserId); in sendUserLifecycleEvent() 1138 protected void sendUserSwitchingEvent(@UserIdInt int fromUserId, @UserIdInt int toUserId) { in sendUserSwitchingEvent() argument 1139 sendUserLifecycleEvent(fromUserId, toUserId, in sendUserSwitchingEvent()
|