Home
last modified time | relevance | path

Searched refs:dpi (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/tests/FrameworkPerf/
DAndroid.mk12 LOCAL_AAPT_FLAGS = -c 120dpi,240dpi,160dpi,161dpi,320dpi,nodpi
/frameworks/base/tests/DpiTest/
DAndroid.mk10 LOCAL_AAPT_FLAGS = -c 120dpi,240dpi,160dpi,nodpi
/frameworks/base/graphics/java/android/renderscript/
DFont.java163 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile() local
164 int fontId = rs.nFontCreateFromFile(path, pointSize, dpi); in createFromFile()
187 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset() local
189 int fontId = rs.nFontCreateFromAsset(mgr, path, pointSize, dpi); in createFromAsset()
211 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource() local
216 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); in createFromResource()
DRenderScript.java113 int samplesMin, int samplesPref, float samplesQ, int dpi); in rsnContextCreateGL() argument
119 int samplesMin, int samplesPref, float samplesQ, int dpi) { in nContextCreateGL() argument
123 samplesMin, samplesPref, samplesQ, dpi); in nContextCreateGL()
472 native int rsnFontCreateFromFile(int con, String fileName, float size, int dpi); in rsnFontCreateFromFile() argument
473 synchronized int nFontCreateFromFile(String fileName, float size, int dpi) { in nFontCreateFromFile() argument
475 return rsnFontCreateFromFile(mContext, fileName, size, dpi); in nFontCreateFromFile()
477 …native int rsnFontCreateFromAssetStream(int con, String name, float size, int dpi, int assetStrea… in rsnFontCreateFromAssetStream() argument
478 synchronized int nFontCreateFromAssetStream(String name, float size, int dpi, int assetStream) { in nFontCreateFromAssetStream() argument
480 return rsnFontCreateFromAssetStream(mContext, name, size, dpi, assetStream); in nFontCreateFromAssetStream()
482 native int rsnFontCreateFromAsset(int con, AssetManager mgr, String path, float size, int dpi); in rsnFontCreateFromAsset() argument
[all …]
DRenderScriptGL.java187 int dpi = ctx.getResources().getDisplayMetrics().densityDpi; in RenderScriptGL() local
194 mSurfaceConfig.mSamplesQ, dpi); in RenderScriptGL()
/frameworks/base/docs/html/design/style/
Dmetrics-grids.jd7 600<acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi
9 title="Low density (120 dpi)">LDPI</acronym>, <acronym title="Medium density (160
10 dpi)">MDPI</acronym>, <acronym title="High density (240 dpi)">HDPI</acronym>, and <acronym title
11 ="Extra-high density (320 dpi)">XHDPI</acronym>. Optimize your application's UI by designing
Diconography.jd42 …8 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</acrony…
141 …2 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</acrony…
222 …6 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</acrony…
301 …4 <acronym title="Density-independent pixels. One dp is one pixel on a 160 dpi screen.">dp</acrony…
/frameworks/base/docs/html/guide/webapps/
Dtargeting.jd119 <b>target-densitydpi</b> = [<em>dpi_value</em> | device-dpi |
120 high-dpi | medium-dpi | low-dpi]
213 the {@code target-densitydpi} property with a value of {@code device-dpi}. This is discussed more in
272 dots per inch (dpi). There are three screen
282 width=device-width} and {@code target-densitydpi=device-dpi}.</p>
306 <li><code>device-dpi</code> - Use the device's native dpi as the target dpi. Default scaling never
308 <li><code>high-dpi</code> - Use hdpi as the target dpi. Medium and low density screens scale down
310 <li><code>medium-dpi</code> - Use mdpi as the target dpi. High density screens scale up and low
312 <li><code>low-dpi</code> - Use ldpi as the target dpi. Medium and high density screens scale up
314 <li><em><code>&lt;value&gt;</code></em> - Specify a dpi value to use as the target dpi. Values must
[all …]
/frameworks/rs/
DrsFont.cpp40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen)… in init() argument
61 mDpi = dpi; in init()
63 error = FT_Set_Char_Size(mFace, (FT_F26Dot6)(fontSize * 64.0f), 0, dpi, 0); in init()
294 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi, in create() argument
301 if (ithFont->mFontName == name && ithFont->mFontSize == fontSize && ithFont->mDpi == dpi) { in create()
307 bool isInitialized = newFont->init(name, fontSize, dpi, data, dataLen); in create()
861 float fontSize, uint32_t dpi) { in rsi_FontCreateFromFile() argument
862 Font *newFont = Font::create(rsc, name, fontSize, dpi); in rsi_FontCreateFromFile()
871 float fontSize, uint32_t dpi, in rsi_FontCreateFromMemory() argument
873 Font *newFont = Font::create(rsc, name, fontSize, dpi, data, data_length); in rsi_FontCreateFromMemory()
DrsContext.h211 void setDPI(uint32_t dpi) {mDPI = dpi;} in setDPI() argument
DrsFont.h76 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi,
121 …bool init(const char *name, float fontSize, uint32_t dpi, const void *data = NULL, uint32_t dataLe…
Drs.h56 RsSurfaceConfig sc, uint32_t dpi);
Drs.spec457 param uint32_t dpi
464 param uint32_t dpi
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestNoCompatActivity.java17 package com.google.android.test.dpi;
/frameworks/support/renderscript/v8/rs_support/
DrsContext.h146 void setDPI(uint32_t dpi) {mDPI = dpi;} in setDPI() argument
Drs.h56 RsSurfaceConfig sc, uint32_t dpi);
/frameworks/base/docs/html/intl/ja/training/multiscreen/
Dscreendensities.jd46 …p</code> 単位や <code>sp</code> 単位を使用します。<code>dp</code> とは、1 ピクセルの物理サイズが 160 dpi に相当する密度非依存ピクセルです。<c…
96 <p>また、<code>&#64;drawable/awesomeimage</code> を参照する場合は常に画面の dpi に基づいて、適切なビットマップが選択されます。</p>
/frameworks/base/docs/html-intl/ja/training/multiscreen/
Dscreendensities.jd46 …p</code> 単位や <code>sp</code> 単位を使用します。<code>dp</code> とは、1 ピクセルの物理サイズが 160 dpi に相当する密度非依存ピクセルです。<c…
96 <p>また、<code>&#64;drawable/awesomeimage</code> を参照する場合は常に画面の dpi に基づいて、適切なビットマップが選択されます。</p>
/frameworks/base/docs/html-intl/zh-cn/training/multiscreen/
Dscreendensities.jd46 …ode>dp</code> 或 <code>sp</code> 单位指定尺寸。<code>dp</code> 是一种非密度制约像素,其尺寸与 160 dpi 像素的实际尺寸相同。<code>sp<…
96 <p>这样一来,无论您何时引用 <code>&#64;drawable/awesomeimage</code>,系统都能根据相应屏幕的 dpi 选取合适的位图。</p>
/frameworks/base/docs/html/intl/zh-CN/training/multiscreen/
Dscreendensities.jd46 …ode>dp</code> 或 <code>sp</code> 单位指定尺寸。<code>dp</code> 是一种非密度制约像素,其尺寸与 160 dpi 像素的实际尺寸相同。<code>sp<…
96 <p>这样一来,无论您何时引用 <code>&#64;drawable/awesomeimage</code>,系统都能根据相应屏幕的 dpi 选取合适的位图。</p>
/frameworks/base/docs/html-intl/ko/training/multiscreen/
Dscreendensities.jd46 … 항상 <code>dp</code> 또는 <code>sp</code> 단위를 사용하시기 바랍니다. <code>dp</code>는 160dpi에서 픽셀의 물리적 크기에 대응하는 …
96 <p>그런 다음 언제든지 <code>&#64;drawable/awesomeimage</code>를 참조하면 시스템이 화면의 dpi에 따라 적합한 비트맵을 선택합니다.</p>
/frameworks/base/docs/html/intl/ko/training/multiscreen/
Dscreendensities.jd46 … 항상 <code>dp</code> 또는 <code>sp</code> 단위를 사용하시기 바랍니다. <code>dp</code>는 160dpi에서 픽셀의 물리적 크기에 대응하는 …
96 <p>그런 다음 언제든지 <code>&#64;drawable/awesomeimage</code>를 참조하면 시스템이 화면의 dpi에 따라 적합한 비트맵을 선택합니다.</p>
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_action_bar.jd82 <code>ldpi</code> (120 dpi)<br>
86 <code>mdpi</code> (160 dpi)<br>
90 <code>hdpi</code> (240 dpi)<br>
94 <code>xhdpi</code> (320 dpi)<br>
Dicon_design_launcher.jd199 <code>ldpi</code> (120 dpi)<br>
203 <code>mdpi</code> (160 dpi)<br>
207 <code>hdpi</code> (240 dpi)<br>
211 <code>xhdpi</code> (320 dpi)<br>
/frameworks/base/docs/html/training/multiscreen/
Dscreendensities.jd56 that corresponds to the physical size of a pixel at 160 dpi. An <code>sp</code> is the same
122 appropriate bitmap based on the screen's dpi.</p>

123