18951 Commits

Author SHA1 Message Date
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
Irfan Sheriff
c1ba7431a4 Remove redundant interface disable
Bug: 2274930
Change-Id: Ia1eafe422f6e18b826e53e72a306dd2961b948a6
2010-02-23 16:09:15 -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
James Dong
c23844c604 Merge "Use Java API from xml configuration in the test application" 2010-02-23 15:42:28 -08:00
Dmitry Shmidt
5386b3f91a Merge "Add Arp Cache dump" 2010-02-23 15:25:46 -08:00
Dmitry Shmidt
84b72ec3b4 Add Arp Cache dump
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-02-23 15:21:11 -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
Andreas Huber
d7d22eba3c Propagate errors all the way through the MediaSources and send either MEDIA_PLAYBACK_COMPLETE or MEDIA_ERROR depending on the final reason for running out of buffers to play back.
related-to-bug: 2463749
2010-02-23 14:06:38 -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
Mathias Agopian
80bd6a1637 Merge "remove a dependency of surfaceflinger on libskia" 2010-02-23 12:52:28 -08:00
Doug Zongker
aff2e1b71c Merge "fix error in javadoc" 2010-02-23 12:37:53 -08:00
Doug Zongker
0375fa12c7 fix error in javadoc
The "@link LargeTest" is broken since it doesn't know where that class is.

Change-Id: Ie15e40bac8a1965427e351926b2208775e79cb13
2010-02-23 12:36:06 -08: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
Eric Laurent
22e1ca3fc5 Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected.
The noise is the residual ring tone that is still playing while the call is answered and the
audio route changed to headset or earpiece.

The fix consists in muting the ringing tone when changing mode from ringtone to in call
and delaying the route change until the audio buffers are emptied.
2010-02-23 11:00:56 -08:00
Brett Chabot
e575d3dff5 Merge "Add ability to run tests restricted to given annotation." 2010-02-23 10:46:42 -08:00
Mike Lockwood
c747cd8bd8 Merge "Move LocationTracker from com.google.android to com.android package." 2010-02-23 10:34:52 -08:00
Andreas Huber
42ddfc9495 Merge "Return runtime errors instead of asserting in MPEG4 file format validation, also add more validation to ensure presence of codec specific data for avc, aac and mpeg4." 2010-02-23 10:30:48 -08:00
Andreas Huber
5ee0bce5e0 Return runtime errors instead of asserting in MPEG4 file format validation, also add more validation to ensure presence of codec specific data for avc, aac and mpeg4.
related-to-bug: 2431967
2010-02-23 10:21:39 -08:00
James Dong
f82c76656b Merge "Replace system property retrieval calls with DecoderCapabilities Java API calls." 2010-02-23 10:16:57 -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
Mike Lockwood
191d898468 Move LocationTracker from com.google.android to com.android package.
Change-Id: I75757373e39669955d5f753a31a2a7b78d0b68ed
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-23 07:50:18 -05: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
Bernd Holzhey
6fd5e0ac51 Fix calculation of the next twilight update for locations where the day or night never ends. 2010-02-23 06:04:33 +01:00
Mike Lockwood
e5a1d4a21e Merge "Move LocationTracker test app from vendor/google to frameworks/base/tests" 2010-02-22 20:58:43 -08:00
Mike Lockwood
c9d3be3f0e Move LocationTracker test app from vendor/google to frameworks/base/tests
Change-Id: I49f1bfe2081f2c48fcb22b74aa2377857c2bae6d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-22 23:57:44 -05:00
Dianne Hackborn
f13f60127e Merge "Fix some random bugs." 2010-02-22 20:48:01 -08: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
Mike Lockwood
90c79c4fe6 Merge "Don't start location providers until the system is ready." 2010-02-22 20:39:24 -08:00
Oscar Montemayor
0f70868c83 Merge "Fix bug when adding SET_INSTALL_LOCATION to SettingsProvider database, upgrade path." 2010-02-22 18:16:32 -08:00
Brett Chabot
88e03a9736 Add ability to run tests restricted to given annotation.
And ability to exclude tests with given annotation.

Also fix class cast compile warning in emma output method.

Bug 2239240

Change-Id: I56273a51a8c58a690680bdb612615fab69e6e13f
2010-02-22 18:08:35 -08:00
Guang Zhu
2ee587a9c2 Merge "Quick fix layout test path problems" 2010-02-22 17:50:31 -08:00
Guang Zhu
8cd303aec6 Quick fix layout test path problems
SD card mount point has changed from /sdcard to /mnt/sdcard. layout test was calling getCanonicalPath to determine the path to the test case, which causes problem because /sdcard is now a symlink, and canonical path is actually the "real" path. Using quick dirty fix for now, will properly migrate any hard-coded reference to "/sdcard" to system function calls.
2010-02-22 17:45:05 -08:00
Mike Lockwood
46db504de5 Don't start location providers until the system is ready.
Change-Id: Id545e95705e59ffbaaab8a679a1b7df488813101
BUG: 2461320

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-22 20:42:27 -05:00
Mathias Agopian
8c20ca39c1 remove a dependency of surfaceflinger on libskia
libskia was only used for a small part of SkTransform. We now implement
Transform is surfaceflinger directly.
2010-02-22 17:30:40 -08:00
Makoto Onuki
2f6a01858b Fix bug 2183276: Synchronize all mManagedCursors accesses. 2010-02-22 17:27:57 -08:00