Skip to content

Commit

Permalink
Frameworks: TRDS 2.0 (1/3)
Browse files Browse the repository at this point in the history
After testing with huge success we discovered here
and there small problems (like NFC beam animation is broken,
TRDS was disabled on cardock etc) which mainly was caused
due that we used the already from AOSP introduced uiModes
qualifier which could cause in special conditions this
conflicts. Beside that we want a bit more flexibility.

Result: This commit introduces the inverted qualifier as
complete own qualifier undependent of the already AOSP
used ones.

Beside that it fixes all known issues......features:

- it is now completly working over the AOSP Configuration classes
  Means every app get notice of a change trough onConfiguratioChange
  and restarts it's activity if change was detected.
- app can disable that like some other configuration values
  over AndroidMainfest.xml
- beside "inverted" folder another "notinverted" folder is introduced
  for another themeing (eg white)
- qualifier order is direct before the official uiMode qualifiers
  (see AOSP docs)
- All usual Configuration actions can be used with the inverted
  qualifiers....like BroadcastChange, direct read out from every
  app etc. etc. Note: Only system can change the uiInvertedMode

So as you see a real own qualifier now

NOTE: Apktool as well aapt need to be changed to fit the "new
qualifier"....which means that we need to recompile our gapps
that they react as well on this new behaviour. Think we will get them ready
next 2 or 3 days.

Patchset:
increase support from SDK_HONEYCOMB_MR2
to FROYO to have better compatibillity
to some gapps.

Change-Id: I851740010198c400266d7ca9995eb08dbf7782bc
  • Loading branch information
kufikugel committed May 26, 2013
1 parent 827f6f6 commit 3194015
Show file tree
Hide file tree
Showing 35 changed files with 621 additions and 119 deletions.
55 changes: 55 additions & 0 deletions api/10.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43444,6 +43444,17 @@
visibility="public"
>
</field>
<field name="CONFIG_UI_INVERTED_MODE"
type="int"
transient="false"
volatile="false"
value="768"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="CONFIG_UI_MODE"
type="int"
transient="false"
Expand Down Expand Up @@ -49482,6 +49493,50 @@
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_NORMAL"
type="int"
transient="false"
volatile="false"
value="1"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_YES"
type="int"
transient="false"
volatile="false"
value="2"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_NO"
type="int"
transient="false"
volatile="false"
value="3"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_UNDEFINED"
type="int"
transient="false"
volatile="false"
value="0"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="fontScale"
type="float"
transient="false"
Expand Down
55 changes: 55 additions & 0 deletions api/11.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57514,6 +57514,17 @@
visibility="public"
>
</field>
<field name="CONFIG_UI_INVERTED_MODE"
type="int"
transient="false"
volatile="false"
value="768"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="CONFIG_UI_MODE"
type="int"
transient="false"
Expand Down Expand Up @@ -63675,6 +63686,50 @@
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_NORMAL"
type="int"
transient="false"
volatile="false"
value="1"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_YES"
type="int"
transient="false"
volatile="false"
value="2"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_NO"
type="int"
transient="false"
volatile="false"
value="3"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_UNDEFINED"
type="int"
transient="false"
volatile="false"
value="0"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="fontScale"
type="float"
transient="false"
Expand Down
55 changes: 55 additions & 0 deletions api/12.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57851,6 +57851,17 @@
visibility="public"
>
</field>
<field name="CONFIG_UI_INVERTED_MODE"
type="int"
transient="false"
volatile="false"
value="768"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="CONFIG_UI_MODE"
type="int"
transient="false"
Expand Down Expand Up @@ -64045,6 +64056,50 @@
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_NORMAL"
type="int"
transient="false"
volatile="false"
value="1"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_YES"
type="int"
transient="false"
volatile="false"
value="2"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_NO"
type="int"
transient="false"
volatile="false"
value="3"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_UNDEFINED"
type="int"
transient="false"
volatile="false"
value="0"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="fontScale"
type="float"
transient="false"
Expand Down
50 changes: 47 additions & 3 deletions api/13.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58501,6 +58501,17 @@
visibility="public"
>
</field>
<field name="CONFIG_UI_INVERTED_MODE"
type="int"
transient="false"
volatile="false"
value="768"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="CONFIG_UI_MODE"
type="int"
transient="false"
Expand Down Expand Up @@ -64802,18 +64813,51 @@
visibility="public"
>
</field>
<field name="UI_MODE_TYPE_INVERTED"
<field name="UI_MODE_TYPE_UNDEFINED"
type="int"
transient="false"
volatile="false"
value="69"
value="0"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_MODE_TYPE_UNDEFINED"
<field name="UI_INVERTED_MODE_NORMAL"
type="int"
transient="false"
volatile="false"
value="1"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_YES"
type="int"
transient="false"
volatile="false"
value="2"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_NO"
type="int"
transient="false"
volatile="false"
value="3"
static="true"
final="true"
deprecated="not deprecated"
visibility="public"
>
</field>
<field name="UI_INVERTED_MODE_UNDEFINED"
type="int"
transient="false"
volatile="false"
Expand Down
7 changes: 6 additions & 1 deletion api/14.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5921,6 +5921,7 @@ package android.content.pm {
field public static final int CONFIG_SCREEN_SIZE = 1024; // 0x400
field public static final int CONFIG_SMALLEST_SCREEN_SIZE = 2048; // 0x800
field public static final int CONFIG_TOUCHSCREEN = 8; // 0x8
field public static final int CONFIG_UI_INVERTED_MODE = 768; // 0x300
field public static final int CONFIG_UI_MODE = 512; // 0x200
field public static final android.os.Parcelable.Creator CREATOR;
field public static final int FLAG_ALLOW_TASK_REPARENTING = 64; // 0x40
Expand Down Expand Up @@ -6531,6 +6532,10 @@ package android.content.res {
field public static final int TOUCHSCREEN_NOTOUCH = 1; // 0x1
field public static final int TOUCHSCREEN_STYLUS = 2; // 0x2
field public static final int TOUCHSCREEN_UNDEFINED = 0; // 0x0
field public static final int UI_INVERTED_MODE_UNDEFINED = 0; // 0x0
field public static final int UI_INVERTED_MODE_NORMAL = 1; // 0x1
field public static final int UI_INVERTED_MODE_YES = 2; // 0x2
field public static final int UI_INVERTED_MODE_NO = 3; // 0x3
field public static final int UI_MODE_NIGHT_MASK = 48; // 0x30
field public static final int UI_MODE_NIGHT_NO = 16; // 0x10
field public static final int UI_MODE_NIGHT_UNDEFINED = 0; // 0x0
Expand All @@ -6540,7 +6545,6 @@ package android.content.res {
field public static final int UI_MODE_TYPE_MASK = 15; // 0xf
field public static final int UI_MODE_TYPE_NORMAL = 1; // 0x1
field public static final int UI_MODE_TYPE_TELEVISION = 4; // 0x4
field public static final int UI_MODE_TYPE_INVERTED = 69; // 0x45
field public static final int UI_MODE_TYPE_UNDEFINED = 0; // 0x0
field public float fontScale;
field public int hardKeyboardHidden;
Expand All @@ -6557,6 +6561,7 @@ package android.content.res {
field public int screenWidthDp;
field public int smallestScreenWidthDp;
field public int touchscreen;
field public int uiInvertedMode;
field public int uiMode;
}

Expand Down
7 changes: 6 additions & 1 deletion api/15.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5943,6 +5943,7 @@ package android.content.pm {
field public static final int CONFIG_SCREEN_SIZE = 1024; // 0x400
field public static final int CONFIG_SMALLEST_SCREEN_SIZE = 2048; // 0x800
field public static final int CONFIG_TOUCHSCREEN = 8; // 0x8
field public static final int CONFIG_UI_INVERTED_MODE = 768; // 0x300
field public static final int CONFIG_UI_MODE = 512; // 0x200
field public static final android.os.Parcelable.Creator CREATOR;
field public static final int FLAG_ALLOW_TASK_REPARENTING = 64; // 0x40
Expand Down Expand Up @@ -6553,6 +6554,10 @@ package android.content.res {
field public static final int TOUCHSCREEN_NOTOUCH = 1; // 0x1
field public static final int TOUCHSCREEN_STYLUS = 2; // 0x2
field public static final int TOUCHSCREEN_UNDEFINED = 0; // 0x0
field public static final int UI_INVERTED_MODE_UNDEFINED = 0; // 0x0
field public static final int UI_INVERTED_MODE_NORMAL = 1; // 0x1
field public static final int UI_INVERTED_MODE_YES = 2; // 0x2
field public static final int UI_INVERTED_MODE_NO = 3; // 0x3
field public static final int UI_MODE_NIGHT_MASK = 48; // 0x30
field public static final int UI_MODE_NIGHT_NO = 16; // 0x10
field public static final int UI_MODE_NIGHT_UNDEFINED = 0; // 0x0
Expand All @@ -6562,7 +6567,6 @@ package android.content.res {
field public static final int UI_MODE_TYPE_MASK = 15; // 0xf
field public static final int UI_MODE_TYPE_NORMAL = 1; // 0x1
field public static final int UI_MODE_TYPE_TELEVISION = 4; // 0x4
field public static final int UI_MODE_TYPE_INVERTED = 69; // 0x45
field public static final int UI_MODE_TYPE_UNDEFINED = 0; // 0x0
field public float fontScale;
field public int hardKeyboardHidden;
Expand All @@ -6579,6 +6583,7 @@ package android.content.res {
field public int screenWidthDp;
field public int smallestScreenWidthDp;
field public int touchscreen;
field public int uiInvertedMode;
field public int uiMode;
}

Expand Down
7 changes: 6 additions & 1 deletion api/16.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6198,6 +6198,7 @@ package android.content.pm {
field public static final int CONFIG_SCREEN_SIZE = 1024; // 0x400
field public static final int CONFIG_SMALLEST_SCREEN_SIZE = 2048; // 0x800
field public static final int CONFIG_TOUCHSCREEN = 8; // 0x8
field public static final int CONFIG_UI_INVERTED_MODE = 768; // 0x300
field public static final int CONFIG_UI_MODE = 512; // 0x200
field public static final android.os.Parcelable.Creator CREATOR;
field public static final int FLAG_ALLOW_TASK_REPARENTING = 64; // 0x40
Expand Down Expand Up @@ -6818,6 +6819,10 @@ package android.content.res {
field public static final int TOUCHSCREEN_NOTOUCH = 1; // 0x1
field public static final deprecated int TOUCHSCREEN_STYLUS = 2; // 0x2
field public static final int TOUCHSCREEN_UNDEFINED = 0; // 0x0
field public static final int UI_INVERTED_MODE_UNDEFINED = 0; // 0x0
field public static final int UI_INVERTED_MODE_NORMAL = 1; // 0x1
field public static final int UI_INVERTED_MODE_YES = 2; // 0x2
field public static final int UI_INVERTED_MODE_NO = 3; // 0x3
field public static final int UI_MODE_NIGHT_MASK = 48; // 0x30
field public static final int UI_MODE_NIGHT_NO = 16; // 0x10
field public static final int UI_MODE_NIGHT_UNDEFINED = 0; // 0x0
Expand All @@ -6828,7 +6833,6 @@ package android.content.res {
field public static final int UI_MODE_TYPE_MASK = 15; // 0xf
field public static final int UI_MODE_TYPE_NORMAL = 1; // 0x1
field public static final int UI_MODE_TYPE_TELEVISION = 4; // 0x4
field public static final int UI_MODE_TYPE_INVERTED = 69; // 0x45
field public static final int UI_MODE_TYPE_UNDEFINED = 0; // 0x0
field public float fontScale;
field public int hardKeyboardHidden;
Expand All @@ -6845,6 +6849,7 @@ package android.content.res {
field public int screenWidthDp;
field public int smallestScreenWidthDp;
field public int touchscreen;
field public int uiInvertedMode;
field public int uiMode;
}

Expand Down
Loading

0 comments on commit 3194015

Please sign in to comment.