683 Commits

Author SHA1 Message Date
Joe Onorato
ee1e253453 fix the build 2009-08-10 17:46:06 -07:00
Android (Google) Code Review
2e9c859f20 Merge change 20607
* changes:
  Limit AudioFlinger mixer track sampling rate.
2009-08-10 16:04:29 -07:00
Android (Google) Code Review
1f9ef9a2cc Merge change 20654
* changes:
  The build system knows how to deal with lex files, but it treats them as c++, so make spec.lex conform to that.
2009-08-10 15:02:36 -07:00
Joe Onorato
daed524c35 The build system knows how to deal with lex files, but it treats them as c++, so make spec.lex
conform to that.
2009-08-10 15:01:51 -07:00
Jason Sams
40a29e8e28 Implement basic allocation readback. Add Get height, width to ScriptC_Lib. 2009-08-10 14:55:26 -07:00
Joe Onorato
01e5fbd721 build libRS 2009-08-10 14:06:01 -07:00
Eric Laurent
6f7e097ee5 Limit AudioFlinger mixer track sampling rate.
When changing the audio output stream sampling rate with setParameters() make sure that all tracks have a sampling rate less or equal to 2 times the new output sampling rate.
2009-08-10 08:15:12 -07:00
Android (Google) Code Review
6307f0285e Merge change 20586
* changes:
  Let java put #defines into renderscript
2009-08-09 23:01:04 -07:00
Joe Onorato
d7b3774da6 Let java put #defines into renderscript 2009-08-09 22:58:20 -07:00
Romain Guy
a9d2d5ed28 Make the laves follow the ripples 2009-08-09 19:12:27 -07:00
Joe Onorato
3370ec9e54 add three rs functions: uptimeMillis, startTimeMillis, elapsedTimeMillis 2009-08-09 17:31:59 -07:00
Jason Sams
1bada8cd6e Begin implementing SimpleMesh and fix some bugs with refcounting and java object destruction tracking. 2009-08-09 17:05:13 -07:00
Romain Guy
8f5c94b453 Better ripples and leaves 2009-08-09 15:20:29 -07:00
Eric Laurent
8af63bc97f Test for issue 2041105: CPU pegged after lost of bluetooth connection[WAR ROOM].
Merge change 7419 from master that may help eliminate the problem.
This change was for a different use case (when disabling A2DP to switch output to SCO) but without a repro case it is worth trying.
2009-08-08 06:41:09 -07:00
Mathias Agopian
1d40f50de5 remove unused and confusing comment 2009-08-07 19:08:18 -07:00
Android (Google) Code Review
db704e28ae Merge changes 20497,20498,20499
* changes:
  minor code clean-up
  added EGLUtils::strerror
  better error handling
2009-08-07 16:39:34 -07:00
Mathias Agopian
9ca4dd6011 minor code clean-up 2009-08-07 16:38:10 -07:00
Mathias Agopian
509dae53c5 added EGLUtils::strerror 2009-08-07 16:37:21 -07:00
Android (Google) Code Review
b99ab30cbc Merge change 20481
* changes:
  Add refraction and bettr normals computation to FallRS
2009-08-07 15:41:25 -07:00
Romain Guy
6c0cc6db99 Add refraction and bettr normals computation to FallRS 2009-08-07 15:40:32 -07:00
Eric Laurent
d5603c126a AudioService now differentiates BT headsets and car kits.
The BT headset detection now makes the difference between car kits and headsets, which can be used by audio policy manager.
The headset connection is also detected earlier, that is when the headset is connected and not when the SCO socket is connected as it was the case before. This allows the audio policy manager to suspend A2DP output while ringing if a SCO headset is connected.
2009-08-07 10:31:53 -07:00
Eric Laurent
49018a55d1 Fix problem in AudioFlinger closeOutput and closeInput.
There was no garanty that the corresponding thread destructor had been already called when exiting the closeOutput() or closeInput() functions.
This contructor could be called by the thread after the exit condition is signalled. By way of consequence, closeOutputStream() could be called after
we exited closeOutput() function.

To solve the problem, the call to closeOutputStream() or closeInputStream() is moved to closeOutput() or closeInput().
2009-08-07 10:19:09 -07:00
Eric Laurent
69682b4c37 Improved unit test code for Audioflinger. 2009-08-07 09:32:06 -07:00
Eric Laurent
8fce46a2b3 Fix lockup in audio flinger threadbase setParameters.
The function checkForNewParameters_l() is called with the ThreadBase mutex mLock locked. In the case where the parameter change implies
an audio parameter modification (e.g. sampling rate) the function sendConfigEvent() is called which tries to lock mLock creating a deadlock.

The fix consists in creating a function equivalent to sendConfigEvent() that must be called with mLock locked and does not lock mLock.

Also added the possibility to have more than one set parameter request pending.
2009-08-07 09:28:40 -07:00
Android (Google) Code Review
0f0021d36b Merge change 9660
* changes:
  Fix problem in A2DP interface closeOutputStream().
2009-08-07 09:09:10 -07:00
Android (Google) Code Review
79cf293f59 Merge change 9653
* changes:
  Fix getParameters() default implementation.
2009-08-07 09:08:36 -07:00
Eric Laurent
ddb78e7753 Fix issue 2001214: AudioFlinger and AudioPolicyService interfaces should not use pointers as handles to inputs and outputs.
Use integers instead of void* as input/output handles at IAudioFlinger and IAudioPolicyService interfaces.
AudioFlinger maintains an always increasing count of opened inputs or outputs as unique ID.
2009-08-07 00:27:19 -07:00
Android (Google) Code Review
4c35e2c59a Merge change 20400
* changes:
  Add lighting to animated water ripples.
2009-08-06 22:53:05 -07:00
Romain Guy
b62627ea33 Add lighting to animated water ripples. 2009-08-06 22:52:13 -07:00
Mathias Agopian
6693f23654 better error handling 2009-08-06 20:46:44 -07:00
Android (Google) Code Review
c1879a0933 Merge change 20365
* changes:
  oops, EGLConfig of value zero may be valid
2009-08-06 17:15:11 -07:00
Mathias Agopian
d7ef08c08d oops, EGLConfig of value zero may be valid 2009-08-06 17:14:10 -07:00
Android (Google) Code Review
43a6d88e4e Merge changes 20345,20346,20347
* changes:
  update most gl tests to use EGLUtils
  added two EGL helpers for selecting a config matching a certain pixelformat or native window type
  added NATIVE_WINDOW_FORMAT attribute to android_native_window_t
2009-08-06 16:27:47 -07:00
Mathias Agopian
265d9c076a added two EGL helpers for selecting a config matching a certain pixelformat or native window type 2009-08-06 16:05:39 -07:00
Mathias Agopian
25ec00fd13 added NATIVE_WINDOW_FORMAT attribute to android_native_window_t 2009-08-06 16:04:29 -07:00
Iliyan Malchev
fc2ebc473b EventHub: pass the name of each input device up to Java
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-08-06 14:52:13 -07:00
Romain Guy
f8e136dcd0 Use arrays in Grass RS 2009-08-06 12:40:41 -07:00
Android (Google) Code Review
71cb821c05 Merge change 20217
* changes:
  Draw untextured water mesh
2009-08-05 19:27:58 -07:00
Romain Guy
31858c2b84 Draw untextured water mesh 2009-08-05 18:39:37 -07:00
Android (Google) Code Review
5903a91545 Merge change 20207
* changes:
  Implement basic snapping.
2009-08-05 17:36:07 -07:00
Jason Sams
8c709dcc41 Implement basic snapping. 2009-08-05 17:35:36 -07:00
Android (Google) Code Review
20fefe90bc Merge change 20124
* changes:
  Remove useless slot from ProgramVertex.  Optimize GL state setup.
2009-08-05 14:00:02 -07:00
Jason Sams
9bee51c42e Remove useless slot from ProgramVertex. Optimize GL state setup. 2009-08-05 13:57:03 -07:00
Android (Google) Code Review
573963e3a8 Merge change 20133
* changes:
  don't crash when SurfaceBuffer::writeToParcel is given a null argument
2009-08-05 12:52:51 -07:00
Android (Google) Code Review
b1d39aae13 Merge change 9649
* changes:
  Finish implementation of multiple pointer support for MotionEvent.
2009-08-05 12:36:11 -07:00
Mathias Agopian
4e0df8ede8 don't crash when SurfaceBuffer::writeToParcel is given a null argument 2009-08-05 12:22:30 -07:00
Dianne Hackborn
0dd7cb4b4e Finish implementation of multiple pointer support for MotionEvent.
The major things going on here:

- The MotionEvent API is now extended to included "pointer ID" information, for
  applications to keep track of individual fingers as they move up and down.
  PointerLocation has been updated to take advantage of this.

- The input system now has logic to generate MotionEvents with the new ID
  information, synthesizing an identifier as new points are down and trying to
  keep pointer ids consistent across events by looking at the distance between
  the last and next set of pointers.

- We now support the new multitouch driver protocol, and will use that instead
  of the old one if it is available.  We do NOT use any finger id information
  coming from the driver, but always synthesize pointer ids in user space.
  (This is simply because we don't yet have a driver reporting this information
  from which to base an implementation on.)

- Increase maximum number of fingers to 10.  This code has only been used
  with a driver that reports up to 2, so no idea how more will actually work.

- Oh and the input system can now detect and report physical DPAD devices.
2009-08-04 20:53:52 -07:00
Romain Guy
ec070224c4 Fix Fall RS to use the new ProgramVertex APIs. 2009-08-04 20:23:00 -07:00
Jason Sams
110195fe9f Seperate ProgramVertex from RenderScript.java and merge ProgramVertexAlloc into the ProgramVertex class. 2009-08-04 19:00:00 -07:00
Romain Guy
a2136d6b18 Add ability to load arrays in RenderScript. 2009-08-04 18:50:24 -07:00