Searched defs:tolerance (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DAvoidXfermode.h30 There are two modes, and each mode interprets a tolerance value.
42 static AvoidXfermode* Create(SkColor opColor, U8CPU tolerance, Mode mode) { argument
43 return SkNEW_ARGS(AvoidXfermode, (opColor, tolerance, mode));
58 AvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
H A DXfermode.cpp36 jint tolerance, jint modeHandle)
39 return reinterpret_cast<jlong>(AvoidXfermode::Create(opColor, tolerance, mode));
35 avoid_create(JNIEnv* env, jobject, jint opColor, jint tolerance, jint modeHandle) argument
H A DAvoidXfermode.cpp14 AvoidXfermode::AvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { argument
15 if (tolerance > 255) {
16 tolerance = 255;
18 fTolerance = SkToU8(tolerance);
20 fDistMul = (256 << 14) / (tolerance + 1);
26 const unsigned tolerance = buffer.readUInt(); local
28 return Create(color, tolerance, (Mode)mode);
/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java66 runCount = method.getAnnotation(FlakyTest.class).tolerance();
73 final int tolerance = runCount;
80 runMethod(testMethod, tolerance, repetitive);
116 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { argument
140 } while ((runCount < tolerance) && (isRepetitive || exception != null));
/frameworks/base/graphics/java/android/graphics/
H A DAvoidXfermode.java40 * There are two modes, and each mode interprets a tolerance value.
52 public AvoidXfermode(int opColor, int tolerance, Mode mode) { argument
53 if (tolerance < 0 || tolerance > 255) {
54 throw new IllegalArgumentException("tolerance must be 0..255");
56 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt);
59 private static native long nativeCreate(int opColor, int tolerance, argument
/frameworks/base/tools/aapt/
H A DMain.cpp60 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n"
111 " -g specify a pixel tolerance to force images to grayscale, default 0\n"
258 int tolerance = 0; local
330 tolerance = atoi(argv[0]);
331 bundle.setGrayscaleTolerance(tolerance);
332 printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DAvoidXfermode_Delegate.java64 /*package*/ static long nativeCreate(int opColor, int tolerance, int nativeMode) { argument
/frameworks/base/core/java/android/test/
H A DInstrumentationTestCase.java175 runCount = method.getAnnotation(FlakyTest.class).tolerance();
182 final int tolerance = runCount;
189 runMethod(testMethod, tolerance, repetitive);
204 private void runMethod(Method runMethod, int tolerance) throws Throwable { argument
205 runMethod(runMethod, tolerance, false);
208 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { argument
231 } while ((runCount < tolerance) && (isRepetitive || exception != null));
/frameworks/base/media/jni/
H A Dandroid_media_SyncParams.h41 jfieldID tolerance; member in struct:android::SyncParams::fields_t
/frameworks/base/media/java/android/media/
H A DSyncParams.java52 * <p> <strong>tolerance:</strong> specifies the amount of allowed playback rate
73 * surface that directly renders to a display, and tolerance is non zero (e.g. not
99 * When using this mode, the tolerance should be set to greater than 0 (e.g. at least
104 * better playback experience on most devices. In this case the tolerance should be
230 * Sets the tolerance. The default tolerance is platform specific, but is never more than 1/24.
231 * @param tolerance A non-negative number representing
235 * @throws InvalidArgumentException if the tolerance is negative, or not less than one
237 public SyncParams setTolerance(float tolerance) { argument
238 if (tolerance <
[all...]
/frameworks/native/libs/gui/tests/
H A DGLTest.cpp176 int r, int g, int b, int a, int tolerance) {
188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
217 int tolerance) {
220 if (abs(r1.left - r2.left) > tolerance) {
223 if (abs(r1.top - r2.top) > tolerance) {
229 if (abs(r1.right - r2.right) > tolerance) {
235 if (abs(r1.bottom - r2.bottom) > tolerance) {
175 checkPixel(int x, int y, int r, int g, int b, int a, int tolerance) argument
216 assertRectEq(const Rect &r1, const Rect &r2, int tolerance) argument
[all...]
/frameworks/native/services/sensorservice/
H A Dmat.h308 static bool isPositiveSemidefinite(const mat<TYPE, C, C>& m, TYPE tolerance) { argument
315 if (fabs(m[i][j] - m[j][i]) > tolerance)
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp293 int g, int b, int a, int tolerance=2) {
307 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
310 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
316 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
322 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
292 checkPixel(int x, int y, int r, int g, int b, int a, int tolerance=2) argument
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 2252 milliseconds