Searched refs:metrics (Results 51 - 75 of 83) sorted by relevance

1234

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DLayout.java189 DisplayMetrics metrics = getContext().getResources().getDisplayMetrics();
191 width = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, width, metrics);
194 height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, height, metrics);
/frameworks/base/test-runner/src/android/test/mock/
H A DMockResources.java51 public void updateConfiguration(Configuration config, DisplayMetrics metrics) { argument
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DIWindowManagerImpl.java50 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation, argument
53 mMetrics = metrics;
/frameworks/base/core/java/android/content/res/
H A DResourcesImpl.java133 * @param metrics Current display metrics to consider when
140 public ResourcesImpl(@NonNull AssetManager assets, @Nullable DisplayMetrics metrics, argument
145 updateConfiguration(config, metrics, displayAdjustments.getCompatibilityInfo());
320 public void updateConfiguration(Configuration config, DisplayMetrics metrics, argument
335 if (metrics != null) {
336 mMetrics.setTo(metrics);
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewController.java371 final DisplayMetrics metrics = new DisplayMetrics();
375 wm.getDefaultDisplay().getMetrics(metrics);
379 sMaxPhotoSize = (Math.min(metrics.heightPixels, metrics.widthPixels) * 800) / 1000;
386 sMaxPhotoSize = Math.min(metrics.heightPixels, metrics.widthPixels);
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java830 * @param display Display metrics for the display this bitmap will be
863 * @param display Display metrics for the display this bitmap will be
921 * @param display Display metrics for the display this bitmap will be
984 * @param display Display metrics for the display this bitmap will be
1184 public int getScaledWidth(DisplayMetrics metrics) { argument
1185 return scaleFromDensity(getWidth(), mDensity, metrics.densityDpi);
1192 public int getScaledHeight(DisplayMetrics metrics) { argument
1193 return scaleFromDensity(getHeight(), mDensity, metrics.densityDpi);
H A DPaint.java1381 * Get the elegant metrics flag.
1383 * @return true if elegant metrics are enabled for text drawing.
1392 * Set the paint's elegant height metrics flag. This setting selects font
1394 * metrics, and also increases top and bottom bounds to provide more space.
1396 * @param elegant set the paint's elegant metrics flag for drawing text.
1583 * Class that describes the various metrics for a font at a given text size.
1615 * settings for typeface, textSize, etc. If metrics is not null, return the
1618 * @param metrics If this object is not null, its fields are filled with
1622 public float getFontMetrics(FontMetrics metrics) { argument
1623 return nGetFontMetrics(mNativePaint, mNativeTypeface, metrics);
1626 nGetFontMetrics(long paintPtr, long typefacePtr, FontMetrics metrics) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageRenderer.java166 DisplayMetrics metrics = new DisplayMetrics();
169 wm.getDefaultDisplay().getMetrics(metrics);
170 return metrics.heightPixels > 2048 || metrics.widthPixels > 2048;
/frameworks/base/core/java/com/android/internal/policy/
H A DDecorView.java608 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics();
622 w = (int) tvw.getDimension(metrics);
624 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels);
650 h = (int) tvh.getDimension(metrics);
652 h = (int) tvh.getFraction(metrics.heightPixels, metrics.heightPixels);
699 min = (int)tv.getDimension(metrics);
739 // If the application changed its SystemUI metrics, we might also have to adapt
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java106 * based on the display metrics of the resources.
115 * based on the display metrics of the resources.
139 * based on the display metrics of the resources.
162 * @param metrics The DisplayMetrics indicating the density scale for this drawable.
167 public void setTargetDensity(@NonNull DisplayMetrics metrics) { argument
168 setTargetDensity(metrics.densityDpi);
H A DBitmapDrawable.java118 * the display metrics of the resources.
142 * the display metrics of the resources.
249 * @param metrics The DisplayMetrics indicating the density scale for this drawable.
254 public void setTargetDensity(DisplayMetrics metrics) { argument
255 setTargetDensity(metrics.densityDpi);
/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionManager.java1409 DisplayMetrics metrics = context.getResources().getDisplayMetrics();
1411 newMetrics.setTo(metrics);
/frameworks/support/v4/java/android/support/v4/widget/
H A DMaterialProgressDrawable.java133 final DisplayMetrics metrics = mResources.getDisplayMetrics();
134 final float screenDensity = metrics.density;
/frameworks/rs/
H A DrsRuntime.h103 void rsrSetMetrics(Context *, Font::Rect *metrics,
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DMain.java474 DisplayMetrics metrics = new DisplayMetrics();
476 Resources resources = new Resources(assetManager, metrics, configuration);
479 new BridgeContext(params.getProjectKey(), metrics, params.getResources(),
/frameworks/base/core/java/android/view/
H A DViewDebug.java580 final DisplayMetrics metrics =
583 final Bitmap bitmap = metrics != null ?
584 Bitmap.createBitmap(metrics, metrics.widthPixels,
585 metrics.heightPixels, Bitmap.Config.RGB_565) : null;
/frameworks/base/services/java/com/android/server/
H A DSystemServer.java429 // Display manager is needed to provide display metrics before package manager
1221 DisplayMetrics metrics = new DisplayMetrics();
1223 w.getDefaultDisplay().getMetrics(metrics);
1224 context.getResources().updateConfiguration(config, metrics);
/frameworks/base/services/net/java/android/net/ip/
H A DIpReachabilityMonitor.java27 import android.net.metrics.IpReachabilityEvent;
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkMonitor.java37 import android.net.metrics.ValidationProbeEvent;
38 import android.net.metrics.NetworkEvent;
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpClient.java33 import android.net.metrics.DhcpClientEvent;
34 import android.net.metrics.DhcpErrorEvent;
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DResources_Delegate.java64 DisplayMetrics metrics,
67 Resources resources = new Resources(assets, metrics, config);
62 initSystem(BridgeContext context, AssetManager assets, DisplayMetrics metrics, Configuration config, LayoutlibCallback layoutlibCallback) argument
/frameworks/base/core/java/android/text/
H A DLayout.java1067 float width = tl.metrics(null);
1089 float width = tl.metrics(null);
1729 return margin + tl.metrics(null);
/frameworks/base/core/java/android/widget/
H A DSearchView.java1935 DisplayMetrics metrics = getResources().getDisplayMetrics();
1937 getSearchViewTextMinWidthDp(), metrics));
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java181 * @param metrics the {@link DisplayMetrics}.
187 public BridgeContext(Object projectKey, DisplayMetrics metrics, argument
195 mMetrics = metrics;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSearchView.java1892 DisplayMetrics metrics = getResources().getDisplayMetrics();
1894 getSearchViewTextMinWidthDp(), metrics));

Completed in 1290 milliseconds

1234