Lines Matching defs:wp
489 void adjustLayoutParamsForSubWindow(WindowManager.LayoutParams wp) {
490 CharSequence curTitle = wp.getTitle();
491 if (wp.type >= WindowManager.LayoutParams.FIRST_SUB_WINDOW &&
492 wp.type <= WindowManager.LayoutParams.LAST_SUB_WINDOW) {
493 if (wp.token == null) {
496 wp.token = decor.getWindowToken();
501 if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA) {
503 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY) {
505 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_PANEL) {
507 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL) {
509 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG) {
512 title=Integer.toString(wp.type);
517 wp.setTitle(title);
520 if (wp.token == null) {
521 wp.token = mContainer == null ? mAppToken : mContainer.mAppToken;
525 wp.setTitle(mAppName);
528 if (wp.packageName == null) {
529 wp.packageName = mContext.getPackageName();
532 wp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;