Package com.android.aapt
Class ConfigurationOuterClass.Configuration
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.android.aapt.ConfigurationOuterClass.Configuration
-
- All Implemented Interfaces:
ConfigurationOuterClass.ConfigurationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- ConfigurationOuterClass
public static final class ConfigurationOuterClass.Configuration extends com.google.protobuf.GeneratedMessageV3 implements ConfigurationOuterClass.ConfigurationOrBuilder
A description of the requirements a device must have in order for a resource to be matched and selected.
Protobuf typeaapt.pb.Configuration- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigurationOuterClass.Configuration.BuilderA description of the requirements a device must have in order for a resource to be matched and selected.static classConfigurationOuterClass.Configuration.HdrProtobuf enumaapt.pb.Configuration.Hdrstatic classConfigurationOuterClass.Configuration.KeyboardProtobuf enumaapt.pb.Configuration.Keyboardstatic classConfigurationOuterClass.Configuration.KeysHiddenProtobuf enumaapt.pb.Configuration.KeysHiddenstatic classConfigurationOuterClass.Configuration.LayoutDirectionProtobuf enumaapt.pb.Configuration.LayoutDirectionstatic classConfigurationOuterClass.Configuration.NavHiddenProtobuf enumaapt.pb.Configuration.NavHiddenstatic classConfigurationOuterClass.Configuration.NavigationProtobuf enumaapt.pb.Configuration.Navigationstatic classConfigurationOuterClass.Configuration.OrientationProtobuf enumaapt.pb.Configuration.Orientationstatic classConfigurationOuterClass.Configuration.ScreenLayoutLongProtobuf enumaapt.pb.Configuration.ScreenLayoutLongstatic classConfigurationOuterClass.Configuration.ScreenLayoutSizeProtobuf enumaapt.pb.Configuration.ScreenLayoutSizestatic classConfigurationOuterClass.Configuration.ScreenRoundProtobuf enumaapt.pb.Configuration.ScreenRoundstatic classConfigurationOuterClass.Configuration.TouchscreenProtobuf enumaapt.pb.Configuration.Touchscreenstatic classConfigurationOuterClass.Configuration.UiModeNightProtobuf enumaapt.pb.Configuration.UiModeNightstatic classConfigurationOuterClass.Configuration.UiModeTypeProtobuf enumaapt.pb.Configuration.UiModeTypestatic classConfigurationOuterClass.Configuration.WideColorGamutProtobuf enumaapt.pb.Configuration.WideColorGamut-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDENSITY_FIELD_NUMBERstatic intHDR_FIELD_NUMBERstatic intKEYBOARD_FIELD_NUMBERstatic intKEYS_HIDDEN_FIELD_NUMBERstatic intLAYOUT_DIRECTION_FIELD_NUMBERstatic intLOCALE_FIELD_NUMBERstatic intMCC_FIELD_NUMBERstatic intMNC_FIELD_NUMBERstatic intNAV_HIDDEN_FIELD_NUMBERstatic intNAVIGATION_FIELD_NUMBERstatic intORIENTATION_FIELD_NUMBERstatic intPRODUCT_FIELD_NUMBERstatic intSCREEN_HEIGHT_DP_FIELD_NUMBERstatic intSCREEN_HEIGHT_FIELD_NUMBERstatic intSCREEN_LAYOUT_LONG_FIELD_NUMBERstatic intSCREEN_LAYOUT_SIZE_FIELD_NUMBERstatic intSCREEN_ROUND_FIELD_NUMBERstatic intSCREEN_WIDTH_DP_FIELD_NUMBERstatic intSCREEN_WIDTH_FIELD_NUMBERstatic intSDK_VERSION_FIELD_NUMBERstatic intSMALLEST_SCREEN_WIDTH_DP_FIELD_NUMBERstatic intTOUCHSCREEN_FIELD_NUMBERstatic intUI_MODE_NIGHT_FIELD_NUMBERstatic intUI_MODE_TYPE_FIELD_NUMBERstatic intWIDE_COLOR_GAMUT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static ConfigurationOuterClass.ConfigurationgetDefaultInstance()ConfigurationOuterClass.ConfigurationgetDefaultInstanceForType()intgetDensity()The device's screen density in dots-per-inch (dpi).static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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).com.google.protobuf.Parser<ConfigurationOuterClass.Configuration>getParserForType()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.intgetSerializedSize()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.).com.google.protobuf.UnknownFieldSetgetUnknownFields()ConfigurationOuterClass.Configuration.WideColorGamutgetWideColorGamut()Whether the screen supports wide color gamut.intgetWideColorGamutValue()Whether the screen supports wide color gamut.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ConfigurationOuterClass.Configuration.BuildernewBuilder()static ConfigurationOuterClass.Configuration.BuildernewBuilder(ConfigurationOuterClass.Configuration prototype)ConfigurationOuterClass.Configuration.BuildernewBuilderForType()protected ConfigurationOuterClass.Configuration.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ConfigurationOuterClass.ConfigurationparseDelimitedFrom(java.io.InputStream input)static ConfigurationOuterClass.ConfigurationparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConfigurationOuterClass.ConfigurationparseFrom(byte[] data)static ConfigurationOuterClass.ConfigurationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConfigurationOuterClass.ConfigurationparseFrom(com.google.protobuf.ByteString data)static ConfigurationOuterClass.ConfigurationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConfigurationOuterClass.ConfigurationparseFrom(com.google.protobuf.CodedInputStream input)static ConfigurationOuterClass.ConfigurationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConfigurationOuterClass.ConfigurationparseFrom(java.io.InputStream input)static ConfigurationOuterClass.ConfigurationparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ConfigurationOuterClass.ConfigurationparseFrom(java.nio.ByteBuffer data)static ConfigurationOuterClass.ConfigurationparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ConfigurationOuterClass.Configuration>parser()ConfigurationOuterClass.Configuration.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MCC_FIELD_NUMBER
public static final int MCC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MNC_FIELD_NUMBER
public static final int MNC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCALE_FIELD_NUMBER
public static final int LOCALE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAYOUT_DIRECTION_FIELD_NUMBER
public static final int LAYOUT_DIRECTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCREEN_WIDTH_FIELD_NUMBER
public static final int SCREEN_WIDTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCREEN_HEIGHT_FIELD_NUMBER
public static final int SCREEN_HEIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCREEN_WIDTH_DP_FIELD_NUMBER
public static final int SCREEN_WIDTH_DP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCREEN_HEIGHT_DP_FIELD_NUMBER
public static final int SCREEN_HEIGHT_DP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SMALLEST_SCREEN_WIDTH_DP_FIELD_NUMBER
public static final int SMALLEST_SCREEN_WIDTH_DP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCREEN_LAYOUT_SIZE_FIELD_NUMBER
public static final int SCREEN_LAYOUT_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCREEN_LAYOUT_LONG_FIELD_NUMBER
public static final int SCREEN_LAYOUT_LONG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCREEN_ROUND_FIELD_NUMBER
public static final int SCREEN_ROUND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WIDE_COLOR_GAMUT_FIELD_NUMBER
public static final int WIDE_COLOR_GAMUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HDR_FIELD_NUMBER
public static final int HDR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORIENTATION_FIELD_NUMBER
public static final int ORIENTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UI_MODE_TYPE_FIELD_NUMBER
public static final int UI_MODE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UI_MODE_NIGHT_FIELD_NUMBER
public static final int UI_MODE_NIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DENSITY_FIELD_NUMBER
public static final int DENSITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOUCHSCREEN_FIELD_NUMBER
public static final int TOUCHSCREEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEYS_HIDDEN_FIELD_NUMBER
public static final int KEYS_HIDDEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEYBOARD_FIELD_NUMBER
public static final int KEYBOARD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAV_HIDDEN_FIELD_NUMBER
public static final int NAV_HIDDEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAVIGATION_FIELD_NUMBER
public static final int NAVIGATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SDK_VERSION_FIELD_NUMBER
public static final int SDK_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRODUCT_FIELD_NUMBER
public static final int PRODUCT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getMcc
public int getMcc()
Mobile country code.
uint32 mcc = 1;- Specified by:
getMccin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The mcc.
-
getMnc
public int getMnc()
Mobile network code.
uint32 mnc = 2;- Specified by:
getMncin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The mnc.
-
getLocale
public java.lang.String getLocale()
BCP-47 locale tag.
string locale = 3;- Specified by:
getLocalein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The locale.
-
getLocaleBytes
public com.google.protobuf.ByteString getLocaleBytes()
BCP-47 locale tag.
string locale = 3;- Specified by:
getLocaleBytesin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The bytes for locale.
-
getLayoutDirectionValue
public int getLayoutDirectionValue()
Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Specified by:
getLayoutDirectionValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for layoutDirection.
-
getLayoutDirection
public ConfigurationOuterClass.Configuration.LayoutDirection getLayoutDirection()
Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Specified by:
getLayoutDirectionin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The layoutDirection.
-
getScreenWidth
public int getScreenWidth()
Screen width in pixels. Prefer screen_width_dp.
uint32 screen_width = 5;- Specified by:
getScreenWidthin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenWidth.
-
getScreenHeight
public int getScreenHeight()
Screen height in pixels. Prefer screen_height_dp.
uint32 screen_height = 6;- Specified by:
getScreenHeightin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenHeight.
-
getScreenWidthDp
public int getScreenWidthDp()
Screen width in density independent pixels (dp).
uint32 screen_width_dp = 7;- Specified by:
getScreenWidthDpin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenWidthDp.
-
getScreenHeightDp
public int getScreenHeightDp()
Screen height in density independent pixels (dp).
uint32 screen_height_dp = 8;- Specified by:
getScreenHeightDpin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenHeightDp.
-
getSmallestScreenWidthDp
public int getSmallestScreenWidthDp()
The smallest screen dimension, regardless of orientation, in dp.
uint32 smallest_screen_width_dp = 9;- Specified by:
getSmallestScreenWidthDpin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The smallestScreenWidthDp.
-
getScreenLayoutSizeValue
public int getScreenLayoutSizeValue()
Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Specified by:
getScreenLayoutSizeValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for screenLayoutSize.
-
getScreenLayoutSize
public ConfigurationOuterClass.Configuration.ScreenLayoutSize getScreenLayoutSize()
Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Specified by:
getScreenLayoutSizein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenLayoutSize.
-
getScreenLayoutLongValue
public int getScreenLayoutLongValue()
Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Specified by:
getScreenLayoutLongValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for screenLayoutLong.
-
getScreenLayoutLong
public ConfigurationOuterClass.Configuration.ScreenLayoutLong getScreenLayoutLong()
Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Specified by:
getScreenLayoutLongin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenLayoutLong.
-
getScreenRoundValue
public int getScreenRoundValue()
Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Specified by:
getScreenRoundValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for screenRound.
-
getScreenRound
public ConfigurationOuterClass.Configuration.ScreenRound getScreenRound()
Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Specified by:
getScreenRoundin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenRound.
-
getWideColorGamutValue
public int getWideColorGamutValue()
Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Specified by:
getWideColorGamutValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for wideColorGamut.
-
getWideColorGamut
public ConfigurationOuterClass.Configuration.WideColorGamut getWideColorGamut()
Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Specified by:
getWideColorGamutin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The wideColorGamut.
-
getHdrValue
public int getHdrValue()
Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Specified by:
getHdrValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for hdr.
-
getHdr
public ConfigurationOuterClass.Configuration.Hdr getHdr()
Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Specified by:
getHdrin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The hdr.
-
getOrientationValue
public int getOrientationValue()
Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Specified by:
getOrientationValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for orientation.
-
getOrientation
public ConfigurationOuterClass.Configuration.Orientation getOrientation()
Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Specified by:
getOrientationin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The orientation.
-
getUiModeTypeValue
public int getUiModeTypeValue()
Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Specified by:
getUiModeTypeValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for uiModeType.
-
getUiModeType
public ConfigurationOuterClass.Configuration.UiModeType getUiModeType()
Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Specified by:
getUiModeTypein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The uiModeType.
-
getUiModeNightValue
public int getUiModeNightValue()
Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Specified by:
getUiModeNightValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for uiModeNight.
-
getUiModeNight
public ConfigurationOuterClass.Configuration.UiModeNight getUiModeNight()
Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Specified by:
getUiModeNightin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The uiModeNight.
-
getDensity
public int getDensity()
The device's screen density in dots-per-inch (dpi).
uint32 density = 18;- Specified by:
getDensityin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The density.
-
getTouchscreenValue
public int getTouchscreenValue()
Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Specified by:
getTouchscreenValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for touchscreen.
-
getTouchscreen
public ConfigurationOuterClass.Configuration.Touchscreen getTouchscreen()
Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Specified by:
getTouchscreenin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The touchscreen.
-
getKeysHiddenValue
public 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;- Specified by:
getKeysHiddenValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for keysHidden.
-
getKeysHidden
public 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;- Specified by:
getKeysHiddenin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The keysHidden.
-
getKeyboardValue
public int getKeyboardValue()
The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Specified by:
getKeyboardValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for keyboard.
-
getKeyboard
public ConfigurationOuterClass.Configuration.Keyboard getKeyboard()
The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Specified by:
getKeyboardin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The keyboard.
-
getNavHiddenValue
public int getNavHiddenValue()
Whether the navigation is exposed or hidden.
.aapt.pb.Configuration.NavHidden nav_hidden = 22;- Specified by:
getNavHiddenValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for navHidden.
-
getNavHidden
public ConfigurationOuterClass.Configuration.NavHidden getNavHidden()
Whether the navigation is exposed or hidden.
.aapt.pb.Configuration.NavHidden nav_hidden = 22;- Specified by:
getNavHiddenin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The navHidden.
-
getNavigationValue
public int getNavigationValue()
The type of navigation present on the device (trackball, wheel, dpad, etc.).
.aapt.pb.Configuration.Navigation navigation = 23;- Specified by:
getNavigationValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for navigation.
-
getNavigation
public ConfigurationOuterClass.Configuration.Navigation getNavigation()
The type of navigation present on the device (trackball, wheel, dpad, etc.).
.aapt.pb.Configuration.Navigation navigation = 23;- Specified by:
getNavigationin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The navigation.
-
getSdkVersion
public int getSdkVersion()
The minimum SDK version of the device.
uint32 sdk_version = 24;- Specified by:
getSdkVersionin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The sdkVersion.
-
getProduct
public java.lang.String getProduct()
string product = 25;- Specified by:
getProductin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The product.
-
getProductBytes
public com.google.protobuf.ByteString getProductBytes()
string product = 25;- Specified by:
getProductBytesin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The bytes for product.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ConfigurationOuterClass.Configuration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ConfigurationOuterClass.Configuration parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ConfigurationOuterClass.Configuration parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public ConfigurationOuterClass.Configuration.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ConfigurationOuterClass.Configuration.Builder newBuilder()
-
newBuilder
public static ConfigurationOuterClass.Configuration.Builder newBuilder(ConfigurationOuterClass.Configuration prototype)
-
toBuilder
public ConfigurationOuterClass.Configuration.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConfigurationOuterClass.Configuration.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ConfigurationOuterClass.Configuration getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ConfigurationOuterClass.Configuration> parser()
-
getParserForType
public com.google.protobuf.Parser<ConfigurationOuterClass.Configuration> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ConfigurationOuterClass.Configuration getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-