本文整理汇总了Java中mirror.com.android.internal.policy.PhoneWindow类的典型用法代码示例。如果您正苦于以下问题:Java PhoneWindow类的具体用法?Java PhoneWindow怎么用?Java PhoneWindow使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PhoneWindow类属于mirror.com.android.internal.policy包,在下文中一共展示了PhoneWindow类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: inject
import mirror.com.android.internal.policy.PhoneWindow; //导入依赖的package包/类
@Override
public void inject() throws Throwable {
super.inject();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
if (WindowManagerGlobal.sWindowManagerService != null) {
WindowManagerGlobal.sWindowManagerService.set(getInvocationStub().getProxyInterface());
}
} else {
if (Display.sWindowManager != null) {
Display.sWindowManager.set(getInvocationStub().getProxyInterface());
}
}
if (PhoneWindow.TYPE != null) {
PhoneWindow.sWindowManager.set(getInvocationStub().getProxyInterface());
}
}
示例2: inject
import mirror.com.android.internal.policy.PhoneWindow; //导入依赖的package包/类
@Override
public void inject() throws Throwable {
super.inject();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
if (WindowManagerGlobal.sWindowManagerService != null) {
WindowManagerGlobal.sWindowManagerService.set(getHookDelegate().getProxyInterface());
}
} else {
if (Display.sWindowManager != null) {
Display.sWindowManager.set(getHookDelegate().getProxyInterface());
}
}
if (PhoneWindow.TYPE != null) {
PhoneWindow.sWindowManager.set(getHookDelegate().getProxyInterface());
}
}