OSDN Git Service

android-x86/frameworks-base.git
15 years agoMerge change 1124 into donut
Android (Google) Code Review [Wed, 27 May 2009 17:56:41 +0000 (10:56 -0700)]
Merge change 1124 into donut

* changes:
  Fix SQLite limit issue.

15 years agoFix another crash in Gestures, this one caused by the data file
Marco Nelissen [Wed, 27 May 2009 17:01:05 +0000 (10:01 -0700)]
Fix another crash in Gestures, this one caused by the data file
having the wrong version. I made the loader print a message to
the log for this, and made the calling code disable gestures
for the listview instead of crashing.

15 years agoMerge change 2520 into donut
Android (Google) Code Review [Wed, 27 May 2009 16:13:15 +0000 (09:13 -0700)]
Merge change 2520 into donut

* changes:
  Cause the icon drawables to animate automatically by calling setVisible false and then true on the drawables. For an AnimationDrawable, this will trigger the desired behavior of 'automatically' starting the animation, which should have been working to begin with according to the intended design of AnimationDrawable (see http://b/1878430 for my description of my correspondence with Romain). For Donut we'll just do this to work around it, but for a later release we need to decide a better story.

15 years agoMerge change 2522 into donut
Android (Google) Code Review [Wed, 27 May 2009 12:52:50 +0000 (05:52 -0700)]
Merge change 2522 into donut

* changes:
  This function should be public

15 years agoThis function should be public
Jacek Surazski [Wed, 27 May 2009 12:45:48 +0000 (14:45 +0200)]
This function should be public

15 years agoMerge change 2432 into donut
Android (Google) Code Review [Wed, 27 May 2009 11:48:21 +0000 (04:48 -0700)]
Merge change 2432 into donut

* changes:
  Make android_runtime to not include libemoji but use dlopen() instead. This must be submitted with change 2432

15 years agoMerge change 2420 into donut
Android (Google) Code Review [Wed, 27 May 2009 09:17:21 +0000 (02:17 -0700)]
Merge change 2420 into donut

* changes:
  This just makes it easier to derive from ApplicationErrorReport.

15 years agoCause the icon drawables to animate automatically by calling setVisible
Mike LeBeau [Wed, 27 May 2009 05:48:56 +0000 (22:48 -0700)]
Cause the icon drawables to animate automatically by calling setVisible
false and then true on the drawables. For an AnimationDrawable, this will
trigger the desired behavior of 'automatically' starting the animation,
which should have been working to begin with according to the intended
design of AnimationDrawable (see http://b/1878430 for my description of
my correspondence with Romain). For Donut we'll just do this to work
around it, but for a later release we need to decide a better story.

15 years agoMerge change 2508 into donut
Android (Google) Code Review [Wed, 27 May 2009 01:59:36 +0000 (18:59 -0700)]
Merge change 2508 into donut

* changes:
  Activity Manager changes the scheduling group of processes.

15 years agoActivity Manager changes the scheduling group of processes.
Dianne Hackborn [Thu, 21 May 2009 19:56:43 +0000 (12:56 -0700)]
Activity Manager changes the scheduling group of processes.

The algorithm for this is currently very simple: all persistent processes are
always in the normal scheduling group, all other processes are normal if their
oom_adj is as good or better than VISIBLE, otherwise they are in the background
group.

Note that this currently results in a fair number of log messages about not
being able to change the group, since the system process does not have
permission to do so.  Once a kernel fix is in, these will go away and the code
will start working.

15 years agoMerge change 2502 into donut
Android (Google) Code Review [Wed, 27 May 2009 01:14:14 +0000 (18:14 -0700)]
Merge change 2502 into donut

* changes:
  minor clean-up to Rect and Point.

15 years agoMerge change 2492 into donut
Android (Google) Code Review [Wed, 27 May 2009 01:02:08 +0000 (18:02 -0700)]
Merge change 2492 into donut

* changes:
  add Gservices setting for "send message using bareJid timeout".

15 years agominor clean-up to Rect and Point.
Mathias Agopian [Wed, 27 May 2009 00:44:57 +0000 (17:44 -0700)]
minor clean-up to Rect and Point.

- return "const" objects for overloaded operators to disallow constructs like: (a+b) = c;
- don't return references to non-static members, it's not always safe.
- Point.cpp was empty, so get rid of it

15 years agoadd Gservices setting for "send message using bareJid timeout".
Wei Huang [Fri, 22 May 2009 20:30:03 +0000 (13:30 -0700)]
add Gservices setting for "send message using bareJid timeout".

15 years agoam 522ab34d: AI 149272: Mark 1.5r1 as a "non-current" release, with pointer to 1...
Dirk Dougherty [Tue, 26 May 2009 23:59:33 +0000 (16:59 -0700)]
am 522ab34d: AI 149272: Mark 1.5r1 as a "non-current" release, with pointer to 1.5r2.   BUG=1790234

Merge commit '522ab34d3821dc760e10f4bdf3fbdb558c6a1d01' into donut

* commit '522ab34d3821dc760e10f4bdf3fbdb558c6a1d01':
  AI 149272: Mark 1.5r1 as a "non-current" release, with pointer to 1.5r2.

15 years agoMerge change 2468 into donut
Android (Google) Code Review [Tue, 26 May 2009 23:23:08 +0000 (16:23 -0700)]
Merge change 2468 into donut

* changes:
  setVolume did not check interface descriptor DO NOT MERGE

15 years agoAI 149272: Mark 1.5r1 as a "non-current" release, with pointer to 1.5r2.
Dirk Dougherty [Tue, 26 May 2009 22:46:56 +0000 (15:46 -0700)]
AI 149272: Mark 1.5r1 as a "non-current" release, with pointer to 1.5r2.
  BUG=1790234

Automated import of CL 149272

15 years agoam 1d6cb270: AI 149267: Add the images for icon guidelines doc BUG=1790234
Dirk Dougherty [Tue, 26 May 2009 22:03:43 +0000 (15:03 -0700)]
am 1d6cb270: AI 149267: Add the images for icon guidelines doc   BUG=1790234

Merge commit '1d6cb270a53e45e6370dfdd60954269c76b09d28' into donut

* commit '1d6cb270a53e45e6370dfdd60954269c76b09d28':
  AI 149267: Add the images for icon guidelines doc

15 years agoMerge change 2434 into donut
Android (Google) Code Review [Tue, 26 May 2009 22:02:59 +0000 (15:02 -0700)]
Merge change 2434 into donut

* changes:
  Removed Matrix from spatial sampling for GestureUtilities - updated the letter training file

15 years agoAI 149267: Add the images for icon guidelines doc
Dirk Dougherty [Tue, 26 May 2009 22:01:29 +0000 (15:01 -0700)]
AI 149267: Add the images for icon guidelines doc
  BUG=1790234

Automated import of CL 149267

15 years agoMerge change 2465 into donut
Android (Google) Code Review [Tue, 26 May 2009 21:40:45 +0000 (14:40 -0700)]
Merge change 2465 into donut

* changes:
  Fix crash in GestureOverlayView

15 years agosetVolume did not check interface descriptor
Dave Sparks [Tue, 26 May 2009 21:39:29 +0000 (14:39 -0700)]
setVolume did not check interface descriptor
DO NOT MERGE

15 years agoRemoved Matrix from spatial sampling for GestureUtilities
Yang Li [Tue, 26 May 2009 06:32:30 +0000 (23:32 -0700)]
Removed Matrix from spatial sampling for GestureUtilities
- updated the letter training file

15 years agoFix crash in GestureOverlayView
Marco Nelissen [Tue, 26 May 2009 21:20:35 +0000 (14:20 -0700)]
Fix crash in GestureOverlayView

15 years agoCheck for desiredPowerState (airplane mode) before setting up data.
Jaikumar Ganesh [Tue, 26 May 2009 15:02:51 +0000 (08:02 -0700)]
Check for desiredPowerState (airplane mode) before setting up data.

Check for airplane mode before trying to setup data.
Send an event while switching from wifi to cell data,
instead of calling trySetupData directly.

15 years agoMerge change 2393 into donut
Android (Google) Code Review [Tue, 26 May 2009 17:33:55 +0000 (10:33 -0700)]
Merge change 2393 into donut

* changes:
  Remove dimmed background (and accompanying animation) for global search, since we should never really see that background anyway, and I suspect the animation is using a significant amount of CPU.

15 years agoMerge change 2331 into donut
Android (Google) Code Review [Tue, 26 May 2009 17:04:50 +0000 (10:04 -0700)]
Merge change 2331 into donut

* changes:
  Fix issue 1846343 - part 1

15 years agoam f3043db0: AI 149251: Add 1.x Icon Guidelines doc and template pack. BUG=1790234
Dirk Dougherty [Tue, 26 May 2009 17:03:04 +0000 (10:03 -0700)]
am f3043db0: AI 149251: Add 1.x Icon Guidelines doc and template pack.   BUG=1790234

Merge commit 'f3043db05bdd5424504dd479082fc8554676a682' into donut

* commit 'f3043db05bdd5424504dd479082fc8554676a682':
  AI 149251: Add 1.x Icon Guidelines doc and template pack.

15 years agoAI 149251: Add 1.x Icon Guidelines doc and template pack.
Dirk Dougherty [Tue, 26 May 2009 15:40:42 +0000 (08:40 -0700)]
AI 149251: Add 1.x Icon Guidelines doc and template pack.
  BUG=1790234

Automated import of CL 149251

15 years agoMerge change 2431 into donut
Android (Google) Code Review [Tue, 26 May 2009 15:35:51 +0000 (08:35 -0700)]
Merge change 2431 into donut

* changes:
  wifi: Fix problem parsing RSSI when the AP name contains a space.

15 years agoMake android_runtime to not include libemoji but use dlopen() instead.
Daisuke Miyakawa [Tue, 26 May 2009 05:46:35 +0000 (14:46 +0900)]
Make android_runtime to not include libemoji but use dlopen() instead.
This must be submitted with change 2432

15 years agoFix issue 1846343 - part 1
Eric Laurent [Fri, 22 May 2009 16:18:15 +0000 (09:18 -0700)]
Fix issue 1846343 - part 1

This change is the first part of a fix for issue 1846343, :
- Added new enum values for input sources in AudioRecord and MediaRecorder for voice uplink, downlink and uplink+downlink sources.
- renamed streamType to inputSource in all native functions handling audio record.

A second change is required in opencore author driver and android audio input to completely fix the issue.

15 years agoMerge change 2347 into donut
Android (Google) Code Review [Tue, 26 May 2009 13:42:42 +0000 (06:42 -0700)]
Merge change 2347 into donut

* changes:
  Fix Disconnect path for CDMA.

15 years agoMerge change 418 into donut
Android (Google) Code Review [Tue, 26 May 2009 06:34:59 +0000 (23:34 -0700)]
Merge change 418 into donut

* changes:
  add additional CdmaDataConnectionTracker event logging

15 years agoMerge change 2302 into donut
Android (Google) Code Review [Tue, 26 May 2009 06:23:18 +0000 (23:23 -0700)]
Merge change 2302 into donut

* changes:
  added SmsMessage ConcatRef parsing validation

15 years agowifi: Fix problem parsing RSSI when the AP name contains a space.
Mike Lockwood [Tue, 26 May 2009 02:34:20 +0000 (22:34 -0400)]
wifi: Fix problem parsing RSSI when the AP name contains a space.

Signed-off-by: Mike Lockwood <lockwood@android.com>
15 years agoGestureOverlayView was not invalidating itself when calling clear(false). Calling...
Romain Guy [Tue, 26 May 2009 02:08:31 +0000 (19:08 -0700)]
GestureOverlayView was not invalidating itself when calling clear(false). Calling clear(true) was working properly. This change also makes clear(false) and clear(true) both behave similarly when fireActionPerformed == true.

15 years agoAdd new orientation attribute to GestureOverlayView. This can be used to prevent...
Romain Guy [Mon, 25 May 2009 20:51:00 +0000 (13:51 -0700)]
Add new orientation attribute to GestureOverlayView. This can be used to prevent the overlay from interfering with vertically/horizontally scrolling views underneath the overlay.

15 years agoThis just makes it easier to derive from ApplicationErrorReport.
Jacek Surazski [Mon, 25 May 2009 15:56:41 +0000 (17:56 +0200)]
This just makes it easier to derive from ApplicationErrorReport.

15 years agoFix drawing bug: opaque invalidations should not be taken into account when the inval...
Romain Guy [Mon, 25 May 2009 11:39:37 +0000 (04:39 -0700)]
Fix drawing bug: opaque invalidations should not be taken into account when the invalidated view is animating. Also add the ability to disable the auto-fade on the GestureOverlayView.

15 years agoChange when gestures listeners are fired.
Romain Guy [Mon, 25 May 2009 08:33:00 +0000 (01:33 -0700)]
Change when gestures listeners are fired.

15 years agoMerge change 2408 into donut
Android (Google) Code Review [Mon, 25 May 2009 07:58:57 +0000 (00:58 -0700)]
Merge change 2408 into donut

* changes:
  Manual merge from cupcake_dcm. internal CL#148693. Two donottranslate.xml-s are already submitted.

15 years agoManual merge from cupcake_dcm. internal CL#148693. Two donottranslate.xml-s are alrea...
Daisuke Miyakawa [Mon, 25 May 2009 07:57:15 +0000 (16:57 +0900)]
Manual merge from cupcake_dcm. internal CL#148693. Two donottranslate.xml-s are already submitted.

15 years agoMerge change 2407 into donut
Android (Google) Code Review [Mon, 25 May 2009 07:56:32 +0000 (00:56 -0700)]
Merge change 2407 into donut

* changes:
  Manual merge from cupcake_dcm.

15 years agoManual merge from cupcake_dcm.
Daisuke Miyakawa [Mon, 25 May 2009 07:55:04 +0000 (16:55 +0900)]
Manual merge from cupcake_dcm.

15 years agoMerge change 2402 into donut
Android (Google) Code Review [Mon, 25 May 2009 06:47:30 +0000 (23:47 -0700)]
Merge change 2402 into donut

* changes:
  Cleanup Gestures API and make it easier to use in 3rd party apps. Also fix the events processing in the gestures overlay mechanism. Give better control of the various properties of the overlay through XML attributes.

15 years agoCleanup Gestures API and make it easier to use in 3rd party apps. Also fix the events...
Romain Guy [Mon, 25 May 2009 01:40:45 +0000 (18:40 -0700)]
Cleanup Gestures API and make it easier to use in 3rd party apps. Also fix the events processing in the gestures overlay mechanism. Give better control of the various properties of the overlay through XML attributes.

15 years agoMerge change 2359 into donut
Android (Google) Code Review [Sat, 23 May 2009 21:05:50 +0000 (14:05 -0700)]
Merge change 2359 into donut

* changes:
  Fix for the simultor build breakage.

15 years agoMerge change 2397 into donut
Android (Google) Code Review [Sat, 23 May 2009 20:27:18 +0000 (13:27 -0700)]
Merge change 2397 into donut

* changes:
  Fixes NPE in ListViews with non-selectable items. This was caused by a weird initialization issue in ListView and AbsListView: a private final field instanciated in the declaration in ListView was used in AbsListView<init> via an overriden method and that field was somehow null at this time. This fix moves the instanciation at a later point.

15 years agoFixes NPE in ListViews with non-selectable items. This was caused by a weird initiali...
Romain Guy [Sat, 23 May 2009 20:26:46 +0000 (13:26 -0700)]
Fixes NPE in ListViews with non-selectable items. This was caused by a weird initialization issue in ListView and AbsListView: a private final field instanciated in the declaration in ListView was used in AbsListView<init> via an overriden method and that field was somehow null at this time. This fix moves the instanciation at a later point.

15 years agoSensors: Use a native_handle for the data channel instead of a single file descriptor.
Mike Lockwood [Fri, 22 May 2009 14:02:14 +0000 (10:02 -0400)]
Sensors: Use a native_handle for the data channel instead of a single file descriptor.

This eliminates the requirement that all sensors share a single file descriptor.
This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481

Signed-off-by: Mike Lockwood <lockwood@android.com>
15 years agoRemove dimmed background (and accompanying animation) for global
Mike LeBeau [Sat, 23 May 2009 06:19:36 +0000 (01:19 -0500)]
Remove dimmed background (and accompanying animation) for global
search, since we should never really see that background anyway,
and I suspect the animation is using a significant amount of CPU.

15 years agoMerge change 2364 into donut
Android (Google) Code Review [Sat, 23 May 2009 02:40:33 +0000 (19:40 -0700)]
Merge change 2364 into donut

* changes:
  Initial checkin for App Fuel Gauge infrastructure.

15 years agoDefine TARGET_CPU_ABI for finding native code in .apks
Dianne Hackborn [Thu, 21 May 2009 22:45:42 +0000 (15:45 -0700)]
Define TARGET_CPU_ABI for finding native code in .apks

15 years agoam 3f9de8b6: AI 149211: Doc updates for Android 1.5 SDK, r2. BUG=1790234
Dirk Dougherty [Fri, 22 May 2009 23:05:59 +0000 (16:05 -0700)]
am 3f9de8b6: AI 149211: Doc updates for Android 1.5 SDK, r2.   BUG=1790234

Merge commit '3f9de8b6caa3fe9119b363c64e79d13bb72aec76' into donut

* commit '3f9de8b6caa3fe9119b363c64e79d13bb72aec76':
  AI 149211: Doc updates for Android 1.5 SDK, r2.

15 years agoAI 149211: Doc updates for Android 1.5 SDK, r2.
Dirk Dougherty [Fri, 22 May 2009 23:04:18 +0000 (16:04 -0700)]
AI 149211: Doc updates for Android 1.5 SDK, r2.
  BUG=1790234

Automated import of CL 149211

15 years agoMerge change 2289 into donut
Android (Google) Code Review [Fri, 22 May 2009 22:59:29 +0000 (15:59 -0700)]
Merge change 2289 into donut

* changes:
  Add AIDL files for the TTS service and the associated callback service (to signal synthesis completion).

15 years agoFix for the simultor build breakage.
Nicolas Catania [Fri, 22 May 2009 20:41:38 +0000 (13:41 -0700)]
Fix for the simultor build breakage.

Added missing include sys/time.h for utimes.

Detects when stat64 uses a timespec for the modif and access times
and work around the missing st_*time_nsec.

Apologies for the whitespace changes, emacs removed them automatically.

15 years agoMerge open-source donut back into internal tree
Jean-Baptiste Queru [Fri, 22 May 2009 22:43:13 +0000 (15:43 -0700)]
Merge open-source donut back into internal tree

Merge commit '4cf03d381b2dff908857fceff0bec445f8d44f36' into HEAD

15 years agoMerge change 2349 into donut
Android (Google) Code Review [Fri, 22 May 2009 22:35:26 +0000 (15:35 -0700)]
Merge change 2349 into donut

* changes:
  Change the media key algorithm to also ignore double quotes.

15 years agoam 22629944: AI 149208: Remove statement about WIndows codecs and licensing. BUG...
Dirk Dougherty [Fri, 22 May 2009 22:13:06 +0000 (15:13 -0700)]
am 22629944: AI 149208: Remove statement about WIndows codecs and licensing.   BUG=1839672

Merge commit '226299446197689499bc3c7dc44d0026745da677' into donut

* commit '226299446197689499bc3c7dc44d0026745da677':
  AI 149208: Remove statement about WIndows codecs and licensing.

15 years agoAI 149208: Remove statement about WIndows codecs and licensing.
Dirk Dougherty [Fri, 22 May 2009 22:11:27 +0000 (15:11 -0700)]
AI 149208: Remove statement about WIndows codecs and licensing.
  BUG=1839672

Automated import of CL 149208

15 years agoMerge change 2351 into donut
Android (Google) Code Review [Fri, 22 May 2009 21:51:22 +0000 (14:51 -0700)]
Merge change 2351 into donut

* changes:
  Fix a major bug in Bundle when unparcelling from AIDL.

15 years agoMerge change 2361 into donut
Android (Google) Code Review [Fri, 22 May 2009 21:49:19 +0000 (14:49 -0700)]
Merge change 2361 into donut

* changes:
  Fixes #1872506. Prevents NPE in ListView. When the opaque property changes at runtime, it is possible to end up in a situation in which the divider's Paint instance has not been instanciated. This change simples uses a final Paint that is guaranteed to not be null.

15 years agoInitial checkin for App Fuel Gauge infrastructure.
Amith Yamasani [Fri, 22 May 2009 21:36:07 +0000 (14:36 -0700)]
Initial checkin for App Fuel Gauge infrastructure.

This adds the PowerProfile class and data file that provides power consumption numbers
for different subsystems. Also added Audio/Video subsystems to track on a per UID basis.

15 years agoReconcile cupcake history into donut
Jean-Baptiste Queru [Fri, 22 May 2009 21:34:57 +0000 (14:34 -0700)]
Reconcile cupcake history into donut

Merge commit '5d6d773fab559fdc12e553d60d789f3991ac552c' into HEAD

15 years agoFixes #1872506. Prevents NPE in ListView. When the opaque property changes at runtime...
Romain Guy [Fri, 22 May 2009 21:09:29 +0000 (14:09 -0700)]
Fixes #1872506. Prevents NPE in ListView. When the opaque property changes at runtime, it is possible to end up in a situation in which the divider's Paint instance has not been instanciated. This change simples uses a final Paint that is guaranteed to not be null.

15 years agoFix a major bug in Bundle when unparcelling from AIDL.
Dianne Hackborn [Fri, 22 May 2009 20:20:23 +0000 (13:20 -0700)]
Fix a major bug in Bundle when unparcelling from AIDL.

There was a serious problem in the Bundle(Parcel) and readFromParcel() methods,
where it wasn't doing the copying of the Parcel that Parcel.readBundle() does
and is a basic requirement for it to work correctly.

This re-arranges the code to make all of these functions (hopefully) correct.

Also fix a problem in Parcel where we were not duping fds when copying data from
one Parcel to another.

15 years agoFix Disconnect path for CDMA.
Jaikumar Ganesh [Fri, 22 May 2009 19:58:29 +0000 (12:58 -0700)]
Fix Disconnect path for CDMA.

The corresponding fix has already been made for GSM.
When data state is in CONNECTING state and and we try
to disable the data, we set a pending disconnect but never
disconnect once we are connected.

15 years agoThis should fix the simulator build.
Marco Nelissen [Fri, 22 May 2009 19:25:56 +0000 (12:25 -0700)]
This should fix the simulator build.

15 years agoChange the media key algorithm to also ignore double quotes.
Marco Nelissen [Fri, 22 May 2009 19:16:58 +0000 (12:16 -0700)]
Change the media key algorithm to also ignore double quotes.

15 years agoAdd AIDL files for the TTS service and the associated callback service (to signal...
Jean-Michel Trivi [Fri, 22 May 2009 01:46:10 +0000 (18:46 -0700)]
Add AIDL files for the TTS service and the associated callback service (to signal synthesis completion).

15 years agoMerge change 2336 into donut
Android (Google) Code Review [Fri, 22 May 2009 17:40:48 +0000 (10:40 -0700)]
Merge change 2336 into donut

* changes:
  dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.

15 years agodumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.
Mike Lockwood [Fri, 22 May 2009 17:31:42 +0000 (13:31 -0400)]
dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.

Signed-off-by: Mike Lockwood <lockwood@android.com>
15 years agoMerge change 2230 into donut
Android (Google) Code Review [Fri, 22 May 2009 15:47:54 +0000 (08:47 -0700)]
Merge change 2230 into donut

* changes:
  runtime: Add CAP_SYS_NICE to the system server capabilities list so it can (eventually) move arbitrary threads into different cgroups

15 years agoMerge change 2318 into donut
Android (Google) Code Review [Fri, 22 May 2009 15:45:11 +0000 (08:45 -0700)]
Merge change 2318 into donut

* changes:
  Fixed vertical text position in search suggestion items.

15 years agoFix the build
Romain Guy [Fri, 22 May 2009 14:32:41 +0000 (07:32 -0700)]
Fix the build

15 years agoFixed vertical text position in search suggestion items.
Bjorn Bringert [Fri, 22 May 2009 12:42:29 +0000 (13:42 +0100)]
Fixed vertical text position in search suggestion items.

Background:

mlebeau said: "Cole had complained that the vertical alignment of the
text fields in search_dropdown_item_icons_2line.xml was a little
off. Specifically, when both lines are visible he wanted to see line1
pushed down 2-4 pixels (while keeping line2 in the same position as
now), and when only line1 is visible, he said it needed to be pushed
up 2-4 pixels from current."

Here's how the layout worked before (note that text2 and text1
are in this order in the layout file):

- If text2 is present, it is put at the bottom, with height set by
  layout_height (currently 29dip) .  - The line2 text is put at the top
  of text2 (gravity=top).

- I think the paddingBottom=4dip in text2 has no effect, since the
  text is top-aligned anyway.

- text1 is put at the top of the list item. If text2 is present, it
  will have height 29dip (58 dip - 29 dip height of text2). It's a bit
  weird, layout_height of text1 is completely ignored, but it has to be
  set to something. If text2 is missing, it will fill the entire list
  item height (58 dip).

- The line1 text is placed 4dip below the vertical center of text1
  (4dip because of paddingTop).

Now, instead, text1 has height=wrap_content, and is placed right above
text2, if that's present. If text2 is absent, text1 is centered
vertically in the list item. This should have the desired effect.
If we want to tweak the positioning further in the case where text2
is visible, we can adjust the padding of text1.

15 years agoFix the build
Romain Guy [Fri, 22 May 2009 09:39:24 +0000 (02:39 -0700)]
Fix the build

15 years agoMerge change 2305 into donut
Android (Google) Code Review [Fri, 22 May 2009 09:02:57 +0000 (02:02 -0700)]
Merge change 2305 into donut

* changes:
  Add a new API to ListView: setGestures(int). This allows developers to enable gestures to jump inside the list or filter it. This change also introduces a new XML attribute to control this API. It also adds the ability to theme the GestureOverlayView from the gestures library. Finally, this adds a new VERSION header to the binary format used to store the letters for the recognizer.

15 years agoAdd a new API to ListView: setGestures(int). This allows developers to enable gesture...
Romain Guy [Fri, 22 May 2009 06:10:10 +0000 (23:10 -0700)]
Add a new API to ListView: setGestures(int). This allows developers to enable gestures to jump inside the list or filter it. This change also introduces a new XML attribute to control this API. It also adds the ability to theme the GestureOverlayView from the gestures library. Finally, this adds a new VERSION header to the binary format used to store the letters for the recognizer.

15 years agoadded SmsMessage ConcatRef parsing validation
Tammo Spalink [Fri, 22 May 2009 05:08:52 +0000 (13:08 +0800)]
added SmsMessage ConcatRef parsing validation

addresses bugs:
http://b/issue?id=1870607
http://b/issue?id=1688238

and prior perforce commit:
http://s9/?change_num=136189

15 years agoMerge change 2299 into donut
Android (Google) Code Review [Fri, 22 May 2009 04:12:59 +0000 (21:12 -0700)]
Merge change 2299 into donut

* changes:
  fix build breakage

15 years agofix build breakage
Daisuke Miyakawa [Fri, 22 May 2009 04:12:18 +0000 (13:12 +0900)]
fix build breakage

15 years agoMerge change 2292 into donut
Android (Google) Code Review [Fri, 22 May 2009 02:33:59 +0000 (19:33 -0700)]
Merge change 2292 into donut

* changes:
  split boot animation out of SurfaceFlinger

15 years agosplit boot animation out of SurfaceFlinger
Mathias Agopian [Fri, 22 May 2009 02:21:59 +0000 (19:21 -0700)]
split boot animation out of SurfaceFlinger

Conflicts:

data/etc/platform.xml

15 years agoMerge change 2285 into donut
Android (Google) Code Review [Fri, 22 May 2009 01:16:51 +0000 (18:16 -0700)]
Merge change 2285 into donut

* changes:
  Move the Gestures API to the framework in android.gesture.

15 years agoMove the Gestures API to the framework in android.gesture.
Romain Guy [Thu, 21 May 2009 23:23:21 +0000 (16:23 -0700)]
Move the Gestures API to the framework in android.gesture.

15 years agoAdd new window manager type for a hacking second-level media surface.
Dianne Hackborn [Fri, 22 May 2009 00:32:42 +0000 (17:32 -0700)]
Add new window manager type for a hacking second-level media surface.

This adds a new window type that is a surface that sits between the
current media type and the application window, in theory allowing you
to have two surface views in your hierarchy and control their
Z-ordering.  There is also another hidden API on SurfaceView to set
the type of your window.

All a big hack, but for the good of the commonwealth!

15 years agoMerge change 2227 into donut
Android (Google) Code Review [Thu, 21 May 2009 23:13:52 +0000 (16:13 -0700)]
Merge change 2227 into donut

* changes:
  Add header declaring the interface for TTS engines to implement.

15 years agoRenamed setGestureType in GestureLibrary
Yang Li [Thu, 21 May 2009 23:08:35 +0000 (16:08 -0700)]
Renamed setGestureType in GestureLibrary

15 years agoruntime: Add CAP_SYS_NICE to the system server capabilities list so it
San Mehat [Thu, 21 May 2009 22:34:56 +0000 (15:34 -0700)]
runtime: Add CAP_SYS_NICE to the system server capabilities list so it
can (eventually) move arbitrary threads into different cgroups

Signed-off-by: San Mehat <san@google.com>
15 years agoAdd header declaring the interface for TTS engines to implement.
Jean-Michel Trivi [Thu, 21 May 2009 22:32:11 +0000 (15:32 -0700)]
Add header declaring the interface for TTS engines to implement.

15 years agoModify how GestureLibrary stores its data. The XML format is now replaced by a more...
Romain Guy [Thu, 21 May 2009 22:05:50 +0000 (15:05 -0700)]
Modify how GestureLibrary stores its data. The XML format is now replaced by a more efficient binary format which should speed up saving/loading. The format is very similar to the one used by the letters recognizer. The format is documented in GestureLibrary.java.

15 years agoFix SQLite limit issue.
Owen Lin [Wed, 6 May 2009 23:45:59 +0000 (16:45 -0700)]
Fix SQLite limit issue.

SQLLite limit is not only used to limit the returned number of data.
It can be used to do an offset query.

For example, "SELECT * FROM table LIMIT 100, 10", will return the
data of index in the range of [100, 100 + 10).

This change set enable this kind of useage.

This is also more efficient than use "cursor.moveToPosition()".
In my experiment, I query 1000 items in batch mode, i.e.,
get 20 items out of 1000 each time.

    Time of using LIMIT clause: 626ms
    Time of useing "cursor.moveToPosition()": 2062ms

15 years agoMerge change 2219 into donut
Android (Google) Code Review [Thu, 21 May 2009 22:03:57 +0000 (15:03 -0700)]
Merge change 2219 into donut

* changes:
  Updated LetterRecognizer & related gesture recognition code - added personalization for letter recognizer

15 years agoMerge change 2218 into donut
Android (Google) Code Review [Thu, 21 May 2009 21:48:03 +0000 (14:48 -0700)]
Merge change 2218 into donut

* changes:
  Fixed SD card access permission issue in manifest

15 years agoUpdated LetterRecognizer & related gesture recognition code
Yang Li [Thu, 21 May 2009 21:47:59 +0000 (14:47 -0700)]
Updated LetterRecognizer & related gesture recognition code
- added personalization for letter recognizer

15 years agoFixed SD card access permission issue in manifest
Guang Zhu [Thu, 21 May 2009 21:44:58 +0000 (14:44 -0700)]
Fixed SD card access permission issue in manifest

 On branch b1869634_sdcard_perm
 Changes to be committed:
   (use "git reset HEAD <file>..." to unstage)

modified:   tests/DumpRenderTree/AndroidManifest.xml

15 years agoMerge change 2202 into donut
Android (Google) Code Review [Thu, 21 May 2009 20:14:12 +0000 (13:14 -0700)]
Merge change 2202 into donut

* changes:
  Fixes external http://code.google.com/p/android/issues/detail?id=2732. ExpandableListView is wrongly assuming that the saved state if of the correct type. A similar bug fix was made in TextView.onRestoreInstanceState() a while ago. This fix simply ensures that the state received is of the right type.