Home
last modified time | relevance | path

Searched refs:ds (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/text/method/
DTouch.java80 DragState[] ds; in onTouchEvent() local
84 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
86 for (int i = 0; i < ds.length; i++) { in onTouchEvent()
87 buffer.removeSpan(ds[i]); in onTouchEvent()
96 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
98 for (int i = 0; i < ds.length; i++) { in onTouchEvent()
99 buffer.removeSpan(ds[i]); in onTouchEvent()
102 if (ds.length > 0 && ds[0].mUsed) { in onTouchEvent()
109 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
111 if (ds.length > 0) { in onTouchEvent()
[all …]
/frameworks/base/core/java/android/text/style/
DAbsoluteSizeSpan.java73 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
75 ds.setTextSize(mSize * ds.density); in updateDrawState()
77 ds.setTextSize(mSize); in updateDrawState()
82 public void updateMeasureState(TextPaint ds) { in updateMeasureState() argument
84 ds.setTextSize(mSize * ds.density); in updateMeasureState()
86 ds.setTextSize(mSize); in updateMeasureState()
DScaleXSpan.java53 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
54 ds.setTextScaleX(ds.getTextScaleX() * mProportion); in updateDrawState()
58 public void updateMeasureState(TextPaint ds) { in updateMeasureState() argument
59 ds.setTextScaleX(ds.getTextScaleX() * mProportion); in updateMeasureState()
DRelativeSizeSpan.java53 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
54 ds.setTextSize(ds.getTextSize() * mProportion); in updateDrawState()
58 public void updateMeasureState(TextPaint ds) { in updateMeasureState() argument
59 ds.setTextSize(ds.getTextSize() * mProportion); in updateMeasureState()
DTextAppearanceSpan.java200 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
201 updateMeasureState(ds); in updateDrawState()
204 ds.setColor(mTextColor.getColorForState(ds.drawableState, 0)); in updateDrawState()
208 ds.linkColor = mTextColorLink.getColorForState(ds.drawableState, 0); in updateDrawState()
213 public void updateMeasureState(TextPaint ds) { in updateMeasureState() argument
215 Typeface tf = ds.getTypeface(); in updateMeasureState()
235 ds.setFakeBoldText(true); in updateMeasureState()
239 ds.setTextSkewX(-0.25f); in updateMeasureState()
242 ds.setTypeface(tf); in updateMeasureState()
246 ds.setTextSize(mTextSize); in updateMeasureState()
DClickableSpan.java39 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
40 ds.setColor(ds.linkColor); in updateDrawState()
41 ds.setUnderlineText(true); in updateDrawState()
DRasterizerSpan.java35 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
36 ds.setRasterizer(mRasterizer); in updateDrawState()
DMaskFilterSpan.java35 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
36 ds.setMaskFilter(mFilter); in updateDrawState()
DUnderlineSpan.java44 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
45 ds.setUnderlineText(true); in updateDrawState()
DStrikethroughSpan.java44 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
45 ds.setStrikeThruText(true); in updateDrawState()
DBackgroundColorSpan.java54 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
55 ds.bgColor = mColor; in updateDrawState()
DForegroundColorSpan.java54 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
55 ds.setColor(mColor); in updateDrawState()
DStyleSpan.java72 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
73 apply(ds, mStyle); in updateDrawState()
DTypefaceSpan.java64 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
65 apply(ds, mFamily); in updateDrawState()
DReplacementSpan.java42 public void updateDrawState(TextPaint ds) { } in updateDrawState() argument
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java100 KeyEvent.DispatcherState ds = decor.getKeyDispatcherState(); in onKey() local
101 if (ds != null) { in onKey()
102 ds.startTracking(event, this); in onKey()
112 KeyEvent.DispatcherState ds = decor.getKeyDispatcherState(); in onKey() local
113 if (ds != null && ds.isTracking(event)) { in onKey()
/frameworks/base/core/java/android/content/
DSyncStorageEngine.java1070 final DayStats ds = mDayStats[0]; in stopSyncEvent() local
1085 ds.successCount++; in stopSyncEvent()
1086 ds.successTime += elapsedTime; in stopSyncEvent()
1097 ds.failureCount++; in stopSyncEvent()
1098 ds.failureTime += elapsedTime; in stopSyncEvent()
1232 DayStats[] ds = new DayStats[mDayStats.length]; in getDayStatistics() local
1233 System.arraycopy(mDayStats, 0, ds, 0, ds.length); in getDayStatistics()
1234 return ds; in getDayStatistics()
2109 DayStats ds = new DayStats(day); in readStatisticsLocked() local
2110 ds.successCount = in.readInt(); in readStatisticsLocked()
[all …]
DSyncManager.java1194 private void dumpDayStatistic(PrintWriter pw, SyncStorageEngine.DayStats ds) { in dumpDayStatistic() argument
1195 pw.print("Success ("); pw.print(ds.successCount); in dumpDayStatistic()
1196 if (ds.successCount > 0) { in dumpDayStatistic()
1197 pw.print(" for "); dumpTimeSec(pw, ds.successTime); in dumpDayStatistic()
1198 pw.print(" avg="); dumpTimeSec(pw, ds.successTime/ds.successCount); in dumpDayStatistic()
1200 pw.print(") Failure ("); pw.print(ds.failureCount); in dumpDayStatistic()
1201 if (ds.failureCount > 0) { in dumpDayStatistic()
1202 pw.print(" for "); dumpTimeSec(pw, ds.failureTime); in dumpDayStatistic()
1203 pw.print(" avg="); dumpTimeSec(pw, ds.failureTime/ds.failureCount); in dumpDayStatistic()
1414 SyncStorageEngine.DayStats ds; in dumpDayStatistics() local
[all …]
/frameworks/base/core/java/android/widget/
DZoomButtonsController.java483 KeyEvent.DispatcherState ds = mOwnerView.getKeyDispatcherState(); in onContainerKey() local
484 if (ds != null) { in onContainerKey()
485 ds.startTracking(event, this); in onContainerKey()