Fixed some typos in fg_font_data.c that caused build errs.

Incorrect character arrays were being passed into the font
maps.  It looks like a copy/paste error.

Change-Id: Ifbe4fdaec5b95c0a9ec205bc4eb2df3c0b0e2e90
Deleted unused vars that were causing build breakage.

xMask and yMask.

Change-Id: I31e20aa4378ee701ba5425506155fcba1e0547ce
Added functionality to set shapes in ParticleGroup.

A ByteBuffer will be passed in from the Java side, which will be converted
into a C++ list of CircleShapes for ParticleGroup creation purposes.

Change-Id: I931cdf50256463de383c9ee0175d86a721e371f4
Tested: Nexus 7 gen 1.
Fix crash in FunctionTest

The color-buffer is unallocated by default. So, when we try to assign
a user buffer, we were trying to Free a NULL pointer.

The fix is to check if the buffer pointer is NULL before trying to
free it.

Bug: 13790499
Change-Id: Ic70af1b9e3a8d7ae4919ae0cb195977e67d1dbca
Tested: Unittests on Android
Preventing particles from sticking to circle bodies with high angular velocity.

SolveCollision used to detect false collisions with spinning circle bodies
because of linear approximation.
Now the function ignores rotation of circle shapes for collision detection.

Change-Id: Ie42b56483b84f70afa9ae95afef162df6c1e29c9
Tested: by giving high angular velocity to circle bodies in Testbed on OSX
Bug: 13508820
Document 'particleIterations' in Programmer's Guide

Bug: 13901004
Tested: Rebuilt documentation and viewed locally
Change-Id: I4927a4d3e0210bfaa302ee83834fd64513033f17
Improve collisions with rigid particle groups.

Added b2ParticleGroup::GetLinearVelocityFromWorldPoint.
Added an extra damping force to rigid particle groups.

Tested: Testbed on OSX and Android
Bug: 13681857
Change-Id: I69977f79b6508f9343a877caf7b30c7bfe7e51b0
Adapt ConservationTests to all particle types.

Unit tests in ConservationTests are now repeated for each particle types.
Some combinations of tests and types where conservation is not expected
(e.g. angular momentum for viscous particles) are skipped.
Error threshold is extended so that rounding error will be ignored.

Tested: Passed all unit tests in ConservationTests on OSX.
Bug: 13683802
Change-Id: I88daa8aee145dfcddc49ee66c82651745d415f7a
Expose particle pairs / triads.

Replaced b2ParticleSystem::Pair with b2ParticlePair.
Replaced b2ParticleSystem::Triad with b2ParticleTriad.
Added GetPairs(),GetPairCount(),GetTriads(),GetTriadCount() to b2ParticleSystem.

Now Testbed shows the number of pairs and triads in Statistics.
Added unit tests for these new functions into FunctionTests.

Bug: 13683854
Change-Id: I72bd11048dca078584cc36801038947338d67746
Tested: Testbed on OSX
Expose particle weight buffer, and added SWIG bindings for it.

Change-Id: I4e8ff41b5c0ec817cb547939f32fdb9b373d51ca
Tested: Nexus 7, gen 1. Unittests.
Merge "Improve collisions with rigid particle groups." into ub-games-master
Merge "Adapt ConservationTests to all particle types." into ub-games-master
Merge "Preventing particles from sticking to circle bodies with high angular velocity." into ub-games-master
Fixed ComputeDepth().

ComputeDepth() now recalculates sum of weight of contacts except between
different particle groups. That prevents particles bouncing when a particle
group is modified.

Bug: 14065282
Tested: by Testbed on OSX and Android
Change-Id: I9e512038e4005e23d8c2ab36e7bcf7757a2447ec
Merge "Expose particle weight buffer, and added SWIG bindings for it." into ub-games-master
Zipping unittest apks

This change is made to zip the unittests and have them displayed
in the home directory in our build system.
Tested in Linux with creating an archive with -z option.

Removing trailing spaces.
Adding option to specify the tests archive.
Tested on OSX and Linux with -z and -t options.

Change-Id: I8a75d7633e8da9f176195ae4c3bdb958033452ca
Merge "Zipping unittest apks" into ub-games-master
Merge "Fixed ComputeDepth()." into ub-games-master
Merge "Expose particle pairs / triads." into ub-games-master
Expose b2ParticleSystem::SetMaxParticleCount through SWIG.

b2ParticleSystem has a few buffer return functions so we are not exposing the
whole header file for simplicity right now.

Change-Id: I6645a2f8e6fd50a3753343183e5f0c7d8d97e93f
Tested: Nexus 7 gen 1.