/packages/services/Car/service/src/com/android/car/user/ |
D | UserMetrics.java | 162 UserStartingMetric metrics = getExistingMetricsLocked(mUserStartingMetrics, toUserId); in onUserSwitchingEventLocked() local 163 if (metrics == null) return; in onUserSwitchingEventLocked() 165 metrics.switchFromUserId = fromUserId; in onUserSwitchingEventLocked() 166 metrics.switchTime = timestampMs; in onUserSwitchingEventLocked() 170 UserStartingMetric metrics = getExistingMetricsLocked(mUserStartingMetrics, userId); in onUserUnlockingEventLocked() local 171 if (metrics == null) return; in onUserUnlockingEventLocked() 173 metrics.unlockingTime = timestampMs; in onUserUnlockingEventLocked() 177 UserStartingMetric metrics = getExistingMetricsLocked(mUserStartingMetrics, userId); in onUserUnlockedEventLocked() local 178 if (metrics == null) return; in onUserUnlockedEventLocked() 180 metrics.unlockedTime = timestampMs; in onUserUnlockedEventLocked() [all …]
|
/packages/services/Car/tests/BugReportApp/libs/ |
D | opencensus-api-0.21.0.jar | META-INF/
META-INF/MANIFEST.MF
io/
io/opencensus/
io/ ... |
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/ |
D | NetworkValidationMetricsTest.java | 17 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 …]
|
D | NetworkIpProvisioningMetricsTest.java | 17 package com.android.networkstack.metrics; 20 import android.net.metrics.DhcpErrorEvent; 147 final IpProvisioningMetrics metrics = new IpProvisioningMetrics(); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency() local 149 metrics.reset(); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency() 152 metrics.setIPv4ProvisionedLatencyOnFirstTime(true); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency() 153 metrics.setIPv6ProvisionedLatencyOnFirstTime(true); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency() 154 NetworkIpProvisioningReported mStats = metrics.statsWrite(); in testIpProvisioningMetrics_VerifyConsecutiveMetricsLatency()
|
/packages/services/Car/watchdog/server/src/ |
D | UidIoStats.h | 62 IoUsage() : metrics{{0}} {}; in IoUsage() 65 metrics[READ_BYTES][FOREGROUND] = fgRdBytes; in IoUsage() 66 metrics[READ_BYTES][BACKGROUND] = bgRdBytes; in IoUsage() 67 metrics[WRITE_BYTES][FOREGROUND] = fgWrBytes; in IoUsage() 68 metrics[WRITE_BYTES][BACKGROUND] = bgWrBytes; in IoUsage() 69 metrics[FSYNC_COUNT][FOREGROUND] = fgFsync; in IoUsage() 70 metrics[FSYNC_COUNT][BACKGROUND] = bgFsync; in IoUsage() 73 return memcmp(&metrics, &usage.metrics, sizeof(metrics)) == 0; 76 return metrics[READ_BYTES][FOREGROUND] + metrics[READ_BYTES][BACKGROUND]; in sumReadBytes() 79 return metrics[WRITE_BYTES][FOREGROUND] + metrics[WRITE_BYTES][BACKGROUND]; in sumWriteBytes() [all …]
|
D | UidIoStats.cpp | 71 if (metrics[i][j]) { in isZero() 82 metrics[READ_BYTES][FOREGROUND], metrics[READ_BYTES][BACKGROUND], in toString() 83 metrics[WRITE_BYTES][FOREGROUND], metrics[WRITE_BYTES][BACKGROUND], in toString() 84 metrics[FSYNC_COUNT][FOREGROUND], metrics[FSYNC_COUNT][BACKGROUND]); in toString() 118 uidUsage.ios.metrics[READ_BYTES][FOREGROUND] += (fgRdDelta < 0) ? 0 : fgRdDelta; in collect() 119 uidUsage.ios.metrics[READ_BYTES][BACKGROUND] += (bgRdDelta < 0) ? 0 : bgRdDelta; in collect() 120 uidUsage.ios.metrics[WRITE_BYTES][FOREGROUND] += (fgWrDelta < 0) ? 0 : fgWrDelta; in collect() 121 uidUsage.ios.metrics[WRITE_BYTES][BACKGROUND] += (bgWrDelta < 0) ? 0 : bgWrDelta; in collect() 122 uidUsage.ios.metrics[FSYNC_COUNT][FOREGROUND] += (fgFsDelta < 0) ? 0 : fgFsDelta; in collect() 123 uidUsage.ios.metrics[FSYNC_COUNT][BACKGROUND] += (bgFsDelta < 0) ? 0 : bgFsDelta; in collect()
|
D | IoPerfCollection.cpp | 767 curUsage.ios.metrics[READ_BYTES][FOREGROUND]; in collectUidIoPerfDataLocked() 769 curUsage.ios.metrics[READ_BYTES][BACKGROUND]; in collectUidIoPerfDataLocked() 771 curUsage.ios.metrics[WRITE_BYTES][FOREGROUND]; in collectUidIoPerfDataLocked() 773 curUsage.ios.metrics[WRITE_BYTES][BACKGROUND]; in collectUidIoPerfDataLocked() 775 curUsage.ios.metrics[FSYNC_COUNT][FOREGROUND]; in collectUidIoPerfDataLocked() 777 curUsage.ios.metrics[FSYNC_COUNT][BACKGROUND]; in collectUidIoPerfDataLocked() 816 .bytes = {usage->ios.metrics[READ_BYTES][FOREGROUND], in collectUidIoPerfDataLocked() 817 usage->ios.metrics[READ_BYTES][BACKGROUND]}, in collectUidIoPerfDataLocked() 818 .fsync = {usage->ios.metrics[FSYNC_COUNT][FOREGROUND], in collectUidIoPerfDataLocked() 819 usage->ios.metrics[FSYNC_COUNT][BACKGROUND]}, in collectUidIoPerfDataLocked() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/metrics/jank/ |
D | RecyclerViewJankLogger.java | 17 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | DensityPreference.java | 52 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/apps/Settings/src/com/android/settings/display/ |
D | DensityPreference.java | 52 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/apps/Dialer/java/com/android/dialer/metrics/ |
D | FutureTimer.java | 17 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/ |
D | StringTexture.java | 37 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()
|
/packages/modules/DnsResolver/ |
D | ResolverEventReporter.h | 38 using ListenerSet = std::set<std::shared_ptr<aidl::android::net::metrics::INetdEventListener>>; 48 const std::shared_ptr<aidl::android::net::metrics::INetdEventListener>& listener); 56 const std::shared_ptr<aidl::android::net::metrics::INetdEventListener>& listener) 59 const std::shared_ptr<aidl::android::net::metrics::INetdEventListener>& listener)
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraDeviceReport.java | 381 DisplayMetrics metrics = new DisplayMetrics(); in printDisplayInfo() local 383 windowMgr.getDefaultDisplay().getMetrics(metrics); in printDisplayInfo() 384 Log.v(TAG, "screen width pixels = " + metrics.widthPixels); in printDisplayInfo() 385 Log.v(TAG, "screen height pixels = " + metrics.heightPixels); in printDisplayInfo() 387 windowMgr.getDefaultDisplay().getRealMetrics(metrics); in printDisplayInfo() 388 Log.v(TAG, "real screen width pixels = " + metrics.widthPixels); in printDisplayInfo() 389 Log.v(TAG, "real screen height pixels = " + metrics.heightPixels); in printDisplayInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | DefaultDisplay.java | 138 public final DisplayMetrics metrics; field in DefaultDisplay.Info 142 Point largestSize, DisplayMetrics metrics) { in Info() argument 149 this.metrics = metrics; in Info() 170 metrics = context.getResources().getDisplayMetrics(); in Info()
|
/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
D | IoStatsEntry.java | 326 Metrics metrics = (Metrics) other; in equals() local 328 return (bytesRead == metrics.bytesRead) in equals() 329 && (bytesWritten == metrics.bytesWritten) in equals() 330 && (bytesReadFromStorage == metrics.bytesReadFromStorage) in equals() 331 && (bytesWrittenToStorage == metrics.bytesWrittenToStorage) in equals() 332 && (fsyncCalls == metrics.fsyncCalls); in equals()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | GestureSandboxActivity.java | 101 DisplayMetrics metrics = new DisplayMetrics(); in disableSystemGestures() local 102 display.getMetrics(metrics); in disableSystemGestures() 104 List.of(new Rect(0, 0, metrics.widthPixels, metrics.heightPixels))); in disableSystemGestures()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | GalleryUtils.java | 80 DisplayMetrics metrics = new DisplayMetrics(); in initialize() local 83 wm.getDefaultDisplay().getMetrics(metrics); in initialize() 84 sPixelDensity = metrics.density; in initialize() 88 initializeThumbnailSizes(metrics, r); in initialize() 91 private static void initializeThumbnailSizes(DisplayMetrics metrics, Resources r) { in initializeThumbnailSizes() argument 92 int maxPixels = Math.max(metrics.heightPixels, metrics.widthPixels); in initializeThumbnailSizes()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 169 Math.min(info.smallestSize.x, info.smallestSize.y), info.metrics); in DeviceProfile() 220 hotseatBarSizePx = ResourceUtils.pxFromDp(inv.iconSize, mInfo.metrics) in DeviceProfile() 350 iconSizePx = Math.max(1, (int) (ResourceUtils.pxFromDp(invIconSizeDp, mInfo.metrics) in updateIconSize() 352 iconTextSizePx = (int) (Utilities.pxFromSp(inv.iconTextSize, mInfo.metrics) * scale); in updateIconSize() 370 allAppsIconSizePx = ResourceUtils.pxFromDp(inv.allAppsIconSize, mInfo.metrics); in updateIconSize() 371 allAppsIconTextSizePx = Utilities.pxFromSp(inv.allAppsIconTextSize, mInfo.metrics); in updateIconSize() 442 folderChildIconSizePx = (int) (ResourceUtils.pxFromDp(inv.iconSize, mInfo.metrics) * scale); in updateFolderCellSize() 644 config.densityDpi = info.metrics.densityDpi; in getContext()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 81 DisplayMetrics metrics) { in LayoutSpec() argument 82 mCellWidth = dpToPx(w, metrics); in LayoutSpec() 83 mCellHeight = dpToPx(h, metrics); in LayoutSpec() 84 mCellSpacing = dpToPx(intercellSpacing, metrics); in LayoutSpec() 85 mLeftEdgePadding = dpToPx(leftEdgePadding, metrics); in LayoutSpec() 96 DisplayMetrics metrics = new DisplayMetrics(); in initCellSize() local 97 a.getWindowManager().getDefaultDisplay().getMetrics(metrics); in initCellSize() 99 new LayoutSpec(67, 67, 8, 0, metrics), in initCellSize() 100 new LayoutSpec(92, 92, 8, 0, metrics), in initCellSize() 105 private static int dpToPx(int dp, DisplayMetrics metrics) { in dpToPx() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpBitmapFetch.java | 108 DisplayMetrics metrics = new DisplayMetrics(); in configureForContext() local 110 wm.getDefaultDisplay().getMetrics(metrics); in configureForContext() 111 sMaxSize = Math.max(metrics.heightPixels, metrics.widthPixels); in configureForContext()
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | PasswordHelper.java | 140 PasswordMetrics metrics = PasswordMetrics.computeForPassword(pin); in validatePin() local 143 if (metrics.length < MIN_LENGTH) { in validatePin() 147 if (metrics.letters > 0 || metrics.symbols > 0) { in validatePin()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorPickerDialog.java | 48 DisplayMetrics metrics = new DisplayMetrics(); in ColorPickerDialog() local 50 wm.getDefaultDisplay().getMetrics(metrics); in ColorPickerDialog() 51 int height = metrics.heightPixels*8/10; in ColorPickerDialog() 52 int width = metrics.widthPixels*8/10; in ColorPickerDialog()
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpReachabilityMonitor.java | 19 import static android.net.metrics.IpReachabilityEvent.NUD_FAILED; 20 import static android.net.metrics.IpReachabilityEvent.NUD_FAILED_ORGANIC; 21 import static android.net.metrics.IpReachabilityEvent.PROVISIONING_LOST; 22 import static android.net.metrics.IpReachabilityEvent.PROVISIONING_LOST_ORGANIC; 31 import android.net.metrics.IpConnectivityLog; 32 import android.net.metrics.IpReachabilityEvent;
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | stats.proto | 20 package com.android.networkstack.metrics; 77 // (defined in android.net.metrics.DhcpErrorEvent) 87 * src/com/android/networkstack/metrics/NetworkIpProvisioningMetrics.java 127 // The DHCP error code is defined in android.net.metrics.DhcpErrorEvent 166 * This will be defined as count metrics on server side
|