8814 Commits

Author SHA1 Message Date
Nick Pelly
ea5056e5a7 Add documentation to help developers make an RFCOMM conection to a Bluetooth
serial board. They all use a well-known UUID that is not really explained
anywhere official, and this always trips developers up.

Change-Id: I53bda44b580f472b1ff1ad196b25485b68f4b5d5
2010-02-24 11:19:10 -08:00
Erik
eebc8e2e8f b/2441327 Added add account intent to public api.
Added ACTION_ADD_ACCOUNT intent and EXTRAS_AUTHORITIES strings to the public
api so that Calendar can send users to the add account screen directly instead
of via the sync settings page.
2010-02-24 11:05:14 -08:00
Romain Guy
3bfd5ed735 Merge "Add disabled state to the Spinner widget. Bug #2464034" 2010-02-24 10:02:58 -08:00
The Android Open Source Project
563d3a62f3 merge from open-source master 2010-02-24 10:02:55 -08:00
Romain Guy
9897c67c05 Add disabled state to the Spinner widget.
Bug #2464034
2010-02-24 10:02:30 -08:00
Andy McFadden
834481cf8e Merge "Add class init stats to alloc counters (API change)." 2010-02-24 09:38:48 -08:00
The Android Open Source Project
9a352305f8 merge from open-source master 2010-02-24 09:11:10 -08:00
Grace Kloba
681875642a Merge "Temp disable plugin's signature checking." 2010-02-24 09:09:19 -08:00
Kenny Root
9ff1f96fdf Merge "Use UTF-8 strings to avoid duplicate caching, part 1" 2010-02-24 07:52:27 -08:00
Andy McFadden
c4e1bf7282 Add class init stats to alloc counters (API change).
Add calls to retrieve class initialization stats via the allocation
count mechanism.

For bug 2461549.
2010-02-24 07:37:38 -08:00
Daisuke Miyakawa
6c0df0b473 Merge "Purge CallLog." 2010-02-24 03:00:51 -08:00
Bjorn Bringert
7d07408cbe Merge "Use PackageMonitor in SearchManagerService" 2010-02-24 00:22:56 -08:00
Daisuke Miyakawa
0dcb69292e Purge CallLog. 2010-02-24 14:17:15 +09:00
Joe Onorato
0e93b562f4 Merge "Make the notification windowshade work properly with overscroll." 2010-02-23 19:20:22 -08:00
Joe Onorato
f0fda925e6 Make the notification windowshade work properly with overscroll.
Bug: 2432590
2010-02-23 19:18:54 -08:00
Roy West
2854419072 Merge "Edit strings related to calendar permissions, bug 2463956." 2010-02-23 18:09:19 -08:00
Robert Greenwalt
5cde63a60d Merge "Add USB RNDIS enable/disable control" 2010-02-23 18:08:04 -08:00
Roy West
7467d49e61 Edit strings related to calendar permissions, bug 2463956. 2010-02-23 17:18:22 -08:00
Gloria Wang
2e1818a4d1 New API on VideoView widget to suspend/resume a session. Do not release the MediaPlayer client for video suspending/resuming. 2010-02-23 17:05:44 -08:00
Fabrice Di Meglio
d88602df36 Merge "Fix bug #2449594 (device should fold RRULEs, etc., that are longer than 75 chars)" 2010-02-23 17:02:36 -08:00
Eric Fischer
8ca1228168 Merge "Fix rounding of extra spacing when it is negative." 2010-02-23 16:45:41 -08:00
Steve Zeigler
7a36788f4a These changes add access to some status values in widgets listed below:
widget/CheckedTextView.java:  report if the item is checked or not.

widget/CompoundButton.java:  report if the item is checked or not.

widget/ProgressBar.java:  isIndeterminate(), getProgress(), getSecondaryProgress(), and getMax() report what
sliders and progress bars are showing

widget/TextView.java: report the current selection:  getSelectionStart() and getSelectionEnd()
2010-02-23 16:39:08 -08:00
Grace Kloba
6870eba19f Temp disable plugin's signature checking.
Filed http://b/issue?id=2465450 to re-enable later.
2010-02-23 16:25:21 -08:00
Fabrice Di Meglio
66c5bd9065 Fix bug #2449594 (device should fold RRULEs, etc., that are longer than 75 chars)
also fix a NPE in populateComponent() when Calendar.Events.ALL_DAY property was not defined

Change-Id: Ia5f15755b5af437ee1e661122193f318868ddf6d
2010-02-23 16:15:37 -08:00
Robert Greenwalt
65ae29bd85 Add USB RNDIS enable/disable control
Also adding interface configuration to the tethering machine.
Also fixing netd bug that didn't send up/down portion of iface config command.
2010-02-23 16:04:41 -08:00
Romain Guy
9844b27c05 Merge "Remove unused private assets from Android 1.0." 2010-02-23 16:01:37 -08:00
Romain Guy
3ce488143c Remove unused private assets from Android 1.0. 2010-02-23 16:00:52 -08:00
Brian Carlstrom
778ce48665 Issue 5697: getContextClassLoader returns a non-application classloader
ActivityThread should try to set the value for Java
Thread.getContextClassLoader to the PathClassLoader that loaded the
APK's classes so that Java frameworks that use the Java context class
loader, which is not to be confused with the
android.content.Context.getClassLoader which serves a similar purpose
in the Android framework.

However, we avoid setting the Java context ClassLoader to the APK's
PathClassLoader if there is a static indication that multiple packages
may share the VM, since they could load in an unpredictable order
leading to different values for the thread local Java context
ClassLoader. In this case, we instead use a specially created
WarningContextClassLoader that warns the user the first time the Java
context ClassLoader.

Currently the static indications that a package might share a VM with
other packages are the presence in the AndroidManifest of a
sharedUserId or requesting a non-default application process name.
2010-02-23 15:58:00 -08:00
Joe Onorato
5900dc7c33 Merge "Remove never-used dead code from BackupManager" 2010-02-23 15:09:49 -08:00
Christopher Tate
474507f15a Remove never-used dead code from BackupManager
Change-Id: I93a8341160815e29625a978fee27014beb2c6a26
2010-02-23 15:01:52 -08:00
Bjorn Bringert
ab5d96c5da Use PackageMonitor in SearchManagerService
This should reduce the number of updates to the searchables
list if multiple packages change at the same time.

Fixes http://b/issue?id=2270711

Change-Id: Ieb930022866aa2872f8df1af677e3ea1645349bf
2010-02-23 22:48:46 +00:00
Jim Miller
2ca759dbf5 Merge "Fix 2463886: Allow delayed fetching of DevicePolicyManager in LockPatternUtils." 2010-02-23 14:16:46 -08:00
Jim Miller
5b0fb3a7e8 Fix 2463886: Allow delayed fetching of DevicePolicyManager in LockPatternUtils.
Today we're seeing a crash that's likely caused by a change in the order in which
system services start.

The crash we're seeing happens in response to user interaction which happens after the
boot process completes, so we should re-fetch the DevicePolicyManager if we weren't
able to get it when LockPatternUtils was constructed.
2010-02-23 13:46:35 -08:00
Leon Scroggins
e3844eeb34 Focus the IME on WebView when no textfield is in focus.
This is to fix a particular case where the navigation cache
does not recognize that a textfield is now in focus.  A message
was sent from the WebCore thread telling us to open the IME on
the textfield.  Open it with the WebView as the served view.

Fix for http://b/issue?id=2457459
2010-02-23 16:38:46 -05:00
Doug Zongker
ff592dc2fa fix some minor javadoc errors in AccountManager
Change-Id: Iafc9e5541e56b936a426999e0ae9f99e56dccd51
2010-02-23 12:26:33 -08:00
Adam Powell
925b4da097 Merge "Fixing pressed state in preferences, addresses bug 2310741" 2010-02-23 12:09:07 -08:00
Adam Powell
5375116901 Fixing pressed state in preferences, addresses bug 2310741 2010-02-23 12:05:14 -08:00
Dan Egnor
c0e147d469 Merge "Update AccountManager's javadoc." 2010-02-23 11:57:13 -08:00
Dan Egnor
661f0130de Update AccountManager's javadoc.
Includes several potentially controversial major changes:

- Remove the amount of repeated boilerplate explanations of common
idioms.  I find them much more distracting than useful.  The same
things are explained, but in fewer places.

- Add more narrative/directive information instead of merely descriptive
commentary; I included a lot of "color" about who particular methods are
intended for and why you might use them.

- Add explicit guidance (in the class javadoc) about the common usage pattern.
Explicitly document the auth token invalidation dance, which is highly
nonobvious, had never been written down before, and which GMM got wrong,
creating a Latitude conops nightmare they're still digging out of.

- Explain and justify, as best I can, the overall model of account management:
saved credentials, pluggable authenticators, auth tokens, and so on.  Clarify
some things, like that setPassword() changes the locally cached credential
but does not set the user's password on the server.

- Clarify what the passed-in Activity parameter is used for.  (It seems silly,
but I was confused by this: is it supposed to be the Activity that actually
performs the password prompt or whatever?  No, it's just a Context for the
startActivity() to be launched from.)
2010-02-23 11:53:59 -08:00
Kenny Root
780d2a1b71 Use UTF-8 strings to avoid duplicate caching, part 1
StringBlock instances containing UTF-8 strings use a cache to convert
into UTF-16, but using that cache and then using a JNI call to NewString
causes the UTF-8 string as well as two copies of the UTF-16 string to
be held in memory. Getting the UTF-8 string directly from the StringPool
eliminates one copy of the UTF-16 string being held in memory.

This is part 1. Part 2 will include ResXMLParser optimizations.

Change-Id: Ibd4509a485db746d59cd4b9501f544877139276c
2010-02-23 10:02:20 -08:00
Bjorn Bringert
cfe79e9220 Merge "Clean up global search and web search activity finding" 2010-02-23 06:28:31 -08:00
Bjorn Bringert
6cf7a325e6 Clean up global search and web search activity finding
This removes the '*' value for android.app.searchable and
android.app.default_searchable that was previously used by apps to say
that they want global search as their search. I think the only
activity that this will affect is the wallpaper chooser in the
launcher, which doesn't seem like it matters.  It could mean that some
third party code will stop invoking global search, but all they would
need to do is call startSearch() with globalSearch=true instead.

Fixes http://b/issue?id=2377433 and http://b/issue?id=2377429

Change-Id: I0252952b44ae85dab31221b598ed79cc24e2b580
2010-02-23 14:27:43 +00:00
Valentin Kravtsov
d162a114cc Increasing the VS button's touchable area
adding invisible padding to the background buttons

Change-Id: Icb8ff9b31e83049520566c2498e1f82067636897
2010-02-23 11:29:17 +00:00
Dianne Hackborn
9e0f5d9a63 Fix some random bugs.
2185256: After open &close of device keyboard shortcut does not added to Home desktop.

ActivityThread was losing the last saved state when restarting or launching into
a paused state.

2366174: defaults not cleared when they should be

PackageManagerService now removes any preferred activity records for a package
when it is uninstalled.

2154556: Battery stats can have an unbounded number of wake locks

We now start combining wake locks into one shared record when we hit a
maximum limit (currently 20).

2442519: Foreground services can have no notification by providing a bogus one.

If the notification manager rejects our notification, the service is forced to
no longer be in the foreground.

2442383: Finalization issues in com.android.server.am.PendingIntentRecord.java

Cleaned up finalization to call super class and avoid the big activity manager
lock (we still need to use the locks inside of the message system, but these
are much less likely to be a problem).

2284190: Cannot call a phone number using adb

We weren't getting the calling uid/pid in startActivity() if the caller did not
supply an application record.
2010-02-22 20:45:58 -08:00
Makoto Onuki
2f6a01858b Fix bug 2183276: Synchronize all mManagedCursors accesses. 2010-02-22 17:27:57 -08:00
Romain Guy
a2fb0b7918 Merge "Prevent crash in AbsSpinner when the selection is out of sync. Bug #196253" 2010-02-22 17:01:26 -08:00
Romain Guy
afc0155718 Prevent crash in AbsSpinner when the selection is out of sync.
Bug #196253

Also do a little bit of syntax cleanup, remove unused code, etc.
2010-02-22 16:48:47 -08:00
Adam Powell
42122b6aa6 Merge "Standard alert dialogs overscroll only when content scrolls" 2010-02-22 16:36:38 -08:00
Brad Fitzpatrick
fde3290374 Merge "Reduce SQLiteDatabase and ContentResolver EventLog logging thresholds." 2010-02-22 16:32:25 -08:00
Adam Powell
8e4e7263e5 Standard alert dialogs overscroll only when content scrolls 2010-02-22 15:18:14 -08:00