/frameworks/layoutlib/bridge/src/android/graphics/ |
BitmapFactory_Delegate.java | 22 import com.android.resources.Density; 55 Density density = Density.MEDIUM; local 58 density = Density.getEnum(opts.inDensity); 76 density); 92 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density); 127 * Set the newly decoded bitmap's density based on the Options. 135 final int density = opts.inDensity local [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
LowRamDeviceTest.java | 78 int density = mDisplayMetrics.densityDpi; local 84 Log.i(TAG, String.format("density=%d, supports64Bit=%s, screenSize=%d, watch=%s", 85 density, supports64Bit, screenSize, watch)); 90 } else if (lessThanDpi(density, DENSITY_HIGH, screenSize, 92 lessThanDpi(density, DENSITY_MEDIUM, screenSize, SCREENLAYOUT_SIZE_LARGE) || 93 lessThanDpi(density, DENSITY_LOW, screenSize, SCREENLAYOUT_SIZE_XLARGE)) { 100 } else if (greaterThanDpi(density, DENSITY_560, screenSize, 102 greaterThanDpi(density, DENSITY_400, screenSize, SCREENLAYOUT_SIZE_LARGE) || 103 greaterThanDpi(density, DENSITY_XHIGH, screenSize, SCREENLAYOUT_SIZE_XLARGE)) { 110 } else if (greaterThanDpi(density, DENSITY_400, screenSize [all...] |
/external/eigen/bench/ |
sparse_trisolver.cpp | 11 #ifndef DENSITY 12 #define DENSITY 0.01 40 void fillMatrix(float density, int rows, int cols, EigenSparseTriMatrix& dst) 42 dst.startFill(rows*cols*density); 47 Scalar v = (internal::random<float>(0,1) < density) ? internal::random<Scalar>() : 0; 60 float density = DENSITY; local 70 for (float density = DENSITY; density>=MINDENSITY; density*=0.5 [all...] |
sparse_transpose.cpp | 10 #ifndef DENSITY 11 #define DENSITY 0.01 40 float density = DENSITY; local 45 for (float density = DENSITY; density>=MINDENSITY; density*=0.5) 47 fillMatrix(density, rows, cols, sm1);
|
/external/eigen/test/ |
sparse_solvers.cpp | 13 initSPD(double density, 18 initSparse(density,refMat,sparseMat); 22 initSparse(density,aux,sparseMat,ForceNonZeroDiag); 35 double density = (std::max)(8./(rows*cols), 0.01); local 52 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular, &zeroCoords, &nonzeroCoords); 57 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonzeroCoords); 71 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular, &zeroCoords, &nonzeroCoords); 76 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonzeroCoords); 84 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeLowerTriangular); 85 initSparse<Scalar>(density, refMatB, matB) [all...] |
sparse.h | 50 * and a ratio of \a density non zero entries. 57 initSparse(double density, 66 //sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); 67 sparseMat.reserve(VectorXi::Constant(IsRowMajor ? refMat.rows() : refMat.cols(), int((1.5*density)*(IsRowMajor?refMat.cols():refMat.rows())))); 77 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0); 112 initSparse(double density, 121 sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); 130 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0); 161 initSparse(double density, 167 sparseVec.reserve(int(refVec.size()*density)); [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
IProjectionService.aidl | 25 void startRendering(in Surface surface, int width, int height, int density, int viewType);
|
/external/deqp/framework/platform/android/ |
tcuAndroidUtil.hpp | 60 float density; member in struct:tcu::Android::DisplayMetrics 71 : density (0.0f)
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
DisplayDensityUtils.java | 37 * Utility methods for working with display density. 42 /** Minimum increment between density scales. */ 45 /** Minimum density scale. This is available on all devices. */ 48 /** Maximum density scale. The actual scale used depends on the device. */ 124 final int density = ((int) (defaultDensity * (1 - (i + 1) * interval))) & ~1; local 125 if (currentDensity == density) { 129 values[curIndex] = density; 145 final int density = ((int) (defaultDensity * (1 + (i + 1) * interval))) & ~1; local 146 if (currentDensity == density) { 149 values[curIndex] = density; [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
Display.java | 38 * Returns logical density of the display. 40 public static float density(Context context) { method in class:Display 41 return context.getResources().getDisplayMetrics().density;
|
/cts/hostsidetests/theme/ |
avd.py | 78 def configure_screen(self, density, width_dp, height_dp): 79 width_px = int(math.ceil(width_dp * density / 1600) * 10) 80 height_px = int(math.ceil(height_dp * density / 1600) * 10) 81 self._opts = "-prop qemu.sf.lcd_density=%d -skin %dx%d " % (density, width_px, height_px)
|
/cts/tests/tests/util/src/android/util/cts/ |
DisplayMetricsTest.java | 51 // according to Android emulator doc UI -scale confine density should between 0.1 to 4 52 assertTrue((0.1 <= outMetrics.density) && (outMetrics.density <= 4)); 63 // according to Android emulator doc UI -scale confine density should between 0.1 to 4 64 assertTrue((0.1 <= metrics.density) && (metrics.density <= 4));
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
ChiSquaredDistributionImpl.java | 112 * Return the probability density for a particular point. 114 * @param x The point at which the density should be computed. 119 public double density(Double x) { method in class:ChiSquaredDistributionImpl 120 return density(x.doubleValue()); 124 * Return the probability density for a particular point. 126 * @param x The point at which the density should be computed. 131 public double density(double x) { method in class:ChiSquaredDistributionImpl 132 return gamma.density(x);
|
ExponentialDistributionImpl.java | 102 * Return the probability density for a particular point. 104 * @param x The point at which the density should be computed. 106 * @deprecated - use density(double) 109 public double density(Double x) { method in class:ExponentialDistributionImpl 110 return density(x.doubleValue()); 114 * Return the probability density for a particular point. 116 * @param x The point at which the density should be computed. 121 public double density(double x) { method in class:ExponentialDistributionImpl
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
TouchTargetEnforcer.java | 34 /** @see DisplayMetrics#density */ 42 * @param density {@link DisplayMetrics#density} 45 public TouchTargetEnforcer(float density) { 46 this(density, TouchDelegate::new); 52 * @param density {@link DisplayMetrics#density} 55 TouchTargetEnforcer(float density, TouchDelegateProvider touchDelegateProvider) { 56 mDensity = density;
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
DvrPlaybackActivity.java | 70 float density = getResources().getDisplayMetrics().density; local 71 mOverlayFragment.onWindowSizeChanged((int) (newConfig.screenWidthDp * density), 72 (int) (newConfig.screenHeightDp * density));
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
Utils.java | 95 float density = ctx.getResources().getDisplayMetrics().density; local 96 return Math.round((float) dp * density);
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ |
Utils.java | 64 float density = ctx.getResources().getDisplayMetrics().density; local 65 return Math.round((float) dp * density);
|
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/ |
TouchCatcherView.java | 55 float density = getResources().getDisplayMetrics().density; local 56 float lineWidth = 10f * density;
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
PresetPreference.java | 58 final float density = getContext().getResources().getDisplayMetrics().density; local 59 previewText.setTextSize(DEFAULT_FONT_SIZE * density);
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
ConfigurationTest.java | 54 double density = 160.0d * metrics.density; local 55 assertTrue("Screen density must be at least 100 dpi: " + density, density >= 100.0d); 76 assertEquals(metrics.density,
|
/packages/apps/Settings/src/com/android/settings/display/ |
ScreenZoomSettings.java | 55 final DisplayDensityUtils density = new DisplayDensityUtils(getContext()); local 57 final int initialIndex = density.getCurrentIndex(); 59 // Failed to obtain default density, which means we failed to 61 // density and don't let the user change anything. 68 mValues = density.getValues(); 69 mEntries = density.getEntries(); 71 mDefaultDensity = density.getDefaultDensity(); 84 * Persists the selected density and sends a configuration change.
|
/frameworks/base/cmds/wm/src/com/android/commands/wm/ |
Wm.java | 61 " wm density [reset|DENSITY]\n" + 69 "wm density: override display density.\n" + 97 } else if (op.equals("density")) { 200 int density; local 205 System.out.println("Physical density: " + initialDensity); 207 System.out.println("Override density: " + baseDensity); 213 density = -1; 216 density = Integer.parseInt(densityStr) 285 int density; local [all...] |
/frameworks/base/core/java/android/preference/ |
PreferenceFrameLayout.java | 57 float density = context.getResources().getDisplayMetrics().density; local 58 int defaultBorderTop = (int) (density * DEFAULT_BORDER_TOP + 0.5f); 59 int defaultBottomPadding = (int) (density * DEFAULT_BORDER_BOTTOM + 0.5f); 60 int defaultLeftPadding = (int) (density * DEFAULT_BORDER_LEFT + 0.5f); 61 int defaultRightPadding = (int) (density * DEFAULT_BORDER_RIGHT + 0.5f);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
CircleImageView.java | 53 final float density = getContext().getResources().getDisplayMetrics().density; local 54 final int shadowYOffset = (int) (density * Y_OFFSET); 55 final int shadowXOffset = (int) (density * X_OFFSET); 57 mShadowRadius = (int) (density * SHADOW_RADIUS); 62 ViewCompat.setElevation(this, SHADOW_ELEVATION * density);
|