[Android Themes] Adi Aisiteru Reborn:
How to added RAM PROGRESS BAR & CLEAR ALL RECENT APPS in Recent panel for JB 4.2 + +

HOW TO ADD RAM PROGRESS BAR IN RECENT PANEL for JB 4.2 + +

Let's just start it,. :good::laugh:

REQUIREMENT:

- BRAIN

- Patient

- experience

- Know how to decompile/recompiling Apk file

- Know how to decompile/recompiling jar Apk file

- notepad++

- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else

STEP - 1

- Decompile your Settings.apk

- Download attached RamBar Settings.apk , exstract it and merge to your decompiled Settings.apk

- Next, go to

Settings.apk/res/xml/display_settings.xml

add the red line

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/display_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
[COLOR="Red"]<PreferenceScreen android:title="Ram Progress Bar" android:key="adi_vanir_settings" android:fragment="com.android.settings.adi.VanirRamProgressBar" />[/COLOR]
<com.android.settings.BrightnessPreference android:title="@string/brightness" android:key="brightness" android:dialogTitle="@string/brightness" />
<PreferenceScreen android:title="@string/wallpaper_settings_title" android:key="wallpaper" android:fragment="com.android.settings.WallpaperTypeSettings" />
<PreferenceScreen android:title="@string/display_rotation_title" android:key="display_rotation" android:fragment="com.android.settings.cyanogenmod.DisplayRotation" />
<ListPreference android:persistent="false" android:entries="@array/screen_timeout_entries" android:title="@string/screen_timeout" android:key="screen_timeout" android:summary="@string/screen_timeout_summary" android:entryValues="@array/screen_timeout_values" />
<PreferenceScreen android:title="@string/screensaver_settings_title" android:key="screensaver" android:fragment="com.android.settings.DreamSettings" />
<com.android.settings.WarnedListPreference android:entries="@array/entries_font_size" android:title="@string/title_font_size" android:key="font_size" android:summary="@string/summary_font_size" android:dialogTitle="@string/dialog_title_font_size" android:entryValues="@array/entryvalues_font_size" />
<PreferenceScreen android:title="@string/wifi_display_settings_title" android:key="wifi_display" android:fragment="com.android.settings.wfd.WifiDisplaySettings" />
<CheckBoxPreference android:title="@string/screen_off_animation_title" android:key="screen_off_animation" android:summary="@string/screen_off_animation_summary" android:defaultValue="true" />
<PreferenceCategory android:title="@string/display_category_wakeup_options_title" android:key="category_wakeup_options">
<CheckBoxPreference android:title="@string/pref_home_wake_title" android:key="pref_home_wake" android:summary="@string/pref_home_wake_summary" android:defaultValue="true" />
<CheckBoxPreference android:title="@string/pref_volume_wake_title" android:key="pref_volume_wake" android:summary="@string/pref_volume_wake_summary" android:defaultValue="false" />
</PreferenceCategory>
</PreferenceScreen>

- Recompile your Settings.apk

- Decompile the newly recompiled Settings.apk and go to res/values/public.xml

open it with Notepad++

leave it, but keep it open

- go to Settings.apk/smali/com/android/settings/adi/VanirRamProgressBar.smali

search for this

[COLOR="Red"]0x7f050068[/COLOR]

and change it with the IDS you got in your own public.xml

<public type="xml" name="adi_vanir_rambar" id="[COLOR="Red"]0x7f??????[/COLOR]" />

- Done, and recompile your settings.apk

- Push it to system/app with right permission / reboot

- Done reboot, open your settings app, go to settings / Display settings / and check enabled "Ram Progress Bar"

STEP -2

- Decompile your SystemUI.apk

- SystemUI.apk/res/layout/status_bar_recent_panel.xml

add the red line

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsVerticalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="vertical" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsVerticalScrollView>
[COLOR="Red"]<LinearLayout android:layout_gravity="top" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="5.0dip">
<TextView android:textColor="@*android:color/holo_blue_dark" android:layout_gravity="center" android:id="@id/recents_memory_text" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ProgressBar android:id="@id/recents_memory_bar" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@*android:dimen/preference_fragment_padding_side" android:layout_marginRight="@*android:dimen/preference_fragment_padding_side" style="?android:attr/progressBarStyleHorizontal" />
</LinearLayout>[/COLOR]
<ImageView android:layout_gravity="bottom|left|center" android:id="@id/recents_clear" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_clear" android:scaleType="center" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>

- SystemUI.apk/res/layout-land/status_bar_recent_panel.xml

add the red line

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="right" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
[COLOR="Red"]<LinearLayout android:layout_gravity="top" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="5.0dip">
<TextView android:textColor="@*android:color/holo_blue_dark" android:layout_gravity="center" android:id="@id/recents_memory_text" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ProgressBar android:id="@id/recents_memory_bar" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@*android:dimen/preference_fragment_padding_side" android:layout_marginRight="@*android:dimen/preference_fragment_padding_side" style="?android:attr/progressBarStyleHorizontal" />
</LinearLayout>[/COLOR]
<ImageView android:layout_gravity="bottom|left|center" android:id="@id/recents_clear" android:clickable="true" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_recents_clear" android:scaleType="center" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>

- SystemUI.apk/res/values/ids.xml

add the red line to end of it before </resources>

<item type="id" name="notifications_tab_contents">false</item>
<item type="id" name="bottom_bg_helper">false</item>
[COLOR="Red"]<item type="id" name="recents_memory_bar">false</item>
<item type="id" name="recents_memory_text">false</item>[/COLOR]
</resources>

- Recompile your SystemUI.apk

- Decompile the newly Recompiled APK again

Next go to

res/values/public.xml

open it with Notepad++

leave it, but keep it open

- SystemUI.apk/smali/com/android/systemui/recent/RecentsPanelView.smali

add the red line

iget-object v1, p0, Lcom/android/systemui/recent/RecentsPanelView;->mPopup:Landroid/widget/PopupMenu;

invoke-virtual {v1}, Landroid/widget/PopupMenu;->dismiss()V

goto :goto_2
.end method

[COLOR="Red"].method private showMemDisplay()Z
.locals 7

.prologue
const/16 v5, 0x8

const/4 v3, 0x1

const/4 v4, 0x0

.line 994
iget-object v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "adi_beanning_rom_ram_progrees_bar"

invoke-static {v0, v1, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v0

if-ne v0, v3, :cond_0

move v2, v3

.line 997
:goto_0
const v0, [COLOR="Blue"]0x7f0900f0[/COLOR]

invoke-virtual {p0, v0}, Lcom/android/systemui/recent/RecentsPanelView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

.line 998
const v1, [COLOR="Blue"]0x7f0900ef[/COLOR]

invoke-virtual {p0, v1}, Lcom/android/systemui/recent/RecentsPanelView;->findViewById(I)Landroid/view/View;

move-result-object v1

check-cast v1, Landroid/widget/ProgressBar;

.line 1000
if-nez v2, :cond_1

.line 1001
invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

.line 1002
invoke-virtual {v1, v5}, Landroid/widget/ProgressBar;->setVisibility(I)V

.line 1015
:goto_1
return v4

:cond_0
move v2, v4

.line 994
goto :goto_0

.line 1006
:cond_1
invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

.line 1007
invoke-virtual {v1, v4}, Landroid/widget/ProgressBar;->setVisibility(I)V

.line 1009
invoke-virtual {p0}, Lcom/android/systemui/recent/RecentsPanelView;->getTotalMemory()I

move-result v2

.line 1010
invoke-virtual {v1, v2}, Landroid/widget/ProgressBar;->setMax(I)V

.line 1012
invoke-direct {p0}, Lcom/android/systemui/recent/RecentsPanelView;->getAvailMemory()Ljava/lang/String;

move-result-object v4

invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v4

.line 1013
new-instance v5, Ljava/lang/StringBuilder;

invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

const-string v6, "Free RAM: "

invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v5

invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

move-result-object v6

invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v5

const-string v6, "MB"

invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v5

invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 1014
sub-int v0, v2, v4

invoke-virtual {v1, v0}, Landroid/widget/ProgressBar;->setProgress(I)V

move v4, v3

.line 1015
goto :goto_1
.end method[/COLOR]

.method private startApplicationDetailsActivity(Ljava/lang/String;)V
.locals 4
.parameter "packageName"

.prologue
.line 742
new-instance v0, Landroid/content/Intent;

const-string v1, "android.settings.APPLICATION_DETAILS_SETTINGS"

const-string v2, "package"

Change this 0x7f0900f0

with the IDS value you got in your public.xml

<public type="id" name="recents_memory_text" id="[COLOR="Blue"]0x7f??????[/COLOR]" />

and this 0x7f0900ef with

<public type="id" name="recents_memory_bar" id="0x7f??????" />

- Next

Search this method

.method public handleSwipe(Landroid/view/View;)V

scroll down in that method and add the red line

.method public handleSwipe(Landroid/view/View;)V
.locals 7
.parameter "view"

.prologue
const/4 v4, 0x1

.line 709
invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

move-result-object v2

check-cast v2, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;

iget-object v0, v2, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->taskDescription:Lcom/android/systemui/recent/TaskDescription;

.line 710
.local v0, ad:Lcom/android/systemui/recent/TaskDescription;
if-nez v0, :cond_1

.line 711
const-string v2, "RecentsPanelView"

new-instance v3, Ljava/lang/StringBuilder;

invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

const-string v4, "Not able to find activity description for swiped task; view="

invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

move-result-object v3

const-string v4, " tag="

invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

move-result-object v4

invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v3

invoke-static {v2, v3}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

.line 739
:cond_0
:goto_0
return-void

.line 716
:cond_1
iget-object v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRecentTaskDescriptions:Ljava/util/ArrayList;

invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

.line 717
iget-object v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRecentTasksLoader:Lcom/android/systemui/recent/RecentTasksLoader;

invoke-virtual {v2, v0}, Lcom/android/systemui/recent/RecentTasksLoader;->remove(Lcom/android/systemui/recent/TaskDescription;)V

.line 722
iget-object v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mRecentTaskDescriptions:Ljava/util/ArrayList;

invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

move-result v2

if-nez v2, :cond_2

.line 723
invoke-virtual {p0}, Lcom/android/systemui/recent/RecentsPanelView;->dismissAndGoBack()V

.line 728
:cond_2
iget-object v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;

const-string v3, "activity"

invoke-virtual {v2, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v1

check-cast v1, Landroid/app/ActivityManager;

.line 730
.local v1, am:Landroid/app/ActivityManager;
if-eqz v1, :cond_0

.line 731
iget v2, v0, Lcom/android/systemui/recent/TaskDescription;->persistentTaskId:I

invoke-virtual {v1, v2, v4}, Landroid/app/ActivityManager;->removeTask(II)Z

.line 734
iget-object v2, p0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;

const v3, 0x7f0a00ba

new-array v4, v4, [Ljava/lang/Object;

const/4 v5, 0x0

invoke-virtual {v0}, Lcom/android/systemui/recent/TaskDescription;->getLabel()Ljava/lang/CharSequence;

move-result-object v6

aput-object v6, v4, v5

invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

move-result-object v2

invoke-virtual {p0, v2}, Lcom/android/systemui/recent/RecentsPanelView;->setContentDescription(Ljava/lang/CharSequence;)V

.line 736
const/4 v2, 0x4

invoke-virtual {p0, v2}, Lcom/android/systemui/recent/RecentsPanelView;->sendAccessibilityEvent(I)V

.line 737
const/4 v2, 0x0

invoke-virtual {p0, v2}, Lcom/android/systemui/recent/RecentsPanelView;->setContentDescription(Ljava/lang/CharSequence;)V

[COLOR="Red"] invoke-direct {p0}, Lcom/android/systemui/recent/RecentsPanelView;->showMemDisplay()Z[/COLOR]

goto :goto_0
.end method

- Next

Search this method

.method public show(ZLjava/util/ArrayList;ZZ)V

scroll down in that method and add the red line

.method public show(ZLjava/util/ArrayList;ZZ)V
.locals 1
.parameter "show"
.parameter
.parameter "firstScreenful"
.parameter "animateIconOfFirstTask"
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z",
"Ljava/util/ArrayList",
"<",
"Lcom/android/systemui/recent/TaskDescription;",
">;ZZ)V"
}
.end annotation

.prologue
.line 302
.local p2, recentTaskDescriptions:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/android/systemui/recent/TaskDescription;>;"
iput-boolean p4, p0, Lcom/android/systemui/recent/RecentsPanelView;->mAnimateIconOfFirstTask:Z

.line 303
iput-boolean p4, p0, Lcom/android/systemui/recent/RecentsPanelView;->mWaitingForWindowAnimation:Z

.line 304
if-eqz p1, :cond_0

.line 305
const/4 v0, 0x1

iput-boolean v0, p0, Lcom/android/systemui/recent/RecentsPanelView;->mWaitingToShow:Z

.line 306
invoke-direct {p0, p2, p3}, Lcom/android/systemui/recent/RecentsPanelView;->refreshRecentTasksList(Ljava/util/ArrayList;Z)V

.line 307
invoke-direct {p0}, Lcom/android/systemui/recent/RecentsPanelView;->showIfReady()V

[COLOR="Red"] invoke-direct {p0}, Lcom/android/systemui/recent/RecentsPanelView;->showMemDisplay()Z[/COLOR]

.line 311
:goto_0
return-void

.line 309
:cond_0
const/4 v0, 0x0

invoke-direct {p0, v0}, Lcom/android/systemui/recent/RecentsPanelView;->showImpl(Z)V

goto :goto_0
.end method

- Next

add the red method

.method public dispatchHoverEvent(Landroid/view/MotionEvent;)Z
.locals 3
.parameter "event"

.prologue
.line 394
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

move-result v2

float-to-int v0, v2

.line 395
.local v0, x:I
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

move-result v2

float-to-int v1, v2

.line 396
.local v1, y:I
if-ltz v0, :cond_0

invoke-virtual {p0}, Lcom/android/systemui/recent/RecentsPanelView;->getWidth()I

move-result v2

if-ge v0, v2, :cond_0

if-ltz v1, :cond_0

invoke-virtual {p0}, Lcom/android/systemui/recent/RecentsPanelView;->getHeight()I

move-result v2

if-ge v1, v2, :cond_0

.line 397
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchHoverEvent(Landroid/view/MotionEvent;)Z

move-result v2

.line 399
:goto_0
return v2

:cond_0
const/4 v2, 0x1

goto :goto_0
.end method

[COLOR="Red"].method public getTotalMemory()I
.locals 4

.prologue
.line 1027
const-string v1, "/proc/meminfo"

.line 1030
const/4 v0, 0x0

.line 1032
:try_start_0
new-instance v2, Ljava/io/FileReader;

invoke-direct {v2, v1}, Ljava/io/FileReader;-><init>(Ljava/lang/String;)V

.line 1033
new-instance v1, Ljava/io/BufferedReader;

const/16 v3, 0x2000

invoke-direct {v1, v2, v3}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V

.line 1034
invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

move-result-object v2

.line 1035
const-string v3, "\\s+"

invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v2

.line 1036
const/4 v3, 0x1

aget-object v2, v2, v3

invoke-static {v2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v2

invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

move-result v0

mul-int/lit16 v0, v0, 0x400

.line 1037
invoke-virtual {v1}, Ljava/io/BufferedReader;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

.line 1040
:goto_0
const/high16 v1, 0x10

div-int/2addr v0, v1

return v0

.line 1038
:catch_0
move-exception v1

goto :goto_0
.end method[/COLOR]

.method public handleLongPress(Landroid/view/View;Landroid/view/View;Landroid/view/View;)V
.locals 4
.parameter "selectedView"
.parameter "anchorView"
.parameter "thumbnailView"

.prologue
.line 759
const/4 v1, 0x1

invoke-virtual {p3, v1}, Landroid/view/View;->setSelected(Z)V

.line 760
new-instance v0, Landroid/widget/PopupMenu;

iget-object v1, p0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;

if-nez p2, :cond_0

move-object p2, p1

.end local p2
:cond_0
invoke-direct {v0, v1, p2}, Landroid/widget/PopupMenu;-><init>(Landroid/content/Context;Landroid/view/View;)V

- Next and the last

Add the red codes

.method private createCustomAnimations(Landroid/animation/LayoutTransition;)V
.locals 3
.parameter "transitioner"

.prologue
.line 475
const-wide/16 v0, 0xc8

invoke-virtual {p1, v0, v1}, Landroid/animation/LayoutTransition;->setDuration(J)V

.line 476
const/4 v0, 0x1

const-wide/16 v1, 0x0

invoke-virtual {p1, v0, v1, v2}, Landroid/animation/LayoutTransition;->setStartDelay(IJ)V

.line 477
const/4 v0, 0x3

const/4 v1, 0x0

invoke-virtual {p1, v0, v1}, Landroid/animation/LayoutTransition;->setAnimator(ILandroid/animation/Animator;)V

.line 478
return-void
.end method

[COLOR="Red"].method private getAvailMemory()Ljava/lang/String;
.locals 8

.prologue
.line 1019
new-instance v3, Landroid/app/ActivityManager$MemoryInfo;

invoke-direct {v3}, Landroid/app/ActivityManager$MemoryInfo;-><init>()V

.line 1020
.local v3, memInfo:Landroid/app/ActivityManager$MemoryInfo;
iget-object v4, p0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;

const-string v5, "activity"

invoke-virtual {v4, v5}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/app/ActivityManager;

.line 1021
.local v0, am:Landroid/app/ActivityManager;
invoke-virtual {v0, v3}, Landroid/app/ActivityManager;->getMemoryInfo(Landroid/app/ActivityManager$MemoryInfo;)V

.line 1022
iget-wide v4, v3, Landroid/app/ActivityManager$MemoryInfo;->availMem:J

const-wide/32 v6, 0x100000

div-long v1, v4, v6

.line 1023
.local v1, availableMem:J
invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

move-result-object v4

return-object v4
.end method[/COLOR]

.method private pointInside(IILandroid/view/View;)Z
.locals 5
.parameter "x"
.parameter "y"
.parameter "v"

.prologue
.line 278
invoke-virtual {p3}, Landroid/view/View;->getLeft()I

move-result v1

.line 279
.local v1, l:I
invoke-virtual {p3}, Landroid/view/View;->getRight()I

- Done and recompile your SystemUI.apk

Credit to :

- CyanogenMod

- Vanir KK AOSP ROM

- [Unofficial Community] Galaxy Wonder CyanogenMod Indonesia