/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AutoScrollHelper.java | 212 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 D | android_util_AssetManager.cpp | 117 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 D | android_view_SurfaceControl.cpp | 57 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 D | InsetDrawable.java | 351 * 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 D | LayerDrawable.java | 177 // 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 D | Util.cpp | 38 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 D | ConfigGenerator.java | 283 public ConfigGenerator setDensity(Density density) { argument 284 mDensity = density;
|
/frameworks/base/core/java/android/app/ |
H A D | ApplicationPackageManager.java | 1302 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 D | PlatLogoActivity.java | 75 final float dp = dm.density;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 281 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 D | Bitmap.cpp | 201 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 D | KeyguardClockPositionAlgorithm.java | 88 mDensity = res.getDisplayMetrics().density;
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | SubscriptionInfo.java | 221 // Set text size scaled by density 222 paint.setTextSize(TEXT_SIZE * metrics.density);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | AlphaLayersActivity.java | 56 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f);
|
/frameworks/native/include/android/ |
H A D | configuration.h | 87 /** 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 D | Illustration.java | 81 mBaselineGridSize = getResources().getDisplayMetrics().density * 8;
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | SwipeRefreshLayout.java | 302 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 D | ResourceTypes.cpp | 1846 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 D | DisplayContent.java | 197 * 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 D | AssetManager.java | 216 * @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 D | DisplayInfo.java | 182 * 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 D | BridgePackageManager.java | 556 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 D | EffectReverb.cpp | 1413 // 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 D | StackView.java | 223 // 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 D | IWindowManagerImpl.java | 322 public void setForcedDisplayDensityForUser(int displayId, int density, int userId) argument
|