8547 Commits

Author SHA1 Message Date
Mike LeBeau
c2fd9adf0e Add constant to android-common for voice search's EXTRA_CALLING_PACKAGE,
and use it from SearchDialog.
2010-02-12 17:51:31 -08:00
Doug Zongker
33f7a80f76 @hide the bizarro Base64 stream constructors
With no usages of these "backwards" streams, it's not clear that we
want to support them forever in the API.

Also fixed some badly cut-and-pasted javadoc.

Change-Id: I4811d22e493bf2b8eaf79b9e95526e7eab5f27ee
2010-02-12 17:41:40 -08:00
Doug Zongker
d2affae13d add a Base64 implementation to the API
b/1413917 - RFE: Base64 utility class
Change-Id: I11697859e1f78f596b92d2e03a49ed1be04ae42d
2010-02-12 17:13:56 -08:00
Chris Tate
cf36010357 Merge "Remove BACKUP_DATA permission and associated checks" 2010-02-12 16:30:39 -08:00
Gilles Debunne
f5c6eff63d Force layout on TableRows when column widths are shrinked or streched.
Also features some comment typos and import re-ordering.

Change-Id: I32cb14419d7d349064032718469daf62a0a72e3a
2010-02-12 15:57:12 -08:00
Adam Powell
f2a204e792 Added proper overscrolling scroll bar behavior to GridView 2010-02-12 15:54:59 -08:00
Gilles Debunne
a10b48d5a5 Merge "Closed tabs removed from layout." 2010-02-12 15:50:05 -08:00
Christopher Tate
a87240c227 Remove BACKUP_DATA permission and associated checks
Any package can now participate in backup/restore, without requiring any
manifest-declared permission.  *Control* of the backup manager is still
guarded by the BACKUP permission, which is signatureOrSystem.

Change-Id: I116fcfcd4cd255e3c976330da1c4dea7d4faae9d
2010-02-12 15:49:30 -08:00
Mike LeBeau
60d21566fc Merge "Really fix the build - one more change to SearchDialog which shouldn't have been submitted." 2010-02-12 15:30:42 -08:00
Mike LeBeau
0ffc570598 Really fix the build - one more change to SearchDialog which shouldn't have
been submitted.
2010-02-12 15:30:12 -08:00
Brad Fitzpatrick
0a3e94d017 Merge "Log previous SQL statement also when logging "COMMIT;" operations." 2010-02-12 15:20:14 -08:00
Amith Yamasani
0499498935 Add a new KEYBOARD_TAP haptic feedback type for very short, low-latency vibration.
The minimum value varies from device to device, so this is useful for defining
the shortest and most efficient vibration. The VibratorService creates a Thread
when playing back vibration patterns, so this allows you to avoid thread creation
and associated scheduling delays by specifying a one-shot duration in the config
file.
2010-02-12 15:10:37 -08:00
Dianne Hackborn
046ceb572f Merge "Totally remove Unicode.cpp and rely on ICU" 2010-02-12 14:49:54 -08:00
Kenny Root
a9886c580b Totally remove Unicode.cpp and rely on ICU
Unicode.cpp used a packed data table for character data that essentially
duplicated ICU's functionality.

Change-Id: Ia68fe4ac94e89dc68d9a3f45f33f6e648a5500b7
2010-02-12 14:37:42 -08:00
Scott Main
f2522ce487 Merge "API change. add cycle_interpolator resource (it's the only one missing among all Interpolators) and update public.xml and current.xml with the new resource." 2010-02-12 14:37:15 -08:00
Mike LeBeau
80eeeb7095 Merge "Make the corresponding frameworks change to add VoiceRecognitionService to the list of SDK sample apps." 2010-02-12 14:31:00 -08:00
Scott Main
749ee4fefd API change.
add cycle_interpolator resource (it's the only one missing among
all Interpolators) and update public.xml and current.xml with the new resource.
2010-02-12 14:13:27 -08:00
Mike LeBeau
9c57aca188 Make the corresponding frameworks change to add VoiceRecognitionService to
the list of SDK sample apps.
2010-02-12 14:09:55 -08:00
Dianne Hackborn
96898b38fa Merge "Add Pointer Location to the window manager." 2010-02-12 13:55:00 -08:00
Jean-Baptiste Queru
d85639afb6 Merge "Public Download Manager API" 2010-02-12 13:48:51 -08:00
Dianne Hackborn
90d2db3d21 Add Pointer Location to the window manager.
The window manager now has pointer location built into it.
Viva la touch!
2010-02-12 13:19:06 -08:00
Brad Fitzpatrick
b28c7972bd Log previous SQL statement also when logging "COMMIT;" operations.
Previously, as somewhat expected, the top SQL statements showing up in
the SQL analysis dashboards from developer phones was just "COMMIT;"
statements, which is pretty uselessly ambiguous.

Now the logs for commit operations look like:

I/db_operation( 1249): [/data/data/com.google.android.gsf/databases/subscribedfeeds.db,COMMIT;DELETE FROM _deleted_feeds WHERE _sync_account=? AND _syn,461,com.google.process.gapps,100]
I/db_operation( 1290): [/data/data/com.android.providers.contacts/databases/contacts2.db,COMMIT;SELECT account_name, account_type FROM _sync_state,126,android.process.acore,100]
I/db_operation( 1249): [/data/data/com.google.android.gsf/databases/talk.db,COMMIT;INSERT OR REPLACE  INTO providerSettings(value, name) VAL,252,com.google.process.gapps,100]
I/db_operation( 1377): [/data/data/com.android.providers.calendar/databases/calendar.db,COMMIT;SELECT localTimezone, minInstance, maxInstance FROM Calen,948,,100]
I/db_operation( 1377): [/data/data/com.android.providers.calendar/databases/calendar.db,COMMIT;SELECT begin-(minutes*60000) AS myAlarmTime, Instances.ev,82,,83]

It doesn't totally pin-point the offending code, but it should get us
most of the way there.  We may enhance this logging again in the
future.
2010-02-12 12:49:41 -08:00
Adam Powell
1257b1016c Merge "Fix javadoc link for SDK build breakage" 2010-02-12 11:35:17 -08:00
Adam Powell
4886d40091 Fix javadoc link for SDK build breakage 2010-02-12 11:32:47 -08:00
Amith Yamasani
93c0a0d90c Merge "Fix key debounce (was too aggressive and buggy) and dismiss mini keyboard on cancel event." 2010-02-12 10:50:32 -08:00
Andrei Popescu
d0534f4efb Merge "Implement navigator.isApplicationInstalled() API" 2010-02-12 10:38:03 -08:00
Andrei Popescu
a6d747d5c7 Implement navigator.isApplicationInstalled() API
This CL contains the framework plumbing to pass the package names to WebKit.

Fix b: 2371005
2010-02-12 18:34:19 +00:00
Adam Powell
0b8bb4282a Overscrolling modifications. Overscroll will not allow the user to
scroll content out of view. Scrolling will slow down halfway to the
barrier point. API added in View. AbsListView, ScrollView,
HorizontalScrollView all use this API. Overscrolling uses haptic
feedback. Added scroll barrier pattern to config.xml.
2010-02-12 10:26:25 -08:00
Valentin Kravtsov
cccd63c8e8 Fixing the bug where mic button is not shown
Change-Id: I8ac7bd4c1db85058f863bcfaf5ee30212644b2bd
2010-02-12 14:19:11 +00:00
Nicolas Roard
ac6df2d037 Move the animations in the UI thread 2010-02-12 11:38:41 +00:00
Dianne Hackborn
470969346d Add APIs for mapping between new and current package names.
This will allow Market and others to find out what the "real" name
of a package is, when it is currently running under the old name of
a previously installed version.
2010-02-11 20:02:20 -08:00
Jim Miller
b509065a58 Merge "Fix 2438785: Add missing key code to landscape keyboard and fix log spew." 2010-02-11 19:18:56 -08:00
Amith Yamasani
7aa936e836 Fix key debounce (was too aggressive and buggy) and dismiss mini keyboard on cancel event.
Set a 70ms debounce time - i.e., if you spend less than 70ms on the touch-up key,
which was less time than the time spent on the previous key (assuming they weren't the same),
then don't emit the last key. Use the previous key that you lingered on for longer.
2010-02-11 18:51:25 -08:00
Brad Fitzpatrick
6a35387617 Measure walltime in ContentResolver and SQLiteDatabase operations logging.
The forgotten parts from Id72f718c / d72f718c9c.  Whoops.

Tested by watching a device's logcat -b events and observing no huge
or negative values.  And this time with the right system.img file,
even!
2010-02-11 18:06:51 -08:00
Charles Chen
5a4b1d9e63 Merge "Hiding the new TextToSpeech Intent extras for voice data check to fix the build." 2010-02-11 17:49:20 -08:00
Charles Chen
f1e245f740 Hiding the new TextToSpeech Intent extras for voice data check
to fix the build.
2010-02-11 17:45:55 -08:00
Brad Fitzpatrick
1202cf15e3 Merge "Measure walltime in ContentResolver and SQLiteDatabase operations logging." 2010-02-11 17:30:58 -08:00
Jim Miller
ec52eedc2c Fix 2438785: Add missing key code to landscape keyboard and fix log spew. 2010-02-11 17:28:29 -08:00
Brad Fitzpatrick
d72f718c9c Measure walltime in ContentResolver and SQLiteDatabase operations logging.
Previously, SQLiteDatabase was using Debug.threadCpuTimeNanos(), which
doesn't include I/O time (user-perceived latency), and ContentResolver
was using System.currentTimeMillis(), which didn't account for deep
sleeps.

Now both are consistently using SystemClock.uptimeMillis().
2010-02-11 17:07:51 -08:00
Raphael
dc2df328b3 Fix build.
Change-Id: Ica616f038436e3639d12064327ddd0a9fa49af8b
2010-02-11 17:01:16 -08:00
Charles Chen
387e805147 Merge "Adding Intent extra strings to TextToSpeech.Engine for doing voice data checks." 2010-02-11 16:57:43 -08:00
Charles Chen
76d9c3cb4f Adding Intent extra strings to TextToSpeech.Engine for doing
voice data checks.
2010-02-11 16:44:45 -08:00
Mike LeBeau
f26919e386 Merge "Improve a comment in RecognitionService." 2010-02-11 16:32:08 -08:00
Mike LeBeau
2f853ea47a Improve a comment in RecognitionService. 2010-02-11 16:31:34 -08:00
Mike LeBeau
cb6351c3a3 Merge "Use the new RecognitionService.SERVICE_INTERFACE instead of RecognizerIntent.ACTION_RECOGNIZE_SPEECH when finding a voice recognition service." 2010-02-11 16:25:52 -08:00
Mike LeBeau
cb0be8a530 Use the new RecognitionService.SERVICE_INTERFACE instead of
RecognizerIntent.ACTION_RECOGNIZE_SPEECH when finding a voice
recognition service.
2010-02-11 15:01:27 -08:00
Dianne Hackborn
315ada7fbb Get rid of the limit-unlock policy control.
This is merged with force-lock.  These both allow effectively the same thing,
so there is no reason to junk up the user experience with them as separate
entities.
2010-02-11 14:36:30 -08:00
Shimeng (Simon) Wang
51c02dbf75 Enhance URL regular expression to match more Unicode chars.
Enhance URL regular expression to match legal one byte Unicode characters in
Internationalized Resource Identifiers as detailed in RFC 3987.  Specifically
two byte Unicode characters are not included.  Not all things in RFC 3987 is
implemented, this is just an enhancement for recognizing more common used one
byte Unicode characters.

This change helps Browser address bar identify more valid URL without scheme
typed in, such as 현금영수증.kr

make-iana-tld-pattern.py is modified to contain only Top Level Domain
regular expression generation.  Other parts of WEB_URL pattern are in
solely in Patters.java for better consistency and maintenance.
2010-02-11 14:07:44 -08:00
Mike LeBeau
9a31962404 Merge "Add SERVICE_INTERFACE and SERVICE_META_DATA constants to RecognitionService, to be used by anyone implementing a voice recognition service. Also define a new <recognition-service> styleable to be used in such service's metadata xml." 2010-02-11 14:05:27 -08:00
Mike LeBeau
378ae126d9 Add SERVICE_INTERFACE and SERVICE_META_DATA constants to RecognitionService,
to be used by anyone implementing a voice recognition service. Also define
a new <recognition-service> styleable to be used in such service's metadata
xml.

Still to do: Change VoiceSearch's GoogleRecognitionService to respond to this
intent, and actually use this intent instead of ACTION_RECOGNIZE_SPEECH here
in RecognitionService.
2010-02-11 14:02:46 -08:00