You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add lots of java APIs needed for Whatsapp
This commit is contained in:
@@ -5,7 +5,9 @@ import java.util.List;
|
||||
|
||||
public class ActivityManager {
|
||||
|
||||
public static class RunningAppProcessInfo{}
|
||||
public static class RunningAppProcessInfo{
|
||||
public int importance;
|
||||
}
|
||||
|
||||
public List<RunningAppProcessInfo> getRunningAppProcesses() {
|
||||
return null;
|
||||
@@ -16,6 +18,8 @@ public class ActivityManager {
|
||||
public static class MemoryInfo {
|
||||
/* For now, just always report there's 10GB free RAM */
|
||||
public long availMem = 10000;
|
||||
|
||||
public long totalMem = 10000;
|
||||
}
|
||||
|
||||
public void getMemoryInfo(MemoryInfo outInfo)
|
||||
@@ -26,4 +30,8 @@ public class ActivityManager {
|
||||
public ConfigurationInfo getDeviceConfigurationInfo() {
|
||||
return new ConfigurationInfo();
|
||||
}
|
||||
|
||||
public int getMemoryClass() {return 20;} // suggested heap size in MB
|
||||
|
||||
public static void getMyMemoryState(RunningAppProcessInfo outInfo) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user