Home
last modified time | relevance | path

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

12

/frameworks/base/tests/DpiTest/
DAndroid.mk10 LOCAL_AAPT_FLAGS = -c 120dpi,240dpi,160dpi,nodpi
/frameworks/base/graphics/java/android/renderscript/
DFont.java146 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile() local
147 int fontId = rs.nFontCreateFromFile(path, pointSize, dpi); in createFromFile()
164 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset() local
166 int fontId = rs.nFontCreateFromAsset(mgr, path, pointSize, dpi); in createFromAsset()
185 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource() local
190 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); in createFromResource()
DRenderScript.java90 int samplesMin, int samplesPref, float samplesQ, int dpi); in rsnContextCreateGL() argument
96 int samplesMin, int samplesPref, float samplesQ, int dpi) { in nContextCreateGL() argument
100 samplesMin, samplesPref, samplesQ, dpi); in nContextCreateGL()
421 native int rsnFontCreateFromFile(int con, String fileName, float size, int dpi); in rsnFontCreateFromFile() argument
422 synchronized int nFontCreateFromFile(String fileName, float size, int dpi) { in nFontCreateFromFile() argument
424 return rsnFontCreateFromFile(mContext, fileName, size, dpi); in nFontCreateFromFile()
426 …native int rsnFontCreateFromAssetStream(int con, String name, float size, int dpi, int assetStrea… in rsnFontCreateFromAssetStream() argument
427 synchronized int nFontCreateFromAssetStream(String name, float size, int dpi, int assetStream) { in nFontCreateFromAssetStream() argument
429 return rsnFontCreateFromAssetStream(mContext, name, size, dpi, assetStream); in nFontCreateFromAssetStream()
431 native int rsnFontCreateFromAsset(int con, AssetManager mgr, String path, float size, int dpi); in rsnFontCreateFromAsset() argument
[all …]
DRenderScriptGL.java168 int dpi = ctx.getResources().getDisplayMetrics().densityDpi; in RenderScriptGL() local
175 mSurfaceConfig.mSamplesQ, dpi); in RenderScriptGL()
/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/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestNoCompatActivity.java17 package com.google.android.test.dpi;
DDpiTestActivity.java17 package com.google.android.test.dpi;
/frameworks/base/libs/rs/
DrsFont.cpp39 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen)… in init() argument
60 mDpi = dpi; in init()
62 error = FT_Set_Char_Size(mFace, (FT_F26Dot6)(fontSize * 64.0f), 0, dpi, 0); in init()
293 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi, in create() argument
300 if (ithFont->mFontName == name && ithFont->mFontSize == fontSize && ithFont->mDpi == dpi) { in create()
306 bool isInitialized = newFont->init(name, fontSize, dpi, data, dataLen); in create()
837 float fontSize, uint32_t dpi) { in rsi_FontCreateFromFile() argument
838 Font *newFont = Font::create(rsc, name, fontSize, dpi); in rsi_FontCreateFromFile()
847 float fontSize, uint32_t dpi, in rsi_FontCreateFromMemory() argument
849 Font *newFont = Font::create(rsc, name, fontSize, dpi, data, data_length); in rsi_FontCreateFromMemory()
DrsFont.h77 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi,
122 …bool init(const char *name, float fontSize, uint32_t dpi, const void *data = NULL, uint32_t dataLe…
DrsContext.h213 void setDPI(uint32_t dpi) {mDPI = dpi;} in setDPI() argument
DRenderScript.h56 …extCreateGL(RsDevice dev, uint32_t version, uint32_t sdkVersion, RsSurfaceConfig sc, uint32_t dpi);
Drs.spec373 param uint32_t dpi
380 param uint32_t dpi
DrsContext.cpp719 uint32_t dpi) { in rsContextCreateGL() argument
725 rsc->setDPI(dpi); in rsContextCreateGL()
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_action_bar.jd76 <code>ldpi</code> (120 dpi)<br>
80 <code>mdpi</code> (160 dpi)<br>
84 <code>hdpi</code> (240 dpi)<br>
88 <code>xhdpi</code> (320 dpi)<br>
Dicon_design_launcher.jd190 <code>ldpi</code> (120 dpi)<br>
194 <code>mdpi</code> (160 dpi)<br>
198 <code>hdpi</code> (240 dpi)<br>
202 <code>xhdpi</code> (320 dpi)<br>
Dicon_design_status_bar.jd134 <code>ldpi</code> (120 dpi)<br>
138 <code>mdpi</code> (160 dpi)<br>
142 <code>hdpi</code> (240 dpi)<br>
146 <code>xhdpi</code> (320 dpi)<br>
/frameworks/base/graphics/jni/
Dandroid_renderscript_RenderScript.cpp165 int dpi) in nContextCreateGL() argument
179 return (jint)rsContextCreateGL((RsDevice)dev, ver, sdkVer, sc, dpi); in nContextCreateGL()
777 jstring fileName, jfloat fontSize, jint dpi) in nFontCreateFromFile() argument
782 fontSize, dpi); in nFontCreateFromFile()
789 jstring name, jfloat fontSize, jint dpi, jint native_asset) in nFontCreateFromAssetStream() argument
796 fontSize, dpi, in nFontCreateFromAssetStream()
803 jfloat fontSize, jint dpi) in nFontCreateFromAsset() argument
818 fontSize, dpi, in nFontCreateFromAsset()
/frameworks/base/docs/html/intl/ja/guide/publishing/
Dpreparing.jd64 <li>アプリケーションの対象とするタイプの携帯端末が手に入らない場合は、<code>-dpi</code>、<code>-device</code>、<code>-scale</code>、<co…
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd115 <dd>The quantity of pixels within a physical area of the screen; usually referred to as dpi (dots
137 <p>The density-independent pixel is equivalent to one physical pixel on a 160 dpi screen, which is
141 <nobr><code>px = dp * (dpi / 160)</code></nobr>.
142 For example, on a 240 dpi screen, 1 dp equals 1.5 physical pixels. You should always use dp units
452 <td>Resources for low-density (<em>ldpi</em>) screens (~120dpi).</td>
456 <td>Resources for medium-density (<em>mdpi</em>) screens (~160dpi). (This is the baseline
461 <td>Resources for high-density (<em>hdpi</em>) screens (~240dpi).</td>
465 <td>Resources for extra high-density (<em>xhdpi</em>) screens (~320dpi).</td>
474 <td>Resources for screens somewhere between mdpi and hdpi; approximately 213dpi. This is not
1172 / 160 dpi}, which equals 1/10th of an inch (or 2.5 mm) before the gesture is recognized. On a device
[all …]
/frameworks/base/docs/html/guide/developing/building/
Dbuilding-eclipse.jd128 field. For example, you could add <code>-scale 96dpi</code> to scale the AVD's screen to an
129 accurate size, based on the dpi of your computer monitor. For a full list of emulator
/frameworks/base/docs/html/guide/developing/devices/
Dmanaging-avds-cmdline.jd173 the emulator skin's default density and add the <code>-dpi-device</code> option
177 <pre>emulator -avd WVGA800 -scale 96dpi -dpi-device 160</pre>
/frameworks/base/docs/html/guide/developing/tools/
Demulator.jd404 <td><code>-dpi-device &lt;dpi&gt;</code></td>
423 …also specify scale as a DPI value if you add the suffix "dpi" to the scale value. A value of "auto…
DMonkeyDevice.jd1288 on a 160-dpi screen, density = 1.0, while on a 120-dpi screen, density = .75.
/frameworks/base/docs/html/guide/topics/resources/
Dproviding-resources.jd573 <td>Screen pixel density (dpi)</td>
584 <li>{@code ldpi}: Low-density screens; approximately 120dpi.</li>
586 160dpi.</li>
587 <li>{@code hdpi}: High-density screens; approximately 240dpi.</li>
588 <li>{@code xhdpi}: Extra high-density screens; approximately 320dpi. <em>Added in API
592 <li>{@code tvdpi}: Screens somewhere between mdpi and hdpi; approximately 213dpi. This is
/frameworks/base/docs/html/sdk/
DRELEASENOTES.jd215 <li>QVGA &mdash; 240 x 320, low density (120 dpi)</li>
216 <li>HVGA &mdash; 320 x 480, medium density (160 dpi)</li>
217 <li>WVGA800 &mdash; 480 x 800, high density (240 dpi)</li>
218 <li>WVGA854 &mdash; 480 x 854, high density (240 dpi)</li>

12