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

1234567891011>>

/frameworks/base/core/jni/
H A Dandroid_content_res_ObbScanner.cpp41 static void android_content_res_ObbScanner_getObbInfo(JNIEnv* env, jobject clazz, jstring file, argument
44 const char* filePath = env->GetStringUTFChars(file, NULL);
48 env->ReleaseStringUTFChars(file, filePath);
49 jniThrowException(env, "java/io/IOException", "Could not read OBB file");
53 env->ReleaseStringUTFChars(file, filePath);
57 jstring packageName = env->NewStringUTF(packageNameStr);
59 jniThrowException(env, "java/io/IOException", "Could not read OBB file");
63 env->SetObjectField(obbInfo, gObbInfoClassInfo.packageName, packageName);
64 env->SetIntField(obbInfo, gObbInfoClassInfo.version, obb->getVersion());
65 env
85 register_android_content_res_ObbScanner(JNIEnv* env) argument
[all...]
H A Dandroid_media_ToneGenerator.cpp41 static jboolean android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { argument
44 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz,
47 jniThrowRuntimeException(env, "Method called after release()");
54 static void android_media_ToneGenerator_stopTone(JNIEnv *env, jobject thiz) { argument
57 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz,
62 jniThrowRuntimeException(env, "Method called after release()");
68 static jint android_media_ToneGenerator_getAudioSessionId(JNIEnv *env, jobject thiz) { argument
69 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz,
72 jniThrowRuntimeException(env, "Method called after release()");
78 static void android_media_ToneGenerator_release(JNIEnv *env, jobjec argument
88 android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, jint volume) argument
111 android_media_ToneGenerator_native_finalize(JNIEnv *env, jobject thiz) argument
136 register_android_media_ToneGenerator(JNIEnv *env) argument
[all...]
H A Dandroid_os_UEventObserver.cpp37 static void nativeSetup(JNIEnv *env, jclass clazz) { argument
39 jniThrowException(env, "java/lang/RuntimeException",
64 static jstring nativeWaitForNextEvent(JNIEnv *env, jclass clazz) { argument
82 return env->NewString(message, length);
87 static void nativeAddMatch(JNIEnv* env, jclass clazz, jstring matchStr) { argument
88 ScopedUtfChars match(env, matchStr);
94 static void nativeRemoveMatch(JNIEnv* env, jclass clazz, jstring matchStr) { argument
95 ScopedUtfChars match(env, matchStr);
118 int register_android_os_UEventObserver(JNIEnv *env) argument
120 FindClassOrDie(env, "androi
[all...]
H A Dandroid_server_Watchdog.cpp55 static void dumpKernelStacks(JNIEnv* env, jobject clazz, jstring pathStr) { argument
61 jniThrowException(env, "java/lang/IllegalArgumentException", "Null path");
65 const char *path = env->GetStringUTFChars(pathStr, NULL);
97 env->ReleaseStringUTFChars(pathStr, path);
108 int register_android_server_Watchdog(JNIEnv* env) { argument
109 return RegisterMethodsOrDie(env, "com/android/server/Watchdog", g_methods, NELEM(g_methods));
H A Dandroid_text_AndroidBidi.cpp28 static jint runBidi(JNIEnv* env, jobject obj, jint dir, jcharArray chsArray, argument
35 jchar* chs = env->GetCharArrayElements(chsArray, NULL);
37 jbyte* info = env->GetByteArrayElements(infoArray, NULL);
48 jniThrowException(env, "java/lang/RuntimeException", NULL);
52 env->ReleaseByteArrayElements(infoArray, info, 0);
54 env->ReleaseCharArrayElements(chsArray, chs, JNI_ABORT);
63 int register_android_text_AndroidBidi(JNIEnv* env) argument
65 return RegisterMethodsOrDie(env, "android/text/AndroidBidi", gMethods, NELEM(gMethods));
H A Dandroid_app_backup_FullBackup.cpp83 static jint backupToTar(JNIEnv* env, jobject clazz, jstring packageNameObj, argument
87 const char* packagenamechars = (packageNameObj) ? env->GetStringUTFChars(packageNameObj, NULL) : NULL;
88 const char* rootchars = (rootpathObj) ? env->GetStringUTFChars(rootpathObj, NULL) : NULL;
89 const char* pathchars = (pathObj) ? env->GetStringUTFChars(pathObj, NULL) : NULL;
90 const char* domainchars = (domainObj) ? env->GetStringUTFChars(domainObj, NULL) : NULL;
97 if (domainchars) env->ReleaseStringUTFChars(domainObj, domainchars);
98 if (pathchars) env->ReleaseStringUTFChars(pathObj, pathchars);
99 if (rootchars) env->ReleaseStringUTFChars(rootpathObj, rootchars);
100 if (packagenamechars) env->ReleaseStringUTFChars(packageNameObj, packagenamechars);
103 jobject bdo = env
130 register_android_app_backup_FullBackup(JNIEnv* env) argument
[all...]
/frameworks/base/core/tests/hosttests/test-apps/SharedUid/32/jni/
H A Dnative.cpp25 add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
40 static int registerNativeMethods(JNIEnv* env, const char* className, argument
45 clazz = env->FindClass(className);
50 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
63 static int registerNatives(JNIEnv* env) argument
65 if (!registerNativeMethods(env, classPathName,
81 JNIEnv* env; member in union:__anon960
90 JNIEnv* env = NULL; local
98 env = uenv.env;
[all...]
/frameworks/base/core/tests/hosttests/test-apps/SharedUid/64/jni/
H A Dnative.cpp25 add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
40 static int registerNativeMethods(JNIEnv* env, const char* className, argument
45 clazz = env->FindClass(className);
50 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
63 static int registerNatives(JNIEnv* env) argument
65 if (!registerNativeMethods(env, classPathName,
81 JNIEnv* env; member in union:__anon961
90 JNIEnv* env = NULL; local
98 env = uenv.env;
[all...]
/frameworks/base/core/tests/hosttests/test-apps/SharedUid/dual/jni/
H A Dnative.cpp25 add(JNIEnv */* env */, jobject /* thiz */, jint a, jint b) {
40 static int registerNativeMethods(JNIEnv* env, const char* className, argument
45 clazz = env->FindClass(className);
50 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
63 static int registerNatives(JNIEnv* env) argument
65 if (!registerNativeMethods(env, classPathName,
81 JNIEnv* env; member in union:__anon962
90 JNIEnv* env = NULL; local
98 env = uenv.env;
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaDataSource.cpp35 JMediaDataSource::JMediaDataSource(JNIEnv* env, jobject source) argument
37 mMediaDataSourceObj = env->NewGlobalRef(source);
40 ScopedLocalRef<jclass> mediaDataSourceClass(env, env->GetObjectClass(mMediaDataSourceObj));
43 mReadMethod = env->GetMethodID(mediaDataSourceClass.get(), "readAt", "(J[BII)I");
45 mGetSizeMethod = env->GetMethodID(mediaDataSourceClass.get(), "getSize", "()J");
47 mCloseMethod = env->GetMethodID(mediaDataSourceClass.get(), "close", "()V");
50 ScopedLocalRef<jbyteArray> tmp(env, env->NewByteArray(kBufferSize));
51 mByteArrayObj = (jbyteArray)env
62 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
82 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
124 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
149 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
[all...]
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_native_buffer.cpp20 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size) { argument
21 jclass base_class = env->FindClass("android/filterfw/core/NativeBuffer");
24 jfieldID ptr_field = env->GetFieldID(base_class, "mDataPointer", "J");
25 jfieldID size_field = env->GetFieldID(base_class, "mSize", "I");
28 char* data = reinterpret_cast<char*>(env->GetLongField(buffer, ptr_field));
30 *size = env->GetIntField(buffer, size_field);
34 env->DeleteLocalRef(base_class);
39 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size) { argument
40 jclass base_class = env->FindClass("android/filterfw/core/NativeBuffer");
43 jfieldID ptr_field = env
53 Java_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size) argument
58 Java_android_filterfw_core_NativeBuffer_deallocate(JNIEnv* env, jobject thiz, jboolean owns_data) argument
68 Java_android_filterfw_core_NativeBuffer_nativeCopyTo(JNIEnv* env, jobject thiz, jobject new_buffer) argument
[all...]
H A Djni_vertex_frame.cpp24 jboolean Java_android_filterfw_core_VertexFrame_nativeAllocate(JNIEnv* env, argument
27 return ToJBool(WrapObjectInJava(new VertexFrame(size), env, thiz, true));
30 jboolean Java_android_filterfw_core_VertexFrame_nativeDeallocate(JNIEnv* env, jobject thiz) { argument
31 return ToJBool(DeleteNativeObject<VertexFrame>(env, thiz));
34 jboolean Java_android_filterfw_core_VertexFrame_setNativeInts(JNIEnv* env, argument
38 VertexFrame* frame = ConvertFromJava<VertexFrame>(env, thiz);
40 jint* int_ptr = env->GetIntArrayElements(ints, NULL);
41 const int length = env->GetArrayLength(ints);
45 env->ReleaseIntArrayElements(ints, int_ptr, JNI_ABORT);
52 jboolean Java_android_filterfw_core_VertexFrame_setNativeFloats(JNIEnv* env, argument
69 Java_android_filterfw_core_VertexFrame_setNativeData(JNIEnv* env, jobject thiz, jbyteArray data, jint offset, jint length) argument
87 Java_android_filterfw_core_VertexFrame_getNativeVboId(JNIEnv* env, jobject thiz) argument
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DBitmapSource.java106 public void tearDown(FilterContext env) { argument
H A DCropFilter.java107 public void process(FilterContext env) { argument
112 createProgram(env, imageFrame.getFormat());
123 Frame output = env.getFrameManager().newFrame(outputFormat);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/
H A DThroughputFilter.java64 public void open(FilterContext env) { argument
/frameworks/base/services/core/jni/
H A Dcom_android_server_ConsumerIrService.cpp32 static jlong halOpen(JNIEnv* /* env */, jobject /* obj */) {
53 static jint halTransmit(JNIEnv *env, jobject /* obj */, jlong halObject, argument
58 ScopedIntArrayRO cPattern(env, pattern);
69 static jintArray halGetCarrierFrequencies(JNIEnv *env, jobject /* obj */, argument
88 ScopedIntArrayRW freqsOut(env, env->NewIntArray(len*2));
109 int register_android_server_ConsumerIrService(JNIEnv *env) { argument
110 return jniRegisterNativeMethods(env, "com/android/server/ConsumerIrService",
/frameworks/native/opengl/tests/gl_perfapp/jni/
H A Dgl_code.cpp60 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height);
61 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_step(JNIEnv * env, jobject obj);
64 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
90 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_step(JNIEnv * env, jobject obj) argument
/frameworks/rs/java/tests/HelloComputeNDK/libhellocomputendk/
H A DhelloComputeNDK.cpp20 Java_com_example_android_rs_hellocomputendk_HelloComputeNDK_nativeMono(JNIEnv * env, argument
33 AndroidBitmap_lockPixels(env, jbitmapIn, &inputPtr);
34 AndroidBitmap_lockPixels(env, jbitmapOut, &outputPtr);
36 const char * path = env->GetStringUTFChars(pathObj, nullptr);
39 env->ReleaseStringUTFChars(pathObj, path);
59 AndroidBitmap_unlockPixels(env, jbitmapIn);
60 AndroidBitmap_unlockPixels(env, jbitmapOut);
/frameworks/rs/java/tests/RsBLAS_Benchmark/libsgemm/
H A Dtest_data.cpp56552 Java_com_example_android_rs_blasbenchmark_BNNMTest_getData(JNIEnv * env, jclass, jbyteArray a, jbyteArray b, jbyteArray c ) argument
56574 Java_com_example_android_rs_blasbenchmark_SGEMMTest_getData(JNIEnv * env, jclass, jbyteArray a, jbyteArray b, jbyteArray c ) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DColorFilter.cpp34 static void finalizer(JNIEnv* env, jobject clazz, jlong skFilterHandle) { argument
39 static jlong CreatePorterDuffFilter(JNIEnv* env, jobject, jint srcColor, jint modeHandle) { argument
44 static jlong CreateLightingFilter(JNIEnv* env, jobject, jint mul, jint add) { argument
48 static jlong CreateColorMatrixFilter(JNIEnv* env, jobject, jfloatArray jarray) { argument
49 AutoJavaFloatArray autoArray(env, jarray, 20);
76 int register_android_graphics_ColorFilter(JNIEnv* env) { argument
77 android::RegisterMethodsOrDie(env, "android/graphics/ColorFilter", colorfilter_methods,
79 android::RegisterMethodsOrDie(env, "android/graphics/PorterDuffColorFilter", porterduff_methods,
81 android::RegisterMethodsOrDie(env, "android/graphics/LightingColorFilter", lighting_methods,
83 android::RegisterMethodsOrDie(env, "androi
[all...]
H A DDrawFilter.cpp67 static void finalizer(JNIEnv* env, jobject clazz, jlong objHandle) { argument
72 static jlong CreatePaintFlagsDF(JNIEnv* env, jobject clazz, argument
108 int register_android_graphics_DrawFilter(JNIEnv* env) { argument
109 int result = RegisterMethodsOrDie(env, "android/graphics/DrawFilter", drawfilter_methods,
111 result |= RegisterMethodsOrDie(env, "android/graphics/PaintFlagsDrawFilter", paintflags_methods,
H A DInterpolator.cpp7 static jlong Interpolator_constructor(JNIEnv* env, jobject clazz, jint valueCount, jint frameCount) argument
12 static void Interpolator_destructor(JNIEnv* env, jobject clazz, jlong interpHandle) argument
18 static void Interpolator_reset(JNIEnv* env, jobject clazz, jlong interpHandle, jint valueCount, jint frameCount) argument
24 static void Interpolator_setKeyFrame(JNIEnv* env, jobject clazz, jlong interpHandle, jint index, jint msec, jfloatArray valueArray, jfloatArray blendArray) argument
28 AutoJavaFloatArray autoValues(env, valueArray);
29 AutoJavaFloatArray autoBlend(env, blendArray, 4);
40 static void Interpolator_setRepeatMirror(JNIEnv* env, jobject clazz, jlong interpHandle, jfloat repeatCount, jboolean mirror) argument
50 static jint Interpolator_timeToValues(JNIEnv* env, jobject clazz, jlong interpHandle, jint msec, jfloatArray valueArray) argument
55 float* values = valueArray ? env->GetFloatArrayElements(valueArray, NULL) : NULL;
59 int n = env
83 register_android_graphics_Interpolator(JNIEnv* env) argument
[all...]
H A DNinePatch.cpp49 static jboolean isNinePatchChunk(JNIEnv* env, jobject, jbyteArray obj) { argument
53 if (env->GetArrayLength(obj) < (int)sizeof(Res_png_9patch)) {
56 const jbyte* array = env->GetByteArrayElements(obj, 0);
60 env->ReleaseByteArrayElements(obj, const_cast<jbyte*>(array), JNI_ABORT);
66 static jlong validateNinePatchChunk(JNIEnv* env, jobject, jbyteArray obj) { argument
67 size_t chunkSize = env->GetArrayLength(obj);
69 jniThrowRuntimeException(env, "Array too small for chunk.");
75 env->GetByteArrayRegion(obj, 0, chunkSize, reinterpret_cast<jbyte*>(storage));
80 static void finalize(JNIEnv* env, jobject, jlong patchHandle) { argument
90 static jlong getTransparentRegion(JNIEnv* env, jobjec argument
120 register_android_graphics_NinePatch(JNIEnv* env) argument
[all...]
H A DRasterizer.cpp60 static void finalizer(JNIEnv* env, jobject clazz, jlong objHandle) { argument
69 int register_android_graphics_Rasterizer(JNIEnv* env) { argument
70 return RegisterMethodsOrDie(env, "android/graphics/Rasterizer", gRasterizerMethods,
76 static jlong create(JNIEnv* env, jobject) { argument
80 static void addLayer(JNIEnv* env, jobject, jlong layerHandle, jlong paintHandle, jfloat dx, jfloat dy) { argument
94 int register_android_graphics_LayerRasterizer(JNIEnv* env) argument
96 return RegisterMethodsOrDie(env, "android/graphics/LayerRasterizer",

Completed in 453 milliseconds

1234567891011>>