Home
last modified time | relevance | path

Searched refs:ScreenRatio (Results 1 – 10 of 10) sorted by relevance

/sdk/layoutlib_api/src/com/android/resources/
DScreenRatio.java23 public enum ScreenRatio implements ResourceEnum { enum
31 private ScreenRatio(String value, String displayValue, String longDisplayValue) { in ScreenRatio() method in ScreenRatio
42 public static ScreenRatio getEnum(String value) { in getEnum()
43 for (ScreenRatio orient : values()) { in getEnum()
67 public static int getIndex(ScreenRatio orientation) { in getIndex()
69 for (ScreenRatio orient : values()) { in getIndex()
80 public static ScreenRatio getByIndex(int index) { in getByIndex()
82 for (ScreenRatio orient : values()) { in getByIndex()
/sdk/sdk_common/src/com/android/ide/common/resources/configuration/
DScreenRatioQualifier.java20 import com.android.resources.ScreenRatio;
26 private ScreenRatio mValue = null;
31 public ScreenRatioQualifier(ScreenRatio value) { in ScreenRatioQualifier()
35 public ScreenRatio getValue() { in getValue()
61 ScreenRatio size = ScreenRatio.getEnum(value); in checkAndSet()
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/devices/
DScreen.java20 import com.android.resources.ScreenRatio;
29 private ScreenRatio mScreenRatio;
62 public ScreenRatio getRatio() { in getRatio()
66 public void setRatio(ScreenRatio ratio) { in setRatio()
DDeviceParser.java27 import com.android.resources.ScreenRatio;
156 ScreenRatio.getEnum(getString(mStringAccumulator))); in endElement()
/sdk/layoutlib_api/sample/src/com/example/android/render/
DMain.java33 import com.android.resources.ScreenRatio;
92 ScreenRatio.LONG, in main()
DRenderServiceFactory.java53 import com.android.resources.ScreenRatio;
110 ScreenRatio screenRatio, in createConfig()
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/devices/
DDeviceParserTest.java36 import com.android.resources.ScreenRatio;
65 assertEquals(ScreenRatio.LONG, screen.getRatio()); in testValidDevices()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/layoutRendering/
DApiDemosRenderingTest.java58 import com.android.resources.ScreenRatio;
296 config.addQualifier(new ScreenRatioQualifier(ScreenRatio.NOTLONG)); in getConfiguration()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DConfigurationSelector.java52 import com.android.resources.ScreenRatio;
1289 fillCombo(mRatio, ScreenRatio.values()); in ScreenRatioEdit()
1310 ScreenRatio.getByIndex(index))); in onScreenRatioChange()
1327 ScreenRatio value = q.getValue(); in setQualifier()
1331 mRatio.select(ScreenRatio.getIndex(value)); in setQualifier()
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/
DDeviceCreationDialog.java27 import com.android.resources.ScreenRatio;
195 mRatio = generateCombo(parent, tooltip, ScreenRatio.values(), 1, validator); in createDialogContent()
869 s.setRatio(ScreenRatio.getEnum(mRatio.getText())); in okPressed()