Searched defs:env (Results 51 - 75 of 199) sorted by relevance

12345678

/frameworks/base/core/jni/android/graphics/
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 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 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...]
/frameworks/base/core/jni/
H A Dandroid_app_backup_FullBackup.cpp73 static int backupToTar(JNIEnv* env, jobject clazz, jstring packageNameObj, argument
79 const char* packagenamechars = (packageNameObj) ? env->GetStringUTFChars(packageNameObj, NULL) : NULL;
80 const char* rootchars = (rootpathObj) ? env->GetStringUTFChars(rootpathObj, NULL) : NULL;
81 const char* pathchars = (pathObj) ? env->GetStringUTFChars(pathObj, NULL) : NULL;
82 const char* domainchars = (domainObj) ? env->GetStringUTFChars(domainObj, NULL) : NULL;
89 if (domainchars) env->ReleaseStringUTFChars(domainObj, domainchars);
90 if (pathchars) env->ReleaseStringUTFChars(pathObj, pathchars);
91 if (rootchars) env->ReleaseStringUTFChars(rootpathObj, rootchars);
92 if (packagenamechars) env->ReleaseStringUTFChars(packageNameObj, packagenamechars);
95 BackupDataWriter* writer = (BackupDataWriter*) env
119 register_android_app_backup_FullBackup(JNIEnv* env) argument
[all...]
H A Dandroid_backup_BackupDataInput.cpp33 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) argument
35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
44 dtor_native(JNIEnv* env, jobject clazz, int r) argument
50 readNextHeader_native(JNIEnv* env, jobject clazz, int r, jobject entity) argument
77 jstring keyStr = env->NewStringUTF(key.string());
78 env->SetObjectField(entity, s_keyField, keyStr);
79 env->SetIntField(entity, s_dataSizeField, dataSize);
92 readEntityData_native(JNIEnv* env, jobject clazz, int r, jbyteArray data, int offset, int size) argument
97 if (env->GetArrayLength(data) < (size+offset)) {
102 jbyte* dataBytes = env
115 skipEntityData_native(JNIEnv* env, jobject clazz, int r) argument
134 register_android_backup_BackupDataInput(JNIEnv* env) argument
[all...]
H A Dandroid_backup_BackupDataOutput.cpp29 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) argument
31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
40 dtor_native(JNIEnv* env, jobject clazz, int w) argument
46 writeEntityHeader_native(JNIEnv* env, jobject clazz, int w, jstring key, int dataSize) argument
51 const char* keyUTF = env->GetStringUTFChars(key, NULL);
57 env->ReleaseStringUTFChars(key, keyUTF);
63 writeEntityData_native(JNIEnv* env, jobject clazz, int w, jbyteArray data, int size) argument
68 if (env->GetArrayLength(data) < size) {
73 jbyte* dataBytes = env->GetByteArrayElements(data, NULL);
80 env
86 setKeyPrefix_native(JNIEnv* env, jobject clazz, int w, jstring keyPrefixObj) argument
107 register_android_backup_BackupDataOutput(JNIEnv* env) argument
[all...]
H A Dandroid_content_res_Configuration.cpp47 JNIEnv* env, jobject clazz, struct AConfiguration* out) {
48 out->mcc = env->GetIntField(clazz, gConfigurationClassInfo.mcc);
49 out->mnc = env->GetIntField(clazz, gConfigurationClassInfo.mnc);
50 out->screenLayout = env->GetIntField(clazz, gConfigurationClassInfo.screenLayout);
51 out->touchscreen = env->GetIntField(clazz, gConfigurationClassInfo.touchscreen);
52 out->keyboard = env->GetIntField(clazz, gConfigurationClassInfo.keyboard);
53 out->navigation = env->GetIntField(clazz, gConfigurationClassInfo.navigation);
55 out->inputFlags = env->GetIntField(clazz, gConfigurationClassInfo.keyboardHidden);
56 int hardKeyboardHidden = env->GetIntField(clazz, gConfigurationClassInfo.hardKeyboardHidden);
61 out->inputFlags |= env
46 android_Configuration_getFromJava( JNIEnv* env, jobject clazz, struct AConfiguration* out) argument
90 register_android_content_res_Configuration(JNIEnv* env) argument
[all...]
H A Dandroid_content_res_ObbScanner.cpp39 static void android_content_res_ObbScanner_getObbInfo(JNIEnv* env, jobject clazz, jstring file, argument
42 const char* filePath = env->GetStringUTFChars(file, NULL);
46 env->ReleaseStringUTFChars(file, filePath);
47 jniThrowException(env, "java/io/IOException", "Could not read OBB file");
51 env->ReleaseStringUTFChars(file, filePath);
55 jstring packageName = env->NewStringUTF(packageNameStr);
57 jniThrowException(env, "java/io/IOException", "Could not read OBB file");
61 env->SetObjectField(obbInfo, gObbInfoClassInfo.packageName, packageName);
62 env->SetIntField(obbInfo, gObbInfoClassInfo.version, obb->getVersion());
63 env
91 register_android_content_res_ObbScanner(JNIEnv* env) argument
[all...]
H A Dandroid_ddm_DdmHandleNativeHeap.cpp56 static jbyteArray getLeakInfo(JNIEnv *env, jobject clazz) argument
100 jbyteArray array = env->NewByteArray(sizeof(Header) + header.mapSize + header.allocSize);
105 bytes = env->GetByteArrayElements(array, NULL);
120 env->ReleaseByteArrayElements(array, bytes, 0);
139 int register_android_ddm_DdmHandleNativeHeap(JNIEnv *env) argument
141 return AndroidRuntime::registerNativeMethods(env, "android/ddm/DdmHandleNativeHeap", method_table, NELEM(method_table));
H A Dandroid_hardware_SerialPort.cpp36 android_hardware_SerialPort_open(JNIEnv *env, jobject thiz, jobject fileDescriptor, jint speed) argument
130 jniThrowException(env, "java/lang/IllegalArgumentException",
135 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
139 jniThrowException(env, "java/io/IOException", "Could not open serial port");
142 env->SetIntField(thiz, field_context, fd);
161 android_hardware_SerialPort_close(JNIEnv *env, jobject thiz) argument
163 int fd = env->GetIntField(thiz, field_context);
165 env->SetIntField(thiz, field_context, -1);
169 android_hardware_SerialPort_read_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument
171 int fd = env
191 android_hardware_SerialPort_read_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument
208 android_hardware_SerialPort_write_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument
225 android_hardware_SerialPort_write_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument
240 android_hardware_SerialPort_send_break(JNIEnv *env, jobject thiz) argument
261 register_android_hardware_SerialPort(JNIEnv *env) argument
[all...]
H A Dandroid_hardware_UsbRequest.cpp33 struct usb_request* get_request_from_object(JNIEnv* env, jobject java_request) argument
35 return (struct usb_request*)env->GetIntField(java_request, field_context);
39 extern struct usb_device* get_device_from_object(JNIEnv* env, jobject connection);
42 android_hardware_UsbRequest_init(JNIEnv *env, jobject thiz, jobject java_device, argument
47 struct usb_device* device = get_device_from_object(env, java_device);
64 env->SetIntField(thiz, field_context, (int)request);
69 android_hardware_UsbRequest_close(JNIEnv *env, jobject thiz) argument
72 struct usb_request* request = get_request_from_object(env, thiz);
75 env->SetIntField(thiz, field_context, 0);
80 android_hardware_UsbRequest_queue_array(JNIEnv *env, jobjec argument
118 android_hardware_UsbRequest_dequeue_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length, jboolean out) argument
137 android_hardware_UsbRequest_queue_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length, jboolean out) argument
168 android_hardware_UsbRequest_dequeue_direct(JNIEnv *env, jobject thiz) argument
181 android_hardware_UsbRequest_cancel(JNIEnv *env, jobject thiz) argument
203 register_android_hardware_UsbRequest(JNIEnv *env) argument
[all...]
H A Dandroid_os_ParcelFileDescriptor.cpp37 static jobject android_os_ParcelFileDescriptor_getFileDescriptorFromFd(JNIEnv* env, argument
42 jniThrowException(env, "java/io/IOException", strerror(errno));
45 return jniCreateFileDescriptor(env, fd);
48 static jobject android_os_ParcelFileDescriptor_getFileDescriptorFromFdNoDup(JNIEnv* env, argument
51 return jniCreateFileDescriptor(env, fd);
54 static void android_os_ParcelFileDescriptor_createPipeNative(JNIEnv* env, argument
60 jniThrowException(env, "java/io/IOException", strerror(therr));
65 jobject fdObj = jniCreateFileDescriptor(env, fds[i]);
66 env->SetObjectArrayElement(outFds, i, fdObj);
70 static jint getFd(JNIEnv* env, jobjec argument
77 android_os_ParcelFileDescriptor_getStatSize(JNIEnv* env, jobject clazz) argument
98 android_os_ParcelFileDescriptor_seekTo(JNIEnv* env, jobject clazz, jlong pos) argument
110 android_os_ParcelFileDescriptor_getFdNative(JNIEnv* env, jobject clazz) argument
138 register_android_os_ParcelFileDescriptor(JNIEnv* env) argument
[all...]
H A Dandroid_text_AndroidCharacter.cpp54 static void getDirectionalities(JNIEnv* env, jobject obj, jcharArray srcArray, jbyteArray destArray, int count) argument
56 ScopedCharArrayRO src(env, srcArray);
60 ScopedByteArrayRW dest(env, destArray);
65 if (env->GetArrayLength(srcArray) < count || env->GetArrayLength(destArray) < count) {
66 jniThrowException(env, "java/lang/ArrayIndexOutOfBoundsException", NULL);
95 static jint getEastAsianWidth(JNIEnv* env, jobject obj, jchar input) argument
104 static void getEastAsianWidths(JNIEnv* env, jobject obj, jcharArray srcArray, argument
107 ScopedCharArrayRO src(env, srcArray);
111 ScopedByteArrayRW dest(env, destArra
147 mirror(JNIEnv* env, jobject obj, jcharArray charArray, int start, int count) argument
175 getMirror(JNIEnv* env, jobject obj, jchar c) argument
193 register_android_text_AndroidCharacter(JNIEnv* env) argument
[all...]
H A Dandroid_util_FileObserver.cpp40 static jint android_os_fileobserver_init(JNIEnv* env, jobject object) argument
53 static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd) argument
83 path = env->NewStringUTF(event->name);
86 env->CallVoidMethod(object, method_onEvent, event->wd, event->mask, path);
87 if (env->ExceptionCheck()) {
88 env->ExceptionDescribe();
89 env->ExceptionClear();
93 env->DeleteLocalRef(path);
105 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pathString, jint mask) argument
113 const char* path = env
125 android_os_fileobserver_stopWatching(JNIEnv* env, jobject object, jint fd, jint wfd) argument
143 register_android_os_FileObserver(JNIEnv* env) argument
[all...]
H A Dandroid_util_StringBlock.cpp34 static jint android_content_StringBlock_nativeCreate(JNIEnv* env, jobject clazz, argument
39 jniThrowNullPointerException(env, NULL);
43 jsize bLen = env->GetArrayLength(bArray);
45 jniThrowException(env, "java/lang/IndexOutOfBoundsException", NULL);
49 jbyte* b = env->GetByteArrayElements(bArray, NULL);
51 env->ReleaseByteArrayElements(bArray, b, 0);
54 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
61 static jint android_content_StringBlock_nativeGetSize(JNIEnv* env, jobject clazz, argument
66 jniThrowNullPointerException(env, NULL);
73 static jstring android_content_StringBlock_nativeGetString(JNIEnv* env, jobjec argument
97 android_content_StringBlock_nativeGetStyle(JNIEnv* env, jobject clazz, jint token, jint idx) argument
140 android_content_StringBlock_nativeDestroy(JNIEnv* env, jobject clazz, jint token) argument
171 register_android_content_StringBlock(JNIEnv* env) argument
[all...]
H A Dandroid_view_HardwareRenderer.cpp56 static jboolean android_view_HardwareRenderer_preserveBackBuffer(JNIEnv* env, jobject clazz) { argument
71 static jboolean android_view_HardwareRenderer_isBackBufferPreserved(JNIEnv* env, jobject clazz) { argument
87 static void android_view_HardwareRenderer_disableVsync(JNIEnv* env, jobject clazz) { argument
103 static void android_view_HardwareRenderer_beginFrame(JNIEnv* env, jobject clazz, argument
111 jint* storage = env->GetIntArrayElements(size, NULL);
119 env->ReleaseIntArrayElements(size, storage, 0);
131 static void android_view_HardwareRenderer_setupShadersDiskCache(JNIEnv* env, jobject clazz, argument
134 const char* cacheArray = env->GetStringUTFChars(diskCachePath, NULL);
136 env->ReleaseStringUTFChars(diskCachePath, cacheArray);
158 int register_android_view_HardwareRenderer(JNIEnv* env) { argument
[all...]
H A Dandroid_view_PointerIcon.cpp42 jobject android_view_PointerIcon_getSystemIcon(JNIEnv* env, jobject contextObj, int32_t style) { argument
43 jobject pointerIconObj = env->CallStaticObjectMethod(gPointerIconClassInfo.clazz,
45 if (env->ExceptionCheck()) {
47 LOGW_EX(env);
48 env->ExceptionClear();
54 status_t android_view_PointerIcon_load(JNIEnv* env, jobject pointerIconObj, jobject contextObj, argument
62 jobject loadedPointerIconObj = env->CallObjectMethod(pointerIconObj,
64 if (env->ExceptionCheck() || !loadedPointerIconObj) {
66 LOGW_EX(env);
67 env
91 android_view_PointerIcon_loadSystemIcon(JNIEnv* env, jobject contextObj, int32_t style, PointerIcon* outPointerIcon) argument
125 register_android_view_PointerIcon(JNIEnv* env) argument
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_input_InputApplicationHandle.cpp44 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
45 env->DeleteWeakGlobalRef(mObjWeak);
48 jobject NativeInputApplicationHandle::getInputApplicationHandleObjLocalRef(JNIEnv* env) { argument
49 return env->NewLocalRef(mObjWeak);
53 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
54 jobject obj = env->NewLocalRef(mObjWeak);
64 jstring nameObj = jstring(env->GetObjectField(obj,
67 const char* nameStr = env->GetStringUTFChars(nameObj, NULL);
69 env->ReleaseStringUTFChars(nameObj, nameStr);
70 env
85 android_server_InputApplicationHandle_getHandle( JNIEnv* env, jobject inputApplicationHandleObj) argument
110 android_server_InputApplicationHandle_nativeDispose(JNIEnv* env, jobject obj) argument
137 register_android_server_InputApplicationHandle(JNIEnv* env) argument
[all...]
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/
H A Djni_multiclass_pa.cpp36 jint Java_android_bordeaux_learning_MulticlassPA_initNativeClassifier(JNIEnv* env, argument
48 jboolean Java_android_bordeaux_learning_MulticlassPA_deleteNativeClassifier(JNIEnv* env, argument
56 jboolean Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample(JNIEnv* env, argument
66 jfloat* values = env->GetFloatArrayElements(value_array, NULL);
67 jint* indices = env->GetIntArrayElements(index_array, NULL);
68 const int value_len = env->GetArrayLength(value_array);
69 const int index_len = env->GetArrayLength(index_array);
76 env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT);
77 env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT);
81 env
89 Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass(JNIEnv* env, jobject thiz, jintArray index_array, jfloatArray value_array, jint paPtr) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ResampleInputStream.cpp76 static void android_media_ResampleInputStream_fir21(JNIEnv *env, jclass clazz, argument
83 jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException",
90 env->GetByteArrayRegion(jIn, jInOffset, (jNpoints * 2 + nFir21 - 1) * 2, (jbyte*)in);
105 env->SetByteArrayRegion(jOut, jOutOffset, jNpoints * 2, (jbyte*)out);
115 int register_android_media_ResampleInputStream(JNIEnv *env) argument
119 return AndroidRuntime::registerNativeMethods(env,
/frameworks/base/media/mca/filterfw/jni/
H A Djni_util.cpp35 JavaObject::JavaObject(jobject object, JNIEnv* env)
39 object_ = env->NewGlobalRef(object_);
66 JNIEnv* env = GetCurrentJNIEnv();
67 if (!env)
70 env->DeleteGlobalRef(object_);
91 JNIEnv* env = NULL;
92 const jint result = vm->GetEnv(reinterpret_cast<void**>(&env),
94 return result == JNI_OK ? env : NULL;
98 jstring ToJString(JNIEnv* env, const std::string& value) { argument
99 return env
102 ToCppString(JNIEnv* env, jstring value) argument
121 IsJavaInstanceOf(JNIEnv* env, jobject object, const std::string& class_name) argument
127 CreateJObject(JNIEnv* env, const std::string& class_name, const std::string& signature, T value) argument
133 ToCValue(JNIEnv* env, jobject object) argument
162 ToJObject(JNIEnv* env, const Value& value) argument
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DDrawRectFilter.java89 public void process(FilterContext env) { argument
99 GLFrame output = (GLFrame)env.getFrameManager().duplicateFrame(imageFrame);
H A DResizeFilter.java89 public void process(FilterContext env) { argument
92 createProgram(env, input.getFormat());
101 Frame output = env.getFrameManager().newFrame(outputFormat);
105 GLFrame mipmapped = (GLFrame)env.getFrameManager().newFrame(input.getFormat());
/frameworks/base/native/android/
H A Dnative_window.cpp27 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) { argument
28 sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface);
/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));

Completed in 600 milliseconds

12345678