Skip to content

Commit

Permalink
INPUT DRIVER. Transitions, Draws, Optimizing
Browse files Browse the repository at this point in the history
Whole new input driver
New Stack Transition IN-OUT
new ini_set("transition","value");
Optimize alphablend processes
Optimize and Add Drawing Scale Nearest Neighbor
Add drawing functions for alphablend
  • Loading branch information
Ahmad Amarullah committed Jun 21, 2013
1 parent 306c388 commit 32f8608
Show file tree
Hide file tree
Showing 15 changed files with 959 additions and 876 deletions.
29 changes: 29 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
AROMA is an advanced update-binary for Android that contains many features
like Wizard Installation, Touch User Interface (AROMA UI), Customizable Packages,
System Inspecting, Themeable, and User Interactive.

* How To Build With Android Build Environment
1. Copy whole directory into /external/aroma-installer
2. # . build/envsetup.sh
3. # lunch full_yourdevice-eng
4. # make -j4 aroma_installer
5. # make aroma_installer.zip

* Programming Language
It was application which runs on Android device but not on Android OS
Environment that the native applications usually use Java.
AROMA Installer use C (Pure C, not C++), so it may run on another
platform like x86 with small modifications ofcourse.

* Used Libraries
ZLIB - ofcourse, it was the most awesome thing in computer world
PNG, MinZIP, Freetype.
All library need to compiled as static to make sure it runs
without any dependency issue in any devices.

* Official Binary
I Only support ARM device, but it was opensourced, so anyone
can play with the source and compiled it for they own devices.


----------------------------------[ LICENSE ]----------------------------------

Apache License
Version 2.0, January 2004
Expand Down
60 changes: 11 additions & 49 deletions assets/META-INF/com/google/android/aroma-config
Original file line number Diff line number Diff line change
Expand Up @@ -70,39 +70,6 @@
# ini_set("dp","5");
#

#### NOTE >> THIS VERSION DOESN'T NEED ANY CALIBRATION DATA :)

##[ DEPRECATED - WONT DO ANYTHING FOR THIS VERSION ]
# Calibrate Touchscreen - MATRIX METHOD
#
# For other device, run the installer, then press "menu"
# and select Calibrating Tools. Follow Instructions, and make
# sure the touch screen has been valid in the testing step.
#
# In the end, there will be alert dialog with calibration data
# ( green ), replace this calibrate_matrix() function with that data.
#
#-------- Change the value with your device calibration data:
#
# Current calibration was for HTC Sensation/XE/4G Devices:
#
#calibrate_matrix(
# "63052.50", "840.00", "-903390.00", "-1680.00",
# "125895.00", "-371670.00", "120021.25", "0"
#);

##[ DEPRECATED ]
# Calibrate Touchscreen
# defaut: HTC Desire Touch Screen Calibrate Data [7.90,20,7.90,20]
#
# In the end, there will be alert dialog with calibration data
# ( green ), replace this calibrate() function with that data.
#
#-------- Uncomment This to insert calibrating data:
# calibrate("7.90","20","7.90","20");
#


##
# Custom Key Code - Usefull For Some Device which not used
# Standard key code for up/down/select/back/menu
Expand Down Expand Up @@ -162,25 +129,18 @@ anisplash(
"splash/a6", 30
);

##[DEPRECATED]
# Show Calibrating Tools Directly before show any UI
#
#--- Remove this calibtool if you already know the calibrate data
# calibtool("");

#
# Set Small Font to Support all fonts
#
fontresload( "0", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "12" ); #-- Use sets of font (Font Family)
fontresload( "1", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "16" ); #-- Use sets of font (Font Family)

fontresload( "1", "ttf/Roboto-Regular.ttf;ttf/DroidSansFallback.ttf;", "14" ); #-- Use sets of font (Font Family)

#
# INCLUDE EXAMPLE = Language Selection
# INCLUDE EXAMPLE = Language Selection & Form Example
#
include("language_select.edify");
include("custombox_test.edify");
eval("alert(\"On Eval Function\",\"This Alert was executed from Eval Function...\", \"@info\");");


###################################################################################################################
#
Expand All @@ -197,6 +157,8 @@ viewbox(
"@info"
);

eval("alert(\"On Eval Function\",\"This Alert was executed from Eval Function...\", \"@info\");");


###################################################################################################################
#
Expand Down Expand Up @@ -323,7 +285,7 @@ textbox(
alert("Back To English","OK, Multilanguage demo ends here... It will use english now...", "@info");
loadlang("langs/en.lang");
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "16" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "14" );
##
##

Expand Down Expand Up @@ -935,7 +897,7 @@ if prop("demo.prop","selected")=="7" then
endif;

# fontresload("0","droid.ttf","12");
# fontresload("1","droid.ttf","16");
# fontresload("1","droid.ttf","14");
##--------------------------------------
#
# FONTS & UNICODE DEMO
Expand Down Expand Up @@ -988,7 +950,7 @@ if prop("demo.prop","selected")=="8" then
#-- Font File
"META-INF/com/google/android/aroma/ttf/Roboto-Regular.ttf",
#-- Font Size ( 0 = png font, >0 = font size )
"16"
"14"
);

endif;
Expand All @@ -1012,7 +974,7 @@ if prop("demo.prop","selected")=="8" then
#-- Font File
"ttf/DroidSerif-Regular.ttf",
#-- Font Size ( 0 = png font, >0 = font size )
"16"
"14"
);

endif;
Expand Down Expand Up @@ -1057,7 +1019,7 @@ if prop("demo.prop","selected")=="8" then

#-- Load Chinesse Fonts
fontresload( "0", "ttf/DroidSansFallback.ttf;ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/DroidSansFallback.ttf;ttf/Roboto-Regular.ttf", "16" );
fontresload( "1", "ttf/DroidSansFallback.ttf;ttf/Roboto-Regular.ttf", "14" );

#-- Show License
textbox(
Expand Down Expand Up @@ -1099,7 +1061,7 @@ if prop("demo.prop","selected")=="8" then

#-- Load Chinesse Fonts
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "16" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "14" );

#-- Show License
textbox(
Expand Down
32 changes: 19 additions & 13 deletions assets/META-INF/com/google/android/aroma/custombox_test.edify
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
###################################################################################################################
#
# CUSTOMBOX TEST
# FORM TEST
#
custombox(
"Custombox Example",
"Example of usage checkbox-selectbox hybrid interface:",
form(
"Form Example",
"Example of FORM usage checkbox-selectbox hybrid interface:",
"@default",
"custombox.prop",
"form.prop",
#
# Type:
# - group = Group
Expand Down Expand Up @@ -37,19 +37,19 @@ custombox(
);

textbox(
"Custombox Example",
"Custombox generated prop file",
"Form Example",
"Form generated prop file",
"@update",
readtmpfile("custombox.prop")
readtmpfile("form.prop")
);

###################################################################################################################
#
# COLORSPACE
#
custombox(
"Change Colorspace",
"Example of usage force_colorspace (Works only for 32bit display):",
form(
"Setting Example",
"Example of usage force_colorspace (Works only for 32bit display), and transition style:",
"@default",
"colorspace.prop",
#
Expand All @@ -69,8 +69,14 @@ custombox(
"argb", "ARGB", "Color Position: (8, 16, 24, 0)", "select",
"abgr", "ABGR", "Color Position: (24, 16, 8, 0)", "select",
"rgba", "RGBA", "Color Position: (0, 8, 16, 24)", "select",
"bgra", "BGRA", "Color Position: (16, 8, 0, 24)", "select"
"bgra", "BGRA", "Color Position: (16, 8, 0, 24)", "select",

"transition", "Select Transition", "", "group",
"slide", "Slide", "Slide from left-right vice-vesa", "select.selected",
"stack", "Stack", "Like Card stack in Android Stock Launcher Drawer", "select"
);
if prop("colorspace.prop","colorspace")!="default" then
ini_set("force_colorspace",prop("colorspace.prop","colorspace"));
endif;
endif;

ini_set("transition",prop("colorspace.prop","transition"));
28 changes: 26 additions & 2 deletions src/aroma.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
// AROMA Main Configurations
//
#define AROMA_NAME "AROMA INSTALLER"
#define AROMA_VERSION "2.70B4"
#define AROMA_BUILD "130619-034B"
#define AROMA_VERSION "2.70B5"
#define AROMA_BUILD "130622-038B"
#define AROMA_BUILD_CN "Flamboyan-Beta"
#define AROMA_BUILD_L "Bandung - Indonesia"
#define AROMA_BUILD_A "<[email protected]>"
Expand Down Expand Up @@ -620,6 +620,28 @@ byte ag_draw_strecth(
int sw,
int sh
);
byte ag_draw_strecth_ex(
CANVAS * d,
CANVAS * s,
int dx,
int dy,
int dw,
int dh,
int sx,
int sy,
int sw,
int sh,
byte alpha,
byte withdest
);
byte ag_draw_opa(
CANVAS * d,
CANVAS * s,
int dx,
int dy,
byte alpha,
byte withdest
);
void ag_dither(byte * qe, int qp, int qx, int dthx, int dthy, int dthw, int dthh, byte r, byte g, byte b);
color ag_dodither(int x, int y, dword col);
color ag_dodither_rgb(int x, int y, byte sr, byte sg, byte sb);
Expand Down Expand Up @@ -711,6 +733,8 @@ void alib_exec(char * cmd, char * arg);
void create_directory(const char * path);
int remove_directory(const char * path);
long alib_tick();
long aTick();
void aSleep(long ms);

//
// AROMA Kinetic Calculator Functions
Expand Down
Loading

1 comment on commit 32f8608

@CaptainThrowback
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something in this commit breaks touch on Sprint devices (Jewel, M8). Any idea what it could be?

Please sign in to comment.