equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: JNI for calling methods in UI thread context |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "logger.h" |
|
19 #include "com_nokia_microedition_media_control_BaseDisplay.h" |
|
20 #include "cmmadisplay.h" |
|
21 |
|
22 /* |
|
23 * Class: com_nokia_microedition_media_control_BaseDisplay |
|
24 * Method: _setVisible |
|
25 * Signature: (IIZ)I |
|
26 */ |
|
27 JNIEXPORT void JNICALL Java_com_nokia_microedition_media_control_BaseDisplay__1nativeMethodCallInUiThread |
|
28 (JNIEnv *, jobject, jint nativeDisplayHandle, jint nativeFunctionID) |
|
29 { |
|
30 LOG(EJavaMMAPI,EInfo,"JNI_Display.cpp : nativeMethodCallInUiThread +"); |
|
31 CMMADisplay* display = reinterpret_cast<CMMADisplay*>(nativeDisplayHandle); |
|
32 display ->CalledBackInUiThread(nativeFunctionID); |
|
33 LOG(EJavaMMAPI,EInfo,"JNI_Display.cpp : nativeMethodCallInUiThread -"); |
|
34 } |
|
35 |