api-impl: quick&dirty implementations and stubing

This commit is contained in:
Mis012
2024-03-16 15:03:06 +01:00
parent 2e864adc0f
commit 6443e3977c
3 changed files with 12 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ public class MediaPlayer {
public void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener dummy) {}
public void setOnVideoSizeChangedListener(MediaPlayer.OnVideoSizeChangedListener dummy) {}
public void setAudioStreamType(int dummy) {}
public void start() {}
public void pause() {}
public void prepareAsync() {}
public void reset() {}

View File

@@ -126,7 +126,10 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
return children.indexOf(child);
}
public void updateViewLayout(View view, ViewGroup.LayoutParams params) {}
public void updateViewLayout(View view, ViewGroup.LayoutParams params) {
/* FIXME */
view.requestLayout();
}
public LayoutParams generateLayoutParams(AttributeSet attrs) {
return new LayoutParams(getContext(), attrs);

View File

@@ -1,6 +1,7 @@
package android.view;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.SurfaceHolder;
public class Window {
@@ -84,6 +85,12 @@ public class Window {
return new WindowManager.LayoutParams();
}
public void setBackgroundDrawable(Drawable drawable) {
/* TODO: should this be *under* the contentView background? */
if (contentView != null)
contentView.setBackgroundDrawable(drawable);
}
public void setAttributes(WindowManager.LayoutParams params) {}
public void takeSurface(SurfaceHolder.Callback2 callback) {}