649 Commits

Author SHA1 Message Date
Android (Google) Code Review
764916d01b Merge change 23383 into eclair
* changes:
  Combine the "Permission Requested" title and subtitle into one string.
2009-09-16 14:36:56 -04:00
Eric Fischer
ee452ee535 Combine the "Permission Requested" title and subtitle into one string.
The translators don't get the strings in order, so having a single sentence
split across two strings makes it difficult to get good translations.
2009-09-16 10:33:47 -07:00
Mike Lockwood
268a573aed Use separate resources to control orientation change for car and desk docks.
Also set default values to -1 (no orientation change).
Specific products should use overlays to customize dock orientation behavior.

Change-Id: Iae26939295842b9ac2f48fdcc23ea01dafec10fe
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-16 12:11:05 -04:00
Dianne Hackborn
93e462b79d Implement issue #1780928: Need support hiding nav keys.
This implements support for devices whose hardware can hide
their navigation keys.  It works much like the existing keyboardHidden
configuration, and for compatibility uses the same configuration
change bit.

Also add FLAG_TURN_ON_SCREEN for windows, which has the system
cause the screen to be turned on when the window is displayed.
Great fun when used with FLAG_SHOW_WHEN_LOCKED!

Change-Id: I0b867f19af85cfd8786a14cea194b34f7bdd9b7a
2009-09-15 22:50:40 -07:00
Android (Google) Code Review
c6587dc870 Merge change 25178 into eclair
* changes:
  Add RotarySelector widget to android.internal for use by lock screen and incoming call screen.
2009-09-15 22:12:58 -04:00
Dianne Hackborn
9767e41d92 Some improvements for wallpaper configuration.
This introduces a new activity that you can derive from to implement
a wall paper configuration activity.  This is supposed to select
a theme based on whether it is being run to configure a real wallpaper
or a preview, but this is going to be more difficult to do than I
thought. :(

Also fix a problem in the white theme where the list view's background
was being set to white, so it wouldn't work on a transparent bg.

Change-Id: I26d5a8695a3c878a1664eb09900eded57eaff990
2009-09-15 18:59:31 -07:00
Android (Google) Code Review
e74050a9ca Merge change 25175 into eclair
* changes:
  Allow only System Service to send most Bluetooth intents.
2009-09-15 21:08:37 -04:00
Karl Rosaen
e4d95d02a2 Add RotarySelector widget to android.internal for use by lock screen and incoming call screen. 2009-09-15 17:46:57 -07:00
Nick Pelly
72440a0e2c Allow only System Service to send most Bluetooth intents.
Change-Id: I9f63425995f12741b60b85cdffe5a94e97ca03f1
2009-09-15 17:21:10 -07:00
Evan Millar
e727f18cf2 Add the FasttrackBadgeWidget.
This widget is an extension of ImageView that takes care of the standard
fasttrack badging and on-click behavior. It should be used in any
applications that display contact photos.

This view's name will have to be changed before release, and will be
kept private until the name change is made. At that point the view will
be made public api.

Change-Id: I4704e0e979466929ad7b2ef11911681a5028b4a7
2009-09-15 13:00:49 -07:00
Android (Google) Code Review
0ae011b6f6 Merge change 24990 into eclair
* changes:
  change to use the new CALLER_IS_SYNCADAPTER flag
2009-09-15 15:26:42 -04:00
Bjorn Bringert
ed2c13a9d2 Revert "Deprecate showSearchIconAsBadge and icon search attrs"
I tried to revert a flag, but that doesn't actually work
and ended up deprecating the entire attribute.

This reverts commit ab50b86b79936623b5e326f2ed84b3c947c8ec93.
2009-09-15 19:49:10 +01:00
Dan Murphy
951764b970 Add automatic lighting control framework
Add changes to have the ability to turn on and off the
automatic light sensing for the device.  This is fully configurable
and is by default not  present.  Vendors should override the ALS setting
to enable the automatic lighting controls.

These changes will add a check box to the Brightness settings menu to give control
to the user to allow the device's display lighting to be controlled via the slide bar
or the auto lighting system.

If the user selects auto then the slide bar will become invisible.  Manual mode
will present the slide bar to the user.

Change-Id: I146a6d75b99b08c9b839218ce6b85adf21f9fd73
Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-15 02:29:15 -04:00
Fred Quintana
33f889ae27 change to use the new CALLER_IS_SYNCADAPTER flag 2009-09-14 20:55:43 -07:00
Bjorn Bringert
ab50b86b79 Deprecate showSearchIconAsBadge and icon search attrs
mlebeau says:
"Basically, because we now show the app icon for in-app
search, showSearchIconAsBadge is a bit unnecessary, but it does in
fact still work. Basically if either showSearchIconAsBadge or
showSearchLabelAsBadge are specified, we grow the height of the search
bar and place the provided icon or the provided label, respectively,
above the text field and app icon. But we do not remove the app icon
if the developer specifies showSearchIconAsBadge - it's still just the
'badge area' above the icon."

Fixes:
http://b/issue?id=2105329
"Deprecate searchable attributes 'showSearchIconAsBadge' and 'icon'"

Change-Id: Ie2976aafe42b4ab870be9e64b34eb0ed441ebbb0
2009-09-14 06:59:50 +01:00
Scott Main
f65bc1823a am d27b1083: docs only. add Searchable resource information to the Available Resources doc and update some some of the attribute documentation to indicate that the icon label is not recommended. and fixing merge issue...
Merge commit 'd27b10837525f341eee7d46013e2177b0bad3c60' into eclair

* commit 'd27b10837525f341eee7d46013e2177b0bad3c60':
  docs only.
2009-09-10 19:33:56 -07:00
Scott Main
d27b108375 docs only.
add Searchable resource information to the Available Resources doc
and update some some of the attribute documentation to indicate
that the icon label is not recommended.
and fixing merge issue...

Change-Id: I1b1a62aa9804f4a0bf2f93328dde90b9f7aec50a
2009-09-10 19:22:48 -07:00
Jim Miller
70e1ad7d99 Add smallIcon and accountPreferences references to AuthenticatorDescription. Update after path conflict.
Update API for new AuthenticatorDescription preferences.xml
2009-09-10 18:10:53 -07:00
Wink Saville
88e3f827e6 Allow an alternate eri file.
For testing purposes it is deseriable to allow
vendors to provide an alternate eri file. This
fixes Part A of bug 2108379.

Bug:2108379
Change-Id: I51703c9ac211ced053418e28e277dfab68deea21
2009-09-10 14:51:09 -07:00
Dianne Hackborn
477e3be424 Fix issue #1943927: need notification in status bar when adb is active
Just a string tweak.

Change-Id: I823445a2db80e6101ebb592a5cee05f369dd4d1d
2009-09-10 14:28:04 -07:00
Dianne Hackborn
bcbcaa7edd Wallpapers, animations, pending intent.
Some more tweaks and fixes to wallpapers.  Make sure wallpapers are
told they are not visible when the screen is off.  Add some new animations
for transitions across tasks, and fiddle with many of the existing
animations.  Clean up the relationship between translucent activities
and animations.  Add new API to start a PendingIntent from an
activity.

Change-Id: Ie0bf45fe44081bb6982c75361257a55d9cd9d863
2009-09-10 12:08:50 -07:00
Amith Yamasani
da256fabed Fixed the fastscroll thumb asset in hdpi.
Asset was 1 pixel taller than necessary and was causing scaling artifacts.
2009-09-09 18:28:44 -07:00
Android (Google) Code Review
046263ce35 Merge change 24220 into eclair
* changes:
  Import revised translations.  DO NOT MERGE
2009-09-08 16:58:33 -07:00
Eric Fischer
5cacfb9df2 Import revised translations. DO NOT MERGE 2009-09-08 16:54:05 -07:00
Android (Google) Code Review
e989496e2b Merge change 24194 into eclair
* changes:
  Make the hardkeyboard long press dialog look the same as that of soft keyboard.
2009-09-08 15:33:50 -07:00
Amith Yamasani
38d838d3ae Make the hardkeyboard long press dialog look the same as that of soft keyboard.
New assets for transparent buttons and background.
2009-09-08 14:25:25 -07:00
Dianne Hackborn
0d23b82be2 Fix $#%^&%!! SDK build.
Change-Id: I03841e00d2d67af88fed716753aedabb5dbe48d9
2009-09-07 23:57:26 -07:00
Dianne Hackborn
eb034652c2 Implement all of the infrastructure for configuring wallpapers.
Actually being able to configure a wallpaper relies on additional
work in the launcher and wallpapers that will be in another change.
Also note that this breaks all existing wallpapers, since they now
need to include a meta-data item about themselves.  This also
will be fixed in another change.

Change-Id: I97d2c2bd07237abc32f92b9147c32530a2f73c71
2009-09-07 22:48:02 -07:00
Dianne Hackborn
25994b4306 Wallpapers: new transitions, hiding when not visible, other cleanup.
This is work on the transitions with wallpapers.  There are now new
animations specifically for leaving the wallpaper and returning to
it, which allow us to have a consistent animation when entering home
and returning to it.  I also renamed the existing animations across
wallpapers, and cleaned up some junk in the various interpolators.

This also now hides the wallpaper surface when it is not visible,
to get rid of the wallpaper flickers people complained about albeit
in a somewhat brutal way. :)  (Though really returning us to the
previous behavior with the same previous bugs and name back to them
not being very visible, yay!)  There is are also some bug fixes
here and there about managing the wallpaper visibility that this
change revealed.

Change-Id: I913990a9a81651728122ed2e1101b75ed2c36fcb
2009-09-04 14:28:42 -07:00
Dianne Hackborn
dd9b82c283 Add better service reporting.
This will be used elsewhere.

Change-Id: Id561fa7fed5eb65446312cb697813483903d33a6
2009-09-03 14:11:02 -07:00
Daniel Sandler
435b8a3c8a New, darker tab widgets for the platform.
Helps address the long-running http://b/2086871 ; Contacts is
legible again (if low-res).
2009-09-03 13:28:15 -04:00
Daniel Sandler
0824096822 Fix http://b/issue?id=2096107 (cosmetic issue for menus in WVGA)
The divider 9-patch was rendered quite wrongly.  I repaired it to remove the
gap described in the bug report, as well as to match color with the horizontal
divider (divider_horizontal_bright.9.png).
2009-09-03 11:46:06 -04:00
Android (Google) Code Review
66c70e13d9 Merge change 23529 into eclair
* changes:
  Make it an error to use a bare apostrophe in aapt, and adjust warnings/errors.
2009-09-02 11:17:18 -07:00
Christopher Tate
5e1ab335e6 Expand apps' control over the settings restore process
Applications can now specify two more aspects of the restore process:  whether
they need to run with their own custom Application subclass rather than being
launched in the usual restricted mode during restore, and whether it's okay for
the backup manager to kill the app process once restore has completed.  The new
manifest attributes for these are, respectively, android:restoreNeedsApplication
and android:killAfterRestore.

If unspecified in the manifest, restoreNeedsApplication is false, and
killAfterRestore is true.

In order to support kill-after-restore cleanly, this change also adds a new
system-process-only interface to the Activity Manager, which will schedule a
"commit suicide" event on the target app's main thread looper.

The framework backup agents have been given the appropriate new backup
attributes as well.
2009-09-01 20:59:36 -07:00
Eric Fischer
c87d25215c Make it an error to use a bare apostrophe in aapt, and adjust warnings/errors.
In practice, no one ever writes an apostrophe in an aapt string with the
intent of using it to quote whitespace -- they always mean to include a
literal apostrophe in the string and then are surprised when they find
the apostrophe missing.  Make this an error so that it is discovered
right away instead of waiting until late in QA or after the strings have
already been sent for translation.  (And fix a recently-introduced string
that has exactly this problem.)

Silence the warning about an empty span in a string, since this seems to
annoy people instead of finding any real problems.

Make the error about having a translated string with no base string into
a warning, since this is a big pain when making changes to an application
that has already had some translations done, and the dead translations
should be removed by a later translation import anyway.
2009-09-01 15:20:30 -07:00
Daniel Sandler
f6aa42f968 Create new hdpi versions of 1x data statusbar icons.
Fixes http://b/2086838 with new, original artwork (i.e. not from TAT) to meet
Thursday build deadline.
2009-09-01 14:47:30 -04:00
Daniel Sandler
473e933f29 Fix http://b/issue?id=2086835 (unlock pattern graphics misaligned).
(Designers changed the dimensions of some of the graphics. DONT_DO_THAT.)
2009-08-31 11:07:49 -04:00
Dianne Hackborn
f810d1a88b Put vibration patterns in resources.
Change-Id: Id78ee43b2d5672e8eaf66d27d6822d92c674f467
2009-08-30 11:05:48 -07:00
Dianne Hackborn
284ac93aa3 More work on wallpapers: animations, lifecycle, scaling, etc.
Yet more work on improving the behavior of wallpapers.  This fixes a few
problems in their lifecycle (corresponding change in the picker also
required for this), makes their animations better for hardware that supports
alpha fades, adds animations for the wallpapers themselves, eliminates
fixed size wallpapers, and adjusts the API for retrieving a wallpaper
bitmap to take care of scaling the raw wallpaper image to match the current
desired width and height.

Change-Id: If1c0aaceba4ea4e175dcb7a8416ca7ddbb9bfa6f
2009-08-30 10:53:53 -07:00
Android (Google) Code Review
62e592a61b Merge change 23023 into eclair
* changes:
  Armor string format tokens with translation placeholders.
2009-08-28 10:48:29 -07:00
Eric Fischer
cfce0aa58b Armor string format tokens with translation placeholders.
Change-Id: I2f1b1f0e9b028a9f66c4543afe5c7bdce486db15
2009-08-28 10:40:03 -07:00
Daniel Sandler
c035f7c79f Final high-density frameworks artwork drop from designers (dated 25-Aug-2009). 2009-08-28 09:04:53 -04:00
Mike LeBeau
e9df3cf79c resolved conflicts for merge of 1e348378 to eclair 2009-08-27 23:54:12 -07:00
Dianne Hackborn
49237345d8 Add platform infrastructure for features.
This introduces a new mechanism to define features associated with
a platform, query the current device for the available features,
and enforce that apps requiring features that aren't available can't
be installed.

Also now allows uses-library to specify that a library is optional,
so the lack of such a library will not prevent the app from being
installed (but if it does exist it will be correctly linked into
the app).

Change-Id: I5b369b46cfa0b3d37c9e08fd14ef1098a978e67b
2009-08-27 21:51:00 -07:00
Karl Rosaen
590f63433c Revert "Remove third party support for Quick Search Box (aka global search)."
This reverts commit a647b7f29d65a7792cede74284e714b591337992.
2009-08-27 17:42:48 -07:00
Android (Google) Code Review
1005569fbb Merge change 23012 into eclair
* changes:
  Fix issue #2084148: Define the format for the auto focus preview for barcode scanning
2009-08-27 16:58:21 -07:00
Dianne Hackborn
e5276a7474 Fix issue #2084148: Define the format for the auto focus preview for barcode scanning
Add new manifest/aapt support for specifying device features an application
requires.  The aapt badging now returns these (as well as uses-permission since
I need to look for those anyway); if an app doesn't explicitly request the
camera feature but does request the permission, then aapt will say that it has
requested both the basic camera feature as well as the autofocus feature.

Here's what you put in your manifest to say you need a camera but don't need
autofocus:

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-feature android:name="android.hardware.camera" />
    <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

Here's what will be seen from aapt:

uses-permission:'android.permission.CAMERA'
uses-feature:'android.hardware.camera'
uses-feature-not-required:'android.hardware.camera.autofocus'

Change-Id: I4dd19cee0486cc54771f5bf14fc9db0e892115d5
2009-08-27 16:28:44 -07:00
Eric Fischer
b2795f46bf Fix strings whose apostrophes were eaten because of the lack of a backslash.
Change-Id: I5738ea969ce233c15550d572fbdb5e62108c1e3e
2009-08-27 14:49:54 -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
69d5e476db Merge change 22722 into eclair
* changes:
  Integrate CDMA provisioning into SetupWizard
2009-08-27 13:01:54 -07:00