/external/srec/srec/cfront/ |
spec_anl.c | 46 void peakpick(front_freq *freqobj, fftdata *density, int num_freq); 52 void filtbank(front_freq *freqobj, fftdata *density, cepdata *fbo); 214 void peakpick(front_freq *freqobj, fftdata *density, int num_freq) 243 ASSERT(density[last] >= 0); 244 peak = density[last]; 249 if (density[i] > peak) 250 peak = density[i]; 252 density[i] = peak; 257 peak = density[first]; 261 if (density[i] > peak [all...] |
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 76 * size post scaling (for density / sample size) is smaller.</p> 168 * The pixel density to use for the bitmap. This will always result 169 * in the returned bitmap having a density set for it (see 172 * density does not match {@link #inTargetDensity}, then the bitmap 173 * will be scaled to the target density before being returned. 179 * will fill in the density associated with the resource. The other 180 * functions will leave it as-is and no density will be applied. 191 * The pixel density of the destination this bitmap will be drawn to. 200 * will fill in the density associated the Resources object's 202 * functions will leave it as-is and no scaling for density will b 410 final int density = value.density; local 532 final int density = opts.inDensity; local [all...] |
/frameworks/base/core/java/android/preference/ |
PreferenceFrameLayout.java | 53 float density = context.getResources().getDisplayMetrics().density; local 54 int defaultBorderTop = (int) (density * DEFAULT_BORDER_TOP + 0.5f); 55 int defaultBottomPadding = (int) (density * DEFAULT_BORDER_BOTTOM + 0.5f); 56 int defaultLeftPadding = (int) (density * DEFAULT_BORDER_LEFT + 0.5f); 57 int defaultRightPadding = (int) (density * DEFAULT_BORDER_RIGHT + 0.5f);
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/ |
UiUtils.java | 58 final float density = context.getResources().getDisplayMetrics().density; local 59 return bottomMargin > KEYBOARD_DETECT_BOTTOM_THRESHOLD_DP * density;
|
/cts/tests/src/android/widget/cts/ |
WidgetTestUtils.java | 98 * Compare the expected pixels with actual, scaling for the target context density 103 Assert.assertEquals(expected * context.getResources().getDisplayMetrics().density, 107 /** Converts dips into pixels using the {@link Context}'s density. */ 109 float density = context.getResources().getDisplayMetrics().density; local 110 return Math.round(density * dip); 114 * Retrieve a bitmap that can be used for comparison on any density 125 * Retrieve a dithered bitmap that can be used for comparison on any density
|
/external/eigen/test/ |
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); 109 initSparse(double density, 118 sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); 127 Scalar v = (internal::random<double>(0,1) < density) ? internal::random<Scalar>() : Scalar(0); 158 initSparse(double density, 164 sparseVec.reserve(int(refVec.size()*density)); [all...] |
sparse_product.cpp | 46 double density = (std::max)(8./(rows*cols), 0.01); local 72 initSparse(density, refMat2, m2); 73 initSparse(density, refMat2t, m2t); 74 initSparse(density, refMat3, m3); 75 initSparse(density, refMat3t, m3t); 76 initSparse(density, refMat4, m4); 77 initSparse(density, refMat4t, m4t); 78 initSparse(density, refMat6, m6); 129 initSparse<Scalar>(density, refM2, m2); 130 initSparse<Scalar>(density, refM3, m3) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
TypedValueTest.java | 18 metrics.density = 0.5f; 65 expectedValue.density = 4; 75 assertThat(expectedValue.density, equalTo(actualValue.density));
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
CustomBar.java | 27 import com.android.resources.Density; 64 protected CustomBar(Context context, Density density, int orientation, String layoutPath, 90 private InputStream getIcon(String iconName, Density[] densityInOut, LayoutDirection direction, 92 // current density 93 Density density = densityInOut[0]; local 97 pathOut[0] = "/bars/" + direction.getResourceValue() + "-" + density.getResourceValue() 100 pathOut[0] = "/bars/" + density.getResourceValue() + "/" + iconName; 105 for (Density d : Density.values()) [all...] |
/cts/tests/tests/holo/src/android/holo/cts/ |
DisplayInfoActivity.java | 41 int width = Math.round(dm.widthPixels / dm.density); 42 int height = Math.round(dm.heightPixels / dm.density);
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
NavigationPopup.java | 74 float density = mContext.getResources().getDisplayMetrics().density; local 75 mFaviconSize = (int) (density * FAVICON_SIZE_DP); 176 float density = mContext.getResources().getDisplayMetrics().density; local 177 float fadeLength = (FADE_LENGTH_DP * density); 180 mListItemHeight = (int) (density * LIST_ITEM_HEIGHT_DP); 181 mPadding = (int) (density * PADDING_DP);
|
/external/eigen/bench/ |
sparse_dense_product.cpp | 10 #ifndef DENSITY 11 #define DENSITY 0.01 56 float density = DENSITY; local 63 for (float density = DENSITY; density>=MINDENSITY; density*=0.5) 65 //fillMatrix(density, rows, cols, sm1); 71 std::cout << "Eigen Dense\t" << density*100 << "%\n" [all...] |
sparse_lu.cpp | 15 #ifndef DENSITY 16 #define DENSITY 0.01 76 float density = DENSITY; local 84 //for (float density = DENSITY; density>=MINDENSITY; density*=0.5) 85 // float density = 0.5; 88 fillMatrix(density, rows, cols, sm1) [all...] |
/frameworks/base/core/java/android/text/style/ |
AbsoluteSizeSpan.java | 75 ds.setTextSize(mSize * ds.density); 84 ds.setTextSize(mSize * ds.density);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderAction.java | 31 import com.android.resources.Density; 110 metrics.density = metrics.noncompatDensity = 113 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; 262 // clear the stored ViewConfiguration since the map is per density and not per context. 342 Density density = hardwareConfig.getDensity(); local 343 if (density == null) { 344 density = Density.MEDIUM; 347 config.screenWidthDp = hardwareConfig.getScreenWidth() / density.getDpiValue() [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
PagerTabStrip.java | 87 final float density = context.getResources().getDisplayMetrics().density; local 88 mIndicatorHeight = (int) (INDICATOR_HEIGHT * density + 0.5f); 89 mMinPaddingBottom = (int) (MIN_PADDING_BOTTOM * density + 0.5f); 90 mMinTextSpacing = (int) (MIN_TEXT_SPACING * density); 91 mTabPadding = (int) (TAB_PADDING * density + 0.5f); 92 mFullUnderlineHeight = (int) (FULL_UNDERLINE_HEIGHT * density + 0.5f); 93 mMinStripHeight = (int) (MIN_STRIP_HEIGHT * density + 0.5f);
|
/external/eigen/test/eigen2/ |
eigen2_sparse_product.cpp | 19 double density = std::max(8./(rows*cols), 0.01); local 32 initSparse<Scalar>(density, refMat2, m2); 33 initSparse<Scalar>(density, refMat3, m3); 34 initSparse<Scalar>(density, refMat4, m4); 63 initSparse<Scalar>(density, refM2, m2); 64 initSparse<Scalar>(density, refM3, m3); 83 initSparse<Scalar>(density, refUp, mUp, ForceRealDiag|/*ForceNonZeroDiag|*/MakeUpperTriangular);
|
eigen2_sparse_basic.cpp | 53 double density = std::max(8./(rows*cols), 0.01); local 65 initSparse<Scalar>(density, refMat, m, 0, &zeroCoords, &nonzeroCoords); 188 initSparse<Scalar>(density, refM1, m1); 210 initSparse<Scalar>(density, refM1, m1); 211 initSparse<Scalar>(density, refM2, m2); 212 initSparse<Scalar>(density, refM3, m3); 213 initSparse<Scalar>(density, refM4, m4); 238 initSparse<Scalar>(density, refMat2, m2); 252 initSparse<Scalar>(density, refMat2, m2); 267 initSparse<Scalar>(density, refMat2, m2) [all...] |
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
SharingReceiverSupport.java | 48 final float density = getResources().getDisplayMetrics().density; local 49 final int iconSize = (int) (ICON_SIZE * density + 0.5f);
|
/external/icu4c/tools/toolutil/ |
denseranges.cpp | 91 * @param density Minimum average range density, in 256th. (0x100=100%=perfectly dense.) 95 * @return Minimum number of ranges (at most capacity) that have the desired density, 96 * or 0 if that density cannot be achieved. 100 int32_t density, 110 if(length>=(density*maxLength)/0x100) { 139 // of the requested density. 143 if(length>num*2 && length>=(density*maxLength)/0x100) {
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
CaffeinatedScrollView.java | 50 mBottomSlop = (int)(4 * getResources().getDisplayMetrics().density);
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
adfs_fs.h | 14 __u8 density; member in struct:adfs_discrecord
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
adfs_fs.h | 14 __u8 density; member in struct:adfs_discrecord
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
adfs_fs.h | 14 __u8 density; member in struct:adfs_discrecord
|
/system/media/audio_effects/include/audio_effects/ |
effect_environmentalreverb.h | 61 int16_t density; member in struct:s_reverb_settings
|