Home
last modified time | relevance | path

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

/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 …]
DrsCppStructs.h611 void validate2DRange(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h);
612 void validate3DRange(uint32_t xoff, uint32_t yoff, uint32_t zoff,
725 void copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
737 void copy2DRangeTo(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
750 void copy2DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
762 void copy2DStridedFrom(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
781 void copy2DStridedTo(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h,
803 void copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w,
819 void copy3DRangeFrom(uint32_t xoff, uint32_t yoff, uint32_t zoff,
835 void copy3DRangeTo(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w,
/frameworks/support/v8/renderscript/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 …]
DRenderScript.java469 …native void rsnAllocationElementData1D(long con,long id, int xoff, int mip, int compIdx, byte[] d,… in rsnAllocationElementData1D() argument
470 …synchronized void nAllocationElementData1D(long id, int xoff, int mip, int compIdx, byte[] d, int … in nAllocationElementData1D() argument
472 rsnAllocationElementData1D(mContext, id, xoff, mip, compIdx, d, sizeBytes); in nAllocationElementData1D()
502 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
[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/compat/java/android/support/v4/widget/
DPopupWindowCompat.java37 void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity); in showAsDropDown() argument
54 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
61 xoff -= (popup.getWidth() - anchor.getWidth()); in showAsDropDown()
63 popup.showAsDropDown(anchor, xoff, yoff); in showAsDropDown()
127 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
129 PopupWindowCompatKitKat.showAsDropDown(popup, anchor, xoff, yoff, gravity); in showAsDropDown()
204 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
206 IMPL.showAsDropDown(popup, anchor, xoff, yoff, gravity); in showAsDropDown()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicResize.cpp351 int xoff = (xf16 >> 16) - 1; in kernelU4() local
352 int xclip = rsMax(0, xoff) - xoff; in kernelU4()
359 xoff += xclip; in kernelU4()
364 yp0 + xoff, yp1 + xoff, yp2 + xoff, yp3 + xoff, in kernelU4()
365 xclip, srcWidth - xoff + xclip, in kernelU4()
418 int xoff = (xf16 >> 16) - 1; in kernelU2() local
419 int xclip = rsMax(0, xoff) - xoff; in kernelU2()
426 xoff += xclip; in kernelU2()
431 yp0 + xoff, yp1 + xoff, yp2 + xoff, yp3 + xoff, in kernelU2()
432 xclip, srcWidth - xoff + xclip, in kernelU2()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatPopupWindow.java87 public void showAsDropDown(View anchor, int xoff, int yoff) {
92 super.showAsDropDown(anchor, xoff, yoff);
97 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) {
102 super.showAsDropDown(anchor, xoff, yoff, gravity);
106 public void update(View anchor, int xoff, int yoff, int width, int height) {
111 super.update(anchor, xoff, yoff, width, height);
/frameworks/rs/java/tests/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/rs/java/tests/RSTest_CompatLib/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/rs/driver/
DrsdAllocation.h114 uint32_t xoff, uint32_t lod, size_t count,
118 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
123 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
129 uint32_t xoff, uint32_t lod, size_t count,
133 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
138 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
DrsdAllocation.cpp92 uint32_t xoff, uint32_t yoff, uint32_t zoff, in GetOffsetPtr() argument
98 ptr += xoff * alloc->mHal.state.elementSizeBytes; in GetOffsetPtr()
104 uint32_t xoff, uint32_t yoff, uint32_t lod, in Update2DTexture() argument
116 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture()
871 uint32_t xoff, uint32_t lod, size_t count, in rsdAllocationData1D() argument
876 uint8_t * ptr = GetOffsetPtr(alloc, xoff, 0, 0, 0, RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); in rsdAllocationData1D()
891 uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, in rsdAllocationData2D() argument
903 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
933 uint8_t *dst = GetOffsetPtr(alloc, xoff, yoff, 0, lod, face); in rsdAllocationData2D()
948 Update2DTexture(rsc, alloc, data, xoff, yoff, lod, face, w, h); in rsdAllocationData2D()
[all …]
/frameworks/rs/
DrsAllocation.cpp192 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() argument
205 rsc->mHal.funcs.allocation.data1D(rsc, this, xoff, lod, count, data, sizeBytes); in data()
209 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() argument
211 …rsc->mHal.funcs.allocation.data2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in data()
215 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, in data() argument
218 …rsc->mHal.funcs.allocation.data3D(rsc, this, xoff, yoff, zoff, lod, w, h, d, data, sizeBytes, stri… in data()
222 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, in read() argument
235 rsc->mHal.funcs.allocation.read1D(rsc, this, xoff, lod, count, data, sizeBytes); in read()
238 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in read() argument
253 …rsc->mHal.funcs.allocation.read2D(rsc, this, xoff, yoff, lod, face, w, h, data, sizeBytes, stride); in read()
[all …]
DrsAllocation.h136 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size…
137 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
139 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
142 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes);
143 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
145 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
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.h242 uint32_t xoff, uint32_t lod, size_t count,
245 uint32_t xoff, uint32_t yoff, uint32_t lod,
249 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
254 uint32_t xoff, uint32_t lod, size_t count,
257 uint32_t xoff, uint32_t yoff, uint32_t lod,
261 uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
/frameworks/support/compat/kitkat/android/support/v4/widget/
DPopupWindowCompatKitKat.java28 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
30 popup.showAsDropDown(anchor, xoff, yoff, gravity); in showAsDropDown()
/frameworks/base/core/java/android/widget/
DPopupWindow.java1192 public void showAsDropDown(View anchor, int xoff, int yoff) { in showAsDropDown() argument
1193 showAsDropDown(anchor, xoff, yoff, DEFAULT_ANCHORED_GRAVITY); in showAsDropDown()
1216 public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) { in showAsDropDown() argument
1223 attachToAnchor(anchor, xoff, yoff, gravity); in showAsDropDown()
1231 final boolean aboveAnchor = findDropDownPosition(anchor, p, xoff, yoff, in showAsDropDown()
2130 public void update(View anchor, int xoff, int yoff, int width, int height) {
2131 update(anchor, true, xoff, yoff, width, height);
2134 private void update(View anchor, boolean updateLocation, int xoff, int yoff,
2144 final boolean needsUpdate = updateLocation && (mAnchorXoff != xoff || mAnchorYoff != yoff);
2146 attachToAnchor(anchor, xoff, yoff, gravity);
[all …]
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1403 jint xoff, jint yoff, jint zoff, in nAllocationElementData() argument
1409 "sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, compIdx, len, in nAllocationElementData()
1418 xoff, yoff, zoff, in nAllocationElementData()
1426 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint … in nAllocationData2D() argument
1434 "type(%i)", (RsContext)con, alloc, xoff, yoff, w, h, sizeBytes, dataType); in nAllocationData2D()
1438 (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0); in nAllocationData2D()
1471 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint … in nAllocationData3D() argument
1478 " h(%i), d(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, in nAllocationData3D()
1483 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0); in nAllocationData3D()
1545 jint xoff, jint yoff, jint zoff, in nAllocationElementRead() argument
[all …]
/frameworks/support/v8/renderscript/jni/
Dandroid_renderscript_RenderScript.cpp1186 nAllocationElementData1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint xoff, in nAllocationElementData1D() argument
1190 "sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, compIdx, in nAllocationElementData1D()
1194 dispatchTab.Allocation1DElementData((RsContext)con, (RsAllocation)alloc, xoff, in nAllocationElementData1D()
1219 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint … in nAllocationData2D() argument
1226 "type(%i)", (RsContext)con, alloc, xoff, yoff, w, h, sizeBytes, dataType); in nAllocationData2D()
1229 (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0); in nAllocationData2D()
1258 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint … in nAllocationData3D() argument
1264 " h(%i), d(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, in nAllocationData3D()
1268 (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0); in nAllocationData3D()
1339 nAllocationRead2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint … in nAllocationRead2D() argument
[all …]
/frameworks/minikin/libs/minikin/
DLayout.cpp832 float xoff = HBFixedToFloat(positions[i].x_offset); in doLayoutRun() local
834 xoff += yoff * ctx->paint.skewX; in doLayoutRun()
835 LayoutGlyph glyph = {font_ix, glyph_ix, x + xoff, y + yoff}; in doLayoutRun()
843 glyphBounds.offset(x + xoff, y + yoff); in doLayoutRun()
/frameworks/base/core/java/android/view/
DViewRootImpl.java2837 private boolean drawSoftware(Surface surface, AttachInfo attachInfo, int xoff, int yoff, in drawSoftware() argument
2886 if (!canvas.isOpaque() || yoff != 0 || xoff != 0) { in drawSoftware()
2901 canvas.translate(-xoff, -yoff); in drawSoftware()