/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
H A D | SelectionRenderer.java | 25 int stroke, Paint paint) { 26 canvas.drawRect(left, top, right, top + stroke, paint); 27 canvas.drawRect(left, bottom - stroke, right, bottom, paint); 28 canvas.drawRect(left, top, left + stroke, bottom, paint); 29 canvas.drawRect(right - stroke, top, right, bottom, paint); 33 int stroke, Paint selectPaint, int border, Paint borderPaint) { 34 canvas.drawRect(left, top, right, top + stroke, selectPaint); 35 canvas.drawRect(left, bottom - stroke, right, bottom, selectPaint); 36 canvas.drawRect(left, top, left + stroke, bottom, selectPaint); 37 canvas.drawRect(right - stroke, to 24 drawSelection(Canvas canvas, int left, int top, int right, int bottom, int stroke, Paint paint) argument 32 drawSelection(Canvas canvas, int left, int top, int right, int bottom, int stroke, Paint selectPaint, int border, Paint borderPaint) argument [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | WnnWord.java | 30 public String stroke; field in class:WnnWord 49 * @param stroke The reading of word 51 public WnnWord(String candidate, String stroke) { argument 52 this(0, candidate, stroke, new WnnPOS(), 0, 0); 59 * @param stroke The reading of word 62 public WnnWord(String candidate, String stroke, int frequency) { argument 63 this(0, candidate, stroke, new WnnPOS(), frequency, 0); 70 * @param stroke The reading of word 73 public WnnWord(String candidate, String stroke, WnnPOS posTag) { argument 74 this(0, candidate, stroke, posTa 85 WnnWord(String candidate, String stroke, WnnPOS posTag, int frequency) argument 98 WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency) argument 112 WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency, int attribute) argument [all...] |
H A D | WnnClause.java | 30 * @param stroke The reading of the clause 34 public WnnClause(String candidate, String stroke, WnnPOS posTag, int frequency) { argument 36 stroke, 44 * @param stroke The reading of the clause 47 public WnnClause (String stroke, WnnWord stem) { argument 50 stroke, 59 * @param stroke The reading of the clause 63 public WnnClause (String stroke, WnnWord stem, WnnWord fzk) { argument 66 stroke,
|
H A D | WnnSentence.java | 42 this.stroke = ""; 53 this.stroke = input; 68 this.stroke = input; 85 this.stroke = input; 103 this.stroke = prev.stroke + clause.stroke; 124 this.stroke = head.stroke; 134 this.stroke [all...] |
H A D | UserDictionaryToolsList.java | 408 wnnWordSearch.stroke = focusPairString.toString(); 411 wnnWordSearch.stroke = focusString.toString(); 585 delword.stroke = searchword.stroke; 678 UserDictionaryToolsListFocus stroke = new UserDictionaryToolsListFocus(this); 679 stroke.setId(i); 680 stroke.setWidth(system_width/2); 681 stroke.setTextSize(WORD_TEXT_SIZE); 682 stroke.setTextColor(Color.LTGRAY); 683 stroke [all...] |
H A D | UserDictionaryToolsEdit.java | 77 /** The constant for notifying dialog (The length of specified stroke or candidate exceeds the limit) */ 149 mBeforeEditWnnWord.stroke = ((TextView)sFocusingView).getText().toString(); 249 String stroke = mReadEditText.getText().toString(); 251 if (addDictionary(stroke, candidate)) { 261 String stroke = mReadEditText.getText().toString(); 263 if (addDictionary(stroke, candidate)) { 266 addDictionary(mBeforeEditWnnWord.stroke, mBeforeEditWnnWord.candidate); 333 * @param stroke The stroke of the word 337 private boolean addDictionary(String stroke, Strin argument [all...] |
H A D | OpenWnnDictionaryImpl.java | 44 /** The maximum length of stroke */ 60 protected static final String COLUMN_NAME_STROKE = "stroke"; 474 queryArgs[ 0 ] = wnnWord.stroke; 605 OpenWnnDictionaryImplJni.setStroke( this.mWnnWork, wnnWord.stroke ); 638 /* Skip results if that is not contained the type of search or length of stroke is not equal specified length */ 649 result.stroke = mDbCursor.getString( 0 ); 684 result.stroke = OpenWnnDictionaryImplJni.getStroke( this.mWnnWork ); 727 words[ i ].stroke = cursor.getString( 0 ); 874 if( word[index].stroke.length() > 0 && word[index].stroke [all...] |
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
H A D | DirectionClassifier.java | 20 * A classifier which looks at the general direction of a stroke and evaluates it depending on the 32 public float getFalseTouchEvaluation(Stroke stroke) { argument 33 Point firstPoint = stroke.getPoints().get(0); 34 Point lastPoint = stroke.getPoints().get(stroke.getPoints().size() - 1);
|
H A D | EndPointRatioClassifier.java | 20 * A classifier which looks at the ratio between the total length covered by the stroke and the 21 * distance between the first and last point from this stroke. 34 public float getFalseTouchEvaluation(Stroke stroke) { argument 36 if (stroke.getTotalLength() == 0.0f) { 39 ratio = stroke.getEndPointLength() / stroke.getTotalLength();
|
H A D | DurationCountClassifier.java | 20 * A classifier which looks at the ratio between the duration of the stroke and its number of 32 public float getFalseTouchEvaluation(Stroke stroke) { argument 33 return DurationCountEvaluator.evaluate(stroke.getDurationSeconds() / stroke.getCount());
|
H A D | LengthCountClassifier.java | 20 * A classifier which looks at the ratio between the length of the stroke and its number of points. 35 public float getFalseTouchEvaluation(Stroke stroke) { argument 37 stroke.getTotalLength() / Math.max(1.0f, stroke.getCount() - 2));
|
H A D | SpeedClassifier.java | 20 * A classifier that looks at the speed of the stroke. It calculates the speed of a stroke in inches 33 public float getFalseTouchEvaluation(Stroke stroke) { argument 34 float duration = stroke.getDurationSeconds(); 38 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration);
|
H A D | StrokeClassifier.java | 19 /** An abstract class for classifiers which classify each stroke separately. */ 23 * @param stroke the stroke for which the evaluation will be calculated 27 public abstract float getFalseTouchEvaluation(Stroke stroke); argument
|
H A D | EndPointLengthClassifier.java | 20 * A classifier which looks at the distance between the first and the last point from the stroke. 33 public float getFalseTouchEvaluation(Stroke stroke) { argument 34 return EndPointLengthEvaluator.evaluate(stroke.getEndPointLength());
|
H A D | AccelerationClassifier.java | 52 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); 53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1); 54 if (mStrokeMap.get(stroke) == null) { 55 mStrokeMap.put(stroke, new Data(point)); 57 mStrokeMap.get(stroke).addPoint(point); 63 public float getFalseTouchEvaluation(Stroke stroke) { argument 64 Data data = mStrokeMap.get(stroke);
|
H A D | SpeedAnglesClassifier.java | 26 * A classifier which for each point from a stroke, it creates a point on plane with coordinates 29 * (without splitting it into two parts). The classifier ignores the last point of a stroke because 33 * a good stroke is most often increases, so most of these angels should be in this interval. 56 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); 58 if (mStrokeMap.get(stroke) == null) { 59 mStrokeMap.put(stroke, new Data()); 65 mStrokeMap.get(stroke).addPoint(stroke.getPoints().get(stroke.getPoints().size() - 1)); 71 public float getFalseTouchEvaluation(Stroke stroke) { argument [all...] |
H A D | AnglesClassifier.java | 26 * A classifier which calculates the variance of differences between successive angles in a stroke. 27 * For each stroke it keeps its last three points. If some successive points are the same, it 30 * calculated angle. Then it calculates the variance of the differences from a stroke. To the 35 * <p>This classifier also tries to split the stroke into two parts in the place in which the 38 * one direction and then they rapidly change direction for the rest of the stroke (like a tick). 39 * The final result is the minimum of angle variance of the whole stroke and the sum of angle 70 Stroke stroke = mClassifierData.getStroke(event.getPointerId(i)); 72 if (mStrokeMap.get(stroke) == null) { 73 mStrokeMap.put(stroke, new Data()); 75 mStrokeMap.get(stroke) 80 getFalseTouchEvaluation(Stroke stroke) argument [all...] |
H A D | HumanInteractionClassifier.java | 95 Stroke stroke = mClassifierData.getEndingStrokes().get(i); 98 float e = c.getFalseTouchEvaluation(stroke);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
H A D | UserDictionaryToolsListEN.java | 72 return word1.stroke.compareTo(word2.stroke);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
H A D | UserDictionaryToolsListJAJP.java | 69 return word1.stroke.compareTo(word2.stroke);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | FilterDrawRepresentation.java | 126 return "stroke(" + mType + ", path(" + (mPath) + "), " + mRadius + " , " 354 StrokeData stroke = new StrokeData(); 359 stroke.mColor = sreader.nextInt(); 361 stroke.mRadius = (float) sreader.nextDouble(); 363 stroke.mType = (byte) sreader.nextInt(); 365 stroke.noPoints = sreader.nextInt(); 371 if ((count + 1) > stroke.mPoints.length) { 372 stroke.mPoints = Arrays.copyOf(stroke.mPoints, count * 2); 374 stroke [all...] |
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
H A D | ndfdic.c | 204 NJ_CHAR *stroke; local 211 stroke = buf; 225 NJ_CHAR_COPY(stroke, area); 226 stroke++; 229 *stroke = NJ_CHAR_NUL; 232 dic_ylen = convert_to_yomi(hdl, area, DATA_YOMI_SIZE(data), stroke, size); 319 NJ_CHAR stroke[NJ_MAX_LEN + NJ_TERM_LEN]; local 335 yomilen = njd_f_get_stroke(word, stroke, sizeof(stroke)); 357 NJ_INT16 njd_f_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT1 argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | GestureTrailDrawingPoints.java | 34 * stroke. This class holds drawing points of those gesture strokes to draw as a gesture trail. 72 public void addStroke(final GestureStrokeDrawingPoints stroke, final long downTime) { argument 74 addStrokeLocked(stroke, downTime); 78 private void addStrokeLocked(final GestureStrokeDrawingPoints stroke, final long downTime) { argument 80 stroke.appendPreviewStroke(mEventTimes, mXCoordinates, mYCoordinates, mPointTypes); 85 final int strokeId = stroke.getGestureStrokeId(); 87 // the interpolated points in the last segment of gesture stroke, it may need recalculation 88 // of interpolation when new segments are added to the stroke. 96 mLastInterpolatedDrawIndex = stroke.interpolateStrokeAndReturnStartIndexOfLastSegment( 247 // The start index of the last segment of the stroke [all...] |
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/ |
H A D | nj_ext.h | 85 NJ_CHAR *stroke, NJ_UINT16 size); 96 extern NJ_INT16 njd_b_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size); 101 extern NJ_INT16 njd_f_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, 115 NJ_CHAR *stroke, NJ_UINT16 size);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartNetworkSeriesView.java | 92 final int stroke = a.getColor(R.styleable.ChartNetworkSeriesView_strokeColor, Color.RED); 99 setChartColor(stroke, fill, fillSecondary); 115 public void setChartColor(int stroke, int fill, int fillSecondary) { argument 118 mPaintStroke.setColor(stroke);
|