543 Commits

Author SHA1 Message Date
Mike Reed
54900e8c05 update dox that we ignore the exact parameter on computeBounds
Change-Id: I6051210ea2a73b4d1c6cd631a285209ab130b4e5
2010-03-25 14:02:40 -04:00
Mike Reed
39f10ec7da If we detect a 9patch chunk, force the config chooser to avoid 565, with its pre-dithering madness
Change-Id: I0a2d1b094ccb16d479524779acec0216dc7a80ee
2010-03-24 10:12:35 -04:00
Mathias Agopian
af1e11b849 one step toward fixing [2501808] sapphire: OOM in GPU Surface area
when a surface was returned from a remote process through the binder we
would leak its resources until a GC happened.

implement writeToParcel to release the source when PARCELABLE_WRITE_RETURN_VALUE
is set

Change-Id: I6a9fa369b0d164a9ca1229b8a2944d3c132a3720
2010-03-23 15:31:21 -07:00
The Android Open Source Project
02034d3568 merge from open-source master
Change-Id: Ie60db5faf407344b8fbe3d5c1e7c01e927ff251e
2010-03-22 15:55:38 -07:00
Eric Olsen
aa0071d11b Add check for null name on SCO connect
Change-Id: I5f5064fd57a5fffaf02b3e96b7faab219c490e86
Signed-off-by: Eric Olsen <eolsen@android.com>
2010-03-19 13:50:56 -07:00
Eric Olsen
5e12aec163 Add the blacklist for the SCO connections
Change-Id: Ibfdfb21fb2f27d01d2b8bff48041398aa4308353
Signed-off-by: Eric Olsen <eolsen@android.com>
2010-03-18 18:08:02 -07:00
Vasu Nori
cc17ed29e0 ignore not-so-useful warning messages from sqlite logging func
bug:2524260
Change-Id: Ie397c0df9b63414205bbf8ea7ae9d1498f198524
2010-03-18 11:41:25 -07:00
Johannes Carlsson
ed0d1ab286 Everytime Bluetooth was turned off two file descriptors were not closed
Using close instead of shutdown on the file descriptors and only clear the file
descriptor that was closed. If both file descriptors are cleared the thread
will not be able to close it.
2010-03-16 15:12:39 +01:00
Daisuke Miyakawa
b945639d0c Make JNI function for setLocale() call register_localized_collators()
with the current locale, not previous one, every time it is possible.

Add a unit test verifying this fix.

BUG: 2514026
Change-Id: I4dd1b047e1ab4bf399e2c3ebc0304c0cfa3a0928
2010-03-16 09:54:10 +09:00
Dave Sparks
e6335c904a Add locking around AudioRecord release() function in JNI. Bug 2481952.
There is a potential threading issue where an app could call release()
on two threads. This hack adds a static lock object that serializes
access to the Java fields that contain the pointer to the native
AudioRecord object and weak reference to the Java object. Also
modifies finalize() to call release() so that both use the locking
scheme.

Change-Id: I09dcb19b7f501dc582e40e8718142b493eba2518
2010-03-15 07:47:05 -07:00
Vasu Nori
06ea4c7c6b Merge "add more debug info to SQL section in bugreport" 2010-03-11 11:42:45 -08:00
Vasu Nori
c3849200fa add more debug info to SQL section in bugreport
after this CL, adb bugreport will the following info (under SQL section
of each app's meminfo dump)

 SQL
            heap:      344       memoryUsed:      344
pageCacheOverflo:       67  largestMemAlloc:       50

 DATABASES
  Pagesize   Dbsize  Lookaside  Dbname
      1024        7         24  googlesettings.db
      1024       26        110  talk.db
      1024       11          0    (attached) transient_talk_db
      1024       11         32  subscribedfeeds.db
      1024       20         27  gservices.db

Change-Id: Iabd13be9793d9794137c60a045b84fa632f13498
2010-03-11 11:38:31 -08:00
Mike Reed
36ad54acef force purgeability for assets
Change-Id: I1067cfb91846a05290ed26ce9a62eb82d3170719
http://b/issue?id=1860187
2010-03-10 13:11:47 -05:00
Chia-chi Yeh
aa86859b10 YuvImage: jpeg_set_quality() should be called after jpeg_set_defaults().
Change-Id: I6579ad9241dd5ee6aabf54e1a1128d17b4f6b3e6
2010-03-10 17:08:58 +08:00
Jaikumar Ganesh
ae58f6d747 Merge "Add an API to set the link timeout." 2010-03-09 16:56:36 -08:00
Jaikumar Ganesh
b7e029d03c Add an API to set the link timeout.
This fixes the problem where the car dock is
powered on and off pretty quickly.

Change-Id: I8724641b8c337019f089b005cb236fc90549cf6f
2010-03-09 16:51:09 -08:00
Ficus Kirkpatrick
1a9c27c312 Add a LOG_TAG for android.graphics.Graphics JNI.
It occasionally logs when it fails an allocation but wasn't
defining one before.

Change-Id: Ifc41addc870eb126616ad44465638423d51568d9
2010-03-09 10:00:31 -08:00
Vasu Nori
c8195ffcfd Merge "rollback AFTER commit causes warning message from sqlite bug:2486731" 2010-03-08 11:08:10 -08:00
Mike Lockwood
2390380944 Merge "location: dump LocationProvider internal state" 2010-03-08 06:47:49 -08:00
Mike Reed
5bffb45057 Merge "hidden api sameAs() to compare the pixels of 2 bitmaps for equality" 2010-03-08 05:54:42 -08:00
Mike Reed
76d1e01d5e hidden api sameAs() to compare the pixels of 2 bitmaps for equality 2010-03-08 08:53:23 -05:00
Fred Fettinger
3c8fbdf5dd location: dump LocationProvider internal state
For each location provider, call getInternalState() to see if it has any
state information to include in a bugreport. If the returned string is not
null, then print a header with the provided name followed by the returned
string.

Change-Id: I0a388d7fba14ac8cadcb80eda0a0ceb95032410b
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-07 09:29:15 -05:00
Vasu Nori
78f307d229 rollback AFTER commit causes warning message from sqlite bug:2486731 2010-03-05 22:12:51 -08:00
Christopher Tate
7adc274abd Fix up missed refactoring in JNI reg and preloaded-classes
Change-Id: I079bdf4edfb9083eba3e15d8e4dbf3b2bad9190c
2010-03-05 18:26:41 -08:00
Christopher Tate
4528186e0d Refactor android.backup => android.app.backup
Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
2010-03-05 16:27:15 -08:00
Vasu Nori
16d8cf905b Merge "provide databasename to the logging func registration func" 2010-03-05 10:06:48 -08:00
Vasu Nori
bd29b7c2b7 provide databasename to the logging func registration func
this will allow sqlite to return this name, along with the message.
otherwise, sqlite logging messages are confusing without database
name to associate them with.
2010-03-04 16:16:03 -08:00
Dianne Hackborn
20cb56e26e Fix some bugs.
Bug #2376231: Apps lose window focus (and back key causes ANR) if the
lock screen is dismissed while the phone is in landscape mode

This is another case where we weren't recomputing the focused window
after changing the visibility policy.

bug #2479958: Investigate source of "Resources don't contain package
for resource number 0x7f0a0000"

Um, okay, so it turns out there were bugs all over the place where
we would load an XML resource from a another application, but not
use the Resources for that application to retrieve its resources...!
I think the only reason any of this stuff was working at all was
because it typically only cared about retrieving the resource
identifiers of the items (it would look up the values later).

Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService

Add some null checks.
2010-03-04 11:52:14 -08:00
Vasu Nori
91d0e3c950 resubmit reverted CL https://android-git.corp.google.com/g/#change,42682
register a logging func with sqlite, to get extra info on errors
sqlite3 (latest patch) from DRH included this functionality.
use it to get more useful debugging info from sqlite
2010-03-02 14:12:19 -08:00
Andy McFadden
7d7ce2bbdd Merge "Tone down a log message." 2010-03-02 07:36:23 -08:00
Mathias Agopian
5d26c1e38d Added a name to Surface created by SurfaceFlinger
Updated the window manager to use this new facility.
Surfaces name are now printed by "dumpsys".
2010-03-01 18:34:50 -08:00
Vasu Nori
b649ca250a revert due to the sqlite build problem on Mac.. 2010-03-01 15:53:05 -08:00
Vasu Nori
e0dab5bf67 Merge "register a logging func with sqlite, to get extra info on errors" 2010-03-01 14:22:08 -08:00
Andy McFadden
701d916a9c Tone down a log message.
Sometimes shell commands like "am" return before the framework stuff
really finishes initializing (e.g. if you give it no arguments so you
can see the usage info).  The runtime used to print the dire and
uninformative message:

  E/AndroidRuntime(): ERROR: thread attach failed

With this change it's a bit more subdued:

  I/AndroidRuntime(): NOTE: attach of thread 'Binder Thread #2' failed

Ideally it wouldn't get logged at all when it's "expected", but that
requires actual code changes.
2010-03-01 14:08:49 -08:00
Vasu Nori
54dd0f25ac register a logging func with sqlite, to get extra info on errors
sqlite3 (latest patch) from DRH included this functionality.
us it to get more useful debugging info from sqlite
2010-03-01 11:50:32 -08:00
Joe Onorato
00bb93823d Add new Slog class. 2010-03-01 09:07:37 -08:00
Doug Felt
dae8e94cce Add support for accessing native bidi implementation via jni.
Include a simple test to verify that the bidi code works.
2010-02-24 18:20:54 -08:00
Kenny Root
780d2a1b71 Use UTF-8 strings to avoid duplicate caching, part 1
StringBlock instances containing UTF-8 strings use a cache to convert
into UTF-16, but using that cache and then using a JNI call to NewString
causes the UTF-8 string as well as two copies of the UTF-16 string to
be held in memory. Getting the UTF-8 string directly from the StringPool
eliminates one copy of the UTF-16 string being held in memory.

This is part 1. Part 2 will include ResXMLParser optimizations.

Change-Id: Ibd4509a485db746d59cd4b9501f544877139276c
2010-02-23 10:02:20 -08:00
Mathias Agopian
a696f5d667 Add ImageFormat.java and move the Camera/YUV constants from PixelFormat to it.
PixelFormat's corresponding constansts are now deprecated.
2010-02-18 15:32:47 -08:00
Jaikumar Ganesh
76c22f180a Merge "Set error condition correctly when device is already created." 2010-02-18 13:46:33 -08:00
Kenny Root
d7a0cdee1d Merge "Adjust SQLiteDatabase/Program buffer sizes" 2010-02-18 10:21:36 -08:00
Kenny Root
f80efdf7e2 Adjust SQLiteDatabase/Program buffer sizes
Some error messages would have clobbered some memory adjacent to them,
so increase the buffer sizes to fit them.

Change-Id: I9c4a3f3444bf57b5d2bd1b7a2546e16137747ad0
2010-02-18 10:13:11 -08:00
Mike Lockwood
59d25d00a1 Catch Java exceptions in the FileObserver JNI code
Change-Id: I8aed85baadef7a3ea80333b33df0743e0d349915
BUG: 2404428
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-18 07:09:06 -05:00
Jaikumar Ganesh
cf5f652740 Set error condition correctly when device is already created.
When device is already created, and we call CreateDevice, we
need to report the error correctly. Only then the SDP query
will be done from java land.
2010-02-17 17:19:26 -08:00
Kenny Root
574ecc8ed9 Merge "Add better index checks for AndroidCharacter.mirror" 2010-02-17 13:24:37 -08:00
Jaikumar Ganesh
aec0937be6 Merge "AVRCP volume controls for the docks." 2010-02-17 09:16:19 -08:00
Kenny Root
073a3d56ea Add better index checks for AndroidCharacter.mirror
Fix potential invalid array access if start index is before the
beginning of the array or start + count is past the end of the array.
Update Javadoc for mirror to reflect the usage of "start" and "count".

Change-Id: I7e596de8eae5c518a2b4ff0d28604bd9c59f9d9d
2010-02-17 08:46:04 -08:00
Mathias Agopian
8f2423e8f3 get rid off the YUV formats at the libui layer 2010-02-16 17:33:37 -08:00
Kenny Root
bb9a51768d Add API to access ICU's East Asian Width
Currently there is no way for an application built against the API to
access East Asian Width data from ICU. This adds an API for applications
to use to access it for correct drawing of international characters.

Change-Id: Iab50698ee555ae2ca8ab4b242cc14aa6e0dc3b48
2010-02-16 15:05:02 -08:00
Jaikumar Ganesh
4f773a1304 AVRCP volume controls for the docks.
Send volume updates to the dock when the user presses volume buttons
on the device.

Bug: 2311007
2010-02-16 13:21:05 -08:00