2022-10-02 23:06:56 +02:00
|
|
|
package android.app;
|
|
|
|
|
|
2024-04-14 21:48:13 +02:00
|
|
|
import android.content.pm.ConfigurationInfo;
|
2023-09-12 23:18:47 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2022-10-02 23:06:56 +02:00
|
|
|
public class ActivityManager {
|
|
|
|
|
|
2024-06-15 22:32:01 +02:00
|
|
|
public static class RunningAppProcessInfo{
|
|
|
|
|
public int importance;
|
|
|
|
|
}
|
2023-09-12 23:18:47 +02:00
|
|
|
|
|
|
|
|
public List<RunningAppProcessInfo> getRunningAppProcesses() {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isLowRamDevice() {return false;}
|
|
|
|
|
|
2024-03-16 17:10:38 +00:00
|
|
|
public static class MemoryInfo {
|
|
|
|
|
/* For now, just always report there's 10GB free RAM */
|
|
|
|
|
public long availMem = 10000;
|
2024-06-15 22:32:01 +02:00
|
|
|
|
|
|
|
|
public long totalMem = 10000;
|
2024-08-25 11:20:01 +02:00
|
|
|
|
|
|
|
|
public long threshold = 200;
|
|
|
|
|
|
|
|
|
|
public boolean lowMemory = false;
|
2024-03-16 17:10:38 +00:00
|
|
|
}
|
|
|
|
|
|
2024-04-14 21:48:13 +02:00
|
|
|
public void getMemoryInfo(MemoryInfo outInfo)
|
2024-03-16 17:10:38 +00:00
|
|
|
{
|
|
|
|
|
outInfo = new MemoryInfo();
|
|
|
|
|
}
|
2024-04-14 21:48:13 +02:00
|
|
|
|
|
|
|
|
public ConfigurationInfo getDeviceConfigurationInfo() {
|
|
|
|
|
return new ConfigurationInfo();
|
|
|
|
|
}
|
2024-06-15 22:32:01 +02:00
|
|
|
|
|
|
|
|
public int getMemoryClass() {return 20;} // suggested heap size in MB
|
|
|
|
|
|
|
|
|
|
public static void getMyMemoryState(RunningAppProcessInfo outInfo) {}
|
2024-06-24 18:44:31 +02:00
|
|
|
|
|
|
|
|
public boolean clearApplicationUserData() {return false;}
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|