/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
PackageUtil.java | 61 DisplayMetrics metrics = new DisplayMetrics(); local 62 metrics.setToDefaults(); 63 PackageParser.Package pkg = packageParser.parsePackage(sourceFile, archiveFilePath, metrics, 0); 77 DisplayMetrics metrics = new DisplayMetrics(); local 78 metrics.setToDefaults(); 80 archiveFilePath, metrics, 0);
|
/frameworks/base/core/jni/android/graphics/ |
Paint.cpp | 271 SkPaint::FontMetrics metrics; local 272 (void)GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); 273 return SkScalarToFloat(metrics.fAscent); 278 SkPaint::FontMetrics metrics; local 279 (void)GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); 280 return SkScalarToFloat(metrics.fDescent); 285 SkPaint::FontMetrics metrics; local 286 SkScalar spacing = GraphicsJNI::getNativePaint(env, paint)->getFontMetrics(&metrics); 290 env->SetFloatField(metricsObj, gFontMetrics_fieldID.top, SkScalarToFloat(metrics.fTop)); 291 env->SetFloatField(metricsObj, gFontMetrics_fieldID.ascent, SkScalarToFloat(metrics.fAscent)) 301 SkPaint::FontMetrics metrics; local [all...] |
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
TransformTestActivity.java | 129 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); local 130 mPosX = metrics.widthPixels/2; 131 mPosY = metrics.heightPixels/2;
|
/external/emma/ant/ant14/com/vladium/emma/report/ |
reportTask.java | 146 public void setMetrics (final String metrics) 148 m_reportCfg.setMetrics (metrics);
|
ReportCfg.java | 75 public void setMetrics (final String metrics) 77 m_settings.setProperty (m_prefix.concat (METRICS), metrics); local 370 public void setMetrics (final String metrics) 372 m_settings.setProperty (PREFIX.concat (METRICS), metrics); local
|
/external/freetype/src/base/ |
ftadvanc.c | 41 scale = face->size->metrics.y_scale; 43 scale = face->size->metrics.x_scale;
|
/cts/tests/tests/text/src/android/text/cts/ |
BoringLayoutTest.java | 49 private static final BoringLayout.Metrics DEFAULT_METRICS = createMetrics( 71 android.text.BoringLayout.Metrics.class, boolean.class} 78 android.text.BoringLayout.Metrics.class, boolean.class, 293 android.text.BoringLayout.Metrics.class, boolean.class} 301 android.text.BoringLayout.Metrics.class, boolean.class, 434 android.text.BoringLayout.Metrics.class} 441 BoringLayout.Metrics metrics = new BoringLayout.Metrics(); local 442 metrics.width = 100 549 final BoringLayout.Metrics metrics = new BoringLayout.Metrics(); local [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
AbstractSessionInputBuffer.java | 66 private HttpTransportMetricsImpl metrics; field in class:AbstractSessionInputBuffer 87 this.metrics = new HttpTransportMetricsImpl(); 108 this.metrics.incrementBytesTransferred(l); 272 return this.metrics;
|
/external/chromium/base/ |
win_util.h | 36 void GetNonClientMetrics(NONCLIENTMETRICS* metrics);
|
process_util_unittest.cc | 126 ProcessMetrics* metrics = local 128 ASSERT_TRUE(NULL != metrics); 133 EXPECT_TRUE(metrics->CalculateFreeMemory(&free_mem1)); 150 EXPECT_TRUE(metrics->CalculateFreeMemory(&free_mem2)); 157 delete metrics;
|
/external/webkit/WebCore/platform/graphics/wince/ |
FontPlatformData.h | 60 const TEXTMETRIC& metrics() const;
|
/frameworks/base/core/java/android/net/http/ |
AndroidHttpClientConnection.java | 79 private HttpConnectionMetricsImpl metrics = null; field in class:AndroidHttpClientConnection 124 this.metrics = new HttpConnectionMetricsImpl( 261 this.metrics.incrementRequestCount(); 375 this.metrics.incrementResponseCount(); 462 return this.metrics;
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
StringTexture.java | 170 Paint.FontMetricsInt metrics = paint.getFontMetricsInt(); local 173 int ascent = metrics.ascent - padding; 174 int descent = metrics.descent + padding; 195 int y = (config.yalignment == Config.ALIGN_TOP) ? -metrics.top + padding 215 mBaselineHeight = padding + metrics.bottom;
|
/external/webkit/WebKit/win/WebCoreSupport/ |
WebDragClient.cpp | 201 NONCLIENTMETRICS metrics; local 202 metrics.cbSize = sizeof(metrics); 203 SystemParametersInfo(SPI_GETNONCLIENTMETRICS, metrics.cbSize, &metrics, 0); 207 family.setFamily(metrics.lfSmCaptionFont.lfFaceName);
|
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/ |
AccelerometerPlayActivity.java | 348 DisplayMetrics metrics = new DisplayMetrics(); local 349 getWindowManager().getDefaultDisplay().getMetrics(metrics); 350 mXDpi = metrics.xdpi; 351 mYDpi = metrics.ydpi;
|
/external/skia/src/animator/ |
SkDrawPaint.cpp | 187 SkPaint::FontMetrics metrics; local 190 paint.getFontMetrics(&metrics); 193 value->fOperand.fScalar = metrics.fAscent; 196 value->fOperand.fScalar = metrics.fDescent;
|
/external/freetype/src/cff/ |
cffobjs.c | 231 size->metrics.x_scale, size->metrics.y_scale, 243 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); 244 y_scale = FT_MulDiv( size->metrics.y_scale, top_upm, sub_upm ); 248 x_scale = size->metrics.x_scale; 249 y_scale = size->metrics.y_scale; 303 size->metrics.x_scale, size->metrics.y_scale, 315 x_scale = FT_MulDiv( size->metrics.x_scale, top_upm, sub_upm ); 316 y_scale = FT_MulDiv( size->metrics.y_scale, top_upm, sub_upm ) [all...] |
/external/freetype/src/truetype/ |
ttdriver.c | 200 /* use the scaled metrics, even when tt_size_reset fails */ 208 FT_Size_Metrics* metrics = &size->metrics; local 211 error = sfnt->load_strike_metrics( ttface, strike_index, metrics );
|
/frameworks/base/core/java/android/view/ |
ScaleGestureDetector.java | 173 // as orientation can change, query the metrics in touch down 174 DisplayMetrics metrics = mContext.getResources().getDisplayMetrics(); local 175 mRightSlopEdge = metrics.widthPixels - mEdgeSlop; 176 mBottomSlopEdge = metrics.heightPixels - mEdgeSlop;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
Utilities.java | 238 final DisplayMetrics metrics = resources.getDisplayMetrics(); local 239 final float density = metrics.density; 275 final DisplayMetrics metrics = resources.getDisplayMetrics(); local 276 final float scale = metrics.density; 277 mDensity = metrics.densityDpi;
|
/packages/apps/Gallery/src/com/android/camera/ |
GridViewSpecial.java | 81 DisplayMetrics metrics) { 82 mCellWidth = dpToPx(w, metrics); 83 mCellHeight = dpToPx(h, metrics); 84 mCellSpacing = dpToPx(intercellSpacing, metrics); 85 mLeftEdgePadding = dpToPx(leftEdgePadding, metrics); 96 DisplayMetrics metrics = new DisplayMetrics(); local 97 a.getWindowManager().getDefaultDisplay().getMetrics(metrics); 99 new LayoutSpec(67, 67, 8, 0, metrics), 100 new LayoutSpec(92, 92, 8, 0, metrics), 105 private static int dpToPx(int dp, DisplayMetrics metrics) { [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
Bridge.java | 363 // setup the display Metrics. 364 DisplayMetrics metrics = new DisplayMetrics(); local 365 metrics.densityDpi = density; 366 metrics.density = density / (float) DisplayMetrics.DENSITY_DEFAULT; 367 metrics.scaledDensity = metrics.density; 368 metrics.widthPixels = screenWidth; 369 metrics.heightPixels = screenHeight; 370 metrics.xdpi = xdpi; 371 metrics.ydpi = ydpi [all...] |
/external/skia/src/core/ |
SkPaint.cpp | 985 SkScalar SkPaint::getFontMetrics(FontMetrics* metrics, SkScalar zoom) const 1010 if (NULL == metrics) 1011 metrics = &storage; 1013 this->descriptorProc(zoomPtr, FontMetricsDescProc, metrics); 1017 metrics->fTop = SkScalarMul(metrics->fTop, scale); 1018 metrics->fAscent = SkScalarMul(metrics->fAscent, scale); 1019 metrics->fDescent = SkScalarMul(metrics->fDescent, scale) [all...] |
/external/webkit/WebKit/win/ |
FullscreenVideoController.cpp | 432 NONCLIENTMETRICS metrics; local 433 metrics.cbSize = sizeof(metrics); 434 SystemParametersInfo(SPI_GETNONCLIENTMETRICS, metrics.cbSize, &metrics, 0); 436 family.setFamily(metrics.lfSmCaptionFont.lfFaceName);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
DensityActivity.java | 207 final DisplayMetrics metrics = getResources().getDisplayMetrics(); local 209 mBitmap.getScaledWidth(metrics), 210 mBitmap.getScaledHeight(metrics));
|