Home
last modified time | relevance | path

Searched refs:mMetrics (Results 1 – 11 of 11) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkIpProvisioningMetricsTest.java45 final IpProvisioningMetrics mMetrics = new IpProvisioningMetrics(); in testIpProvisioningMetrics_setHostnameTransinfo() local
47 mMetrics.reset(); in testIpProvisioningMetrics_setHostnameTransinfo()
48 mMetrics.setHostnameTransinfo(false /* isOptionEnabled */, false /* transSuccess */); in testIpProvisioningMetrics_setHostnameTransinfo()
49 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo()
52 mMetrics.reset(); in testIpProvisioningMetrics_setHostnameTransinfo()
53 mMetrics.setHostnameTransinfo(true /* isOptionEnabled */, false /* transSuccess */); in testIpProvisioningMetrics_setHostnameTransinfo()
54 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo()
57 mMetrics.reset(); in testIpProvisioningMetrics_setHostnameTransinfo()
58 mMetrics.setHostnameTransinfo(true /* isOptionEnabled */, true /* transSuccess */); in testIpProvisioningMetrics_setHostnameTransinfo()
59 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DZenOnboardingActivity.java56 private MetricsLogger mMetrics; field in ZenOnboardingActivity
103 mMetrics.visible(SettingsEnums.SETTINGS_ZEN_ONBOARDING); in setupUI()
113 mMetrics = ml; in setMetricsLogger()
117 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_SETTINGS); in launchSettings()
133 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_OK); in save()
135 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_KEEP_CURRENT_SETTINGS); in save()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenOnboardingActivity.java56 private MetricsLogger mMetrics; field in ZenOnboardingActivity
103 mMetrics.visible(SettingsEnums.SETTINGS_ZEN_ONBOARDING); in setupUI()
113 mMetrics = ml; in setMetricsLogger()
117 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_SETTINGS); in launchSettings()
133 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_OK); in save()
135 mMetrics.action(SettingsEnums.ACTION_ZEN_ONBOARDING_KEEP_CURRENT_SETTINGS); in save()
/packages/apps/Terminal/src/com/android/terminal/
DTerminalView.java59 private final TerminalMetrics mMetrics = new TerminalMetrics(); field in TerminalView
164 view = new TerminalLineView(parent.getContext(), mTerm, mMetrics);
253 final int rows = h / mMetrics.charHeight; in onSizeChanged()
254 final int cols = w / mMetrics.charWidth; in onSizeChanged()
286 mMetrics.cursorPaint.setColor(0xfff0f0f0); in setTerminal()
301 mMetrics.setTextSize(textSize); in setTextSize()
DTerminalLineView.java38 private final TerminalMetrics mMetrics; field in TerminalLineView
43 mMetrics = metrics; in TerminalLineView()
49 getDefaultSize(mMetrics.charHeight, heightMeasureSpec)); in onMeasure()
62 final TerminalMetrics m = mMetrics; in onDraw()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java311 private final IpProvisioningMetrics mMetrics; field in DhcpClient
385 private final IpProvisioningMetrics mMetrics; field in DhcpClient.Dependencies
389 mMetrics = metrics; in Dependencies()
419 return mMetrics; in getIpProvisioningMetrics()
460 mMetrics = deps.getIpProvisioningMetrics(); in DhcpClient()
501 mMetrics.setHostnameTransinfo(sendHostname, mHostname != null); in DhcpClient()
548 if (isDhcpLeaseCacheEnabled()) mMetrics.setDhcpEnabledFeature(DhcpFeature.DF_INITREBOOT); in recordMetricEnabledFeatures()
549 if (isDhcpRapidCommitEnabled()) mMetrics.setDhcpEnabledFeature(DhcpFeature.DF_RAPIDCOMMIT); in recordMetricEnabledFeatures()
550 if (isDhcpIpConflictDetectEnabled()) mMetrics.setDhcpEnabledFeature(DhcpFeature.DF_DAD); in recordMetricEnabledFeatures()
552 mMetrics.setDhcpEnabledFeature(DhcpFeature.DF_FILS); in recordMetricEnabledFeatures()
[all …]
/packages/apps/Settings/src/com/android/settings/deletionhelper/
DAutomaticStorageManagerSwitchBarController.java41 private MetricsFeatureProvider mMetrics; field in AutomaticStorageManagerSwitchBarController
53 mMetrics = Preconditions.checkNotNull(metrics); in AutomaticStorageManagerSwitchBarController()
67 mMetrics.action(mContext, SettingsEnums.ACTION_TOGGLE_STORAGE_MANAGER, isChecked); in onSwitchChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deletionhelper/
DAutomaticStorageManagerSwitchBarController.java41 private MetricsFeatureProvider mMetrics; field in AutomaticStorageManagerSwitchBarController
53 mMetrics = Preconditions.checkNotNull(metrics); in AutomaticStorageManagerSwitchBarController()
67 mMetrics.action(mContext, SettingsEnums.ACTION_TOGGLE_STORAGE_MANAGER, isChecked); in onSwitchChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DStringTexture.java34 private final FontMetricsInt mMetrics; field in StringTexture
41 mMetrics = metrics; in StringTexture()
84 canvas.translate(0, -mMetrics.ascent); in onDraw()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DActivityPicker.java332 private final DisplayMetrics mMetrics; field in ActivityPicker.IconResizer
340 mMetrics = metrics; in IconResizer()
375 bitmapDrawable.setTargetDensity(mMetrics); in createIconThumbnail()
409 ((BitmapDrawable) icon).setTargetDensity(mMetrics); in createIconThumbnail()
424 ((BitmapDrawable) icon).setTargetDensity(mMetrics); in createIconThumbnail()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java332 private final DisplayMetrics mMetrics; field in ActivityPicker.IconResizer
340 mMetrics = metrics; in IconResizer()
375 bitmapDrawable.setTargetDensity(mMetrics); in createIconThumbnail()
409 ((BitmapDrawable) icon).setTargetDensity(mMetrics); in createIconThumbnail()
424 ((BitmapDrawable) icon).setTargetDensity(mMetrics); in createIconThumbnail()