Commit Graph

650 Commits

Author SHA1 Message Date
Ray Chen
44dcf65871 Make createVideoThumbnail and createImageThumbnail look consistent.
Change-Id: I9a4798fefe3968ac847d46100036a6dde39791c9
2010-04-05 13:06:39 -07:00
Bjorn Bringert
11a7ba367f Support for apps search in apps provider contract
Bug http://b/issue?id=2559078

Change-Id: Ic0d3ac3af2ca5f066618e279786af2df11cd0113
2010-03-31 14:32:09 +01:00
Irfan Sheriff
a3bd409a0a settings variable for wifi saved state
We add a variable for saving wifi state
to restore after tethering.

Bring up wifi on boot up if the state indicates so.

Bug: 2537983
Change-Id: I9c6548b93df6fcbc0cec1e6b857f7224dc6d1b2c
2010-03-25 15:10:34 -07:00
Bjorn Bringert
98bfa39596 Use a secure setting for default browser geolocation permissions
Partly reverts I6308b476ad18b1d71d7438b936c592a45365c9f0

Bug: http://b/issue?id=2535598

Change-Id: Ib488c6d4f10a87b714ecb78eef6fe58f572907c6
2010-03-25 14:04:45 +00:00
Amith Yamasani
e861ec11c4 Fix 2242164 Soft keyboard keeps getting enabled even if I disable it
On keyboardful devices, it is possible to disable the system soft input
method. Something changed in eclair that caused the ime to be re-enabled
on every package manager update (packages added/deleted).

Now keep track of disabled system imes in the settings db and search
in that list before enabling a system IME on package changes.

Every time the user goes to settings to enable/disable imes, the list
is re-created.

Any new system IMEs that may be added via an OTA will get enabled if
they have a different package name.
2010-03-24 21:39:27 -07:00
Dan Egnor
3a8b0c18a4 Limit DropBox storage to 1000 files (by default).
Also does trimming asynchronously (not directly in the broadcast receiver).

Bug: 2541253
Change-Id: I7daf8bc618e2dce68a98571f5f7fbce4df1d6a76
2010-03-24 17:48:20 -07:00
Leon Scroggins
e77852c885 Do not provide a way to use an AsyncTask from a non main thread.
Fix for http://b/issue?id=2539948

This public API can be called from any thread, so do not use an
AsyncTask.  In a separate changelist, the caller now uses an
AsyncTask instead.

Change-Id: I646950964323f8c749f9aa2176226561c6f2b21f
2010-03-24 15:11:13 -04:00
Dianne Hackborn
2ccda4dc8d Improve switching to car mode, retain night mode option.
Fiddle with how we go into car mode to try to ensure we get a clean
transition.  Also have the system take care of remembering the night
mode setting so it will stay at what you want.

Change-Id: Icb94fdd961c7a192f7707ec71544485a1ea12455
2010-03-22 21:49:15 -07:00
Marco Nelissen
abc2819328 Include "album artist" when inserting items in the media provider.
Change-Id: Ic34e2d54557409866dc35c29ee397afdfe874762
2010-03-18 17:15:56 -07:00
Erik
42f1957817 b/2483233 Made each reminder time a unique intent
Snoozing alarms was causing a leapfrog effect which would drop the
alert in the middle because of PendingIntent. By making each intent
unique to a given time this will no longer occur.

Change-Id: I6ca6821f7f8879a299775f4fca4e2ad0de55f1bc
2010-03-17 16:19:27 -07:00
Charles Chen
ceffa1597d Adding secure setting for storing a list of enabled TTS plugins.
Change-Id: I972ae4fb71e430828b7d4b297613f6a21da3c982
2010-03-17 14:50:31 -07:00
Irfan Sheriff
9ab518ad79 softAp framework changes
Remove AP persist settings
Add new netd interface
Handle errors
Handle AP config change
Bug: 2413908
Change-Id: I31a1221ef5479da8d4a2620f0f0ee0b62539bc69
2010-03-16 19:54:17 -07:00
Leon Scroggins
fe1143b43b Call close on Cursors in finally blocks.
Fix for http://b/issue?id=2511581

Also call delete instead of deleteHistoryWhere, since we are only
considering non bookmarks anyway.

Change-Id: I00c052db3d27d61592688e7a160e721d5f82b210
2010-03-15 11:23:00 -04:00
Ken Shirriff
3646d056ce Merge "Make sure Browser cursors are closed" 2010-03-12 14:52:24 -08:00
Ken Shirriff
29c228e074 Make sure Browser cursors are closed
finalizer errors were occurring due to unclosed cursors, maybe
causing ANRs.

Change-Id: Ibe75f7dbe7b591023a1560a5ffbfe84fac694ef2
2010-03-12 14:31:16 -08:00
Daniel Lehmann
63e914096e Framework changes to allow VCards containing multiple entries
Bug:2501468

Change-Id: I004997c6ed9351e2600e7446615af9e60a14fda8
2010-03-12 13:44:31 -08:00
Dan Egnor
a455d19486 Record some logcat output with crashes, ANRs, etc..
Shelling out to logcat from the system server makes me queasy,
so this is turned off by default -- it must be enabled individually
for each error type (system_app_anr, etc) via a secure settings
value (which I plan to poke into from gservices for internal use).

Even when enabled, it happens in a side thread, unless the system
server is about to die anyway (system server restart).

Change-Id: Id6d88bcd78d3625f0364a5fe9c771046601a5a14
2010-03-12 13:01:45 -08:00
Marc Blank
3ba8324e7a Merge "Add ORGANIZER_CAN_RESPOND to Calendars column" 2010-03-11 20:32:26 -08:00
Marc Blank
7f355e43b1 Add ORGANIZER_CAN_RESPOND to Calendars column
Change-Id: I6c3030772fb769546175a024804f8cd2debfd98c
2010-03-11 20:27:54 -08:00
David Brown
458e8062c3 Add INCALL_POWER_BUTTON_BEHAVIOR setting.
This is part 1 of the fix for bug 2364220 "Accessibility improvements for
ending calls".  This change adds a new (hidden) constant
Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, for a setting that controls
whether the Power button hangs up the current call, or just turns off the
screen.

Bug: 2364220

Change-Id: I14d4a89b27e99cac51dc16826d217072d999b2d6
2010-03-11 17:18:54 -08:00
Tom Taylor
0dd3bdab24 Add a new meta_data column
Add a new column to both the pdu and sms tables. This change just adds
the column definitions. Bug 2505620

Change-Id: I34b2794566a2900932ae34bdded4ed361d503d07
2010-03-11 13:37:17 -08:00
Fabrice Di Meglio
4bb75b9e35 Merge "Fix bug #2493102 (Sync keeps getting stuck, or at least very slow)" 2010-03-11 09:20:57 -08:00
Patrick Scott
73f7537b30 Limit the projection to just the url.
Todo: bulk request the icons to avoid posting a billion messages.

Bug: 2496872
Change-Id: I6298f8d6f3000cfbbf56c6bed5f98b9836706f6d
2010-03-11 10:33:28 -05:00
Leon Scroggins
aa27045a2c Use AsyncTask to update the history in the background.
Part of http://b/issue?id=2485421

Change-Id: Iccb2c3fc22e14eb1eb88d98ebb4499df14ffb511
2010-03-11 09:45:10 -05:00
Fabrice Di Meglio
1dfc8a2518 Fix bug #2493102 (Sync keeps getting stuck, or at least very slow)
- use sql bindargs and extract usefull sql statements
- code cleaning and formatting

Change-Id: I717bf063b3f009e7369b70618f834d780ad6baa3
2010-03-10 17:49:46 -08:00
Dianne Hackborn
b8b11a0b1d Further improvements to window management!
Fix issue #2493497: Stuck in the Emergency dialer - Home/Back keys doesn't work
This was another case of not updating the window focus when needed, this time
when the lock screen was hidden.

Also re-arrange the layout/animate flow to address issues where you would see
a flicker of whatever was behind the lock screen when showing a new activity that
hides the lock screen.  This was because we were deciding to hide the lock screen
during the layout phase, which meant we had to do it without considering whether
it had drawn.  So we could hide the lock screen before the window is shown for the
first time after being drawn.  Now we can do this in the policy during animate, so
we can wait until the window is drawn and actually being shown.

The flow in perform layout is thus significantly changed, where the layout and
animate loops are both under the same repeating loop.  The actual flow from this
should be the same, but it now allows the policy to request a new layout after
the animation loop is done.  This actually cleans up a number of things in this
code as the complexity has increased.

Finally this includes a change to the ui mode manager when switching modes, to do
the resource configuration switch at a different time.  This makes transitions
between modes much cleaner (though not yet perfect).

Change-Id: I5d9e75c1e79df1106108dd522f8ffed6058ef82b
2010-03-10 16:47:57 -08:00
Daniel Sandler
1c7fa4836b Add VIBRATE_IN_SILENT to the settings database & backup.
Change-Id: Id31e24ef0536278ccb66b22bba7ed2b47eb1a371
2010-03-10 15:01:25 -05:00
Dmitri Plotnikov
4a8a310aae New (hidden) API for ContactsProvider status.
Bug: 2498528
Change-Id: I95ab8b68c3d3caa5698e79c60ccb9794091e8b8a
2010-03-08 19:43:21 -08:00
Amith Yamasani
156c435455 Move lockscreen settings to secure table to prevent tampering. b/2343673
Migrate old settings to secure on upgrade.
2010-03-08 15:42:48 -08:00
Brad Fitzpatrick
1877d0158b Add "call" method on ContentProvider.
This permits implementing interfaces which are faster than using
remote Cursors.  It then uses it for Settings & SettingProvider, which
together account for ~50% of total ContentProvider event loop stalls
across Froyo dogfooders.

For fetching Settings this looks like it should reduce average
Settings lookup from 10 ms to 0.4 ms on Sholes, once the
SettingsProvider serves most gets from in-memory cache.  Currently it
brings the Sholes average down from 10ms to 2.5 ms while still using
SQLite queries on each get.
2010-03-05 12:08:39 -08:00
Robert Greenwalt
1533020321 Merge "Update framework tethering UI" 2010-03-04 18:47:24 -08:00
Dmitri Plotnikov
28853c5f09 Merge "Adding a mime type for the phone lookup URI." 2010-03-04 18:28:00 -08:00
Robert Greenwalt
e7085e909d Update framework tethering UI
Getting rid of notification dialog - maybe the entire TetherActivity.
Also getting rid of toasts - to ephemeral.
2010-03-04 18:20:58 -08:00
Dmitri Plotnikov
0b0b8a8dae Adding a mime type for the phone lookup URI.
Bug: 2486764
Change-Id: I0077fff8af0044efc4c5322816768073636e072f
2010-03-04 18:20:08 -08:00
Irfan Sheriff
5321aef4a2 Wifi AP framework changes first pass
Bug: 2421638
Change-Id: Ic5ea8f7560a7fe5e1b0769daa5d92cc33eefc692
2010-03-04 16:07:14 -08:00
Leon Scroggins
d2334cb68a Create a method to find matching URLs and use it in updateVisitedHistory.
The method for finding matching URLs is taken from Bookmarks.java in
the Browser package.  When looking to see if the URL is already in
the database, include versions which have/don't have "http" as well
as "www."

Part of fix for http://b/issue?id=2442391
2010-03-02 17:21:52 -05:00
Daniel Sandler
7491d8757f Merge "New vibrate/silent mode behavior." 2010-03-01 17:16:55 -08:00
Ken Shirriff
cfa8fd0799 Remove unused Calendar.insertVEvent method 2010-03-01 16:42:42 -08:00
Marc Blank
918a95b9c9 Merge "Rename _SYNC_LOCAL_ID to _SYNC_DATA" 2010-03-01 16:18:27 -08:00
Marc Blank
5b8c69d95a Rename _SYNC_LOCAL_ID to _SYNC_DATA
* This is being used as a discretionary column by Exchange calendar
  sync, so rename to avoid association with old usage

Change-Id: I544e285fa04d252c945c1953b57ef67da0e588ae
2010-03-01 16:17:50 -08:00
Paul Westbrook
37acc3122c Merge "Bug 2464063" 2010-03-01 14:21:03 -08:00
Paul Westbrook
1d93d4cedc Bug 2464063
Remove Browser.EXTRA_SHARE_TITLE, since Intent.EXTRA_SUBJECT is the
standard way to set a title for a SEND intent
2010-03-01 13:06:48 -08:00
Wei Huang
ee49fedc26 define the "seen" column for sms and pdu tables. 2010-03-01 10:26:31 -08:00
Marc Blank
7c02ef117e Merge "Put _SYNC_LOCAL_ID into event entities" 2010-03-01 08:37:20 -08:00
Marc Blank
2bd4fd279f Put _SYNC_LOCAL_ID into event entities
* This column is used by the Exchange sync adapter when sending change
  emails to attendees.

Change-Id: Ib23c07a30b41bfcbae874ae8aaa448fae2cfb6c3
2010-02-28 09:51:51 -08:00
Daniel Sandler
6329bf7b1e New vibrate/silent mode behavior.
In earlier versions of Android, "vibrate mode" (in which
only alarms and media produce sound, but notifications may
operate the vibe motor) was only accessible by adjusting the
ringer volume (via the device's volume rocker) down until
the "vibrate" icon appeared (between the lowest ring volume
and silent mode).

Many users prefer that "silent mode" always allow vibration.
Others prefer Android's historical behavior, in which silent
mode stops the vibes as well.

To accommodate these two distinct usage patterns, we now
allow the user to decide whether vibration is allowed in
"silent mode", a user interface abstraction that now spans
both AudioManager.RINGER_MODE_VIBRATE and
AudioManager.RINGER_MODE_SILENT.

To minimize API impact (and therefore maximize backward
compatibility), RINGER_MODE_VIBRATE and RINGER_MODE_SILENT
remain unchanged. What has changed is what happens when the
user activates silent mode, either via Settings,
GlobalActions (longpress on power), volume rocker, or the
keyguard tab. In essence, there is now only one "silent"
position in these controls, and whether RINGER_MODE_VIBRATE
or RINGER_MODE_SILENT is actually set on the AudioService is
determined by a new one-off setting
(System.VIBRATE_IN_SILENT).  This new setting isn't meant to
be a long-term API, however: in the future we hope to
replace and extend this design with a much more
sophisticated set of systemwide feedback profiles. ETA TBD.

Related changes:
  * I09ad7d69 (GlobalActions and keyguard)
  * I22ba7bcf (Settings app)

Bug: 2457183
Change-Id: I14cf91b0910261ffdfd1bf302423f41ec747d057
2010-02-26 15:37:37 -05:00
Fred Quintana
a834949aff Merge "deprecate SyncConstValue, since it is now only used by the deprecated ContactsProvider interface" 2010-02-26 09:50:18 -08:00
Chris Tate
3f3e53bc30 Merge "Be sure to back up / restore some new settings" 2010-02-25 17:20:50 -08:00
Marc Blank
50d89f9616 Merge "Define the new lastSyncedAttendeeStatus column" 2010-02-25 16:59:54 -08:00
Christopher Tate
14c2d79028 Be sure to back up / restore some new settings
Added in this CL:

   Power sounds enabled
   Dock sound enabled
   Lock/unlock sounds enabled
   Auto-restore app data on install

Change-Id: Ie1c3215e926282e7cac5b82cd6196636049f7f85
2010-02-25 16:53:23 -08:00