Home
last modified time | relevance | path

Searched refs:yoff (Results 1 – 25 of 31) 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/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatPopupWindow.java88 public void showAsDropDown(View anchor, int xoff, int yoff) {
91 yoff -= anchor.getHeight();
93 super.showAsDropDown(anchor, xoff, yoff);
97 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) {
100 yoff -= anchor.getHeight();
102 super.showAsDropDown(anchor, xoff, yoff, gravity);
106 public void update(View anchor, int xoff, int yoff, int width, int height) {
109 yoff -= anchor.getHeight();
111 super.update(anchor, xoff, yoff, width, height);
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DAllocation.java1427 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 …]
DRenderScript.java502 native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, in rsnAllocationData2D() argument
505 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, in nAllocationData2D() argument
509 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D()
512 …native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, Bitmap b… in rsnAllocationData2D() argument
513 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, Bitmap b) { in nAllocationData2D() argument
515 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, b); in nAllocationData2D()
537 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationData3D() argument
540 synchronized void nAllocationData3D(long id, int xoff, int yoff, int zoff, int mip, in nAllocationData3D() argument
544 rsnAllocationData3D(mContext, id, xoff, yoff, zoff, mip, w, h, depth, d, sizeBytes, in nAllocationData3D()
572 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.java1071 …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 …]
DRenderScript.java543 …native void rsnAllocationElementData(long con,long id, int xoff, int yoff, int zoff, int mip, int … in rsnAllocationElementData() argument
544 …synchronized void nAllocationElementData(long id, int xoff, int yoff, int zoff, int mip, int compI… in nAllocationElementData() argument
546 rsnAllocationElementData(mContext, id, xoff, yoff, zoff, mip, compIdx, d, sizeBytes); in nAllocationElementData()
569 native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, in rsnAllocationData2D() argument
572 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, in nAllocationData2D() argument
576 …rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, w, h, d, sizeBytes, dt.mID, mSize, usePad… in nAllocationData2D()
579 …native void rsnAllocationData2D(long con, long id, int xoff, int yoff, int mip, int face, Bitmap b… in rsnAllocationData2D() argument
580 synchronized void nAllocationData2D(long id, int xoff, int yoff, int mip, int face, Bitmap b) { in nAllocationData2D() argument
582 rsnAllocationData2D(mContext, id, xoff, yoff, mip, face, b); in nAllocationData2D()
603 native void rsnAllocationData3D(long con, long id, int xoff, int yoff, int zoff, int mip, in rsnAllocationData3D() argument
[all …]
/frameworks/support/compat/java/android/support/v4/widget/
DPopupWindowCompat.java42 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
51 popup.showAsDropDown(anchor, xoff, yoff); in showAsDropDown()
112 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
114 popup.showAsDropDown(anchor, xoff, yoff, gravity); in showAsDropDown()
216 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
218 IMPL.showAsDropDown(popup, anchor, xoff, yoff, gravity); in showAsDropDown()
/frameworks/rs/tests/java_api/RSTest_CompatLib/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/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/rsov/driver/
DrsovAllocation.cpp147 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()
339 uint32_t xoff, uint32_t yoff, uint32_t lod, in rsovAllocationData2D() argument
350 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsovAllocationData2D()
352 for (uint32_t line = yoff; line < (yoff + h); line++) { in rsovAllocationData2D()
375 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsovAllocationData2D()
377 for (uint32_t line = (yoff >> 1); line < ((yoff + h) >> 1); line++) { in rsovAllocationData2D()
391 uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsovAllocationData3D() argument
403 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, z, lod, in rsovAllocationData3D()
405 for (uint32_t line = yoff; line < (yoff + h); line++) { in rsovAllocationData3D()
[all …]
DrsovAllocation.h95 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/rs/driver/
DrsdAllocation.cpp85 uint32_t xoff, uint32_t yoff, uint32_t zoff, in GetOffsetPtr() argument
90 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr()
97 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument
109 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture()
837 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in rsdAllocationData2D() argument
849 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
857 for (uint32_t line=yoff; line < (yoff+h); line++) { in rsdAllocationData2D()
879 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
881 for (uint32_t line=(yoff >> 1); line < ((yoff+h)>>1); line++) { in rsdAllocationData2D()
894 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/android/view/autofill/
DAutofillPopupWindow.java190 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
192 Log.v(TAG, "showAsDropDown(): anchor=" + anchor + ", xoff=" + xoff + ", yoff=" + yoff in showAsDropDown()
201 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
204 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
/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.cpp420 …llocation2DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, in rsAllocation2DData() argument
424 …RS_DISPATCH(ctxWrapper, Allocation2DData, va, xoff, yoff, lod, face, w, h, data, data_length, stri… in rsAllocation2DData()
427 …location3DData (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsAllocation3DData() argument
431 …RS_DISPATCH(ctxWrapper, Allocation3DData, va, xoff, yoff, zoff, lod, w, h, d, data, data_length, s… in rsAllocation3DData()
456 …llocation2DRead (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, in rsAllocation2DRead() argument
460 …RS_DISPATCH(ctxWrapper, Allocation2DRead, va, xoff, yoff, lod, face, w, h, data, data_length, stri… in rsAllocation2DRead()
463 …location3DRead (RsContext ctxWrapper, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t zoff, in rsAllocation3DRead() argument
467 …RS_DISPATCH(ctxWrapper, Allocation3DRead, va, xoff, yoff, zoff, lod, w, h, d, data, data_length, s… in rsAllocation3DRead()
DrsApiStubs.h74 extern "C" void rsAllocation2DData (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, u…
75 extern "C" void rsAllocation3DData (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, u…
80 extern "C" void rsAllocation2DRead (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, u…
81 extern "C" void rsAllocation3DRead (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, u…
/frameworks/base/core/java/android/widget/
DPopupWindow.java1239 public void showAsDropDown(View anchor, int xoff, int yoff) { in showAsDropDown() argument
1240 showAsDropDown(anchor, xoff, yoff, DEFAULT_ANCHORED_GRAVITY); in showAsDropDown()
1263 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
1270 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
1279 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
2229 public void update(View anchor, int xoff, int yoff, int width, int height) {
2230 update(anchor, true, xoff, yoff, width, height);
2233 private void update(View anchor, boolean updateLocation, int xoff, int yoff,
2243 final boolean needsUpdate = updateLocation && (mAnchorXoff != xoff || mAnchorYoff != yoff);
2245 attachToAnchor(anchor, xoff, yoff, gravity);
[all …]

12