Home
last modified time | relevance | path

Searched refs:threshold (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DThresholdingOutputStream.java51 private int threshold; field in ThresholdingOutputStream
75 public ThresholdingOutputStream(int threshold) in ThresholdingOutputStream() argument
77 this.threshold = threshold; in ThresholdingOutputStream()
175 return threshold; in getThreshold()
199 return (written > threshold); in isThresholdExceeded()
218 if (!thresholdExceeded && (written + count > threshold)) in checkThreshold()
DDeferredFileOutputStream.java102 public DeferredFileOutputStream(int threshold, File outputFile) in DeferredFileOutputStream() argument
104 super(threshold); in DeferredFileOutputStream()
123 public DeferredFileOutputStream(int threshold, String prefix, String suffix, File directory) in DeferredFileOutputStream() argument
125 this(threshold, (File)null); in DeferredFileOutputStream()
/packages/apps/Dialer/java/com/android/incallui/
DInCallOrientationEventListener.java83 private static boolean isWithinThreshold(int value, int center, int threshold) { in isWithinThreshold() argument
84 return isWithinRange(value, center - threshold, center + threshold); in isWithinThreshold()
87 private static boolean isInLeftRange(int value, int center, int threshold) { in isInLeftRange() argument
88 return isWithinRange(value, center - threshold, center); in isInLeftRange()
91 private static boolean isInRightRange(int value, int center, int threshold) { in isInRightRange() argument
92 return isWithinRange(value, center, center + threshold); in isInRightRange()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactMatcher.java232 float threshold = emailBased in matchName() local
235 if (distance > threshold) { in matchName()
284 public List<Long> prepareSecondaryMatchCandidates(int threshold) { in prepareSecondaryMatchCandidates() argument
294 if (s >= threshold) { in prepareSecondaryMatchCandidates()
311 public long pickBestMatch(int threshold, boolean allowMultipleMatches) { in pickBestMatch() argument
329 if (s >= threshold) { in pickBestMatch()
347 public List<MatchScore> pickBestMatches(int threshold) { in pickBestMatches() argument
348 int scaledThreshold = threshold * MatchScore.SCORE_SCALE; in pickBestMatches()
DRawContactMatcher.java230 float threshold = emailBased in matchName() local
233 if (distance > threshold) { in matchName()
334 public List<MatchScore> pickBestMatches(int threshold) { in pickBestMatches() argument
335 int scaledThreshold = threshold * SCORE_SCALE; in pickBestMatches()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DUsageBytesThresholdPickerDialog.java145 void setThresholdEditor(long threshold) { in setThresholdEditor() argument
146 updateCurrentView(threshold); in setThresholdEditor()
149 private void updateCurrentView(long threshold) { in updateCurrentView() argument
151 if (threshold > MB_GB_SUFFIX_THRESHOLD * GIB_IN_BYTES) { in updateCurrentView()
152 bytesText = formatText(threshold / (float) GIB_IN_BYTES); in updateCurrentView()
155 bytesText = formatText(threshold / (float) MIB_IN_BYTES); in updateCurrentView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java248 final int threshold = (int) (defaultWidth * SEARCH_DISTANCE); in computeNearestNeighbors() local
249 final int thresholdSquared = threshold * threshold; in computeNearestNeighbors()
330 final int topPixelWithinThreshold = keyY - threshold; in computeNearestNeighbors()
335 final int yEnd = Math.min(lastPixelYCoordinate, keyY + key.getHeight() + threshold); in computeNearestNeighbors()
337 final int leftPixelWithinThreshold = keyX - threshold; in computeNearestNeighbors()
342 final int xEnd = Math.min(lastPixelXCoordinate, keyX + key.getWidth() + threshold); in computeNearestNeighbors()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
DFileFilterUtils.java252 public static IOFileFilter sizeFileFilter(long threshold) { in sizeFileFilter() argument
253 return new SizeFileFilter(threshold); in sizeFileFilter()
264 public static IOFileFilter sizeFileFilter(long threshold, boolean acceptLarger) { in sizeFileFilter() argument
265 return new SizeFileFilter(threshold, acceptLarger); in sizeFileFilter()
/packages/apps/Camera2/src/com/android/camera/app/
DMemoryQuery.java73 long threshold = memoryInfo.threshold / BYTES_IN_MEGABYTE; in queryMemory() local
117 outputData.put(KEY_THRESHOLD, new Long(threshold)); in queryMemory()
124 threshold, lowMemory)); in queryMemory()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DAutoCorrectionUtils.java33 final String consideredWord, final float threshold) { in suggestionExceedsThreshold() argument
51 + "(" + threshold + ")"); in suggestionExceedsThreshold()
53 if (normalizedScore >= threshold) { in suggestionExceedsThreshold()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessageTextStats.java63 final int threshold = mmsConfig.getSmsToMmsTextThreshold(); in updateMessageTextStats() local
64 mMessageLengthRequiresMms = threshold > 0 && mMessageCount > threshold; in updateMessageTextStats()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverSchedulePreferenceController.java67 final int threshold = in getSummary() local
69 if (threshold <= 0) { in getSummary()
73 Utils.formatPercentage(threshold)); in getSummary()
DBatterySaverScheduleSeekBarController.java85 final int threshold = in updateSeekBar() local
87 if (threshold <= 0) { in updateSeekBar()
90 final int currentSeekbarValue = Math.max(threshold / 5, MIN_SEEKBAR_VALUE); in updateSeekBar()
DBatterySaverScheduleRadioButtonsController.java61 final int threshold = in getDefaultKey() local
63 if (threshold <= 0) { in getDefaultKey()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/
DBatterySaverSchedulePreferenceController.java67 final int threshold = in getSummary() local
69 if (threshold <= 0) { in getSummary()
73 Utils.formatPercentage(threshold)); in getSummary()
DBatterySaverScheduleSeekBarController.java85 final int threshold = in updateSeekBar() local
87 if (threshold <= 0) { in updateSeekBar()
90 final int currentSeekbarValue = Math.max(threshold / 5, MIN_SEEKBAR_VALUE); in updateSeekBar()
DBatterySaverScheduleRadioButtonsController.java61 final int threshold = in getDefaultKey() local
63 if (threshold <= 0) { in getDefaultKey()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
DAnswerHintFactory.java97 long threshold = in shouldShowAnswerHint() local
105 threshold); in shouldShowAnswerHint()
106 return answeredCount < threshold; in shouldShowAnswerHint()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp1424 …sFromChunk(float **strength,int left,int top,int right,int bottom,float threshold,double *x_temp,d… in db_CornersFromChunk() argument
1434 if(s>=threshold && in db_CornersFromChunk()
1498 float threshold,double *temp_d, in db_ExtractCornersSaturated() argument
1537 nr=db_CornersFromChunk(strength,x,y,last_x,last_y,threshold,x_temp,y_temp,s_temp); in db_ExtractCornersSaturated()
1541 else loc_thresh=threshold; in db_ExtractCornersSaturated()
1631 float max_val,threshold; in DetectCorners() local
1638 threshold= (float) db_maxd(m_a_thresh,max_val*m_r_thresh); in DetectCorners()
1640 else threshold= (float) m_a_thresh; in DetectCorners()
1642 …nersSaturated(m_strength,BORDER,BORDER,m_w-BORDER-1,m_h-BORDER-1,m_bw,m_bh,m_area_factor,threshold, in DetectCorners()
1730 float max_val,threshold; in DetectCorners() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSuggest.java81 public void setAutoCorrectionThreshold(final float threshold) { in setAutoCorrectionThreshold() argument
82 mAutoCorrectionThreshold = threshold; in setAutoCorrectionThreshold()
90 public void setPlausibilityThreshold(final float threshold) { in setPlausibilityThreshold() argument
91 mPlausibilityThreshold = threshold; in setPlausibilityThreshold()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DProximityEvaluator.java22 float threshold = 0.1f; in evaluate() local
23 if (value >= threshold) { in evaluate()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DHighUsageDataParser.java42 public HighUsageDataParser(long timePeriodMs, int threshold) { in HighUsageDataParser() argument
44 mThreshold = threshold; in HighUsageDataParser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DHighUsageDataParser.java42 public HighUsageDataParser(long timePeriodMs, int threshold) { in HighUsageDataParser() argument
44 mThreshold = threshold; in HighUsageDataParser()
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DMostRecentImageSaver.java96 private void closeOlderImages(long threshold, Map<Long, ? extends ImageProxy> imageMap) { in closeOlderImages() argument
99 if (imageTimestamp < threshold) { in closeOlderImages()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java418 long threshold = in updateActions() local
424 > threshold; in updateActions()
428 threshold = in updateActions()
433 getRecordEndTimeMs() - mCurrentPositionMediator.mCurrentPositionMs > threshold; in updateActions()

12