- secondary_text_default_material_light - Static variable in class com.facebook.battery.sample.R.color
-
- serialize(T, DataOutput) - Method in class com.facebook.battery.serializer.common.SystemMetricsSerializer
-
Serialize the complete metrics object with a tag that indicates the type of object serialized.
- serializeContents(BluetoothMetrics, DataOutput) - Method in class com.facebook.battery.serializer.bluetooth.BluetoothMetricsSerializer
-
- serializeContents(CameraMetrics, DataOutput) - Method in class com.facebook.battery.serializer.camera.CameraMetricsSerializer
-
- serializeContents(T, DataOutput) - Method in class com.facebook.battery.serializer.common.SystemMetricsSerializer
-
Must be implemented by every SystemMetricsSerializer to actually save data to output.
- serializeContents(CompositeMetrics, DataOutput) - Method in class com.facebook.battery.serializer.composite.CompositeMetricsSerializer
-
- serializeContents(CpuFrequencyMetrics, DataOutput) - Method in class com.facebook.battery.serializer.cpu.CpuFrequencyMetricsSerializer
-
- serializeContents(CpuMetrics, DataOutput) - Method in class com.facebook.battery.serializer.cpu.CpuMetricsSerializer
-
- serializeContents(DeviceBatteryMetrics, DataOutput) - Method in class com.facebook.battery.serializer.devicebattery.DeviceBatteryMetricsSerializer
-
- serializeContents(NetworkMetrics, DataOutput) - Method in class com.facebook.battery.serializer.network.NetworkMetricsSerializer
-
- serializeContents(TimeMetrics, DataOutput) - Method in class com.facebook.battery.serializer.time.TimeMetricsSerializer
-
- serializeContents(WakeLockMetrics, DataOutput) - Method in class com.facebook.battery.serializer.wakelock.WakeLockMetricsSerializer
-
- set(T) - Method in class com.facebook.battery.metrics.api.SystemMetrics
-
Sets all fields in this to values from the SystemMetrics object passed in: a _deep_ copy that
shouldn't share any values with other metrics objects.
- set(AppWakeupMetrics) - Method in class com.facebook.battery.metrics.appwakeup.AppWakeupMetrics
-
- set(AppWakeupMetrics.WakeupDetails) - Method in class com.facebook.battery.metrics.appwakeup.AppWakeupMetrics.WakeupDetails
-
- set(BluetoothMetrics) - Method in class com.facebook.battery.metrics.bluetooth.BluetoothMetrics
-
- set(CameraMetrics) - Method in class com.facebook.battery.metrics.camera.CameraMetrics
-
- set(CompositeMetrics) - Method in class com.facebook.battery.metrics.composite.CompositeMetrics
-
- set(CpuFrequencyMetrics) - Method in class com.facebook.battery.metrics.cpu.CpuFrequencyMetrics
-
- set(CpuMetrics) - Method in class com.facebook.battery.metrics.cpu.CpuMetrics
-
- set(DeviceBatteryMetrics) - Method in class com.facebook.battery.metrics.devicebattery.DeviceBatteryMetrics
-
- set(NetworkMetrics) - Method in class com.facebook.battery.metrics.network.NetworkMetrics
-
- set(RadioStateMetrics) - Method in class com.facebook.battery.metrics.network.RadioStateMetrics
-
- set(TimeMetrics) - Method in class com.facebook.battery.metrics.time.TimeMetrics
-
- set(WakeLockMetrics) - Method in class com.facebook.battery.metrics.wakelock.WakeLockMetrics
-
- setDelegate(SystemMetricsLogger.Delegate) - Static method in class com.facebook.battery.metrics.api.SystemMetricsLogger
-
Set a custom logging implementation: if there is none, then the library will simply log to
Logcat.
- setElapsedRealtime(long) - Static method in class com.facebook.battery.metrics.common.ShadowSystemClock
-
- setReferenceCounted(PowerManager.WakeLock, boolean) - Method in class com.facebook.battery.metrics.wakelock.WakeLockMetricsCollector
-
- setUidRxBytes(long) - Static method in class com.facebook.battery.metrics.network.ShadowTrafficStats
-
- setUidTxBytes(long) - Static method in class com.facebook.battery.metrics.network.ShadowTrafficStats
-
- setUp() - Method in class com.facebook.battery.metrics.appwakeup.AppWakeupMetricsCollectorTest
-
- setup() - Method in class com.facebook.battery.metrics.bluetooth.BluetoothMetricsCollectorTest
-
- setUp() - Method in class com.facebook.battery.metrics.cpu.CpuFrequencyMetricsCollectorTest
-
- setUp() - Method in class com.facebook.battery.metrics.cpu.ProcFileReaderTest
-
- setUp() - Method in class com.facebook.battery.metrics.devicebattery.DeviceBatteryMetricsCollectorTest
-
- setup() - Method in class com.facebook.battery.metrics.network.QTagUidNetworkBytesCollectorTest
-
- setUp() - Method in class com.facebook.battery.metrics.wakelock.WakeLockDetailsTest
-
- setUp() - Method in class com.facebook.battery.metrics.wakelock.WakeLockMetricsCollectorTest
-
- setUp() - Method in class com.facebook.battery.reporter.cpu.CpuFrequencyMetricsReporterTest
-
- setUptimeMillis(long) - Static method in class com.facebook.battery.metrics.common.ShadowSystemClock
-
- ShadowSystemClock - Class in com.facebook.battery.metrics.common
-
- ShadowSystemClock() - Constructor for class com.facebook.battery.metrics.common.ShadowSystemClock
-
- ShadowTrafficStats - Class in com.facebook.battery.metrics.network
-
- ShadowTrafficStats() - Constructor for class com.facebook.battery.metrics.network.ShadowTrafficStats
-
- sparseIntArrayEquals(SparseIntArray, SparseIntArray) - Static method in class com.facebook.battery.metrics.cpu.CpuFrequencyMetrics
-
Based off AbstractMap.equals(java.lang.Object)
-- with simplifications because we're guaranteed
sparse int arrays with no nullable values or casts.
- StatefulSystemMetricsCollector<R extends SystemMetrics<R>,S extends SystemMetricsCollector<R>> - Class in com.facebook.battery.metrics.api
-
A utility class that composes collectors to reduce boilerplate for collectors that are used to
collect consecutive values: the most common use case for Battery Metrics.
- StatefulSystemMetricsCollector(S) - Constructor for class com.facebook.battery.metrics.api.StatefulSystemMetricsCollector
-
Wrap the underlying collector to maintain external state: automatically takes a snapshot to
override the initial values.
- StatefulSystemMetricsCollector(S, R, R, R) - Constructor for class com.facebook.battery.metrics.api.StatefulSystemMetricsCollector
-
Wraps the underlying collector, but with custom metrics objects: useful for passing in custom
metrics objects, such as
WakeLockMetrics
.
- StatefulSystemMetricsCollectorTest - Class in com.facebook.battery.metrics.api
-
- StatefulSystemMetricsCollectorTest() - Constructor for class com.facebook.battery.metrics.api.StatefulSystemMetricsCollectorTest
-
- status_bar_notification_info_maxnum - Static variable in class com.facebook.battery.sample.R.integer
-
- status_bar_notification_info_overflow - Static variable in class com.facebook.battery.sample.R.string
-
- string() - Constructor for class com.facebook.battery.sample.R.string
-
- style() - Constructor for class com.facebook.battery.sample.R.style
-
- styleable() - Constructor for class com.facebook.battery.sample.R.styleable
-
- sum(T, T) - Method in class com.facebook.battery.metrics.api.SystemMetrics
-
Add values from the SystemMetrics object passed in and sets them on the output object,
if available.
- sum(T) - Method in class com.facebook.battery.metrics.api.SystemMetrics
-
- sum(AppWakeupMetrics, AppWakeupMetrics) - Method in class com.facebook.battery.metrics.appwakeup.AppWakeupMetrics
-
- sum(AppWakeupMetrics.WakeupDetails, AppWakeupMetrics.WakeupDetails) - Method in class com.facebook.battery.metrics.appwakeup.AppWakeupMetrics.WakeupDetails
-
- sum(BluetoothMetrics, BluetoothMetrics) - Method in class com.facebook.battery.metrics.bluetooth.BluetoothMetrics
-
- sum(CameraMetrics, CameraMetrics) - Method in class com.facebook.battery.metrics.camera.CameraMetrics
-
- sum(CompositeMetrics, CompositeMetrics) - Method in class com.facebook.battery.metrics.composite.CompositeMetrics
-
- sum(CpuFrequencyMetrics, CpuFrequencyMetrics) - Method in class com.facebook.battery.metrics.cpu.CpuFrequencyMetrics
-
- sum(CpuMetrics, CpuMetrics) - Method in class com.facebook.battery.metrics.cpu.CpuMetrics
-
- sum(DeviceBatteryMetrics, DeviceBatteryMetrics) - Method in class com.facebook.battery.metrics.devicebattery.DeviceBatteryMetrics
-
- sum(NetworkMetrics, NetworkMetrics) - Method in class com.facebook.battery.metrics.network.NetworkMetrics
-
- sum(RadioStateMetrics, RadioStateMetrics) - Method in class com.facebook.battery.metrics.network.RadioStateMetrics
-
- sum(TimeMetrics, TimeMetrics) - Method in class com.facebook.battery.metrics.time.TimeMetrics
-
- sum(WakeLockMetrics, WakeLockMetrics) - Method in class com.facebook.battery.metrics.wakelock.WakeLockMetrics
-
- SystemMetrics<T extends SystemMetrics<T>> - Class in com.facebook.battery.metrics.api
-
Represents a simple bag of values.
- SystemMetrics() - Constructor for class com.facebook.battery.metrics.api.SystemMetrics
-
- SystemMetricsCollector<T extends SystemMetrics> - Class in com.facebook.battery.metrics.api
-
Takes snapshots of a given metric.
- SystemMetricsCollector() - Constructor for class com.facebook.battery.metrics.api.SystemMetricsCollector
-
- SystemMetricsLogger - Class in com.facebook.battery.metrics.api
-
A utility class to collect logs from the battery metrics library: it's generally a good idea to
hook this up with error trace collection to sanity check against any errors in the Metrics
Collectors.
- SystemMetricsLogger() - Constructor for class com.facebook.battery.metrics.api.SystemMetricsLogger
-
- SystemMetricsLogger.Delegate - Interface in com.facebook.battery.metrics.api
-
- SystemMetricsReporter<T extends SystemMetrics<T>> - Interface in com.facebook.battery.reporter.api
-
SystemMetricsReporters attempt to standardize the values logged by different metrics objects
while being agnostic of the underlying analytics system.
- SystemMetricsReporter.Event - Interface in com.facebook.battery.reporter.api
-
- SystemMetricsSerializer<T extends SystemMetrics<T>> - Class in com.facebook.battery.serializer.common
-
These help serialize SystemMetrics objects to disk cheaply as binary; using these helps avoid
reflection and unnecessary writes.
- SystemMetricsSerializer() - Constructor for class com.facebook.battery.serializer.common.SystemMetricsSerializer
-
- SystemMetricsSerializerTest<T extends SystemMetrics<T>> - Class in com.facebook.battery.serializer.common
-
- SystemMetricsSerializerTest() - Constructor for class com.facebook.battery.serializer.common.SystemMetricsSerializerTest
-
- SystemMetricsTest<T extends SystemMetrics<T>> - Class in com.facebook.battery.metrics.common
-
Very opinionated base set of tests for SystemMetrics to reduce boilerplate at the
cost of some extra reflection.
- SystemMetricsTest() - Constructor for class com.facebook.battery.metrics.common.SystemMetricsTest
-
- systemTimeS - Variable in class com.facebook.battery.metrics.cpu.CpuMetrics
-