Searched refs:env (Results 1 - 25 of 401) sorted by relevance

1234567891011>>

/frameworks/base/services/core/jni/
H A Donload.cpp23 int register_android_server_AlarmManagerService(JNIEnv* env);
24 int register_android_server_BatteryStatsService(JNIEnv* env);
25 int register_android_server_ConsumerIrService(JNIEnv *env);
26 int register_android_server_InputApplicationHandle(JNIEnv* env);
27 int register_android_server_InputWindowHandle(JNIEnv* env);
28 int register_android_server_InputManager(JNIEnv* env);
29 int register_android_server_LightsService(JNIEnv* env);
30 int register_android_server_PowerManagerService(JNIEnv* env);
31 int register_android_server_storage_AppFuse(JNIEnv* env);
32 int register_android_server_SerialService(JNIEnv* env);
57 JNIEnv* env = NULL; local
[all...]
/frameworks/base/core/jni/include/android_runtime/
H A DLog.h27 #define LOG_EX(env, priority, tag, ...) \
28 jniLogException(env, ANDROID_##priority, tag, ##__VA_ARGS__)
29 #define LOGV_EX(env, ...) LOG_EX(env, LOG_VERBOSE, LOG_TAG, ##__VA_ARGS__)
30 #define LOGD_EX(env, ...) LOG_EX(env, LOG_DEBUG, LOG_TAG, ##__VA_ARGS__)
31 #define LOGI_EX(env, ...) LOG_EX(env, LOG_INFO, LOG_TAG, ##__VA_ARGS__)
32 #define LOGW_EX(env, ...) LOG_EX(env, LOG_WAR
[all...]
/frameworks/opt/net/voip/src/jni/rtp/
H A Drtp_jni.cpp21 extern int registerRtpStream(JNIEnv *env);
22 extern int registerAudioGroup(JNIEnv *env);
26 JNIEnv *env = NULL; local
27 if (vm->GetEnv((void **)&env, JNI_VERSION_1_4) != JNI_OK ||
28 registerRtpStream(env) < 0 || registerAudioGroup(env) < 0) {
/frameworks/ex/framesequence/jni/
H A DBitmapDecoderJNI.cpp27 void throwException(JNIEnv* env, const char* error) { argument
28 jclass clazz = env->FindClass("java/lang/RuntimeException");
29 env->ThrowNew(clazz, error);
33 JNIEnv* env; local
34 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
37 if (FrameSequence_OnLoad(env)) {
41 if (JavaStream_OnLoad(env)) {
H A DFrameSequenceJNI.h22 jint FrameSequence_OnLoad(JNIEnv* env);
H A DJNIHelpers.cpp20 void jniThrowException(JNIEnv* env, const char* className, const char* msg) { argument
21 jclass clazz = env->FindClass(className);
28 if (env->ThrowNew(clazz, msg) != JNI_OK) {
32 env->DeleteLocalRef(clazz);
/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...]
/frameworks/base/core/jni/
H A Dandroid_os_Parcel.h25 extern Parcel* parcelForJavaObject(JNIEnv* env, jobject obj);
26 extern jobject createJavaParcelObject(JNIEnv* env);
27 extern void recycleJavaParcelObject(JNIEnv* env, jobject object);
H A Dandroid_view_PointerIcon.cpp48 jobject android_view_PointerIcon_getSystemIcon(JNIEnv* env, jobject contextObj, int32_t style) { argument
49 jobject pointerIconObj = env->CallStaticObjectMethod(gPointerIconClassInfo.clazz,
51 if (env->ExceptionCheck()) {
53 LOGW_EX(env);
54 env->ExceptionClear();
60 status_t android_view_PointerIcon_load(JNIEnv* env, jobject pointerIconObj, jobject contextObj, argument
68 ScopedLocalRef<jobject> loadedPointerIconObj(env, env->CallObjectMethod(pointerIconObj,
70 if (env->ExceptionCheck() || !loadedPointerIconObj.get()) {
72 LOGW_EX(env);
79 android_view_PointerIcon_getLoadedIcon(JNIEnv* env, jobject pointerIconObj, PointerIcon* outPointerIcon) argument
110 android_view_PointerIcon_loadSystemIcon(JNIEnv* env, jobject contextObj, int32_t style, PointerIcon* outPointerIcon) argument
127 register_android_view_PointerIcon(JNIEnv* env) argument
[all...]
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_database_SQLiteCommon.h33 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle);
36 void throw_sqlite3_exception(JNIEnv* env, const char* message);
41 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message);
44 void throw_sqlite3_exception_errcode(JNIEnv* env, int errcode, const char* message);
46 void throw_sqlite3_exception(JNIEnv* env, int errcode,
H A Dandroid_util_Binder.h28 extern jobject javaObjectForIBinder(JNIEnv* env, const sp<IBinder>& val);
29 extern sp<IBinder> ibinderForJavaObject(JNIEnv* env, jobject obj);
31 extern jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc);
33 extern void set_dalvik_blockguard_policy(JNIEnv* env, jint strict_policy);
35 extern void signalExceptionForError(JNIEnv* env, jobject obj, status_t err,
H A Dandroid_util_Log.cpp50 static jboolean android_util_Log_isLoggable(JNIEnv* env, jobject clazz, jstring tag, jint level) argument
56 const char* chars = env->GetStringUTFChars(tag, NULL);
63 env->ReleaseStringUTFChars(tag, chars);
75 static jint android_util_Log_println_native(JNIEnv* env, jobject clazz, argument
82 jniThrowNullPointerException(env, "println needs a message");
87 jniThrowNullPointerException(env, "bad bufID");
92 tag = env->GetStringUTFChars(tagObj, NULL);
93 msg = env->GetStringUTFChars(msgObj, NULL);
98 env->ReleaseStringUTFChars(tagObj, tag);
99 env
124 register_android_util_Log(JNIEnv* env) argument
[all...]
H A Dandroid_view_InputChannel.cpp52 void invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj);
74 void NativeInputChannel::invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj) { argument
76 mDisposeCallback(env, obj, mInputChannel, mDisposeData);
84 static NativeInputChannel* android_view_InputChannel_getNativeInputChannel(JNIEnv* env, argument
86 jlong longPtr = env->GetLongField(inputChannelObj, gInputChannelClassInfo.mPtr);
90 static void android_view_InputChannel_setNativeInputChannel(JNIEnv* env, jobject inputChannelObj, argument
92 env->SetLongField(inputChannelObj, gInputChannelClassInfo.mPtr,
96 sp<InputChannel> android_view_InputChannel_getInputChannel(JNIEnv* env, jobject inputChannelObj) { argument
98 android_view_InputChannel_getNativeInputChannel(env, inputChannelObj);
102 void android_view_InputChannel_setDisposeCallback(JNIEnv* env, jobjec argument
113 android_view_InputChannel_createInputChannel(JNIEnv* env, std::unique_ptr<NativeInputChannel> nativeInputChannel) argument
124 android_view_InputChannel_nativeOpenInputChannelPair(JNIEnv* env, jclass clazz, jstring nameObj) argument
163 android_view_InputChannel_nativeDispose(JNIEnv* env, jobject obj, jboolean finalized) argument
179 android_view_InputChannel_nativeTransferTo(JNIEnv* env, jobject obj, jobject otherObj) argument
193 android_view_InputChannel_nativeReadFromParcel(JNIEnv* env, jobject obj, jobject parcelObj) argument
223 android_view_InputChannel_nativeWriteToParcel(JNIEnv* env, jobject obj, jobject parcelObj) argument
241 android_view_InputChannel_nativeGetName(JNIEnv* env, jobject obj) argument
252 android_view_InputChannel_nativeDup(JNIEnv* env, jobject obj, jobject otherObj) argument
281 register_android_view_InputChannel(JNIEnv* env) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_SyncParams.cpp23 void SyncParams::fields_t::init(JNIEnv *env) { argument
24 jclass lclazz = env->FindClass("android/media/SyncParams");
29 clazz = (jclass)env->NewGlobalRef(lclazz);
34 constructID = env->GetMethodID(clazz, "<init>", "()V");
36 sync_source = env->GetFieldID(clazz, "mSyncSource", "I");
37 audio_adjust_mode = env->GetFieldID(clazz, "mAudioAdjustMode", "I");
38 tolerance = env->GetFieldID(clazz, "mTolerance", "F");
39 frame_rate = env->GetFieldID(clazz, "mFrameRate", "F");
40 set = env->GetFieldID(clazz, "mSet", "I");
43 env
54 exit(JNIEnv *env) argument
59 fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params) argument
72 asJobject(JNIEnv *env, const fields_t& fields) argument
[all...]
H A Dandroid_media_MediaRecorder.cpp52 extern sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, struct JNICameraContext** context);
54 android_media_MediaCodec_getPersistentInputSurface(JNIEnv* env, jobject object);
71 JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
80 JNIMediaRecorderListener::JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
85 jclass clazz = env->GetObjectClass(thiz);
88 jniThrowException(env, "java/lang/Exception", NULL);
91 mClass = (jclass)env->NewGlobalRef(clazz);
95 mObject = env->NewGlobalRef(weak_thiz);
101 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
102 env
110 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
116 get_surface(JNIEnv* env, jobject clazz) argument
122 get_persistentSurface(JNIEnv* env, jobject object) argument
129 process_media_recorder_call(JNIEnv *env, status_t opStatus, const char* exception, const char* message) argument
142 getMediaRecorder(JNIEnv* env, jobject thiz) argument
149 setMediaRecorder(JNIEnv* env, jobject thiz, const sp<MediaRecorder>& recorder) argument
164 android_media_MediaRecorder_setCamera(JNIEnv* env, jobject thiz, jobject camera) argument
186 android_media_MediaRecorder_setVideoSource(JNIEnv *env, jobject thiz, jint vs) argument
202 android_media_MediaRecorder_setAudioSource(JNIEnv *env, jobject thiz, jint as) argument
220 android_media_MediaRecorder_setOutputFormat(JNIEnv *env, jobject thiz, jint of) argument
236 android_media_MediaRecorder_setVideoEncoder(JNIEnv *env, jobject thiz, jint ve) argument
252 android_media_MediaRecorder_setAudioEncoder(JNIEnv *env, jobject thiz, jint ae) argument
268 android_media_MediaRecorder_setParameter(JNIEnv *env, jobject thiz, jstring params) argument
295 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor) argument
313 android_media_MediaRecorder_setNextOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor) argument
331 android_media_MediaRecorder_setVideoSize(JNIEnv *env, jobject thiz, jint width, jint height) argument
348 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument
364 android_media_MediaRecorder_setMaxDuration(JNIEnv *env, jobject thiz, jint max_duration_ms) argument
380 android_media_MediaRecorder_setMaxFileSize( JNIEnv *env, jobject thiz, jlong max_filesize_bytes) argument
397 android_media_MediaRecorder_prepare(JNIEnv *env, jobject thiz) argument
427 android_media_MediaRecorder_native_getMaxAmplitude(JNIEnv *env, jobject thiz) argument
441 android_media_MediaRecorder_getSurface(JNIEnv *env, jobject thiz) argument
465 android_media_MediaRecorder_start(JNIEnv *env, jobject thiz) argument
477 android_media_MediaRecorder_stop(JNIEnv *env, jobject thiz) argument
489 android_media_MediaRecorder_pause(JNIEnv *env, jobject thiz) argument
501 android_media_MediaRecorder_resume(JNIEnv *env, jobject thiz) argument
513 android_media_MediaRecorder_native_reset(JNIEnv *env, jobject thiz) argument
525 android_media_MediaRecorder_release(JNIEnv *env, jobject thiz) argument
539 android_media_MediaRecorder_native_init(JNIEnv *env) argument
572 android_media_MediaRecorder_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jstring packageName, jstring opPackageName) argument
608 android_media_MediaRecorder_native_finalize(JNIEnv *env, jobject thiz) argument
614 android_media_MediaRecorder_setInputSurface( JNIEnv* env, jobject thiz, jobject object) argument
631 android_media_MediaRecorder_native_getMetrics(JNIEnv *env, jobject thiz) argument
696 register_android_media_MediaRecorder(JNIEnv *env) argument
[all...]
H A Dandroid_mtp_MtpDevice.cpp112 JavaArrayWriter(JNIEnv* env, jbyteArray array) : argument
113 mEnv(env), mArray(array), mSize(mEnv->GetArrayLength(mArray)) {}
133 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice) argument
135 return (MtpDevice*)env->GetLongField(javaDevice, field_context);
138 void fill_jobject_from_object_info(JNIEnv* env, jobject object, MtpObjectInfo* objectInfo) { argument
140 env->SetIntField(object, field_objectInfo_handle, objectInfo->mHandle);
142 env->SetIntField(object, field_objectInfo_storageId, objectInfo->mStorageID);
144 env->SetIntField(object, field_objectInfo_format, objectInfo->mFormat);
146 env->SetIntField(object, field_objectInfo_protectionStatus, objectInfo->mProtectionStatus);
148 env
190 android_mtp_MtpDevice_open(JNIEnv *env, jobject thiz, jstring deviceName, jint fd) argument
209 android_mtp_MtpDevice_close(JNIEnv *env, jobject thiz) argument
220 android_mtp_MtpDevice_get_device_info(JNIEnv *env, jobject thiz) argument
287 android_mtp_MtpDevice_get_storage_ids(JNIEnv *env, jobject thiz) argument
306 android_mtp_MtpDevice_get_storage_info(JNIEnv *env, jobject thiz, jint storageID) argument
340 android_mtp_MtpDevice_get_object_handles(JNIEnv *env, jobject thiz, jint storageID, jint format, jint objectID) argument
360 android_mtp_MtpDevice_get_object_info(JNIEnv *env, jobject thiz, jint objectID) argument
380 check_uint32_arg(JNIEnv *env, const char* name, jlong value, uint32_t* out) argument
393 android_mtp_MtpDevice_get_object(JNIEnv *env, jobject thiz, jint objectID, jlong objectSizeLong) argument
420 android_mtp_MtpDevice_get_partial_object(JNIEnv *env, jobject thiz, jint objectID, jlong offsetLong, jlong sizeLong, jbyteArray array) argument
457 android_mtp_MtpDevice_get_partial_object_64(JNIEnv *env, jobject thiz, jint objectID, jlong offset, jlong size, jbyteArray array) argument
511 android_mtp_MtpDevice_get_thumbnail(JNIEnv *env, jobject thiz, jint objectID) argument
529 android_mtp_MtpDevice_delete_object(JNIEnv *env, jobject thiz, jint object_id) argument
540 android_mtp_MtpDevice_get_parent(JNIEnv *env, jobject thiz, jint object_id) argument
550 android_mtp_MtpDevice_get_storage_id(JNIEnv *env, jobject thiz, jint object_id) argument
560 android_mtp_MtpDevice_import_file(JNIEnv *env, jobject thiz, jint object_id, jstring dest_path) argument
578 android_mtp_MtpDevice_import_file_to_fd(JNIEnv *env, jobject thiz, jint object_id, jint fd) argument
588 android_mtp_MtpDevice_send_object( JNIEnv *env, jobject thiz, jint object_id, jlong sizeLong, jint fd) argument
603 android_mtp_MtpDevice_send_object_info(JNIEnv *env, jobject thiz, jobject info) argument
669 android_mtp_MtpDevice_submit_event_request(JNIEnv *env, jobject thiz) argument
679 android_mtp_MtpDevice_reap_event_request(JNIEnv *env, jobject thiz, jint seq) argument
700 android_mtp_MtpDevice_discard_event_request(JNIEnv *env, jobject thiz, jint seq) argument
711 android_mtp_MtpDevice_get_object_size_long( JNIEnv *env, jobject thiz, jint handle, jint format) argument
782 register_android_mtp_MtpDevice(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaHTTPConnection.cpp34 JMediaHTTPConnection::JMediaHTTPConnection(JNIEnv *env, jobject thiz) argument
38 jclass clazz = env->GetObjectClass(thiz);
41 mClass = (jclass)env->NewGlobalRef(clazz);
42 mObject = env->NewWeakGlobalRef(thiz);
48 env, env->NewByteArray(JMediaHTTPConnection::kBufferSize));
50 mByteArrayObj = (jbyteArray)env->NewGlobalRef(tmp.get());
54 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
56 env->DeleteGlobalRef(mByteArrayObj);
58 env
84 setObject( JNIEnv *env, jobject thiz, const sp<JMediaHTTPConnection> &conn) argument
100 getObject(JNIEnv *env, jobject thiz) argument
104 android_media_MediaHTTPConnection_native_init(JNIEnv *env) argument
115 android_media_MediaHTTPConnection_native_setup( JNIEnv *env, jobject thiz) argument
122 android_media_MediaHTTPConnection_native_finalize( JNIEnv *env, jobject thiz) argument
127 android_media_MediaHTTPConnection_native_getIMemory( JNIEnv *env, jobject thiz) argument
134 android_media_MediaHTTPConnection_native_readAt( JNIEnv *env, jobject thiz, jlong offset, jint size) argument
174 register_android_media_MediaHTTPConnection(JNIEnv *env) argument
[all...]
/frameworks/webview/chromium/plat_support/
H A Djni_entry_point.cpp24 void RegisterDrawGLFunctor(JNIEnv* env);
25 void RegisterGraphicsUtils(JNIEnv* env);
30 JNIEnv* env = NULL; local
31 jint ret = vm->AttachCurrentThread(&env, NULL);
33 android::RegisterDrawGLFunctor(env);
34 android::RegisterGraphicsUtils(env);
/frameworks/base/native/android/
H A Dhardware_buffer_jni.cpp25 AHardwareBuffer* AHardwareBuffer_fromHardwareBuffer(JNIEnv* env, jobject hardwareBufferObj) { argument
26 return android_hardware_HardwareBuffer_getNativeHardwareBuffer(env, hardwareBufferObj);
29 jobject AHardwareBuffer_toHardwareBuffer(JNIEnv* env, AHardwareBuffer* hardwareBuffer) { argument
30 return android_hardware_HardwareBuffer_createFromAHardwareBuffer(env, hardwareBuffer);
/frameworks/base/packages/services/PacProcessor/jni/
H A Djni_init.cpp23 extern int register_com_android_pacprocessor_PacNative(JNIEnv *env);
29 JNIEnv *env; local
30 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
35 register_com_android_pacprocessor_PacNative(env);
/frameworks/base/core/jni/android/graphics/
H A DGraphics.cpp23 void doThrowNPE(JNIEnv* env) { argument
24 jniThrowNullPointerException(env, NULL);
27 void doThrowAIOOBE(JNIEnv* env) { argument
28 jniThrowException(env, "java/lang/ArrayIndexOutOfBoundsException", NULL);
31 void doThrowRE(JNIEnv* env, const char* msg) { argument
32 jniThrowRuntimeException(env, msg);
35 void doThrowIAE(JNIEnv* env, const char* msg) { argument
36 jniThrowException(env, "java/lang/IllegalArgumentException", msg);
39 void doThrowISE(JNIEnv* env, const char* msg) { argument
40 jniThrowException(env, "jav
43 doThrowOOME(JNIEnv* env, const char* msg) argument
47 doThrowIOE(JNIEnv* env, const char* msg) argument
51 hasException(JNIEnv *env) argument
62 AutoJavaFloatArray(JNIEnv* env, jfloatArray array, int minLength, JNIAccess access) argument
82 AutoJavaIntArray(JNIEnv* env, jintArray array, int minLength) argument
101 AutoJavaShortArray(JNIEnv* env, jshortArray array, int minLength, JNIAccess access) argument
121 AutoJavaByteArray(JNIEnv* env, jbyteArray array, int minLength) argument
212 get_jrect(JNIEnv* env, jobject obj, int* L, int* T, int* R, int* B) argument
222 set_jrect(JNIEnv* env, jobject obj, int L, int T, int R, int B) argument
232 jrect_to_irect(JNIEnv* env, jobject obj, SkIRect* ir) argument
243 irect_to_jrect(const SkIRect& ir, JNIEnv* env, jobject obj) argument
253 jrectf_to_rect(JNIEnv* env, jobject obj, SkRect* r) argument
264 jrect_to_rect(JNIEnv* env, jobject obj, SkRect* r) argument
275 rect_to_jrectf(const SkRect& r, JNIEnv* env, jobject obj) argument
285 jpoint_to_ipoint(JNIEnv* env, jobject obj, SkIPoint* point) argument
294 ipoint_to_jpoint(const SkIPoint& ir, JNIEnv* env, jobject obj) argument
302 jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) argument
311 point_to_jpointf(const SkPoint& r, JNIEnv* env, jobject obj) argument
359 getSkBitmap(JNIEnv* env, jobject bitmap, SkBitmap* outBitmap) argument
363 refSkPixelRef(JNIEnv* env, jobject jbitmap) argument
368 getNativeBitmapColorType(JNIEnv* env, jobject jconfig) argument
378 isHardwareConfig(JNIEnv* env, jobject jconfig) argument
391 getNativeCanvas(JNIEnv* env, jobject canvas) argument
402 getNativeRegion(JNIEnv* env, jobject region) argument
415 createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap) argument
426 createRegion(JNIEnv* env, SkRegion* region) argument
437 mapAshmemBitmap(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable, int fd, void* addr, size_t size, bool readOnly) argument
496 getNativeTransferParameters(JNIEnv* env, jobject transferParams) argument
508 getNativeXYZMatrix(JNIEnv* env, jfloatArray xyzD50) argument
524 getNativeColorSpace(JNIEnv* env, jobject colorSpace) argument
551 getColorSpace(JNIEnv* env, sk_sp<SkColorSpace>& decodeColorSpace, SkColorType decodeColorType) argument
720 AshmemPixelAllocator(JNIEnv *env) argument
732 register_android_graphics_Graphics(JNIEnv* env) argument
[all...]
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfUtils.h27 bool forwardPdfiumError(JNIEnv* env);
29 #define HANDLE_PDFIUM_ERROR_STATE(env) \
31 bool isExceptionPending = forwardPdfiumError(env); \
37 #define HANDLE_PDFIUM_ERROR_STATE_WITH_RET_CODE(env, retCode) \
39 bool isExceptionPending = forwardPdfiumError(env); \
45 jlong nativeOpen(JNIEnv* env, jclass thiz, jint fd, jlong size);
46 void nativeClose(JNIEnv* env, jclass thiz, jlong documentPtr);
48 jint nativeGetPageCount(JNIEnv* env, jclass thiz, jlong documentPtr);
49 jboolean nativeScaleForPrinting(JNIEnv* env, jclass thiz, jlong documentPtr);
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp20 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, argument
22 if (NULL == env || NULL == jbitmap) {
27 android::bitmap::imageInfo(env, jbitmap, info);
32 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr) { argument
33 if (NULL == env || NULL == jbitmap) {
37 void* addr = android::bitmap::lockPixels(env, jbitmap);
48 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap) { argument
49 if (NULL == env || NULL == jbitmap) {
53 bool unlocked = android::bitmap::unlockPixels(env, jbitmap);
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp47 static String8 getStringValue(JNIEnv* env, jobject object, const char* fieldName);
50 JNIEnv* env, jobject object, const char* fieldName, int* dataLength);
53 JNIEnv* env, jbyteArray byteArray, int* dataLength);
55 static String8 getStringValue(JNIEnv* env, jstring string);
57 static int getIntValue(JNIEnv* env, jobject object, const char* fieldName);
60 String8 Utility::getStringValue(JNIEnv* env, jobject object, const char* fieldName) { argument
63 = env->GetFieldID(env->GetObjectClass(object), fieldName , "Ljava/lang/String;");
66 jstring valueString = (jstring) env->GetObjectField(object, fieldID);
67 return Utility::getStringValue(env, valueStrin
74 getStringValue(JNIEnv* env, jstring string) argument
91 getByteArrayValue( JNIEnv* env, jobject object, const char* fieldName, int* dataLength) argument
105 getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) argument
119 getIntValue(JNIEnv* env, jobject object, const char* fieldName) argument
148 JNIOnInfoListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
161 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
169 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
181 setDrmManagerClientImpl( JNIEnv* env, jobject thiz, const sp<DrmManagerClientImpl>& client) argument
199 getDrmManagerClientImpl(JNIEnv* env, jobject thiz) argument
209 android_drm_DrmManagerClient_initialize( JNIEnv* env, jobject thiz) argument
222 android_drm_DrmManagerClient_setListeners( JNIEnv* env, jobject thiz, jint uniqueId, jobject weak_thiz) argument
233 android_drm_DrmManagerClient_release( JNIEnv* env, jobject thiz, jint uniqueId) argument
247 android_drm_DrmManagerClient_getConstraintsFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) argument
296 android_drm_DrmManagerClient_getMetadataFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath) argument
336 android_drm_DrmManagerClient_getAllSupportInfo( JNIEnv* env, jobject thiz, jint uniqueId) argument
392 android_drm_DrmManagerClient_saveRights( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmRights, jstring rightsPath, jstring contentPath) argument
415 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
426 android_drm_DrmManagerClient_processDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoObject) argument
509 android_drm_DrmManagerClient_acquireDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoRequest) argument
581 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
592 android_drm_DrmManagerClient_getOriginalMimeType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jobject fileDescriptor) argument
608 android_drm_DrmManagerClient_checkRightsStatus( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) argument
618 android_drm_DrmManagerClient_removeRights( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument
625 android_drm_DrmManagerClient_removeAllRights( JNIEnv* env, jobject thiz, jint uniqueId) argument
632 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument
642 GetConvertedStatus(JNIEnv* env, DrmConvertedStatus* pDrmConvertedStatus) argument
673 android_drm_DrmManagerClient_convertData( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId, jbyteArray inputData) argument
692 android_drm_DrmManagerClient_closeConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId) argument
765 registerNativeMethods(JNIEnv* env) argument
781 JNIEnv* env = NULL; local
[all...]

Completed in 508 milliseconds

1234567891011>>