Lines Matching defs:team

138 		fMessage.AddInt32("team", -1);
146 void SetTeam(team_id team)
148 fMessage.ReplaceInt32("team", team);
162 team_id team;
163 if (message->FindInt32("team", &team) != B_OK)
164 team = -1;
166 return team;
174 InternalEvent(uint32 type, team_id team, int32 phase)
177 fTeam(team),
284 message->AddInt32("team", -1);
324 status_t AddApp(team_id team, BBitmap* appIcon)
332 info->team = team;
343 void RemoveApp(team_id team)
345 int32 index = _AppInfoIndexOf(team);
349 if (team == fCurrentApp)
356 void SetCurrentApp(team_id team)
358 AppInfo* info = (team >= 0 ? _AppInfoFor(team) : NULL);
360 fCurrentApp = team;
363 fKillAppMessage->ReplaceInt32("team", team);
425 team_id team;
434 int32 _AppInfoIndexOf(team_id team)
436 if (team < 0)
440 if (info->team == team)
447 AppInfo* _AppInfoFor(team_id team)
449 int32 index = _AppInfoIndexOf(team);
786 // get the team
787 team_id team;
788 if (message->FindInt32("be:team", &team) != B_OK) {
794 B_PRId32 "\n", team);
802 info = fUserApps.InfoFor(team);
805 else if ((info = fSystemApps.InfoFor(team)))
807 else if ((info = fBackgroundApps.InfoFor(team)))
816 _PushEvent(APP_QUIT_EVENT, team, phase);
825 // get the team
826 team_id team;
827 if (message->FindInt32("be:team", &team) != B_OK) {
833 B_PRId32 "\n", team);
838 fRoster->AddAppInfo(fUserApps, team);
847 team_id team = TimeoutEvent::GetMessageTeam(message);;
848 PRINT("MSG_PHASE_TIMED_OUT: phase: %" B_PRId32 ", team: %" B_PRId32
849 "\n", phase, team);
857 _PushEvent(TIMEOUT_EVENT, team, phase);
864 team_id team;
865 if (message->FindInt32("team", &team) != B_OK)
869 _PushEvent(KILL_APP_EVENT, team, fCurrentPhase);
905 team_id team;
906 if (message->FindInt32("team", &team) != B_OK
913 team);
914 fDebuggedTeams.Add(team);
917 team);
918 fDebuggedTeams.Remove(team);
971 ShutdownProcess::_ScheduleTimeoutEvent(bigtime_t timeout, team_id team)
978 // set the event's phase, team and time
980 fTimeoutEvent->SetTeam(team);
1077 error = fWindow->AddApp(info->team, appIcon);
1087 ShutdownProcess::_RemoveShutdownWindowApp(team_id team)
1092 fWindow->RemoveApp(team);
1098 ShutdownProcess::_SetShutdownWindowCurrentApp(team_id team)
1103 fWindow->SetCurrentApp(team);
1179 // Note: team ID == team main thread ID under Haiku. When testing under R5
1180 // using the team ID in case of an ABORT_EVENT won't work correctly. But
1205 ShutdownProcess::_PushEvent(uint32 eventType, team_id team, int32 phase)
1207 InternalEvent* event = new(nothrow) InternalEvent(eventType, team, phase);
1224 ShutdownProcess::_GetNextEvent(uint32& eventType, thread_id& team, int32& phase,
1253 team = event->Team();
1267 _RemoveShutdownWindowApp(team);
1418 team_id team;
1420 status = _GetNextEvent(event, team, phase, true);
1438 ShutdownProcess::_WaitForApp(team_id team, AppInfoList* list, bool systemApps)
1448 if (event == APP_QUIT_EVENT && eventTeam == team)
1451 if (event == TIMEOUT_EVENT && eventTeam == team)
1464 if (eventTeam == team)
1469 "by team %" B_PRId32 " (-1 => user)\n", eventTeam);
1471 _DisplayAbortingApp(team);
1477 if (list != NULL && !list->InfoFor(team))
1497 team_id team;
1499 status_t error = _GetNextEvent(event, team, phase, false);
1505 "team %" B_PRId32 " (-1 => user)\n", team);
1507 _DisplayAbortingApp(team);
1523 team_id team;
1525 status_t error = _GetNextEvent(event, team, phase, false);
1531 "team %" B_PRId32 " (-1 => user)\n", team);
1533 _DisplayAbortingApp(team);
1540 team_id team = -1;
1547 team = info->team;
1558 if (team < 0) {
1567 _SetShutdownWindowCurrentApp(team);
1570 PRINT(" sending team %" B_PRId32 " (port: %" B_PRId32 ") a shutdown "
1571 "message\n", team, port);
1576 _ScheduleTimeoutEvent(kAppQuitTimeout, team);
1579 bool appGone = _WaitForApp(team, &list, systemApps);
1586 _QuitBlockingApp(list, team, appName, true);
1591 if (RosterAppInfo* info = list.InfoFor(team)) {
1650 team_id team;
1652 status_t error = _GetNextEvent(event, team, phase, true);
1678 team_id team;
1680 status_t error = _GetNextEvent(event, team, phase, false);
1686 // get the first team to kill
1687 team_id team = -1;
1695 team = info->team;
1701 if (team < 0) {
1708 _QuitBlockingApp(list, team, appName, false);
1724 if (!fVitalSystemApps.Contains(teamInfo.team)) {
1725 PRINT(" sending team %" B_PRId32 " TERM signal\n", teamInfo.team);
1727 // Note: team ID == team main thread ID under Haiku
1728 send_signal(teamInfo.team, SIGTERM);
1740 if (!fVitalSystemApps.Contains(teamInfo.team)) {
1741 PRINT(" killing team %" B_PRId32 "\n", teamInfo.team);
1743 kill_team(teamInfo.team);
1752 ShutdownProcess::_QuitBlockingApp(AppInfoList& list, team_id team,
1759 if (fDebuggedTeams.Contains(team))
1763 modal = BPrivate::is_app_showing_modal_window(team);
1771 _SetShutdownWindowCurrentApp(team);
1787 if ((event == APP_QUIT_EVENT) && eventTeam == team) {
1792 if (event == KILL_APP_EVENT && eventTeam == team)
1798 "cancelled by team %" B_PRId32 " (-1 => user)\n",
1809 if (eventTeam == team)
1822 PRINT(" killing team %" B_PRId32 "\n", team);
1824 kill_team(team);
1831 if (RosterAppInfo* info = list.InfoFor(team)) {
1840 ShutdownProcess::_DisplayAbortingApp(team_id team)
1848 RosterAppInfo* info = fUserApps.InfoFor(team);
1850 info = fSystemApps.InfoFor(team);
1852 fBackgroundApps.InfoFor(team);
1873 _SetShutdownWindowCurrentApp(team);
1901 /*! Waits until the debugged team list is empty, ie. when there is no one