Home
last modified time | relevance | path

Searched refs:fromUserId (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()
78 public static void writeCarServiceOnUserLifecycle(int type, int fromUserId, int toUserId) { in writeCarServiceOnUserLifecycle() argument
79 EventLog.writeEvent(EventLogTags.CAR_SERVICE_ON_USER_LIFECYCLE, type, fromUserId, toUserId); in writeCarServiceOnUserLifecycle()
223 @Nullable String packageName, int eventType, int fromUserId, int toUserId) { in writeCarUserServiceNotifyAppLifecycleListener() argument
225 packageName, eventType, fromUserId, toUserId); in writeCarUserServiceNotifyAppLifecycleListener()
229 @Nullable String listenerName, int eventType, int fromUserId, int toUserId) { in writeCarUserServiceNotifyInternalLifecycleListener() argument
231 listenerName, eventType, fromUserId, toUserId); in writeCarUserServiceNotifyInternalLifecycleListener()
482 int eventType, int fromUserId, int toUserId) { in writeCarUserManagerNotifyLifecycleListener() argument
484 eventType, fromUserId, toUserId); in writeCarUserManagerNotifyLifecycleListener()
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogPerfServiceTest.cpp860 userid_t fromUserId = 0; in TEST_F() local
867 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F()
885 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F()
905 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F()
939 userid_t fromUserId = 0; in TEST_F() local
946 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F()
967 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F()
997 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F()
1015 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F()
1035 onUserSwitchCollection(_, Eq(fromUserId), Eq(toUserId), Eq(mMockUidStatsCollector), in TEST_F()
[all …]
DPerformanceProfilerTest.cpp1337 UserSwitchCollectionInfo setupUserSwitchCollection(userid_t fromUserId, userid_t toUserId) { in setupUserSwitchCollection() argument
1341 .from = fromUserId, in setupUserSwitchCollection()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DInteractionLogger.kt83 SafetySourceProfileType.fromUserId(decodedId.safetyCenterIssueKey.userId), in recordForIssue()
100 sourceProfileType = SafetySourceProfileType.fromUserId(decodedId.userId) in recordForEntry()
395 fun fromUserId(userId: Int): SafetySourceProfileType = in fromUserId() method
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java2374 @UserIdInt int fromUserId, @UserIdInt int toUserId) { in onUserLifecycleEvent() argument
2376 Slogf.d(TAG, "onUserLifecycleEvent(): event=%d, from=%d, to=%d", eventType, fromUserId, in onUserLifecycleEvent()
2384 onUserSwitching(fromUserId, toUserId); in onUserLifecycleEvent()
2405 UserLifecycleEvent event = new UserLifecycleEvent(eventType, fromUserId, userId); in onUserLifecycleEvent()
2643 int fromUserId = event.getPreviousUserId(); in handleNotifyAppUserLifecycleListeners() local
2644 if (fromUserId != USER_NULL) { in handleNotifyAppUserLifecycleListeners()
2645 data.putInt(CarUserManager.BUNDLE_PARAM_PREVIOUS_USER_ID, fromUserId); in handleNotifyAppUserLifecycleListeners()
2649 listener.packageName, eventType, fromUserId, userId); in handleNotifyAppUserLifecycleListeners()
2700 private void onUserSwitching(@UserIdInt int fromUserId, @UserIdInt int toUserId) { in onUserSwitching() argument
2702 Slogf.i(TAG, "onUserSwitching(from=%d, to=%d)", fromUserId, toUserId); in onUserSwitching()
[all …]
DExperimentalCarUserService.java424 private void onUserSwitching(@UserIdInt int fromUserId, @UserIdInt int toUserId) { in onUserSwitching() argument
425 Slogf.d(TAG, "onUserSwitching() callback from user %d to user %d", fromUserId, toUserId); in onUserSwitching()
/packages/services/Car/car-lib/src/com/android/car/internal/
DICarSystemServerClient.aidl36 void onUserLifecycleEvent(int eventType, int fromUserId, int toUserId); in onUserLifecycleEvent() argument
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java636 private void testClearingOfRunningActivitiesOnUserSwitch(int fromUserId, int toUserId, in testClearingOfRunningActivitiesOnUserSwitch() argument
639 Intent intent = expectComponentAvailable("test_package", "com.test.dude", fromUserId); in testClearingOfRunningActivitiesOnUserSwitch()
640 mockAmGetCurrentUser(fromUserId); in testClearingOfRunningActivitiesOnUserSwitch()
653 options, VALID_DISPLAY_ID, fromUserId); in testClearingOfRunningActivitiesOnUserSwitch()
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_built_in_api_list.txt139 method TIRAMISU_0 void writeCarHelperUserSwitching(int fromUserId, int toUserId);
148 method TIRAMISU_0 void writeCarServiceOnUserLifecycle(int type, int fromUserId, int toUserId);
177 …tifyAppLifecycleListener(int uid, String packageName, int eventType, int fromUserId, int toUserId);
178 …eNotifyInternalLifecycleListener(String listenerName, int eventType, int fromUserId, int toUserId);
215 …erManagerNotifyLifecycleListener(int numberListeners, int eventType, int fromUserId, int toUserId);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DBaseCarUserServiceTestCase.java1101 protected void sendUserLifecycleEvent(@UserIdInt int fromUserId, @UserIdInt int toUserId, in sendUserLifecycleEvent() argument
1103 mCarUserService.onUserLifecycleEvent(eventType, fromUserId, in sendUserLifecycleEvent()
1127 protected void sendUserSwitchingEvent(@UserIdInt int fromUserId, @UserIdInt int toUserId) { in sendUserSwitchingEvent() argument
1128 sendUserLifecycleEvent(fromUserId, toUserId, in sendUserSwitchingEvent()
/packages/services/Car/service/src/com/android/car/
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()
951 if (fromUserId != UserHandle.SYSTEM.getIdentifier()) { in onUserSwitch()
952 onUserInvisible(fromUserId); in onUserSwitch()
DICarImpl.java1088 public void onUserLifecycleEvent(int eventType, int fromUserId, int toUserId) in onUserLifecycleEvent() argument
1091 EventLogHelper.writeCarServiceOnUserLifecycle(eventType, fromUserId, toUserId); in onUserLifecycleEvent()
1098 mCarUserService.onUserLifecycleEvent(eventType, fromUserId, toUserId); in onUserLifecycleEvent()