Lines Matching defs:wp
551 void adjustLayoutParamsForSubWindow(WindowManager.LayoutParams wp) {
552 CharSequence curTitle = wp.getTitle();
553 if (wp.type >= WindowManager.LayoutParams.FIRST_SUB_WINDOW &&
554 wp.type <= WindowManager.LayoutParams.LAST_SUB_WINDOW) {
555 if (wp.token == null) {
558 wp.token = decor.getWindowToken();
563 if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA) {
565 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA_OVERLAY) {
567 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_PANEL) {
569 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_SUB_PANEL) {
571 } else if (wp.type == WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG) {
574 title=Integer.toString(wp.type);
579 wp.setTitle(title);
582 if (wp.token == null) {
583 wp.token = mContainer == null ? mAppToken : mContainer.mAppToken;
587 wp.setTitle(mAppName);
590 if (wp.packageName == null) {
591 wp.packageName = mContext.getPackageName();
594 wp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;