A partir del 27 de marzo de 2025, te recomendamos que uses android-latest-release
en lugar de aosp-main
para compilar y contribuir a AOSP. Para obtener más información, consulta Cambios en AOSP.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
DeviceWifiResourceMetricCollector
public
class
DeviceWifiResourceMetricCollector
extends Object
implements
IResourceMetricCollector
java.lang.Object
|
↳ |
com.android.tradefed.monitoring.collector.DeviceWifiResourceMetricCollector
|
El recopilador recopila la intensidad de la señal de Wi-Fi conectada actual y las métricas de velocidad de vínculo.
Resumen
Campos
RUIDO
public static final String NOISE
public static final String RSSI
SPEED
public static final String SPEED
SSID
public static final String SSID
WIFI_METRIC_NAME
public static final String WIFI_METRIC_NAME
WIFI_SIGNAL_CMD
public static final String WIFI_SIGNAL_CMD
WIFI_SIGNAL_PATTERN
public static final Pattern WIFI_SIGNAL_PATTERN
WIFI_STATUS_CMD
public static final String WIFI_STATUS_CMD
WIFI_STATUS_PATTERN
public static final Pattern WIFI_STATUS_PATTERN
Constructores públicos
DeviceWifiResourceMetricCollector
public DeviceWifiResourceMetricCollector ()
Métodos públicos
getDeviceResourceMetrics
public getDeviceResourceMetrics (DeviceDescriptor descriptor,
IDeviceManager deviceManager)
Emite el comando adb shell y analiza las métricas de Wi-Fi.
Parámetros |
descriptor |
DeviceDescriptor : El DeviceDescriptor sobre el dispositivo de medición. |
deviceManager |
IDeviceManager : Es la instancia de IDeviceManager . |
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2025-07-27 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-07-27 (UTC)"],[],[],null,["# DeviceWifiResourceMetricCollector\n=================================\n\n\n`\npublic\n\n\nclass\nDeviceWifiResourceMetricCollector\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\nimplements\n\n`[IResourceMetricCollector](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/IResourceMetricCollector.html)`\n\n\n`\n\n|---|-----------------------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.monitoring.collector.DeviceWifiResourceMetricCollector |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe collector collects current connected wifi signal strength and link speed metrics.\n\nSummary\n-------\n\n| ### Fields ||\n|--------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` public static final String` | [NOISE](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#NOISE) |\n| ` public static final String` | [RSSI](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#RSSI) |\n| ` public static final String` | [SPEED](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#SPEED) |\n| ` public static final String` | [SSID](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#SSID) |\n| ` public static final String` | [WIFI_METRIC_NAME](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#WIFI_METRIC_NAME) |\n| ` public static final String` | [WIFI_SIGNAL_CMD](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#WIFI_SIGNAL_CMD) |\n| ` public static final Pattern` | [WIFI_SIGNAL_PATTERN](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#WIFI_SIGNAL_PATTERN) |\n| ` public static final String` | [WIFI_STATUS_CMD](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#WIFI_STATUS_CMD) |\n| ` public static final Pattern` | [WIFI_STATUS_PATTERN](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#WIFI_STATUS_PATTERN) |\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[DeviceWifiResourceMetricCollector](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#DeviceWifiResourceMetricCollector())`() ` |\n\n| ### Public methods ||\n|-----|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` ` | ` `[getDeviceResourceMetrics](../../../../../../../reference/tradefed/com/android/tradefed/monitoring/collector/DeviceWifiResourceMetricCollector.html#getDeviceResourceMetrics(com.android.tradefed.command.remote.DeviceDescriptor,%20com.android.tradefed.device.IDeviceManager))`(`[DeviceDescriptor](../../../../../../../reference/tradefed/com/android/tradefed/command/remote/DeviceDescriptor.html)` descriptor, `[IDeviceManager](../../../../../../../reference/tradefed/com/android/tradefed/device/IDeviceManager.html)` deviceManager) ` Issues adb shell command and parses the WiFi metrics. |\n\nFields\n------\n\n### NOISE\n\n```\npublic static final String NOISE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### RSSI\n\n```\npublic static final String RSSI\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### SPEED\n\n```\npublic static final String SPEED\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### SSID\n\n```\npublic static final String SSID\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### WIFI_METRIC_NAME\n\n```\npublic static final String WIFI_METRIC_NAME\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### WIFI_SIGNAL_CMD\n\n```\npublic static final String WIFI_SIGNAL_CMD\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### WIFI_SIGNAL_PATTERN\n\n```\npublic static final Pattern WIFI_SIGNAL_PATTERN\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### WIFI_STATUS_CMD\n\n```\npublic static final String WIFI_STATUS_CMD\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### WIFI_STATUS_PATTERN\n\n```\npublic static final Pattern WIFI_STATUS_PATTERN\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### DeviceWifiResourceMetricCollector\n\n```\npublic DeviceWifiResourceMetricCollector ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### getDeviceResourceMetrics\n\n```\npublic getDeviceResourceMetrics (../../../../../../../reference/tradefed/com/android/tradefed/command/remote/DeviceDescriptor.html descriptor, \n ../../../../../../../reference/tradefed/com/android/tradefed/device/IDeviceManager.html deviceManager)\n```\n\nIssues adb shell command and parses the WiFi metrics.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `descriptor` | `DeviceDescriptor`: the [DeviceDescriptor](../../../../../../../reference/tradefed/com/android/tradefed/command/remote/DeviceDescriptor.html) about the metricizing device. \u003cbr /\u003e |\n| `deviceManager` | `IDeviceManager`: the [IDeviceManager](../../../../../../../reference/tradefed/com/android/tradefed/device/IDeviceManager.html) instance. \u003cbr /\u003e |\n\n| Returns ||\n|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | a [ERROR(/Collection)](../../../../../../../) of device [Resource](../../../../../../../reference/tradefed/com/google/dualhomelab/monitoringagent/resourcemonitoring/Resource.html). \u003cbr /\u003e |"]]