Searched refs:density (Results 1 - 25 of 89) sorted by relevance

1234

/external/qemu/android/
H A Dhw-lcd.c17 hwLcd_setBootProperty(int density) argument
21 /* Map density to one of our five bucket values.
22 The TV density is a bit particular (and not actually a bucket
25 if (density != LCD_DENSITY_TVDPI) {
26 if (density < (LCD_DENSITY_LDPI + LCD_DENSITY_MDPI)/2)
27 density = LCD_DENSITY_LDPI;
28 else if (density < (LCD_DENSITY_MDPI + LCD_DENSITY_HDPI)/2)
29 density = LCD_DENSITY_MDPI;
30 else if (density < (LCD_DENSITY_HDPI + LCD_DENSITY_XHDPI)/2)
31 density
[all...]
H A Dhw-lcd.h24 /* Sets the boot property corresponding to the emulated abstract LCD density */
25 extern void hwLcd_setBootProperty(int density);
/external/chromium_org/third_party/icu/source/tools/toolutil/
H A Ddenseranges.h27 * @param density Minimum average range density, in 256th. (0x100=100%=perfectly dense.)
31 * @return Minimum number of ranges (at most capacity) that have the desired density,
32 * or 0 if that density cannot be achieved.
36 int32_t density,
/external/icu/icu4c/source/tools/toolutil/
H A Ddenseranges.h27 * @param density Minimum average range density, in 256th. (0x100=100%=perfectly dense.)
31 * @return Minimum number of ranges (at most capacity) that have the desired density,
32 * or 0 if that density cannot be achieved.
36 int32_t density,
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowViewConfiguration.java75 float density = metrics.density;
77 edgeSlop = (int) (density * EDGE_SLOP + 0.5f);
78 fadingEdgeLength = (int) (density * FADING_EDGE_LENGTH + 0.5f);
79 minimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f);
80 maximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f);
81 scrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f);
82 touchSlop = (int) (density * TOUCH_SLOP + 0.5f);
83 pagingTouchSlop = (int) (density * PAGING_TOUCH_SLOP + 0.5f);
84 doubleTapSlop = (int) (density * DOUBLE_TAP_SLO
[all...]
H A DShadowDisplay.java19 private float density = 1.5f; field in class:ShadowDisplay
35 outMetrics.density = density;
70 return density;
73 public void setDensity(float density) { argument
74 this.density = density;
/external/eigen/test/eigen2/
H A Dsparse.h38 * and a ratio of \a density non zero entries.
45 initSparse(double density, argument
52 sparseMat.startFill(int(refMat.rows()*refMat.cols()*density));
57 Scalar v = (ei_random<double>(0,1) < density) ? ei_random<Scalar>() : Scalar(0);
88 initSparse(double density, argument
95 sparseMat.startFill(int(refMat.rows()*refMat.cols()*density));
100 Scalar v = (ei_random<double>(0,1) < density) ? ei_random<Scalar>() : Scalar(0);
131 initSparse(double density, argument
137 sparseVec.reserve(int(refVec.size()*density));
141 Scalar v = (ei_random<double>(0,1) < density)
[all...]
H A Deigen2_sparse_solvers.cpp13 initSPD(double density, argument
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|MakeLowerTriangular, &zeroCoords, &nonzeroCoords);
62 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonzeroCoords);
67 initSparse<Scalar>(density, refMat2, m2, ForceNonZeroDiag|MakeUpperTriangular, &zeroCoords, &nonzeroCoords);
81 initSPD(density, refMat2, m2);
122 //initSPD(density, refMat
[all...]
H A Deigen2_sparse_product.cpp19 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);
/external/eigen/bench/
H A Dsparse_trisolver.cpp40 void fillMatrix(float density, int rows, int cols, EigenSparseTriMatrix& dst) argument
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)
73 fillMatrix(density, rows, cols, sm1);
80 std::cout << "Eigen Dense\t" << density*100 << "%\n";
98 std::cout << "Eigen sparse\t" << density*10
[all...]
H A Dsparse_transpose.cpp40 float density = DENSITY; local
45 for (float density = DENSITY; density>=MINDENSITY; density*=0.5)
47 fillMatrix(density, rows, cols, sm1);
H A Dsparse_dense_product.cpp56 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";
118 std::cout << "GMM++ sparse\t" << density*100 << "%\n";
137 std::cout << "ublas sparse\t" << density*100 << "%\n";
160 std::cout << "MTL4\t" << density*100 << "%\n";
/external/eigen/test/
H A Dsparse_solvers.cpp13 initSPD(double density, argument
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, refMat
[all...]
H A Dsparse.h50 * and a ratio of \a density non zero entries.
57 initSparse(double density, argument
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, argument
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, argument
164 sparseVec.reserve(int(refVec.size()*density));
182 initSparse(double density, Matrix<Scalar,1,Dynamic>& refVec, SparseVector<Scalar,Options,Index>& sparseVec, std::vector<int>* zeroCoords = 0, std::vector<int>* nonzeroCoords = 0) argument
[all...]
H A Dspqr_support.cpp19 double density = (std::max)(8./(rows*cols), 0.01); local
23 initSparse<Scalar>(density, dA, A,ForceNonZeroDiag);
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
H A DHTMLSrcsetParserTest.cpp26 ASSERT_EQ(candidate.density(), 1);
103 ASSERT_EQ(test.outputDensity, candidate.density());
H A DHTMLSrcsetParser.h54 float density() const { ASSERT(hasDensity()); return m_density; } function in class:blink::DescriptorParsingResult
84 , m_density(result.hasDensity()?result.density():UninitializedDescriptor)
105 float density() const function in class:blink::ImageCandidate
H A DHTMLSrcsetParser.cpp43 return first.density() < second.density();
188 float density = it->toFloat(attribute, isValid); local
189 if (!isValid || density < 0)
191 result.setDensity(density);
281 } else if (it->density() < 0) {
290 if ((imageCandidates[i].density() >= deviceScaleFactor) && (!ignoreSrc || !imageCandidates[i].srcOrigin()))
298 float winningDensity = imageCandidates[i].density();
301 // 16. If an entry b in candidates has the same associated ... pixel density as an earlier entry a in candidates,
303 while ((i > 0) && (imageCandidates[--i].density()
[all...]
/external/chromium_org/content/public/common/
H A Dmanifest.cc13 : density(kDefaultDensity) {
H A Dmanifest.h47 double density; member in struct:content::Manifest::Icon
53 // Default density. Set to 1.0.
/external/srec/srec/cfront/
H A Dspec_anl.c46 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) argument
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[
270 filtbank(front_freq *freqobj, fftdata *density, cepdata *fbo) argument
[all...]
/external/chromium_org/content/common/
H A Dmanifest_manager_messages.h23 IPC_STRUCT_TRAITS_MEMBER(density)
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DTypedValueTest.java18 metrics.density = 0.5f;
65 expectedValue.density = 4;
75 assertThat(expectedValue.density, equalTo(actualValue.density));
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
H A DNavigationPopup.java69 float density = mContext.getResources().getDisplayMetrics().density;
70 mFaviconSize = (int) (density * FAVICON_SIZE_DP);
171 float density = mContext.getResources().getDisplayMetrics().density;
172 float fadeLength = (FADE_LENGTH_DP * density);
175 mListItemHeight = (int) (density * LIST_ITEM_HEIGHT_DP);
176 mPadding = (int) (density * PADDING_DP);
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
H A DViewportTest.java49 assertEquals(metrics.density, evaluateFloatValue("window.devicePixelRatio"), 0.1);
55 assertTrue(viewportWidth <= Math.max(981, metrics.widthPixels / metrics.density + 1));

Completed in 378 milliseconds

1234