Searched refs:density (Results 126 - 150 of 228) sorted by relevance

12345678910

/frameworks/base/core/java/com/android/internal/widget/
H A DAutoScrollHelper.java212 final int maxVelocity = (int) (DEFAULT_MAXIMUM_VELOCITY_DIPS * metrics.density + 0.5f);
213 final int minVelocity = (int) (DEFAULT_MINIMUM_VELOCITY_DIPS * metrics.density + 0.5f);
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp117 env->SetIntField(outValue, gTypedValueOffsets.mDensity, config->density);
673 jint touchscreen, jint density,
700 config.density = (uint16_t)density;
882 jshort density,
899 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config);
1314 config.density = 0;
1346 dest[STYLE_DENSITY] = config.density;
1779 gTypedValueOffsets.mDensity = GetFieldIDOrDie(env, typedValue, "density", "I");
670 android_content_AssetManager_setConfiguration(JNIEnv* env, jobject clazz, jint mcc, jint mnc, jstring locale, jint orientation, jint touchscreen, jint density, jint keyboard, jint keyboardHidden, jint navigation, jint screenWidth, jint screenHeight, jint smallestScreenWidthDp, jint screenWidthDp, jint screenHeightDp, jint screenLayout, jint uiMode, jint colorMode, jint sdkVersion) argument
880 android_content_AssetManager_loadResourceValue(JNIEnv* env, jobject clazz, jint ident, jshort density, jobject outValue, jboolean resolve) argument
H A Dandroid_view_SurfaceControl.cpp57 jfieldID density; member in struct:android::__anon1139
486 env->SetFloatField(infoObj, gPhysicalDisplayInfoClassInfo.density, info.density);
874 gPhysicalDisplayInfoClassInfo.density = GetFieldIDOrDie(env, clazz, "density", "F");
/frameworks/base/graphics/java/android/graphics/drawable/
H A DInsetDrawable.java351 * Called when the constant state density changes to scale
352 * density-dependent properties specific to insets.
354 * @param sourceDensity the previous constant state density
355 * @param targetDensity the new constant state density
366 // If this drawable is being created for a different density,
371 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi;
372 if (density != mDensity) {
H A DLayerDrawable.java177 // The density may have changed since the last update. This will
180 final int density = Drawable.resolveDensity(r, 0);
181 state.setDensity(density);
191 layer.setDensity(density);
205 final int density = Drawable.resolveDensity(t.getResources(), 0);
206 state.setDensity(density);
219 layer.setDensity(density);
1834 ChildDrawable(int density) { argument
1835 mDensity = density;
/frameworks/base/tools/aapt2/cmd/
H A DUtil.cpp38 diag->Error(DiagMessage() << "invalid density '" << arg << "' for --preferred-density option");
47 diag->Error(DiagMessage() << "invalid preferred density '" << arg << "'. "
48 << "Preferred density must only be a density value");
51 return preferred_density_config.density;
102 if (config.density != 0) {
103 diag->Warn(DiagMessage() << "ignoring density '" << config << "' for -c option");
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
H A DConfigGenerator.java283 public ConfigGenerator setDensity(Density density) { argument
284 mDensity = density;
/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java1302 public Drawable getUserBadgeForDensity(UserHandle user, int density) { argument
1304 com.android.internal.R.drawable.ic_corp_badge_color, density);
1310 com.android.internal.R.drawable.ic_corp_badge_case, density);
1317 public Drawable getUserBadgeForDensityNoBackground(UserHandle user, int density) { argument
1319 com.android.internal.R.drawable.ic_corp_badge_no_background, density);
1326 private Drawable getDrawableForDensity(int drawableId, int density) { argument
1327 if (density <= 0) {
1328 density = mContext.getResources().getDisplayMetrics().densityDpi;
1330 return Resources.getSystem().getDrawableForDensity(drawableId, density);
1333 private Drawable getManagedProfileIconForDensity(UserHandle user, int drawableId, int density) { argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java75 final float dp = dm.density;
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp281 const int density = env->GetIntField(options, gOptions_densityFieldID); local
284 if (density != 0 && targetDensity != 0 && density != screenDensity) {
285 scale = (float) targetDensity / density;
364 // Scale is necessary due to density differences.
H A DBitmap.cpp201 int density) {
209 reinterpret_cast<jlong>(bitmapWrapper), bitmap->width(), bitmap->height(), density,
1059 const int density = p->readInt32(); local
1170 getPremulBitmapCreateFlags(isMutable), NULL, NULL, density);
1175 jboolean isMutable, jint density,
1210 p->writeInt32(density);
199 createBitmap(JNIEnv* env, Bitmap* bitmap, int bitmapCreateFlags, jbyteArray ninePatchChunk, jobject ninePatchInsets, int density) argument
1173 Bitmap_writeToParcel(JNIEnv* env, jobject, jlong bitmapHandle, jboolean isMutable, jint density, jobject parcel) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardClockPositionAlgorithm.java88 mDensity = res.getDisplayMetrics().density;
/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionInfo.java221 // Set text size scaled by density
222 paint.setTextSize(TEXT_SIZE * metrics.density);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DAlphaLayersActivity.java56 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f);
/frameworks/native/include/android/
H A Dconfiguration.h87 /** Density: default density. */
131 /** Density: any density. */
133 /** Density: no density specified. */
424 * <a href="@dacRoot/guide/topics/resources/providing-resources.html#DensityQualifier">density</a>
570 * Set the current density in the configuration.
572 void AConfiguration_setDensity(AConfiguration* config, int32_t density);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DIllustration.java81 mBaselineGridSize = getResources().getDisplayMetrics().density * 8;
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DSwipeRefreshLayout.java302 mCircleDiameter = (int) (CIRCLE_DIAMETER_LARGE * metrics.density);
304 mCircleDiameter = (int) (CIRCLE_DIAMETER * metrics.density);
341 mCircleDiameter = (int) (CIRCLE_DIAMETER * metrics.density);
346 mSpinnerOffsetEnd = (int) (DEFAULT_CIRCLE_TARGET * metrics.density);
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1846 density = dtohs(density);
1860 density = htods(density);
1954 if (density != o.density) {
1955 return density < o.density ? -1 : 1;
1989 if (density != o.density) diff
4101 getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density, uint32_t* outSpecFlags, ResTable_config* outConfig) const argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayContent.java197 * Overridden display density for current user. Initialized with {@link #mInitialDisplayDensity}
198 * but can be set from Settings or via shell command "adb shell wm density".
1178 config.uiMode, mDisplayId) / mDisplayMetrics.density);
1181 config.uiMode, mDisplayId) / mDisplayMetrics.density);
1193 mDisplayMetrics.density, config);
1309 int size = (int)(((dm.noncompatWidthPixels / scale) / dm.density) + .5f);
1317 boolean rotated, int uiMode, int dw, int dh, float density, Configuration outConfig) {
1344 sl = reduceConfigLayout(sl, Surface.ROTATION_0, density, unrotDw, unrotDh, uiMode,
1346 sl = reduceConfigLayout(sl, Surface.ROTATION_90, density, unrotDh, unrotDw, uiMode,
1348 sl = reduceConfigLayout(sl, Surface.ROTATION_180, density, unrotD
1316 computeSizeRangesAndScreenLayout(DisplayInfo displayInfo, int displayId, boolean rotated, int uiMode, int dw, int dh, float density, Configuration outConfig) argument
1356 reduceConfigLayout(int curLayout, int rotation, float density, int dw, int dh, int uiMode, int displayId) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java216 * @param densityDpi the density bucket for which to load the resource
783 int orientation, int touchscreen, int density, int keyboard,
816 private native final int loadResourceValue(int ident, short density, TypedValue outValue, argument
782 setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int colorMode, int majorVersion) argument
/frameworks/base/core/java/android/view/
H A DDisplayInfo.java182 * The logical display density which is the basis for density-independent
559 outMetrics.density = outMetrics.noncompatDensity =
561 outMetrics.scaledDensity = outMetrics.noncompatScaledDensity = outMetrics.density;
627 sb.append(", density ");
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgePackageManager.java556 public Drawable getUserBadgeForDensity(UserHandle user, int density) { argument
561 public Drawable getUserBadgeForDensityNoBackground(UserHandle user, int density) { argument
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp1413 // Apply the density level the Reverb.
1449 // Get the density level applied to the Revervb.
1510 ReverbSetDensity(pContext, preset->density);
1655 pProperties->density = ReverbGetDensity(pContext);
1675 ALOGV("\tReverb_getParameter() REVERB_PARAM_PROPERTIES Value is density %d",
1676 pProperties->density);
1788 ReverbSetDensity(pContext, pProperties->density);
/frameworks/base/core/java/android/widget/
H A DStackView.java223 // Adjust the frame padding based on the density, since the highlight changes based
224 // on the density
225 final float density = mContext.getResources().getDisplayMetrics().density;
226 mFramePadding = (int) Math.ceil(density * FRAME_PADDING);
1393 mDensity = context.getResources().getDisplayMetrics().density;
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DIWindowManagerImpl.java322 public void setForcedDisplayDensityForUser(int displayId, int density, int userId) argument

Completed in 6048 milliseconds

12345678910