-
Notifications
You must be signed in to change notification settings - Fork 569
Expand file tree
/
Copy pathNativeAotRuntimeProvider.java
More file actions
51 lines (41 loc) · 1.66 KB
/
NativeAotRuntimeProvider.java
File metadata and controls
51 lines (41 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package net.dot.jni.nativeaot;
import android.util.Log;
public class NativeAotRuntimeProvider
extends android.content.ContentProvider
{
private static final String TAG = "NativeAotRuntimeProvider";
public NativeAotRuntimeProvider() {
Log.d(TAG, "NativeAotRuntimeProvider()");
}
@Override
public boolean onCreate() {
Log.d(TAG, "NativeAotRuntimeProvider.onCreate()");
return true;
}
@Override
public void attachInfo(android.content.Context context, android.content.pm.ProviderInfo info) {
Log.d(TAG, "NativeAotRuntimeProvider.attachInfo(): calling JavaInteropRuntime.init()…");
JavaInteropRuntime.init();
super.attachInfo (context, info);
}
@Override
public android.database.Cursor query(android.net.Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
throw new RuntimeException ("This operation is not supported.");
}
@Override
public String getType(android.net.Uri uri) {
throw new RuntimeException ("This operation is not supported.");
}
@Override
public android.net.Uri insert(android.net.Uri uri, android.content.ContentValues initialValues) {
throw new RuntimeException ("This operation is not supported.");
}
@Override
public int delete(android.net.Uri uri, String where, String[] whereArgs) {
throw new RuntimeException ("This operation is not supported.");
}
@Override
public int update(android.net.Uri uri, android.content.ContentValues values, String where, String[] whereArgs) {
throw new RuntimeException ("This operation is not supported.");
}
}