Commit Graph

41 Commits

Author SHA1 Message Date
Jason Sams
e5806ba2bf Update to use SurfaceConfig.
Change-Id: Ic99c1406ef8f51fdf7d9d44e378eeb0bb701a69e
2010-10-10 16:18:57 -07:00
Alex Sakhartchouk
2f3b0b625b Changing texture coord from vec4 to vec2
Change-Id: Ice5c1bf30297dfadfa724163ad6f858c72ef4fea
2010-10-06 09:32:12 -07:00
Stephen Hines
b2d6986b13 Handle RS reflection name changes.
Change-Id: I4ba8d258833472685ba52f3d2fb7869a8ffa34ef
2010-09-16 17:21:50 -07:00
Alex Sakhartchouk
95252b4cbd Changing Launcher2 to use more generic shader param binding.
Change-Id: I5550a5ce88e5edc5ce11689e828001e28bb29e04
2010-09-13 20:44:01 -07:00
Joe Onorato
6b4adbc055 DO NOT MERGE - Allow the workspace to swipe while it's loading.
You still can't modify the contents of the workspace while it's loading,
but this makes it appear a little bit more responsive.  Launching apps
while the launcher is loading has always been possible.

Bug: 2748595
Change-Id: Iaf203c7358647a9b2211bb7386579ae75b82a698
2010-09-01 12:15:10 -07:00
Jason Sams
2a4b029887 Remove outdated and unused class.
Change-Id: I0d71dcff3ca0b77e2dcb6448c4c08790d3ecd841
2010-09-01 12:04:36 -07:00
Jason Sams
070ada8f86 Update to RS api chance moving constant colors to ProgramFragment.
Change-Id: I28d436151f7a764939878676633b9acab85e919a
2010-08-05 09:59:38 -07:00
Patrick Dubroy
ff5f040de1 isOpaque is not appropriate for AllAppsTabbed; replace with isAnimating(). 2010-07-26 15:23:42 -07:00
Shih-wei Liao
afb81d4ac5 Ported Launcher2 to use the new Build system.
Change-Id: Ie24bb6520f9f6dfc24dde2b7810ec322bc7b3a1a
2010-07-19 16:42:48 -07:00
Alex Sakhartchouk
1bdb9d3467 Switching allapps to use Mesh instead of SimpleMesh.
Change-Id: I678525439341d54e6841df3df2d7ab0c67c0b266
2010-07-01 16:12:27 -07:00
Winson Chung
aafa03cbb9 Allow for NxM layout and in-place rotation of items on homescreen.
Currently, rotation is disabled as designs are still in flux, but the NxM grid is enabled (8x4).

Change-Id: I0026f88c674719e3d67de6d6d481d2d4cd606362
2010-06-30 16:24:40 -07:00
Jason Sams
60a55bbf54 Code cleanup possible with new reflected classes.
Change-Id: If9e79383722c0df997526717c52ded4921b6663e
2010-06-18 15:11:19 -07:00
Shih-wei Liao
9180ff6a59 slang with java_package_name pragma now works on allapps.rs. Add Null Pointer Checking. Add gSelectIconTexture.p checking.
Change-Id: I8aa04e15352a71bad0d6f6ca62ebde4085cbce03
2010-06-15 17:30:00 -07:00
Jason Sams
1aa4ff083c Update AppApps to use reflected files.
Previous files were hand written placeholders.
This also fixed the physics bug where movement was right.

Change-Id: I98838084d60f0eaf22f7fbd148a80b2f73f9a14c
2010-06-15 17:13:46 -07:00
Jason Sams
ce6160d7c3 remove extra set of transulcent on pixel format.
Change-Id: I2b6a16d8070a045e56e90fd073f63473b600ea90
2010-06-10 11:42:48 -07:00
Romain Guy
78f51daa71 am 36354e4e: Merge "Improve workspace\'s scrolling performance." into froyo 2010-06-08 13:07:19 -07:00
Romain Guy
8783a05158 Improve workspace's scrolling performance.
This is achieved by moving the 3D All Apps surface out of the screen when
it is not needed anymore. This saves us compositing costs that slow down
the drawing of the workspace.

Change-Id: I06ce1f77449fe1864517f4161913bc162c8e6b46
2010-06-07 17:08:34 -07:00
Jason Sams
98994c4a83 Remove RS_Kind info from element setup
Change-Id: Ia851229b6e107d4c19bd20c6acfef4f8fae280d1
2010-06-01 15:54:10 -07:00
Jason Sams
13a75d5f1e Update names and move clear to script.
Change-Id: I17af3cd027248f52ce6516f81968c6b3d976a09d
2010-05-19 18:58:48 -07:00
Jason Sams
ad1bdf0204 Launcher2 cleanup.
Will remove dead script functions once reflection is working.

Change-Id: Ieffcf55047b5e241a8cffb1852619d04e1a00d53
2010-05-14 17:55:13 -07:00
Jason Sams
14f67edd3f Update Launcher2 to work with LLVM.
Change-Id: I992b812ec58d182e5df7ddad3ab8e7d9e7b88551
2010-05-11 14:02:43 -07:00
Daniel Sandler
cbe7f20ad7 Move batch size to a resource.
This way we can figure out how many apps to send to the grid
at a time even if the grid hasn't been instantiated yet.

Bug: 2599979
Change-Id: I7960fe1adae6976555334422335f3a4b28d0675e
2010-04-19 14:47:18 -04:00
Daniel Sandler
707b0f7c3c Sort apps in AllApps3D.setApps().
The sorting is no longer being done in LauncherModel.
AA3D.addApps correctly performs an insertion sort, but
setApps did not.

Missing from change I77e3865b.

Bug: 2562420
Change-Id: I6854c2c4a221b2c1ad123410292da1fbfece7871
2010-04-15 19:35:16 -04:00
Joe Onorato
effc4a8aef Paper over bug 2592956 - Home not redrawing the shortcuts, widgets, or background.
The mNext* stuff in AllApps3D got reset when onNewIntent came in too fast after an
onCreate, which happened because of the configuration changed.

Change-Id: I9a358b6969ac1d17ea98f58218d47bfe983936f0
2010-04-15 11:51:38 -07:00
Daniel Sandler
dca661236c Batch loading of icons for AllApps.
AllAppsList now maintains <data> and <added> in sorted
order, to amortize the cost of sorting the apps list over
multiple batches.

Launcher boosts thread priority on first launch, but we now
reduce thread priority to normal after the main workspace
has been drawn but before all apps are loaded.

Experimental feature: a short delay is introduced between
batches to help free up the CPU (as well as to show that we
are indeed batching apps).

Bug: 2562420
Change-Id: I2035ec3e819b4e7993a80c6d03bfad3914c95a7a
2010-04-14 14:36:10 -04:00
Joe Onorato
f984e853f2 fix 2542590 add more logging when launching app fails
Change-Id: I5a1fa261c6e67eb7afb661de39e35ce43e2caa59
2010-03-25 09:47:45 -07:00
Joe Onorato
c5210eb384 Fix 2519335 - Caused by NPE. Here's another place where it needs to be ok for sRS to be null.
Change-Id: Iacfc0474c96c657d982a50c8d4851e2fdd79c3ae
2010-03-23 11:26:28 -04:00
Joe Onorato
878f086f75 Fix 2532504 - fix NPE in AllApps3D.onKeyDown.
Change-Id: I8fba9b0b5217d630d84a6a260865d454db2bb046
2010-03-22 12:22:22 -04:00
Joe Onorato
cfc4c7b402 fix 2430251 - all apps touch targets misaligned.
Change-Id: I091b152c328a2664ce68c9790117e6e698bd677a
2010-03-18 15:15:10 -07:00
Joe Onorato
2cc62e82b4 Rename these static variables.
Change-Id: Ic16dcbeb5b0c8afface65a995ea501e155ba69ff
2010-03-17 20:23:53 -07:00
Joe Onorato
96da4012a1 We need to null out this static.
All of the crashes we've been seeing with "Calling RS with no
Context active" were in places that are guarded with if (mRollo != null).

Change-Id: Icb9194cfc4f534bedce5a69a20760a0c3d7fe1d3
2010-03-17 20:03:24 -07:00
Romain Guy
c16fea7161 Improve focus restore on orientation change.
Change-Id: If405c60f4a45aeb4079aa4dcd96b684fd6ea819c
2010-03-12 17:17:56 -08:00
Romain Guy
6a42cf3629 Fix focus and touch issues in 3D all apps.
Bug # 2506026

Change-Id: I95f21cc285c17dfa5f93daafa9d90a64042c7a9d
2010-03-12 16:03:52 -08:00
Jason Sams
dd8cd8b414 Unbind root script around load activities to prevent commands from being delayed due to swap buffers.
Change-Id: I9720fbe936d3cd336ca39235d0a1bba9e10d137a
2010-03-11 12:41:55 -08:00
Romain Guy
13c2e7b788 Prevent ANR in Home when changing orientation.
Bug #2504556

This solves the issue by keeping the GL context, the RS context and
the RS scene around, across orientation changes.

Change-Id: I8e3dc6e6bf039087046d49d2826c8800c5bef582
2010-03-10 19:45:00 -08:00
Joe Onorato
64e6be78dc Refactor the app updates so that it doesn't rely on the package name.
This will be needed for the upcoming change to update the icons with the
grayed out when the SD card goes away.
2010-03-10 13:42:32 -08:00
Jason Sams
d1e2e1d6f4 Move mipmap level generation from allocation creation to upload time. This prevents RS from storing the >0 mipmap levels. 2010-03-05 15:19:00 -08:00
Romain Guy
edcce099c9 Fix the build! 2010-03-04 13:03:17 -08:00
Romain Guy
ce11585bb4 Make the Home on screen button work in landscape. 2010-03-04 12:15:37 -08:00
Romain Guy
060b5c88cc Implement landscape in 3D all apps.
Bug #2454737
Bug #2454736
2010-03-04 10:16:43 -08:00
Daniel Sandler
388f679aa4 Introduce 2D All Apps and other support for sapphire-class devices.
AllAppsView is now the 2D, GridView-based version (very
similar to classic Launcher); AllApps3D is the
RenderScript/Rollo implementation.

TODO:
 - some mdpi assets are not in fact mdpi
 - related to above: static wallpapers not working yet
 - add dynamic selection of 2D/3D AA; currently you must
   choose one at build time by picking the appropriate class
   in all_apps.xml (see separate CL for sapphire overlay
   that does this)

Change-Id: I253d98404ea8a329a4049d2e48edd2e5129fa6ba
2010-03-03 14:38:45 -05:00