529 Commits

Author SHA1 Message Date
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
Kenny Root
412dc7de6e Fix off-by-one in parse3339 timezone check
parse3339 could read past the end of a string if the timezone was
truncated by one character causing intermittent failures in unit
tests.

Change-Id: I7e1724c6a7b464fdcb5e2b37469eb128303a51f1
2010-02-16 12:16:48 -08:00
Kenny Root
a9886c580b Totally remove Unicode.cpp and rely on ICU
Unicode.cpp used a packed data table for character data that essentially
duplicated ICU's functionality.

Change-Id: Ia68fe4ac94e89dc68d9a3f45f33f6e648a5500b7
2010-02-12 14:37:42 -08:00
Mathias Agopian
000479f9e3 split libsurfaceflinger_client and libcamera_client out of libui 2010-02-11 13:16:22 -08:00
Tobias Haamel
27b28b3f62 Introduce special UI modes for night and car usage.
The device mode is now called ui mode. Furthermore is the order of
precedence for the resources now in such a way that the ui mode needs
to be specified after the orientation and before the density.

The ui mode can be set, like it is done for the locale, as follows:

IActivityManager am = ActivityManagerNative.getDefault();
Configuration config = am.getConfiguration();
config.uiMode = Configuration.UI_MODE_TYPE_CAR | Configuration.UI_MODE_NIGHT_ANY;
am.updateConfiguration(config);

To allow users to disable the car mode and set the night mode the IUiModeManager
interface is used.

The automatic night mode switching will be added in a separate change.
2010-02-11 21:25:58 +01:00
Doug Zongker
870d81d038 remove android.os.Base64Utils
There are no more users of this code.

Change-Id: Ie0109ece2ea329aeb9607e9193eaf0808955eab9
2010-02-08 12:27:07 -08:00
Vasu Nori
3ef94e25b4 use sqlite 3.6.22 to print and profile the sql statetements
instead of rolling our own trace/profile code in java, lets use
sqlite 3.6.22 features. turns out sqlite does a good job of
printing the sql statements - including the ones from the triggers.
2010-02-08 10:56:48 -08:00
Barry Hayes
6511fe9c9d Merge "Add a "dalvik.vm.gc.overwritefree" property. When set to "true", the VM will be given the "-Xgc:overwritefree" flag, and the GC will clobber the memory of freed objects." 2010-02-03 10:58:18 -08:00
Barry Hayes
c2b3217823 Add a "dalvik.vm.gc.overwritefree" property. When set to "true", the
VM will be given the "-Xgc:overwritefree" flag, and the GC will
clobber the memory of freed objects.
2010-02-03 08:46:54 -08:00
Mathias Agopian
2c94dac323 Merge "Don't use the MemoryDealer in CursorWindow, it's not necessary." 2010-02-01 12:07:56 -08:00
Wu-cheng Li
f5dbf6a62a Remove excessive logging.
bug:2346606
2010-01-30 22:34:48 +08:00