Commit Graph

6595 Commits

Author SHA1 Message Date
fd3ddfa6f0 List.GetCheckItemIds no longer includes unchecked items.
Unchecked items remain in the mCheckStates with an associated false value.
Now filtered out.

Added a unit test to ensure non regression.

Change-Id: If0b1a38aa06881055c87a97b3afb2c7fb48656f1
http://b/issue?id=2440815
2010-02-18 10:24:09 -08:00
70bc217703 Merge "Added proper overscrolling scroll bar behavior to GridView" 2010-02-16 10:13:52 -08:00
b9dfb9b403 Download Manager API to support Gmail
Adds APIs to the Download manager to handle downloads based on
opaque ids
2010-02-16 09:25:40 -08:00
642b7c0f19 Merge "Include install location preference when installing packages. Changes include Add new remote call in default container service to determine install location. Rename INSTALL_ON_SDCARD Remove recommentAppInstall method Add some additional flags used in remote stubs. Move check for protected apps prior to copy. Unit tests" 2010-02-16 09:23:51 -08:00
c694aa7597 Merge "tweak the Base64 implementation" 2010-02-16 08:49:38 -08:00
9df2ffd420 tweak the Base64 implementation
- move the encodeInternal/decodeInternal methods into the inner
  "state" classes

- tighten up the inner loop of the encoder and decoder a bit, saving
  about 5% of time in both cases

- improve javadoc

- other little fixes

Change-Id: I72e0ce8502c664a32418cea04636ccdbf4fec17c
2010-02-16 08:48:52 -08:00
bd27544098 Set up the WebTextView before setting its selection.
Fixes http://b/issue?id=2431351
2010-02-16 09:34:47 -05:00
103d53645c Make vCard importer use Organization name when there's no other information available.
Some Contacts users are accustomed to use Organization as a name of the contact when the target contact is for some oraginazion like company, etc., so this change makes sense.

Bug: 2310146
2010-02-16 12:33:01 +09:00
51e43a3481 Add error handling codes into vCard composer.
Bug: 2377678
2010-02-15 09:34:32 +09:00
1c9131c91f Remove all traces of the old checkin service (and its associated parental
control interfaces) from the framework.
2010-02-13 12:40:12 -08:00
0e9d2af2d6 New user interface sound effects:
- Low battery. (http://b/2320026)
 - Dock/undock events.
 - Keyguard lock/unlock events.

New system settings have been created to turn these on/off
and to specify the relevant sound files.

[Production notes: The provided low battery sound and dock
sounds were synthesized; the lock screen sounds are
processed samples of a ballpoint pen click mechanism.]

Bug: 2320026
Change-Id: I374285b0f94f59c7555bb8816580f5a8c802e90d
2010-02-12 23:26:12 -05:00
5b993ce7bc Include install location preference when installing packages.
Changes include
Add new remote call in default container service to determine
install location.
Rename INSTALL_ON_SDCARD
Remove recommentAppInstall method
Add some additional flags used in remote stubs.
Move check for protected apps prior to copy.
Unit tests

DefaultContainerService first parses the file uri(if content uri is specified
it returns a default install internal only value) and returns
a recommended location. Based on which the temporary id is determined
either a file name or a container id and the file is copied there.
This is then later renamed during install.
Todo's light weight parsing of package when determining location since we
just need the install location attribute only when finding out
recomended location. This will also enable to move the check for
updated system apps(cannot be on sdcard) prior to copying.
2010-02-12 18:50:47 -08:00
8fe5571aa4 fix build breakage due to javadoc error
Change-Id: Ie74e8e43a018fce0eaf34efead206ae03b82830a
2010-02-12 18:00:30 -08:00
b125dc5599 Fix MotionEvent pointer API.
Ooops.  The API said that the pointer down and up actions contained
the pointer id, but it is actually the index.  Actually it makes
much more sense for it to be the index, and those ACTION_POINTER_1_DOWN
etc. constants were stupid.
2010-02-12 17:52:22 -08:00
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
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
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
f2a204e792 Added proper overscrolling scroll bar behavior to GridView 2010-02-12 15:54:59 -08:00
a10b48d5a5 Merge "Closed tabs removed from layout." 2010-02-12 15:50:05 -08:00
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
0ffc570598 Really fix the build - one more change to SearchDialog which shouldn't have
been submitted.
2010-02-12 15:30:12 -08:00
0a3e94d017 Merge "Log previous SQL statement also when logging "COMMIT;" operations." 2010-02-12 15:20:14 -08:00
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
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
9c57aca188 Make the corresponding frameworks change to add VoiceRecognitionService to
the list of SDK sample apps.
2010-02-12 14:09:55 -08:00
96898b38fa Merge "Add Pointer Location to the window manager." 2010-02-12 13:55:00 -08:00
d85639afb6 Merge "Public Download Manager API" 2010-02-12 13:48:51 -08:00
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
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
1257b1016c Merge "Fix javadoc link for SDK build breakage" 2010-02-12 11:35:17 -08:00
4886d40091 Fix javadoc link for SDK build breakage 2010-02-12 11:32:47 -08:00
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
d0534f4efb Merge "Implement navigator.isApplicationInstalled() API" 2010-02-12 10:38:03 -08:00
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
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
cccd63c8e8 Fixing the bug where mic button is not shown
Change-Id: I8ac7bd4c1db85058f863bcfaf5ee30212644b2bd
2010-02-12 14:19:11 +00:00
ac6df2d037 Move the animations in the UI thread 2010-02-12 11:38:41 +00:00
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
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
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
5a4b1d9e63 Merge "Hiding the new TextToSpeech Intent extras for voice data check to fix the build." 2010-02-11 17:49:20 -08:00
f1e245f740 Hiding the new TextToSpeech Intent extras for voice data check
to fix the build.
2010-02-11 17:45:55 -08:00
1202cf15e3 Merge "Measure walltime in ContentResolver and SQLiteDatabase operations logging." 2010-02-11 17:30:58 -08:00
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
dc2df328b3 Fix build.
Change-Id: Ica616f038436e3639d12064327ddd0a9fa49af8b
2010-02-11 17:01:16 -08:00
387e805147 Merge "Adding Intent extra strings to TextToSpeech.Engine for doing voice data checks." 2010-02-11 16:57:43 -08:00
76d9c3cb4f Adding Intent extra strings to TextToSpeech.Engine for doing
voice data checks.
2010-02-11 16:44:45 -08:00
f26919e386 Merge "Improve a comment in RecognitionService." 2010-02-11 16:32:08 -08:00
2f853ea47a Improve a comment in RecognitionService. 2010-02-11 16:31:34 -08:00
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