Searched defs:env (Results 1 - 25 of 199) sorted by path

12345678

/frameworks/base/cmds/app_process/
H A Dapp_main.cpp53 virtual void onVmCreated(JNIEnv* env) argument
73 mClass = env->FindClass(slashClassName);
79 mClass = reinterpret_cast<jclass>(env->NewGlobalRef(mClass));
/frameworks/base/cmds/ip-up-vpn/
H A Dip-up-vpn.c36 static const char *env(const char *name) { function
79 fprintf(state, "%s %s\n", env("DNS1"), env("DNS2"));
83 const char *interface = env("INTERFACE");
84 const char *address = env("INTERNAL_ADDR4");
85 const char *routes = env("SPLIT_INCLUDE_CIDR");
96 if (set_address(&rt.rt_dst, env("REMOTE_ADDR"))) {
128 if (set_address(&ifr.ifr_netmask, env("INTERNAL_NETMASK4"))) {
138 fprintf(state, "%s/%s\n", address, env("INTERNAL_CIDR4"));
140 fprintf(state, "%s\n", env("INTERNAL_DNS4_LIS
[all...]
/frameworks/base/cmds/system_server/library/
H A Dsystem_init.cpp85 JNIEnv* env = runtime->getJNIEnv(); local
86 if (env == NULL) {
89 jclass clazz = env->FindClass("com/android/server/SystemServer");
93 jmethodID methodId = env->GetStaticMethodID(clazz, "init2", "()V");
97 env->CallStaticVoidMethod(clazz, methodId);
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp52 extern int register_android_os_Binder(JNIEnv* env);
53 extern int register_android_os_Process(JNIEnv* env);
57 extern int register_android_graphics_Camera(JNIEnv* env);
58 extern int register_android_graphics_Graphics(JNIEnv* env);
59 extern int register_android_graphics_Interpolator(JNIEnv* env);
61 extern int register_android_graphics_MaskFilter(JNIEnv* env);
62 extern int register_android_graphics_Movie(JNIEnv* env);
64 extern int register_android_graphics_PathEffect(JNIEnv* env);
65 extern int register_android_graphics_Shader(JNIEnv* env);
66 extern int register_android_graphics_Typeface(JNIEnv* env);
179 doThrow(JNIEnv* env, const char* exc, const char* msg = NULL) argument
188 com_android_internal_os_RuntimeInit_nativeFinishInit(JNIEnv* env, jobject clazz) argument
193 com_android_internal_os_RuntimeInit_nativeZygoteInit(JNIEnv* env, jobject clazz) argument
198 com_android_internal_os_RuntimeInit_nativeSetExitWithoutCleanup(JNIEnv* env, jobject clazz, jboolean exitWithoutCleanup) argument
216 register_com_android_internal_os_RuntimeInit(JNIEnv* env) argument
257 registerNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMethods, int numMethods) argument
266 JNIEnv* env; local
838 JNIEnv* env; local
917 onVmCreated(JNIEnv* env) argument
929 JNIEnv* env; local
991 JNIEnv* env; local
1075 register_jni_procs(const RegJNIRec array[], size_t count, JNIEnv* env) argument
1220 startReg(JNIEnv* env) argument
1259 Java_com_android_internal_util_WithFramework_registerNatives( JNIEnv* env, jclass clazz) argument
1268 Java_LoadClass_registerNatives(JNIEnv* env, jclass clazz) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp80 bool GraphicsJNI::SetPixels(JNIEnv* env, jintArray srcColors, argument
92 const jint* array = env->GetIntArrayElements(srcColors, NULL);
106 env->ReleaseIntArrayElements(srcColors, const_cast<jint*>(array),
214 static jobject Bitmap_creator(JNIEnv* env, jobject, jintArray jColors, argument
218 size_t n = env->GetArrayLength(jColors);
220 doThrowAIOOBE(env);
229 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
235 GraphicsJNI::SetPixels(env, jColors, offset, stride,
239 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL, NULL);
242 static jobject Bitmap_copy(JNIEnv* env, jobjec argument
254 Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) argument
264 Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) argument
281 Bitmap_compress(JNIEnv* env, jobject clazz, SkBitmap* bitmap, int format, int quality, jobject jstream, jbyteArray jstorage) argument
323 Bitmap_erase(JNIEnv* env, jobject, SkBitmap* bitmap, jint color) argument
327 Bitmap_width(JNIEnv* env, jobject, SkBitmap* bitmap) argument
331 Bitmap_height(JNIEnv* env, jobject, SkBitmap* bitmap) argument
335 Bitmap_rowBytes(JNIEnv* env, jobject, SkBitmap* bitmap) argument
339 Bitmap_config(JNIEnv* env, jobject, SkBitmap* bitmap) argument
343 Bitmap_getGenerationId(JNIEnv* env, jobject, SkBitmap* bitmap) argument
347 Bitmap_hasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap) argument
351 Bitmap_setHasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasAlpha) argument
356 Bitmap_hasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap) argument
360 Bitmap_setHasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasMipMap) argument
367 Bitmap_createFromParcel(JNIEnv* env, jobject, jobject parcel) argument
432 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument
485 Bitmap_extractAlpha(JNIEnv* env, jobject clazz, const SkBitmap* src, const SkPaint* paint, jintArray offsetXY) argument
512 Bitmap_getPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y) argument
530 Bitmap_getPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument
557 Bitmap_setPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, SkColor color) argument
573 Bitmap_setPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument
580 Bitmap_copyPixelsToBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument
593 Bitmap_copyPixelsFromBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument
606 Bitmap_sameAs(JNIEnv* env, jobject, const SkBitmap* bm0, const SkBitmap* bm1) argument
653 Bitmap_prepareToDraw(JNIEnv* env, jobject, SkBitmap* bitmap) argument
702 register_android_graphics_Bitmap(JNIEnv* env) argument
[all...]
H A DBitmapFactory.cpp54 jstring getMimeTypeString(JNIEnv* env, SkImageDecoder::Format format) { argument
77 jstr = env->NewStringUTF(cstr);
82 static bool optionsPurgeable(JNIEnv* env, jobject options) { argument
83 return options != NULL && env->GetBooleanField(options, gOptions_purgeableFieldID);
86 static bool optionsShareable(JNIEnv* env, jobject options) { argument
87 return options != NULL && env->GetBooleanField(options, gOptions_shareableFieldID);
90 static bool optionsJustBounds(JNIEnv* env, jobject options) { argument
91 return options != NULL && env->GetBooleanField(options, gOptions_justBoundsFieldID);
115 static jbyteArray nativeScaleNinePatch(JNIEnv* env, jobject, jbyteArray chunkObject, jfloat scale, argument
118 jbyte* array = env
158 doDecode(JNIEnv* env, SkStream* stream, jobject padding, jobject options, bool allowPurgeable, bool forcePurgeable = false, bool applyScale = false, float scale = 1.0f) argument
395 nativeDecodeStreamScaled(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jobject padding, jobject options, jboolean applyScale, jfloat scale) argument
409 nativeDecodeStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jobject padding, jobject options) argument
425 nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fileDescriptor, jobject padding, jobject bitmapFactoryOptions) argument
489 nativeDecodeAssetScaled(JNIEnv* env, jobject clazz, jint native_asset, jobject padding, jobject options, jboolean applyScale, jfloat scale) argument
511 nativeDecodeAsset(JNIEnv* env, jobject clazz, jint native_asset, jobject padding, jobject options) argument
517 nativeDecodeByteArray(JNIEnv* env, jobject, jbyteArray byteArray, int offset, int length, jobject options) argument
536 nativeIsSeekable(JNIEnv* env, jobject, jobject fileDescriptor) argument
588 getFieldIDCheck(JNIEnv* env, jclass clazz, const char fieldname[], const char type[]) argument
595 register_android_graphics_BitmapFactory(JNIEnv* env) argument
[all...]
H A DBitmapRegionDecoder.cpp73 static jobject doBuildTileIndex(JNIEnv* env, SkStream* stream) { argument
77 doThrowIOE(env, "Image format not supported");
81 JavaPixelAllocator *javaAllocator = new JavaPixelAllocator(env);
89 doThrowIOE(env, msg);
95 return GraphicsJNI::createBitmapRegionDecoder(env, bm);
98 static jobject nativeNewInstanceFromByteArray(JNIEnv* env, jobject, jbyteArray byteArray, argument
104 AutoJavaByteArray ar(env, byteArray);
106 return doBuildTileIndex(env, stream);
109 static jobject nativeNewInstanceFromFileDescriptor(JNIEnv* env, jobject clazz, argument
111 NPE_CHECK_RETURN_ZERO(env, fileDescripto
150 nativeNewInstanceFromStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jboolean isShareable) argument
166 nativeNewInstanceFromAsset(JNIEnv* env, jobject clazz, jint native_asset, jboolean isShareable) argument
183 nativeDecodeRegion(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd, int start_x, int start_y, int width, int height, jobject options) argument
263 nativeGetHeight(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument
267 nativeGetWidth(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument
271 nativeClean(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument
313 register_android_graphics_BitmapRegionDecoder(JNIEnv* env) argument
[all...]
H A DCamera.cpp8 static void Camera_constructor(JNIEnv* env, jobject obj) { argument
10 env->SetIntField(obj, gNativeInstanceFieldID, (int)view);
13 static void Camera_destructor(JNIEnv* env, jobject obj) { argument
14 delete (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID);
17 static void Camera_save(JNIEnv* env, jobject obj) { argument
18 Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID);
22 static void Camera_restore(JNIEnv* env, jobject obj) { argument
23 Sk3DView* v = (Sk3DView*)env->GetIntField(obj, gNativeInstanceFieldID);
27 static void Camera_translate(JNIEnv* env, jobject obj, argument
29 Sk3DView* v = (Sk3DView*)env
33 Camera_rotateX(JNIEnv* env, jobject obj, float degrees) argument
38 Camera_rotateY(JNIEnv* env, jobject obj, float degrees) argument
43 Camera_rotateZ(JNIEnv* env, jobject obj, float degrees) argument
48 Camera_rotate(JNIEnv* env, jobject obj, jfloat x, jfloat y, jfloat z) argument
55 Camera_setLocation(JNIEnv* env, jobject obj, jfloat x, jfloat y, jfloat z) argument
60 Camera_getLocationX(JNIEnv* env, jobject obj) argument
65 Camera_getLocationY(JNIEnv* env, jobject obj) argument
70 Camera_getLocationZ(JNIEnv* env, jobject obj) argument
75 Camera_getMatrix(JNIEnv* env, jobject obj, int native_matrix) argument
80 Camera_applyToCanvas(JNIEnv* env, jobject obj, int native_canvas) argument
85 Camera_dotWithNormal(JNIEnv* env, jobject obj, float x, float y, float z) argument
119 register_android_graphics_Camera(JNIEnv* env) argument
[all...]
H A DCanvas.cpp60 static void finalizer(JNIEnv* env, jobject clazz, SkCanvas* canvas) { argument
64 static SkCanvas* initRaster(JNIEnv* env, jobject, SkBitmap* bitmap) { argument
68 static void freeCaches(JNIEnv* env, jobject) { argument
74 static void freeTextLayoutCaches(JNIEnv* env, jobject) { argument
78 static jboolean isOpaque(JNIEnv* env, jobject jcanvas) { argument
79 NPE_CHECK_RETURN_ZERO(env, jcanvas);
80 SkCanvas* canvas = GraphicsJNI::getNativeCanvas(env, jcanvas);
84 static int getWidth(JNIEnv* env, jobject jcanvas) { argument
85 NPE_CHECK_RETURN_ZERO(env, jcanvas);
86 SkCanvas* canvas = GraphicsJNI::getNativeCanvas(env, jcanva
90 getHeight(JNIEnv* env, jobject jcanvas) argument
96 setBitmap(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap) argument
104 saveAll(JNIEnv* env, jobject jcanvas) argument
109 save(JNIEnv* env, jobject jcanvas, SkCanvas::SaveFlags flags) argument
114 saveLayer(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds, SkPaint* paint, int flags) argument
125 saveLayer4F(JNIEnv* env, jobject, SkCanvas* canvas, jfloat l, jfloat t, jfloat r, jfloat b, SkPaint* paint, int flags) argument
134 saveLayerAlpha(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds, int alpha, int flags) argument
146 saveLayerAlpha4F(JNIEnv* env, jobject, SkCanvas* canvas, jfloat l, jfloat t, jfloat r, jfloat b, int alpha, int flags) argument
156 restore(JNIEnv* env, jobject jcanvas) argument
166 getSaveCount(JNIEnv* env, jobject jcanvas) argument
171 restoreToCount(JNIEnv* env, jobject jcanvas, int restoreCount) argument
181 translate(JNIEnv* env, jobject jcanvas, jfloat dx, jfloat dy) argument
188 scale__FF(JNIEnv* env, jobject jcanvas, jfloat sx, jfloat sy) argument
195 rotate__F(JNIEnv* env, jobject jcanvas, jfloat degrees) argument
201 skew__FF(JNIEnv* env, jobject jcanvas, jfloat sx, jfloat sy) argument
208 concat(JNIEnv* env, jobject, SkCanvas* canvas, const SkMatrix* matrix) argument
213 setMatrix(JNIEnv* env, jobject, SkCanvas* canvas, const SkMatrix* matrix) argument
222 clipRect_FFFF(JNIEnv* env, jobject jcanvas, jfloat left, jfloat top, jfloat right, jfloat bottom) argument
232 clipRect_IIII(JNIEnv* env, jobject jcanvas, jint left, jint top, jint right, jint bottom) argument
241 clipRect_RectF(JNIEnv* env, jobject jcanvas, jobject rectf) argument
249 clipRect_Rect(JNIEnv* env, jobject jcanvas, jobject rect) argument
257 clipRect(JNIEnv* env, jobject, SkCanvas* canvas, float left, float top, float right, float bottom, int op) argument
266 clipPath(JNIEnv* env, jobject, SkCanvas* canvas, SkPath* path, int op) argument
271 clipRegion(JNIEnv* env, jobject, SkCanvas* canvas, SkRegion* deviceRgn, int op) argument
276 setDrawFilter(JNIEnv* env, jobject, SkCanvas* canvas, SkDrawFilter* filter) argument
281 quickReject__RectFI(JNIEnv* env, jobject, SkCanvas* canvas, jobject rect, int edgetype) argument
288 quickReject__PathI(JNIEnv* env, jobject, SkCanvas* canvas, SkPath* path, int edgetype) argument
293 quickReject__FFFFI(JNIEnv* env, jobject, SkCanvas* canvas, jfloat left, jfloat top, jfloat right, jfloat bottom, int edgetype) argument
302 drawRGB(JNIEnv* env, jobject, SkCanvas* canvas, jint r, jint g, jint b) argument
307 drawARGB(JNIEnv* env, jobject, SkCanvas* canvas, jint a, jint r, jint g, jint b) argument
312 drawColor__I(JNIEnv* env, jobject, SkCanvas* canvas, jint color) argument
317 drawColor__II(JNIEnv* env, jobject, SkCanvas* canvas, jint color, SkPorterDuff::Mode mode) argument
322 drawPaint(JNIEnv* env, jobject, SkCanvas* canvas, SkPaint* paint) argument
327 doPoints(JNIEnv* env, jobject jcanvas, jfloatArray jptsArray, jint offset, jint count, jobject jpaint, SkCanvas::PointMode mode) argument
357 drawPoints(JNIEnv* env, jobject jcanvas, jfloatArray jptsArray, jint offset, jint count, jobject jpaint) argument
363 drawLines(JNIEnv* env, jobject jcanvas, jfloatArray jptsArray, jint offset, jint count, jobject jpaint) argument
369 drawPoint(JNIEnv* env, jobject jcanvas, float x, float y, jobject jpaint) argument
379 drawLine__FFFFPaint(JNIEnv* env, jobject, SkCanvas* canvas, jfloat startX, jfloat startY, jfloat stopX, jfloat stopY, SkPaint* paint) argument
387 drawRect__RectFPaint(JNIEnv* env, jobject, SkCanvas* canvas, jobject rect, SkPaint* paint) argument
394 drawRect__FFFFPaint(JNIEnv* env, jobject, SkCanvas* canvas, jfloat left, jfloat top, jfloat right, jfloat bottom, SkPaint* paint) argument
404 drawOval(JNIEnv* env, jobject, SkCanvas* canvas, jobject joval, SkPaint* paint) argument
411 drawCircle(JNIEnv* env, jobject, SkCanvas* canvas, jfloat cx, jfloat cy, jfloat radius, SkPaint* paint) argument
417 drawArc(JNIEnv* env, jobject, SkCanvas* canvas, jobject joval, jfloat startAngle, jfloat sweepAngle, jboolean useCenter, SkPaint* paint) argument
426 drawRoundRect(JNIEnv* env, jobject, SkCanvas* canvas, jobject jrect, jfloat rx, jfloat ry, SkPaint* paint) argument
435 drawPath(JNIEnv* env, jobject, SkCanvas* canvas, SkPath* path, SkPaint* paint) argument
440 drawPicture(JNIEnv* env, jobject, SkCanvas* canvas, SkPicture* picture) argument
454 drawBitmap__BitmapFFPaint(JNIEnv* env, jobject jcanvas, SkCanvas* canvas, SkBitmap* bitmap, jfloat left, jfloat top, SkPaint* paint, jint canvasDensity, jint screenDensity, jint bitmapDensity) argument
492 doDrawBitmap(JNIEnv* env, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, const SkRect& dst, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument
514 drawBitmapRF(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, jobject dstRectF, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument
524 drawBitmapRR(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, jobject dstRect, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument
534 drawBitmapArray(JNIEnv* env, jobject, SkCanvas* canvas, jintArray jcolors, int offset, int stride, jfloat x, jfloat y, int width, int height, jboolean hasAlpha, SkPaint* paint) argument
556 drawBitmapMatrix(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, const SkMatrix* matrix, const SkPaint* paint) argument
562 drawBitmapMesh(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, int meshWidth, int meshHeight, jfloatArray jverts, int vertIndex, jintArray jcolors, int colorIndex, const SkPaint* paint) argument
678 drawVertices(JNIEnv* env, jobject, SkCanvas* canvas, SkCanvas::VertexMode mode, int vertexCount, jfloatArray jverts, int vertIndex, jfloatArray jtexs, int texIndex, jintArray jcolors, int colorIndex, jshortArray jindices, int indexIndex, int indexCount, const SkPaint* paint) argument
736 drawText___CIIFFIPaint(JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, jfloat x, jfloat y, int flags, SkPaint* paint) argument
744 drawText__StringIIFFIPaint(JNIEnv* env, jobject, SkCanvas* canvas, jstring text, int start, int end, jfloat x, jfloat y, int flags, SkPaint* paint) argument
836 drawTextRun___CIIIIFFIPaint( JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, int contextIndex, int contextCount, jfloat x, jfloat y, int dirFlags, SkPaint* paint) argument
847 drawTextRun__StringIIIIFFIPaint( JNIEnv* env, jobject obj, SkCanvas* canvas, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jfloat x, jfloat y, jint dirFlags, SkPaint* paint) argument
860 drawPosText___CII_FPaint(JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, jfloatArray pos, SkPaint* paint) argument
888 drawPosText__String_FPaint(JNIEnv* env, jobject, SkCanvas* canvas, jstring text, jfloatArray pos, SkPaint* paint) argument
917 drawTextOnPath___CIIPathFFPaint(JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, SkPath* path, jfloat hOffset, jfloat vOffset, jint bidiFlags, SkPaint* paint) argument
927 drawTextOnPath__StringPathFFPaint(JNIEnv* env, jobject, SkCanvas* canvas, jstring text, SkPath* path, jfloat hOffset, jfloat vOffset, jint bidiFlags, SkPaint* paint) argument
937 getClipBounds(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds) argument
951 getCTM(JNIEnv* env, jobject, SkCanvas* canvas, SkMatrix* matrix) argument
1068 register_android_graphics_Canvas(JNIEnv* env) argument
[all...]
H A DColorFilter.cpp35 static void finalizer(JNIEnv* env, jobject clazz, SkColorFilter* obj, SkiaColorFilter* f) { argument
47 static SkiaColorFilter* glCreatePorterDuffFilter(JNIEnv* env, jobject, SkColorFilter *skFilter, argument
56 static SkiaColorFilter* glCreateLightingFilter(JNIEnv* env, jobject, SkColorFilter *skFilter, argument
65 static SkiaColorFilter* glCreateColorMatrixFilter(JNIEnv* env, jobject, SkColorFilter *skFilter, argument
68 AutoJavaFloatArray autoArray(env, jarray, 20);
89 static SkColorFilter* CreatePorterDuffFilter(JNIEnv* env, jobject, jint srcColor, argument
94 static SkColorFilter* CreateLightingFilter(JNIEnv* env, jobject, jint mul, jint add) { argument
98 static SkColorFilter* CreateColorMatrixFilter(JNIEnv* env, jobject, jfloatArray jarray) { argument
99 AutoJavaFloatArray autoArray(env, jarray, 20);
133 #define REG(env, nam
138 register_android_graphics_ColorFilter(JNIEnv* env) argument
[all...]
H A DCreateJavaOutputStreamAdaptor.cpp14 JavaInputStreamAdaptor(JNIEnv* env, jobject js, jbyteArray ar) argument
15 : fEnv(env), fJavaInputStream(js), fJavaByteArray(ar) {
17 fCapacity = env->GetArrayLength(ar);
23 JNIEnv* env = fEnv; local
27 env->CallVoidMethod(fJavaInputStream, gInputStream_resetMethodID);
28 if (env->ExceptionCheck()) {
29 env->ExceptionDescribe();
30 env->ExceptionClear();
38 JNIEnv* env = fEnv; local
46 jint n = env
78 JNIEnv* env = fEnv; local
96 JNIEnv* env = fEnv; local
109 JNIEnv* env = fEnv; local
145 CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage, int markSize) argument
187 SkJavaOutputStream(JNIEnv* env, jobject stream, jbyteArray storage) argument
193 JNIEnv* env = fEnv; local
237 CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage) argument
[all...]
H A DDrawFilter.cpp36 static void finalizer(JNIEnv* env, jobject clazz, SkDrawFilter* obj) { argument
40 static SkDrawFilter* CreatePaintFlagsDF(JNIEnv* env, jobject clazz, argument
62 #define REG(env, name, array) \
63 result = android::AndroidRuntime::registerNativeMethods(env, name, array, SK_ARRAY_COUNT(array)); \
67 int register_android_graphics_DrawFilter(JNIEnv* env) { argument
70 REG(env, "android/graphics/DrawFilter", drawfilter_methods);
71 REG(env, "android/graphics/PaintFlagsDrawFilter", paintflags_methods);
H A DGraphics.cpp13 void doThrowNPE(JNIEnv* env) { argument
14 jniThrowNullPointerException(env, NULL);
17 void doThrowAIOOBE(JNIEnv* env) { argument
18 jniThrowException(env, "java/lang/ArrayIndexOutOfBoundsException", NULL);
21 void doThrowRE(JNIEnv* env, const char* msg) { argument
22 jniThrowRuntimeException(env, msg);
25 void doThrowIAE(JNIEnv* env, const char* msg) { argument
26 jniThrowException(env, "java/lang/IllegalArgumentException", msg);
29 void doThrowISE(JNIEnv* env, const char* msg) { argument
30 jniThrowException(env, "jav
33 doThrowOOME(JNIEnv* env, const char* msg) argument
37 doThrowIOE(JNIEnv* env, const char* msg) argument
41 hasException(JNIEnv *env) argument
52 AutoJavaFloatArray(JNIEnv* env, jfloatArray array, int minLength, JNIAccess access) argument
72 AutoJavaIntArray(JNIEnv* env, jintArray array, int minLength) argument
91 AutoJavaShortArray(JNIEnv* env, jshortArray array, int minLength, JNIAccess access) argument
111 AutoJavaByteArray(JNIEnv* env, jbyteArray array, int minLength) argument
177 get_jrect(JNIEnv* env, jobject obj, int* L, int* T, int* R, int* B) argument
187 set_jrect(JNIEnv* env, jobject obj, int L, int T, int R, int B) argument
197 jrect_to_irect(JNIEnv* env, jobject obj, SkIRect* ir) argument
208 irect_to_jrect(const SkIRect& ir, JNIEnv* env, jobject obj) argument
218 jrectf_to_rect(JNIEnv* env, jobject obj, SkRect* r) argument
229 jrect_to_rect(JNIEnv* env, jobject obj, SkRect* r) argument
240 rect_to_jrectf(const SkRect& r, JNIEnv* env, jobject obj) argument
250 jpoint_to_ipoint(JNIEnv* env, jobject obj, SkIPoint* point) argument
259 ipoint_to_jpoint(const SkIPoint& ir, JNIEnv* env, jobject obj) argument
267 jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) argument
276 point_to_jpointf(const SkPoint& r, JNIEnv* env, jobject obj) argument
284 getNativeBitmap(JNIEnv* env, jobject bitmap) argument
293 getNativeBitmapConfig(JNIEnv* env, jobject jconfig) argument
307 getNativeCanvas(JNIEnv* env, jobject canvas) argument
316 getNativePaint(JNIEnv* env, jobject paint) argument
325 getNativePicture(JNIEnv* env, jobject picture) argument
335 getNativeRegion(JNIEnv* env, jobject region) argument
347 createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer, bool isMutable, jbyteArray ninepatch, jintArray layoutbounds, int density) argument
360 createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, jbyteArray ninepatch, int density) argument
367 createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap) argument
378 createRegion(JNIEnv* env, SkRegion* region) argument
389 JNIEnv* env = NULL; local
400 AndroidPixelRef(JNIEnv* env, void* storage, size_t size, jbyteArray storageObj, SkColorTable* ctable) argument
420 JNIEnv* env = vm2env(fVM); local
441 JNIEnv *env = vm2env(fVM); local
465 JNIEnv *env = vm2env(fVM); local
481 allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) argument
509 JavaPixelAllocator(JNIEnv* env) argument
519 JNIEnv* env = vm2env(fVM); local
528 JavaHeapBitmapRef(JNIEnv* env, SkBitmap* nativeBitmap, jbyteArray buffer) argument
547 make_globalref(JNIEnv* env, const char classname[]) argument
554 getFieldIDCheck(JNIEnv* env, jclass clazz, const char fieldname[], const char type[]) argument
562 register_android_graphics_Graphics(JNIEnv* env) argument
[all...]
H A DInterpolator.cpp8 static SkInterpolator* Interpolator_constructor(JNIEnv* env, jobject clazz, int valueCount, int frameCount) argument
13 static void Interpolator_destructor(JNIEnv* env, jobject clazz, SkInterpolator* interp) argument
18 static void Interpolator_reset(JNIEnv* env, jobject clazz, SkInterpolator* interp, int valueCount, int frameCount) argument
23 static void Interpolator_setKeyFrame(JNIEnv* env, jobject clazz, SkInterpolator* interp, int index, int msec, jfloatArray valueArray, jfloatArray blendArray) argument
28 AutoJavaFloatArray autoValues(env, valueArray);
39 AutoJavaFloatArray autoBlend(env, blendArray, 4);
49 static void Interpolator_setRepeatMirror(JNIEnv* env, jobject clazz, SkInterpolator* interp, float repeatCount, jboolean mirror) argument
58 static int Interpolator_timeToValues(JNIEnv* env, jobject clazz, SkInterpolator* interp, int msec, jfloatArray valueArray) argument
62 float* values = valueArray ? env->GetFloatArrayElements(valueArray, NULL) : NULL;
66 int n = env
90 register_android_graphics_Interpolator(JNIEnv* env) argument
[all...]
H A DLayerRasterizer.cpp6 static SkRasterizer* create(JNIEnv* env, jobject) { argument
10 static void addLayer(JNIEnv* env, jobject, SkLayerRasterizer* layer, const SkPaint* paint, float dx, float dy) { argument
26 int register_android_graphics_LayerRasterizer(JNIEnv* env) argument
28 return android::AndroidRuntime::registerNativeMethods(env,
H A DMaskFilter.cpp8 static void ThrowIAE_IfNull(JNIEnv* env, void* ptr) { argument
10 doThrowIAE(env);
16 static void destructor(JNIEnv* env, jobject, SkMaskFilter* filter) { argument
20 static SkMaskFilter* createBlur(JNIEnv* env, jobject, float radius, int blurStyle) { argument
23 ThrowIAE_IfNull(env, filter);
27 static SkMaskFilter* createEmboss(JNIEnv* env, jobject, jfloatArray dirArray, float ambient, float specular, float radius) { argument
30 AutoJavaFloatArray autoDir(env, dirArray, 3);
40 ThrowIAE_IfNull(env, filter);
44 static SkMaskFilter* createTable(JNIEnv* env, jobject, jbyteArray jtable) { argument
45 AutoJavaByteArray autoTable(env, jtabl
49 createClipTable(JNIEnv* env, jobject, int min, int max) argument
53 createGammaTable(JNIEnv* env, jobject, float gamma) argument
82 register_android_graphics_MaskFilter(JNIEnv* env) argument
[all...]
H A DMatrix.cpp34 static void finalizer(JNIEnv* env, jobject clazz, SkMatrix* obj) { argument
38 static SkMatrix* create(JNIEnv* env, jobject clazz, const SkMatrix* src) { argument
47 static jboolean isIdentity(JNIEnv* env, jobject clazz, SkMatrix* obj) { argument
51 static jboolean rectStaysRect(JNIEnv* env, jobject clazz, SkMatrix* obj) { argument
55 static void reset(JNIEnv* env, jobject clazz, SkMatrix* obj) { argument
59 static void set(JNIEnv* env, jobject clazz, SkMatrix* obj, SkMatrix* other) { argument
63 static void setTranslate(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat dx, jfloat dy) { argument
69 static void setScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument
77 static void setScale__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy) { argument
83 static void setRotate__FFF(JNIEnv* env, jobjec argument
90 setRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) argument
95 setSinCos__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sinValue, jfloat cosValue, jfloat px, jfloat py) argument
103 setSinCos__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sinValue, jfloat cosValue) argument
109 setSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) argument
117 setSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky) argument
123 setConcat(JNIEnv* env, jobject clazz, SkMatrix* obj, SkMatrix* a, SkMatrix* b) argument
127 preTranslate(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat dx, jfloat dy) argument
133 preScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) argument
141 preScale__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy) argument
147 preRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) argument
154 preRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) argument
159 preSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) argument
167 preSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky) argument
173 preConcat(JNIEnv* env, jobject clazz, SkMatrix* obj, SkMatrix* other) argument
177 postTranslate(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat dx, jfloat dy) argument
183 postScale__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy, jfloat px, jfloat py) argument
191 postScale__FF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat sx, jfloat sy) argument
197 postRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) argument
204 postRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) argument
209 postSkew__FFFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat kx, jfloat ky, jfloat px, jfloat py) argument
217 postSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat kx, jfloat ky) argument
223 postConcat(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* other) argument
227 setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject dst, SkMatrix::ScaleToFit stf) argument
235 setPolyToPoly(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray jsrc, int srcIndex, jfloatArray jdst, int dstIndex, int ptCount) argument
262 invert(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* inverse) argument
266 mapPoints(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray dst, int dstIndex, jfloatArray src, int srcIndex, int ptCount, bool isPts) argument
308 mapRect__RectFRectF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobjectArray dst, jobject src) argument
316 mapRadius(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat radius) argument
320 getValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument
338 setValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument
356 equals(JNIEnv* env, jobject clazz, const SkMatrix* a, const SkMatrix* b) argument
407 register_android_graphics_Matrix(JNIEnv* env) argument
417 android_graphics_Matrix_getSkMatrix(JNIEnv* env, jobject matrixObj) argument
[all...]
H A DMovie.cpp22 jobject create_jmovie(JNIEnv* env, SkMovie* moov) { argument
26 return env->NewObject(gMovie_class, gMovie_constructorMethodID,
30 static SkMovie* J2Movie(JNIEnv* env, jobject movie) { argument
31 SkASSERT(env);
33 SkASSERT(env->IsInstanceOf(movie, gMovie_class));
34 SkMovie* m = (SkMovie*)env->GetIntField(movie, gMovie_nativeInstanceID);
41 static int movie_width(JNIEnv* env, jobject movie) { argument
42 NPE_CHECK_RETURN_ZERO(env, movie);
43 return J2Movie(env, movie)->width();
46 static int movie_height(JNIEnv* env, jobjec argument
51 movie_isOpaque(JNIEnv* env, jobject movie) argument
56 movie_duration(JNIEnv* env, jobject movie) argument
61 movie_setTime(JNIEnv* env, jobject movie, int ms) argument
66 movie_draw(JNIEnv* env, jobject movie, jobject canvas, jfloat fx, jfloat fy, jobject jpaint) argument
82 movie_decodeStream(JNIEnv* env, jobject clazz, jobject istream) argument
98 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, int offset, int length) argument
115 movie_destructor(JNIEnv* env, jobject, SkMovie* movie) argument
142 register_android_graphics_Movie(JNIEnv* env) argument
[all...]
H A DNinePatch.cpp38 static jboolean isNinePatchChunk(JNIEnv* env, jobject, jbyteArray obj) argument
43 if (env->GetArrayLength(obj) < (int)sizeof(Res_png_9patch)) {
46 const jbyte* array = env->GetByteArrayElements(obj, 0);
51 env->ReleaseByteArrayElements(obj, const_cast<jbyte*>(array),
58 static void validateNinePatchChunk(JNIEnv* env, jobject, jint, jbyteArray obj) argument
60 if (env->GetArrayLength(obj) < (int) (sizeof(Res_png_9patch))) {
61 jniThrowRuntimeException(env, "Array too small for chunk.");
68 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, argument
72 size_t chunkSize = env->GetArrayLength(chunkObj);
74 env
112 drawF(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRectF, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
128 drawI(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRect, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
143 getTransparentRegion(JNIEnv* env, jobject, const SkBitmap* bitmap, jbyteArray chunkObj, jobject boundsRect) argument
185 register_android_graphics_NinePatch(JNIEnv* env) argument
[all...]
H A DPaint.cpp69 static void finalizer(JNIEnv* env, jobject clazz, SkPaint* obj) { argument
73 static SkPaint* init(JNIEnv* env, jobject clazz) { argument
79 static SkPaint* intiWithPaint(JNIEnv* env, jobject clazz, SkPaint* paint) { argument
84 static void reset(JNIEnv* env, jobject clazz, SkPaint* obj) { argument
89 static void assign(JNIEnv* env, jobject clazz, SkPaint* dst, const SkPaint* src) { argument
93 static jint getFlags(JNIEnv* env, jobject paint) { argument
94 NPE_CHECK_RETURN_ZERO(env, paint);
95 return GraphicsJNI::getNativePaint(env, paint)->getFlags();
98 static void setFlags(JNIEnv* env, jobject paint, jint flags) { argument
99 NPE_CHECK_RETURN_VOID(env, pain
103 getHinting(JNIEnv* env, jobject paint) argument
109 setHinting(JNIEnv* env, jobject paint, jint mode) argument
115 setAntiAlias(JNIEnv* env, jobject paint, jboolean aa) argument
120 setLinearText(JNIEnv* env, jobject paint, jboolean linearText) argument
125 setSubpixelText(JNIEnv* env, jobject paint, jboolean subpixelText) argument
130 setUnderlineText(JNIEnv* env, jobject paint, jboolean underlineText) argument
135 setStrikeThruText(JNIEnv* env, jobject paint, jboolean strikeThruText) argument
140 setFakeBoldText(JNIEnv* env, jobject paint, jboolean fakeBoldText) argument
145 setFilterBitmap(JNIEnv* env, jobject paint, jboolean filterBitmap) argument
150 setDither(JNIEnv* env, jobject paint, jboolean dither) argument
155 getStyle(JNIEnv* env, jobject clazz, SkPaint* obj) argument
159 setStyle(JNIEnv* env, jobject clazz, SkPaint* obj, SkPaint::Style style) argument
163 getColor(JNIEnv* env, jobject paint) argument
168 getAlpha(JNIEnv* env, jobject paint) argument
173 setColor(JNIEnv* env, jobject paint, jint color) argument
178 setAlpha(JNIEnv* env, jobject paint, jint a) argument
183 getStrokeWidth(JNIEnv* env, jobject paint) argument
188 setStrokeWidth(JNIEnv* env, jobject paint, jfloat width) argument
193 getStrokeMiter(JNIEnv* env, jobject paint) argument
198 setStrokeMiter(JNIEnv* env, jobject paint, jfloat miter) argument
203 getStrokeCap(JNIEnv* env, jobject clazz, SkPaint* obj) argument
207 setStrokeCap(JNIEnv* env, jobject clazz, SkPaint* obj, SkPaint::Cap cap) argument
211 getStrokeJoin(JNIEnv* env, jobject clazz, SkPaint* obj) argument
215 setStrokeJoin(JNIEnv* env, jobject clazz, SkPaint* obj, SkPaint::Join join) argument
219 getFillPath(JNIEnv* env, jobject clazz, SkPaint* obj, SkPath* src, SkPath* dst) argument
223 setShader(JNIEnv* env, jobject clazz, SkPaint* obj, SkShader* shader) argument
227 setColorFilter(JNIEnv* env, jobject clazz, SkPaint* obj, SkColorFilter* filter) argument
231 setXfermode(JNIEnv* env, jobject clazz, SkPaint* obj, SkXfermode* xfermode) argument
235 setPathEffect(JNIEnv* env, jobject clazz, SkPaint* obj, SkPathEffect* effect) argument
239 setMaskFilter(JNIEnv* env, jobject clazz, SkPaint* obj, SkMaskFilter* maskfilter) argument
243 setTypeface(JNIEnv* env, jobject clazz, SkPaint* obj, SkTypeface* typeface) argument
247 setRasterizer(JNIEnv* env, jobject clazz, SkPaint* obj, SkRasterizer* rasterizer) argument
251 getTextAlign(JNIEnv* env, jobject clazz, SkPaint* obj) argument
255 setTextAlign(JNIEnv* env, jobject clazz, SkPaint* obj, SkPaint::Align align) argument
299 setTextLocale(JNIEnv* env, jobject clazz, SkPaint* obj, jstring locale) argument
306 getTextSize(JNIEnv* env, jobject paint) argument
311 setTextSize(JNIEnv* env, jobject paint, jfloat textSize) argument
316 getTextScaleX(JNIEnv* env, jobject paint) argument
321 setTextScaleX(JNIEnv* env, jobject paint, jfloat scaleX) argument
326 getTextSkewX(JNIEnv* env, jobject paint) argument
331 setTextSkewX(JNIEnv* env, jobject paint, jfloat skewX) argument
336 ascent(JNIEnv* env, jobject paint) argument
343 descent(JNIEnv* env, jobject paint) argument
350 getFontMetrics(JNIEnv* env, jobject paint, jobject metricsObj) argument
366 getFontMetricsInt(JNIEnv* env, jobject paint, jobject metricsObj) argument
386 measureText_CII(JNIEnv* env, jobject jpaint, jcharArray text, int index, int count) argument
410 measureText_StringII(JNIEnv* env, jobject jpaint, jstring text, int start, int end) argument
435 measureText_String(JNIEnv* env, jobject jpaint, jstring text) argument
455 dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArray widths) argument
481 getTextWidths___CII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, int index, int count, jfloatArray widths) argument
489 getTextWidths__StringII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, int start, int end, jfloatArray widths) argument
497 doTextGlyphs(JNIEnv* env, SkPaint* paint, const jchar* text, jint start, jint count, jint contextCount, jint flags, jcharArray glyphs) argument
527 getTextGlyphs__StringIIIII_C(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint flags, jcharArray glyphs) argument
537 doTextRunAdvances(JNIEnv *env, SkPaint *paint, const jchar *text, jint start, jint count, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex) argument
569 doTextRunAdvancesICU(JNIEnv *env, SkPaint *paint, const jchar *text, jint start, jint count, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex) argument
602 getTextRunAdvances___CIIIII_FII(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex, jint reserved) argument
615 getTextRunAdvances__StringIIIII_FII(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint flags, jfloatArray advances, jint advancesIndex, jint reserved) argument
628 doTextRunCursor(JNIEnv *env, SkPaint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument
672 getTextRunCursor___C(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, jint contextStart, jint contextCount, jint flags, jint offset, jint cursorOpt) argument
681 getTextRunCursor__String(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint contextStart, jint contextEnd, jint flags, jint offset, jint cursorOpt) argument
690 getTextPath(JNIEnv* env, SkPaint* paint, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath *path) argument
695 getTextPath___C(JNIEnv* env, jobject clazz, SkPaint* paint, jint bidiFlags, jcharArray text, int index, int count, jfloat x, jfloat y, SkPath* path) argument
702 getTextPath__String(JNIEnv* env, jobject clazz, SkPaint* paint, jint bidiFlags, jstring text, int start, int end, jfloat x, jfloat y, SkPath* path) argument
709 setShadowLayer(JNIEnv* env, jobject jpaint, jfloat radius, jfloat dx, jfloat dy, int color) argument
725 breakText(JNIEnv* env, SkPaint& paint, const jchar text[], int count, float maxWidth, jfloatArray jmeasured, SkPaint::TextBufferDirection tbd) argument
746 breakTextC(JNIEnv* env, jobject jpaint, jcharArray jtext, int index, int count, float maxWidth, jfloatArray jmeasuredWidth) argument
774 breakTextS(JNIEnv* env, jobject jpaint, jstring jtext, bool forwards, float maxWidth, jfloatArray jmeasuredWidth) argument
792 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const SkPaint& paint) argument
808 getStringBounds(JNIEnv* env, jobject, const SkPaint* paint, jstring text, int start, int end, jobject bounds) argument
816 getCharArrayBounds(JNIEnv* env, jobject, const SkPaint* paint, jcharArray text, int index, int count, jobject bounds) argument
912 register_android_graphics_Paint(JNIEnv* env) argument
[all...]
H A DPath.cpp36 static void finalizer(JNIEnv* env, jobject clazz, SkPath* obj) { argument
46 static SkPath* init1(JNIEnv* env, jobject clazz) { argument
50 static SkPath* init2(JNIEnv* env, jobject clazz, SkPath* val) { argument
54 static void reset(JNIEnv* env, jobject clazz, SkPath* obj) { argument
58 static void rewind(JNIEnv* env, jobject clazz, SkPath* obj) { argument
62 static void assign(JNIEnv* env, jobject clazz, SkPath* dst, const SkPath* src) { argument
66 static jint getFillType(JNIEnv* env, jobject clazz, SkPath* obj) { argument
70 static void setFillType(JNIEnv* env, jobject clazz, SkPath* path, argument
75 static jboolean isEmpty(JNIEnv* env, jobject clazz, SkPath* obj) { argument
79 static jboolean isRect(JNIEnv* env, jobjec argument
86 computeBounds(JNIEnv* env, jobject clazz, SkPath* obj, jobject bounds) argument
91 incReserve(JNIEnv* env, jobject clazz, SkPath* obj, jint extraPtCount) argument
95 moveTo__FF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x, jfloat y) argument
101 rMoveTo(JNIEnv* env, jobject clazz, SkPath* obj, jfloat dx, jfloat dy) argument
107 lineTo__FF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x, jfloat y) argument
113 rLineTo(JNIEnv* env, jobject clazz, SkPath* obj, jfloat dx, jfloat dy) argument
119 quadTo__FFFF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2) argument
127 rQuadTo(JNIEnv* env, jobject clazz, SkPath* obj, jfloat dx1, jfloat dy1, jfloat dx2, jfloat dy2) argument
135 cubicTo__FFFFFF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) argument
145 rCubicTo(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) argument
155 arcTo(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, jfloat startAngle, jfloat sweepAngle, jboolean forceMoveTo) argument
163 close(JNIEnv* env, jobject clazz, SkPath* obj) argument
167 addRect__RectFI(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, SkPath::Direction dir) argument
173 addRect__FFFFI(JNIEnv* env, jobject clazz, SkPath* obj, jfloat left, jfloat top, jfloat right, jfloat bottom, SkPath::Direction dir) argument
181 addOval(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, SkPath::Direction dir) argument
187 addCircle(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x, jfloat y, jfloat radius, SkPath::Direction dir) argument
194 addArc(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, jfloat startAngle, jfloat sweepAngle) argument
202 addRoundRectXY(JNIEnv* env, jobject clazz, SkPath* obj, jobject rect, jfloat rx, jfloat ry, SkPath::Direction dir) argument
211 addRoundRect8(JNIEnv* env, jobject, SkPath* obj, jobject rect, jfloatArray array, SkPath::Direction dir) argument
225 addPath__PathFF(JNIEnv* env, jobject clazz, SkPath* obj, SkPath* src, jfloat dx, jfloat dy) argument
231 addPath__Path(JNIEnv* env, jobject clazz, SkPath* obj, SkPath* src) argument
235 addPath__PathMatrix(JNIEnv* env, jobject clazz, SkPath* obj, SkPath* src, SkMatrix* matrix) argument
239 offset__FFPath(JNIEnv* env, jobject clazz, SkPath* obj, jfloat dx, jfloat dy, SkPath* dst) argument
245 offset__FF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat dx, jfloat dy) argument
251 setLastPoint(JNIEnv* env, jobject clazz, SkPath* obj, jfloat dx, jfloat dy) argument
257 transform__MatrixPath(JNIEnv* env, jobject clazz, SkPath* obj, SkMatrix* matrix, SkPath* dst) argument
261 transform__Matrix(JNIEnv* env, jobject clazz, SkPath* obj, SkMatrix* matrix) argument
307 register_android_graphics_Path(JNIEnv* env) argument
[all...]
H A DPathEffect.cpp14 static void destructor(JNIEnv* env, jobject, SkPathEffect* effect) { argument
18 static SkPathEffect* Compose_constructor(JNIEnv* env, jobject, argument
23 static SkPathEffect* Sum_constructor(JNIEnv* env, jobject, argument
28 static SkPathEffect* Dash_constructor(JNIEnv* env, jobject, argument
30 AutoJavaFloatArray autoInterval(env, intervalArray);
42 static SkPathEffect* OneD_constructor(JNIEnv* env, jobject, argument
49 static SkPathEffect* Corner_constructor(JNIEnv* env, jobject, float radius){ argument
53 static SkPathEffect* Discrete_constructor(JNIEnv* env, jobject, argument
93 #define REG(env, name, array) \
94 result = android::AndroidRuntime::registerNativeMethods(env, nam
98 register_android_graphics_PathEffect(JNIEnv* env) argument
[all...]
H A DPathMeasure.cpp55 static PathMeasurePair* create(JNIEnv* env, jobject clazz, const SkPath* path, jboolean forceClosed) { argument
59 static void setPath(JNIEnv* env, jobject clazz, PathMeasurePair* pair, const SkPath* path, jboolean forceClosed) { argument
68 static jfloat getLength(JNIEnv* env, jobject clazz, PathMeasurePair* pair) { argument
72 static void convertTwoElemFloatArray(JNIEnv* env, jfloatArray array, const SkScalar src[2]) { argument
73 AutoJavaFloatArray autoArray(env, array, 2);
79 static jboolean getPosTan(JNIEnv* env, jobject clazz, PathMeasurePair* pair, jfloat dist, jfloatArray pos, jfloatArray tan) { argument
89 convertTwoElemFloatArray(env, pos, tmpPos);
92 convertTwoElemFloatArray(env, tan, tmpTan);
97 static jboolean getMatrix(JNIEnv* env, jobject clazz, PathMeasurePair* pair, jfloat dist, argument
102 static jboolean getSegment(JNIEnv* env, jobjec argument
107 isClosed(JNIEnv* env, jobject clazz, PathMeasurePair* pair) argument
111 nextContour(JNIEnv* env, jobject clazz, PathMeasurePair* pair) argument
115 destroy(JNIEnv* env, jobject clazz, PathMeasurePair* pair) argument
132 register_android_graphics_PathMeasure(JNIEnv* env) argument
[all...]
H A DPicture.cpp30 static SkPicture* newPicture(JNIEnv* env, jobject, const SkPicture* src) { argument
38 static SkPicture* deserialize(JNIEnv* env, jobject, jobject jstream, argument
41 SkStream* strm = CreateJavaInputStreamAdaptor(env, jstream, jstorage);
49 static void killPicture(JNIEnv* env, jobject, SkPicture* picture) { argument
54 static void draw(JNIEnv* env, jobject, SkCanvas* canvas, argument
61 static bool serialize(JNIEnv* env, jobject, SkPicture* picture, argument
63 SkWStream* strm = CreateJavaOutputStreamAdaptor(env, jstream, jstorage);
73 static int getWidth(JNIEnv* env, jobject jpic) { argument
74 NPE_CHECK_RETURN_ZERO(env, jpic);
75 return GraphicsJNI::getNativePicture(env, jpi
78 getHeight(JNIEnv* env, jobject jpic) argument
83 beginRecording(JNIEnv* env, jobject, SkPicture* pict, int w, int h) argument
94 endRecording(JNIEnv* env, jobject, SkPicture* pict) argument
118 register_android_graphics_Picture(JNIEnv* env) argument
[all...]
H A DPorterDuff.cpp34 static SkXfermode* CreateXfermode(JNIEnv* env, jobject, argument
45 int register_android_graphics_PorterDuff(JNIEnv* env) { argument
46 int result = AndroidRuntime::registerNativeMethods(env,

Completed in 391 milliseconds

12345678