10a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet/* 20a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * Copyright (C) 2011 The Android Open Source Project 30a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * 40a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * Licensed under the Apache License, Version 2.0 (the "License"); 50a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * you may not use this file except in compliance with the License. 60a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * You may obtain a copy of the License at 70a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * 80a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * http://www.apache.org/licenses/LICENSE-2.0 90a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * 100a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * Unless required by applicable law or agreed to in writing, software 110a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * distributed under the License is distributed on an "AS IS" BASIS, 120a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 130a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * See the License for the specific language governing permissions and 140a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * limitations under the License. 150a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet */ 160a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet 170a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohetpackage android.view; 180a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet 190a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohetimport com.android.tools.layoutlib.annotations.LayoutlibDelegate; 200a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet 210a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet 220a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet/** 230a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * Delegate used to provide new implementation of a select few methods of {@link Display} 240a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * 250a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * Through the layoutlib_create tool, the original methods of Display have been replaced 260a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * by calls to methods of the same name in this delegate class. 270a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet * 280a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet */ 290a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohetpublic class Display_Delegate { 300a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet 316dfd0b39a63559999a769f93d5cdb48abe675344Xavier Ducrohet @LayoutlibDelegate 326dfd0b39a63559999a769f93d5cdb48abe675344Xavier Ducrohet static void updateDisplayInfoLocked(Display theDisplay) { 336dfd0b39a63559999a769f93d5cdb48abe675344Xavier Ducrohet // do nothing 346dfd0b39a63559999a769f93d5cdb48abe675344Xavier Ducrohet } 356dfd0b39a63559999a769f93d5cdb48abe675344Xavier Ducrohet 360a49635b171f3ba366b1a7ebf28791c4661829bdXavier Ducrohet} 37