201 Commits

Author SHA1 Message Date
Romain Guy
0e1ca5749a Add support for gestures in Home.
Adds a new animation style for the gestures pad, and de-normalize
the scores in the recognition engine.
2009-06-09 22:58:46 -07:00
Eric Fischer
137c450366 Regenerate all the date and time interval formats from CLDR data. 2009-06-09 14:51:16 -07:00
Satish Sampath
4ab3c00993 Rename genieprovider to enhancedgooglesearch. 2009-06-09 17:44:46 +01:00
Satish Sampath
1c5fa0f310 Adds UI support for custom search widget item backgrounds.
- A new column was added to SearchManager cursors to specify background color (optional)
- Two new colour references added to the theme for normal and search widget corpus items (we need both to be opaque for the items to render properly)
- SuggestionAdapter was updated to choose the right theme colour for each item
2009-06-09 14:02:36 +01:00
Romain Guy
f642aa2a44 Removes gestures from ListView. 2009-06-08 23:24:18 -07:00
Romain Guy
0a20264db8 Do not automatically enable gestures in list based on filtering/fastscroll status. Enable gestures in Contacts for now. 2009-06-08 14:47:01 -07:00
Suchi Amalapurapu
d299b8194d Add a new attribute to android manifest for defining the GLES version number.
This attribute is parsed by the PackageParser into ConfigurationInfo. The major
and minor version numbers are defined as the higher and lower order bits.
2009-06-05 13:49:09 -07:00
Satish Sampath
f9acde2748 Include web search providers in Searchables.
- Along with ACTION_SEARCH we now enumate ACTION_WEB_SEARCH as well so web search providers are covered in the searchables list. This fixes a broken unit test.
- Moved get/setPreferredWebSearchActivity and get-all-web-search-providers implementation to this module when the searchables list gets updated, so that it happens on boot and on package add/remove events and remains up to date. The duplicate code in WebSearchProvider will be removed in a separate change.
- Also made Searchables broadcast an intent when the searchables list got rebuilt, so components such as GlobalSearch/SuggestionSources no longer need to do this on their own.
2009-06-05 10:34:53 +01:00
Mitsuru Oshima
9189cabb0b * Moved supports-density tag under manifest
* Refactored Compatibility code
  * Added CompatibilityInfo class
  * Removed getApplicationScale from Context
  * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context
* Expandable support
  * Added expandable tag under manifest
  * Old application w/o expandable is given the default screen size  ([320, 480] x density).
  * The non-expandable window is centered.
2009-06-03 16:28:10 -07:00
Amith Yamasani
eaeb663bcd Track activity foreground CPU usage for battery stats.
Track the foreground CPU time of an activity so that we can tell if apps are
spending more time in the background compared to foreground.
Update power profile values for screen backlight and GPS.
Fix some javadoc bugs (milliseconds vs. microseconds).
2009-06-03 15:38:24 -07:00
Android (Google) Code Review
432900bffb Merge change 2962 into donut
* changes:
  Fixes #1890914.
2009-06-02 15:16:34 -07:00
Romain Guy
ce16d787bd Fixes #1890914.
Bright theme's background color should be #fff9f9f9 instead of pure white (#ffffffff).
2009-06-02 15:15:12 -07:00
Wink Saville
f315238a2b TODO's from Teleca with modifications from wink. 2009-06-01 14:39:20 -07:00
San Mehat
5a3a77dabd base: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGE
Signed-off-by: San Mehat <san@google.com>
2009-06-01 09:25:28 -07:00
Christopher Tate
181fafaf48 Retool the backup process to use a new 'BackupAgent' class
Backups will be handled by launching the application in a special
mode under which no activities or services will be started, only
the BackupAgent subclass named in the app's android:backupAgent
manifest property.  This takes the place of the BackupService class
used earlier during development.

In the cases of *full* backup or restore, an application that does
not supply its own BackupAgent will be launched in a restricted
manner; in particular, it will be using the default Application
class rather than any manifest-declared one.  This ensures that the
app is not running any code that may try to manipulate its data
while the backup system reads/writes its data set.
2009-05-31 13:10:03 -07:00
Romain Guy
d1c67d42ab Fixes #1878499.
Ignore touch up events that happen after a gesture was cancelled. This fix also improves performance by ignoring move events that are within the touch threshold.
2009-05-29 13:53:16 -07:00
Robert Greenwalt
fc1b15cfbf Fix wifi multicast API for public use.
Applying API review comments and taking it public.
2009-05-28 13:37:06 -07:00
Android (Google) Code Review
401bbb0597 Merge change 2593 into donut
* changes:
  Bug fixes and performance improvements
2009-05-27 21:26:31 -07:00
Yang Li
58b359041a Bug fixes and performance improvements
- Added affine transform functions in GestureUtilities to remove Matrix
- Fixed a bug with Instance.createInstance
- Updated letter recognition file
2009-05-27 18:19:04 -07:00
Android (Google) Code Review
d22c64f377 Merge change 2434 into donut
* changes:
  Removed Matrix from spatial sampling for GestureUtilities - updated the letter training file
2009-05-26 15:02:59 -07:00
Yang Li
b082ceefdc Removed Matrix from spatial sampling for GestureUtilities
- updated the letter training file
2009-05-26 14:30:34 -07:00
Android (Google) Code Review
d185cac23c 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.
2009-05-26 10:33:55 -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
Android (Google) Code Review
944ea12368 Merge change 2407 into donut
* changes:
  Manual merge from cupcake_dcm.
2009-05-25 00:56:32 -07:00
Daisuke Miyakawa
9399695aa2 Manual merge from cupcake_dcm. 2009-05-25 16:55:04 +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
Mike LeBeau
a97f4a1174 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.
2009-05-23 01:19:36 -05: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
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
Android (Google) Code Review
36e862a699 Merge change 2318 into donut
* changes:
  Fixed vertical text position in search suggestion items.
2009-05-22 08:45:11 -07:00
Bjorn Bringert
eb128730b5 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.
2009-05-22 13:42:29 +01:00
Android (Google) Code Review
f41c640d84 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.
2009-05-22 02:02:57 -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
Daisuke Miyakawa
77f57f67c7 fix build breakage 2009-05-22 13:12:18 +09:00
Romain Guy
db567c390b Move the Gestures API to the framework in android.gesture. 2009-05-21 18:12:56 -07:00
Android (Google) Code Review
8c690ea997 Merge change 2182 into donut
* changes:
  location: Replace ILocationCollector interface with new ILocationProvider method
2009-05-21 08:52:25 -07:00
Mike Lockwood
fd6e5f0dda location: Replace ILocationCollector interface with new ILocationProvider method
This change replaces ILocationCollector with a more general mechanism that
passes locations received from a provider to all other providers.
The network location provider now uses this to implement the location collector.
In the future, this could be used to inject network locations to the GPS
as aiding data.

This change also removes the now obsolete permission INSTALL_LOCATION_COLLECTOR.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-21 11:28:20 -04:00
Android (Google) Code Review
3343af5fdb Merge change 1863 into donut
* changes:
  Center the progress message for GoogleWebContentHelper (bug #1548858).
2009-05-21 04:43:31 -07:00
Android (Google) Code Review
f9c7d9a75b Merge change 2147 into donut
* changes:
  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 20:34:49 -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
Dianne Hackborn
f479aa0900 Add padding to public.xml to avoid breaking from auto-merges. 2009-05-20 16:30:59 -07:00
Romain Guy
c534727972 First pass at cleaning up the gestures code. 2009-05-20 15:10:45 -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
f9df6bd6e9 Merge change 1878 into donut
* changes:
  Fixes external #2686. Make @android:anim/linear_interpolator public since the default intperpolator for all animations is accelerate_decelerate.
2009-05-19 16:51:28 -07:00
Android (Google) Code Review
12bb9471cb Merge change 1936 into donut
* changes:
  Recovered the code of the gesture library
2009-05-19 10:32:01 -07:00
Mihai Preda
aacf80261c Center the progress message for GoogleWebContentHelper (bug #1548858). 2009-05-19 15:23:54 +02: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