add bunch of new java APIs: mostly stubs or copied from AOSP

Many of these classes are only needed to be subclassed by androidx
support library, which is used in many android apps
This commit is contained in:
Julian Winkler
2023-08-17 10:46:24 +02:00
parent a8e39cd613
commit 82744e9e5e
87 changed files with 2746 additions and 46 deletions

View File

@@ -6,6 +6,7 @@ import android.app.Application;
import android.app.KeyguardManager;
import android.app.NotificationManager;
import android.app.SharedPreferencesImpl;
import android.app.UiModeManager;
import android.content.BroadcastReceiver;
import android.content.ClipboardManager;
import android.content.Intent;
@@ -165,6 +166,8 @@ public class Context extends Object {
return new InputManager();
case "location":
return new LocationManager();
case "uimode":
return new UiModeManager();
default:
System.out.println("!!!!!!! getSystemService: case >" + name + "< is not implemented yet");
return null;
@@ -348,4 +351,8 @@ public class Context extends Object {
public void setTheme(int resId) {
theme.applyStyle(resId, true);
}
public final CharSequence getText(int resId) {
return getResources().getText(resId);
}
}