Home
last modified time | relevance | path

Searched refs:foregroundServiceType (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedServiceImpl.java38 private int foregroundServiceType; field in ParsedServiceImpl
45 this.foregroundServiceType = other.foregroundServiceType; in ParsedServiceImpl()
73 dest.writeInt(this.foregroundServiceType); in writeToParcel()
82 this.foregroundServiceType = in.readInt(); in ParsedServiceImpl()
117 int foregroundServiceType, in ParsedServiceImpl() argument
119 this.foregroundServiceType = foregroundServiceType; in ParsedServiceImpl()
127 return foregroundServiceType; in getForegroundServiceType()
137 foregroundServiceType = value; in setForegroundServiceType()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DFgsLoggerTest.java73 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testFgsStartThenApiStart()
94 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testApiStartThenFgsStart()
118 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testFgsStartApiStartFgsStopApiStop()
157 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testApiStartStopFgs()
177 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testFgsStartStopApiStartStop()
201 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultipleStartStopApis()
258 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultipleStartStops()
326 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultiStartStopThroughout()
395 record.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultipleFGS()
398 record2.foregroundServiceType = ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA; in testMultipleFGS()
[all …]
/frameworks/base/core/java/android/app/
DService.java860 @RequiresPermission @ForegroundServiceType int foregroundServiceType) { in startForeground() argument
865 notification, 0, foregroundServiceType); in startForeground()
867 logForegroundServiceStart(comp, foregroundServiceType); in startForeground()
1060 @ForegroundServiceType int foregroundServiceType) {
1064 comp.toShortString(), Integer.toHexString(foregroundServiceType));
DActivityManagerInternal.java742 public abstract boolean hasRunningForegroundService(int uid, int foregroundServiceType); in hasRunningForegroundService() argument
DIActivityManager.aidl327 int id, in Notification notification, int flags, int foregroundServiceType); in setServiceForeground() argument
/frameworks/base/services/core/java/com/android/server/am/
DForegroundServiceTypeLoggerModule.java141 "foregroundService", record.foregroundServiceType); in logForegroundServiceStart()
151 convertFgsTypeToApiTypes(record.foregroundServiceType); in logForegroundServiceStart()
219 final IntArray apiTypes = convertFgsTypeToApiTypes(record.foregroundServiceType); in logForegroundServiceStop()
524 r.foregroundServiceType, in logFgsApiEvent()
DActiveServices.java1168 private boolean shouldAllowBootCompletedStart(ServiceRecord r, int foregroundServiceType) { in shouldAllowBootCompletedStart() argument
1174 return ((foregroundServiceType & mAm.mConstants.FGS_BOOT_COMPLETED_ALLOWLIST) != 0); in shouldAllowBootCompletedStart()
1836 int id, Notification notification, int flags, int foregroundServiceType) { in setServiceForegroundLocked() argument
1843 setServiceForegroundInnerLocked(r, id, notification, flags, foregroundServiceType, in setServiceForegroundLocked()
1864 ret = r.foregroundServiceType; in getForegroundServiceTypeLocked()
2159 Notification notification, int flags, int foregroundServiceType, in setServiceForegroundInnerLocked() argument
2166 final int foregroundServiceStartType = foregroundServiceType; in setServiceForegroundInnerLocked()
2199 if (foregroundServiceType == FOREGROUND_SERVICE_TYPE_MANIFEST) { in setServiceForegroundInnerLocked()
2200 foregroundServiceType = manifestType; in setServiceForegroundInnerLocked()
2206 if (((foregroundServiceType & manifestType) != foregroundServiceType) in setServiceForegroundInnerLocked()
[all …]
DServiceRecord.java165 int foregroundServiceType; // foreground service types. field in ServiceRecord
827 foregroundServiceType); in dumpDebug()
1008 pw.printf(" types=0x%08X", foregroundServiceType); in dump()
1805 && (foregroundServiceType == ServiceInfo.FOREGROUND_SERVICE_TYPE_SHORT_SERVICE); in isShortFgs()
1877 + " type=" + Integer.toHexString(this.foregroundServiceType) in getShortFgsTimedEventDescription()
1896 && ams.mServices.getTimeLimitedFgsType(foregroundServiceType) in isFgsTimeLimited()
DOomAdjuster.java2306 final int fgsType = s.foregroundServiceType; in computeOomAdjLSP()
DActivityManagerService.java14090 int id, Notification notification, int flags, int foregroundServiceType) { in setServiceForeground() argument
14093 foregroundServiceType); in setServiceForeground()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java566 s.foregroundServiceType = FOREGROUND_SERVICE_TYPE_SHORT_SERVICE; in testUpdateOomAdj_DoOne_FgService_ShortFgs()
609 s.foregroundServiceType = FOREGROUND_SERVICE_TYPE_SHORT_SERVICE; in testUpdateOomAdj_DoOne_FgService_ShortFgs()
1170 s.foregroundServiceType = FOREGROUND_SERVICE_TYPE_SHORT_SERVICE; in testUpdateOomAdj_DoOne_Service_ImportantFgService_ShortFgs()
1201 s.foregroundServiceType = FOREGROUND_SERVICE_TYPE_SHORT_SERVICE; in testUpdateOomAdj_DoOne_Service_BoundForegroundService_with_ShortFgs()
1494 s.foregroundServiceType = FOREGROUND_SERVICE_TYPE_SHORT_SERVICE; in testUpdateOomAdj_DoOne_Provider_FgService_ShortFgs()
/frameworks/base/core/proto/android/server/
Dactivitymanagerservice.proto446 optional int32 foregroundServiceType = 3; field
/frameworks/base/core/api/
Dcurrent.txt853 field public static final int foregroundServiceType = 16844185; // 0x1010599