7931 Commits

Author SHA1 Message Date
Android (Google) Code Review
0647b580aa Merge change 25970 into eclair
* changes:
  Make removeBond() call async.
2009-09-20 16:14:54 -04:00
Android (Google) Code Review
3a66413af3 Merge change 25992 into eclair
* changes:
  Add an 'init everything' operation to the first backup pass
2009-09-20 16:10:59 -04:00
Christopher Tate
25a747f5c4 Add an 'init everything' operation to the first backup pass
IBackupTransport.performBackup() now takes a flag "wipeAllFirst", which if set
will result in the entire restore set for the current device/account being wiped
clean prior to the storage of the provided package.  This ensures that a device
on which backup has just been enabled will not confront potentially-stale
information, nor will the restore set potentially contain mismatched data from
orphaned packages.

The Backup Manager has also been revised to pass this flag when first backing up
its master metadata block (and never pass it thereafter unless something has
caused the backup state tracking to be erased, e.g. the user has opted out of
backup and then later re-enabled it).
2009-09-20 12:43:58 -07:00
Android (Google) Code Review
7d9db612bd Merge change 25885 into eclair
* changes:
  handle calendars with an access level of "root"
2009-09-20 15:14:16 -04:00
Jaikumar Ganesh
995ae82f38 Make removeBond() call async.
This call has been synchronus since Bluez3.36.
However, since the semantics for all Bluetooth API calls are
asynchronous make this so too. It does fix an occasional ANR
seen while unpairing.

Change-Id: If81f8ec262ea1f6f62775282ab33855a8669c41a
2009-09-20 11:28:34 -07:00
Android (Google) Code Review
d163f4babe Merge change 25853 into eclair
* changes:
  Don't back up / restore certain sync-related settings
2009-09-20 13:28:41 -04:00
Android (Google) Code Review
9603715ae3 Merge change 25959 into eclair
* changes:
  Add better transition to rotary lock widget when triggering: spin around instead of snap back.
2009-09-20 12:59:59 -04:00
Karl Rosaen
278ec5d6f5 Add better transition to rotary lock widget when triggering: spin around instead of snap back.
Also add some icons and make a layout tweak, used by the lock screen (coming in a commit
to android.policy).
2009-09-20 09:51:46 -07:00
Android (Google) Code Review
eb96a3c3d3 Merge change 25894 into eclair
* changes:
  Adding CONTENT_TYPE to CommonDataKinds.Email
2009-09-20 10:49:05 -04:00
Android (Google) Code Review
4492bcd8b0 Merge change 25938 into eclair
* changes:
  Don't require WAKE_LOCK permission to enable wifi
2009-09-20 10:48:09 -04:00
Mike Lockwood
b4c0b3d8cc Add resources to allow forcing accelerometer based orientation management when docked.
Change-Id: I708507db735e08a13daeff95e106f0a53037f760

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-20 01:57:09 -04:00
Android (Google) Code Review
b8155068ef Merge change 25944 into eclair
* changes:
  Wake the screen if the proximity wakelock is released while the proximity sensor is active.
2009-09-20 00:27:28 -04:00
Android (Google) Code Review
2b1cfef19e Merge change 25937 into eclair
* changes:
  Change the broadcast intent for dock state changes from a sticky broadcast to a sticky ordered broadcast. This is so individual apps can override the default behavior and stop the related dock app from launching.
2009-09-20 00:24:44 -04:00
Mike Lockwood
200b30bba5 Wake the screen if the proximity wakelock is released while the proximity sensor is active.
This fixes a problem that resulted in the screen staying off indefinitely if the prox sensor
is active at the beginning of a bluetooth call and could result in the screen staying off
in other similar circumstances.

Change-Id: Icfa0046d3179f9bb2247e7a3c1f9ff073312667a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-20 00:23:59 -04:00
Daisuke Miyakawa
927b86f3a7 Add config_use_strict_phone_number_comparation, which will be used by internal applications.
Related internal issue number: 1892808
2009-09-19 18:48:03 -07:00
Robert Greenwalt
a99f461b98 Don't require WAKE_LOCK permission to enable wifi
The process for starting wifi was using a wakelock around a message-pass and this was causing
an exception for meer mortals (who don't have WAKE_LOCK permission).

bug: 1750535
2009-09-19 18:14:32 -07:00
Mike LeBeau
1f6c7e6a2b Change the broadcast intent for dock state changes from a sticky broadcast to
a sticky ordered broadcast. This is so individual apps can override the default
behavior and stop the related dock app from launching.
2009-09-19 18:06:52 -07:00
Daisuke Miyakawa
9a24bc563f Implement compareStrictly() using phone_number_compare() written in C.
As per several discussions, we stick to the default behavior now.
In stead, we provide compareStrictly() as a hidden method, so that some
internal components are able to use the method if needed.

Since these are static methods, they cannot refer to the configuration files,
whose values can be obtained only via Resources object.

Please make callers' side if you want to use strict version of compare().

Internal issue number: 1892808
2009-09-19 14:44:02 -07:00
Android (Google) Code Review
e69335f8b4 Merge change 25931 into eclair
* changes:
  Add better APIs for the battery status, and other cleanup.
2009-09-19 17:13:23 -04:00
Dianne Hackborn
edd9316ca9 Add better APIs for the battery status, and other cleanup.
Also add new configs for keeping screen on while docked, which will
be used elsewhere.

Change-Id: Ifaa1118f14fd850ac809895f9a5c9e8c413259b8
2009-09-19 14:03:05 -07:00
Android (Google) Code Review
a382cb8118 Merge change 25929 into eclair
* changes:
  Add API to send an ordered sticky broadcast.
2009-09-19 15:22:19 -04:00
Dianne Hackborn
efa199f016 Add API to send an ordered sticky broadcast.
Change-Id: Ida7081204e226db0cd07ff618c08e308a909ec0c
2009-09-19 12:05:25 -07:00
Android (Google) Code Review
ac810e53b7 Merge change 25779 into eclair
* changes:
  Add new API for fetching UUIDs using SDP.
2009-09-19 14:30:37 -04:00
Jaikumar Ganesh
1caa6d111e Add new API for fetching UUIDs using SDP.
Add new API which clients can use to force an SDP query.
The result is broadcast using an intent having the UUIDs.
The intent is broadcast after a timeout, in case of an error.
This timeout is greater than the page timeout.

Change-Id: I61e6db4c05b34c42f679a66987e37e2063a793b6
2009-09-19 11:29:24 -07:00
Nicolas Catania
338c48554f Moved the toString method in the parent Connection class.
Beefed up the output to get more info in the logs about
a connection.
Personal data is only logged at debug level.
2009-09-19 07:48:06 -07:00
Android (Google) Code Review
ba9bf79d49 Merge change 25911 into eclair
* changes:
  Unhide attributes textAppearanceSearchResultSubtitle and attr/textAppearanceSearchResultTitle. We had discussed doing this in Donut but looks like it never happened. We need these attributes for voice search so now's as good a time as any.
2009-09-19 04:29:22 -04:00
Mike LeBeau
5825b64e4a Unhide attributes textAppearanceSearchResultSubtitle and
attr/textAppearanceSearchResultTitle. We had discussed doing
this in Donut but looks like it never happened. We need these
attributes for voice search so now's as good a time as any.
2009-09-19 01:19:52 -07:00
Android (Google) Code Review
22bfcbca4f Merge change 25831 into eclair
* changes:
  When double tap zoom out to overview mode, force reveal the full title bar if it is partial visible.
2009-09-19 02:09:44 -04:00
Dmitri Plotnikov
abf15c30c1 Adding CONTENT_TYPE to CommonDataKinds.Email
Also removing deprecated API

Change-Id: Ie3bd17282bf57c3a73497c91ce233ed135c79502
2009-09-18 20:29:45 -07:00
Android (Google) Code Review
92b27dafe9 Merge change 25858 into eclair
* changes:
  There is a know issue in PV regarding the video size return. Need to put a 1 second sleep before we get the video dimension
2009-09-18 23:07:00 -04:00
Android (Google) Code Review
4b5e7d908b Merge change 25874 into eclair
* changes:
  ContactsContract: Adding joined columns to the CommonDataKind class definitions.
2009-09-18 22:31:54 -04:00
Android (Google) Code Review
cd0aceb710 Merge change 25883 into eclair
* changes:
  Draw a green triangle using OpenGL 2.0 APIs.
2009-09-18 21:30:35 -04:00
Debajit Ghosh
2dcaafd167 handle calendars with an access level of "root" 2009-09-18 18:29:37 -07:00
Jack Palevich
953254b2f2 Draw a green triangle using OpenGL 2.0 APIs. 2009-09-18 18:27:37 -07:00
Android (Google) Code Review
84ab79c7f0 Merge change 25873 into eclair
* changes:
  Fix transformation on windows.
2009-09-18 20:56:25 -04:00
Dmitri Plotnikov
0dc9841821 ContactsContract: Adding joined columns to the CommonDataKind class definitions.
The rationale is this. Since all these joined columns are currently on
different classes, we routinely see code like this:

private static final String[] PROJECTION_PHONE = {
   Data._ID, // 0
   Data.CONTACT_ID, // 1
   Phone.TYPE, // 2
   Phone.NUMBER, // 3
   Phone.LABEL, // 4
   Data.DISPLAY_NAME, // 5
};

After this change, the above declaration changes to:

private static final String[] PROJECTION_PHONE = {
   Phone._ID, // 0
   Phone.CONTACT_ID, // 1
   Phone.TYPE, // 2
   Phone.NUMBER, // 3
   Phone.LABEL, // 4
   Phone.DISPLAY_NAME, // 5
};

Change-Id: I2e84bca3277aeef06eec20cee8c2119ef3b90a9f
2009-09-18 17:48:27 -07:00
Dianne Hackborn
65c2387206 Fix transformation on windows.
The window offset was being applied incorrectly in relation to the
animation transform.

Change-Id: Ia578129f48cf6c57ae795af862d2b6ce5d447994
2009-09-18 17:47:02 -07:00
Android (Google) Code Review
27272bfac6 Merge change 25839 into eclair
* changes:
  Fix potential ArrayIndexOutOfBoundsException.
2009-09-18 20:09:34 -04:00
Yu Shan Emily Lau
17d7ea4947 There is a know issue in PV regarding the video size return. Need to put a 1 second sleep before we get the video dimension 2009-09-18 16:27:24 -07:00
Android (Google) Code Review
e785d1804d Merge change 25826 into eclair
* changes:
  Suppressed the invalidFrameRate as the framework is not throwing the IOException anymore.
2009-09-18 19:14:32 -04:00
Android (Google) Code Review
95ebd3bdd0 Merge change 25847 into eclair
* changes:
  Fix http://b/issue?id=2099487
2009-09-18 18:59:58 -04:00
Christopher Tate
a286f41908 Don't back up / restore certain sync-related settings
In particular, this no longer attempts to back up the on/off state of specific
backend syncing [gmail/contacts/calendar], nor the "background data" toggle.
The former was causing a great deal of spurious trips through backup as the
notification was being tickled during general sync operation, and the latter
makes little sense at restore time.

Fixes these issues:

b/2097613 - frequent "backup_data_changed" messages in event log
b/2131662 - should not backup background data, master sync settings
2009-09-18 15:56:14 -07:00
Dmitri Plotnikov
de71cb3b6f ContactsContract: Adding joined columns to the Data class definition.
The rationale is this. Since all these joined columns are currently on
different classes, we routinely see code like this:

private static final String[] PROJECTION_PHONE = {
   Data._ID, // 0
   RawContacts.CONTACT_ID, // 1
   Phone.TYPE, // 2
   Phone.NUMBER, // 3
   Phone.LABEL, // 4
   Contacts.DISPLAY_NAME, // 5
};

The most noxious line is RawContacts.CONTACT_ID

After this change, the above declaration changes to:

private static final String[] PROJECTION_PHONE = {
   Data._ID, // 0
   Data.CONTACT_ID, // 1
   Phone.TYPE, // 2
   Phone.NUMBER, // 3
   Phone.LABEL, // 4
   Data.DISPLAY_NAME, // 5
};

Change-Id: I03bfc700e4c8c58a175bc885bf7b807d7fed0744
2009-09-18 15:54:26 -07:00
Evan Millar
7ff7ddf70b Fix http://b/issue?id=2099487
Change-Id: Ib5391cc5e9d17bc4ad964471037e7f9819802a64
2009-09-18 15:45:42 -07:00
jsh
001d0abd3e Fix potential ArrayIndexOutOfBoundsException.
When parsing an SMS message as email, extractEmailAddressFromMessageBody()
checks parts.length >= 1, but then proceeds to access parts[1] (which
may not exist).  Instead, check for parts.length >= 2, and treat
parts.length = 1 as non-email.

b/2122698
2009-09-18 15:31:10 -07:00
Android (Google) Code Review
90d8a6a449 Merge change 25628 into eclair
* changes:
  Inefficient but correct fix for 2122381: call finishBackup after every performBackup
2009-09-18 18:25:33 -04:00
Grace Kloba
17dd1aebf5 When double tap zoom out to overview mode, force reveal the full
title bar if it is partial visible.

http://b/issue?id=2110583
2009-09-18 15:11:51 -07:00
Android (Google) Code Review
b18b0956af Merge change 25829 into eclair
* changes:
  Revert "ContactsContract: Adding joined columns to the Data class definition."
2009-09-18 18:05:50 -04:00
Dmitri Plotnikov
ea36747114 Revert "ContactsContract: Adding joined columns to the Data class definition."
This reverts commit dd768a6a736bc202b62aa20f3282b3cfb285dc7f.
2009-09-18 15:04:58 -07:00
Yu Shan Emily Lau
9d7b2fa808 Suppressed the invalidFrameRate as the framework is not throwing the IOException anymore. 2009-09-18 14:58:56 -07:00