@@ -12,16 +12,10 @@ class BackgroundExecutionMetricsProvider @Inject constructor(
1212 BackgroundExecutionMetrics (
1313 metricsProvider.currentTimeMillis,
1414 metricsProvider.batteryLevel,
15- metricsProvider.maxBatteryLevel,
16- metricsProvider.batteryHealth,
17- metricsProvider.batteryDischargePrediction,
1815 metricsProvider.batteryStatus,
1916 metricsProvider.totalInternalStorageInBytes,
20- metricsProvider.freeInternalStorageInBytes,
21- metricsProvider.freeExternalStorageInBytes.toTypedArray(),
2217 metricsProvider.totalExternalStorageInBytes.toTypedArray(),
2318 metricsProvider.totalRamInBytes,
24- metricsProvider.freeRamInBytes,
2519 metricsProvider.dataState,
2620 metricsProvider.simStates.toTypedArray(),
2721 metricsProvider.currentNetworkTransport,
@@ -34,8 +28,6 @@ class BackgroundExecutionMetricsProvider @Inject constructor(
3428 metricsProvider.simRegion,
3529 metricsProvider.appDatadir,
3630 metricsProvider.vpnState,
37- metricsProvider.appImportance,
38- metricsProvider.displayMetrics,
3931 metricsProvider.usbConnected,
4032 metricsProvider.usbPersistConfig,
4133 metricsProvider.bridgeEnabled,
@@ -47,16 +39,11 @@ class BackgroundExecutionMetricsProvider @Inject constructor(
4739 metricsProvider.autoDateTime,
4840 metricsProvider.autoTimeZone,
4941 metricsProvider.timeZoneId,
50- metricsProvider.dateFormat,
5142 metricsProvider.regionCode,
52- metricsProvider.calendarIdentifier,
5343 metricsProvider.androidMobileRxTraffic,
54- metricsProvider.simOperatorId,
55- metricsProvider.mobileNetworkId,
5644 metricsProvider.mobileRoaming,
5745 metricsProvider.mobileDataStatus,
5846 metricsProvider.mobileRadioType,
59- metricsProvider.mobileDataActivity,
6047 metricsProvider.networkLink,
6148 metricsProvider.hasNfcFeature,
6249 metricsProvider.hasNfcAdapter,
@@ -66,24 +53,20 @@ class BackgroundExecutionMetricsProvider @Inject constructor(
6653 metricsProvider.isDeviceFoldable,
6754 metricsProvider.isBackgroundRestricted,
6855 metricsProvider.latestBackgroundTimes,
69- metricsProvider.telephonyNetworkRegionList
56+ metricsProvider.internalLevel.let { " ${it.first} ;${it.second} " },
57+ metricsProvider.batteryRemainState,
58+ metricsProvider.isCharging
7059 )
7160
7261 @Suppress(" ArrayInDataClass" )
7362 @Serializable
7463 data class BackgroundExecutionMetrics (
7564 private val epochInMilliseconds : Long ,
7665 private val batteryLevel : Int ,
77- private val maxBatteryLevel : Int ,
78- private val batteryHealth : String ,
79- private val batteryDischargePrediction : Long? ,
8066 private val batteryState : String ,
8167 private val totalInternalStorage : Long ,
82- private val freeInternalStorage : Long ,
83- private val freeExternalStorage : Array <Long >,
8468 private val totalExternalStorage : Array <Long >,
8569 private val totalRamStorage : Long ,
86- private val freeRamStorage : Long ,
8770 private val dataState : String ,
8871 private val simStates : Array <String >,
8972 private val networkTransport : String ,
@@ -96,8 +79,6 @@ class BackgroundExecutionMetricsProvider @Inject constructor(
9679 private val simRegion : String ,
9780 private val appDataDir : String ,
9881 private val vpnState : Int ,
99- private val appImportance : Int ,
100- private val displayMetrics : ResourcesInfoProvider .DisplayMetricsInfo ,
10182 private val usbConnected : Int ,
10283 private val usbPersistConfig : String ,
10384 private val bridgeEnabled : Int ,
@@ -109,16 +90,11 @@ class BackgroundExecutionMetricsProvider @Inject constructor(
10990 private val autoDateTime : Int ,
11091 private val autoTimeZone : Int ,
11192 private val timeZoneId : String ,
112- private val androidDateFormat : String ,
11393 private val regionCode : String ,
114- private val androidCalendarIdentifier : String ,
11594 private val androidMobileRxTraffic : Long ,
116- private val androidSimOperatorId : String ,
117- private val androidMobileOperatorId : String ,
11895 private val androidMobileRoaming : Boolean ,
11996 private val androidMobileDataStatus : Int ,
12097 private val androidMobileRadioType : Int ,
121- private val androidMobileDataActivity : Int ,
12298 private val androidNetworkLink : ConnectivityInfoProvider .NetworkLink ? ,
12399 private val androidHasNfcFeature : Boolean ,
124100 private val androidHasNfcAdapter : Boolean ,
@@ -128,6 +104,8 @@ class BackgroundExecutionMetricsProvider @Inject constructor(
128104 private val androidFoldableDevice : Boolean? ,
129105 private val isBackgroundRestricted : Boolean ,
130106 private val bkgTimes : List <BackgroundEvent >,
131- private val telephonyNetworkRegionList : List <String >,
107+ private val internalLevel : String ,
108+ private val batteryRemainState : String ,
109+ private val isCharging : Boolean?
132110 )
133111}
0 commit comments