Lines Matching defs:si
497 ServiceItem si = mServices.get(service.service);
498 if (si == null) {
500 si = new ServiceItem(mUserId);
501 si.mRunningService = service;
503 si.mServiceInfo = ActivityThread.getPackageManager().getServiceInfo(
507 if (si.mServiceInfo == null) {
514 si.mDisplayLabel = makeLabel(pm,
515 si.mRunningService.service.getClassName(), si.mServiceInfo);
517 si.mPackageInfo = si.mServiceInfo.applicationInfo;
518 mServices.put(service.service, si);
520 si.mCurSeq = mCurSeq;
521 si.mRunningService = service;
523 if (si.mActiveSince != activeSince) {
524 si.mActiveSince = activeSince;
528 if (si.mShownAsStarted) {
529 si.mShownAsStarted = false;
535 si.mDescription = context.getResources().getString(
538 si.mDescription = null;
541 if (!si.mShownAsStarted) {
542 si.mShownAsStarted = true;
545 si.mDescription = context.getResources().getString(
673 ServiceItem si = mServices.get(i);
674 if (si.mActiveSince >= 0 && mActiveSince < si.mActiveSince) {
675 mActiveSince = si.mActiveSince;
910 ActivityManager.RunningServiceInfo si = services.get(i);
914 if (!si.started && si.clientLabel == 0) {
922 if ((si.flags&ActivityManager.RunningServiceInfo.FLAG_PERSISTENT_PROCESS)
945 ActivityManager.RunningServiceInfo si = services.get(i);
946 if (si.restarting == 0 && si.pid > 0) {
947 AppProcessInfo ainfo = mTmpAppProcesses.get(si.pid);
950 if (si.foreground) {
959 ActivityManager.RunningServiceInfo si = services.get(i);
966 if (si.restarting == 0 && si.pid > 0) {
967 AppProcessInfo ainfo = mTmpAppProcesses.get(si.pid);
994 HashMap<String, ProcessItem> procs = mServiceProcessesByName.get(si.uid);
997 mServiceProcessesByName.put(si.uid, procs);
999 ProcessItem proc = procs.get(si.process);
1002 proc = new ProcessItem(context, si.uid, si.process);
1003 procs.put(si.process, proc);
1007 int pid = si.restarting == 0 ? si.pid : 0;
1023 changed |= proc.updateService(context, si);
1143 ServiceItem si = sit.next();
1144 if (si.mCurSeq != mSequence) {
1167 for (ServiceItem si : pi.mServices.values()) {
1168 if (si.mServiceInfo != null
1169 && (si.mServiceInfo.applicationInfo.flags
1173 if (si.mRunningService != null
1174 && si.mRunningService.clientLabel != 0) {
1176 if (pi.mActiveSince > si.mRunningService.activeSince) {
1177 pi.mActiveSince = si.mRunningService.activeSince;
1207 for (ServiceItem si : pi.mServices.values()) {
1208 si.mNeedDivider = needDivider;
1210 newItems.add(si);
1211 if (si.mMergedItem != null) {
1212 if (mergedItem != null && mergedItem != si.mMergedItem) {
1215 mergedItem = si.mMergedItem;
1225 for (ServiceItem si : pi.mServices.values()) {
1226 mergedItem.mServices.add(si);
1227 si.mMergedItem = mergedItem;