use of com.android.layoutlib.bridge.android.BridgeWindow in project platform_frameworks_base by android.
the class AttachInfo_Accessor method setAttachInfo.
public static void setAttachInfo(View view) {
Context context = view.getContext();
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
Display display = wm.getDefaultDisplay();
ViewRootImpl root = new ViewRootImpl(context, display);
AttachInfo info = new AttachInfo(new BridgeWindowSession(), new BridgeWindow(), display, root, new Handler(), null);
info.mHasWindowFocus = true;
info.mWindowVisibility = View.VISIBLE;
// this is so that we can display selections.
info.mInTouchMode = false;
info.mHardwareAccelerated = false;
view.dispatchAttachedToWindow(info, 0);
}
use of com.android.layoutlib.bridge.android.BridgeWindow in project android_frameworks_base by ResurrectionRemix.
the class AttachInfo_Accessor method setAttachInfo.
public static void setAttachInfo(View view) {
Context context = view.getContext();
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
Display display = wm.getDefaultDisplay();
ViewRootImpl root = new ViewRootImpl(context, display);
AttachInfo info = new AttachInfo(new BridgeWindowSession(), new BridgeWindow(), display, root, new Handler(), null);
info.mHasWindowFocus = true;
info.mWindowVisibility = View.VISIBLE;
// this is so that we can display selections.
info.mInTouchMode = false;
info.mHardwareAccelerated = false;
view.dispatchAttachedToWindow(info, 0);
}
use of com.android.layoutlib.bridge.android.BridgeWindow in project android_frameworks_base by DirtyUnicorns.
the class AttachInfo_Accessor method setAttachInfo.
public static void setAttachInfo(View view) {
Context context = view.getContext();
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
Display display = wm.getDefaultDisplay();
ViewRootImpl root = new ViewRootImpl(context, display);
AttachInfo info = new AttachInfo(new BridgeWindowSession(), new BridgeWindow(), display, root, new Handler(), null);
info.mHasWindowFocus = true;
info.mWindowVisibility = View.VISIBLE;
// this is so that we can display selections.
info.mInTouchMode = false;
info.mHardwareAccelerated = false;
view.dispatchAttachedToWindow(info, 0);
}
use of com.android.layoutlib.bridge.android.BridgeWindow in project android_frameworks_base by AOSPA.
the class AttachInfo_Accessor method setAttachInfo.
public static void setAttachInfo(View view) {
Context context = view.getContext();
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
Display display = wm.getDefaultDisplay();
ViewRootImpl root = new ViewRootImpl(context, display);
AttachInfo info = new AttachInfo(new BridgeWindowSession(), new BridgeWindow(), display, root, new Handler(), null);
info.mHasWindowFocus = true;
info.mWindowVisibility = View.VISIBLE;
// this is so that we can display selections.
info.mInTouchMode = false;
info.mHardwareAccelerated = false;
view.dispatchAttachedToWindow(info, 0);
}
use of com.android.layoutlib.bridge.android.BridgeWindow in project android_frameworks_base by crdroidandroid.
the class AttachInfo_Accessor method setAttachInfo.
public static void setAttachInfo(View view) {
Context context = view.getContext();
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
Display display = wm.getDefaultDisplay();
ViewRootImpl root = new ViewRootImpl(context, display);
AttachInfo info = new AttachInfo(new BridgeWindowSession(), new BridgeWindow(), display, root, new Handler(), null);
info.mHasWindowFocus = true;
info.mWindowVisibility = View.VISIBLE;
// this is so that we can display selections.
info.mInTouchMode = false;
info.mHardwareAccelerated = false;
view.dispatchAttachedToWindow(info, 0);
}
Aggregations