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:
@@ -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...
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user