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
api-impl: add misc stubs/impls
This commit is contained in:
@@ -1804,7 +1804,8 @@ public final class MotionEvent extends InputEvent {
|
||||
* a stream of position events.
|
||||
*/
|
||||
public final long getDownTime() {
|
||||
return nativeGetDownTimeNanos(mNativePtr) / NS_PER_MS;
|
||||
return getEventTime(); // FIXME?
|
||||
// return nativeGetDownTimeNanos(mNativePtr) / NS_PER_MS;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1489,11 +1489,6 @@ public class View implements Drawable.Callback {
|
||||
|
||||
public void clearFocus() {}
|
||||
|
||||
public void setRotation(float rotation) {}
|
||||
|
||||
public void setScaleX(float scaleX) {}
|
||||
public void setScaleY(float scaleY) {}
|
||||
|
||||
public static View inflate(Context context, int resource, ViewGroup root) {
|
||||
LayoutInflater factory = LayoutInflater.from(context);
|
||||
return factory.inflate(resource, root);
|
||||
@@ -1734,20 +1729,32 @@ public class View implements Drawable.Callback {
|
||||
|
||||
public void getWindowVisibleDisplayFrame(Rect rect) {}
|
||||
|
||||
public void setRotation(float rotation) {}
|
||||
public void setRotationX(float deg) {}
|
||||
|
||||
public void setRotationY(float deg) {}
|
||||
|
||||
public float getRotationX() {return 0.f;}
|
||||
public float getRotationY() {return 0.f;}
|
||||
|
||||
public void setScaleX(float scaleX) {}
|
||||
public void setScaleY(float scaleY) {}
|
||||
|
||||
public float getScaleX() {return 1.f;}
|
||||
public float getScaleY() {return 1.f;}
|
||||
|
||||
public void setPivotX(float pivot_x) {}
|
||||
public void setPivotY(float pivot_y) {}
|
||||
|
||||
public float getPivotX() {return 0.f;}
|
||||
public float getPivotY() {return 0.f;}
|
||||
|
||||
public float getTranslationZ() {return 0.f;}
|
||||
|
||||
public void setTranslationZ(float translationZ) {}
|
||||
|
||||
public int getWindowSystemUiVisibility() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setScrollIndicators(int indicators, int mask) {}
|
||||
}
|
||||
|
||||
5
src/api-impl/android/view/ViewAnimationUtils.java
Normal file
5
src/api-impl/android/view/ViewAnimationUtils.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package android.view;
|
||||
|
||||
public class ViewAnimationUtils {
|
||||
|
||||
}
|
||||
@@ -106,4 +106,5 @@ public class Window {
|
||||
return new WindowManagerImpl();
|
||||
}
|
||||
|
||||
public void setSoftInputMode(int dummy) {}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,48 @@ public class WindowInsets {
|
||||
public WindowInsets consumeSystemWindowInsets() {
|
||||
return this;
|
||||
}
|
||||
|
||||
public WindowInsets replaceSystemWindowInsets(int left, int top, int right, int bottom) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getSystemWindowInsetLeft() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getSystemWindowInsetTop() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getSystemWindowInsetRight() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getSystemWindowInsetBottom() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getStableInsetLeft() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getStableInsetTop() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getStableInsetRight() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getStableInsetBottom() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean isRound() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isConsumed() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user