451 Commits

Author SHA1 Message Date
Marco Nelissen
fea57edf0d Fix crash in GestureOverlayView 2009-05-26 14:20:35 -07:00
Romain Guy
9edc4e8930 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. 2009-05-25 19:10:07 -07:00
Romain Guy
e7c36dda7a Add new orientation attribute to GestureOverlayView. This can be used to prevent the overlay from interfering with vertically/horizontally scrolling views underneath the overlay. 2009-05-25 13:51:00 -07:00
Romain Guy
ec25df9fbc 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. 2009-05-25 04:39:37 -07:00
Romain Guy
ff686ce11e Change when gestures listeners are fired. 2009-05-25 01:33:19 -07:00
Android (Google) Code Review
26a892a045 Merge change 2408 into donut
* changes:
  Manual merge from cupcake_dcm. internal CL#148693. Two donottranslate.xml-s are already submitted.
2009-05-25 00:58:57 -07:00
Daisuke Miyakawa
c27d9b5341 Manual merge from cupcake_dcm. internal CL#148693. Two donottranslate.xml-s are already submitted. 2009-05-25 16:57:15 +09:00
Romain Guy
82f3495b14 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. 2009-05-24 23:45:03 -07:00
Android (Google) Code Review
d9a874a4cb 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.
2009-05-23 13:27:18 -07:00
Romain Guy
a02903fbee 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. 2009-05-23 13:26:46 -07:00
Mike Lockwood
270e87f71a 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>
2009-05-23 13:22:08 -04:00
Android (Google) Code Review
fea1a459aa Merge change 2364 into donut
* changes:
  Initial checkin for App Fuel Gauge infrastructure.
2009-05-22 19:40:33 -07:00
Dianne Hackborn
b181118b6e Define TARGET_CPU_ABI for finding native code in .apks 2009-05-22 18:45:25 -07:00
Android (Google) Code Review
53cf55c64f Merge change 2349 into donut
* changes:
  Change the media key algorithm to also ignore double quotes.
2009-05-22 15:35:26 -07:00
Android (Google) Code Review
d50a458bb2 Merge change 2351 into donut
* changes:
  Fix a major bug in Bundle when unparcelling from AIDL.
2009-05-22 14:51:22 -07:00
Amith Yamasani
244fa5c05b 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.
2009-05-22 14:36:07 -07:00
Romain Guy
b6888167d3 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. 2009-05-22 14:09:29 -07:00
Dianne Hackborn
6aff905048 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.
2009-05-22 13:51:47 -07:00
Marco Nelissen
e754e128e6 Change the media key algorithm to also ignore double quotes. 2009-05-22 12:22:16 -07:00
Romain Guy
d6a463a9f2 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. 2009-05-22 01:59:59 -07:00
Android (Google) Code Review
cfcc0df265 Merge change 2285 into donut
* changes:
  Move the Gestures API to the framework in android.gesture.
2009-05-21 18:16:51 -07:00
Romain Guy
db567c390b Move the Gestures API to the framework in android.gesture. 2009-05-21 18:12:56 -07:00
Dianne Hackborn
c4d5d02667 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!
2009-05-21 17:50:33 -07:00
Android (Google) Code Review
d1874747c2 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.
2009-05-21 13:14:12 -07:00
Romain Guy
7444e147a8 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. 2009-05-21 12:54:16 -07:00
Mike LeBeau
1c69075151 Trigger the LocationManager whenever the SearchDialog is shown
(and stop when the SearchDialog is stopped). This way we get a
network-based location quickly so that by the time any location-
based suggestion provider wants to do suggestions, it's likely
to have a good fresh location.
2009-05-20 20:20:26 -07:00
Mike LeBeau
1480eb27f5 Add support to SuggestionsAdapter to query the 'working' status
of its underlying cursor and update a spinner in the search dialog
accordingly.
2009-05-20 17:22:13 -07:00
Android (Google) Code Review
aa9833885d Merge change 1932 into donut
* changes:
  Qualify a type and add some explanatory comments.
2009-05-20 15:28:36 -07:00
Android (Google) Code Review
009b32dc8b Merge change 2109 into donut
* changes:
  Add option for gtalk stream compression
2009-05-20 15:22:02 -07:00
Romain Guy
a6cd4e03e6 Fix NPE at boot. 2009-05-20 15:09:21 -07:00
Dianne Hackborn
d62ad4f120 Fix issue #1859814: Add android.os.Build.MANUFACTURER 2009-05-20 13:21:59 -07:00
Android (Google) Code Review
4174e2682f Merge change 2094 into donut
* changes:
  Fixes #1866819.\nTextView sets the bounds of its compound drawables to contain only the width and the height of the drawables. This causes View.invalidateDrawable() to invalidate the compound drawables at location (0, 0) within the view, thus invalidating the wrong part of the View. This prevents animation from running correctly when using animated drawable. This change overrides invalidateDrawable() in TextView to take into account the real position of the compound drawable.
2009-05-20 13:13:42 -07:00
Costin Manolache
b84905662f Add option for gtalk stream compression 2009-05-20 13:12:36 -07:00
Romain Guy
3c77d39ee8 Fixes #1866819.\nTextView sets the bounds of its compound drawables to contain only the width and the height of the drawables. This causes View.invalidateDrawable() to invalidate the compound drawables at location (0, 0) within the view, thus invalidating the wrong part of the View. This prevents animation from running correctly when using animated drawable. This change overrides invalidateDrawable() in TextView to take into account the real position of the compound drawable. 2009-05-20 11:26:50 -07:00
Joe Onorato
d2110dbce0 Hook up the backup data writer, and add a utility to read the backup data files. 2009-05-20 11:24:20 -07:00
Android (Google) Code Review
40f5a4ea3b Merge change 2089 into donut
* changes:
  Update searchables list in getSearchablesInGlobalSearch().
2009-05-20 11:15:05 -07:00
Bjorn Bringert
a48a5af931 Update searchables list in getSearchablesInGlobalSearch().
Should fix http://b/issue?id=1866432
2009-05-20 17:58:39 +01:00
Android (Google) Code Review
a5ca3425f9 Merge change 2017 into donut
* changes:
  Increment BatteryStatsImpl's VERSION. That'll make it stop trying to interpret older records with the new format. Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
2009-05-20 09:06:22 -07:00
Android (Google) Code Review
97dd7ac8ed Merge change 1860 into donut
* changes:
  ActivityManagerService sends bug reports on crashes and ANRs
2009-05-20 02:55:28 -07:00
Android (Google) Code Review
9fb724ba90 Merge change 1804 into donut
* changes:
  Additional logging in buildSearchableList().
2009-05-20 02:42:01 -07:00
Jacek Surazski
f5b9c72022 ActivityManagerService sends bug reports on crashes and ANRs
If an installerPackageName was specified when the app was installed,
looks for a receiver of ACTION_APP_ERROR in that package. If found,
this is the bug report receiver and the crash/ANR dialog will get a
"Report" button. If pressed, a bug report will be delivered.
2009-05-20 10:52:04 +02:00
Dianne Hackborn
95fc68f24a Fix issue where apps could prevent the user from going home.
Now we have a 5-second time after home is pressed, during which
only the home app (and the status bar) can switch to another app.
After that time, any start activity requests that occurred will
be executed, to allow things like alarms to be displayed.  Also
if during that time the user launches another app, the pending
starts will be executed without resuming their activities and
the one they started placed at the top and executed.
2009-05-19 18:46:53 -07:00
Android (Google) Code Review
83a6ec6002 Merge change 1791 into donut
* changes:
  Add a method to get the PhoneType in CellLocation.
2009-05-19 17:19:21 -07:00
Jaikumar Ganesh
9bfbfbd40d Add a method to get the PhoneType in CellLocation.
CellLocation uses TelephonyManager to get the PhoneType.
TelephonyManager uses the system property to get the phoneType,
if the ITelephony interface is not up.
2009-05-19 17:15:22 -07:00
Android (Google) Code Review
eba1ffb146 Merge change 2022 into donut
* changes:
  TextView was not setting the callback on its compound drawables, thus preventing them from refreshing the view when updating their internal state. This would for instance prevent animated drawables from actually animating. Quite infuriating.
2009-05-19 16:52:41 -07:00
Romain Guy
48540eb853 TextView was not setting the callback on its compound drawables, thus preventing them from refreshing the view when updating their internal state. This would for instance prevent animated drawables from actually animating. Quite infuriating. 2009-05-19 16:44:57 -07:00
Robert Greenwalt
58ff0217a6 Increment BatteryStatsImpl's VERSION.
That'll make it stop trying to interpret older records with the new format.
Also applied other comments involving name changes to remove un-needed 'Wifi' labels in WifiManager API, etc.
2009-05-19 15:53:54 -07:00
San Mehat
3e458241d9 process: Add setProcessGroup() hidden API call to set the cgroup of
a process and all its child threads.

Signed-off-by: San Mehat <san@google.com>
2009-05-19 14:44:16 -07:00
Android (Google) Code Review
2f11599eb3 Merge change 1579 into donut
* changes:
  Teleca 2b changes
2009-05-18 22:26:25 -07:00
Wink Saville
e9b06d754a Teleca 2b changes 2009-05-18 21:47:50 -07:00