Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/packages/services/Car/cpp/watchdog/server/src/
DUidIoStatsCollector.cpp51 !ParseInt(fields[3], &stats->metrics[READ_BYTES][FOREGROUND]) || in parseUidIoStats()
52 !ParseInt(fields[4], &stats->metrics[WRITE_BYTES][FOREGROUND]) || in parseUidIoStats()
53 !ParseInt(fields[7], &stats->metrics[READ_BYTES][BACKGROUND]) || in parseUidIoStats()
54 !ParseInt(fields[8], &stats->metrics[WRITE_BYTES][BACKGROUND]) || in parseUidIoStats()
55 !ParseInt(fields[9], &stats->metrics[FSYNC_COUNT][FOREGROUND]) || in parseUidIoStats()
56 !ParseInt(fields[10], &stats->metrics[FSYNC_COUNT][BACKGROUND])) { in parseUidIoStats()
67 metrics[READ_BYTES][FOREGROUND] = in operator -=()
68 diff(metrics[READ_BYTES][FOREGROUND], rhs.metrics[READ_BYTES][FOREGROUND]); in operator -=()
69 metrics[READ_BYTES][BACKGROUND] = in operator -=()
70 diff(metrics[READ_BYTES][BACKGROUND], rhs.metrics[READ_BYTES][BACKGROUND]); in operator -=()
[all …]
DUidIoStatsCollector.h52 UidIoStats() : metrics{{0}} {}; in UidIoStats()
55 metrics[READ_BYTES][FOREGROUND] = fgRdBytes; in UidIoStats()
56 metrics[READ_BYTES][BACKGROUND] = bgRdBytes; in UidIoStats()
57 metrics[WRITE_BYTES][FOREGROUND] = fgWrBytes; in UidIoStats()
58 metrics[WRITE_BYTES][BACKGROUND] = bgWrBytes; in UidIoStats()
59 metrics[FSYNC_COUNT][FOREGROUND] = fgFsync; in UidIoStats()
60 metrics[FSYNC_COUNT][BACKGROUND] = bgFsync; in UidIoStats()
64 return memcmp(&metrics, &stats.metrics, sizeof(metrics)) == 0;
68 std::tuple(metrics[READ_BYTES][FOREGROUND], metrics[READ_BYTES][BACKGROUND]); in sumReadBytes()
75 std::tuple(metrics[WRITE_BYTES][FOREGROUND], metrics[WRITE_BYTES][BACKGROUND]); in sumWriteBytes()
[all …]
/packages/modules/StatsD/statsd/tests/e2e/
DPartialBucket_e2e_test.cpp115 ASSERT_EQ(0, report.metrics(0).count_metrics().data_size()); in TEST_F()
133 ASSERT_EQ(0, report.metrics(0).count_metrics().data_size()); in TEST_F()
154 ASSERT_EQ(1, report.metrics(0).count_metrics().data_size()); in TEST_F()
155 ASSERT_EQ(1, report.metrics(0).count_metrics().data(0).bucket_info_size()); in TEST_F()
156 EXPECT_TRUE(report.metrics(0) in TEST_F()
161 EXPECT_TRUE(report.metrics(0) in TEST_F()
166 EXPECT_EQ(1, report.metrics(0).count_metrics().data(0).bucket_info(0).count()); in TEST_F()
187 ASSERT_EQ(1, report.metrics(0).count_metrics().data_size()); in TEST_F()
188 ASSERT_EQ(1, report.metrics(0).count_metrics().data(0).bucket_info_size()); in TEST_F()
189 EXPECT_TRUE(report.metrics(0) in TEST_F()
[all …]
DWakelockDuration_e2e_test.cpp139 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
141 auto data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST()
146 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data(0).bucket_info_size(), 1); in TEST()
147 data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST()
174 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
176 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data(0).bucket_info_size(), 2); in TEST()
177 auto data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST()
226 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
227 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data(0).bucket_info_size(), 6); in TEST()
228 auto data = reports.reports(0).metrics(0).duration_metrics().data(0); in TEST()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkValidationMetricsTest.java17 package com.android.networkstack.metrics;
33 import android.net.metrics.ValidationProbeEvent;
108 final NetworkValidationMetrics metrics = new NetworkValidationMetrics(); in testNetworkValidationMetrics_VerifyTransportTypeToEnum() local
111 assertEquals(TransportType.TT_WIFI, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
113 assertEquals(TransportType.TT_WIFI_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
115 assertEquals(TransportType.TT_WIFI_CELLULAR_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
119 assertEquals(TransportType.TT_CELLULAR, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
121 assertEquals(TransportType.TT_CELLULAR_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
125 assertEquals(TransportType.TT_BLUETOOTH, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
127 assertEquals(TransportType.TT_BLUETOOTH_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
[all …]
DNetworkIpProvisioningMetricsTest.java17 package com.android.networkstack.metrics;
24 import android.net.metrics.DhcpErrorEvent;
150 final IpProvisioningMetrics metrics = new IpProvisioningMetrics(); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency() local
152 metrics.reset(); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency()
155 metrics.setIPv4ProvisionedLatencyOnFirstTime(true); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency()
156 metrics.setIPv6ProvisionedLatencyOnFirstTime(true); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency()
157 NetworkIpProvisioningReported mStats = metrics.statsWrite(); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency()
167 final IpProvisioningMetrics metrics = new IpProvisioningMetrics(); in testIpProvisioningMetrics_setIpv6ProvisioningMode() local
168 metrics.reset(); in testIpProvisioningMetrics_setIpv6ProvisioningMode()
170 metrics.setIpv6ProvisioningMode(Ipv6ProvisioningMode.IPV6_PROV_MODE_SLAAC); in testIpProvisioningMetrics_setIpv6ProvisioningMode()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/connectivity/
Dbluetooth_latency_test.py68 self.metrics = (
71 self.metrics.add_primary_device_metrics(self.phone)
72 self.metrics.add_connected_device_metrics(self.derived_bt_device)
89 metrics = {}
95 metrics['data_transfer_protocol'] = self.data_transfer_type
96 metrics['data_latency_min_millis'] = int(min(latency_list))
97 metrics['data_latency_max_millis'] = int(max(latency_list))
98 metrics['data_latency_avg_millis'] = int(
100 logging.info('Latency: %s', metrics)
102 asserts.assert_true(metrics['data_latency_min_millis'] > 0,
[all …]
Dbluetooth_throughput_test.py54 metrics = {}
62 metrics['data_transfer_protocol'] = self.data_transfer_type
63 metrics['data_packet_size'] = buffer_size
64 metrics['data_throughput_min_bytes_per_second'] = int(
66 metrics['data_throughput_max_bytes_per_second'] = int(
68 metrics['data_throughput_avg_bytes_per_second'] = int(
71 logging.info('Throughput at large buffer: %s', metrics)
73 asserts.assert_true(metrics['data_throughput_min_bytes_per_second'] > 0,
76 self.metrics.add_test_metrics(metrics)
77 for metric in metrics:
[all …]
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/
DServerInterface.java33 import com.android.rkpdapp.metrics.ProvisioningAttempt;
178 ProvisioningAttempt metrics) throws RkpdException, InterruptedException { in requestSignedCertificates() argument
180 connectAndGetData(metrics, generateSignCertsUrl(challenge), in requestSignedCertificates()
184 metrics.setStatus(ProvisioningAttempt.Status.INTERNAL_ERROR); in requestSignedCertificates()
189 metrics.setCertChainLength(0); in requestSignedCertificates()
190 metrics.setRootCertFingerprint(""); in requestSignedCertificates()
194 metrics.setCertChainLength(certs.length); in requestSignedCertificates()
197 metrics.setRootCertFingerprint(Base64.encodeToString(pubKeyDigest, Base64.DEFAULT)); in requestSignedCertificates()
239 public GeekResponse fetchGeek(ProvisioningAttempt metrics) in fetchGeek() argument
253 connectAndGetData(metrics, generateFetchGeekUrl(), input, Operation.FETCH_GEEK); in fetchGeek()
[all …]
DSystemInterface.java31 import com.android.rkpdapp.metrics.ProvisioningAttempt;
83 public RkpKey generateKey(ProvisioningAttempt metrics) throws CborException, RkpdException { in generateKey() argument
85 try (StopWatch ignored = metrics.startBinderWait()) { in generateKey()
89 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_KEYPAIR_FAILED); in generateKey()
93 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_KEYPAIR_FAILED); in generateKey()
97 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_KEYPAIR_FAILED); in generateKey()
109 public byte[] generateCsr(ProvisioningAttempt metrics, GeekResponse geekResponse, in generateCsr() argument
119 try (StopWatch ignored = metrics.startBinderWait()) { in generateCsr()
144 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_CSR_FAILED); in generateCsr()
155 metrics.setStatus(ProvisioningAttempt.Status.GENERATE_CSR_FAILED); in generateCsr()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/
DNetworkNsdReportedMetricsTest.kt17 package com.android.metrics
52 val metrics = NetworkNsdReportedMetrics(clientId, deps) in testReportServiceRegistrationSucceeded() constant
53 metrics.reportServiceRegistrationSucceeded(true /* isLegacy */, transactionId, durationMs) in testReportServiceRegistrationSucceeded()
72 val metrics = NetworkNsdReportedMetrics(clientId, deps) in testReportServiceRegistrationFailed() constant
73 metrics.reportServiceRegistrationFailed(false /* isLegacy */, transactionId, durationMs) in testReportServiceRegistrationFailed()
96 val metrics = NetworkNsdReportedMetrics(clientId, deps) in testReportServiceUnregistration() constant
97 metrics.reportServiceUnregistration(true /* isLegacy */, transactionId, durationMs, in testReportServiceUnregistration()
121 val metrics = NetworkNsdReportedMetrics(clientId, deps) in testReportServiceDiscoveryStarted() constant
122 metrics.reportServiceDiscoveryStarted(true /* isLegacy */, transactionId) in testReportServiceDiscoveryStarted()
140 val metrics = NetworkNsdReportedMetrics(clientId, deps) in testReportServiceDiscoveryFailed() constant
[all …]
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/
DProvisioner.java31 import com.android.rkpdapp.metrics.ProvisioningAttempt;
73 public boolean isProvisioningNeeded(ProvisioningAttempt metrics, String serviceName) { in isProvisioningNeeded() argument
74 return calculateKeysRequired(metrics, serviceName) > 0; in isProvisioningNeeded()
80 public void provisionKeys(ProvisioningAttempt metrics, SystemInterface systemInterface, in provisionKeys() argument
84 int keysRequired = calculateKeysRequired(metrics, systemInterface.getServiceName()); in provisionKeys()
87 metrics.setStatus(ProvisioningAttempt.Status.NO_PROVISIONING_NEEDED); in provisionKeys()
91 List<RkpKey> keysGenerated = generateKeys(metrics, keysRequired, systemInterface); in provisionKeys()
93 List<byte[]> certChains = fetchCertificates(metrics, keysGenerated, systemInterface, in provisionKeys()
100 metrics.setStatus(ProvisioningAttempt.Status.KEYS_SUCCESSFULLY_PROVISIONED); in provisionKeys()
102 metrics.setStatus(ProvisioningAttempt.Status.INTERRUPTED); in provisionKeys()
[all …]
/packages/services/Car/tests/BugReportApp/libs/
Dopencensus-api-0.21.0.jarMETA-INF/ META-INF/MANIFEST.MF io/ io/opencensus/ io/ ...
/packages/apps/Car/DebuggingRestrictionController/libs/
Dopencensus-api-0.24.0.jarMETA-INF/ META-INF/MANIFEST.MF io/ io/opencensus/ io/ ...
/packages/apps/Dialer/java/com/android/dialer/metrics/jank/
DRecyclerViewJankLogger.java17 package com.android.dialer.metrics.jank;
21 import com.android.dialer.metrics.Metrics;
26 private final Metrics metrics; field in RecyclerViewJankLogger
31 public RecyclerViewJankLogger(Metrics metrics, String eventName) { in RecyclerViewJankLogger() argument
32 this.metrics = metrics; in RecyclerViewJankLogger()
40 metrics.startJankRecorder(eventName); in onScrollStateChanged()
43 metrics.stopJankRecorder(eventName); in onScrollStateChanged()
/packages/modules/StatsD/statsd/
DAndroid.bp92 "src/metrics/CountMetricProducer.cpp",
93 "src/metrics/duration_helper/MaxDurationTracker.cpp",
94 "src/metrics/duration_helper/OringDurationTracker.cpp",
95 "src/metrics/DurationMetricProducer.cpp",
96 "src/metrics/EventMetricProducer.cpp",
97 "src/metrics/RestrictedEventMetricProducer.cpp",
98 "src/metrics/GaugeMetricProducer.cpp",
99 "src/metrics/KllMetricProducer.cpp",
100 "src/metrics/MetricProducer.cpp",
101 "src/metrics/MetricsManager.cpp",
[all …]
/packages/modules/Bluetooth/system/common/
Dmetrics_unittest.cc39 using bluetooth::metrics::BluetoothMetricsProto::A2DPSession;
40 using bluetooth::metrics::BluetoothMetricsProto::A2dpSourceCodec;
41 using bluetooth::metrics::BluetoothMetricsProto::BluetoothLog;
42 using bluetooth::metrics::BluetoothMetricsProto::BluetoothSession;
43 using bluetooth::metrics::BluetoothMetricsProto::
45 using bluetooth::metrics::BluetoothMetricsProto::
47 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo;
48 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo_DeviceType;
49 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileConnectionStats;
50 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileType;
[all …]
Dmetrics.cc70 using bluetooth::metrics::BluetoothMetricsProto::A2DPSession;
71 using bluetooth::metrics::BluetoothMetricsProto::A2dpSourceCodec;
72 using bluetooth::metrics::BluetoothMetricsProto::BluetoothLog;
73 using bluetooth::metrics::BluetoothMetricsProto::BluetoothSession;
74 using bluetooth::metrics::BluetoothMetricsProto::
76 using bluetooth::metrics::BluetoothMetricsProto::
78 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo;
79 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo_DeviceType;
80 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileConnectionStats;
81 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileType;
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DIpConnectivityEventBuilderTest.java24 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.BLUETOOTH;
25 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.CELLULAR;
26 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.IpConnectivityLog;
27 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.MULTIPLE;
28 import static com.android.server.connectivity.metrics.nano.IpConnectivityLogClass.WIFI;
33 import android.net.metrics.ApfProgramEvent;
34 import android.net.metrics.ApfStats;
35 import android.net.metrics.DefaultNetworkEvent;
36 import android.net.metrics.DhcpClientEvent;
37 import android.net.metrics.DhcpErrorEvent;
[all …]
/packages/modules/Bluetooth/system/gd/rust/topshim/metrics/
Dmetrics_shim.cc30 metrics::LogMetricsAdapterStateChanged(state); in adapter_state_changed()
34 metrics::LogMetricsBondCreateAttempt(&addr, device_type); in bond_create_attempt()
39 metrics::LogMetricsBondStateChanged(&addr, device_type, status, bond_state, fail_reason); in bond_state_changed()
51 metrics::LogMetricsDeviceInfoReport( in device_info_report()
56 metrics::LogMetricsProfileConnectionStateChanged(&addr, profile, status, state); in profile_connection_state_changed()
60 metrics::LogMetricsAclConnectAttempt(&addr, acl_state); in acl_connect_attempt()
65metrics::LogMetricsAclConnectionStateChanged(&addr, transport, status, acl_state, direction, hci_r… in acl_connection_state_changed()
69 metrics::LogMetricsSuspendIdState(state); in suspend_complete_state()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DDisplayUtils.java69 DisplayMetrics metrics = new DisplayMetrics(); in createDisplayWithDefaultDisplayMetricsAndWait() local
70 displayManager.getDisplay(DEFAULT_DISPLAY).getRealMetrics(metrics); in createDisplayWithDefaultDisplayMetricsAndWait()
72 mReader = ImageReader.newInstance(metrics.widthPixels, metrics.heightPixels, in createDisplayWithDefaultDisplayMetricsAndWait()
99 metrics.widthPixels, metrics.heightPixels, (int) metrics.xdpi, in createDisplayWithDefaultDisplayMetricsAndWait()
/packages/apps/Settings/src/com/android/settings/display/
DDensityPreference.java52 final DisplayMetrics metrics = res.getDisplayMetrics(); in getCurrentSwDp() local
53 final float density = metrics.density; in getCurrentSwDp()
54 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in getCurrentSwDp()
76 final DisplayMetrics metrics = res.getDisplayMetrics(); in onDialogClosed() local
78 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in onDialogClosed()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/
DRegistrationBinder.java36 import com.android.rkpdapp.metrics.ProvisioningAttempt;
37 import com.android.rkpdapp.metrics.RkpdClientOperation;
115 try (ProvisioningAttempt metrics = ProvisioningAttempt.createOutOfKeysAttemptMetrics( in getKeyWorker() argument
117 fetchGeekAndProvisionKeys(metrics); in getKeyWorker()
142 private void fetchGeekAndProvisionKeys(ProvisioningAttempt metrics) in fetchGeekAndProvisionKeys() argument
144 GeekResponse response = mRkpServer.fetchGeekAndUpdate(metrics); in fetchGeekAndProvisionKeys()
147 metrics.setEnablement(ProvisioningAttempt.Enablement.DISABLED); in fetchGeekAndProvisionKeys()
148 metrics.setStatus(ProvisioningAttempt.Status.PROVISIONING_DISABLED); in fetchGeekAndProvisionKeys()
151 mProvisioner.provisionKeys(metrics, mSystemInterface, response); in fetchGeekAndProvisionKeys()
178 try (ProvisioningAttempt metrics = ProvisioningAttempt.createKeyConsumedAttemptMetrics( in provisionKeysOnKeyConsumed() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/metrics/
DFutureTimer.java17 package com.android.dialer.metrics;
39 private final Metrics metrics; field in FutureTimer
62 Metrics metrics, @LightweightExecutor ListeningExecutorService lightweightExecutorService) { in FutureTimer() argument
63 this.metrics = metrics; in FutureTimer()
104 Integer timerId = metrics.startUnnamedTimer(); in applyTiming()
112 metrics.stopUnnamedTimer(timerId, eventName); in applyTiming()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DStringTexture.java37 FontMetricsInt metrics, int width, int height) { in StringTexture() argument
41 mMetrics = metrics; in StringTexture()
73 FontMetricsInt metrics = paint.getFontMetricsInt(); in newInstance() local
75 int height = metrics.bottom - metrics.top; in newInstance()
79 return new StringTexture(text, paint, metrics, width, height); in newInstance()

12345678910>>...16