314 Commits

Author SHA1 Message Date
Dianne Hackborn
3025ef332c Various infrastructure to support a running services UI.
Some of this is temporary (in particular the two approaches for getting
process memory, one working but horrible, the other not working but
preferred) until I figure out the best way to do it.

Change-Id: I8c8f25062d481fcea22a47d459b083d2fd8a5040
2009-09-01 11:16:25 -07:00
Android (Google) Code Review
ad82219718 Merge change 23380 into eclair
* changes:
  Change util_texSubImage2D to call glCompressedTexImage2D correctly.
2009-08-31 17:45:03 -07:00
Jack Palevich
106006cbde Change util_texSubImage2D to call glCompressedTexImage2D correctly.
Previously we had been setting the imageSize parameter to 0, which was
incorrect. According to the OpenGL ES spec for glCompressedTexImage2D
this parameter should be the size in bytes of the compressed data.
2009-08-31 17:42:50 -07:00
Android (Google) Code Review
450ff8a48c Merge change 23357 into eclair
* changes:
  Fix double-free problem in EmojiFactory.
2009-08-31 16:33:10 -07:00
Daisuke Miyakawa
c81c43991c Fix double-free problem in EmojiFactory. 2009-09-01 08:32:24 +09:00
Nick Pelly
41a0a4a850 Set RFCOMM SO_SNDBUF size to 70 KB for large RFCOMM writes.
With a 64 KB OBEX MTU, net/rfcomm/sock.c:rfcomm_sock_sendmsg() quietly drops data.

The default SO_SNDBUF is 24 KB. Empircally, 36 KB still drops, and 38 KB no longer drops (this is because SO_SNDBUF is doubled in net/core/sock.c and then there is OBEX/RFCOMM overhead). Set to 70 KB so we have plenty of room to spare.

See http://b/2090000 to investigate this in more detail later.
2009-08-31 13:33:06 -07:00
Danke Xie
22d1f9fb23 gps: Network initiated SUPL
Initial contribution from Qualcomm.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-27 14:18:30 -07:00
Android (Google) Code Review
617b22dc07 Merge change 22520 into eclair
* changes:
  Add local frames for parsing properties and processing events.
2009-08-25 12:07:53 -07:00
Jaikumar Ganesh
6d56b530e1 Add local frames for parsing properties and processing events.
We were running out of local refs when there are lots of devices.
Instead of deleting every single local ref, create a local stack frame.
This operation is inexpensive so doesn't add a high overload and keeps
the code clean instead of deleting every single local ref.
2009-08-25 12:02:34 -07:00
Mike Reed
dbade9d6a0 expose runtime changes to gamma 2009-08-25 13:47:47 -04:00
Dianne Hackborn
bdcef70e15 Fix issue #2010965: Increase process size on WVGA devices
This introduces a new system property to set the max vm size.  The default
is still 16mb.
2009-08-19 10:49:18 -07:00
Nick Pelly
bd022f423a Bluetooth: API change.
Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
                  adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
                 (pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
2009-08-18 08:24:22 -07:00
Android (Google) Code Review
eeb175fb12 Merge change 20982
* changes:
  SystemProperties: eliminate unnecessary string allocation.
2009-08-12 14:32:34 -07:00
Mike Lockwood
d194595045 SystemProperties: eliminate unnecessary string allocation.
getInt(), getLong() and getBoolean() no longer allocate a temporary String object.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-12 17:20:41 -04:00
Dianne Hackborn
90f77218a2 am b8546001: Merge change 20878 into donut
Merge commit 'b8546001701405a76dad7e6235046e592296fac2'

* commit 'b8546001701405a76dad7e6235046e592296fac2':
  Fix issue #2048263: More debugging information
2009-08-12 12:36:12 -07:00
Dianne Hackborn
82e1ee93ee Fix issue #2048263: More debugging information
We now hopefully do better about generating the anr reports, and include
information about the malloc loaded assets in meminfo.
2009-08-11 18:56:41 -07:00
Grace Kloba
628e086664 DO NOT MERGE. This is merged from master.
Fix couple of bugs in the meminfo report.
 . added the new "/data/dalvik-cache/" to dalvik heap
 . shortened the starting line's length from 40 to 30 to handle the case where there is no name
 . fixed the pri/shared for others. It was swapped.
2009-08-11 12:43:08 -07:00
Mathias Agopian
f1e5b0d4e5 add support for RGBX_8888 2009-08-07 20:55:14 -07:00
Android (Google) Code Review
813eee115f Merge change 20424
* changes:
  Fix the scanning panic issue
2009-08-07 10:20:04 -07:00
Charles Lu
c98719313b Fix the scanning panic issue
Phone panics while streaming over A2DP and scanning for new device
BluetoothEventLoop should delete reference
2009-08-07 10:17:23 -07:00
San Mehat
d87c19f7d7 am 7e63789a: android: cgroups: Don\'t switch threads >= nice 10 when moving all threads to default
Merge commit '7e63789a0e0689d940609b1daceebc1bc08dcbef'

* commit '7e63789a0e0689d940609b1daceebc1bc08dcbef':
  android: cgroups: Don't switch threads >= nice 10 when moving all threads to default
2009-08-06 13:29:41 -07:00
San Mehat
7e63789a0e android: cgroups: Don't switch threads >= nice 10 when moving all threads to default
Signed-off-by: San Mehat <san@google.com>
2009-08-06 13:19:19 -07:00
Mike Lockwood
b16e7800be gps: Add GpsStatus.NmeaListener interface for receiving NMEA sentences.
NMEA sentences are passed from the GPS engine to the GpsLocationProvider.
They are then sent via the IGpsStatusListener binder interface to clients
using the same path as the other GPS status information.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-06 15:05:07 -04:00
Mike Lockwood
b20148b806 wifi: Strip trailing spaces before parsing RSSI results.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-04 11:32:52 -04:00
Mike Reed
a31ce104f5 am 6af2552d: use safeUnref() since the other macro is not defined in donut
Merge commit '6af2552d244ff933dfd54570121db455cc7c3cda'

* commit '6af2552d244ff933dfd54570121db455cc7c3cda':
  use safeUnref() since the other macro is not defined in donut
2009-07-30 16:06:31 -07:00
Android (Google) Code Review
93efb724ac am 7299d6ad: Merge change 9159 into donut
Merge commit '7299d6ad9820bbb601034542c94d6dc73cc4829d'

* commit '7299d6ad9820bbb601034542c94d6dc73cc4829d':
  check for null native objects, which never happens on a real subclass (we throw in that case)
2009-07-30 16:06:21 -07:00
Android (Google) Code Review
afcf686cb0 am 25dff70f: Merge change 9039 into donut
Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de'

* commit '25dff70f153529b87f5ad4a92f4de21e8950b1de':
  Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
2009-07-30 16:05:27 -07:00
Mike Reed
6af2552d24 use safeUnref() since the other macro is not defined in donut 2009-07-30 11:46:47 -04:00
Android (Google) Code Review
7299d6ad98 Merge change 9159 into donut
* changes:
  check for null native objects, which never happens on a real subclass (we throw in that case) but can happen because we allow the callers to create the base class from java.
2009-07-30 08:16:09 -07:00
Mike Reed
a04e555dc9 check for null native objects, which never happens on a real subclass (we throw in that case)
but can happen because we allow the callers to create the base class from java.
2009-07-30 11:05:57 -04:00
Dianne Hackborn
0d221012ff Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
It turns out we were not returning the density for anything retrieved from a
TypedArray...  which basically means any bitmap references from a layout or style...!!!

This is now fixed.

Also fiddle with the density compatibility mode to turn on smoothing in certain situations,
helping the look of things when they need to scale and we couldn't do the scaling at
load time.
2009-07-29 19:44:01 -07:00
Eric Laurent
83b3685050 Fix issue 2015322 mediaframeworktest.MediaAudioTrackTest fails. 2009-07-28 07:49:22 -07:00
Android (Google) Code Review
ead1457616 Merge change 8639
* changes:
  explicitly set the hinting level for android apps (to match the old default)
2009-07-27 09:57:35 -07:00
Mike Reed
3d63e0119d explicitly set the hinting level for android apps (to match the old default) 2009-07-27 09:50:31 -04:00
Dianne Hackborn
e2dba02441 am 11ea3347: Allow for screen density drawables in compatibility mode.
Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8'

* commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8':
  Allow for screen density drawables in compatibility mode.
2009-07-24 16:08:56 -07:00
Dianne Hackborn
11ea33471e Allow for screen density drawables in compatibility mode.
This change allows us to use drawables that match the current screen
density even when being loaded in compatibility mode.  In this case,
the bitmap is loaded in the screen density, and the bitmap and
nine-patch drawables take care of accounting for the density difference.

This should be safe for existing applications, for the most part, since
they shouldn't really be pulling the bitmap out of the drawable.  For
the small rare chance of them breaking, it worth getting the correct
graphics.  Also this will only happen when there is actually a resource
of the matching density, and no existing apps should have resources for
anything besides the default density (though of course all of the
framework resources will be available in the native density).

As part of this, the bitmap density API has been changed to a single
integer provider the DPI unit density.
2009-07-24 10:47:15 -07:00
Eric Laurent
a553c25b33 Fix issue 1795088 Improve audio routing code
Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
2009-07-23 06:03:39 -07:00
Android (Google) Code Review
a8339dfec9 am 9fc20b0e: Merge change 8126 into donut
Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf'

* commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf':
  First pass at reworking screen density/size APIs.
2009-07-21 19:03:53 -07:00
Dianne Hackborn
c4db95c077 First pass at reworking screen density/size APIs.
This changes the names of the directories in aapt, to what you see
in the list of DpiTest resources.  Also adds a new "long" configuration
for wide screens, which the platform sets appropriate, and introduces
a new kind of resizeability for not large but significantly larger
than normal screens which may have compatibility issues.
2009-07-21 18:28:42 -07:00
Dave Sparks
4b5a8f84b1 am da57856d: Add logging to help track down intermittent bug
Merge commit 'da57856d749457e495bd860c4ff45aaaf87c9dab'

* commit 'da57856d749457e495bd860c4ff45aaaf87c9dab':
  Add logging to help track down intermittent bug
2009-07-21 09:22:54 -07:00
Dave Sparks
da57856d74 Add logging to help track down intermittent bug 2009-07-21 08:43:29 -07:00
Android (Google) Code Review
569f0b5070 Merge change 7900
* changes:
  Initial support of 2.1 pairing.
2009-07-20 10:36:25 -07:00
Android (Google) Code Review
b965d09294 Merge change 7775
* changes:
  Add an option to enable JIT trace profiling for app_process.
2009-07-20 09:43:25 -07:00
Jaikumar Ganesh
b0eca41de0 Initial support of 2.1 pairing.
Note: Some cases have not been tested yet, as we would need to
get proper UI support.
2009-07-17 17:52:26 -07:00
Android (Google) Code Review
ddd12804d1 am 261a784c: Merge change 7720 into donut
Merge commit '261a784c44d6ac4377651e4842c7a96326462857'

* commit '261a784c44d6ac4377651e4842c7a96326462857':
  Fix global ref leak in android.media.AudioRecord. Delete global refs
2009-07-17 17:13:28 -07:00
Ben Cheng
0e01fbf722 Add an option to enable JIT trace profiling for app_process. 2009-07-17 16:04:00 -07:00
Android (Google) Code Review
c634fdd803 am 09a903ab: Merge change 7696 into donut
Merge commit '09a903ab5b8d940605783ae4ee591c0f090a31d1'

* commit '09a903ab5b8d940605783ae4ee591c0f090a31d1':
  add hidden Options field for native allocations
2009-07-17 15:43:14 -07:00
Jaikumar Ganesh
12cae39747 Revert "Initial support of 2.1 pairing."
This reverts commit 228b2f3a813e93413a0f9e2f29dfbfc54590a356.
2009-07-17 14:45:22 -07:00
Android (Google) Code Review
261a784c44 Merge change 7720 into donut
* changes:
  Fix global ref leak in android.media.AudioRecord. Delete global refs to the native AudioRecord pointer and the callback cookie (for native to Java calls) in the finalize() function and when an error occurs during the allocation of the native resources.
2009-07-17 14:39:52 -07:00
Jaikumar Ganesh
228b2f3a81 Initial support of 2.1 pairing.
Note: Some cases have not been tested yet, as we would need to
get proper UI support.
2009-07-17 14:00:32 -07:00