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
src/api-impl: misc stubbing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user