Home
last modified time | relevance | path

Searched refs:right (Results 1 – 25 of 475) sorted by relevance

12345678910>>...19

/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DFocusFinder.java52 return destRect.left < srcRect.right; in isPartiallyInDirection()
54 return destRect.right > srcRect.left; in isPartiallyInDirection()
94 return destRect.right > srcRect.right; in isInDirection()
129 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate()
132 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate()
133 && srcRect.right < destRect.right; in isCandidate()
254 return (rect2.right > rect1.left) && (rect2.left < rect1.right); in beamsOverlap()
266 return src.left >= dest.right; in isToDirectionOf()
268 return src.right <= dest.left; in isToDirectionOf()
291 return source.left - dest.right; in majorAxisDistanceRaw()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DSelectionRenderer.java24 public static void drawSelection(Canvas canvas, int left, int top, int right, int bottom, in drawSelection() argument
26 canvas.drawRect(left, top, right, top + stroke, paint); in drawSelection()
27 canvas.drawRect(left, bottom - stroke, right, bottom, paint); in drawSelection()
29 canvas.drawRect(right - stroke, top, right, bottom, paint); in drawSelection()
32 public static void drawSelection(Canvas canvas, int left, int top, int right, int bottom, in drawSelection() argument
34 canvas.drawRect(left, top, right, top + stroke, selectPaint); in drawSelection()
35 canvas.drawRect(left, bottom - stroke, right, bottom, selectPaint); in drawSelection()
37 canvas.drawRect(right - stroke, top, right, bottom, selectPaint); in drawSelection()
38 canvas.drawRect(left + stroke, top + stroke, right - stroke, in drawSelection()
40 canvas.drawRect(left + stroke, bottom - stroke - border, right - stroke, in drawSelection()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java44 canvas.drawLine(bounds.left, y, bounds.right, y, p); in drawRuleOfThird()
71 r.set(bounds.right,bounds.top,w,bounds.bottom); in drawShade()
91 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.top); in drawIndicators()
97 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.bottom); in drawIndicators()
110 drawIndicator(canvas, cropIndicator, indicatorSize, bounds.right, bounds.centerY()); in drawIndicators()
134 path.lineTo(r1.right, r1.top); in drawWallpaperSelectionFrame()
138 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame()
139 path.moveTo(r1.right, r1.top); in drawWallpaperSelectionFrame()
140 path.lineTo(r1.right, r1.bottom); in drawWallpaperSelectionFrame()
142 path.lineTo(r2.right, r2.top); in drawWallpaperSelectionFrame()
[all …]
DCropObject.java205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; in moveCurrentSelection()
211 dx = Math.max(crop.right + dX, crop.left + minWidthHeight) in moveCurrentSelection()
212 - crop.right; in moveCurrentSelection()
224 crop.right, crop.top in moveCurrentSelection()
251 crop.right += dx; in moveCurrentSelection()
268 float right = Math.abs(x - cropped.right); in calculateSelectedEdge() local
275 && ((y - mTouchTolerance) <= cropped.bottom) && (left < right)) { in calculateSelectedEdge()
278 else if ((right <= mTouchTolerance) && ((y + mTouchTolerance) >= cropped.top) in calculateSelectedEdge()
285 && ((x - mTouchTolerance) <= cropped.right) && (top < bottom)) { in calculateSelectedEdge()
289 && ((x - mTouchTolerance) <= cropped.right)) { in calculateSelectedEdge()
[all …]
DBoundedRect.java215 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
220 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
263 else if (inner.right == newInner.right) in fixedAspectResizeInner()
266 if (inner.right == newInner.right) in fixedAspectResizeInner()
314 ret.right = ret.left + widthSoFar; in fixedAspectResizeInner()
317 ret.left = ret.right - widthSoFar; in fixedAspectResizeInner()
320 ret.left = ret.right - widthSoFar; in fixedAspectResizeInner()
323 ret.right = ret.left + widthSoFar; in fixedAspectResizeInner()
DCropMath.java45 r.right, r.top, in getCornersFromRect()
46 r.right, r.bottom, in getCornersFromRect()
63 return !(x > r.right || x < r.left || y > r.bottom || y < r.top); in inclusiveContains()
81 r.right = (x > r.right) ? x : r.right; in trapToRect()
100 array[x] = GeometryMathUtils.clamp(array[x], imageBound.left, imageBound.right); in getEdgePoints()
204 r.right = r.left + finalW; in fixAspectRatioContained()
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/
DBluetoothCodecConfigTest.java96 int right = sTotalConfigs / left; in selectCodecType() local
97 int index = configId / right; in selectCodecType()
104 int right = sTotalConfigs / left; in selectCodecPriority() local
105 int index = configId / right; in selectCodecPriority()
112 int right = sTotalConfigs / left; in selectSampleRate() local
113 int index = configId / right; in selectSampleRate()
121 int right = sTotalConfigs / left; in selectBitsPerSample() local
122 int index = configId / right; in selectBitsPerSample()
130 int right = sTotalConfigs / left; in selectChannelMode() local
131 int index = configId / right; in selectChannelMode()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DDhcpInfoTest.java84 private boolean dhcpInfoEquals(@Nullable DhcpInfo left, @Nullable DhcpInfo right) { in dhcpInfoEquals() argument
85 if (left == null && right == null) return true; in dhcpInfoEquals()
87 if (left == null || right == null) return false; in dhcpInfoEquals()
89 return left.ipAddress == right.ipAddress in dhcpInfoEquals()
90 && left.gateway == right.gateway in dhcpInfoEquals()
91 && left.netmask == right.netmask in dhcpInfoEquals()
92 && left.dns1 == right.dns1 in dhcpInfoEquals()
93 && left.dns2 == right.dns2 in dhcpInfoEquals()
94 && left.serverAddress == right.serverAddress in dhcpInfoEquals()
95 && left.leaseDuration == right.leaseDuration; in dhcpInfoEquals()
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java184 mPositionConfiguration.mPreviewRect.right, in getUncoveredPreviewRect()
189 mPositionConfiguration.mPreviewRect.right, in getUncoveredPreviewRect()
195 return new RectF(mPositionConfiguration.mBottomBarRect.right, in getUncoveredPreviewRect()
197 mPositionConfiguration.mPreviewRect.right, in getUncoveredPreviewRect()
301 float right = width; in getPositionConfiguration() local
302 float left = right - previewLongerEdge; in getPositionConfiguration()
303 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
336 float right = width - barSize; in getPositionConfiguration() local
337 float left = right - previewLongerEdge; in getPositionConfiguration()
338 config.mPreviewRect.set(left, 0, right, previewShorterEdge); in getPositionConfiguration()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java125 int right = mDrawRect.right + 1; in draw() local
139 + ((mDrawRect.right - mDrawRect.left) / 2); in draw()
149 mResizeDrawableWidth.setBounds(right - widthWidth, in draw()
151 right + widthWidth, in draw()
216 && (x < r.right + hysteresis); in getHit()
222 if ((Math.abs(r.right - x) < hysteresis) && verticalCheck) { in getHit()
279 Math.min(0, mImageRect.right - mCropRect.right), in moveBy()
334 } else if (r.right > mImageRect.right) { in growBy()
335 r.offset(-(r.right - mImageRect.right), 0); in growBy()
351 (int) mCropRect.right, (int) mCropRect.bottom); in getCropRect()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonHelper.java259 public void startHintAnimation(boolean right, @Nullable Runnable onFinishedListener) { in startHintAnimation() argument
261 startHintAnimationPhase1(right, onFinishedListener); in startHintAnimation()
265 final boolean right, @Nullable final Runnable onFinishedListener) { in startHintAnimationPhase1() argument
266 final SwipeButtonView targetView = right ? rightIcon : leftIcon; in startHintAnimationPhase1()
267 ValueAnimator animator = getAnimatorToRadius(right, hintGrowAmount); in startHintAnimationPhase1()
292 startUnlockHintAnimationPhase2(right, onFinishedListener); in startHintAnimationPhase1()
305 boolean right, @Nullable final Runnable onFinishedListener) { in startUnlockHintAnimationPhase2() argument
306 ValueAnimator animator = getAnimatorToRadius(right, 0); in startUnlockHintAnimationPhase2()
331 private ValueAnimator getAnimatorToRadius(final boolean right, int radius) { in getAnimatorToRadius() argument
332 final SwipeButtonView targetView = right ? rightIcon : leftIcon; in getAnimatorToRadius()
[all …]
/packages/modules/Bluetooth/tools/pdl/src/
Dtest_utils.rs68 pub fn diff(left_label: &str, left: &str, right_label: &str, right: &str) -> String { in diff()
72 temp_right.write_all(right.as_bytes()).unwrap(); in diff()
98 pub fn assert_eq_with_diff(left_label: &str, left: &str, right_label: &str, right: &str) { in assert_eq_with_diff()
100 left == right, in assert_eq_with_diff()
102 diff(left_label, left, right_label, right) in assert_eq_with_diff()
111 pub fn assert_expr_eq(left: proc_macro2::TokenStream, right: proc_macro2::TokenStream) { in assert_expr_eq()
115 let right = quote! { in assert_expr_eq() localVariable
116 fn main() { #right } in assert_expr_eq()
118 assert_eq_with_diff("left", &rustfmt(&left.to_string()), "right", &rustfmt(&right.to_string())); in assert_expr_eq()
/packages/apps/Camera2/src/com/android/camera/ui/
DMarginDrawable.java59 if (s.top < s.bottom && s.left < s.right) { in draw()
62 canvas.drawRect(0, 0, cb.right, s.top + 1, mPaint); in draw()
67 if (s.right < cb.right) { in draw()
68 canvas.drawRect(s.right - 1, s.top, cb.right, s.bottom, mPaint); in draw()
71 canvas.drawRect(0, s.bottom - 1, cb.right, cb.bottom, mPaint); in draw()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java423 public void onLayoutChange(View v, int left, int top, int right, int bottom, in onLayoutChange() argument
430 mContainer.set(left, top + mRv.getPaddingTop(), right, bottom); in onLayoutChange()
441 int left = mPosRight ? (mContainer.right - mTrackWidth) : mContainer.left; in layoutTrack()
443 int right = mPosRight ? mContainer.right : (mContainer.left + mTrackWidth); in layoutTrack() local
445 mTrackImageView.layout(left, top, right, bottom); in layoutTrack()
453 int left = mPosRight ? (mContainer.right - mTrackWidth) : mContainer.left; in layoutThumb()
455 int right = mPosRight ? mContainer.right : (mContainer.left + mTrackWidth); in layoutThumb() local
457 mThumbImageView.layout(left, top, right, bottom); in layoutThumb()
472 final int left, right; in layoutPreview() local
474 right = mContainer.right - mTrackWidth - mPreviewMarginLeftRight; in layoutPreview()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentity.java315 public static int compare(@NonNull NetworkIdentity left, @NonNull NetworkIdentity right) { in compare() argument
316 Objects.requireNonNull(right); in compare()
317 int res = Integer.compare(left.mType, right.mType); in compare()
319 res = Integer.compare(left.mRatType, right.mRatType); in compare()
321 if (res == 0 && left.mSubscriberId != null && right.mSubscriberId != null) { in compare()
322 res = left.mSubscriberId.compareTo(right.mSubscriberId); in compare()
324 if (res == 0 && left.mWifiNetworkKey != null && right.mWifiNetworkKey != null) { in compare()
325 res = left.mWifiNetworkKey.compareTo(right.mWifiNetworkKey); in compare()
328 res = Boolean.compare(left.mRoaming, right.mRoaming); in compare()
331 res = Boolean.compare(left.mMetered, right.mMetered); in compare()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAnimatorUtils.kt219 return view.right in <lambda>()
222 override fun set(view: View, right: Int) { in <lambda>()
223 view.right = right in <lambda>()
248 val startRight = from.right - fromInsets.right + targetInsets.right in <lambda>()
254 val endRight = to.right - toInsets.right + targetInsets.right in <lambda>()
278 view.right = fromRight in <lambda>()
/packages/apps/Settings/src/com/android/settings/notification/app/
DNotificationPreferenceController.java237 public int compare(NotificationChannelGroup left, NotificationChannelGroup right) {
239 if (left.getId() == null && right.getId() != null) {
241 } else if (right.getId() == null && left.getId() != null) {
244 return left.getId().compareTo(right.getId());
248 public static final Comparator<NotificationChannel> CHANNEL_COMPARATOR = (left, right) -> {
249 if (left.isDeleted() != right.isDeleted()) {
250 return Boolean.compare(left.isDeleted(), right.isDeleted());
254 } else if (right.getId().equals(NotificationChannel.DEFAULT_CHANNEL_ID)) {
258 return left.getId().compareTo(right.getId());
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.h111 bool operator()(const DictProbability &left, const DictProbability &right) { in operator()
112 if (left.getProbability() != right.getProbability()) { in operator()
113 return left.getProbability() > right.getProbability(); in operator()
115 if (left.getTimestamp() != right.getTimestamp()) { in operator()
116 return left.getTimestamp() < right.getTimestamp(); in operator()
118 return left.getDictPos() > right.getDictPos(); in operator()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.kt222 override fun onRightButtonClick(right: Button) { in <lambda>()
263 override fun onUpdateFabButtons(left: Button, right: Button) { in <lambda>()
272 right.setClickable(true) in <lambda>()
273 right.setVisibility(INVISIBLE) in <lambda>()
278 right.setText(R.string.sw_lap_button) in <lambda>()
279 right.setContentDescription(resources.getString(R.string.sw_lap_button)) in <lambda>()
280 right.setClickable(canRecordLaps) in <lambda>()
281 right.setVisibility(if (canRecordLaps) VISIBLE else INVISIBLE) in <lambda>()
285 right.setClickable(true) in <lambda>()
286 right.setVisibility(VISIBLE) in <lambda>()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.kt90 event.right = event.left + colWidth in computeEventRect()
98 return if (event.left < selection.right && event.right >= selection.left && in eventIntersectsSelection()
109 val right: Float = event.right in pointToEvent() constant
113 if (x <= right) { in pointToEvent()
125 val dx = x - right in pointToEvent()
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
DRectEvaluatorCompat.java41 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); in evaluate() local
43 return new Rect(left, top, right, bottom); in evaluate()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DOverlayRenderer.java30 private int right; field in OverlayRenderer
69 public void layout(int left, int top, int right, int bottom) { in layout() argument
71 this.right = right; in layout()
85 return right - left; in getWidth()
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto128 // wish to say "Keep right". Note that this is used in contrast to STRAIGHT
136 // Slight right turn at an intersection, from 10 (included) to 45 (excluded)
143 // Regular right turn at an intersection, from 45 (included) to 135
150 // Sharp right turn at an intersection, from 135 (included) to 175
157 // A right turn onto the opposite side of the same street, from 175
164 // A slight right turn to enter a turnpike or freeway. See TURN_SLIGHT_RIGHT
170 // A normal right turn to enter a turnpike or freeway. See TURN_NORMAL_RIGHT
176 // A sharp right turn to enter a turnpike or freeway. See TURN_SHARP_RIGHT
182 // A right u-turn to enter a turnpike or freeway. See U_TURN_RIGHT for the
189 // A slight right turn to exit a turnpike or freeway. See TURN_SLIGHT_RIGHT
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactSectionIndexer.java68 int right = mSectionStartingPositions.size() - 1; in getSectionForPosition() local
74 } else if (position >= mSectionStartingPositions.get(right)) { in getSectionForPosition()
75 return right; in getSectionForPosition()
78 while (left <= right) { in getSectionForPosition()
79 final int mid = (left + right) / 2; in getSectionForPosition()
85 right = mid - 1; in getSectionForPosition()
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java188 - mSweepPadding.right; in getTargetInset()
436 acceptDrag = event.getX() > getWidth() - (mSweepPadding.right * 8); in onTouchEvent()
505 requestedTargetX, clampRect.left, clampRect.right); in onTouchEvent()
623 if (beforeValid) clampRect.right = clampRect.left + (int) beforePoint;
662 mMargins.right = mSweepPadding.right;
665 - mSweepPadding.right;
667 mMargins.right = 0;
690 final int offset = mSweepPadding.right * 2;
691 mContentOffset.right -= offset;
692 mMargins.right += offset;
[all …]

12345678910>>...19