Home
last modified time | relevance | path

Searched refs:toUserId (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/
DEventLogHelper.java42 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/
DWatchdogPerfServiceTest.cpp906 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 …]
DPerformanceProfilerTest.cpp1342 UserSwitchCollectionInfo setupUserSwitchCollection(userid_t fromUserId, userid_t toUserId) { in setupUserSwitchCollection() argument
1347 .to = toUserId, in setupUserSwitchCollection()
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogPerfServiceTest.cpp906 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 …]
DPerformanceProfilerTest.cpp1342 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/
DCarUserService.java2522 @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/
DICarSystemServerClient.aidl35 void onUserLifecycleEvent(int eventType, int fromUserId, int toUserId); in onUserLifecycleEvent() argument
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DICarImplUnitTest.java403 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/
DICarImpl.java1132 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()
DCarMediaService.java946 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/
DFixedActivityServiceTest.java636 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/
DBaseCarUserServiceTestCase.java1112 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()