summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2012-09-04 14:55:02 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-04 14:55:03 -0700
commit13e12578385fdbfa78b19dfa052ffaed4a68234b (patch)
tree98f872e0834583dd6a4c05c4e2cc5c2288b7b5f6 /include
parent6b09f280e522da902ca41b96c3e4510d7a2879b7 (diff)
parent8855e6f1c59954ef8de651987fec0cbba0394e9b (diff)
downloadframeworks_native-13e12578385fdbfa78b19dfa052ffaed4a68234b.zip
frameworks_native-13e12578385fdbfa78b19dfa052ffaed4a68234b.tar.gz
frameworks_native-13e12578385fdbfa78b19dfa052ffaed4a68234b.tar.bz2
Merge "Add support for "-rtl" in resources" into jb-mr1-dev
Diffstat (limited to 'include')
-rw-r--r--include/android/configuration.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/android/configuration.h b/include/android/configuration.h
index 06cd3da..0f5c14a 100644
--- a/include/android/configuration.h
+++ b/include/android/configuration.h
@@ -93,6 +93,10 @@ enum {
ACONFIGURATION_SMALLEST_SCREEN_WIDTH_DP_ANY = 0x0000,
+ ACONFIGURATION_LAYOUTDIR_ANY = 0x00,
+ ACONFIGURATION_LAYOUTDIR_LTR = 0x01,
+ ACONFIGURATION_LAYOUTDIR_RTL = 0x02,
+
ACONFIGURATION_MCC = 0x0001,
ACONFIGURATION_MNC = 0x0002,
ACONFIGURATION_LOCALE = 0x0004,
@@ -107,6 +111,7 @@ enum {
ACONFIGURATION_SCREEN_LAYOUT = 0x0800,
ACONFIGURATION_UI_MODE = 0x1000,
ACONFIGURATION_SMALLEST_SCREEN_SIZE = 0x2000,
+ ACONFIGURATION_LAYOUTDIR = 0x4000,
};
/**
@@ -331,6 +336,17 @@ int32_t AConfiguration_getSmallestScreenWidthDp(AConfiguration* config);
void AConfiguration_setSmallestScreenWidthDp(AConfiguration* config, int32_t value);
/**
+ * Return the configuration's layout direction, or
+ * ACONFIGURATION_LAYOUTDIR_ANY if not set.
+ */
+int32_t AConfiguration_getLayoutDirection(AConfiguration* config);
+
+/**
+ * Set the configuration's layout direction.
+ */
+void AConfiguration_setLayoutDirection(AConfiguration* config, int32_t value);
+
+/**
* Perform a diff between two configurations. Returns a bit mask of
* ACONFIGURATION_* constants, each bit set meaning that configuration element
* is different between them.