/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/ |
D | NetworkIpProvisioningMetricsTest.java | 47 final IpProvisioningMetrics mMetrics = new IpProvisioningMetrics(); in testIpProvisioningMetrics_setHostnameTransinfo() local 49 mMetrics.reset(); in testIpProvisioningMetrics_setHostnameTransinfo() 50 mMetrics.setHostnameTransinfo(false /* isOptionEnabled */, false /* transSuccess */); in testIpProvisioningMetrics_setHostnameTransinfo() 51 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo() 54 mMetrics.reset(); in testIpProvisioningMetrics_setHostnameTransinfo() 55 mMetrics.setHostnameTransinfo(true /* isOptionEnabled */, false /* transSuccess */); in testIpProvisioningMetrics_setHostnameTransinfo() 56 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo() 59 mMetrics.reset(); in testIpProvisioningMetrics_setHostnameTransinfo() 60 mMetrics.setHostnameTransinfo(true /* isOptionEnabled */, true /* transSuccess */); in testIpProvisioningMetrics_setHostnameTransinfo() 61 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo() [all …]
|
D | IpClientRaInfoMetricsTest.java | 36 final IpClientRaInfoMetrics mMetrics = new IpClientRaInfoMetrics(); in testIpClientRaInfoMetrics_VerifyCollectMetrics() local 37 mMetrics.setMaxNumberOfDistinctRas(12); in testIpClientRaInfoMetrics_VerifyCollectMetrics() 38 mMetrics.setNumberOfZeroLifetimeRas(34); in testIpClientRaInfoMetrics_VerifyCollectMetrics() 39 mMetrics.setNumberOfParsingErrorRas(56); in testIpClientRaInfoMetrics_VerifyCollectMetrics() 40 mMetrics.setLowestRouterLifetimeSeconds(78); in testIpClientRaInfoMetrics_VerifyCollectMetrics() 41 mMetrics.setLowestPioValidLifetimeSeconds(123); in testIpClientRaInfoMetrics_VerifyCollectMetrics() 42 mMetrics.setLowestRioRouteLifetimeSeconds(456); in testIpClientRaInfoMetrics_VerifyCollectMetrics() 43 mMetrics.setLowestRdnssLifetimeSeconds(789); in testIpClientRaInfoMetrics_VerifyCollectMetrics() 44 mStats = mMetrics.statsWrite(); in testIpClientRaInfoMetrics_VerifyCollectMetrics()
|
D | NetworkIpReachabilityMonitorMetricsTest.java | 40 final IpReachabilityMonitorMetrics mMetrics = new IpReachabilityMonitorMetrics(); in testIpReachabilityMonitorMetrics_setIpType() local 43 mMetrics.setNudIpType(ip); in testIpReachabilityMonitorMetrics_setIpType() 44 mStats = mMetrics.statsWrite(); in testIpReachabilityMonitorMetrics_setIpType() 52 final IpReachabilityMonitorMetrics mMetrics = new IpReachabilityMonitorMetrics(); in testIpReachabilityMonitorMetrics_setNeighborType() local 55 mMetrics.setNudNeighborType(neighborType); in testIpReachabilityMonitorMetrics_setNeighborType() 56 mStats = mMetrics.statsWrite(); in testIpReachabilityMonitorMetrics_setNeighborType() 64 final IpReachabilityMonitorMetrics mMetrics = new IpReachabilityMonitorMetrics(); in testIpReachabilityMonitorMetrics_setEventType() local 67 mMetrics.setNudEventType(type); in testIpReachabilityMonitorMetrics_setEventType() 68 mStats = mMetrics.statsWrite(); in testIpReachabilityMonitorMetrics_setEventType()
|
D | ApfSessionInfoMetricsTest.java | 39 final ApfSessionInfoMetrics mMetrics = new ApfSessionInfoMetrics(); in testApfSessionInfoMetrics_VerifyCollectMetrics() local 40 mMetrics.setVersion(4); in testApfSessionInfoMetrics_VerifyCollectMetrics() 41 mMetrics.setMemorySize(4096); in testApfSessionInfoMetrics_VerifyCollectMetrics() 42 mMetrics.setApfSessionDurationSeconds(123); in testApfSessionInfoMetrics_VerifyCollectMetrics() 43 mMetrics.setNumOfTimesApfProgramUpdated(456); in testApfSessionInfoMetrics_VerifyCollectMetrics() 44 mMetrics.setMaxProgramSize(1234); in testApfSessionInfoMetrics_VerifyCollectMetrics() 45 mMetrics.addApfCounter(Counter.TOTAL_PACKETS, 5678); in testApfSessionInfoMetrics_VerifyCollectMetrics() 46 mMetrics.addApfCounter(Counter.PASSED_ARP_UNICAST_REPLY, 1010); in testApfSessionInfoMetrics_VerifyCollectMetrics() 47 mMetrics.addApfCounter(Counter.DROPPED_MDNS, 333); in testApfSessionInfoMetrics_VerifyCollectMetrics() 48 mStats = mMetrics.statsWrite(); in testApfSessionInfoMetrics_VerifyCollectMetrics() [all …]
|
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/ |
D | SandboxesStorageMetrics.java | 37 public final SparseArray<List<SandboxMetrics>> mMetrics = new SparseArray<>(); field in SandboxesStorageMetrics 43 sandboxMetrics = mMetrics.get(uid); in log() 46 mMetrics.append(uid, sandboxMetrics); in log() 75 final int metricsSize = mMetrics.size(); in consumeStorageStatsEvents() 77 final List<SandboxMetrics> sandboxMetrics = mMetrics.valueAt(i); in consumeStorageStatsEvents() 82 /*shared=*/ true, sandboxMetric.mSharedKb, mMetrics.keyAt(i))); in consumeStorageStatsEvents() 87 mMetrics.keyAt(i))); in consumeStorageStatsEvents() 90 mMetrics.clear(); in consumeStorageStatsEvents()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/audio/ |
D | AudioReader.java | 39 private final AudioMetrics mMetrics; field in AudioReader 55 this.mMetrics = metrics; in AudioReader() 100 mMetrics.startedReading(); in run() 116 mMetrics.receivedValidAudio(); in run() 117 mMetrics.setEmptyAudioDurationMs(samplesToMs(currentSample)); in run()
|
D | AudioDebug.java | 42 private final AudioMetrics mMetrics; field in AudioDebug 69 mMetrics = new AudioMetrics(metricsCallback); in AudioDebug() 78 mMetrics.start(); in startRecording() 80 mAudioReader = new AudioReader(audioSource, mMetrics); in startRecording()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/system/development/audio/ |
D | AudioReader.java | 40 private final AudioMetrics mMetrics; field in AudioReader 56 this.mMetrics = metrics; in AudioReader() 99 mMetrics.startedReading(); in run() 115 mMetrics.receivedValidAudio(); in run() 116 mMetrics.setEmptyAudioDurationMs(samplesToMs(currentSample)); in run()
|
D | AudioDebug.java | 42 private final AudioMetrics mMetrics; field in AudioDebug 69 mMetrics = new AudioMetrics(metricsCallback); in AudioDebug() 78 mMetrics.start(); in startRecording() 80 mAudioReader = new AudioReader(mMetrics); in startRecording()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenOnboardingActivity.java | 57 private MetricsLogger mMetrics; field in ZenOnboardingActivity 104 mMetrics.visible(SettingsEnums.SETTINGS_ZEN_ONBOARDING); in setupUI() 114 mMetrics = ml; in setMetricsLogger() 118 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_SETTINGS); in launchSettings() 139 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_OK); in save() 141 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_KEEP_CURRENT_SETTINGS); in save()
|
/packages/modules/Virtualization/compos/service/java/com/android/server/compos/ |
D | IsolatedCompilationJobService.java | 149 private final IsolatedCompilationMetrics mMetrics; field in IsolatedCompilationJobService.CompilationJob 159 mMetrics = requireNonNull(metrics); in CompilationJob() 173 mMetrics.onCompilationStarted(); in start() 207 mMetrics.onCompilationJobCanceled(mParams.getStopReason()); in cancelTask() 252 mMetrics.onCompilationEnded(result); in onCompletion()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 97 private final DisplayMetrics mMetrics; field in DeviceProfile 365 mMetrics = res.getDisplayMetrics(); in DeviceProfile() 391 int transientTaskbarIconSize = pxFromDp(inv.transientTaskbarIconSize[mTypeIndex], mMetrics); in DeviceProfile() 411 mMetrics); in DeviceProfile() 493 pxFromDp(inv.allAppsBorderSpaces[mTypeIndex].x, mMetrics), in DeviceProfile() 494 pxFromDp(inv.allAppsBorderSpaces[mTypeIndex].y, mMetrics)); in DeviceProfile() 589 hotseatQsbSpace = pxFromDp(inv.hotseatQsbSpace[mTypeIndex], mMetrics); in DeviceProfile() 590 hotseatBarBottomSpace = pxFromDp(inv.hotseatBarBottomSpace[mTypeIndex], mMetrics); in DeviceProfile() 626 updateHotseatSizes(pxFromDp(inv.iconSize[mTypeIndex], mMetrics)); in DeviceProfile() 845 ? pxFromDp(idp.horizontalMargin[mTypeIndex], mMetrics) in getHorizontalMarginPx() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/credentials/ |
D | ImageUtils.java | 44 private final DisplayMetrics mMetrics; field in ImageUtils.IconResizer 52 mMetrics = metrics; in IconResizer() 85 bitmapDrawable.setTargetDensity(mMetrics); in createIconThumbnail() 151 icon.setTargetDensity(mMetrics); in createBitmapDrawable()
|
/packages/apps/Settings/src/com/android/settings/deletionhelper/ |
D | AutomaticStorageManagerSwitchBarController.java | 42 private MetricsFeatureProvider mMetrics; field in AutomaticStorageManagerSwitchBarController 54 mMetrics = Preconditions.checkNotNull(metrics); in AutomaticStorageManagerSwitchBarController() 68 mMetrics.action(mContext, SettingsEnums.ACTION_TOGGLE_STORAGE_MANAGER, isChecked); in onCheckedChanged()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | StringTexture.java | 34 private final FontMetricsInt mMetrics; field in StringTexture 41 mMetrics = metrics; in StringTexture() 84 canvas.translate(0, -mMetrics.ascent); in onDraw()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 199 @Mock NetworkNsdReportedMetrics mMetrics; field in NsdServiceTest 249 doReturn(mMetrics).when(mDeps).makeNetworkNsdReportedMetrics(anyInt()); in setUp() 444 verify(mMetrics).reportServiceDiscoveryStarted(true /* isLegacy */, discId); in testDiscoverOnTetheringDownstream() 513 verify(mMetrics).reportServiceResolved(true /* isLegacy */, getAddrId, 10L /* durationMs */, in testDiscoverOnTetheringDownstream() 592 verify(mMetrics).reportServiceDiscoveryStarted(true /* isLegacy */, discId); in testDiscoverOnBlackholeNetwork() 643 verify(mMetrics).reportServiceRegistrationSucceeded( in testServiceRegistrationSuccessfulAndFailed() 659 verify(mMetrics).reportServiceRegistrationFailed( in testServiceRegistrationSuccessfulAndFailed() 677 verify(mMetrics).reportServiceDiscoveryStarted(true /* isLegacy */, discId); in testServiceDiscoveryFailed() 692 verify(mMetrics).reportServiceDiscoveryFailed( in testServiceDiscoveryFailed() 728 verify(mMetrics).reportServiceResolutionFailed( in testServiceResolutionFailed() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 336 private final DisplayMetrics mMetrics; field in ActivityPicker.IconResizer 344 mMetrics = metrics; in IconResizer() 379 bitmapDrawable.setTargetDensity(mMetrics); in createIconThumbnail() 413 ((BitmapDrawable) icon).setTargetDensity(mMetrics); in createIconThumbnail() 428 ((BitmapDrawable) icon).setTargetDensity(mMetrics); in createIconThumbnail()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpClient.java | 338 private final IpProvisioningMetrics mMetrics; field in DhcpClient 419 private final IpProvisioningMetrics mMetrics; field in DhcpClient.Dependencies 423 mMetrics = metrics; in Dependencies() 453 return mMetrics; in getIpProvisioningMetrics() 508 mMetrics = deps.getIpProvisioningMetrics(); in DhcpClient() 548 mMetrics.setHostnameTransinfo(deps.getSendHostnameOverlaySetting(context), in DhcpClient() 598 mMetrics.setDhcpEnabledFeature(DhcpFeature.DF_INITREBOOT); in recordMetricEnabledFeatures() 599 if (isDhcpRapidCommitEnabled()) mMetrics.setDhcpEnabledFeature(DhcpFeature.DF_RAPIDCOMMIT); in recordMetricEnabledFeatures() 600 if (isDhcpIpConflictDetectEnabled()) mMetrics.setDhcpEnabledFeature(DhcpFeature.DF_DAD); in recordMetricEnabledFeatures() 602 mMetrics.setDhcpEnabledFeature(DhcpFeature.DF_FILS); in recordMetricEnabledFeatures() [all …]
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | NsdService.java | 2823 private final NetworkNsdReportedMetrics mMetrics; field in NsdService.ClientInfo 2832 mMetrics = metrics; in ClientInfo() 2891 mMetrics.reportServiceDiscoveryStop(false /* isLegacy */, transactionId, in expungeAllRequests() 2899 mMetrics.reportServiceResolutionStop(false /* isLegacy */, transactionId, in expungeAllRequests() 2903 mMetrics.reportServiceInfoCallbackUnregistered(transactionId, in expungeAllRequests() 2917 mMetrics.reportServiceUnregistration(false /* isLegacy */, transactionId, in expungeAllRequests() 2932 mMetrics.reportServiceDiscoveryStop(true /* isLegacy */, transactionId, in expungeAllRequests() 2942 mMetrics.reportServiceResolutionStop(true /* isLegacy */, transactionId, in expungeAllRequests() 2948 mMetrics.reportServiceUnregistration(true /* isLegacy */, transactionId, in expungeAllRequests() 3004 mMetrics.reportServiceDiscoveryStarted( in onDiscoverServicesStarted() [all …]
|
/packages/modules/Virtualization/tests/benchmark_hostside/java/android/avf/test/ |
D | AVFHostTestCase.java | 81 @Rule public TestMetrics mMetrics = new TestMetrics(); field in AVFHostTestCase 461 mMetrics.addTestMetric(entry.getKey(), entry.getValue().toString()); in reportMetric()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/ |
D | TopicsApiLoggingHostTest.java | 84 public TestMetrics mMetrics = new TestMetrics(); field in TopicsApiLoggingHostTest
|
/packages/modules/Virtualization/tests/hostside/java/com/android/microdroid/test/ |
D | MicrodroidHostTests.java | 137 @Rule public TestMetrics mMetrics = new TestMetrics(); field in MicrodroidHostTests 959 mMetrics.addTestMetric( 969 mMetrics.addTestMetric(
|