117dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye/* 217dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * Copyright (C) 2016 The Android Open Source Project 317dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * 417dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * Licensed under the Apache License, Version 2.0 (the "License"); 517dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * you may not use this file except in compliance with the License. 617dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * You may obtain a copy of the License at 717dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * 817dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * http://www.apache.org/licenses/LICENSE-2.0 917dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * 1017dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * Unless required by applicable law or agreed to in writing, software 1117dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * distributed under the License is distributed on an "AS IS" BASIS, 1217dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1317dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * See the License for the specific language governing permissions and 1417dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * limitations under the License. 1517dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye */ 1617dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyepackage android.annotation; 1717dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye 1817dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyeimport java.lang.annotation.Documented; 1917dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyeimport java.lang.annotation.Retention; 2017dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyeimport java.lang.annotation.Target; 2117dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye 2217dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyeimport static java.lang.annotation.ElementType.FIELD; 2317dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyeimport static java.lang.annotation.ElementType.LOCAL_VARIABLE; 2417dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyeimport static java.lang.annotation.ElementType.METHOD; 2517dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyeimport static java.lang.annotation.ElementType.PARAMETER; 2617dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyeimport static java.lang.annotation.RetentionPolicy.SOURCE; 2717dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye 2817dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye/** 2917dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * Denotes that a numeric parameter, field or method return value is expected 3017dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * to represent a pixel dimension. 3117dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * 3217dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye * {@hide} 3317dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye */ 3417dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye@Documented 3517dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye@Retention(SOURCE) 3617dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye@Target({METHOD, PARAMETER, FIELD, LOCAL_VARIABLE}) 3717dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye@Dimension(unit = Dimension.PX) 3817dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbyepublic @interface Px { 3917dd669fc3b5ff3a3025b9246ac423d1e10b7783Tor Norbye} 40