Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
ConfigUtil
public
class
ConfigUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.statsd.ConfigUtil
|
Utility class for creating, interacting with, and pushing statsd configuration files.
TODO(b/118635164): Merge with device-side configuration utilities.
Summary
Public methods |
static
long
|
pushBinaryStatsConfig(ITestDevice device, File configFile)
Pushes a binary statsd configuration file to collect metrics
|
static
long
|
pushStatsConfig(ITestDevice device, eventAtomIds, logSources)
Pushes an event-based configuration file to collect atoms provided in eventAtomIds
from logSources
|
static
long
|
pushStatsConfig(ITestDevice device, eventAtomIds)
Pushes an event-based configuration file to collect atoms provided in eventAtomIds .
|
static
void
|
removeConfig(ITestDevice device, long configId)
Removes a statsd configuration file by it's id, configId .
|
Public constructors
ConfigUtil
public ConfigUtil ()
Public methods
pushBinaryStatsConfig
public static long pushBinaryStatsConfig (ITestDevice device,
File configFile)
Pushes a binary statsd configuration file to collect metrics
Parameters |
device |
ITestDevice : Test device where the binary statsd config will be pushed to |
configFile |
File : The statsd config file |
Returns |
long |
ID of the newly pushed configuration file |
pushStatsConfig
public static long pushStatsConfig (ITestDevice device,
eventAtomIds,
logSources)
Pushes an event-based configuration file to collect atoms provided in eventAtomIds
from logSources
Parameters |
device |
ITestDevice : where to push the configuration |
eventAtomIds |
: a list of event atom IDs to collect |
logSources |
: a list of log sources from where atoms can be collected |
Returns |
long |
ID of the newly pushed configuration file |
pushStatsConfig
public static long pushStatsConfig (ITestDevice device,
eventAtomIds)
Pushes an event-based configuration file to collect atoms provided in eventAtomIds
.
Parameters |
device |
ITestDevice : where to push the configuration |
eventAtomIds |
: a list of event atom IDs to collect |
Returns |
long |
ID of the newly pushed configuration file |
removeConfig
public static void removeConfig (ITestDevice device,
long configId)
Removes a statsd configuration file by it's id, configId
.
Parameters |
device |
ITestDevice : where to delete the configuration |
configId |
long : ID of the configuration to delete |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-01-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-26 UTC."],[],[]]