/developers/samples/android/media/HdrViewfinder/Application/src/main/rs/ |
D | hdr_merge.rs | 27 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/ |
D | TouchDisplayView.java | 56 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/ |
D | CustomVirtualView.kt | 120 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/ |
D | AbstractCustomVirtualView.java | 119 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/ |
D | BulletPointSpan.java | 64 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/ |
D | DialView.java | 209 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/ |
D | OverlayDisplayWindow.java | 326 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/ |
D | SampleTests.java | 116 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/ |
D | AccelerometerPlayActivity.java | 190 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/ |
D | DetailFragment.java | 58 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/ |
D | ImageDragListener.java | 86 protected void processLocation(float x, float y) { in processLocation() argument
|
D | DropTargetFragment.java | 102 protected void processLocation(float x, float y) { in processLocation() argument
|
/developers/samples/android/ui/window/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/ |
D | ImageDragListener.java | 94 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/ |
D | OpenGLWatchFaceService.java | 361 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()
|
D | InteractiveWatchFaceService.java | 176 public void onTapCommand(int tapType, int x, int y, long eventTime) { in onTapCommand() argument 182 mTouchCoordinateY = y; in onTapCommand()
|
D | AnalogComplicationWatchFaceService.java | 408 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/ |
D | SampleGridPagerAdapter.java | 98 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/ |
D | UIAnimation.java | 90 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/ |
D | CardStreamAnimator.java.ftl | 70 * @param deltaY delta distance by y-axis 81 * @param deltaY delta distance by y-axis
|
D | CardStreamLinearLayout.java.ftl | 87 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.
|
D | DefaultCardStreamAnimator.java.ftl | 56 PropertyValuesHolder.ofFloat("translationY", outPoint.y / 2.f, 0.f),
|
/developers/build/lib/ |
D | assetstudio.jar | META-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/ |
D | MainActivity.java | 341 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/ |
D | Utils.java | 199 int height = size.y + systemInsets.top + systemInsets.bottom; in calculateBottomInsetsOnRoundDevice()
|
/developers/samples/android/media/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/ |
D | Camera2BasicFragment.kt | 352 var maxPreviewWidth = if (swappedDimensions) displaySize.y else displaySize.x in setUpCameraOutputs() 353 var maxPreviewHeight = if (swappedDimensions) displaySize.x else displaySize.y in setUpCameraOutputs()
|