Lines Matching defs:THRESHOLD
43 * A special widget containing two Sliders and a threshold for each. Moving either slider beyond
44 * the threshold will cause the registered OnTriggerListener.onTrigger() to be called with
58 private static final float THRESHOLD = 2.0f / 3.0f;
106 * by moving it beyond a threshold.
111 * threshold.
117 * the threshold.
123 * the threshold.
128 * Called when the user moves a handle beyond the threshold.
344 final int leftTarget = (int) (THRESHOLD * parentWidth) - targetWidth + handleWidth / 2;
345 final int rightTarget = (int) ((1.0f - THRESHOLD) * parentWidth) - handleWidth / 2;
372 final int top = (int) (THRESHOLD * parentHeight) + handleHeight / 2 - targetHeight;
373 final int bottom = (int) ((1.0f - THRESHOLD) * parentHeight) - handleHeight / 2;
534 mThreshold = isHorizontal() ? THRESHOLD : 1.0f - THRESHOLD;
539 mThreshold = isHorizontal() ? 1.0f - THRESHOLD : THRESHOLD;