Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 28) sorted by relevance

12

/developers/samples/android/media/HdrViewfinder/Application/src/main/rs/
Dhdr_merge.rs27 uchar4 __attribute__((kernel)) mergeHdrFrames(uchar4 prevPixel, uint32_t x, uint32_t y) {
32 curPixel.r = rsGetElementAtYuv_uchar_Y(gCurrentFrame, x, y);
33 curPixel.g = rsGetElementAtYuv_uchar_U(gCurrentFrame, x, y);
34 curPixel.b = rsGetElementAtYuv_uchar_V(gCurrentFrame, x, y);
75 rsSetElementAt_uchar4(gPrevFrame, curPixel, x, y);
/developers/samples/android/input/multitouch/BasicMultitouch/Application/src/main/java/com/example/android/basicmultitouch/
DTouchDisplayView.java56 public float y; field in TouchDisplayView.TouchHistory
71 public static TouchHistory obtain(float x, float y, float pressure) { in obtain() argument
77 data.setTouch(x, y, pressure); in obtain()
90 public void setTouch(float x, float y, float pressure) { in setTouch() argument
92 this.y = y; in setTouch()
108 public void addHistory(float x, float y) { in addHistory() argument
111 p.y = y; in addHistory()
267 data.addHistory(data.x, data.y); in onTouchEvent()
386 canvas.drawCircle(data.x, (data.y) - (radius / 2f), radius, in drawCircle()
393 canvas.drawCircle(p.x, p.y, mCircleHistoricalRadius, mCirclePaint); in drawCircle()
[all …]
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DCustomVirtualView.kt120 var y = (topMargin + lineLength).toFloat() in onDraw() variable
124 Log.v(TAG, "Drawing $it at x=$x, y=$y") in onDraw()
129 canvas.drawText(readOnlyText, x, y, textPaint) in onDraw()
133 it.bounds.set(x.toInt(), (y - lineLength).toInt(), in onDraw()
134 (x + textPaint.measureText(writeText)).toInt(), y.toInt()) in onDraw()
135 Log.d(TAG, "setBounds(" + x + ", " + y + "): " + it.bounds) in onDraw()
136 canvas.drawText(writeText, x, y, textPaint) in onDraw()
137 y += lineLength.toFloat() in onDraw()
142 val y = event.y.toInt() in onTouchEvent() constant
143 Log.d(TAG, "Touched: y=$y, range=$lineLength, top=$topMargin") in onTouchEvent()
[all …]
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DAbstractCustomVirtualView.java119 float y = mTopMargin + mLineLength; in onDraw() local
123 if (VERBOSE) Log.v(TAG, "Drawing '" + line + "' at " + x + "x" + y); in onDraw()
128 canvas.drawText(readOnlyText, x, y, mTextPaint); in onDraw()
132 line.mBounds.set((int) x, (int) (y - mLineLength), in onDraw()
133 (int) (x + mTextPaint.measureText(writeText)), (int) y); in onDraw()
134 if (VERBOSE) Log.v(TAG, "setBounds(" + x + ", " + y + "): " + line.mBounds); in onDraw()
135 canvas.drawText(writeText, x, y, mTextPaint); in onDraw()
136 y += mLineLength; in onDraw()
146 int y = (int) event.getY(); in onTouchEvent() local
147 onMotion(y); in onTouchEvent()
[all …]
/developers/samples/android/ui/text/TextStyling-Java/app/src/main/java/com/android/example/text/styling/renderer/spans/
DBulletPointSpan.java64 final float y = (top + bottom) / 2f; in drawLeadingMargin() local
73 canvas.translate(gapWidth + x + dir * BULLET_RADIUS, y); in drawLeadingMargin()
77 canvas.drawCircle(gapWidth + x + dir * BULLET_RADIUS, y, BULLET_RADIUS, paint); in drawLeadingMargin()
/developers/samples/android/ui/accessibility/BasicAccessibility/Application/src/main/java/com/example/android/basicaccessibility/
DDialView.java209 float y = xyData[1]; in onDraw() local
210 canvas.drawText(Integer.toString(i + 1), x, y, mTextPaint); in onDraw()
217 float y = xyData[1]; in onDraw() local
218 canvas.drawCircle(x, y, 20, mTextPaint); in onDraw()
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DOverlayDisplayWindow.java326 int y = (int)(mWindowY + mLiveTranslationY - height * offsetScale); in updateWindowParams() local
328 y = Math.max(0, Math.min(y, mDefaultDisplayMetrics.heightPixels - height)); in updateWindowParams()
333 + ", x=" + x + ", y=" + y in updateWindowParams()
346 mWindowParams.y = y; in updateWindowParams()
353 mWindowY = mWindowParams.y; in saveWindowParams()
/developers/samples/android/content/webview/PermissionRequest/Application/tests/src/com/example/android/permissionrequest/test/
DSampleTests.java116 int y = 100; in clickToggle()
118 SystemClock.uptimeMillis() + 100, MotionEvent.ACTION_DOWN, x, y, 0); in clickToggle()
121 SystemClock.uptimeMillis() + 100, MotionEvent.ACTION_UP, x, y, 0); in clickToggle()
/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java190 final float y = mPosY; in resolveCollisionWithBounds() local
198 if (y > ymax) { in resolveCollisionWithBounds()
201 } else if (y < -ymax) { in resolveCollisionWithBounds()
416 final float y = yc - particleSystem.getPosY(i) * ys; in onDraw() local
418 particleSystem.mBalls[i].setTranslationY(y); in onDraw()
/developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/
DDetailFragment.java58 int x, int y, int width, int height) { in newInstance() argument
64 args.putInt(ARG_Y, y); in newInstance()
/developers/samples/android/ui/window/DragAndDropAcrossApps/DropTarget/src/main/java/com/example/android/droptarget/
DImageDragListener.java86 protected void processLocation(float x, float y) { in processLocation() argument
DDropTargetFragment.java102 protected void processLocation(float x, float y) { in processLocation() argument
/developers/samples/android/ui/window/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/
DImageDragListener.java94 protected void processLocation(float x, float y) { in processLocation() argument
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/watchface/
DOpenGLWatchFaceService.java361 float y = coords[i + 1]; in rotateCoords() local
362 coords[i] = (float) (cos * x - sin * y); in rotateCoords()
363 coords[i + 1] = (float) (sin * x + cos * y); in rotateCoords()
DInteractiveWatchFaceService.java176 public void onTapCommand(int tapType, int x, int y, long eventTime) { in onTapCommand() argument
182 mTouchCoordinateY = y; in onTapCommand()
DAnalogComplicationWatchFaceService.java408 public void onTapCommand(int tapType, int x, int y, long eventTime) { in onTapCommand() argument
421 boolean successfulTap = complicationDrawable.onTap(x, y); in onTapCommand()
/developers/samples/android/deprecated/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
DSampleGridPagerAdapter.java98 if (page.y == 2 && page.x == 1) {
108 notifyPageBackgroundChanged(page.y, page.x);
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
DUIAnimation.java90 startBounds.offset(-globalOffset.x, -globalOffset.y); in zoomImageFromThumb()
91 finalBounds.offset(-globalOffset.x, -globalOffset.y); in zoomImageFromThumb()
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DCardStreamAnimator.java.ftl70 * @param deltaY delta distance by y-axis
81 * @param deltaY delta distance by y-axis
DCardStreamLinearLayout.java.ftl87 float y = event.getY() + v.getTranslationY();
93 float deltaY = y - mDownY;
107 float y = event.getY() + v.getTranslationY();
110 float deltaY = y - mDownX;
293 * @param deltaY y moving distance by y-axis.
DDefaultCardStreamAnimator.java.ftl56 PropertyValuesHolder.ofFloat("translationY", outPoint.y / 2.f, 0.f),
/developers/build/lib/
Dassetstudio.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...
/developers/samples/android/wearable/wear/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/
DMainActivity.java341 int y = (int) (Math.random() * 2 * BURN_IN_OFFSET_PX - BURN_IN_OFFSET_PX); in onUpdateAmbient() local
342 mContentView.setPadding(x, y, 0, 0); in onUpdateAmbient()
/developers/samples/android/wearable/wear/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/
DUtils.java199 int height = size.y + systemInsets.top + systemInsets.bottom; in calculateBottomInsetsOnRoundDevice()
/developers/samples/android/media/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/
DCamera2BasicFragment.kt352 var maxPreviewWidth = if (swappedDimensions) displaySize.y else displaySize.x in setUpCameraOutputs()
353 var maxPreviewHeight = if (swappedDimensions) displaySize.x else displaySize.y in setUpCameraOutputs()

12