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
40 lines
874 B
Java
40 lines
874 B
Java
package android.app;
|
|
|
|
import android.content.pm.ConfigurationInfo;
|
|
import java.util.List;
|
|
|
|
public class ActivityManager {
|
|
|
|
public static class RunningAppProcessInfo{
|
|
public int importance;
|
|
}
|
|
|
|
public List<RunningAppProcessInfo> getRunningAppProcesses() {
|
|
return null;
|
|
}
|
|
|
|
public boolean isLowRamDevice() {return false;}
|
|
|
|
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)
|
|
{
|
|
outInfo = new MemoryInfo();
|
|
}
|
|
|
|
public ConfigurationInfo getDeviceConfigurationInfo() {
|
|
return new ConfigurationInfo();
|
|
}
|
|
|
|
public int getMemoryClass() {return 20;} // suggested heap size in MB
|
|
|
|
public static void getMyMemoryState(RunningAppProcessInfo outInfo) {}
|
|
|
|
public boolean clearApplicationUserData() {return false;}
|
|
}
|