269 Commits

Author SHA1 Message Date
Dianne Hackborn
c4db95c077 First pass at reworking screen density/size APIs.
This changes the names of the directories in aapt, to what you see
in the list of DpiTest resources.  Also adds a new "long" configuration
for wide screens, which the platform sets appropriate, and introduces
a new kind of resizeability for not large but significantly larger
than normal screens which may have compatibility issues.
2009-07-21 18:28:42 -07:00
Mike LeBeau
eb1eab1214 Remove unused search dialog layout files. 2009-07-20 22:53:02 -07:00
Romain Guy
c444805f9b Fix the style of preferences headers in the light theme. 2009-07-16 13:16:46 -07:00
Eric Fischer
9c947e9eca Fix a few date format strings to put backslashes in front of apostrophes.
I forgot that the apostrophes get lost on the way through aapt if you
don't quote them.
2009-07-14 16:16:06 -07:00
Android (Google) Code Review
3139297f1e Merge change 7035 into donut
* changes:
  Fixes #1972593. Updates AppSecurityPermissions styles in Theme.Light
2009-07-13 17:52:59 -07:00
Romain Guy
17606f8852 Fixes #1972593. Updates AppSecurityPermissions styles in Theme.Light 2009-07-13 17:52:19 -07:00
Eric Fischer
0560209bcd Import new translations 2009-07-13 15:42:14 -07:00
Dianne Hackborn
4554f30c83 CLOSE_SYSTEM_DIALOGS can't be protected. 2009-07-10 17:30:50 -07:00
Android (Google) Code Review
7cd43797ae Merge change 6806 into donut
* changes:
  Add CLDR data files for Norway and Croatia.
2009-07-10 14:42:41 -07:00
Eric Fischer
bd5a8b2adc Add CLDR data files for Norway and Croatia.
The locale picker now wants the locale to always have a country, not just
a language, so having something for the country is necessary to let these
be chosen.
2009-07-10 13:54:02 -07:00
Dianne Hackborn
854060af30 Fix bug #1873249i: Apps can DoS/brick device
This is the problem where various things are listening for broadcasts
(such as battery status, PIN/PUK/Network) that an application can send
to cause harm to the system.

Solving this is tricky because many of these broadcasts are sticky,
and I have never figured out how to do permissions with sticky
broadcasts in a sane way.  So instead, I am going to punt on the
general problem and just brute force it:

There is new a way for system components to declare specific
broadcast actions to be protected, which means that only the system
and the phone can send them.  This is good enough for now.  None
of it is exposed in the public API so we can make something a little
less stupid in the future if we ever need to.
2009-07-09 18:14:31 -07:00
Android (Google) Code Review
65e9d2285e Merge change 6629 into donut
* changes:
  Rename "no" arrays.xml file to be in the correct "nb" locale.
2009-07-09 11:54:52 -07:00
Eric Fischer
45146d9521 Rename "no" arrays.xml file to be in the correct "nb" locale. 2009-07-09 11:00:45 -07:00
Satish Sampath
313ea433d1 Make suggestion text color change based on the item state.
We support a ColorStateList reference now as a valid font color value
in the given html and manage html strings for all supported states
which we dynamically set while drawing the items.

This will get checked in along with changes to GlobalSearch,
EnhancedGoogleSearchProvider and Browser to make them use the new
model.

Bug: http://b/issue?id=1865037
2009-07-09 16:48:16 +01:00
Dianne Hackborn
2af632f87d Add new <path-permission tag for use by global search.
This adds a new <path-permission> tag you can use inside of a <provide>
to define additional path-based permissions that broaden the global
read and write permissions.  The initial use for this will be global
search, so that a content provider that is protected by permissions
can make a part of itself available to global search under another
permission.  This addresses the issue with global search not being able
to request permissions it would need of providers it doesn't know
about at build time.
2009-07-08 18:08:13 -07:00
Satish Sampath
d21572cd44 NEW_API: Expose autoUrlDetect searchable attribute.
If provided and true, URLs entered in the search dialog while searching within this activity would be detected and treated as URLs (show a 'go' button in the keyboard and invoke the browser directly when user launches the URL instead of passing the URL to the activity). If set to false any URLs entered are treated as normal query text.
The default value is false. This is an optional attribute.
2009-07-08 15:09:08 +01:00
Romain Guy
771afdddc9 Add new textColorPrimaryInverseDisableOnly color to resources. 2009-07-07 17:35:34 -07:00
Romain Guy
97bdafa216 Update RatingBar's assets in indicator mode. 2009-07-07 11:56:15 -07:00
Romain Guy
7ac6f3dac0 Fixes #1963214. ProgressDialog was using the wrong indeterminate progress asset. 2009-07-06 14:31:39 -07:00
Joe Onorato
3a3b6a12bf Fix the comment -- "charged" not "sharted." Also, the other
strings on that screen seem to have periods.  I think that's
wrong, but it's better to be consistent that right.
2009-07-06 15:49:04 -04:00
Joe Onorato
55c05e3ed3 Fix the comments for the string resources for the charge status. 2009-07-06 15:38:30 -04:00
Joe Onorato
c83edf47f4 Fix bugs 1317754 - "Idle screen displays "Charging (100%)" even when fully charged."
and 1885870 - "Shorten 'Clear notification' button to 'Clear' to match latest design"
2009-07-06 14:56:53 -04:00
Eric Fischer
c08dd9e27e Add CLDR data/formats for newly-translated locales. 2009-07-01 11:10:35 -07:00
Mike LeBeau
f763e8f42d Add new attribute 'searchSettingsDescription' for use within an app's
searchable.xml. This attribute defines the string to be shown as the
description a searchable in the 'searchable items' section of system
search settings.
2009-06-30 18:26:21 -07:00
Dianne Hackborn
1dac277f93 Implement issue #1943927 (need notification in status bar when adb is active)
This is a little hacky -- we just assume that if adb is enabled and power
is connected through usb, then it is active.

The icons and text are temporary until final design is provided.
2009-06-30 13:40:51 -07:00
Romain Guy
b5537c4522 Replace indeterminate progress animated asset with new ones 2009-06-30 12:39:18 -07:00
Android (Google) Code Review
48d4f67300 Merge change 5692 into donut
* changes:
  Adjust the character picker layout a little so it will fit on the screen.
2009-06-29 15:34:05 -07:00
Eric Fischer
48d2c4a904 Adjust the character picker layout a little so it will fit on the screen.
Previously when there were three rows of characters, the Cancel button
would hang off the edge a little.

Bug 1747709
2009-06-29 15:30:11 -07:00
Joe Onorato
8aeaf2e079 The BACKUP permission should have the signatureOrSystem protectionLevel,
because the setup wizard isn't signed by the same cert as the framework.
2009-06-29 14:46:30 -04:00
Romain Guy
f4f7046183 Update spinner's drawables. Clean up resources, pave the way for new animation. 2009-06-26 19:21:54 -07:00
Dianne Hackborn
723738cfae Expand support for different screen sizes.
Applications can now declare that they support small, normal, or
large screens.  Resource selection can also be done based on these
sizes.  By default, pre-Donut apps are false for small and large,
and Donut or later apps are assumed to support all sizes.  In either
case they can use <supports-screens> in their manifest to declare
what they actually support.
2009-06-26 13:37:05 -07:00
Christopher Tate
111bd4acdb Start backing up wallpaper
This CL does the following:
   + adds an AbsoluteFileBackupHelper class for managing backup of files
     known by absolute path, not based off of the app's getFilesDir() root
   + bumps up the collection interval from its testing-only default of 1 second
     to 3 minutes
   + adds a SystemBackupAgent class to the main system package and names it as
     the android:backupAgent for the main OS package.  Right now this agent
     only backs up & restores the wallpaper file.
   + amend the Wallpaper Service to inform the Backup Manager when the wallpaper
     changes.

On the subject of the 3-minute collection interval before the backup actually
occurs:  this can be short-circuited from an adb shell.  Running the command
'bmgr run' will cause the Backup Manager to kick off any pending backup
operations immediately.
2009-06-24 18:45:56 -07:00
Eric Fischer
fed0bcfae3 Spell out the month names in the de_AT date format file.
It should be inherited from base de anyway, but all the others are
explicit about everything so be consistent.
2009-06-24 14:20:04 -07:00
Mike LeBeau
6f8e592347 Move to a single dropdown background for the search dialog. This one
is full-screen width but has rounded corners on the bottom so it doesn't
look crappy if the list is not full-screen height. This was already
being used for in-app search, so I just got rid of the old global search
background and use the in-app one for everything.

By removing the lines in SearchDialog, I'm causing it to rely on the
value specified for the dropdown background in
frameworks/base/core/res/res/layout/search_bar.xml.
2009-06-24 09:56:16 -07:00
Romain Guy
e29f064383 Fixes #1905761. Updates the height of ACTV's drop down whenever the IME changes. 2009-06-23 21:27:02 -07:00
Roy West
3fbd946bac Edits to SD card notification strings to shorten them.
They are now very short and blunt. The real fix is to make
 them marquee or open another dialog or something as discussed in the bug.
 I hope these are short enough for Donut so all essential text is visible
in the notification.
Bug 1760196
2009-06-23 16:28:57 -07:00
Eric Fischer
f089c32994 Fix a few more blatantly wrong date formats.
Make punctuation in German and Italian numeric formats self-consistent.
Add missing long standalone Italian month names.
Fix doubled month words in Japanese, Chinese, and Korean.
2009-06-22 15:54:09 -07:00
Android (Google) Code Review
bbf781379b Merge change 4947 into donut
* changes:
  Yet another round of trying to get the date formats right.
2009-06-22 13:48:02 -07:00
Eric Fischer
651e2dc0d2 Yet another round of trying to get the date formats right.
The change this time is to prefer a format derived from an interval format
to one that is inherited from the root locale.  Only a few locales don't
define any interval formats at all and are still have to get anything
from the root locale.
2009-06-22 11:55:37 -07:00
Leon Scroggins
9ce4c6c5cf Make browser bookmarks permissions part of the public API. 2009-06-22 09:14:02 -04:00
Mike LeBeau
fb5b0824ed Set the search bar's AutoCompleteTextView to ellipsize=end.
After Romain's change 4829, we can set this to make hint text
ellipsize (and thus not line wrap) in the search dialog.
2009-06-20 23:41:25 -07:00
Grace Kloba
3af8e9389e Change addCertificate to take byte[] instead of String as we don't know the encoding.
In WebView, if we run into the certificate, we will save it to the Keystore instead of sending it to the WebKit.
2009-06-19 15:09:34 -07:00
Dianne Hackborn
3d74bb4ab2 Add "why?" button to low battery dialog.
This takes the user to the power usage activity.
2009-06-19 11:46:58 -07:00
Eric Fischer
693a223722 Use standalone month name instead of format month name in year-month format.
I think this is the last place the Czech date formats still had problems.
2009-06-18 16:37:41 -07:00
Android (Google) Code Review
77dcf735ff Merge change 4561 into donut
* changes:
  Work around the Czech lack of abbreviated month names.
2009-06-18 12:20:50 -07:00
Eric Fischer
5669ce59aa Work around the Czech lack of abbreviated month names.
Make the date formats that want abbreviated month names use either
the full name or a numeric format.
2009-06-18 11:34:06 -07:00
Mike LeBeau
df1ff2cb33 Use a full-screen-width version of the in-app search dropdown with
rounded corners. We may decide to use this for global search too,
I'll try that out in a bit.
2009-06-18 11:02:22 -07:00
Mike LeBeau
0b1ff191cd Icons for create a contact and call contact suggestions, to be used by all
contacts providers.
2009-06-18 10:52:31 -07:00
Romain Guy
d20927410c Fixes #1414069. Display recent activities with two lines of text. 2009-06-17 10:40:29 -07:00
Dan Egnor
cb05cc4acb Fix the build: Remove ADD_SYSTEM_SERVICE, which I had accidentally
reintroduced in an errant and clumsy git merge operation.

Also remove permission label and description strings for now-deleted
permissions FOTA_UPDATE and (within the SettingsProvider package)
WRITE_GSERVICES.
2009-06-15 16:50:51 -07:00