Home
last modified time | relevance | path

Searched refs:yoff (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/rs/cpp/
DAllocation.cpp282 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/
DAllocation.java1432 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()
1468 mRS.nAllocationData2D(getIDSafe(), xoff, yoff, mSelectedLOD, mSelectedFace.mID, w, h, in copy2DRangeFromUnchecked() local
1499 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, Object array) { in copy2DRangeFrom() argument
1500 copy2DRangeFromUnchecked(xoff, yoff, w, h, array, in copy2DRangeFrom()
1532 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, byte[] data) { in copy2DRangeFrom() argument
1534 copy2DRangeFromUnchecked(xoff, yoff, w, h, data, in copy2DRangeFrom()
[all …]
DRenderScript.java519 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
557 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, in nAllocationData3D() argument
561 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, in nAllocationData3D()
589 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/
DAllocation.java1075 …public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp)… in setFromFieldPacker() argument
1083 if(yoff < 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()
1473 void copy2DRangeFromUnchecked(int xoff, int yoff, int w, int h, Object array, in copy2DRangeFromUnchecked() argument
1478 validate2DRange(xoff, yoff, w, h); in copy2DRangeFromUnchecked()
1494 mRS.nAllocationData2D(getIDSafe(), xoff, yoff, mSelectedLOD, mSelectedFace.mID, w, h, in copy2DRangeFromUnchecked() local
1528 public void copy2DRangeFrom(int xoff, int yoff, int w, int h, Object array) { in copy2DRangeFrom() argument
[all …]
DRenderScript.java549 …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/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_alloc_copy.java269 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 …]
DUT_alloc_copyPadded.java917 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/src/com/android/rs/unittest/
DUT_alloc_copy.java271 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 …]
DUT_alloc_copyPadded.java918 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/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_alloc_copy.java273 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 …]
DUT_alloc_copyPadded.java920 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/base/core/java/android/view/autofill/
DAutofillPopupWindow.java265 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/rs/driver/
DrsdAllocation.cpp88 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 …]
DrsdAllocation.h116 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/
Dortho.h18 const T yoff = -(top + bottom) / (top - bottom); in OrthoMatrix() local
22 0, b, 0, yoff, in OrthoMatrix()
/frameworks/base/core/java/com/android/internal/view/inline/
DInlineTooltipUi.java149 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
156 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
159 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
168 protected void attachToAnchor(View anchor, int xoff, int yoff, int gravity) { in attachToAnchor() argument
169 super.attachToAnchor(anchor, xoff, yoff, gravity); in attachToAnchor()
/frameworks/rs/
DrsScriptC_Lib.cpp248 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()
DrsAllocation.cpp212 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 …]
DrsAllocation.h133 … 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,
Drs.spec206 param uint32_t yoff
218 param uint32_t yoff
258 param uint32_t yoff
270 param uint32_t yoff
Drs_hal.h248 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,
DrsApiStubs.cpp415 …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()
DrsApiStubs.h120 extern "C" void rsAllocation2DData(RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff,
124 extern "C" void rsAllocation3DData(RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff,
137 extern "C" void rsAllocation2DRead(RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff,
141 extern "C" void rsAllocation3DRead(RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff,
/frameworks/base/core/java/android/widget/
DPopupWindow.java1378 public void showAsDropDown(View anchor, int xoff, int yoff) { in showAsDropDown() argument
1379 showAsDropDown(anchor, xoff, yoff, DEFAULT_ANCHORED_GRAVITY); in showAsDropDown()
1402 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
1409 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
1418 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
2380 public void update(View anchor, int xoff, int yoff, int width, int height) {
2381 update(anchor, true, xoff, yoff, width, height);
2384 private void update(View anchor, boolean updateLocation, int xoff, int yoff,
2394 final boolean needsUpdate = updateLocation && (mAnchorXoff != xoff || mAnchorYoff != yoff);
2396 attachToAnchor(anchor, xoff, yoff, gravity);
[all …]
/frameworks/minikin/libs/minikin/
DLayoutCore.cpp498 float yoff = -HBFixedToFloat(positions[i].y_offset); in LayoutPiece() local
499 xoff += yoff * paint.skewX; in LayoutPiece()
502 mPoints.emplace_back(x + xoff, y + yoff); in LayoutPiece()

12