Searched refs:density (Results 176 - 200 of 228) sorted by relevance

12345678910

/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h991 uint16_t density; member in struct:android::ResTable_config::__anon1183::__anon1184
1691 uint16_t density = 0,
/frameworks/base/test-runner/src/android/test/mock/
H A DMockPackageManager.java590 public Drawable getUserBadgeForDensity(UserHandle user, int density) { argument
596 public Drawable getUserBadgeForDensityNoBackground(UserHandle user, int density) { argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSwitchCompat.java221 mTextPaint.density = res.getDisplayMetrics().density;
H A DActionMenuPresenter.java129 mMinCellSize = (int) (ActionMenuView.MIN_CELL_SIZE * res.getDisplayMetrics().density);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DVectorDrawable.java250 /** The density of the display on which this drawable will be rendered. */
287 final int density = Drawable.resolveDensity(res, mVectorState.mDensity);
288 if (mTargetDensity != density) {
289 mTargetDensity = density;
477 * Update local dimensions to adjust for a target density that may differ
478 * from the source density against which the constant state was loaded.
H A DGradientDrawable.java1887 * Sets the constant state density.
1889 * If the density has been previously set, dispatches the change to
1890 * subclasses so that density-dependent properties may be scaled as
1893 * @param targetDensity the new constant state density
1990 // If this drawable is being created for a different density,
1993 final int density = Drawable.resolveDensity(res, mDensity);
1994 if (density != mDensity) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java220 dp = getResources().getDisplayMetrics().density;
287 dp = getResources().getDisplayMetrics().density;
975 pt.setStrokeWidth(getResources().getDisplayMetrics().density);
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeDialogImpl.java1017 final int density = newConfig.densityDpi;
1018 if (density != mDensity) {
1022 mDensity = density;
/frameworks/base/core/java/android/view/
H A DWindowManagerPolicy.java669 public void setInitialDisplaySize(Display display, int width, int height, int density); argument
/frameworks/base/core/java/android/widget/
H A DAppSecurityPermissions.java473 int spacing = (int)(8*mContext.getResources().getDisplayMetrics().density);
H A DOverScroller.java643 final float ppi = context.getResources().getDisplayMetrics().density * 160.0f;
/frameworks/base/libs/androidfw/tests/
H A DResTable_test.cpp66 table.getResource(resid, &val, false /*mayBeBag*/, 0u /*density*/, &flags, &selected_config),
214 param.density = 320;
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.cpp152 mProfiler.setDensity(mRenderThread.mainDisplayInfo().density);
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java67 float dp = context.getResources().getDisplayMetrics().density;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSwipeHelper.java104 mDensityScale = context.getResources().getDisplayMetrics().density;
/frameworks/base/services/core/java/com/android/server/am/
H A DTaskRecord.java2119 final float density = parentConfig.densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE;
2124 mTmpNonDecorBounds, mTmpStableBounds, overrideWidth, overrideHeight, density,
2137 final int compatScreenWidthDp = (int) (mTmpNonDecorBounds.width() / density);
2138 final int compatScreenHeightDp = (int) (mTmpNonDecorBounds.height() / density);
H A DActivityStackSupervisor.java4818 public void setSurface(Surface surface, int width, int height, int density) { argument
4874 public void setSurface(Surface surface, int width, int height, int density) { argument
4875 super.setSurface(surface, width, height, density);
4880 setSurfaceLocked(surface, width, height, density);
4887 private void setSurfaceLocked(Surface surface, int width, int height, int density) { argument
4895 new VirtualActivityDisplay(width, height, density);
5055 VirtualActivityDisplay(int width, int height, int density) { argument
5058 VIRTUAL_DISPLAY_BASE_NAME, width, height, density, null /* surface */,
/frameworks/base/services/core/java/com/android/server/display/
H A DLocalDisplayAdapter.java399 mInfo.densityDpi = (int)(phys.density * 160 + 0.5f);
/frameworks/native/opengl/libagl/
H A Dcontext.h258 GLfixed density; member in struct:android::gl::fog_t
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DMaterialProgressDrawable.java133 final float screenDensity = metrics.density;
/frameworks/base/tools/aapt/
H A DCommand.cpp778 // version if they are using newer config types like density.
786 config.density = ResTable_config::DENSITY_MEDIUM;
978 int dens = configs[i].density;
1329 tmpConfig.density = densities[i];
2254 printf("supports-any-density: '%s'\n", anyDensity ? "true" : "false");
/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp1894 .OptionalFlag("--preferred-density",
1895 "Selects the closest matching density and strips out all others.",
2074 Maybe<uint16_t> density = local
2076 if (!density) {
2079 options.table_splitter_options.preferred_densities.push_back(density.value());
/frameworks/support/design/src/android/support/design/widget/
H A DCoordinatorLayout.java214 final float density = res.getDisplayMetrics().density;
217 mKeylines[i] = (int) (mKeylines[i] * density);
/frameworks/av/media/libeffects/testlibs/
H A DEffectReverb.c987 pValue16 = &pProperties->density;
1400 value16 = pProperties->density;
/frameworks/base/core/java/android/content/pm/
H A DPackageManager.java4413 * badged where the badge should be applied as well as the density of the
4426 * @param badgeDensity The optional desired density for the badge as per
4428 * the density of the display is used.
4441 * @param density The optional desired density for the badge as per
4443 * the density of the current display is used.
4447 public abstract Drawable getUserBadgeForDensity(UserHandle user, int density); argument
4457 * @param density The optional desired density for the badge as per
4459 * the density o
4463 getUserBadgeForDensityNoBackground(UserHandle user, int density) argument
[all...]

Completed in 1038 milliseconds

12345678910