Added in API level 24

ServiceHealthStats

class ServiceHealthStats
kotlin.Any
   ↳ android.os.health.ServiceHealthStats

Keys for HealthStats returned from HealthStats.getStats(int) with the PackageHealthStats.STATS_SERVICES key.

Summary

Constants
static Int

Key for a measurement of the total number of times this service was started due to calls to startService() or android.

static Int

Key for a measurement of the number of times this service was started due to calls to startService(), including re-launches after crashes.

Constants

MEASUREMENT_LAUNCH_COUNT

Added in API level 24
static val MEASUREMENT_LAUNCH_COUNT: Int

Key for a measurement of the total number of times this service was started due to calls to startService() or android.content.Context#bindService including re-launches after crashes.

Value: 50002

MEASUREMENT_START_SERVICE_COUNT

Added in API level 24
static val MEASUREMENT_START_SERVICE_COUNT: Int

Key for a measurement of the number of times this service was started due to calls to startService(), including re-launches after crashes.

Value: 50001