Commit Graph

255075 Commits

Author SHA1 Message Date
Bjorn Bringert
0c66b4bcfb am 9fc2e9c9: MemoryFile constructor and native methods throw IOExceptions.
Merge commit '9fc2e9c965c68d56a0caf812f7f6d38d15317063'

* commit '9fc2e9c965c68d56a0caf812f7f6d38d15317063':
  MemoryFile constructor and native methods throw IOExceptions.
2009-05-29 01:12:09 -07:00
Bjorn Bringert
9fc2e9c965 MemoryFile constructor and native methods throw IOExceptions.
These native methods in android.os.MemoryFile throw IOException but their
Java declarations did not include "throws IOException":
native_open(),native_mmap(),native_read(),native_write(),native_pin()

The MemoryFile(String,int) constructor calls native_open and
native_mmap, but does not declare that it throws IOException. The other
Java methods that call the native methods do actually declare that they
throw IOException.

This means that any code that created memory files could throw
an IOException, without knowing about it.

This changes adds "throws IOException" to the native methods and to
the constructor. The constructor change changes the public API, but
maintains binary compatibility. There is some precedent for making
source incompatible source API changes for this sort of thing
(see https://mondrian.corp.google.com/changelist/124214-p9).

The change also makes the native methods static, which
they seem to have been intended to be, as indicated by the
second parameter to the native implementations being named
"clazz".

This requires changes to the Compatibility Test Suite to catch the exceptions.
This is done in https://android-git.corp.google.com/g/2617
Unfortunately that change must be submitted together with this one in order
not to break the build.

Fixes http://b/issue?id=1881829
2009-05-29 09:06:44 +01:00
Android (Google) Code Review
a38201d8f5 am 607384d4: Merge change 2678 into donut
Merge commit '607384d45fae5c9c2b21c96e4278665c8d7d3006'

* commit '607384d45fae5c9c2b21c96e4278665c8d7d3006':
  Converted the angle of OrientedBoundingBox to degrees
2009-05-28 21:15:06 -07:00
Romain Guy
df59388e4f am f40f074c: Revert "Revert "Bug fixes and performance improvements""
Merge commit 'f40f074c43fcef627131d4b631251192761b4daa'

* commit 'f40f074c43fcef627131d4b631251192761b4daa':
  Revert "Revert "Bug fixes and performance improvements""
2009-05-28 21:15:04 -07:00
Android (Google) Code Review
607384d45f Merge change 2678 into donut
* changes:
  Converted the angle of OrientedBoundingBox to degrees
2009-05-28 21:13:26 -07:00
Romain Guy
f40f074c43 Revert "Revert "Bug fixes and performance improvements""
This reverts commit 436466d75e.
2009-05-28 21:12:01 -07:00
Mathias Agopian
9d17c057bd implement a real loader for EGL drivers
we now look for a config file in /system/lib/egl/egl.cfg that describes the association of a display to a driver.
these drivers are named: /system/lib/egl/lib{[EGL|GLESv1_CM|GLESv2] | GLES}_$TAG.so
2009-05-28 20:31:40 -07:00
Android (Google) Code Review
a70396cd0a am f6355e24: Merge change 2399 into donut
Merge commit 'f6355e24f5382356ea197135fdeff827aabfdb90'

* commit 'f6355e24f5382356ea197135fdeff827aabfdb90':
  Motorola additions for CDMA support without CdmaSuppConnTracker
2009-05-28 20:30:45 -07:00
Android (Google) Code Review
f6355e24f5 Merge change 2399 into donut
* changes:
  Motorola additions for CDMA support without CdmaSuppConnTracker
2009-05-28 20:29:10 -07:00
Android (Google) Code Review
b86204a73d am 2af7e639: Merge change 2654 into donut
Merge commit '2af7e639906981b1562f3187a60b6c848b7da17c'

* commit '2af7e639906981b1562f3187a60b6c848b7da17c':
  Added the two validations for the memory stress test
2009-05-28 19:08:44 -07:00
Android (Google) Code Review
2af7e63990 Merge change 2654 into donut
* changes:
  Added the two validations for the memory stress test 1) Set the maximum memory leakage to 150K in 200 loops of playback. 2) Check the pid of the meidaserver.
2009-05-28 19:06:47 -07:00
Yu Shan Emily Lau
01c0596b75 Added the two validations for the memory stress test
1) Set the maximum memory leakage to 150K in 200 loops of playback.
2) Check the pid of the meidaserver.
2009-05-28 18:59:33 -07:00
Brett Chabot
51e03642ce Change code coverage to write to app data folder rather than sdcard.
The InstrumentationTestRunner would previously write code coverage data to the sdcard. With the recent SDCARD_WRITE permission addition, generating code coverage would fail if test app did not declare the SDCARD_WRITE permission. This CL changes InstrumentationTestRunner so by default, the coverage data is saved to the app's private data folder. At the test run conclusion it outputs the path to this file so runtest or another test harness find the path to the coverage file.
2009-05-28 18:26:26 -07:00
Dmitri Plotnikov
5f123bdcde Making sure non-public API is marked with @hide. 2009-05-28 18:06:31 -07:00
Yang Li
f3ede869b8 Converted the angle of OrientedBoundingBox to degrees 2009-05-28 18:00:50 -07:00
Wink Saville
dda5391d50 Motorola additions for CDMA support without CdmaSuppConnTracker
There are corresponding changes to hardware/ril and packages/apps/Phone
that are required to go with these changes.
2009-05-28 17:32:34 -07:00
Dmitri Plotnikov
569277732b Fixing javadoc references. 2009-05-28 17:23:39 -07:00
Android (Google) Code Review
39ff64515d Merge change 2669
* changes:
  Implement sampler GL setup code.
2009-05-28 16:43:48 -07:00
Android (Google) Code Review
b2b96c255b Merge change 2668
* changes:
  Add sampler support
2009-05-28 16:43:29 -07:00
Android (Google) Code Review
3d7fcb6918 Merge change 2652
* changes:
  Move ContactsContract.java and SocialContract.java into android.providers
2009-05-28 16:39:00 -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
Evan Millar
088b291842 Move ContactsContract.java and SocialContract.java into android.providers
The ContactsContract and SocialContract lived previously in the
com.android.providers.contacts2 package, and could not be accessed by
other packages from there without symlinks, which was getting messy. If
it turns out there was a good reason for having the contracts in that
package we may have to move these back, but for now this seems like the
obvious configuration.
2009-05-28 15:24:37 -07:00
Android (Google) Code Review
96cdc61c69 am 1e2e44e9: Merge change 2365 into donut
Merge commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc'

* commit '1e2e44e900cb9a25d548e27a20d65292a7f321bc':
  Fix wifi multicast API for public use.
  Revert "Bug fixes and performance improvements"
2009-05-28 14:34:28 -07:00
Android (Google) Code Review
1e2e44e900 Merge change 2365 into donut
* changes:
  Fix wifi multicast API for public use.
2009-05-28 14:02:39 -07:00
Android (Google) Code Review
59262c3f41 Merge change 2637 into donut
* changes:
  Revert "Bug fixes and performance improvements"
2009-05-28 13:45:20 -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
Robert Greenwalt
fc1b15cfbf Fix wifi multicast API for public use.
Applying API review comments and taking it public.
2009-05-28 13:37:06 -07:00
Romain Guy
436466d75e Revert "Bug fixes and performance improvements"
This reverts commit 58b359041a.
2009-05-28 13:34:16 -07:00
Dirk Dougherty
a7dd1b8ba7 am 1cb62b83: am 2542c0a8: AI 149346: Replace icon_templates-v1.0.zip with new archive from cnesladek. remove mac-specific files, fix dir name, repack. BUG=1877969
Merge commit '1cb62b83241c5d1cac9e9cda60d0d5d9218b44fb'

* commit '1cb62b83241c5d1cac9e9cda60d0d5d9218b44fb':
  AI 149346: Replace icon_templates-v1.0.zip with new archive from cnesladek. remove mac-specific files, fix dir name, repack.
2009-05-28 12:36:39 -07:00
Romain Guy
5ba885ddcb am b0ded43d: Uninstalls the gestures overlay when the letters recognizer cannot be loaded instead of simply dismissing the popup. This is cleaner and reuses the setGestures() method.
Merge commit 'b0ded43d3844d9d97c5d554e8ca4ec3ee2c7bbe1'

* commit 'b0ded43d3844d9d97c5d554e8ca4ec3ee2c7bbe1':
  Uninstalls the gestures overlay when the letters recognizer cannot be loaded instead of simply dismissing the popup. This is cleaner and reuses the setGestures() method.
2009-05-28 12:31:48 -07:00
Android (Google) Code Review
79fb0d6999 am 401bbb05: Merge change 2593 into donut
Merge commit '401bbb0597a9f6bc9d752437e81f3f0c9b457b86'

* commit '401bbb0597a9f6bc9d752437e81f3f0c9b457b86':
  Bug fixes and performance improvements
2009-05-28 12:31:44 -07:00
Mathias Agopian
e9d7445ace force explicit instantiation of Singleton<> objects 2009-05-28 12:31:31 -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
Dirk Dougherty
1cb62b8324 am 2542c0a8: AI 149346: Replace icon_templates-v1.0.zip with new archive from cnesladek. remove mac-specific files, fix dir name, repack. BUG=1877969
Merge commit '2542c0a805b144b4c4324a749574d9ba76660557' into donut

* commit '2542c0a805b144b4c4324a749574d9ba76660557':
  AI 149346: Replace icon_templates-v1.0.zip with new archive from cnesladek. remove mac-specific files, fix dir name, repack.
2009-05-28 12:30:33 -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
Jean-Michel Trivi
14f861a24a Adding TTS error code to signal missing resources (for instance missing language files). 2009-05-28 11:11:25 -07:00
Dirk Dougherty
2542c0a805 AI 149346: Replace icon_templates-v1.0.zip with new archive from cnesladek. remove mac-specific files, fix dir name, repack.
BUG=1877969

Automated import of CL 149346
2009-05-28 09:44:39 -07:00
Android (Google) Code Review
c26ba79280 Merge change 2525
* changes:
  add onPause and onResume apis, to inform the view when it can pause its activities associated with the DOM.
2009-05-28 05:00:01 -07:00
Romain Guy
b0ded43d38 Uninstalls the gestures overlay when the letters recognizer cannot be loaded instead of simply dismissing the popup. This is cleaner and reuses the setGestures() method. 2009-05-27 21:37:14 -07:00
Android (Google) Code Review
401bbb0597 Merge change 2593 into donut
* changes:
  Bug fixes and performance improvements
2009-05-27 21:26:31 -07:00
Mathias Agopian
2820bd4eda Added most of the support needed for GLES 2.x 2009-05-27 20:38:06 -07:00
Mathias Agopian
f5fbc7983a minor modifications to the official GLES 2.x headers
- changed glTexImage2D() declaration so it matches that of GLES 1.x; otherwise we can't include both headers (!!!)
- added parameter names to the declaration of some extensions (this is needed by glapigen and glentrygen)
2009-05-27 20:32:20 -07:00
Mathias Agopian
d53c8ee26b add GLES 2.x headers 2009-05-27 20:31:18 -07:00
Yang Li
58b359041a Bug fixes and performance improvements
- Added affine transform functions in GestureUtilities to remove Matrix
- Fixed a bug with Instance.createInstance
- Updated letter recognition file
2009-05-27 18:19:04 -07:00