equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <jni.h> |
|
20 |
|
21 #include "logger.h" |
|
22 #include "commonproperties.h" |
|
23 #include "javajniutils.h" |
|
24 |
|
25 using namespace java::util; |
|
26 |
|
27 jstring java::util::getLocaleImpl(JNIEnv* aEnv) |
|
28 { |
|
29 JELOG2(EUtils); |
|
30 jstring loc = 0; |
|
31 // Impl missing... |
|
32 JniUtils::throwNewException |
|
33 (aEnv,"java/lang/RuntimeException", |
|
34 "microedition.locale system property not supported in linux"); |
|
35 return loc; |
|
36 } |
|
37 |
|
38 jstring java::util::getPlatformImpl(JNIEnv* aEnv) |
|
39 { |
|
40 JELOG2(EUtils); |
|
41 jstring platformStr = 0; |
|
42 // Impl missing... |
|
43 JniUtils::throwNewException |
|
44 (aEnv,"java/lang/RuntimeException", |
|
45 "microedition.platform system property not supported in linux"); |
|
46 return platformStr; |
|
47 } |
|
48 |
|
49 jint java::util::getFreeMemoryImpl(JNIEnv* aEnv) |
|
50 { |
|
51 JELOG2(EUtils); |
|
52 // Impl missing... |
|
53 JniUtils::throwNewException |
|
54 (aEnv,"java/lang/RuntimeException", |
|
55 "com.nokia.memoryramfree system property not supported in linux"); |
|
56 return -1; |
|
57 } |
|
58 |