Home
last modified time | relevance | path

Searched refs:xoff (Results 1 – 25 of 34) 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()
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/android/support/v8/renderscript/
DAllocation.java995 public void setFromFieldPacker(int xoff, FieldPacker fp) { in setFromFieldPacker() argument
1006 copy1DRangeFromUnchecked(xoff, count, data); in setFromFieldPacker()
1017 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { in setFromFieldPacker() argument
1022 if(xoff < 0) { in setFromFieldPacker()
1036 mRS.nAllocationElementData1D(getIDSafe(), xoff, mSelectedLOD, in setFromFieldPacker() local
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()
[all …]
/frameworks/base/rs/java/android/renderscript/
DAllocation.java1034 public void setFromFieldPacker(int xoff, FieldPacker fp) { in setFromFieldPacker() argument
1045 copy1DRangeFromUnchecked(xoff, count, data); in setFromFieldPacker()
1057 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { in setFromFieldPacker() argument
1058 setFromFieldPacker(xoff, 0, 0, component_number, fp); in setFromFieldPacker()
1071 …public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp)… in setFromFieldPacker() argument
1076 if(xoff < 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()
[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/v7/appcompat/src/android/support/v7/widget/
DAppCompatPopupWindow.java62 public void showAsDropDown(View anchor, int xoff, int yoff) {
67 super.showAsDropDown(anchor, xoff, yoff);
71 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) {
76 super.showAsDropDown(anchor, xoff, yoff, gravity);
80 public void update(View anchor, int xoff, int yoff, int width, int height) {
85 super.update(anchor, xoff, yoff, width, height);
/frameworks/support/compat/java/android/support/v4/widget/
DPopupWindowCompat.java42 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
49 xoff -= (popup.getWidth() - anchor.getWidth()); in showAsDropDown()
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/cpu_ref/
DrsCpuIntrinsicResize.cpp344 int xoff = (xf16 >> 16) - 1; in kernelU4() local
345 int xclip = rsMax(0, xoff) - xoff; in kernelU4()
352 xoff += xclip; in kernelU4()
357 yp0 + xoff, yp1 + xoff, yp2 + xoff, yp3 + xoff, in kernelU4()
358 xclip, srcWidth - xoff + xclip, in kernelU4()
411 int xoff = (xf16 >> 16) - 1; in kernelU2() local
412 int xclip = rsMax(0, xoff) - xoff; in kernelU2()
419 xoff += xclip; in kernelU2()
424 yp0 + xoff, yp1 + xoff, yp2 + xoff, yp3 + xoff, in kernelU2()
425 xclip, srcWidth - xoff + xclip, in kernelU2()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_alloc_copy.java270 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 …]
DUT_alloc_copyPadded.java917 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/
DUT_alloc_copy.java272 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 …]
DUT_alloc_copyPadded.java919 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/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_alloc_copy.java268 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Byte() local
270 int xcount = width - xoff; 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()
303 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Short() local
305 int xcount = width - xoff; 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()
341 int xoff = random.nextInt(width); in allocation_copy2DRangeTo_Int() local
343 int xcount = width - xoff; in allocation_copy2DRangeTo_Int()
[all …]
DUT_alloc_copyPadded.java916 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Byte3() local
918 int xcount = width - xoff; 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()
952 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Short3() local
954 int xcount = width - xoff; 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()
991 int xoff = random.nextInt(width); in testAllocation_copy2DRangeTo_Int3() local
993 int xcount = width - xoff; in testAllocation_copy2DRangeTo_Int3()
[all …]
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java203 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
205 Log.v(TAG, "showAsDropDown(): anchor=" + anchor + ", xoff=" + xoff + ", yoff=" + yoff in showAsDropDown()
214 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
217 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
227 protected void attachToAnchor(View anchor, int xoff, int yoff, int gravity) { in attachToAnchor() argument
228 super.attachToAnchor(anchor, xoff, yoff, gravity); in attachToAnchor()
/frameworks/rs/
DrsAllocation.cpp194 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 …]
DrsAllocation.h132 …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,
DrsScriptC_Lib.cpp248 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()
Drs.spec179 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
Drs_hal.h245 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,
DrsApiStubs.cpp397 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 …]
/frameworks/rs/driver/
DrsdAllocation.h112 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,
DrsdAllocation.cpp87 uint32_t xoff, uint32_t yoff, uint32_t zoff, in GetOffsetPtr() argument
93 ptr += xoff * alloc->mHal.state.elementSizeBytes; in GetOffsetPtr()
99 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument
111 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture()
819 uint32_t xoff, uint32_t lod, size_t count, in rsdAllocationData1D() argument
824 uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); in rsdAllocationData1D()
839 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in rsdAllocationData2D() argument
851 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
881 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
896 Update2DTexture(rsc, alloc, data, xoff, yoff, lod, face, w, h); in rsdAllocationData2D()
[all …]
/frameworks/rs/rsov/driver/
DrsovAllocation.h90 uint32_t xoff, uint32_t lod, size_t count,
95 uint32_t xoff, uint32_t yoff, uint32_t lod,
102 uint32_t xoff, uint32_t yoff, uint32_t zoff,
109 uint32_t xoff, uint32_t lod, size_t count,
114 uint32_t xoff, uint32_t yoff, uint32_t lod,
121 uint32_t xoff, uint32_t yoff, uint32_t zoff,
DrsovAllocation.cpp147 uint8_t *GetOffsetPtr(const Allocation *alloc, uint32_t xoff, uint32_t yoff, in GetOffsetPtr() argument
155 ptr += xoff * alloc->mHal.state.elementSizeBytes; in GetOffsetPtr()
320 uint32_t xoff, uint32_t lod, size_t count, in rsovAllocationData1D() argument
324 GetOffsetPtr(alloc, xoff, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); in rsovAllocationData1D()
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()
374 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); 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()
418 uint32_t xoff, uint32_t lod, size_t count, void *data, in rsovAllocationRead1D() argument
[all …]
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dortho.h17 const T xoff = -(right + left) / (right - left); in OrthoMatrix() local
21 result.matrix() << a, 0, 0, xoff, in OrthoMatrix()

12