/frameworks/rs/cpp/ |
D | Allocation.cpp | 282 void Allocation::validate2DRange(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h) { in validate2DRange() argument 286 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY)) { in validate2DRange() 292 void Allocation::copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, in copy2DRangeFrom() argument 294 validate2DRange(xoff, yoff, w, h); in copy2DRangeFrom() 300 yoff, mSelectedLOD, mSelectedFace, in copy2DRangeFrom() 306 yoff, mSelectedLOD, mSelectedFace, in copy2DRangeFrom() 312 void Allocation::copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, in copy2DRangeFrom() argument 314 validate2DRange(xoff, yoff, w, h); in copy2DRangeFrom() 315 tryDispatch(mRS, RS::dispatch->AllocationCopy2DRange(mRS->getContext(), getIDSafe(), xoff, yoff, in copy2DRangeFrom() 321 void Allocation::copy2DRangeTo(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, in copy2DRangeTo() argument [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Allocation.java | 1427 private void validate2DRange(int xoff, int yoff, int w, int h) { in validate2DRange() argument 1432 if (xoff < 0 || yoff < 0) { in validate2DRange() 1438 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY)) { in validate2DRange() 1444 void copy2DRangeFromUnchecked(int xoff, int yoff, int w, int h, Object array, in copy2DRangeFromUnchecked() argument 1447 validate2DRange(xoff, yoff, w, h); in copy2DRangeFromUnchecked() 1463 mRS.nAllocationData2D(getIDSafe(), xoff, yoff, mSelectedLOD, mSelectedFace.mID, w, h, in copy2DRangeFromUnchecked() local 1494 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, Object array) { in copy2DRangeFrom() argument 1495 copy2DRangeFromUnchecked(xoff, yoff, w, h, array, in copy2DRangeFrom() 1527 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, byte[] data) { in copy2DRangeFrom() argument 1529 copy2DRangeFromUnchecked(xoff, yoff, w, h, data, in copy2DRangeFrom() [all …]
|
D | RenderScript.java | 514 native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, in rsnAllocationData2D() argument 517 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, in nAllocationData2D() argument 521 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 524 …native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, Bitmap b… in rsnAllocationData2D() argument 525 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, Bitmap b) { in nAllocationData2D() argument 527 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, b); in nAllocationData2D() 549 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationData3D() argument 552 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, in nAllocationData3D() argument 556 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, in nAllocationData3D() 584 native void rsnAllocationRead2D(long con, long id, int xoff, int yoff, int mip, int face, in rsnAllocationRead2D() argument [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Allocation.java | 1071 …public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp)… in setFromFieldPacker() argument 1079 if(yoff < 0) { in setFromFieldPacker() 1096 mRS.nAllocationElementData(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, in setFromFieldPacker() local 1452 private void validate2DRange(int xoff, int yoff, int w, int h) { in validate2DRange() argument 1457 if (xoff < 0 || yoff < 0) { in validate2DRange() 1463 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY)) { in validate2DRange() 1469 void copy2DRangeFromUnchecked(int xoff, int yoff, int w, int h, Object array, in copy2DRangeFromUnchecked() argument 1474 validate2DRange(xoff, yoff, w, h); in copy2DRangeFromUnchecked() 1490 mRS.nAllocationData2D(getIDSafe(), xoff, yoff, mSelectedLOD, mSelectedFace.mID, w, h, in copy2DRangeFromUnchecked() local 1524 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, Object array) { in copy2DRangeFrom() argument [all …]
|
D | RenderScript.java | 555 …native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int … in rsnAllocationElementData() argument 556 …synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compI… in nAllocationElementData() argument 558 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData() 581 native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, in rsnAllocationData2D() argument 584 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, in nAllocationData2D() argument 588 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 591 …native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, Bitmap b… in rsnAllocationData2D() argument 592 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, Bitmap b) { in nAllocationData2D() argument 594 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, b); in nAllocationData2D() 615 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationData3D() argument [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_alloc_copy.java | 271 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Byte() local 273 int ycount = height - yoff; in allocation_copy2DRangeTo_Byte() 283 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in allocation_copy2DRangeTo_Byte() 284 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in allocation_copy2DRangeTo_Byte() 306 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Short() local 308 int ycount = height - yoff; in allocation_copy2DRangeTo_Short() 321 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in allocation_copy2DRangeTo_Short() 322 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in allocation_copy2DRangeTo_Short() 344 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Int() local 346 int ycount = height - yoff; in allocation_copy2DRangeTo_Int() [all …]
|
D | UT_alloc_copyPadded.java | 918 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Byte3() local 920 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Byte3() 931 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in testAllocation_copy2DRangeTo_Byte3() 932 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in testAllocation_copy2DRangeTo_Byte3() 954 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Short3() local 956 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Short3() 970 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in testAllocation_copy2DRangeTo_Short3() 971 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in testAllocation_copy2DRangeTo_Short3() 993 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Int3() local 995 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Int3() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_alloc_copy.java | 269 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Byte() local 271 int ycount = height - yoff; in allocation_copy2DRangeTo_Byte() 281 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in allocation_copy2DRangeTo_Byte() 282 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in allocation_copy2DRangeTo_Byte() 304 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Short() local 306 int ycount = height - yoff; in allocation_copy2DRangeTo_Short() 319 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in allocation_copy2DRangeTo_Short() 320 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in allocation_copy2DRangeTo_Short() 342 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Int() local 344 int ycount = height - yoff; in allocation_copy2DRangeTo_Int() [all …]
|
D | UT_alloc_copyPadded.java | 917 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Byte3() local 919 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Byte3() 930 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in testAllocation_copy2DRangeTo_Byte3() 931 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in testAllocation_copy2DRangeTo_Byte3() 953 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Short3() local 955 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Short3() 969 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in testAllocation_copy2DRangeTo_Short3() 970 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in testAllocation_copy2DRangeTo_Short3() 992 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Int3() local 994 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Int3() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_alloc_copy.java | 273 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Byte() local 275 int ycount = height - yoff; in allocation_copy2DRangeTo_Byte() 285 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in allocation_copy2DRangeTo_Byte() 286 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in allocation_copy2DRangeTo_Byte() 308 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Short() local 310 int ycount = height - yoff; in allocation_copy2DRangeTo_Short() 323 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in allocation_copy2DRangeTo_Short() 324 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in allocation_copy2DRangeTo_Short() 346 int yoff = random.nextInt(height); in allocation_copy2DRangeTo_Int() local 348 int ycount = height - yoff; in allocation_copy2DRangeTo_Int() [all …]
|
D | UT_alloc_copyPadded.java | 920 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Byte3() local 922 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Byte3() 933 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in testAllocation_copy2DRangeTo_Byte3() 934 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in testAllocation_copy2DRangeTo_Byte3() 956 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Short3() local 958 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Short3() 972 alloc.copy2DRangeFrom(xoff, yoff, xcount, ycount, inArray); in testAllocation_copy2DRangeTo_Short3() 973 alloc.copy2DRangeTo(xoff, yoff, xcount, ycount, outArray); in testAllocation_copy2DRangeTo_Short3() 995 int yoff = random.nextInt(height); in testAllocation_copy2DRangeTo_Int3() local 997 int ycount = height - yoff; in testAllocation_copy2DRangeTo_Int3() [all …]
|
/frameworks/rs/rsov/driver/ |
D | rsovAllocation.cpp | 147 uint8_t *GetOffsetPtr(const Allocation *alloc, uint32_t xoff, uint32_t yoff, in GetOffsetPtr() argument 154 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 338 uint32_t xoff, uint32_t yoff, uint32_t lod, in rsovAllocationData2D() argument 349 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsovAllocationData2D() 351 for (uint32_t line = yoff; line < (yoff + h); line++) { in rsovAllocationData2D() 374 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsovAllocationData2D() 376 for (uint32_t line = (yoff >> 1); line < ((yoff + h) >> 1); line++) { in rsovAllocationData2D() 390 uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsovAllocationData3D() argument 402 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, z, lod, in rsovAllocationData3D() 404 for (uint32_t line = yoff; line < (yoff + h); line++) { in rsovAllocationData3D() [all …]
|
D | rsovAllocation.h | 95 uint32_t xoff, uint32_t yoff, uint32_t lod, 102 uint32_t xoff, uint32_t yoff, uint32_t zoff, 114 uint32_t xoff, uint32_t yoff, uint32_t lod, 121 uint32_t xoff, uint32_t yoff, uint32_t zoff,
|
/frameworks/base/core/java/android/view/autofill/ |
D | AutofillPopupWindow.java | 263 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument 265 Log.v(TAG, "showAsDropDown(): anchor=" + anchor + ", xoff=" + xoff + ", yoff=" + yoff in showAsDropDown() 274 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown() 277 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown() 287 protected void attachToAnchor(View anchor, int xoff, int yoff, int gravity) { in attachToAnchor() argument 288 super.attachToAnchor(anchor, xoff, yoff, gravity); in attachToAnchor()
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 88 uint32_t xoff, uint32_t yoff, uint32_t zoff, in GetOffsetPtr() argument 93 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 100 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument 112 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture() 849 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in rsdAllocationData2D() argument 861 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D() 869 for (uint32_t line=yoff; line < (yoff+h); line++) { in rsdAllocationData2D() 891 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D() 893 for (uint32_t line=(yoff >> 1); line < ((yoff+h)>>1); line++) { in rsdAllocationData2D() 906 Update2DTexture(rsc, alloc, data, xoff, yoff, lod, face, w, h); in rsdAllocationData2D() [all …]
|
D | rsdAllocation.h | 116 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 121 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 131 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 136 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | ortho.h | 18 const T yoff = -(top + bottom) / (top - bottom); in OrthoMatrix() local 22 0, b, 0, yoff, in OrthoMatrix()
|
/frameworks/rs/ |
D | rsAllocation.cpp | 212 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() argument 214 …rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in data() 218 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, in data() argument 221 …rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in data() 242 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in read() argument 258 …rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in read() 261 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, in read() argument 269 …rsc->mHal.funcs.allocation.read3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in read() 701 void rsi_Allocation2DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod… in rsi_Allocation2DData() argument 704 a->data(rsc, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in rsi_Allocation2DData() [all …]
|
D | rsScriptC_Lib.cpp | 248 const Allocation *alloc, uint32_t xoff, uint32_t yoff, in validateCopyArgs() argument 282 if (yoff >= allocDimY || (yoff + h) > allocDimY) { in validateCopyArgs() 285 ss << "[" << yoff << ", " << yoff + h << ") outside "; in validateCopyArgs()
|
D | rsAllocation.h | 133 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 135 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 139 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 141 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
D | rs.spec | 206 param uint32_t yoff 218 param uint32_t yoff 258 param uint32_t yoff 270 param uint32_t yoff
|
D | rs_hal.h | 248 uint32_t xoff, uint32_t yoff, uint32_t lod, 252 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 260 uint32_t xoff, uint32_t yoff, uint32_t lod, 264 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
|
D | rsApiStubs.cpp | 415 …llocation2DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, in rsAllocation2DData() argument 419 …RS_DISPATCH(ctxWrapper, Allocation2DData, va, xoff, yoff, lod, face, w, h, data, data_length, stri… in rsAllocation2DData() 422 …location3DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsAllocation3DData() argument 426 …RS_DISPATCH(ctxWrapper, Allocation3DData, va, xoff, yoff, zoff, lod, w, h, d, data, data_length, s… in rsAllocation3DData() 451 …llocation2DRead (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, in rsAllocation2DRead() argument 455 …RS_DISPATCH(ctxWrapper, Allocation2DRead, va, xoff, yoff, lod, face, w, h, data, data_length, stri… in rsAllocation2DRead() 458 …location3DRead (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsAllocation3DRead() argument 462 …RS_DISPATCH(ctxWrapper, Allocation3DRead, va, xoff, yoff, zoff, lod, w, h, d, data, data_length, s… in rsAllocation3DRead()
|
/frameworks/base/core/java/android/widget/ |
D | PopupWindow.java | 1379 public void showAsDropDown(View anchor, int xoff, int yoff) { in showAsDropDown() argument 1380 showAsDropDown(anchor, xoff, yoff, DEFAULT_ANCHORED_GRAVITY); in showAsDropDown() 1403 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument 1410 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown() 1419 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown() 2381 public void update(View anchor, int xoff, int yoff, int width, int height) { 2382 update(anchor, true, xoff, yoff, width, height); 2385 private void update(View anchor, boolean updateLocation, int xoff, int yoff, 2395 final boolean needsUpdate = updateLocation && (mAnchorXoff != xoff || mAnchorYoff != yoff); 2397 attachToAnchor(anchor, xoff, yoff, gravity); [all …]
|
/frameworks/minikin/libs/minikin/ |
D | LayoutCore.cpp | 506 float yoff = -HBFixedToFloat(positions[i].y_offset); in LayoutPiece() local 507 xoff += yoff * paint.skewX; in LayoutPiece() 510 mPoints.emplace_back(x + xoff, y + yoff); in LayoutPiece() 531 glyphBounds.offset(xoff, yoff); in LayoutPiece()
|