Searched defs:env (Results 76 - 100 of 199) sorted by relevance

12345678

/frameworks/base/core/jni/android/graphics/
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 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 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...]
/frameworks/base/core/jni/
H A Dandroid_backup_BackupHelperDispatcher.cpp44 readHeader_native(JNIEnv* env, jobject clazz, jobject headerObj, jobject fdObj) argument
51 int fd = jniGetFDFromFileDescriptor(env, fdObj);
119 env->SetIntField(headerObj, s_chunkSizeField, flattenedHeader.dataSize);
120 env->SetObjectField(headerObj, s_keyPrefixField, env->NewStringUTF(keyPrefix.string()));
126 skipChunk_native(JNIEnv* env, jobject clazz, jobject fdObj, jint bytesToSkip) argument
128 int fd = jniGetFDFromFileDescriptor(env, fdObj);
143 allocateHeader_native(JNIEnv* env, jobject clazz, jobject headerObj, jobject fdObj) argument
151 int fd = jniGetFDFromFileDescriptor(env, fdObj);
153 nameObj = (jstring)env
168 writeHeader_native(JNIEnv* env, jobject clazz, jobject headerObj, jobject fdObj, jint pos) argument
228 register_android_backup_BackupHelperDispatcher(JNIEnv* env) argument
[all...]
H A Dandroid_backup_FileBackupHelperBase.cpp29 ctor(JNIEnv* env, jobject clazz) argument
35 dtor(JNIEnv* env, jobject clazz, jint ptr) argument
41 performBackup_native(JNIEnv* env, jobject clazz, jobject oldState, int data, argument
47 int oldStateFD = oldState != NULL ? jniGetFDFromFileDescriptor(env, oldState) : -1;
48 int newStateFD = jniGetFDFromFileDescriptor(env, newState);
51 const int fileCount = env->GetArrayLength(files);
54 filesUTF[i] = env->GetStringUTFChars((jstring)env->GetObjectArrayElement(files, i), NULL);
57 const int keyCount = env->GetArrayLength(keys);
60 keysUTF[i] = env
80 writeFile_native(JNIEnv* env, jobject clazz, jint ptr, jstring filenameObj, int backupReaderPtr) argument
97 writeSnapshot_native(JNIEnv* env, jobject clazz, jint ptr, jobject fileDescriptor) argument
119 register_android_backup_FileBackupHelperBase(JNIEnv* env) argument
[all...]
H A Dandroid_hardware_SensorManager.cpp50 sensors_module_init(JNIEnv *env, jclass clazz) argument
57 sensors_module_get_next_sensor(JNIEnv *env, jobject clazz, jobject sensor, jint next) argument
68 jstring name = env->NewStringUTF(list->getName().string());
69 jstring vendor = env->NewStringUTF(list->getVendor().string());
70 env->SetObjectField(sensor, sensorOffsets.name, name);
71 env->SetObjectField(sensor, sensorOffsets.vendor, vendor);
72 env->SetIntField(sensor, sensorOffsets.version, list->getVersion());
73 env->SetIntField(sensor, sensorOffsets.handle, list->getHandle());
74 env->SetIntField(sensor, sensorOffsets.type, list->getType());
75 env
86 sensors_create_queue(JNIEnv *env, jclass clazz) argument
95 sensors_destroy_queue(JNIEnv *env, jclass clazz, jint nativeQueue) argument
104 sensors_enable_sensor(JNIEnv *env, jclass clazz, jint nativeQueue, jstring name, jint sensor, jint delay) argument
119 sensors_data_poll(JNIEnv *env, jclass clazz, jint nativeQueue, jfloatArray values, jintArray status, jlongArray timestamp) argument
183 register_android_hardware_SensorManager(JNIEnv *env) argument
[all...]
H A Dandroid_hardware_UsbDeviceConnection.cpp36 struct usb_device* get_device_from_object(JNIEnv* env, jobject connection) argument
38 return (struct usb_device*)env->GetIntField(connection, field_context);
42 android_hardware_UsbDeviceConnection_open(JNIEnv *env, jobject thiz, jstring deviceName, argument
45 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
51 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL);
54 env->SetIntField(thiz, field_context, (int)device);
60 env->ReleaseStringUTFChars(deviceName, deviceNameStr);
65 android_hardware_UsbDeviceConnection_close(JNIEnv *env, jobject thiz) argument
68 struct usb_device* device = get_device_from_object(env, thiz);
71 env
76 android_hardware_UsbDeviceConnection_get_fd(JNIEnv *env, jobject thiz) argument
87 android_hardware_UsbDeviceConnection_get_desc(JNIEnv *env, jobject thiz) argument
108 android_hardware_UsbDeviceConnection_claim_interface(JNIEnv *env, jobject thiz, int interfaceID, jboolean force) argument
127 android_hardware_UsbDeviceConnection_release_interface(JNIEnv *env, jobject thiz, int interfaceID) argument
143 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint length, jint timeout) argument
172 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint length, jint timeout) argument
199 android_hardware_UsbDeviceConnection_request_wait(JNIEnv *env, jobject thiz) argument
215 android_hardware_UsbDeviceConnection_get_serial(JNIEnv *env, jobject thiz) argument
248 register_android_hardware_UsbDeviceConnection(JNIEnv *env) argument
[all...]
H A Dandroid_net_wifi_Wifi.cpp87 static jstring doStringCommand(JNIEnv* env, const char *ifname, const char* fmt, ...) { argument
102 return env->NewString((const jchar *)str.string(), str.size());
105 static jboolean android_net_wifi_isDriverLoaded(JNIEnv* env, jobject) argument
110 static jboolean android_net_wifi_loadDriver(JNIEnv* env, jobject) argument
115 static jboolean android_net_wifi_unloadDriver(JNIEnv* env, jobject) argument
120 static jboolean android_net_wifi_startSupplicant(JNIEnv* env, jobject, jboolean p2pSupported) argument
125 static jboolean android_net_wifi_killSupplicant(JNIEnv* env, jobject) argument
130 static jboolean android_net_wifi_connectToSupplicant(JNIEnv* env, jobject, jstring jIface) argument
132 ScopedUtfChars ifname(env, jIface);
136 static void android_net_wifi_closeSupplicantConnection(JNIEnv* env, jobjec argument
142 android_net_wifi_waitForEvent(JNIEnv* env, jobject, jstring jIface) argument
154 android_net_wifi_doBooleanCommand(JNIEnv* env, jobject, jstring jIface, jstring jCommand) argument
167 android_net_wifi_doIntCommand(JNIEnv* env, jobject, jstring jIface, jstring jCommand) argument
180 android_net_wifi_doStringCommand(JNIEnv* env, jobject, jstring jIface, jstring jCommand) argument
222 register_android_net_wifi_WifiManager(JNIEnv* env) argument
[all...]
H A Dandroid_nio_utils.cpp61 android::AutoBufferPointer::AutoBufferPointer(JNIEnv* env, jobject nioBuffer, argument
63 fEnv = env;
65 fPointer = android::nio_getPointer(env, nioBuffer, &fArray);
76 static jclass findClass(JNIEnv* env, const char name[]) { argument
77 jclass c = env->FindClass(name);
82 static jmethodID findStaticMethod(JNIEnv* env, jclass c, const char method[], argument
84 jmethodID m = env->GetStaticMethodID(c, method, params);
89 static jfieldID getFieldID(JNIEnv* env, jclass c, const char name[], argument
91 jfieldID f = env->GetFieldID(c, name, type);
98 int register_android_nio_utils(JNIEnv* env) { argument
[all...]
H A Dandroid_os_MemoryFile.cpp29 static jobject android_os_MemoryFile_open(JNIEnv* env, jobject clazz, jstring name, jint length) argument
31 const char* namestr = (name ? env->GetStringUTFChars(name, NULL) : NULL);
36 env->ReleaseStringUTFChars(name, namestr);
39 jniThrowException(env, "java/io/IOException", "ashmem_create_region failed");
43 return jniCreateFileDescriptor(env, result);
46 static jint android_os_MemoryFile_mmap(JNIEnv* env, jobject clazz, jobject fileDescriptor, argument
49 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
52 jniThrowException(env, "java/io/IOException", "mmap failed");
56 static void android_os_MemoryFile_munmap(JNIEnv* env, jobject clazz, jint addr, jint length) argument
60 jniThrowException(env, "jav
63 android_os_MemoryFile_close(JNIEnv* env, jobject clazz, jobject fileDescriptor) argument
72 android_os_MemoryFile_read(JNIEnv* env, jobject clazz, jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
91 android_os_MemoryFile_write(JNIEnv* env, jobject clazz, jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
110 android_os_MemoryFile_pin(JNIEnv* env, jobject clazz, jobject fileDescriptor, jboolean pin) argument
119 android_os_MemoryFile_get_size(JNIEnv* env, jobject clazz, jobject fileDescriptor) argument
151 register_android_os_MemoryFile(JNIEnv* env) argument
[all...]
H A Dandroid_os_MessageQueue.cpp38 virtual void raiseException(JNIEnv* env, const char* msg, jthrowable exceptionObj);
40 void pollOnce(JNIEnv* env, int timeoutMillis);
56 bool MessageQueue::raiseAndClearException(JNIEnv* env, const char* msg) { argument
57 jthrowable exceptionObj = env->ExceptionOccurred();
59 env->ExceptionClear();
60 raiseException(env, msg, exceptionObj);
61 env->DeleteLocalRef(exceptionObj);
78 void NativeMessageQueue::raiseException(JNIEnv* env, const char* msg, jthrowable exceptionObj) { argument
82 env->DeleteLocalRef(mExceptionObj);
84 mExceptionObj = jthrowable(env
95 pollOnce(JNIEnv* env, int timeoutMillis) argument
112 android_os_MessageQueue_getNativeMessageQueue(JNIEnv* env, jobject messageQueueObj) argument
118 android_os_MessageQueue_setNativeMessageQueue(JNIEnv* env, jobject messageQueueObj, NativeMessageQueue* nativeMessageQueue) argument
124 android_os_MessageQueue_getMessageQueue(JNIEnv* env, jobject messageQueueObj) argument
130 android_os_MessageQueue_nativeInit(JNIEnv* env, jobject obj) argument
141 android_os_MessageQueue_nativeDestroy(JNIEnv* env, jobject obj) argument
150 throwQueueNotInitialized(JNIEnv* env) argument
154 android_os_MessageQueue_nativePollOnce(JNIEnv* env, jobject obj, jint ptr, jint timeoutMillis) argument
160 android_os_MessageQueue_nativeWake(JNIEnv* env, jobject obj, jint ptr) argument
183 register_android_os_MessageQueue(JNIEnv* env) argument
[all...]
H A Dandroid_os_SystemProperties.cpp30 static jstring SystemProperties_getSS(JNIEnv *env, jobject clazz, argument
39 jniThrowNullPointerException(env, "key must not be null.");
43 key = env->GetStringUTFChars(keyJ, NULL);
49 rvJ = env->NewStringUTF(buf);
51 rvJ = env->NewStringUTF("");
54 env->ReleaseStringUTFChars(keyJ, key);
60 static jstring SystemProperties_getS(JNIEnv *env, jobject clazz, argument
63 return SystemProperties_getSS(env, clazz, keyJ, NULL);
66 static jint SystemProperties_get_int(JNIEnv *env, jobject clazz, argument
76 jniThrowNullPointerException(env, "ke
96 SystemProperties_get_long(JNIEnv *env, jobject clazz, jstring keyJ, jlong defJ) argument
126 SystemProperties_get_boolean(JNIEnv *env, jobject clazz, jstring keyJ, jboolean defJ) argument
162 SystemProperties_set(JNIEnv *env, jobject clazz, jstring keyJ, jstring valJ) argument
202 JNIEnv* env; local
210 SystemProperties_add_change_callback(JNIEnv *env, jobject clazz) argument
240 register_android_os_SystemProperties(JNIEnv *env) argument
[all...]
H A Dandroid_util_Log.cpp74 static jboolean android_util_Log_isLoggable(JNIEnv* env, jobject clazz, jstring tag, jint level) argument
80 const char* chars = env->GetStringUTFChars(tag, NULL);
91 jniThrowException(env, "java/lang/IllegalArgumentException", buf2);
96 env->ReleaseStringUTFChars(tag, chars);
108 static jint android_util_Log_println_native(JNIEnv* env, jobject clazz, argument
115 jniThrowNullPointerException(env, "println needs a message");
120 jniThrowNullPointerException(env, "bad bufID");
125 tag = env->GetStringUTFChars(tagObj, NULL);
126 msg = env->GetStringUTFChars(msgObj, NULL);
131 env
146 register_android_util_Log(JNIEnv* env) argument
[all...]
H A Dcom_android_internal_os_ZygoteInit.cpp44 JNIEnv* env, jobject clazz, jint ruid, jint euid)
57 JNIEnv* env, jobject clazz, jint rgid, jint egid)
70 JNIEnv* env, jobject clazz, jint pid, jint pgid)
83 JNIEnv* env, jobject clazz, jint pid)
89 jniThrowIOException(env, errno);
95 static void com_android_internal_os_ZygoteInit_reopenStdio(JNIEnv* env, argument
101 fd = jniGetFDFromFileDescriptor(env, in);
103 if (env->ExceptionOccurred() != NULL) {
111 fd = jniGetFDFromFileDescriptor(env, out);
113 if (env
43 com_android_internal_os_ZygoteInit_setreuid( JNIEnv* env, jobject clazz, jint ruid, jint euid) argument
56 com_android_internal_os_ZygoteInit_setregid( JNIEnv* env, jobject clazz, jint rgid, jint egid) argument
69 com_android_internal_os_ZygoteInit_setpgid( JNIEnv* env, jobject clazz, jint pid, jint pgid) argument
82 com_android_internal_os_ZygoteInit_getpgid( JNIEnv* env, jobject clazz, jint pid) argument
132 com_android_internal_os_ZygoteInit_setCloseOnExec(JNIEnv *env, jobject clazz, jobject descriptor, jboolean flag) argument
166 com_android_internal_os_ZygoteInit_setCapabilities(JNIEnv *env, jobject clazz, jlong permitted, jlong effective) argument
192 com_android_internal_os_ZygoteInit_capgetPermitted(JNIEnv *env, jobject clazz, jint pid) argument
215 com_android_internal_os_ZygoteInit_selectReadable( JNIEnv *env, jobject clazz, jobjectArray fds) argument
282 com_android_internal_os_ZygoteInit_createFileDescriptor( JNIEnv *env, jobject clazz, jint fd) argument
316 register_com_android_internal_os_ZygoteInit(JNIEnv* env) argument
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DProgramFragmentFixedFunction.java154 EnvMode env; field in class:ProgramFragmentFixedFunction.Builder.Slot
157 env = _env;
184 switch(mSlots[i].env) {
244 * @param env specifies how the texture is combined with the
253 public Builder setTexture(EnvMode env, Format fmt, int slot) argument
258 mSlots[slot] = new Slot(env, fmt);
/frameworks/base/services/jni/
H A Dcom_android_server_LightsService.cpp63 static jint init_native(JNIEnv *env, jobject clazz) argument
96 static void finalize_native(JNIEnv *env, jobject clazz, int ptr) argument
106 static void setLight_native(JNIEnv *env, jobject clazz, int ptr, argument
135 int register_android_server_LightsService(JNIEnv *env) argument
137 return jniRegisterNativeMethods(env, "com/android/server/LightsService",
H A Dcom_android_server_UsbDeviceManager.cpp43 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
44 if (env->ExceptionCheck()) {
46 LOGE_EX(env);
47 env->ExceptionClear();
51 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) argument
58 jstring obj = env->NewStringUTF(buffer);
59 env->SetObjectArrayElement(strArray, index, obj);
60 env->DeleteLocalRef(obj);
65 static jobjectArray android_server_UsbDeviceManager_getAccessoryStrings(JNIEnv *env, jobject thiz) argument
72 jclass stringClass = env
87 android_server_UsbDeviceManager_openAccessory(JNIEnv *env, jobject thiz) argument
102 android_server_UsbDeviceManager_isStartRequested(JNIEnv *env, jobject thiz) argument
114 android_server_UsbDeviceManager_getAudioMode(JNIEnv *env, jobject thiz) argument
137 register_android_server_UsbDeviceManager(JNIEnv *env) argument
[all...]
/frameworks/native/include/android/
H A Dnative_activity.h60 JNIEnv* env; member in struct:ANativeActivity
/frameworks/native/opengl/tests/gl2_jni/jni/
H A Dgl_code.cpp152 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height);
153 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_step(JNIEnv * env, jobject obj);
156 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
161 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_step(JNIEnv * env, jobject obj) argument
/frameworks/native/opengl/tests/gldual/jni/
H A Dgl_code.cpp152 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height);
153 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_step(JNIEnv * env, jobject obj);
156 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
161 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_step(JNIEnv * env, jobject obj) argument
/frameworks/base/media/jni/
H A Dandroid_media_AmrInputStream.cpp53 (JNIEnv *env, jclass clazz) {
56 jniThrowRuntimeException(env, "Out of memory");
62 (JNIEnv *env, jclass clazz, jint gae) {
66 jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException",
72 (JNIEnv *env, jclass clazz,
78 env->GetByteArrayRegion(pcm, pcmOffset, sizeof(inBuf), inBuf);
87 jniThrowExceptionFmt(env, "java/io/IOException",
102 env->SetByteArrayRegion(amr, amrOffset, length, outBuf);
108 (JNIEnv *env, jclass clazz, jint gae) {
116 (JNIEnv *env, jclas
52 android_media_AmrInputStream_GsmAmrEncoderNew(JNIEnv *env, jclass clazz) argument
61 android_media_AmrInputStream_GsmAmrEncoderInitialize(JNIEnv *env, jclass clazz, jint gae) argument
71 android_media_AmrInputStream_GsmAmrEncoderEncode(JNIEnv *env, jclass clazz, jint gae, jbyteArray pcm, jint pcmOffset, jbyteArray amr, jint amrOffset) argument
107 android_media_AmrInputStream_GsmAmrEncoderCleanup(JNIEnv *env, jclass clazz, jint gae) argument
115 android_media_AmrInputStream_GsmAmrEncoderDelete(JNIEnv *env, jclass clazz, jint gae) argument
131 register_android_media_AmrInputStream(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaCodecList.cpp31 JNIEnv *env, jobject thiz) {
36 JNIEnv *env, jobject thiz, jint index) {
40 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
44 return env->NewStringUTF(name);
48 JNIEnv *env, jobject thiz, jint index) {
53 JNIEnv *env, jobject thiz, jint index) {
59 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
63 jclass clazz = env->FindClass("java/lang/String");
66 jobjectArray array = env->NewObjectArray(types.size(), clazz, NULL);
69 jstring obj = env
30 android_media_MediaCodecList_getCodecCount( JNIEnv *env, jobject thiz) argument
35 android_media_MediaCodecList_getCodecName( JNIEnv *env, jobject thiz, jint index) argument
47 android_media_MediaCodecList_isEncoder( JNIEnv *env, jobject thiz, jint index) argument
52 android_media_MediaCodecList_getSupportedTypes( JNIEnv *env, jobject thiz, jint index) argument
78 android_media_MediaCodecList_getCodecCapabilities( JNIEnv *env, jobject thiz, jint index, jstring type) argument
168 android_media_MediaCodecList_native_init(JNIEnv *env) argument
186 register_android_media_MediaCodecList(JNIEnv *env) argument
[all...]
H A Dandroid_mtp_MtpServer.cpp53 extern MtpDatabase* getMtpDatabase(JNIEnv *env, jobject database);
55 static inline MtpServer* getMtpServer(JNIEnv *env, jobject thiz) { argument
56 return (MtpServer*)env->GetIntField(thiz, field_MtpServer_nativeContext);
60 android_mtp_MtpServer_setup(JNIEnv *env, jobject thiz, jobject javaDatabase, jboolean usePtp) argument
64 MtpServer* server = new MtpServer(fd, getMtpDatabase(env, javaDatabase),
66 env->SetIntField(thiz, field_MtpServer_nativeContext, (int)server);
73 android_mtp_MtpServer_run(JNIEnv *env, jobject thiz) argument
75 MtpServer* server = getMtpServer(env, thiz);
83 android_mtp_MtpServer_cleanup(JNIEnv *env, jobject thiz) argument
87 MtpServer* server = getMtpServer(env, thi
97 android_mtp_MtpServer_send_object_added(JNIEnv *env, jobject thiz, jint handle) argument
109 android_mtp_MtpServer_send_object_removed(JNIEnv *env, jobject thiz, jint handle) argument
121 android_mtp_MtpServer_add_storage(JNIEnv *env, jobject thiz, jobject jstorage) argument
153 android_mtp_MtpServer_remove_storage(JNIEnv *env, jobject thiz, jint storageId) argument
184 register_android_mtp_MtpServer(JNIEnv *env) argument
[all...]

Completed in 175 milliseconds

12345678