Package com.android.aapt
Interface ConfigurationOuterClass.ConfigurationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ConfigurationOuterClass.Configuration,ConfigurationOuterClass.Configuration.Builder
- Enclosing class:
- ConfigurationOuterClass
public static interface ConfigurationOuterClass.ConfigurationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDensity()The device's screen density in dots-per-inch (dpi).ConfigurationOuterClass.Configuration.HdrgetHdr()Whether the screen has high dynamic range.intgetHdrValue()Whether the screen has high dynamic range.ConfigurationOuterClass.Configuration.KeyboardgetKeyboard()The type of keyboard present (none, QWERTY, 12-key).intgetKeyboardValue()The type of keyboard present (none, QWERTY, 12-key).ConfigurationOuterClass.Configuration.KeysHiddengetKeysHidden()Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.intgetKeysHiddenValue()Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.ConfigurationOuterClass.Configuration.LayoutDirectiongetLayoutDirection()Left-to-right, right-to-left...intgetLayoutDirectionValue()Left-to-right, right-to-left...java.lang.StringgetLocale()BCP-47 locale tag.com.google.protobuf.ByteStringgetLocaleBytes()BCP-47 locale tag.intgetMcc()Mobile country code.intgetMnc()Mobile network code.ConfigurationOuterClass.Configuration.NavHiddengetNavHidden()Whether the navigation is exposed or hidden.intgetNavHiddenValue()Whether the navigation is exposed or hidden.ConfigurationOuterClass.Configuration.NavigationgetNavigation()The type of navigation present on the device (trackball, wheel, dpad, etc.).intgetNavigationValue()The type of navigation present on the device (trackball, wheel, dpad, etc.).ConfigurationOuterClass.Configuration.OrientationgetOrientation()Which orientation the device is in (portrait, landscape).intgetOrientationValue()Which orientation the device is in (portrait, landscape).java.lang.StringgetProduct()string product = 25;com.google.protobuf.ByteStringgetProductBytes()string product = 25;intgetScreenHeight()Screen height in pixels.intgetScreenHeightDp()Screen height in density independent pixels (dp).ConfigurationOuterClass.Configuration.ScreenLayoutLonggetScreenLayoutLong()Whether the device screen is long.intgetScreenLayoutLongValue()Whether the device screen is long.ConfigurationOuterClass.Configuration.ScreenLayoutSizegetScreenLayoutSize()Whether the device screen is classified as small, normal, large, xlarge.intgetScreenLayoutSizeValue()Whether the device screen is classified as small, normal, large, xlarge.ConfigurationOuterClass.Configuration.ScreenRoundgetScreenRound()Whether the screen is round (Android Wear).intgetScreenRoundValue()Whether the screen is round (Android Wear).intgetScreenWidth()Screen width in pixels.intgetScreenWidthDp()Screen width in density independent pixels (dp).intgetSdkVersion()The minimum SDK version of the device.intgetSmallestScreenWidthDp()The smallest screen dimension, regardless of orientation, in dp.ConfigurationOuterClass.Configuration.TouchscreengetTouchscreen()Whether a touchscreen exists, supports a stylus, or finger.intgetTouchscreenValue()Whether a touchscreen exists, supports a stylus, or finger.ConfigurationOuterClass.Configuration.UiModeNightgetUiModeNight()Whether the device is in night mode.intgetUiModeNightValue()Whether the device is in night mode.ConfigurationOuterClass.Configuration.UiModeTypegetUiModeType()Which type of UI mode the device is in (television, car, etc.).intgetUiModeTypeValue()Which type of UI mode the device is in (television, car, etc.).ConfigurationOuterClass.Configuration.WideColorGamutgetWideColorGamut()Whether the screen supports wide color gamut.intgetWideColorGamutValue()Whether the screen supports wide color gamut.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getMcc
int getMcc()
Mobile country code.
uint32 mcc = 1;- Returns:
- The mcc.
-
getMnc
int getMnc()
Mobile network code.
uint32 mnc = 2;- Returns:
- The mnc.
-
getLocale
java.lang.String getLocale()
BCP-47 locale tag.
string locale = 3;- Returns:
- The locale.
-
getLocaleBytes
com.google.protobuf.ByteString getLocaleBytes()
BCP-47 locale tag.
string locale = 3;- Returns:
- The bytes for locale.
-
getLayoutDirectionValue
int getLayoutDirectionValue()
Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Returns:
- The enum numeric value on the wire for layoutDirection.
-
getLayoutDirection
ConfigurationOuterClass.Configuration.LayoutDirection getLayoutDirection()
Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Returns:
- The layoutDirection.
-
getScreenWidth
int getScreenWidth()
Screen width in pixels. Prefer screen_width_dp.
uint32 screen_width = 5;- Returns:
- The screenWidth.
-
getScreenHeight
int getScreenHeight()
Screen height in pixels. Prefer screen_height_dp.
uint32 screen_height = 6;- Returns:
- The screenHeight.
-
getScreenWidthDp
int getScreenWidthDp()
Screen width in density independent pixels (dp).
uint32 screen_width_dp = 7;- Returns:
- The screenWidthDp.
-
getScreenHeightDp
int getScreenHeightDp()
Screen height in density independent pixels (dp).
uint32 screen_height_dp = 8;- Returns:
- The screenHeightDp.
-
getSmallestScreenWidthDp
int getSmallestScreenWidthDp()
The smallest screen dimension, regardless of orientation, in dp.
uint32 smallest_screen_width_dp = 9;- Returns:
- The smallestScreenWidthDp.
-
getScreenLayoutSizeValue
int getScreenLayoutSizeValue()
Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Returns:
- The enum numeric value on the wire for screenLayoutSize.
-
getScreenLayoutSize
ConfigurationOuterClass.Configuration.ScreenLayoutSize getScreenLayoutSize()
Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Returns:
- The screenLayoutSize.
-
getScreenLayoutLongValue
int getScreenLayoutLongValue()
Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Returns:
- The enum numeric value on the wire for screenLayoutLong.
-
getScreenLayoutLong
ConfigurationOuterClass.Configuration.ScreenLayoutLong getScreenLayoutLong()
Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Returns:
- The screenLayoutLong.
-
getScreenRoundValue
int getScreenRoundValue()
Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Returns:
- The enum numeric value on the wire for screenRound.
-
getScreenRound
ConfigurationOuterClass.Configuration.ScreenRound getScreenRound()
Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Returns:
- The screenRound.
-
getWideColorGamutValue
int getWideColorGamutValue()
Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Returns:
- The enum numeric value on the wire for wideColorGamut.
-
getWideColorGamut
ConfigurationOuterClass.Configuration.WideColorGamut getWideColorGamut()
Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Returns:
- The wideColorGamut.
-
getHdrValue
int getHdrValue()
Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Returns:
- The enum numeric value on the wire for hdr.
-
getHdr
ConfigurationOuterClass.Configuration.Hdr getHdr()
Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Returns:
- The hdr.
-
getOrientationValue
int getOrientationValue()
Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Returns:
- The enum numeric value on the wire for orientation.
-
getOrientation
ConfigurationOuterClass.Configuration.Orientation getOrientation()
Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Returns:
- The orientation.
-
getUiModeTypeValue
int getUiModeTypeValue()
Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Returns:
- The enum numeric value on the wire for uiModeType.
-
getUiModeType
ConfigurationOuterClass.Configuration.UiModeType getUiModeType()
Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Returns:
- The uiModeType.
-
getUiModeNightValue
int getUiModeNightValue()
Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Returns:
- The enum numeric value on the wire for uiModeNight.
-
getUiModeNight
ConfigurationOuterClass.Configuration.UiModeNight getUiModeNight()
Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Returns:
- The uiModeNight.
-
getDensity
int getDensity()
The device's screen density in dots-per-inch (dpi).
uint32 density = 18;- Returns:
- The density.
-
getTouchscreenValue
int getTouchscreenValue()
Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Returns:
- The enum numeric value on the wire for touchscreen.
-
getTouchscreen
ConfigurationOuterClass.Configuration.Touchscreen getTouchscreen()
Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Returns:
- The touchscreen.
-
getKeysHiddenValue
int getKeysHiddenValue()
Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.
.aapt.pb.Configuration.KeysHidden keys_hidden = 20;- Returns:
- The enum numeric value on the wire for keysHidden.
-
getKeysHidden
ConfigurationOuterClass.Configuration.KeysHidden getKeysHidden()
Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.
.aapt.pb.Configuration.KeysHidden keys_hidden = 20;- Returns:
- The keysHidden.
-
getKeyboardValue
int getKeyboardValue()
The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Returns:
- The enum numeric value on the wire for keyboard.
-
getKeyboard
ConfigurationOuterClass.Configuration.Keyboard getKeyboard()
The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Returns:
- The keyboard.
-
getNavHiddenValue
int getNavHiddenValue()
Whether the navigation is exposed or hidden.
.aapt.pb.Configuration.NavHidden nav_hidden = 22;- Returns:
- The enum numeric value on the wire for navHidden.
-
getNavHidden
ConfigurationOuterClass.Configuration.NavHidden getNavHidden()
Whether the navigation is exposed or hidden.
.aapt.pb.Configuration.NavHidden nav_hidden = 22;- Returns:
- The navHidden.
-
getNavigationValue
int getNavigationValue()
The type of navigation present on the device (trackball, wheel, dpad, etc.).
.aapt.pb.Configuration.Navigation navigation = 23;- Returns:
- The enum numeric value on the wire for navigation.
-
getNavigation
ConfigurationOuterClass.Configuration.Navigation getNavigation()
The type of navigation present on the device (trackball, wheel, dpad, etc.).
.aapt.pb.Configuration.Navigation navigation = 23;- Returns:
- The navigation.
-
getSdkVersion
int getSdkVersion()
The minimum SDK version of the device.
uint32 sdk_version = 24;- Returns:
- The sdkVersion.
-
getProduct
java.lang.String getProduct()
string product = 25;- Returns:
- The product.
-
getProductBytes
com.google.protobuf.ByteString getProductBytes()
string product = 25;- Returns:
- The bytes for product.
-
-