/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() 299 tryDispatch(mRS, RS::dispatch->Allocation2DData(mRS->getContext(), getIDSafe(), xoff, in copy2DRangeFrom() 305 tryDispatch(mRS, RS::dispatch->Allocation2DData(mRS->getContext(), getIDSafe(), xoff, 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 | 1000 public void setFromFieldPacker(int xoff, FieldPacker fp) { in setFromFieldPacker() argument 1011 copy1DRangeFromUnchecked(xoff, count, data); in setFromFieldPacker() 1022 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { in setFromFieldPacker() argument 1027 if(xoff < 0) { in setFromFieldPacker() 1041 mRS.nAllocationElementData1D(getIDSafe(), xoff, mSelectedLOD, in setFromFieldPacker() local 1432 private void validate2DRange(int xoff, int yoff, int w, int h) { in validate2DRange() argument 1437 if (xoff < 0 || yoff < 0) { in validate2DRange() 1443 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY)) { in validate2DRange() 1449 void copy2DRangeFromUnchecked(int xoff, int yoff, int w, int h, Object array, in copy2DRangeFromUnchecked() argument 1452 validate2DRange(xoff, yoff, w, h); in copy2DRangeFromUnchecked() [all …]
|
D | RenderScript.java | 486 …native void rsnAllocationElementData1D(long con,long id, int xoff, int mip, int compIdx, byte[] d,… in rsnAllocationElementData1D() argument 487 …synchronized void nAllocationElementData1D(long id, int xoff, int mip, int compIdx, byte[] d, int … in nAllocationElementData1D() argument 489 rsnAllocationElementData1D(mContext, id, xoff, mip, compIdx, d, sizeBytes); in nAllocationElementData1D() 519 native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, in rsnAllocationData2D() argument 522 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, in nAllocationData2D() argument 526 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 529 …native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, Bitmap b… in rsnAllocationData2D() argument 530 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, Bitmap b) { in nAllocationData2D() argument 532 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, b); in nAllocationData2D() 554 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationData3D() argument [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Allocation.java | 1038 public void setFromFieldPacker(int xoff, FieldPacker fp) { in setFromFieldPacker() argument 1049 copy1DRangeFromUnchecked(xoff, count, data); in setFromFieldPacker() 1061 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { in setFromFieldPacker() argument 1062 setFromFieldPacker(xoff, 0, 0, component_number, fp); in setFromFieldPacker() 1075 …public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp)… in setFromFieldPacker() argument 1080 if(xoff < 0) { in setFromFieldPacker() 1100 mRS.nAllocationElementData(getIDSafe(), xoff, yoff, zoff, mSelectedLOD, in setFromFieldPacker() local 1456 private void validate2DRange(int xoff, int yoff, int w, int h) { in validate2DRange() argument 1461 if (xoff < 0 || yoff < 0) { in validate2DRange() 1467 if (((xoff + w) > mCurrentDimX) || ((yoff + h) > mCurrentDimY)) { in validate2DRange() [all …]
|
D | RenderScript.java | 549 …native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int … in rsnAllocationElementData() argument 550 …synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compI… in nAllocationElementData() argument 552 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData() 575 native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, in rsnAllocationData2D() argument 578 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, in nAllocationData2D() argument 582 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D() 585 …native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, Bitmap b… in rsnAllocationData2D() argument 586 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, Bitmap b) { in nAllocationData2D() argument 588 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, b); in nAllocationData2D() 609 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationData3D() argument [all …]
|
/frameworks/rs/toolkit/ |
D | Resize.cpp | 388 int xoff = (xf16 >> 16) - 1; in kernelU4() local 389 int xclip = std::max(0, xoff) - xoff; in kernelU4() 396 xoff += xclip; in kernelU4() 401 yp0 + xoff, yp1 + xoff, yp2 + xoff, yp3 + xoff, in kernelU4() 402 xclip, srcWidth - xoff + xclip, in kernelU4() 459 int xoff = (xf16 >> 16) - 1; in kernelU2() local 460 int xclip = std::max(0, xoff) - xoff; in kernelU2() 467 xoff += xclip; in kernelU2() 472 yp0 + xoff, yp1 + xoff, yp2 + xoff, yp3 + xoff, in kernelU2() 473 xclip, srcWidth - xoff + xclip, in kernelU2() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicResize.cpp | 366 int xoff = (xf16 >> 16) - 1; in kernelU4() local 367 int xclip = rsMax(0, xoff) - xoff; in kernelU4() 374 xoff += xclip; in kernelU4() 379 yp0 + xoff, yp1 + xoff, yp2 + xoff, yp3 + xoff, in kernelU4() 380 xclip, srcWidth - xoff + xclip, in kernelU4() 443 int xoff = (xf16 >> 16) - 1; in kernelU2() local 444 int xclip = rsMax(0, xoff) - xoff; in kernelU2() 451 xoff += xclip; in kernelU2() 456 yp0 + xoff, yp1 + xoff, yp2 + xoff, yp3 + xoff, in kernelU2() 457 xclip, srcWidth - xoff + xclip, in kernelU2() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_alloc_copy.java | 270 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Byte() local 272 int xcount = width - xoff; 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() 305 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Short() local 307 int xcount = width - xoff; 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() 343 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Int() local 345 int xcount = width - xoff; in allocation_copy2DRangeTo_Int() [all …]
|
D | UT_alloc_copyPadded.java | 917 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Byte3() local 919 int xcount = width - xoff; 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() 953 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Short3() local 955 int xcount = width - xoff; 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() 992 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Int3() local 994 int xcount = width - xoff; in testAllocation_copy2DRangeTo_Int3() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_alloc_copy.java | 272 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Byte() local 274 int xcount = width - xoff; 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() 307 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Short() local 309 int xcount = width - xoff; 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() 345 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Int() local 347 int xcount = width - xoff; in allocation_copy2DRangeTo_Int() [all …]
|
D | UT_alloc_copyPadded.java | 919 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Byte3() local 921 int xcount = width - xoff; 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() 955 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Short3() local 957 int xcount = width - xoff; 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() 994 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Int3() local 996 int xcount = width - xoff; in testAllocation_copy2DRangeTo_Int3() [all …]
|
/frameworks/rs/ |
D | rsAllocation.cpp | 194 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() argument 208 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data() 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() 225 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, in read() argument 239 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes); in read() 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() [all …]
|
D | rsAllocation.h | 132 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size… 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, 138 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 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 | rsScriptC_Lib.cpp | 248 const Allocation *alloc, uint32_t xoff, uint32_t yoff, in validateCopyArgs() argument 263 if (xoff >= allocDimX || (xoff + w) > allocDimX) { in validateCopyArgs() 266 ss << "[" << xoff << ", " << xoff + w << ") outside "; in validateCopyArgs()
|
D | rs.spec | 179 param uint32_t xoff 205 param uint32_t xoff 217 param uint32_t xoff 239 param uint32_t xoff 257 param uint32_t xoff 269 param uint32_t xoff
|
D | rs_hal.h | 245 uint32_t xoff, uint32_t lod, size_t count, 248 uint32_t xoff, uint32_t yoff, uint32_t lod, 252 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 257 uint32_t xoff, uint32_t lod, size_t count, 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 | 397 extern "C" void rsAllocation1DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t … in rsAllocation1DData() argument 400 RS_DISPATCH(ctxWrapper, Allocation1DData, va, xoff, lod, count, data, data_length); in rsAllocation1DData() 415 extern "C" void rsAllocation2DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t … in rsAllocation2DData() argument 419 …RS_DISPATCH(ctxWrapper, Allocation2DData, va, xoff, yoff, lod, face, w, h, data, data_length, stri… in rsAllocation2DData() 422 extern "C" void rsAllocation3DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t … in rsAllocation3DData() argument 426 …RS_DISPATCH(ctxWrapper, Allocation3DData, va, xoff, yoff, zoff, lod, w, h, d, data, data_length, s… in rsAllocation3DData() 439 extern "C" void rsAllocation1DRead (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t … in rsAllocation1DRead() argument 442 RS_DISPATCH(ctxWrapper, Allocation1DRead, va, xoff, lod, count, data, data_length); in rsAllocation1DRead() 451 extern "C" void rsAllocation2DRead (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t … in rsAllocation2DRead() argument 455 …RS_DISPATCH(ctxWrapper, Allocation2DRead, va, xoff, yoff, lod, face, w, h, data, data_length, stri… in rsAllocation2DRead() [all …]
|
D | rsApiStubs.h | 259 uint32_t xoff, uint32_t lod, uint32_t count, 282 uint32_t xoff, uint32_t yoff, uint32_t lod, 291 uint32_t xoff, uint32_t yoff, uint32_t zoff, 311 uint32_t xoff, uint32_t lod, uint32_t count, 326 uint32_t xoff, uint32_t yoff, uint32_t lod, 335 uint32_t xoff, uint32_t yoff, uint32_t zoff,
|
D | rsHidlAdaptation.cpp | 556 void RsHidlAdaptation::Allocation1DData (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation1DData() argument 564 GetIContextHandle(context)->allocation1DWrite(_allocation, xoff, lod, count, _data); in Allocation1DData() 566 …HidlAdaptation::Allocation1DElementData (RsContext context, RsAllocation allocation, uint32_t xoff, in Allocation1DElementData() argument 574 GetIContextHandle(context)->allocationElementWrite(_allocation, xoff, 0, 0, lod, _data, eoff); in Allocation1DElementData() 588 void RsHidlAdaptation::Allocation2DData (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation2DData() argument 597 …GetIContextHandle(context)->allocation2DWrite(_allocation, xoff, yoff, lod, (AllocationCubemapFace… in Allocation2DData() 600 void RsHidlAdaptation::Allocation3DData (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation3DData() argument 608 …GetIContextHandle(context)->allocation3DWrite(_allocation, xoff, yoff, zoff, lod, w, h, d, _data, … in Allocation3DData() 625 void RsHidlAdaptation::Allocation1DRead (RsContext context, RsAllocation allocation, uint32_t xoff,… in Allocation1DRead() argument 630 GetIContextHandle(context)->allocation1DRead(_allocation, xoff, lod, count, data, sizeBytes); in Allocation1DRead() [all …]
|
/frameworks/rs/driver/ |
D | rsdAllocation.h | 112 uint32_t xoff, uint32_t lod, size_t count, 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, 127 uint32_t xoff, uint32_t lod, size_t count, 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,
|
D | rsdAllocation.cpp | 88 uint32_t xoff, uint32_t yoff, uint32_t zoff, in GetOffsetPtr() argument 94 ptr += xoff * alloc->mHal.state.elementSizeBytes; 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() 829 uint32_t xoff, uint32_t lod, size_t count, in rsdAllocationData1D() argument 834 uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); in rsdAllocationData1D() 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() 891 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D() 906 Update2DTexture(rsc, alloc, data, xoff, yoff, lod, face, w, h); in rsdAllocationData2D() [all …]
|
/frameworks/base/core/java/android/view/autofill/ |
D | AutofillPopupWindow.java | 265 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument 267 Log.v(TAG, "showAsDropDown(): anchor=" + anchor + ", xoff=" + xoff + ", yoff=" + yoff in showAsDropDown() 276 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown() 279 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown() 289 protected void attachToAnchor(View anchor, int xoff, int yoff, int gravity) { in attachToAnchor() argument 290 super.attachToAnchor(anchor, xoff, yoff, gravity); in attachToAnchor()
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | ortho.h | 17 const T xoff = -(right + left) / (right - left); in OrthoMatrix() local 21 result.matrix() << a, 0, 0, xoff, in OrthoMatrix()
|
/frameworks/base/core/java/com/android/internal/view/inline/ |
D | InlineTooltipUi.java | 253 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument 260 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown() 263 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown() 272 protected void attachToAnchor(View anchor, int xoff, int yoff, int gravity) { in attachToAnchor() argument 273 super.attachToAnchor(anchor, xoff, yoff, gravity); in attachToAnchor()
|
/frameworks/base/core/java/android/widget/ |
D | PopupWindow.java | 1382 public void showAsDropDown(View anchor, int xoff, int yoff) { in showAsDropDown() argument 1383 showAsDropDown(anchor, xoff, yoff, DEFAULT_ANCHORED_GRAVITY); in showAsDropDown() 1406 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument 1413 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown() 1422 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown() 2394 public void update(View anchor, int xoff, int yoff, int width, int height) { 2395 update(anchor, true, xoff, yoff, width, height); 2398 private void update(View anchor, boolean updateLocation, int xoff, int yoff, 2408 final boolean needsUpdate = updateLocation && (mAnchorXoff != xoff || mAnchorYoff != yoff); 2410 attachToAnchor(anchor, xoff, yoff, gravity); [all …]
|