/packages/apps/Camera/src/com/android/camera/ |
D | HighlightView.java | 178 Rect r = computeLayout(); in getHit() local 183 float distX = x - r.centerX(); in getHit() 184 float distY = y - r.centerY(); in getHit() 211 boolean verticalCheck = (y >= r.top - hysteresis) in getHit() 212 && (y < r.bottom + hysteresis); in getHit() 213 boolean horizCheck = (x >= r.left - hysteresis) in getHit() 214 && (x < r.right + hysteresis); in getHit() 217 if ((Math.abs(r.left - x) < hysteresis) && verticalCheck) { in getHit() 220 if ((Math.abs(r.right - x) < hysteresis) && verticalCheck) { in getHit() 223 if ((Math.abs(r.top - y) < hysteresis) && horizCheck) { in getHit() [all …]
|
D | EvenlySpacedLayout.java | 67 private void layoutHorizontal(boolean changed, int l, int t, int r, int b) { in layoutHorizontal() argument 79 int spacing = (r - l - usedWidth) / in layoutHorizontal() 94 private void layoutVertical(boolean changed, int l, int t, int r, int b) { in layoutVertical() argument 122 protected void onLayout(boolean changed, int l, int t, int r, int b) { in onLayout() argument 124 layoutHorizontal(changed, l, t, r, b); in onLayout() 126 layoutVertical(changed, l, t, r, b); in onLayout()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 180 Rect r = computeLayout(); in getHit() local 185 float distX = x - r.centerX(); in getHit() 186 float distY = y - r.centerY(); in getHit() 213 boolean verticalCheck = (y >= r.top - hysteresis) in getHit() 214 && (y < r.bottom + hysteresis); in getHit() 215 boolean horizCheck = (x >= r.left - hysteresis) in getHit() 216 && (x < r.right + hysteresis); in getHit() 219 if ((Math.abs(r.left - x) < hysteresis) && verticalCheck) { in getHit() 222 if ((Math.abs(r.right - x) < hysteresis) && verticalCheck) { in getHit() 225 if ((Math.abs(r.top - y) < hysteresis) && horizCheck) { in getHit() [all …]
|
D | EvenlySpacedLayout.java | 69 private void layoutHorizontal(boolean changed, int l, int t, int r, int b) { in layoutHorizontal() argument 81 int spacing = (r - l - usedWidth) / in layoutHorizontal() 96 private void layoutVertical(boolean changed, int l, int t, int r, int b) { in layoutVertical() argument 124 protected void onLayout(boolean changed, int l, int t, int r, int b) { in onLayout() argument 126 layoutHorizontal(changed, l, t, r, b); in onLayout() 128 layoutVertical(changed, l, t, r, b); in onLayout()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | RecurrenceProcessor.java | 180 private static int filter(EventRecurrence r, Time iterator) in filter() argument 183 int freq = r.freq; in filter() 187 if (r.bymonthCount > 0) { in filter() 188 found = listContains(r.bymonth, r.bymonthCount, in filter() 198 if (r.byweeknoCount > 0) { in filter() 199 found = listContains(r.byweekno, r.byweeknoCount, in filter() 209 if (r.byyeardayCount > 0) { in filter() 210 found = listContains(r.byyearday, r.byyeardayCount, in filter() 217 if (r.bymonthdayCount > 0 ) { in filter() 218 found = listContains(r.bymonthday, r.bymonthdayCount, in filter() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | SlideshowPresenter.java | 145 RegionModel r = (rMedia).getRegion(); in presentRegionMedia() local 147 presentText(view, (TextModel) rMedia, r, dataChanged); in presentRegionMedia() 149 presentImage(view, (ImageModel) rMedia, r, dataChanged); in presentRegionMedia() 151 presentVideo(view, (VideoModel) rMedia, r, dataChanged); in presentRegionMedia() 175 RegionModel r, boolean dataChanged) { in presentText() argument 182 transformWidth(r.getLeft()), in presentText() 183 transformHeight(r.getTop()), in presentText() 184 transformWidth(r.getWidth()), in presentText() 185 transformHeight(r.getHeight())); in presentText() 197 RegionModel r, boolean dataChanged) throws DrmException { in presentImage() argument [all …]
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | TaskStack.java | 17 Runnable r = null; 20 r = mThingsToLoad.pop(); 23 if (r != null) { 24 r.run(); 29 public void push(Runnable r) { in push() argument 31 mThingsToLoad.push(r); in push()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | CandidateView.java | 230 Resources r = context.getResources(); in CandidateView() local 232 Configuration conf = r.getConfiguration(); in CandidateView() 238 mActiveCellDrawable = r.getDrawable(R.drawable.candidate_hl_bg); in CandidateView() 239 mSeparatorDrawable = r.getDrawable(R.drawable.candidates_vertical_line); in CandidateView() 240 mCandidateMargin = r.getDimension(R.dimen.candidate_margin_left_right); in CandidateView() 242 mImeCandidateColor = r.getColor(R.color.candidate_color); in CandidateView() 243 mRecommendedCandidateColor = r.getColor(R.color.recommended_candidate_color); in CandidateView() 245 mActiveCandidateColor = r.getColor(R.color.active_candidate_color); in CandidateView() 252 mFootnotePaint.setColor(r.getColor(R.color.footnote_color)); in CandidateView() 611 RectF r = mCandRects.elementAt(i); [all …]
|
D | InputModeSwitcher.java | 377 Resources r = mImeService.getResources(); in InputModeSwitcher() local 378 mToggleStateCn = Integer.parseInt(r.getString(R.string.toggle_cn)); in InputModeSwitcher() 379 mToggleStateCnCand = Integer.parseInt(r in InputModeSwitcher() 381 mToggleStateEnLower = Integer.parseInt(r in InputModeSwitcher() 383 mToggleStateEnUpper = Integer.parseInt(r in InputModeSwitcher() 385 mToggleStateEnSym1 = Integer.parseInt(r in InputModeSwitcher() 387 mToggleStateEnSym2 = Integer.parseInt(r in InputModeSwitcher() 389 mToggleStateSmiley = Integer.parseInt(r in InputModeSwitcher() 391 mToggleStatePhoneSym = Integer.parseInt(r in InputModeSwitcher() 395 .parseInt(r.getString(R.string.toggle_enter_go)); in InputModeSwitcher() [all …]
|
D | ComposingView.java | 112 Resources r = context.getResources(); in ComposingView() local 113 mHlDrawable = r.getDrawable(R.drawable.composing_hl_bg); in ComposingView() 114 mCursor = r.getDrawable(R.drawable.composing_area_cursor); in ComposingView() 116 mStrColor = r.getColor(R.color.composing_color); in ComposingView() 117 mStrColorHl = r.getColor(R.color.composing_color_hl); in ComposingView() 118 mStrColorIdle = r.getColor(R.color.composing_color_idle); in ComposingView() 120 mFontSize = r.getDimensionPixelSize(R.dimen.composing_height); in ComposingView()
|
/packages/apps/Launcher2/res/raw/ |
D | rollo2.c | 346 int r, c; in main() local 347 for (r=0; r < 4; r++) { in main() 349 int iconNum = drawPage * 16 + c + r * 4; in main() 355 drawIcon(r, p, iconNum); in main() 363 int r, c; in main() local 364 for (r=0; r < 4; r++) { in main() 366 int iconNum = drawPage * 16 + c + r * 4; in main() 372 float y = 570 - r * 147; in main() 375 drawIcon(r, p, iconNum); in main()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | MonthView.java | 536 Rect r = mRect; in doDraw() local 554 drawBox(day, weekNum, row, column, canvas, p, r, isLandscape); in doDraw() 669 Rect r, boolean isLandscape) { in drawBox() argument 689 r.left = x; in drawBox() 690 r.top = y; in drawBox() 691 r.right = x + mCellWidth; in drawBox() 692 r.bottom = y + mCellHeight; in drawBox() 698 r.left = -1; in drawBox() 700 r.right += mBorder + 2; in drawBox() 704 r.bottom = getMeasuredHeight(); in drawBox() [all …]
|
D | AgendaListView.java | 121 Rect r = new Rect(); in getFirstVisibleView() local 125 listItem.getLocalVisibleRect(r); in getFirstVisibleView() 126 if (r.top >= 0) { // if visible in getFirstVisibleView() 175 Rect r = new Rect(); in shiftPosition() local 176 firstVisibleItem.getLocalVisibleRect(r); in shiftPosition() 180 setSelectionFromTop(position + offset, r.top > 0 ? -r.top : r.top); in shiftPosition()
|
D | CalendarView.java | 1261 Rect r = mRect; in drawAfterScroll() local 1264 drawAllDayEvents(mFirstJulianDay, mNumDays, r, canvas, p); in drawAfterScroll() 1265 drawUpperLeftCorner(r, canvas, p); in drawAfterScroll() 1269 drawDayHeaderLoop(r, canvas, p); in drawAfterScroll() 1287 private void drawUpperLeftCorner(Rect r, Canvas canvas, Paint p) { in drawUpperLeftCorner() argument 1289 r.top = mBannerPlusMargin; in drawUpperLeftCorner() 1290 r.bottom = r.top + mAllDayHeight + ALLDAY_TOP_MARGIN; in drawUpperLeftCorner() 1291 r.left = 0; in drawUpperLeftCorner() 1292 r.right = mHoursWidth; in drawUpperLeftCorner() 1293 canvas.drawRect(r, p); in drawUpperLeftCorner() [all …]
|
/packages/wallpapers/Basic/res/raw/ |
D | distort.rs | 93 void dropWithStrength(int x, int y, int r, int s) { 97 if (x < r) x = r; 98 if (y < r) y = r; 99 if (x >= width - r) x = width - r - 1; 100 if (y >= height - r) y = height - r - 1; 109 int sqr = r * r; 113 for ( ; h < r; h += 1) { 118 for ( ; w < r; w += 1) { 131 void drop(int x, int y, int r) { 132 dropWithStrength(x, y, r, 1); [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DeferredHandler.java | 41 Runnable r; in handleMessage() local 46 r = mQueue.removeFirst(); in handleMessage() 48 r.run(); in handleMessage() 63 IdleRunnable(Runnable r) { in IdleRunnable() argument 64 mRunnable = r; in IdleRunnable()
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | LayoutModel.java | 60 for (RegionModel r : regions) { in LayoutModel() 61 String rId = r.getRegionId(); in LayoutModel() 63 mImageRegion = r; in LayoutModel() 65 mTextRegion = r; in LayoutModel() 70 mNonStdRegions.add(r); in LayoutModel() 159 for (RegionModel r : mNonStdRegions) { in findRegionById() 160 if (r.getRegionId().equals(rId)) { in findRegionById() 161 return r; in findRegionById()
|
/packages/apps/Phone/src/com/android/phone/ |
D | Ringer.java | 290 Ringtone r = null; in makeLooper() 297 r = RingtoneManager.getRingtone(mContext, mCustomRingtoneUri); in makeLooper() 300 mRingtone = r; in makeLooper() 304 r = mRingtone; in makeLooper() 305 if (r != null && !hasMessages(STOP_RING)) { in makeLooper() 307 r.play(); in makeLooper() 318 r = (Ringtone) msg.obj; in makeLooper() 319 if (r != null) { in makeLooper() 320 r.stop(); in makeLooper()
|
D | FdnList.java | 50 Resources r = getResources(); in onCreateOptionsMenu() local 53 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add)) in onCreateOptionsMenu() 55 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit)) in onCreateOptionsMenu() 57 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete)) in onCreateOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/ |
D | Display.java | 45 Resources r = getResources(); in onCreate() local 46 states[0] = r.getString(R.string.small_font); in onCreate() 47 states[1] = r.getString(R.string.medium_font); in onCreate() 48 states[2] = r.getString(R.string.large_font); in onCreate() 56 mPreview.setText(r.getText(R.string.font_size_preview_text)); in onCreate() 59 save.setText(r.getText(R.string.font_size_save)); in onCreate()
|
D | RadioInfo.java | 603 Resources r = getResources(); in updateSignalStrength() local 619 + r.getString(R.string.radioInfo_display_dbm) + " " in updateSignalStrength() 621 + r.getString(R.string.radioInfo_display_asu)); in updateSignalStrength() 625 Resources r = getResources(); in updateLocation() local 630 mLocation.setText(r.getString(R.string.radioInfo_lac) + " = " in updateLocation() 633 + r.getString(R.string.radioInfo_cid) + " = " in updateLocation() 695 Resources r = getResources(); in updateServiceState() local 696 String display = r.getString(R.string.radioInfo_unknown); in updateServiceState() 700 display = r.getString(R.string.radioInfo_service_in); in updateServiceState() 704 display = r.getString(R.string.radioInfo_service_emergency); in updateServiceState() [all …]
|
/packages/apps/AlarmClock/src/com/android/alarmclock/ |
D | AlarmPreference.java | 50 final Ringtone r = RingtoneManager.getRingtone(getContext(), alert); in setAlert() local 51 if (r != null) { in setAlert() 52 setSummary(r.getTitle(getContext())); in setAlert()
|
/packages/apps/Email/src/com/android/email/ |
D | PeekableInputStream.java | 61 int r = mIn.read(b, offset + 1, length - 1); in read() local 62 if (r == -1) { in read() 65 return r + 1; in read()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AlarmPreference.java | 50 final Ringtone r = RingtoneManager.getRingtone(getContext(), alert); in setAlert() local 51 if (r != null) { in setAlert() 52 setSummary(r.getTitle(getContext())); in setAlert()
|
/packages/apps/Music/src/com/android/music/ |
D | TouchInterceptor.java | 83 Rect r = mTempRect; in onInterceptTouchEvent() 84 mDragView.getDrawingRect(r); in onInterceptTouchEvent() 85 if ( e2.getX() > r.right * 2 / 3) { in onInterceptTouchEvent() 113 Rect r = mTempRect; in onInterceptTouchEvent() local 114 dragger.getDrawingRect(r); in onInterceptTouchEvent() 116 if (x < r.right * 2) { in onInterceptTouchEvent() 262 Rect r = mTempRect; in onTouchEvent() local 263 mDragView.getDrawingRect(r); in onTouchEvent() 265 if (mRemoveMode == SLIDE && ev.getX() > r.right * 3 / 4) { in onTouchEvent()
|