187 Commits

Author SHA1 Message Date
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
Yang Li
35aa84b1f9 Recovered the code of the gesture library 2009-05-18 18:29:05 -07:00
Android (Google) Code Review
842a1f4b0b Merge change 1912 into donut
* changes:
  Hand merge from cupcake_dcm to donut, part 2.
2009-05-18 16:29:27 -07:00
Daisuke Miyakawa
841ddefcb5 Hand merge from cupcake_dcm to donut, part 2.
Modify Contacts-related java files and update vCard importer code to the latest.
2009-05-19 08:26:32 +09:00
Jeff Sharkey
af99928029 Change BIND_APPWIDGET to be signatureOrSystem.
See http://b/issue?id=1839074 for more details.
2009-05-18 14:35:49 -07:00
Romain Guy
2cad06f262 Fix the build 2009-05-18 14:06:43 -07:00
Romain Guy
9da06a4e2e Fixes external #2686. Fix typo. 2009-05-18 13:54:34 -07:00
Romain Guy
936257eabd Fixes external #2686. Make @android:anim/linear_interpolator public since the default intperpolator for all animations is accelerate_decelerate. 2009-05-18 11:04:45 -07:00
Romain Guy
924dd93a29 Fixes external #2669. Clarify the documentation of the XML attributes android:gravity and android:layout_gravity. 2009-05-18 10:43:55 -07:00
Dianne Hackborn
a96cbb435d Implement compatibility support for WRITE_SDCARD permission.
Now old applications will automatically be granted it.  Also renamed it from
SDCARD_WRITE to WRITE_SDCARD to be consistent with our other permissions,
and re-arranged how we do targetSdkVersion to actually be usuable for this
kind of stuff.

Note that right now this results in basically all apps being given the
WRITE_SDCARD permission, because their targetSdkVersion is not set.  I will
be dealing with that in a future change.
2009-05-15 18:02:47 -07:00
Mike LeBeau
a38b427a7a Add a search url text color attribute and theme. For search suggestions
in global search (and in related apps using system search like the browser),
we'd like to have a consistent green color used for urls. This makes it
available system-wide.
2009-05-15 10:31:16 -07:00
Eric Fischer
5bd644caf7 Start using CLDR for some date-and-time strings and formats.
Use java.text.DateFormat where possible, since that is already using
the CLDR data for the things it supports.  Remove an unused date format
object from DatePickerDialog.

Add a new method for getting the standalone month names from applications,
although @hidden for now because it is an API change.

Pass the standalone month names down to native code in Time so that
tztime's strftime() can use them.

And then the bulk of the change: replace all the names for the months
and the days of the week, and AM and PM, and yesterday, today, and tomorrow,
with strings from CLDR.  And replace several of the date format strings
with ones derived from CLDR, but reformatted to use strftime() style
instead of SimpleDateFormat style.

All these resource changes go into new donottranslate-cldr.xml files
and are removed from strings.xml so that they aren't part of the
normal translation process and the translators don't have to bother
with them (and risk messing them up).
2009-05-15 10:15:50 -07:00
svetoslavganov
75986cf9bc Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut) 2009-05-14 23:47:05 -07:00
Android (Google) Code Review
c4cdc7d8a1 Merge change 1611 into donut
* changes:
  Replace the search dialog images so that they correctly center the microphone and magnifying glass (they were all off by 1 pixel).
2009-05-13 17:35:11 -07:00
Mike LeBeau
37caecd08d Replace the search dialog images so that they correctly center
the microphone and magnifying glass (they were all off by 1 pixel).
2009-05-13 17:33:25 -07:00