src/api-impl: misc stubbing

This commit is contained in:
Mis012
2022-12-27 17:21:21 +01:00
parent 696fa5a192
commit 2e4590c4d8
15 changed files with 226 additions and 52 deletions

View File

@@ -622,8 +622,8 @@ public class Environment {
* {@link #MEDIA_BAD_REMOVAL}, or {@link #MEDIA_UNMOUNTABLE}.
*/
public static String getExternalStorageState() {
final File externalDir = sCurrentUser.getExternalDirsForApp()[0];
return getStorageState(externalDir);
// we don't do stupid stuff like having this on a separate partition, so it should always be "mounted"
return MEDIA_MOUNTED;
}
/**

View File

@@ -505,8 +505,10 @@ public class Process {
* not have permission to modify the given thread, or to use the given
* priority.
*/
public static final native void setThreadPriority(int tid, int priority)
throws IllegalArgumentException, SecurityException;
public static final /*native*/ void setThreadPriority(int tid, int priority)
throws IllegalArgumentException, SecurityException {
// TODO - this is clearly not critical
}
/**
* Call with 'false' to cause future calls to {@link #setThreadPriority(int)} to