Searched defs:left (Results 101 - 125 of 142) sorted by relevance

123456

/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DStopwatchFragment.java226 public void onLeftButtonClick(@NonNull Button left) { argument
274 public void onUpdateFabButtons(@NonNull Button left, @NonNull Button right) { argument
276 left.setClickable(true);
277 left.setText(R.string.sw_reset_button);
278 left.setContentDescription(resources.getString(R.string.sw_reset_button));
282 left.setVisibility(INVISIBLE);
287 left.setVisibility(VISIBLE);
295 left.setVisibility(VISIBLE);
435 final int left = sceneRoot.getPaddingLeft();
437 sceneRoot.setPadding(left, to
653 onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
H A DCameraManager.java750 * Returns a negative value if left is a better choice than right, or a positive value if right
751 * is a better choice is better than left. 0 if they are equal
754 public int compare(final Camera.Size left, final Camera.Size right) { argument
756 if ((left.width <= maxWidth && left.height <= maxHeight)
758 return left.width <= maxWidth ? PREFER_LEFT : PREFER_RIGHT;
762 final float leftAspectRatio = left.width / (float) left.height;
773 final int leftDiff = Math.abs((left.width * left
[all...]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
H A DSwipeButtonHelper.java590 public void launchAffordance(boolean animate, boolean left) { argument
591 SwipeButtonView targetView = left ? leftIcon : rightIcon;
596 SwipeButtonView otherView = left ? rightIcon : leftIcon;
599 fling(0, false, !left);
602 callback.onAnimationToSideStarted(!left, translation, 0);
604 left ? callback.getMaxTranslationDistance() : callback.getMaxTranslationDistance();
608 new AnimationEndRunnable(!left).run();
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLRootView.java275 boolean changed, int left, int top, int right, int bottom) {
274 onLayout( boolean changed, int left, int top, int right, int bottom) argument
H A DGLView.java192 return mBounds.right - mBounds.left;
271 int xoffset = component.mBounds.left - mScrollX;
298 int left = rect.left;
301 event.offsetLocation(-left, -top);
303 event.offsetLocation(left, top);
306 event.offsetLocation(left, top);
348 public void layout(int left, int top, int right, int bottom) { argument
349 boolean sizeChanged = setBounds(left, top, right, bottom);
355 onLayout(sizeChanged, left, to
358 setBounds(int left, int top, int right, int bottom) argument
399 onLayout( boolean changeSize, int left, int top, int right, int bottom) argument
[all...]
H A DTileImageView.java88 // The offsets of the (left, top) of the upper-left tile to the (left, top)
193 boolean changeSize, int left, int top, int right, int bottom) {
194 super.onLayout(changeSize, left, top, right, bottom);
224 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale);
270 for (int x = r.left, right = r.right; x < right; x += size) {
296 // rectangle containing visible range. The left-top coordinate returned is
315 int left = (int) Math.floor(cX - width / (2f * scale));
317 int right = (int) Math.ceil(left
192 onLayout( boolean changeSize, int left, int top, int right, int bottom) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DIndicatorControlWheel.java331 boolean changed, int left, int top, int right, int bottom) {
337 mCenterX = right - left - Util.dpToPixel(
342 // The icons are spreaded on the left side of the shutter button.
366 view.layout(0, 0, right - left, bottom - top);
330 onLayout( boolean changed, int left, int top, int right, int bottom) argument
/packages/apps/Messaging/jni/
H A DGifTranscoder.cpp413 int left,
418 ASSERT(left + width <= imageWidth, "Rectangle is outside image bounds");
423 ColorARGB* renderPixel = getPixel(renderBuffer, imageWidth, x + left, y + top);
410 fillRect(ColorARGB* renderBuffer, int imageWidth, int imageHeight, int left, int top, int width, int height, ColorARGB color) argument
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationMessageView.java191 protected void onLayout(final boolean changed, final int left, final int top, final int right, argument
198 final int contentWidth = (right -left) - iconWidth - getPaddingLeft() - getPaddingRight();
206 iconLeft = (right - left) - getPaddingRight() - iconWidth;
217 iconLeft = (right - left) - getPaddingRight() - iconWidth;
624 // If there are unused views left over, unbind or remove them.
763 // Need to switch right and left padding in RtL mode
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DConversationListItemView.java176 public void onLayoutChange(final View v, final int left, final int top, final int right, argument
418 // row is left with a latest_message_id of a no longer existing message and
/packages/apps/PackageInstaller/src/android/support/wearable/view/
H A DCircledImageView.java341 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
372 super.onLayout(changed, left, top, right, bottom);
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
H A DCaptionWindowLayout.java208 // TODO: change the location of pen when window's justify isn't left.
357 // Since all TV sets use left text alignment instead of center text alignment
379 // left side of the window with the left side of the expected max window.
442 int left,
450 int width = right - left;
440 onLayoutChange( View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) argument
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DCalculatorResult.java72 // left of the display. Zero means decimal point is barely displayed
75 private int mMinPos; // Minimum position to avoid unnecessary blanks on the left. Pixels.
81 // the left. 1 = tenths position, -1 = units. Integer.MAX_VALUE is sometimes used
349 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
350 super.onLayout(changed, left, top, right, bottom);
424 * @param msd Position of most significant digit. Offset from left of string.
640 * We add an ellipsis on the left if the result was truncated.
699 // with one digit to the left of the decimal point. Insert decimal point and
758 // Add commas to the whole number section, and then truncate on left to fit,
1032 outRect.left
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DCameraManager.java1058 * Returns a negative value if left is a better choice than right, or a positive value if
1059 * right is a better choice is better than left. 0 if they are equal
1062 public int compare(final Camera.Size left, final Camera.Size right) { argument
1064 if ((left.width <= mMaxWidth && left.height <= mMaxHeight) !=
1066 return left.width <= mMaxWidth ? PREFER_LEFT : PREFER_RIGHT;
1070 final float leftAspectRatio = left.width / (float) left.height;
1082 final int leftDiff = Math.abs((left.width * left
[all...]
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartSweepView.java187 final float targetWidth = mSweep.getIntrinsicWidth() - mSweepPadding.left
189 return mSweepPadding.left + (targetWidth / 2) + mSweepOffset.x;
459 mTrackingStart = getLeft() - mMargins.left;
501 final float currentTargetX = getLeft() - mMargins.left;
505 requestedTargetX, clampRect.left, clampRect.right);
508 value = mAxis.convertToValue(clampedTargetX - parentContent.left);
551 final float effectiveX = getX() - mMargins.left - parentContent.left;
623 if (beforeValid) clampRect.right = clampRect.left + (int) beforePoint;
624 if (afterValid) clampRect.left
700 onLayout(boolean changed, int left, int top, int right, int bottom) argument
[all...]
H A DMatchParentShrinkingLinearLayout.java404 void drawVerticalDivider(Canvas canvas, int left) { argument
405 mDivider.setBounds(left, getPaddingTop() + mDividerPadding,
406 left + mDividerWidth, getHeight() - getPaddingBottom() - mDividerPadding);
1105 * @param left
1110 void layoutVertical(int left, int top, int right, int bottom) { argument
1117 final int width = right - left;
1210 * @param left
1215 void layoutHorizontal(int left, int top, int right, int bottom) { argument
1243 childLeft = mPaddingLeft + right - left - mTotalLength;
1248 childLeft = mPaddingLeft + (right - left
1339 setChildFrame(View child, int left, int top, int width, int height) argument
[all...]
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/
H A Dcommon_defines.h109 left, enumerator in enum:__anon173
/packages/apps/Camera2/src/com/android/camera/ui/
H A DModeListView.java63 * with an animation. To dismiss this list, simply swipe left or select a mode.
872 // Gets current view's top left position relative to the window.
1346 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
1347 super.onLayout(changed, left, top, right, bottom);
1348 mWidth = right - left;
1384 // Align left:
1385 mListView.setTranslationX(uncoveredPreviewArea.left);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactListItemView.java80 * to the left of the photo, the text lines are aligned to the left and the presence icon (if
81 * present) is set to the left of the status line.
110 // Set in onLayout. Represent left and right position of the View on the screen.
214 * those left assuming there is a photo.
611 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
613 final int width = right - left;
623 // Put the section header on the left side of the contact view.
642 mBoundsWithoutHeader.set(left + leftBound, topBound, left
[all...]
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DContactListItemView.java74 * to the left of the photo, the text lines are aligned to the left and the presence icon (if
75 * present) is set to the left of the status line.
113 // Set in onLayout. Represent left and right position of the View on the screen.
156 * the photo should have horizontal padding on those left assuming there is a photo.
539 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
541 final int width = right - left;
550 // Put the section header on the left side of the contact view.
552 // Align the text view all the way left, to be consistent with Contacts.
575 mBoundsWithoutHeader.set(left
[all...]
/packages/apps/Gallery/src/com/android/camera/
H A DGridViewSpecial.java192 public void onLayout(boolean changed, int left, int top, argument
194 super.onLayout(changed, left, top, right, bottom);
202 int width = right - left;
208 // We determine number of cells (columns) first, then the left and right
209 // padding are derived. We make left and right paddings the same size.
506 int left = mSpec.mLeftEdgePadding
510 return new Rect(left, top,
511 left + mSpec.mCellWidth + mSpec.mCellSpacing,
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java355 // draw the rect from bottom-left to top-right
402 textureRect(target.left, target.top, target.width(), target.height());
427 source.left /= texWidth;
435 target.right = target.left + target.width() *
436 (xBound - source.left) / source.width();
519 fillRect(target.left, target.top, target.width(), target.height(), toColor);
541 textureRect(target.left, target.top, target.width(), target.height());
702 setTextureCoords(source.left, source.top, source.right, source.bottom);
705 private void setTextureCoords(float left, float top, argument
708 mTextureMatrixValues[0] = right - left;
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedView.java158 // If true, modify alpha of neighboring pages as user scrolls left/right
576 // of the left/right gap and use that as the gap between each page.
645 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
1312 // move to the left and fling to the right will register as a fling to the right.
1451 int left;
1457 left = getRelativeChildOffset(i);
1458 right = (left + getScaledMeasuredWidth(getPageAt(i)));
1459 if (left <= relativeOffset && relativeOffset <= right) {
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
H A DRecentsView.java519 setPadding(mTempRect.left - mInsets.left, mTempRect.top - mInsets.top,
520 dp.availableWidthPx + mInsets.left - mTempRect.right,
559 final int screenCenter = mInsets.left + getPaddingLeft() + getScrollX() + halfPageWidth;
581 // Skip loading visible task data if we've already left the overview state
837 // translates to the left. We need to offset this in some cases:
841 // - Dragging an adjacent page on the left side (right side for RTL)
850 int negativeAdjacent = mCurrentPage - 1; // (Right in RTL, left in LTR)
1062 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
1063 super.onLayout(changed, left, to
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPagedView.java492 - mInsets.left - mInsets.right;
537 widthSize - mInsets.left - mInsets.right, MeasureSpec.EXACTLY);
553 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
622 final int scrollOffsetLeft = mInsets.left + getPaddingLeft();
1152 // move to the left and fling to the right will register as a fling to the right.
1626 float left = child.getLeft() + child.getTranslationX() - getScrollX();
1627 if (left <= visibleRight && (left + child.getMeasuredWidth()) >= visibleLeft) {

Completed in 657 milliseconds

123456