ShadowPhoneWindow
@Implements(android.view.Window.class) public class ShadowWindow extends Object
Modifier and Type | Field | Description |
---|---|---|
protected Drawable |
backgroundDrawable |
|
protected CharSequence |
title |
Constructor | Description |
---|---|
ShadowWindow() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addOnFrameMetricsAvailableListener(Window.OnFrameMetricsAvailableListener listener,
Handler handler) |
|
static Window |
create(Context context) |
|
Drawable |
getBackgroundDrawable() |
|
boolean |
getFlag(int flag) |
|
ProgressBar |
getIndeterminateProgressBar() |
|
ProgressBar |
getProgressBar() |
|
int |
getSoftInputMode() |
|
CharSequence |
getTitle() |
|
protected void |
removeOnFrameMetricsAvailableListener(Window.OnFrameMetricsAvailableListener listener) |
|
void |
reportOnFrameMetricsAvailable(FrameMetrics frameMetrics) |
Calls
Window.OnFrameMetrisAvailableListener#onFrameMetricsAvailable() on each current
listener with 0 as the dropCountSinceLastInvocation. |
void |
reportOnFrameMetricsAvailable(FrameMetrics frameMetrics,
int dropCountSinceLastInvocation) |
Calls
Window.OnFrameMetrisAvailableListener#onFrameMetricsAvailable() on each current
listener. |
protected void |
setFlags(int flags,
int mask) |
|
protected void |
setSoftInputMode(int softInputMode) |
protected CharSequence title
protected Drawable backgroundDrawable
@Implementation protected void setFlags(int flags, int mask)
@Implementation protected void setSoftInputMode(int softInputMode)
public boolean getFlag(int flag)
public CharSequence getTitle()
public int getSoftInputMode()
public Drawable getBackgroundDrawable()
public ProgressBar getProgressBar()
public ProgressBar getIndeterminateProgressBar()
@Implementation(minSdk=24) protected void addOnFrameMetricsAvailableListener(Window.OnFrameMetricsAvailableListener listener, Handler handler)
@Implementation(minSdk=24) protected void removeOnFrameMetricsAvailableListener(Window.OnFrameMetricsAvailableListener listener)
public void reportOnFrameMetricsAvailable(FrameMetrics frameMetrics)
Window.OnFrameMetrisAvailableListener#onFrameMetricsAvailable()
on each current
listener with 0 as the dropCountSinceLastInvocation.public void reportOnFrameMetricsAvailable(FrameMetrics frameMetrics, int dropCountSinceLastInvocation)
Window.OnFrameMetrisAvailableListener#onFrameMetricsAvailable()
on each current
listener.frameMetrics
- the FrameMetrics
instance passed to the listeners.dropCountSinceLastInvocation
- the dropCountSinceLastInvocation passed to the listeners.