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

@@ -14,6 +14,14 @@ public final class Display {
outMetrics.heightPixels = this.window_height;
}
public int getWidth() {
return window_width;
}
public int getHeight() {
return window_height;
}
public int getRotation() {
return 0/*ROTATION_0*/;
}
@@ -21,4 +29,16 @@ public final class Display {
public float getRefreshRate() {
return 60; // FIXME
}
public long getAppVsyncOffsetNanos() {
return 0; // what else would we return here?
}
public int getDisplayId() {
return 0;
}
public long getPresentationDeadlineNanos() {
return 0; // what else...
}
}

View File

@@ -4,5 +4,6 @@ public interface WindowManager {
public android.view.Display getDefaultDisplay();
public class LayoutParams {
public static final int FLAG_KEEP_SCREEN_ON = 0;
}
}