265 Commits

Author SHA1 Message Date
Jason Sams
94d8e90ad7 Split renderscript java code from test apps. Update makefiles. 2009-06-10 16:09:05 -07:00
Android (Google) Code Review
297ba9f5c4 Merge change 3776
* changes:
  Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts.
2009-06-10 15:05:22 -07:00
Jason Sams
3eaa338e11 Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts. 2009-06-10 15:04:38 -07:00
Jaikumar Ganesh
d5ac1ae36b Framework changes for bluez4.
Changes in the Bluetooth JNI calls and framework functions
for Bluez4.
2009-06-09 17:21:08 -07:00
Android (Google) Code Review
280412fa2c Merge change 3601
* changes:
  checkpoint pragma support.  Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC.
2009-06-09 12:17:10 -07:00
Jason Sams
da423d8479 checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC. 2009-06-09 12:15:30 -07:00
Android (Google) Code Review
5999cd7313 Merge change 3535
* changes:
  Move placement of script enviroment data to base.
2009-06-08 18:58:27 -07:00
Jason Sams
928f5cf287 Move placement of script enviroment data to base. 2009-06-08 18:50:13 -07:00
Android (Google) Code Review
f87e896955 Merge change 3485
* changes:
  Fix build issue and ref count bug with scripts.
2009-06-08 15:22:58 -07:00
Jason Sams
3a833d8e0f Fix build issue and ref count bug with scripts. 2009-06-08 15:20:31 -07:00
Android (Google) Code Review
7087c0eac2 Merge change 3386
* changes:
  Move call to compiler from jni to core library code.
2009-06-05 17:37:51 -07:00
Jason Sams
39ddc950c9 Move call to compiler from jni to core library code. 2009-06-05 17:35:09 -07:00
Mathias Agopian
51c8a3e00e Merge commit 'goog/master' into merge_master 2009-06-05 15:45:39 -07:00
Mathias Agopian
e583a4ea8c get rid of LogSocket which wasn't even implemented (enabled) 2009-06-05 15:11:23 -07:00
Mathias Agopian
55e3d60da5 break dependency on utils/ZipEntry.h and utils/ZipFile.h, get rid of inet_address.h and Socket.h which were not used 2009-06-05 14:56:35 -07:00
Android (Google) Code Review
79525264e5 Merge change 3284
* changes:
  rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file.
2009-06-05 01:29:08 -07:00
Mathias Agopian
8ed6beb515 rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file.
StringArray is used in two places in framework/base and in the Sim. Ideally we should get rid of it and use Vector<String8> instead of creating new code.
2009-06-05 01:26:23 -07:00
Christopher Tate
3f0c72ab4b am 0032ce80: Fix back_up_files() error detection when opening/CRCing the file
Merge commit '0032ce80ac127e6bfb25d727162eee4af208dc77'

* commit '0032ce80ac127e6bfb25d727162eee4af208dc77':
  Fix back_up_files() error detection when opening/CRCing the file
2009-06-05 00:29:50 -07:00
Android (Google) Code Review
1b6aee1515 am 2a318867: Merge change 3203 into donut
Merge commit '2a3188672ab2b65c0ce7c9c598a463e382c47696'

* commit '2a3188672ab2b65c0ce7c9c598a463e382c47696':
  rename a few files to camel-case, add copyright notices
2009-06-04 22:44:18 -07:00
Jack Palevich
2a741ad51f Use ANSI style function declaration for RS scripts. 2009-06-04 20:16:39 -07:00
Mathias Agopian
2d5ee25556 fix a bunch of problems with destroying surfaces.
now, all destruction path, go through the purgatory which is emptied when ~ISurface is called, but we also make sure to remove the surface from the current list from there (in case a client forgot to request the destruction explicitely).
2009-06-04 18:46:21 -07:00
Jason Sams
a09f11d6c6 Add support for scripts to return an animation flag. This allows them to indicate they are generating changing content and the rs thread to sleep if the content is static. 2009-06-04 17:58:03 -07:00
Christopher Tate
0032ce80ac Fix back_up_files() error detection when opening/CRCing the file 2009-06-04 17:02:56 -07:00
Jason Sams
8ad0010d6e Set the RS thread priority. 2009-06-04 14:35:01 -07:00
Mathias Agopian
8ae2335a3c rename a few files to camel-case, add copyright notices 2009-06-04 13:53:57 -07:00
Jason Sams
33c824d17b Remove pointer hacks from script and use standard load/store functions. 2009-06-03 18:29:04 -07:00
Jason Sams
e2ae85fc5a Generalize bitmap support and add remaining GL formats.
Fix bug in command fifo looping case.
2009-06-03 16:04:54 -07:00
Mathias Agopian
1277bb0116 when looking for an EGLConfig always pick the first one that matches, not the last one 2009-06-03 14:49:08 -07:00
Jason Sams
ffe9f48890 Improve bitmap support and do conversion in native rather than java code to reduce conversion time. 2009-06-01 17:45:53 -07:00
Mathias Agopian
5fbcaf9a90 Merge commit 'goog/master' into merge_master 2009-06-01 14:30:08 -07:00
Mathias Agopian
696959c7b6 get rid of TimerProbe which is never used 2009-06-01 13:55:28 -07:00
Mathias Agopian
14f955b5d7 get rid of sleepForInterval() which didn't seem to be used anywhere in the source tree. Also get rid of ported.h which seem to be used only (possibly) in the sim. moved the implementation there. 2009-05-31 23:45:01 -07:00
Mathias Agopian
3b4062eeb0 get rid of utils.h 2009-05-31 19:13:00 -07:00
Mathias Agopian
4398876d6e merge master to master_gl 2009-05-31 01:16:45 -07:00
Android (Google) Code Review
9176469702 am b61ae351: Merge change 2747 into donut
Merge commit 'b61ae351256518add7bcb40e0bf18337dd87195c'

* commit 'b61ae351256518add7bcb40e0bf18337dd87195c':
  log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
2009-05-29 14:57:33 -07:00
Android (Google) Code Review
b61ae35125 Merge change 2747 into donut
* changes:
  log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
2009-05-29 14:55:48 -07:00
Mathias Agopian
6d892b60dd log the geomerty of surfaces causing an out of memory in SurfaceFlinger. 2009-05-29 14:55:06 -07:00
Jack Palevich
e1ab434926 Don't prelink the libRS libraries.
These are temporary libraries for the development of RenderScript, so they
don't have to be prelinked.
2009-05-29 14:38:01 -07:00
Android (Google) Code Review
16641bcdae am d9cc7659: Merge change 2706 into donut
Merge commit 'd9cc7659fa9b8544e2a3ca7b7040fbd79afdf7ea'

* commit 'd9cc7659fa9b8544e2a3ca7b7040fbd79afdf7ea':
  Fix issue 1883666: Audio coming from the music player stopped suddenly
2009-05-29 09:42:26 -07:00
Eric Laurent
551603f0ec Fix issue 1883666: Audio coming from the music player stopped suddenly
The problem comes from the code handling the automatic change of audio routing to speaker when notifications are played. The music is also muted while the sound is forced to speaker.
To avoid truncating the end of the notification, a delay is inserted between the end of the notification and the restoration of the audio routing.  If a new notification starts during this delay, the current music mute state read and saved before muting music corresponds to the forced mute due to previous notification. When the new notification ends, the mute state restored is muted and music stream stays muted for ever.

The fix consists in reading and saving music mute state only if the audio routing has been restored (check that mForcedRoute is back to 0).
2009-05-29 02:03:21 -07:00
Jason Sams
243e3fbcf7 Implement sampler GL setup code. 2009-05-28 16:16:46 -07:00
Jason Sams
02fb2cb531 Add sampler support 2009-05-28 16:16:46 -07:00
Android (Google) Code Review
206b831907 Merge change 2658
* changes:
  Delete the acc script when deleting the Renderscript rsScriptC object.
2009-05-28 15:55:52 -07:00
Android (Google) Code Review
fb1bf92c2e Merge change 2657
* changes:
  Remove versions of scriptCSetScript method that take byte arrays.
2009-05-28 15:55:24 -07:00
Jack Palevich
ec5a20bf2b Delete the acc script when deleting the Renderscript rsScriptC object.
Previously we had been leaking the ACCscript object.
2009-05-28 15:53:04 -07:00
Jack Palevich
63975dde40 Remove versions of scriptCSetScript method that take byte arrays.
This makes the API simpler, and therefore probably easier to use.
2009-05-28 15:34:15 -07:00
Android (Google) Code Review
aebadd2cf4 Merge change 2636
* changes:
  Add support for setting scripts, rather than having a hard-coded script.
2009-05-28 13:44:49 -07:00
Jack Palevich
43702d8925 Add support for setting scripts, rather than having a hard-coded script.
Move the test script into a resource file.
Add APIs for reading a script from a resource, InputStream, string, or
byte array.
2009-05-28 13:38:16 -07:00
Mathias Agopian
1837beb08d fix typo defining a singleton attrbutes for an object that is not a singleton -- no side effects, but useless 2009-05-28 12:31:00 -07:00
Android (Google) Code Review
a8f61f41f4 Merge change 2574
* changes:
  Sim-only files move, part 2/2.
2009-05-28 11:13:18 -07:00