Home
last modified time | relevance | path

Searched refs:ServiceRecord (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DFgsLoggerTest.java63 .logFgsApiEvent(any(ServiceRecord.class), in setUp()
72 ServiceRecord record = ServiceRecord.newEmptyInstanceForTest(null); in testFgsStartThenApiStart()
77 verify(mFgsLogger).logFgsApiEvent(any(ServiceRecord.class), in testFgsStartThenApiStart()
86 verify(mFgsLogger).logFgsApiEvent(any(ServiceRecord.class), in testFgsStartThenApiStart()
93 ServiceRecord record = ServiceRecord.newEmptyInstanceForTest(null); in testApiStartThenFgsStart()
101 verify(mFgsLogger).logFgsApiEvent(any(ServiceRecord.class), in testApiStartThenFgsStart()
110 verify(mFgsLogger).logFgsApiEvent(any(ServiceRecord.class), in testApiStartThenFgsStart()
117 ServiceRecord record = ServiceRecord.newEmptyInstanceForTest(null); in testFgsStartApiStartFgsStopApiStop()
128 verify(mFgsLogger).logFgsApiEvent(any(ServiceRecord.class), in testFgsStartApiStartFgsStopApiStop()
156 ServiceRecord record = ServiceRecord.newEmptyInstanceForTest(null); in testApiStartStopFgs()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DProcessServiceRecord.java73 private ServiceRecord mConnectionService;
127 final ArraySet<ServiceRecord> mServices = new ArraySet<>();
132 private final ArraySet<ServiceRecord> mExecutingServices = new ArraySet<>();
260 final ServiceRecord sr = mServices.valueAt(i); in areAllShortForegroundServicesProcstateTimedOut()
293 final ServiceRecord sr = mServices.valueAt(s); in updateHasTopStartedAlmostPerceptibleServices()
303 private boolean isAlmostPerceptible(ServiceRecord record) { in isAlmostPerceptible()
329 ServiceRecord getConnectionService() { in getConnectionService()
333 void setConnectionService(ServiceRecord connectionService) { in setConnectionService()
421 boolean startService(ServiceRecord record) { in startService()
447 boolean stopService(ServiceRecord record) { in stopService()
[all …]
DActiveServices.java243 import com.android.server.am.ServiceRecord.ShortFgsInfo;
244 import com.android.server.am.ServiceRecord.TimeLimitedFgsInfo;
411 final ArrayList<ServiceRecord> mPendingServices = new ArrayList<>();
416 final ArrayList<ServiceRecord> mRestartingServices = new ArrayList<>();
421 final ArrayList<ServiceRecord> mDestroyingServices = new ArrayList<>();
426 final ArrayList<ServiceRecord> mPendingFgsNotifications = new ArrayList<>();
432 final ArrayMap<ForegroundServiceDelegation, ServiceRecord> mFgsDelegations = new ArrayMap<>();
463 private ArrayMap<ServiceRecord, ArrayList<Runnable>> mPendingBringups = new ArrayMap<>();
466 private ArrayList<ServiceRecord> mTmpCollectionResults = null;
591 final ArrayList<ServiceRecord> toStop = new ArrayList<>(N); in stopAllForegroundServicesLocked()
[all …]
DForegroundServiceTypeLoggerModule.java113 final SparseArray<ArrayMap<ComponentName, ServiceRecord>> mRunningFgs = new SparseArray<>();
137 public void logForegroundServiceStart(int uid, int pid, ServiceRecord record) { in logForegroundServiceStart()
168 final ArrayMap<ComponentName, ServiceRecord> fgsList = in logForegroundServiceStart()
210 public void logForegroundServiceStop(int uid, ServiceRecord record) { in logForegroundServiceStop()
236 final ArrayMap<ComponentName, ServiceRecord> runningFgsOfType = in logForegroundServiceStop()
334 final ArrayMap<ComponentName, ServiceRecord> fgsListMap = uidState.mRunningFgs.get(apiType); in logForegroundServiceApiEventBegin()
340 for (ServiceRecord record : fgsListMap.values()) { in logForegroundServiceApiEventBegin()
431 final ArrayMap<ComponentName, ServiceRecord> fgsRecords = uidState.mRunningFgs.get(apiType); in logForegroundServiceApiStateChanged()
434 for (ServiceRecord record : fgsRecords.values()) { in logForegroundServiceApiStateChanged()
487 public void logFgsApiEvent(ServiceRecord r, int fgsState, in logFgsApiEvent()
[all …]
DAppBindRecord.java28 final ServiceRecord service; // The running service.
54 AppBindRecord(ServiceRecord _service, IntentBindRecord _intent, in AppBindRecord()
DIntentBindRecord.java33 final ServiceRecord service;
75 IntentBindRecord(ServiceRecord _service, Intent.FilterComparison _intent) { in IntentBindRecord()
DServiceRecord.java81 final class ServiceRecord extends Binder implements ComponentName.WithComponentName { class
505 final ServiceRecord sr;
521 StartItem(ServiceRecord _sr, boolean _taskRemoved, int _id, in StartItem()
616 this.mStartForegroundCount = ServiceRecord.this.mStartForegroundCount; in update()
641 return this.mStartForegroundCount == ServiceRecord.this.mStartForegroundCount; in isCurrent()
1108 private ServiceRecord(ActivityManagerService ams) { in ServiceRecord() method in ServiceRecord
1130 public static ServiceRecord newEmptyInstanceForTest(ActivityManagerService ams) { in newEmptyInstanceForTest()
1131 return new ServiceRecord(ams); in newEmptyInstanceForTest()
1134 ServiceRecord(ActivityManagerService ams, ComponentName name, in ServiceRecord() method in ServiceRecord
1142 ServiceRecord(ActivityManagerService ams, ComponentName name, in ServiceRecord() method in ServiceRecord
[all …]
DAppStartInfoTracker.java394 ServiceRecord serviceRecord) { in handleProcessServiceStart()
DOomAdjusterModernImpl.java1237 final ServiceRecord s = psr.getRunningServiceAt(i); in forEachClientConnectionLSP()
DOomAdjuster.java779 ServiceRecord s = psr.getRunningServiceAt(is); in collectReachableProcessesLocked()
2258 ServiceRecord s = psr.getRunningServiceAt(is); in computeOomAdjLSP()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java442 app.mServices.startExecutingService(mock(ServiceRecord.class)); in testUpdateOomAdj_DoOne_ExecutingService()
562 ServiceRecord s = ServiceRecord.newEmptyInstanceForTest(mService); in testUpdateOomAdj_DoOne_FgService_ShortFgs()
605 s = ServiceRecord.newEmptyInstanceForTest(mService); in testUpdateOomAdj_DoOne_FgService_ShortFgs()
685 ServiceRecord s = bindService(app, system, in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService()
719 ServiceRecord s = bindService(app, system, in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService()
741 ServiceRecord s = bindService(app, system, in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService()
766 ServiceRecord s = bindService(app, system, in testUpdateOomAdj_DoOne_ImpFg_AlmostPerceptibleService()
891 ServiceRecord s = mock(ServiceRecord.class); in testUpdateOomAdj_DoOne_ServiceB()
935 ServiceRecord s = mock(ServiceRecord.class); in testUpdateOomAdj_DoOne_Service_Started()
953 ServiceRecord s = bindService(app, client, null, null, Context.BIND_WAIVE_PRIORITY, in testUpdateOomAdj_DoOne_Service_Started_WaivePriority()
[all …]
DActiveServicesTest.java318 doNothing().when(mActiveServices).performScheduleRestartLocked(any(ServiceRecord.class), in prepareTestRescheduleServiceRestarts()
359 final ServiceRecord r = mActiveServices.mRestartingServices.get(i); in setNextRestarts()
365 private ServiceRecord createRestartingService(String packageName, long now, long delay) { in createRestartingService()
366 final ServiceRecord r = mock(ServiceRecord.class); in createRestartingService()
370 setFieldValue(ServiceRecord.class, r, "serviceInfo", si); in createRestartingService()
371 setFieldValue(ServiceRecord.class, r, "packageName", packageName); in createRestartingService()
381 final ServiceRecord r = mActiveServices.mRestartingServices.get(i); in verifyDelays()
DServiceTimeoutTest.java152 final ServiceRecord sr = spy(ServiceRecord.newEmptyInstanceForTest(mAms)); in testServiceTimeoutAndProcessKill()
DApplicationStartInfoTest.java326 ServiceRecord service = ServiceRecord.newEmptyInstanceForTest(mAms); in testApplicationStartInfo()
/frameworks/base/services/
Dart-profile282 …-><init>(Lcom/android/server/am/ActiveServices;Lcom/android/server/am/ServiceRecord;Landroid/conte…
283 …ServiceMap;->ensureNotStartingBackgroundLocked(Lcom/android/server/am/ServiceRecord;)V+]Landroid/o…
287 …ver/am/ProcessStatsService;]Lcom/android/server/am/ServiceRecord;Lcom/android/server/am/ServiceRec…
288 …ctiveServices;->bringDownServiceIfNeededLocked(Lcom/android/server/am/ServiceRecord;ZZZLjava/lang/…
289ServiceRecord;Z)V+]Landroid/app/IApplicationThread;Landroid/app/ActivityThread$ApplicationThread;,…
290ServiceRecord;IZZZZZI)Ljava/lang/String;+]Landroid/app/usage/UsageStatsManagerInternal;Lcom/androi…
291 …erver/am/ActiveServices;->bringUpServiceLocked(Lcom/android/server/am/ServiceRecord;IZZZZZI)Ljava/…
292ServiceRecord;ZLjava/lang/String;IZ)V+]Lcom/android/internal/app/procstats/ServiceState;Lcom/andro…
294ServiceRecord;)V+]Landroid/util/ArrayMap;Landroid/util/ArrayMap;]Lcom/android/server/am/ActiveServ…
295 …veServices;->deferServiceBringupIfFrozenLocked(Lcom/android/server/am/ServiceRecord;Landroid/conte…
[all …]
Dart-wear-profile331 Lcom/android/server/am/ServiceRecord;
4186 PLcom/android/server/am/ActiveServices$ServiceAnrTimer;->start(Lcom/android/server/am/ServiceRecord
4187 …-><init>(Lcom/android/server/am/ActiveServices;Lcom/android/server/am/ServiceRecord;Landroid/conte…
4189 …tiveServices$ServiceMap;->ensureNotStartingBackgroundLocked(Lcom/android/server/am/ServiceRecord;)V
4195 …roid/server/am/ActiveServices$ServiceRestarter;->setService(Lcom/android/server/am/ServiceRecord;)V
4210 …ctiveServices;->bringDownServiceIfNeededLocked(Lcom/android/server/am/ServiceRecord;ZZZLjava/lang/…
4211 …/android/server/am/ActiveServices;->bringDownServiceLocked(Lcom/android/server/am/ServiceRecord;Z)V
4212 …/am/ActiveServices;->bringUpServiceInnerLocked(Lcom/android/server/am/ServiceRecord;IZZZZZI)Ljava/…
4213 HPLcom/android/server/am/ActiveServices;->bringUpServiceLocked(Lcom/android/server/am/ServiceRecord
4214 …am/ActiveServices;->bumpServiceExecutingLocked(Lcom/android/server/am/ServiceRecord;ZLjava/lang/St…
[all …]
Dart-profile-boot568 Lcom/android/server/am/ServiceRecord;->getConnections()Landroid/util/ArrayMap;