• Home
  • History
  • Annotate
  • only in /frameworks/base/core/tests/
History log of /frameworks/base/core/tests/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
90d5bd8daab404afc50470f5c19ea725bd2466fe 30-Jan-2015 Jon Larimer <jlarimer@google.com> am feb362a5: am a0d3bfbe: am 5c9d0de1: am 545dd853: am 9a425aa7: am 159aa735: am d4031809: am 48c95c43: Fix build breakage in older branches by avoiding <> notation

* commit 'feb362a5d194b30226caf2efbaae77991007c65c':
Fix build breakage in older branches by avoiding <> notation
a0d3bfbe8736fd638621ae48371b6e4e237ed4b1 30-Jan-2015 Jon Larimer <jlarimer@google.com> am 5c9d0de1: am 545dd853: am 9a425aa7: am 159aa735: am d4031809: am 48c95c43: Fix build breakage in older branches by avoiding <> notation

* commit '5c9d0de174caf151937f19aa6898f60bce3fb4f4':
Fix build breakage in older branches by avoiding <> notation
5c9d0de174caf151937f19aa6898f60bce3fb4f4 30-Jan-2015 Jon Larimer <jlarimer@google.com> am 545dd853: am 9a425aa7: am 159aa735: am d4031809: am 48c95c43: Fix build breakage in older branches by avoiding <> notation

* commit '545dd853bffbf778a0a44816ac6ed381b13f2158':
Fix build breakage in older branches by avoiding <> notation
9a425aa71c0ae6fb8c9c84d3e71321a44433d861 30-Jan-2015 Jon Larimer <jlarimer@google.com> am 159aa735: am d4031809: am 48c95c43: Fix build breakage in older branches by avoiding <> notation

* commit '159aa73574804967aded45d06b70df5a8dd64a58':
Fix build breakage in older branches by avoiding <> notation
159aa73574804967aded45d06b70df5a8dd64a58 30-Jan-2015 Jon Larimer <jlarimer@google.com> am d4031809: am 48c95c43: Fix build breakage in older branches by avoiding <> notation

* commit 'd403180997898c98f0be15b810c4c9dd9002f92c':
Fix build breakage in older branches by avoiding <> notation
48c95c4370533bf27e537cbca1e64d060a016c5f 29-Jan-2015 Jon Larimer <jlarimer@google.com> Fix build breakage in older branches by avoiding <> notation

Change-Id: I5e3d523dac1f364f52f0d2cab479c1705d667e5a
oretests/src/android/content/pm/ParceledListSliceTest.java
9570e144fe38a53c507838cc5234225c7a0da315 29-Jan-2015 Jon Larimer <jlarimer@google.com> am ea63fd7f: am 88add689: am a5ccca24: am 2982d648: am de9a76ed: am fc731e6e: Merge "Fix ParceledListSlice to enforce the same concrete types among its elements." into jb-mr2-dev

* commit 'ea63fd7f9b4bb2701c9d12ab8775867dbdeefcf1':
Fix ParceledListSlice to enforce the same concrete types among its elements.
ea63fd7f9b4bb2701c9d12ab8775867dbdeefcf1 29-Jan-2015 Jon Larimer <jlarimer@google.com> am 88add689: am a5ccca24: am 2982d648: am de9a76ed: am fc731e6e: Merge "Fix ParceledListSlice to enforce the same concrete types among its elements." into jb-mr2-dev

* commit '88add68942694fc643518bcf5c26f6c3df7e9aa0':
Fix ParceledListSlice to enforce the same concrete types among its elements.
a5ccca242747d59233ec5ecebc20d4a721e7850e 29-Jan-2015 Jon Larimer <jlarimer@google.com> am 2982d648: am de9a76ed: am fc731e6e: Merge "Fix ParceledListSlice to enforce the same concrete types among its elements." into jb-mr2-dev

* commit '2982d64802ed0d5b59130680c43485e9d7862e50':
Fix ParceledListSlice to enforce the same concrete types among its elements.
2982d64802ed0d5b59130680c43485e9d7862e50 29-Jan-2015 Jon Larimer <jlarimer@google.com> am de9a76ed: am fc731e6e: Merge "Fix ParceledListSlice to enforce the same concrete types among its elements." into jb-mr2-dev

* commit 'de9a76ed997c300a6c5f2f82c517719503af9045':
Fix ParceledListSlice to enforce the same concrete types among its elements.
f741c3727383008b131cd3877cbdb3857e07fc9b 07-Nov-2014 Adam Lesinski <adamlesinski@google.com> Fix ParceledListSlice to enforce the same concrete types among its elements.

Bug:17671747
Change-Id: I896f75738e5b464ccb6c03290f139cc2fa72f966
(cherry picked from commit 3df1c38ee098872352086e03d6f1adb16796ee29)
oretests/src/android/content/pm/ParceledListSliceTest.java
0cce5355b45d835f95a8918b8b803fd977d374e4 26-Nov-2014 Jeff Sharkey <jsharkey@android.com> Sanitize display names, keep extensions intact.

When creating or renaming files on external storage, sanitize the
requested display names to be valid FAT filenames. This also fixes
a handful of directory traversal bugs.

Also relax logic around generating display names to allow any
extension which maps to the requested MIME type. Tests to verify.

Bug: 18512473, 18504132
Change-Id: I89e632019ee145f53d9d9d2050932f8939a756af
oretests/src/android/os/FileUtilsTest.java
55a442e58262e253df965d652bd8219c8d1e72d3 19-Nov-2014 Jeff Sharkey <jsharkey@android.com> Lightweight checkin output for network stats.

Define and print a compact version of network statistics when dump
is requested with the "--checkin" flag. Defaults to last 24 hours,
but included data can be tweaked with various flags.

Groups together detailed network identities into larger umbrella
terms like "mobile" and "wifi."

Bug: 18415963
Change-Id: I70cf9c828ea5c6e5bb6884837d3608f66fbad2e6
oretests/src/android/net/NetworkStatsHistoryTest.java
ef1a177e6c5c3d5b33a3debf899737a03d3c9c85 20-Nov-2014 Eric Rowe <erowe@google.com> Fix wifi reconnection tests.

Bug: 18417638
Change-Id: I1710e8b16d4ae1b32317deb0322a98ad45b4e1aa
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
4902ac4e244051bbc979166c7af2aad982f9f81c 20-Nov-2014 Eric Rowe <erowe@google.com> Fix wifi tethering tests.

Bug: 18418170
Change-Id: Ic3e8b74523c6a8b6003c05258447e9a673541248
onnectivityManagerTest/AndroidManifest.xml
db3d76ab685955aae4a3e363238a2931d89c6f03 13-Nov-2014 Adam Lesinski <adamlesinski@google.com> Merge "Fix ParceledListSlice to enforce the same concrete types among its elements." into lmp-mr1-dev
521ca5f8fba355f526e82dc3a8fc6520e4379874 12-Nov-2014 Jeff Sharkey <jsharkey@android.com> am 2e700004: am d68b87cd: Recover apps with malformed certificates.

* commit '2e7000040e3d836bb591e29515974817afc49488':
Recover apps with malformed certificates.
d68b87cdd402d46013170d9316a31c82be4e4816 12-Nov-2014 Jeff Sharkey <jsharkey@android.com> Recover apps with malformed certificates.

There was a window of time in Lollipop where we persisted certificates
after they had passed through a decode/encode cycle. The well-written
OpenSSL library was liberal when decoding (allowing slightly malformed
certs to be parsed), but then strict when encoding, giving us
different bytes for effectively the same certificate.

A related libcore change (0c990ab4a90b8a5492a67b2b728ac9a4a1ccfa1b)
now returns the original bytes verbatim, fixing both pre-Lollipop
installs and installs after that change.

This change recovers any apps that had been installed during the
window of time described above by doing a one-time check to see if
the certs are effectively equal.

Bug: 18228011
Change-Id: Ib82bd6db718d0490d7a26c9c1014b7c8457a7f2d
oretests/src/android/content/pm/SignatureTest.java
3df1c38ee098872352086e03d6f1adb16796ee29 07-Nov-2014 Adam Lesinski <adamlesinski@google.com> Fix ParceledListSlice to enforce the same concrete types among its elements.

Bug:17671747
Change-Id: I896f75738e5b464ccb6c03290f139cc2fa72f966
oretests/src/android/content/pm/ParceledListSliceTest.java
9a2db6bfb9cb24d3b5b02fe3dc43a7e9699a40bf 08-Nov-2014 Jeff Sharkey <jsharkey@android.com> Merge "Resurrect dusty PackageManagerTests." into lmp-mr1-dev
2a53332343c9fbc734595d269a2c35371227904b 08-Nov-2014 Jeff Sharkey <jsharkey@android.com> Resurrect dusty PackageManagerTests.

Mostly just getting them running again, still a few failures related
to native library symlinks that need more investigation.

Bug: 18048725
Change-Id: I4642adab9fb2b9ec1488b700edcee48c09e36005
oretests/src/android/content/pm/PackageManagerTests.java
50ef3d93adf2614d8394664626b706ab0d7f7de7 07-Nov-2014 Yohei Yukawa <yukawa@google.com> Merge "Minimize the number of default enabled IMEs part 4" into lmp-mr1-dev
b21220efae92a56ff7b4b781fa614a6e3a8a3007 01-Nov-2014 Yohei Yukawa <yukawa@google.com> Minimize the number of default enabled IMEs part 4

This is a follow up CL for recent attempt to minimize
the number of default enabled IMEs.
- part1: I831502db502f4073c9c2f50ce7705a4e45e2e1e3
- part2: Ife93d909fb8a24471c425c903e2b7048826e17a3
- part3: I6571d464a46453934f0a8f5e79018a67a9a3c845

It turned out that the changes made in part2 and part3 are
a bit overkill, and users will see no software keyboards
in some particular situations. The problem we missed in
the previous CLs is the fact that
InputMethodInfo#isDefault is indeed a locale-dependent
value, hence it may vary depending on the system locale.
Existing unittests also failed to abstract such
locale-dependent nature.

In order to addresses that regression, the selection logic
is a bit widely reorganized in this CL. Now the logic is
implemented as a series of fallback rules.

Also, unit tests are updated to be able to 1) test the
order of the enabled IMEs, and 2) emulate the
locale-dependent behavior of InputMethodInfo#isDefault
to enrich test cases.

BUG: 17347871
BUG: 18192576
Change-Id: I871ccda787eb0f1099ba3574356c1da4b33681f3
nputmethodtests/src/android/os/InputMethodTest.java
161977998feebf0a855ea56558464470877040cf 04-Nov-2014 Jeff Davidson <jpd@google.com> Rename BROADCAST_SCORE_NETWORKS to BROADCAST_NETWORK_PRIVILEGED.

This is necessary/desired for two reasons:

1. UX around network scoring shipped with L despite lacking underlying
platform support. We do not want network scoring applications to
trigger this UX on L devices, and therefore we must break the contract
of what defines a network scorer so that apps build against the new
contract don't trigger the old UX.

2. As a start towards generalizing the term "score" for a potentially
broader role in the future, though that role is very much undefined.

Bug: 18160480
Change-Id: If228977513e32e45bc44dbeda24aa18436fdfca6
oretests/src/android/net/NetworkScorerAppManagerTest.java
befe778c73e48417942fc31c06509bac8e5ca0d2 20-Oct-2014 Erik Kline <ek@google.com> Treat optimistic addresses as global preferred.

If the kernel sends notification of an optimistic address then
treat is a useable address (isGlobalPreferred()).

Note that addresses flagged as IFA_F_OPTIMISTIC are
simultaneously flagged as IFA_F_TENTATIVE (when the tentative
state has cleared either DAD has succeeded or failed, and both
flags are cleared regardless).

Additionally: do not consider RFC 4193 ULA addresses sufficient
for "global preffered". They are, by definition, of global scope
but not sufficient for global reachability.

Bug: 17769720
Change-Id: I759623b28fd52758f2d4d76d167f3cafd9319d6a
oretests/src/android/net/LinkAddressTest.java
dd91fb44743f15ee308a4cfedeca6338b6912fdc 28-Oct-2014 Erik Kline <ek@google.com> Merge "(re)define the definition of "provisioned"" into lmp-mr1-dev
f3cab63ef2248aebf2c931cd1e84d5739791fa50 20-Oct-2014 Lorenzo Colitti <lorenzo@google.com> Change removeStackedLink to take an interface name.

This simplifies callers.

Also remove all "implementations" of addStackedLink and
removeStackedLink except the one in LinkProperties, because they
are unused.

Bug: 12111730
Change-Id: Ie294b855facba4b1436299dcb3211b72d9ba448e
oretests/src/android/net/LinkPropertiesTest.java
d3b9fd33c69fa4fb844238c90b1fd343052946d9 24-Oct-2014 Erik Kline <ek@google.com> (re)define the definition of "provisioned"

Specifically:

[1] provide a hasIPv4(), and
[2] a hasIPv6()

each of which requires an IP address, a default route, and
address-family-specific DNS servers to evaluate to true.

Additionally:

[3] redefine isProvisioned() to return the logical OR
of [1] and [2] above.

Any external caller can still use any of the has*() methods to
construct its own, different definition of "provisioned".

Bug: 17769720
Change-Id: Ia692fb8508484ff403d3920c94d0e1db4563f807
oretests/src/android/net/LinkPropertiesTest.java
fa9ed8ca0a08be0b32b2ccc33563a47df1f6d3da 23-Oct-2014 Yigit Boyar <yboyar@google.com> Merge "Added a generic configuration and theme based cache" into lmp-mr1-dev
d422dc358f0100106dc07d7b903201eb9b043b11 25-Sep-2014 Yigit Boyar <yboyar@google.com> Added a generic configuration and theme based cache

For now, only animators use it but we can consider migrating
drawable cache to it as well.

Bug: 17456416
Change-Id: I571b96856805edb171f0fc52e6bff5a365f46b70
oretests/AndroidManifest.xml
oretests/res/anim/reset_state_anim.xml
oretests/res/anim/test_animator.xml
oretests/res/anim/test_state_anim.xml
oretests/res/values-land/dimens.xml
oretests/res/values/dimens.xml
oretests/src/android/animation/AnimatorInflaterTest.java
oretests/src/android/animation/BasicAnimatorActivity.java
oretests/src/android/content/res/ConfigurationBoundResourceCacheTest.java
oretests/src/android/content/res/ResourceCacheActivity.java
58a3ddf5aafacbd84de7104f07a994bb06a9b374 23-Oct-2014 Eric Rowe <erowe@google.com> Add delay in ping connectivity test retry

Change-Id: Id6e36f42b2a2d84605185780fb7a3f2144e7a9b9
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestBase.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
500f7583eda9e80db82b59282bd53cbe1706ab6b 15-Oct-2014 Eric Rowe <erowe@google.com> Add CHANGE_NETWORK_STATE permission to bt tests

Change-Id: Ie0a579de3b7d1163a8fe245eb377f21eeed048a3
luetoothtests/AndroidManifest.xml
2d7576b082b84068fb9d68419b710b9bec49139b 04-Oct-2014 Dianne Hackborn <hackbod@google.com> Fix issue #17752399: Multiple apps broken by GET_TASKS permission change

Keep around GET_TASKS as a permission available to apps, so apps still
think they have it and don't get all uppity because they don't.

Add a new REAL_GET_TASKS that is the actual permission now.

Plus some temporary compatibility code until everyone can transition
fromn GET_TASKS to REAL_GET_TASKS.

Change-Id: I12c1102eed24844685dcbd2fa3b612811603958f
osttests/test-apps/ExternalLocAllPermsTestApp/AndroidManifest.xml
7a8f1a32dcbd93354ba5b8987be9a9d9d0d61519 17-Sep-2014 Jeff Sharkey <jsharkey@android.com> NetworkStats always needs arrays.

Internal logic relies on Arrays.copyOf(), so always give ourselves
valid arrays, using shared empty objects to save overhead.

Bug: 17502649
Change-Id: I5dbb00545bdfe45bbd48144ab505ea08cc92cbcd
oretests/src/android/net/NetworkStatsTest.java
84f20ec49df3bfc8b40a27964ba2b074e5f101fc 16-Sep-2014 Yohei Yukawa <yukawa@google.com> Merge "Minimize the number of default enabled IMEs part 3" into lmp-dev
dc489241cfb3691a87942344cf55efd3d98c1107 13-Sep-2014 Yohei Yukawa <yukawa@google.com> Minimize the number of default enabled IMEs part 3

With this CL, the behavior of getDefaultEnabledImes() changes
as follows:

- Previously system IMEs are always enabled by default as long
as it is a software keyboard that supports En_* subtype. With
this CL, getDefaultEnabledImes() relies on the locale returned
from getFallbackLocaleForDefaultIme() instead of calling
isSystemImeThatHasEnglishKeyboardSubtype() to minimize the
number of enabled IMEs.
- Previously default enabled system IMEs are chosen in a
country-agnostic way. As a result, "en_IN" is enabled even
when the system locale is "en_US". With this CL, the system
first tries to find IMEs with taking the coutnry into account,
and use the country-agnostic way when and only when fallback
logic is required.

BUG: 17347871
Change-Id: I6571d464a46453934f0a8f5e79018a67a9a3c845
nputmethodtests/src/android/os/InputMethodTest.java
ac60bea01fbfafe8687c089d37d45448aab2e823 15-Sep-2014 Guang Zhu <guangzhu@google.com> Merge "temporarily enable wifi verbose logging in download manager test" into lmp-dev
da7638db2e9f09615d6889c5f4b2522610d284c4 15-Sep-2014 Guang Zhu <guangzhu@google.com> temporarily enable wifi verbose logging in download manager test

also temporarily compile against platfrom, not SDK, since we are
using private API

Bug: 17446070
Change-Id: I6da18aca2d5eaf305940514186ef2434e52f15b9
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerTestRunner.java
68c860bb29861e54fd9b868bd5af701b054a1dc0 13-Sep-2014 Yohei Yukawa <yukawa@google.com> Minimize the number of default enabled IMEs part 2

Previously the system tried to enable at least one auxiliary IME
even when the system is not ready. However, this doesn't make
much sense because the user should be able to set up their phone
without auxiliary IMEs. Also, IMEs enabled before the system
becomes ready are kept to be enabled after the system becomes
ready. Thus, we should minimize the number of enabled IMEs
until the system becomes ready.

BUG: 17347871
Change-Id: Ife93d909fb8a24471c425c903e2b7048826e17a3
nputmethodtests/src/android/os/InputMethodTest.java
59cccf93d28648a77860a30349e52b7eeb98436c 12-Sep-2014 Yohei Yukawa <yukawa@google.com> Enrich test cases when enabling default IMEs part 4

This is another groundwork for subsequent fixes.

Notable changes in test cases are:
- simplified test cases for voice IMEs.
- added more test cases for keyboard IMEs.
- introduced assertDefaultEnabledImes() to reduce code duplicate.

BUG: 17347871
Change-Id: I8cf61cfa18ac425a2cccc7823474c3f06dc0fa1e
nputmethodtests/src/android/os/InputMethodTest.java
a8e4c740a8d0dde479b701af4d06f1bcc6a46d82 11-Sep-2014 Eric Rowe <erowe@google.com> Merge "Fix wifi association tests" into lmp-dev
485ceb8506f8566f8cf2f48b40b5ed41233e9941 11-Sep-2014 Eric Rowe <erowe@google.com> Fix wifi association tests

Before fix, test assumed that it was already connected to wifi so remove
these assertions. Also, since association test may be used against
access points with no outside connectivity, remove the ping test to
8.8.8.8 at the end.

Change-Id: I3d4f3d752b72028f642da9f8e9adda4ad18a6a56
onnectivityManagerTest/src/com/android/connectivitymanagertest/WifiAssociationTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiAssociationTest.java
d77adfe52d44396c54a4ce3a7f1e823e8618f27c 11-Sep-2014 Yohei Yukawa <yukawa@google.com> Enrich test cases when enabling default IMEs part 3

This is another groundwork for subsequent fixes.

Notable changes in test cases are:
- A dummy Hinglish IME ("en_US" + "hi") is added
- Added test cases where system locale is "en_GB",
"en_IN", and "hi" as well as "en_US".

BUG: 17347871
Change-Id: Iacf0f47c4dbc147f8153df50ba58fc4da4dacd29
nputmethodtests/src/android/os/InputMethodTest.java
bca817b2e2623c49bbb618f78fe207bedf57f266 11-Sep-2014 Yohei Yukawa <yukawa@google.com> Enrich test cases when enabling default IMEs part 2

This is another groundwork for subsequent fixes.

Notable changes in test cases are:
- isSystemReady == false is now coverted.
- tests can run even when the system locale of test
environment is different from "en_US"

BUG: 17347871

Change-Id: I9434270735d3b37d8b788d41250b23d7950aaeed
nputmethodtests/src/android/os/InputMethodTest.java
cfcbddaff269cbb35192c21e557d34aece2f3d6c 10-Sep-2014 Yohei Yukawa <yukawa@google.com> Enrich test cases when enabling default IMEs

This is another groundwork for subsequent fixes.

Notable changes in test cases are:
- isAsciiCapable is now annotated accordingly.
- "dummy.keyboard0" now has several subtypes like
"en_GB", "en_IN", "hi", "hi_ZZ" like the AOSP
LatinIME.

BUG: 17347871
Change-Id: Ide698ed11c2539ba5862e6b37ea63ed19f8ce566
nputmethodtests/src/android/os/InputMethodTest.java
f8eef096223301d855bc726f7c2f8df2183ceb10 10-Sep-2014 Yohei Yukawa <yukawa@google.com> Merge "Use public APIs to instantiate InputMethodSubtype" into lmp-dev
443c2bafd824779a75cd4b922b6839a8df9795e9 10-Sep-2014 Yohei Yukawa <yukawa@google.com> Use public APIs to instantiate InputMethodSubtype

This is a groundwork for subsequent CLs that are
supposed to improve default input method selection
logics.

Historically we have had a @hide constructor of
InputMethodSubtype. However, this contructor is
a bit obsolete because we can not specify some
parameters that were added in recent platform
releases. We should use InputMethodSubtypeBuilder
instead.

BUG: 17347871
Change-Id: I72ad79682a58344e14380eb20e26edf98aee37cd
nputmethodtests/src/android/os/InputMethodTest.java
5fea53d0853a0995f6432fcc54ed48b6b975db51 10-Sep-2014 Eric Rowe <erowe@google.com> Merge "Allow protected wifi in connectivity tests" into lmp-dev
86e15557c52e2847d2adc8495a281dcf0239506e 10-Sep-2014 Eric Rowe <erowe@google.com> Allow protected wifi in connectivity tests

Change-Id: I31285572f90bfb46cc28fb04e79cb9b407477a7d
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestBase.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
30478148bda4667f9ab9a9cd83f90d6c2fb017ff 09-Sep-2014 Guang Zhu <guangzhu@google.com> add some assert messages to download manager test

Change-Id: If2e1bdd115eddeeb7bdebf0fab29a3756fee4ceb
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerTestApp.java
699a49b9f1d1a7f44a37fa9df96f22f724fbeb1f 08-Sep-2014 Yohei Yukawa <yukawa@google.com> Follow up API signature changes of CursorAnchorInfo part 2

This is another follow up CL for Ic8c6fab58c01206872a34e7e.

Ib2371849d32bb44da9ef59f05e648a476e03699a didn't cover
following renamings. This CL fixes them.

- #getCharacterRect -> #getCharacterBounds
- #getCharacterRectFlags -> #getCharacterBoundsFlags

BUG: 17365414
Change-Id: I120795da3f25f1e2fa71f455f92e3cd1c036c1d5
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
a41c4bcc3dcac9e808c9d524e24454d132790e9a 08-Sep-2014 Yohei Yukawa <yukawa@google.com> Follow up API signature changes of CursorAnchorInfo

This is a follow up CL for Ia8cbb9f6b41cd9509fc0147fd68763dfde
and Ic8c6fab58c01206872a34e7ee604cdda1581364d.

BUG: 17365414
BUG: 17200900
Change-Id: Ib2371849d32bb44da9ef59f05e648a476e03699a
nputmethodtests/run_core_inputmethod_test.sh
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
f5031e549472d1d813fa39b6b2973cd20c1b1120 06-Sep-2014 Eric Rowe <erowe@google.com> Increase long timeout to 2 minutes

Change-Id: I2f9e15c6e551536d61ec52fbaf7f54405fa05bcd
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestBase.java
2591e00b57b8aedd9e44fecce3f55a2c6a5428c2 03-Sep-2014 Eric Rowe <erowe@google.com> Clean up connectivity tests.

Change-Id: I407cb78aecb43aa8413835a25b4558241d69fd2e
onnectivityManagerTest/assets/accesspoints.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestBase.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/WifiConfigurationHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiAssociationTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
37cf9907d201e39ecf8a8de934c44e3eaf04b6db 24-Aug-2014 Jeff Sharkey <jsharkey@android.com> Merge "Installing splits into ASECs!" into lmp-dev
941a8ba1a6043cf84a7bf622e44a0b4f7abd0178 21-Aug-2014 Jeff Sharkey <jsharkey@android.com> Installing splits into ASECs!

Sessions can now zero-copy data directly into pre-allocated ASEC
containers. Then at commit time, we compute the total size of the
final app, including any inherited APKs and unpacked libraries, and
resize the container in one step.

This supports both brand new ASEC installs and inheriting from
existing ASEC installs. To keep things simple, it currently requires
copying any inherited ASEC contents, but this could be optimized in
the future.

Expose new vold resize command, and allow read-write mounting of ASEC
containers. Move native library extraction into the installer flow,
since it needs to happen before ASEC is sealed. Move multiArch flag
into NativeLibraryHelper, instead of making everyone pass it
around. Migrate size calculation to shared location.

Separate "other" package name in public API, provide a path to a
storage device when relevant, and add more docs.

Bug: 16514385
Change-Id: I06c6ce588d312ee7e64cce02733895d640b88456
oretests/src/android/content/pm/PackageHelperTests.java
oretests/src/android/os/storage/AsecTests.java
12747ab3aafc92f3b86da7df2b1d992866cbaf52 23-Aug-2014 Guang Zhu <guangzhu@google.com> add some missing assert messages for wifi test

Change-Id: I04f4cbbca1a181ab1404fa3abba874e1f78fed3c
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
4afd179a9ad7da51374c6fb0887180976d952001 21-Aug-2014 Guang Zhu <guangzhu@google.com> follow up minor fixes for connectivity manager test

Change-Id: I8f0606890b21d67130efb3bc02c6825823060139
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestBase.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiAssociationTest.java
d21f1c1e4d34306ab7aa99f5be1b886f6b4e07a8 19-Aug-2014 Guang Zhu <guangzhu@google.com> fixes for connectivity manager test suite

* reduced visibility of most util functions in
ConnectivityManagerTestBase
* reimplemented various waitFor... util function in base class:
instead of relying on received broadcast and synchronization
mechanism, we just poll for what we want with a fixed interval
and a max timeout
* minor style fixes
* removed state transition checks in all test cases of
ConnectivityManagerMobileTest: since exact state transitions
are not that interesting, we just care about if we reach a
particular state and if all network interfaces are in their
corresponding states
* clarified in comment what each test cases are testing, since
some of the test case names are not very straightforward
* any wait for DISCONNECTED checkes with ConnectivityManager are
temporarily commented out

Change-Id: I99cca95c33c6060909e0df684969b75c2dca23a9
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestBase.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/NetworkState.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/WifiAssociationTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiAssociationTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/unit/WifiClientTest.java
0a82e80073e193725a9d4c84a93db8a04b2456b9 30-Jul-2014 Lorenzo Colitti <lorenzo@google.com> Stop using LinkProperties for static configuration.

LinkProperties can represent way more complicated configurations
than what we can actually apply to interfaces. This makes it
error-prone to use it to represent static configuration, both
when trying to apply configuration coming from LinkProperties
and when trying to save configuration from current
LinkProperties.

Instead, move static configuration (IPv4 only, since we don't
support static IPv6 configuration) into a separate
StaticIpConfiguration class.

Bug: 16114392
Bug: 16893413
Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
1806b1fc25bcffaa005e72a55042031a42b168b1 11-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Switch RouteInfo to use IpPrefix instead of LinkAddress.

This addresses a TODO and also makes it possible to create
routes to destinations that are not valid LinkAddresses, such as
multicast addresses.

Bug: 16875580
Change-Id: Id4c77b00dc3064bf27d78cdcbbe035e645748cfe
oretests/src/android/net/RouteInfoTest.java
6bf513d32db7fbc157681bd642e12a201cf20a89 01-Aug-2014 Wei Wang <weiwa@google.com> Revert "Revert "Service data and manufacturer data can be repeated fields.""

This reverts commit 14c797702543bb5ced989565d90abcfa55c7db46.
luetoothtests/src/android/bluetooth/le/AdvertiseDataTest.java
luetoothtests/src/android/bluetooth/le/ScanRecordTest.java
67c01a4b6d890212fb4647973a627e25a3a9788b 01-Aug-2014 Sungsoo Lim <sungsoo@google.com> Revert "Service data and manufacturer data can be repeated fields."

This reverts commit 26dc9b99b17ca9d8ce3632c48e8b6c1450ee53e9.

Change-Id: I1846d0a6491c5b2ba5905411bd98f5d17909b705
luetoothtests/src/android/bluetooth/le/AdvertiseDataTest.java
luetoothtests/src/android/bluetooth/le/ScanRecordTest.java
3f7a39063ab7b3d7a38b773449ba2b37674e3458 29-Jul-2014 Wei Wang <weiwa@google.com> Service data and manufacturer data can be repeated fields.

b/16635899

Change-Id: I73f1f4effd3f0e38cd427297eb9d22f3ba285d61
luetoothtests/src/android/bluetooth/le/AdvertiseDataTest.java
luetoothtests/src/android/bluetooth/le/ScanRecordTest.java
0462468aaff1089f08d0859e4920f90e4378b66b 29-Jul-2014 Wei Wang <weiwa@google.com> Make scan filter accepts prefix. Add tests.

Change-Id: I714dd6d95ad2bc874dce1106b325762b19159119
luetoothtests/src/android/bluetooth/le/ScanFilterTest.java
ab2ed62f15d0dac0f8ef825ff2d3677c9ae18f44 26-Jul-2014 Wei Wang <weiwa@google.com> Split manu id and manu data.

b/16407380

Change-Id: I39f6ce0ab4cccadec809f0a4f518f5d2c77a90b7
luetoothtests/src/android/bluetooth/le/ScanRecordTest.java
48e28ad06cb2cb30d3c327b0215c15dd4843fb6f 25-Jul-2014 Yohei Yukawa <yukawa@google.com> Merge "Stop assuming language part in locale string is up to 2-letter" into lmp-dev
71cf0a32d0d9a45653704a671154f26a8bc3132b 24-Jul-2014 Yohei Yukawa <yukawa@google.com> Stop assuming language part in locale string is up to 2-letter

With this CL, InputMethodSubtypeSwitchingController stop
assuming that language part in locale string is up to 2-letter.

this CL is not so risky because
InputMethodSubtypeSwitchingController have used language part for
nothing but sorting subtypes to determine the initial rotation
order of IME switching.

BUG: 16502987
Change-Id: Ib159ece0b7aa04f8fd7abc96c9a6e0832a4b7cd2
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
ec64dbfbc0c7ecf41e17f3872c2d0109096f1c7a 25-Jul-2014 Wei Wang <weiwa@google.com> Fix bug of ScanSettings. Add unit test.

b/16318637.

Change-Id: I3fbc1212c1712faa0c29132f3dc9cfc1d58af26b
luetoothtests/src/android/bluetooth/le/ScanSettingsTest.java
3e2bbda757596026c80fe6e08a9987dca8ac6e1d 23-Jul-2014 Wei Wang <weiwa@google.com> Merge "Fix parcel issues with empty service uuid. Added tests." into lmp-dev
03259472b19fef586f5eec5d4e7d61c34a6cd298 23-Jul-2014 Wei Wang <weiwa@google.com> Fix parcel issues with empty service uuid. Added tests.

b/16490816

Change-Id: If26a4731f22e83df4f5ded2ad76901de6c49a010
luetoothtests/src/android/bluetooth/le/AdvertiseDataTest.java
luetoothtests/src/android/bluetooth/le/ScanFilterTest.java
3824db6141c9ecabfc0ab900f2120e3aef3e9425 21-Jul-2014 Jeff Davidson <jpd@google.com> Delete most network scorer tests from coretests.

Anything which tests public API functionality will be moved to a
compatibility test suite.

The only remaining test is NetworkScorerAppManagerTest, which contains
unit tests for an internal helper class that is not (and should not
be) exposed via @SystemApi or otherwise.

Bug: 16355542
Change-Id: I478da97d3a4d09407992af37e45466dc484fa8cf
oretests/src/android/net/NetworkKeyTest.java
oretests/src/android/net/RssiCurveTest.java
oretests/src/android/net/ScoredNetworkTest.java
946f207d3d7e8e6d467782b549aa80073a68fae8 18-Jul-2014 Guang Zhu <guangzhu@google.com> add command to enable bt snoop log

Change-Id: I22a6482a90c2bb976a5ce44946e9f0fb8b59e6b2
luetoothtests/src/android/bluetooth/BluetoothInstrumentation.java
685c1758902a42a7beb030d8bbaed3f7ce6f6135 17-Jul-2014 Wei Wang <weiwa@google.com> More API modification of BLE APIs (1/2).

Changed include:

1) Add serviceDataUuid to filter so it matches sanRecord and
AdvertiseData.
2) Add raw bytes to ScanRecord and make ScanResult take a ScanRecord
instead of raw bytes.
3) Change from setServiceUuid(List) to addServiceUuid(ParcelUuid).
4) Added include device name
5) Removed service not registered and added ADVERTISE_DATA_TOO_LARGE.
6) Fixed a few comments.

Change-Id: Ibbe07183b1293835c4a84728d1cd2d61e5d627d3
luetoothtests/src/android/bluetooth/le/ScanFilterTest.java
luetoothtests/src/android/bluetooth/le/ScanResultTest.java
7d41c138d216335e304df68babe9b88d61ee0da4 19-Jul-2014 Guang Zhu <guangzhu@google.com> am f59ce468: am b477fc6c: Merge "add command to enable bt snoop log" into klp-modular-dev

* commit 'f59ce46880ebe2c2466a2c862ec2ed401f635d51':
add command to enable bt snoop log
f59ce46880ebe2c2466a2c862ec2ed401f635d51 18-Jul-2014 Guang Zhu <guangzhu@google.com> am b477fc6c: Merge "add command to enable bt snoop log" into klp-modular-dev

* commit 'b477fc6c2fcd04e6952a7eec856d30b64fd95e0c':
add command to enable bt snoop log
9d2f441f9bb2c8dcac1150e2cba1d15a86a4efb1 09-Jun-2014 dcashman <dcashman@google.com> Initial KeySet API.

Previously submitted but reverted due to doc-compilation bug.

Bug: 6967056
Change-Id: I9bd7ef299a4c92c4b327f5b5d7e951f0753b4c8a
oretests/AndroidManifest.xml
oretests/apks/keyset/Android.mk
oretests/apks/keyset/api_test/AndroidManifest.xml
oretests/src/android/content/pm/PackageManagerTests.java
5de7377feca5242fe7127e2d4dc7792d4886d365 12-Jul-2014 dcashman <dcashman@google.com> Revert "Initial KeySet API."

This reverts commit 9a643fe02bc960e266484547dda5572b094a4c72.
oretests/AndroidManifest.xml
oretests/apks/keyset/Android.mk
oretests/apks/keyset/api_test/AndroidManifest.xml
oretests/src/android/content/pm/PackageManagerTests.java
405912bce074e9e59a246e2357a108e50dffabf8 09-Jun-2014 dcashman <dcashman@google.com> Initial KeySet API.

Bug: 6967056
Change-Id: I47a01bd5dc25591cc70f58f38920ad0a021094ae
oretests/AndroidManifest.xml
oretests/apks/keyset/Android.mk
oretests/apks/keyset/api_test/AndroidManifest.xml
oretests/src/android/content/pm/PackageManagerTests.java
af74e66e29a518157cb78fcef4b4fc532b7f60b0 09-Jul-2014 Wei Wang <weiwa@google.com> Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)

Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457
luetoothtests/src/android/bluetooth/le/ScanFilterTest.java
luetoothtests/src/android/bluetooth/le/ScanRecordTest.java
4b8299b84484fe39d41f64316b165f7fe4747ee1 11-Jul-2014 Narayan Kamath <narayan@google.com> Merge "Add a test multiarch app."
e99f69a4845c80d46df1674581461d1f8553ed92 10-Jul-2014 Narayan Kamath <narayan@google.com> Add a test multiarch app.

Will be used in an upcoming change for PackageManagerService
handling of multiArch APKs.

Change-Id: I363a02ce7b91569bb86880cf511ab9fbfcf2665c
osttests/test-apps/SharedUid/dual/Android.mk
osttests/test-apps/SharedUid/dual/AndroidManifest.xml
osttests/test-apps/SharedUid/dual/dual/AndroidManifest.xml
osttests/test-apps/SharedUid/dual/multiarch/AndroidManifest.xml
638e4787ba5093c5e43d8b15db57fff3a31a4e21 11-Jul-2014 Yohei Yukawa <yukawa@google.com> Add simple InputMethodSubtypeTest

Change-Id: I87105c4935adfca249378e667161d2998cf77840
nputmethodtests/run_core_inputmethod_test.sh
nputmethodtests/src/android/os/InputMethodSubtypeTest.java
a52aeda8088688f08602cccc444057f03b94c074 11-Jul-2014 Yohei Yukawa <yukawa@google.com> Consolidate test cases for InputMethodSubtype

We have accepted any arbitrary text as a locale
string when instantiating InputMethodSubtype object.
As a consequence, some existing code might assume
that InputMethodSubtype never canonicalize/normalize
the given locale string.

This CL add a test case for such scenario.

Change-Id: Ie08d6e149e22a60d6c4d40049a3e6afeee87dc44
nputmethodtests/src/android/os/InputMethodSubtypeTest.java
989eb371bf8f572fed1e65c6d8aeeb2548be89a7 17-Jun-2014 dcashman <dcashman@google.com> Change key-set/public-key manifest relationship.

Separate definition of public keys and keysets in the manifest to better
represent their relationship. The 'key-set' tags should have nested additional
'public-key' tags that indicate which of the defined 'public-key' tags are
associated with them. The first use of a given 'public-key' name should define
its value; subsequent uses may refer to it only by name. 'key-set' and
'public-key' names may not intersect.

Also, change 'keys' tag to 'key-sets' to avoid issues with previous keysets
implementation.

Bug: 6967056
Change-Id: I7534e4a42326e97b67b55509187c0d3c21a2bb32
oretests/apks/keyset/permUse/AndroidManifest.xml
oretests/apks/keyset/uA/AndroidManifest.xml
oretests/apks/keyset/uAB/AndroidManifest.xml
oretests/apks/keyset/uAuB/AndroidManifest.xml
oretests/apks/keyset/uB/AndroidManifest.xml
0b01e7fc58cdde00d8350285a3386c4209b72d78 08-Jul-2014 Yohei Yukawa <yukawa@google.com> Polish new IME API for L: CursorAnchorInfo

This CL allows application authors and input method authors to
communicate with each other more precisely on the visibility of
insertion marker and composing characters. Now we can describe
the situation where the coordinates of them are available but
they are overlapped by other UI elements.

This change is based on feedbacks from internal customers of
this preview API.

Change-Id: I82eba0e844a6f8b99ba11a68fad272399034cc24
BUG: 16118303
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
nputmethodtests/src/android/os/SparseRectFArrayTest.java
eea0b8b051e916051d0d09da3f41f9ec4d508bff 08-Jul-2014 Yohei Yukawa <yukawa@google.com> Fix inconsistencies in CursorAnchorInfo#equals

This CL addresses some inconsistencies found in
CursorAnchorInfo#equals.

- #mComposingText is now taken into consideration when
compared with other instances.
- NaN is now treated as if it was just a number in
CursorAnchorInfo#equals if and only if NaN is used in
-- #mInsertionMarkerHorizontal
-- #mInsertionMarkerTop
-- #mInsertionMarkerBaseline
-- #mInsertionMarkerBottom.
This is useful if we want to use NaN as a marker to
indicate that no value is specified.

Change-Id: Ibff31bc34b9d488731b294ad38240c567a06b627
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
6b1e88e5d09a88dd77e631918aa7122a95a7ff4b 03-Jul-2014 Maxim Siniavine <siniavine@google.com> Add test apps for shared uid package manager test

Change-Id: I00c0db7a122774260d93d06212f4485210f86532
osttests/test-apps/SharedUid/32/Android.mk
osttests/test-apps/SharedUid/32/AndroidManifest.xml
osttests/test-apps/SharedUid/32/jni/Android.mk
osttests/test-apps/SharedUid/32/jni/native.cpp
osttests/test-apps/SharedUid/32/src/com/framework/shareduid/bit32/MainActivity.java
osttests/test-apps/SharedUid/64/Android.mk
osttests/test-apps/SharedUid/64/AndroidManifest.xml
osttests/test-apps/SharedUid/64/jni/Android.mk
osttests/test-apps/SharedUid/64/jni/native.cpp
osttests/test-apps/SharedUid/64/src/com/framework/shareduid/bit64/MainActivity.java
osttests/test-apps/SharedUid/Android.mk
osttests/test-apps/SharedUid/dual/Android.mk
osttests/test-apps/SharedUid/dual/AndroidManifest.xml
osttests/test-apps/SharedUid/dual/jni/Android.mk
osttests/test-apps/SharedUid/dual/jni/native.cpp
osttests/test-apps/SharedUid/dual/src/com/framework/shareduid/dual/MainActivity.java
osttests/test-apps/SharedUid/java_only/Android.mk
osttests/test-apps/SharedUid/java_only/AndroidManifest.xml
osttests/test-apps/SharedUid/java_only/src/com/framework/shareduid/java/MainActivity.java
ca76cccb61d4d914abbb5079cb65455505494e2f 02-Jul-2014 dcashman <dcashman@google.com> Merge "Initial work for key rotation."
55b1078e2a1b56daa85edfd5000a5844d3c7914b 09-Apr-2014 dcashman <dcashman@google.com> Initial work for key rotation.

Introduces the upgrade-keyset tag to AndroidManifest.xml. This specifies a
KeySet by which an apk must be signed in order to update the app. Multiple
upgrade KeySets may be specified, in which case one of them must be used to
sign the updating apk. If no upgrade-keyset is specified, the current logic
involving signatures is used.

Current Key Rotation Design Decisions:
-Apps using a shared user id may not rotate keys.
-All acceptable upgrade keysets must be specified, including the key signing
the app. This enables key rotation in one update, but also 'locks' an app if
an incorrect upgrade keyset is specified.
-Minimal changes to existing KeySet code.

Bug: 6967056
Change-Id: Ib9bb693d4e9ea1aec375291ecdc182554890d29c
oretests/apks/keyset/Android.mk
oretests/apks/keyset/permDef/AndroidManifest.xml
oretests/apks/keyset/permUse/AndroidManifest.xml
oretests/apks/keyset/res/values/strings.xml
oretests/apks/keyset/uA/AndroidManifest.xml
oretests/apks/keyset/uAB/AndroidManifest.xml
oretests/apks/keyset/uAuB/AndroidManifest.xml
oretests/apks/keyset/uB/AndroidManifest.xml
oretests/apks/keyset/uNone/AndroidManifest.xml
oretests/certs/keyset_A.pk8
oretests/certs/keyset_A.x509.pem
oretests/certs/keyset_B.pk8
oretests/certs/keyset_B.x509.pem
oretests/src/android/content/pm/PackageManagerTests.java
b5268dcc17cd9ecb540b06ad59bd74188b57a069 27-Jun-2014 Yohei Yukawa <yukawa@google.com> Require coordinate transformation matrix if necessary

With this CL, CursorAnchorInfo.Builder#build() raises
IllegalArgumentException when an application author attempts to
instantiate CursorAnchorInfo without the coordinate
transformation matrix but with specifying some positional
parameters such as composing character rectangle.

Since any other positional members in CursorAnchorInfo are
supposed to be specified in local coordinates, the application
author must provide the coordinate transformation matrix for
such positional data.

Change-Id: I2b0fd0f146a2b95fe4fa1324837d8cfee667208c
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
b6646a8987a8ce6abd34cc05d9ca0193a6d7bea9 28-Jun-2014 Jeff Davidson <jpd@google.com> Allow network scorers to provide an opt-in activity.

A candidate scorer may have an activity registered to listen for the
ACTION_CUSTOM_ENABLE intent action. If so, when the user attempts to
select this scorer as the active one, this custom activity will be
launched and will be responsible for requesting that the framework
activate the scorer. This is to enable more complex opt-in flows prior
to becoming the active scorer.

Scorers which do not specify this activity will default to using the
framework switcher (currently ActiveNetworkScorerDialog, though this
may change).

Note that all switches must still go through the framework switcher;
the opt-in activity simply allows scorers to first show another screen
and perform the framework switch on their own terms.

Bug: 15775314
Change-Id: I3847e5d3161a8fcc9622abc03218795697c32778
oretests/src/android/net/NetworkScorerAppManagerTest.java
85fa4e19b260f35d55bd35c975753540211c62c0 30-Jun-2014 Yohann Roussel <yroussel@google.com> Manually disable dexopt for multidex test apps.

Because at the moment, omitting to explicitly disable dexopt produces apks with
no classes.dex inside.

Change-Id: I44ffc6b013a7b119c7deb332cf60f4fe8a11068c
osttests/test-apps/MultiDexLegacyAndException/Android.mk
osttests/test-apps/MultiDexLegacyTestApp/Android.mk
osttests/test-apps/MultiDexLegacyTestServices/Android.mk
osttests/test-apps/MultiDexLegacyTestServicesTests/Android.mk
osttests/test-apps/MultiDexLegacyVersionedTestApp_v1/Android.mk
osttests/test-apps/MultiDexLegacyVersionedTestApp_v2/Android.mk
osttests/test-apps/MultiDexLegacyVersionedTestApp_v3/Android.mk
9a9c112737443e0a4ad0a5054408642ec7b7ee67 27-Jun-2014 Yohei Yukawa <yukawa@google.com> Fix test failures due to unexpected overload resolution

Starting with Ie04e8a27050849fee1c93ef14b9944acc70fafe4,
CursorAnchorInfo#getComposingText() returns CharSequence rather
than String. This causes unexpected overload resolution,
which results in test failures.

BUG: 15088391
Change-Id: I51e2b23573e92be7e5b1dcca6402e85364408215
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
a3b9ca5adead683eb30492f038e4e72452b6fa5a 26-Jun-2014 Jeff Davidson <jpd@google.com> Merge "Use/expose the receiver's label as the scorer name."
c741553644f8b19c63938ab9e36af1721c2cfa34 24-Jun-2014 Jeff Davidson <jpd@google.com> Use/expose the receiver's label as the scorer name.

Allows scorer apps to set a custom name for the scoring functionality,
even if the app has other non-scoring responsibilities, in which case
the application's label would be too generic.

Bug: 15775300
Change-Id: I61a7d1966742d463508e6801b7845ced8392db84
oretests/src/android/net/NetworkScorerAppManagerTest.java
76ea6c68d3222441970ef98079ba30710ac8c595 23-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Teach LinkProperties whether it's provisioned or not.

In IPv4, a link is provisioned when DHCP succeeds. In IPv6, a
there is no such signal, because addresses and DNS servers can
be notified by the kernel at different times.

Add an isProvisioned method that returns true if we believe that
enough information has configured to use a network. For IPv6,
this requires an IP address, default route, and DNS server. For
IPv4, this requires only an IPv4 address, because we support
static configuration that doesn't have a default route or DNS
server.

To do this we use the existing hasIPv4Address method, rename the
all-but unused hasIPv6Address method to hasGlobalIPv6Address
(which is what we want anyway) and add new hasIPv[46]DefaultRoute
and hasIPv[46]DnsServer methods.

Bug: 9180552
Change-Id: Ib2f5ff8af920f7b6f1edf0e2afaaa0edce9bc72d
oretests/src/android/net/LinkPropertiesTest.java
64c43b1948a2b2fcd692cd4a48f031efbf7f7336 23-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Minor changes to RouteInfo.

1. Realize that mDestination can never be null and update the
code accordingly.
2. Simplify isDefaultRoute.
3. Provide two new hidden utility methods, isIPv4Default() and
isIPv6Default(), that can be used by LinkProperties to
to determine if the system has connectivity.
4. Update tests.

Bug: 9180552
Change-Id: I85028d50556c888261d250925962bdedfe08e0c6
oretests/src/android/net/RouteInfoTest.java
1603eadc5ad2f6d3e912ca0f20ec1bbc0b81fe01 23-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Unbreak LinkPropertiesTest.

This was broken by the changes that made addRoute add routes
only if they did not already exist.

Change-Id: I1d227df9223fbecf106efde05b709f320824ee9d
oretests/src/android/net/LinkPropertiesTest.java
275e085d5a42ced54bb79e40ff76c77539e7d82d 18-Jun-2014 Jeff Sharkey <jsharkey@android.com> Stronger PackageParser contract, more split work.

Require that method callers always provide relevant paths, instead of
relying on constructor. Move DisplayMetrics to be an overall parser
parameter, and move PARSE_TRUSTED_OVERLAY to flags.

Parse split APKs and apply deterministic ordering based on split
names. Assert consistent package name and version code across all
split APKs in a package, and enforce unique split names and required
base APK.

Collect certificates for split APKs, enforcing they're all signed
consistently. Better flow control and resource cleanup when
collecting certs. Refactor validation code so it's easier to reason
about. Cleaner maintenance of read buffer when draining stream
contents.

Change-Id: I8bc8c62095fbb933227b9e76ad8771f4b1246fe8
oretests/src/android/content/pm/PackageManagerTests.java
0f50bbfe45f48a22bf74c2ff3e412ea1a1b7adcd 17-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Merge "IpPrefix improvements."
8c6c2c3c929acad783b9a56b8d9efa597d0ae609 12-Jun-2014 Lorenzo Colitti <lorenzo@google.com> IpPrefix improvements.

1. Allow IpPrefixes to be created from strings. In order to do
this, factor out the code from LinkAddress which already does
this to a small utility class in NetworkUtils.
2. Truncate prefixes on creation, fixing a TODO.
3. Add a toString method.
4. Write a unit test.

While I'm at it, make RouteInfoTest pass again, and convert it
to use IpPrefix instead of LinkAddress.

Change-Id: I5f68f8af8f4aedb25afaee00e05369f01e82a70b
oretests/src/android/net/IpPrefixTest.java
oretests/src/android/net/RouteInfoTest.java
e75b2c267761be6f7d762930b980f435c1789eea 17-Jun-2014 Adam Lesinski <adamlesinski@google.com> Fix runtime overlay tests

The runtime overlay tests were crafting bad locales.

Change-Id: I33c87e71752756f40a954db9f01ea3cdde488a42
verlaytests/OverlayTest/src/com/android/overlaytest/OverlayBaseTest.java
c4858a2ba972e86436d629c4d3f18eb49116de14 16-Jun-2014 Jeff Sharkey <jsharkey@android.com> Switch PackageParser to reference single path.

It previously kept mPath separate from mScanPath for some very odd
edge cases around moving apps-on-SD. This changes it to always use
a single path, refactors moving to keep separate paths.

Refactors method names in PackageParser to be clearer about their
APK-versus-package relationship.

Beginnings of a split package parser. Instead of requiring that
callers check error codes when null, switch to always throwing on
parse errors, to require that callers deal with the error. Longer
term the entire parser should switch to this style, but its too
pervasive for a simple refactoring.

Change-Id: If071d8e55e46e56cc201fadfb51cb471713ae973
oretests/src/android/content/pm/PackageManagerTests.java
62388936c88840a5f1ab7a7f6dd547467e99dfad 13-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Assert that RT_SCOPE_* and IFA_F_* are not zero.

If these constants are zero (or, rather, if they're not all
different), the test will fail with more cryptic error messages
whose cause is not obvious. Clearly check for that here.

Bug: 15602893
Change-Id: I7ca4a9c5e3d592fd93fbfa1b50666a1861a0031d
oretests/src/android/net/LinkAddressTest.java
2a97b54f491346be193cc72b89d6712cf1abacc9 12-Jun-2014 Yohei Yukawa <yukawa@google.com> am f09cb58d: Merge "Rename CursorAnchorInfoBuilder with Builder" into lmp-preview-dev

* commit 'f09cb58d5f528665e6e96d8740eeeeab4167e357':
Rename CursorAnchorInfoBuilder with Builder
756c4b795e3c8017530b93f8fcaff683331ac2b5 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am f7c964fa: Merge "Fix Build" into lmp-preview-dev

* commit 'f7c964fa06257d6db1b894bfbe905ca125c755c8':
Fix Build
54e312a51bbef80658d71d10b65a0bc5f3268636 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am 9c6d406e: Fix build breakage.

* commit '9c6d406eb7ab0fce40fb7cd1257714a29d06774c':
Fix build breakage.
130669992c5ea8d54db15f142e27578bdcf7e003 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Fix build breakage.

Change-Id: Ideb32704ce5dc37ef36b05609f88da2aa55b3a00
oretests/src/android/net/RouteInfoTest.java
13592c623cdd87047e68d88d87be84819292819a 12-Jun-2014 Yohei Yukawa <yukawa@google.com> Merge "Rename CursorAnchorInfoBuilder with Builder" into lmp-preview-dev
6f0ec45a3bff040790ae84345f154c65c9777610 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Fix Build

Change-Id: Iebbce8eaf21b3d2ba01ec720812d38018b13529e
oretests/src/android/net/RouteInfoTest.java
594b456b6e2aa4142fa31394cdd39bd4cc7a1d3a 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Minor changes to the LinkAddress API docs." into lmp-preview-dev
6307b35e1d3a8d577877be0b4c9cea1a909b6329 04-Jun-2014 Sreeram Ramachandran <sreeram@google.com> Add a new IpPrefix class and use it in RouteInfo.

This change uses IpPrefix only in the public API and continues
to use LinkAddress for everything else. It does not change the
callers to use the new APIs, with the exception of changing
all current uses of getDestination to getDestinationLinkAddress
to make room for the new getDestination method that returns an
IpPrefix.

Based on Sreeram's earlier change:
https://googleplex-android-review.git.corp.google.com/#/c/477874/
but a bit simplified and with a bit more documentation.

Bug: 15142362
Bug: 13885501
Change-Id: Ib4cd96b22cbff4ea31bb26a7853989f50da8de4e
(cherry picked from commit 7d3b4b9a3d4de9673119632da0ebd583e50126f7)
oretests/src/android/net/RouteInfoTest.java
00a0fd650b7a31dffb88c229242bb04fa0b487a4 09-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Minor changes to the LinkAddress API docs.

1. Rename getNetworkPrefixLength to getPrefixLength. Update all
callers in frameworks/base and add a shim method and a TODO
for the rest.
2. @hide isSameAddressAs. It doesn't add much, and it's just
one-liner that callers can implement if they want.
3. Fix the alignment of the initial paragraph (<ul> should have
been </ul>).
4. Remove the documentation that talks about creating
LinkAddresses, since there's no public API for creating them.

With these changes I think LinkAddress is fine as a public API.

Bug: 15142362
Change-Id: Iaf3b1db577745bb68a9e1dd7f96d666dd3f3ec7c
(cherry picked from commit 9ab53650cfcd91a2a151b44b3fd1381841f76269)
oretests/src/android/net/LinkAddressTest.java
25702b39675c51dd4963eb71b66b20126a55cc05 06-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Fix public API of LinkProperties.

bug:15142362
(cherry picked from commit 51d898fd0223a4b7c728980ab987dd985c02df5f)
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
oretests/src/android/net/LinkPropertiesTest.java
7dc78cf3af9fd11a4f1e2e981ce584a23755ea9e 09-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Minor changes to the LinkAddress API docs.

1. Rename getNetworkPrefixLength to getPrefixLength. Update all
callers in frameworks/base and add a shim method and a TODO
for the rest.
2. @hide isSameAddressAs. It doesn't add much, and it's just
one-liner that callers can implement if they want.
3. Fix the alignment of the initial paragraph (<ul> should have
been </ul>).
4. Remove the documentation that talks about creating
LinkAddresses, since there's no public API for creating them.

With these changes I think LinkAddress is fine as a public API.

Bug: 15142362
Change-Id: Iaf3b1db577745bb68a9e1dd7f96d666dd3f3ec7c
oretests/src/android/net/LinkAddressTest.java
cc91c7b804a079f7b20404827277c61dd403805f 04-Jun-2014 Sreeram Ramachandran <sreeram@google.com> Add a new IpPrefix class and use it in RouteInfo.

This change uses IpPrefix only in the public API and continues
to use LinkAddress for everything else. It does not change the
callers to use the new APIs, with the exception of changing
all current uses of getDestination to getDestinationLinkAddress
to make room for the new getDestination method that returns an
IpPrefix.

Based on Sreeram's earlier change:
https://googleplex-android-review.git.corp.google.com/#/c/477874/
but a bit simplified and with a bit more documentation.

Bug: 15142362
Bug: 13885501
Change-Id: Ib4cd96b22cbff4ea31bb26a7853989f50da8de4e
oretests/src/android/net/RouteInfoTest.java
c46b5f04aa2a9fd292c117d2824f70fcf06e86ba 09-Jun-2014 Yohei Yukawa <yukawa@google.com> Rename CursorAnchorInfoBuilder with Builder

Inner Builder class should not inherit full class name of outer
class.

BUG: 15516230
Change-Id: I2d56edebb0c85639db57ca5b2aadb22c67fc5926
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
df2b878ff4e7b4a258588d3a93574c399db78a07 06-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Fix public API of LinkProperties.

bug:15142362
Change-Id: I1457111da7d3bd09998f7e010febb8bb4c45c8bc
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
oretests/src/android/net/LinkPropertiesTest.java
083a3e61519b211d021fe97f08f0bacc18224104 03-Jun-2014 Yohei Yukawa <yukawa@google.com> Merge "Reenable DynamicRotationList for language-switching-aware IMEs"
559321abbfd2e66763accc172f3596e4cf7f9172 02-Jun-2014 dcashman <dcashman@google.com> Merge "Add ArrayUtils methods and tests for consumption by KeySet code."
874d0d4032dc940327a81359f144d38d3cb580a3 30-May-2014 dcashman <dcashman@google.com> Add ArrayUtils methods and tests for consumption by KeySet code.

Adds methods for dealing specifically with long data types. Used by
PackageKeySetData as part of the KeySet work. Add appropriate test methods
to MoreAsserts as well.

Bug: 6967056
Change-Id: I1e263301b353e0cd1b45126be6ef5ec310f311a8
oretests/src/com/android/internal/util/ArrayUtilsTest.java
07bd732034fbf4ce0e51b99c7199edf20dff1565 02-Jun-2014 Yohei Yukawa <yukawa@google.com> Reenable DynamicRotationList for language-switching-aware IMEs

In order to reenable DynamicRotationList for
language-switching-aware IMEs, this CL reverts
I84291fd4a7d6192b3bd0c366c49 with fixing a bug that the dynamic
rotation state is reset even when the list of input methods is
not changed.

With this CL, the dynamic rotation state is preserved when the
enabled input methods is not changed actually.

BUG: 7043015
Change-Id: I506828c7a363e79f1c767eeb28f0d3746ff1cb0d
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
75f5b3a8dd9ecc6aa5caae1f32f085bac79fde8c 30-May-2014 Wei Wang <weiwa@google.com> am 19bdd64c: Merge "Address API review comments. 1. Moved le stuff to it\'s subpackage. Remove BluetoothLe for all classes except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings. 2. Make all callbacks abstract classes instead of interfaces. 3. Moved Advertis

* commit '19bdd64c3b9dd16778575164c13c8af798832f01':
Address API review comments. 1. Moved le stuff to it's subpackage. Remove BluetoothLe for all classes except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings. 2. Make all callbacks abstract classes instead of interfaces. 3. Moved AdvertisementData and ScanRecord out and removed AdvertiseBaseData 4. Removed newBuild and use new Builder for all builders. 5. Using setxxx in builders. 6. Misc other changes.
6d81118032b92caa0f5cfebe11af02a98f819d5e 22-May-2014 Wei Wang <weiwa@google.com> Address API review comments.
1. Moved le stuff to it's subpackage. Remove BluetoothLe for all classes
except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings.
2. Make all callbacks abstract classes instead of interfaces.
3. Moved AdvertisementData and ScanRecord out and removed
AdvertiseBaseData
4. Removed newBuild and use new Builder for all builders.
5. Using setxxx in builders.
6. Misc other changes.

Fixes b/15140940

Change-Id: I32ae3d24a9491baf96048040b5ac78f6f731e468
NO_SQ: multi-project submit
luetoothtests/src/android/bluetooth/BluetoothLeAdvertiseScanDataTest.java
luetoothtests/src/android/bluetooth/BluetoothLeScanFilterTest.java
luetoothtests/src/android/bluetooth/BluetoothLeScannerTest.java
luetoothtests/src/android/bluetooth/le/ScanFilterTest.java
luetoothtests/src/android/bluetooth/le/ScanRecordTest.java
luetoothtests/src/android/bluetooth/le/ScanResultTest.java
529001f06761205bcaae1570d81556be397f56fb 27-May-2014 Yohei Yukawa <yukawa@google.com> Switch back to StaticRotationList from DynamicRotationList

Ic005b94379f9d847ea, which introduced DynamicRotationList for
smarter input method rotation, is suspected to be causing a
strange behavior that InputMethodManager#switchToNextInputMethod
is choosing unexected/disabled IME/subtype.

With this CL, we switch back to StaticRotationList until the root
cause is addressed.

BUG: 7043015
Change-Id: I95fc8b28536cea6d09ea325e0caee14007cfc0a7
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
c659053c4cd4ce4ead59f9709af7e007308daa20 26-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Implement dynamic IME rotation based on user action"
a9bda774276f1c5a1fc6fd67a7782a06e696be8f 23-May-2014 Yohei Yukawa <yukawa@google.com> Implement dynamic IME rotation based on user action

With this CL, the IME rotation order will be updated dynamically
based on user actions on IMEs. Currently only onCommitText is
took into considered.

Imagine that we have the following rotation order.
[A, B, C, D, E]
If a user action for C is observed, the rotation order will be
updated as follows:
[C, A, B, D, E]
Then another user action for D updates the rotation order as
follows:
[D, C, A, B, E]

BUG: 7043015
Change-Id: Ic005b94379f9d847ea87046473ed77d8018d930e
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
f2fa9994ab083cb5fe8b75eae429485f7365a17b 26-May-2014 Yohann Roussel <yroussel@google.com> Merge "A test application for Art bug 14256107"
3d736bc13c9d3d4f87e1295a215bbe13af49e7b4 13-May-2014 Yohann Roussel <yroussel@google.com> A test application for Art bug 14256107

Change-Id: I629e8d0f91af6a6aff5a6d3f0b584fc01ba4429e
osttests/test-apps/MultiDexLegacyAndException/Android.mk
osttests/test-apps/MultiDexLegacyAndException/AndroidManifest.xml
osttests/test-apps/MultiDexLegacyAndException/res/layout/activity_main.xml
osttests/test-apps/MultiDexLegacyAndException/res/values/strings.xml
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/CaughtOnlyByIntermediateException.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/CaughtOnlyException.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/ClassInSecondaryDex.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/ExceptionInMainDex.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/ExceptionInMainDex2.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/ExceptionInSecondaryDex.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/ExceptionInSecondaryDex2.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/ExceptionInSecondaryDexWithSuperInMain.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/IntermediateClass.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/MainActivity.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/MiniIntermediateClass.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/SuperExceptionInMainDex.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/SuperExceptionInSecondaryDex.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/Test.java
osttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/TestApplication.java
6c8ca8473aeff569922ad4eebb07296ce62d9a8e 23-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Consolidate the language-switching logic"
9b29d04565e1faf0a49054f538ed1881cb24fe12 22-May-2014 Yohei Yukawa <yukawa@google.com> Consolidate the language-switching logic

This CL does not change the existing behavior.
In I84291fd4a7d6192b, the IME rotation group is logically
devided into two groups, one is for IMEs that are declared as
supportsSwitchingToNextInputMethod == true, and the other is
IMEs that are not declared so. The problem is that the logic
was implemented with a single ime/subtype list where these two
kinds of IMEs are completely mixed. This makes the code
unnecessarily complex.
With this CL, these two rotation groups are actually managed
as two different collections separately. This allows us to
simplify the rotation logic as well as its test cases.
This CL is also a groundwork to implement smarter
language-switching logic that is applied to
language-switching-aware IMEs only.

BUG: 7043015
Change-Id: I7f08ec299ec41d614e2cd3912320687db1576e80
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
5ec9aed64cd03545eded622cca214c83c170ab22 23-May-2014 Jeff Sharkey <jsharkey@android.com> Merge "Offer to stream and fsync() install sessions."
78cc340c2de873d6995c283b777476f7237d690f 22-May-2014 Jeff Sharkey <jsharkey@android.com> Offer to stream and fsync() install sessions.

Installers are interested in both streaming APK data and establishing
a happens-after relationship to support resuming downloads after a
process kill or battery pull.

This exposes a generic OutputStream for writing, and hooks up flush()
to be a blocking call which returns only when all outstanding write()
data has been fsync()'ed to disk.

Tests to verify behavior.

Bug: 14975160
Change-Id: I38289867c80ac659163bb0c2158ef12d99cc570d
oretests/src/android/os/FileBridgeTest.java
7d66d76fbb97ce67e4c8112c4a515210bb3e3976 22-May-2014 Yohann Roussel <yroussel@google.com> Merge "Fix ANR in multidexlegacytestservices."
5a647b69be8ac8d40c33ed9abe63e41514699e5b 21-May-2014 Yohei Yukawa <yukawa@google.com> Remove unnecessary internal lock

Previously, InputMethodSubtypeSwitchingController has relied on
its own internal lock for #getNextInputMethod and
class has to be invalidated whenever
InputMethodManagerService#mMethodMap is updated, any method of
InputMethodSubtypeSwitchingController should be called under
the global lock of InputMethodManagerService#mMethodMap.

As a consequence, we can conclude that
InputMethodSubtypeSwitchingController does not need its own
internal lock.

This CL also adds additional synchronization blocks into
the constructor of InputMethodManagerService to address the
existing inconsistency that methods with *Locked suffix are
called without the lock actually.

BUG: 7043015
Change-Id: I9d4d3d7232c984432185c10c13fb726a6158cac8
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
affa8a4736177f62911c9e0fe9280247c823e8bf 20-May-2014 Yohann Roussel <yroussel@google.com> Fix ANR in multidexlegacytestservices.

Continuous testing showed that the test is flaky because of ANR caused by too
long computation in onCreate(). So this change move computation in another
thread to free the main thread.

Change-Id: I2ecff3f3e659ff092dd4c7c230c35be4a5742c4b
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/AbstractService.java
4013940b62ae2227c9b30d8761d7533ee6190a9f 21-May-2014 Yohei Yukawa <yukawa@google.com> Style fix and dead code removal

This CL does not change the existing behavior.
Smarter language switching will be coverted by subsequent CLs.

BUG: 7043015
Change-Id: I281a33191d44be448492c2b74760cb8680719124
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
247675e5d919c6892722bf4442f54b3266366e51 21-May-2014 Lorenzo Colitti <lorenzo@google.com> Fix build.

Change-Id: I5c09a406b6c43318cea600171b8dd25eeeffa673
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
6346155c5a48495944041e65ec279c88b0fa1391 10-Mar-2014 Jaewan Kim <jaewan@google.com> Move IP config from WifiConfiguration to IpConfiguration.

This is so that Ethernet can use it in the future.

Bug: 7606609
Bug: 8687763

Change-Id: I5d1189682b13f1088848809604690648d8d9ecca
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
47c6514eaa5f1b0af101108b3c1b599cefa14b23 20-May-2014 Guang Zhu <guangzhu@google.com> am cd98ecc6: am 6071e45a: Merge "add a command to list all bonded devices" into klp-modular-dev

* commit 'cd98ecc66b968c5d5d0d12522c4c8c9b848bf181':
add a command to list all bonded devices
cd98ecc66b968c5d5d0d12522c4c8c9b848bf181 20-May-2014 Guang Zhu <guangzhu@google.com> am 6071e45a: Merge "add a command to list all bonded devices" into klp-modular-dev

* commit '6071e45a64ab764eb86603f2f4496cfd5c8de708':
add a command to list all bonded devices
adf6aff5b03b1e3ca4636f9887225a7f906d1238 20-May-2014 Wei Wang <weiwa@google.com> Revert "Revert "APIs for BLE scan, scan filter, batch scan, onFound/onLost and multiple advertising.""

This reverts commit b1d9fbc0f8dea0c77ed810190b325bfdaaf21789.

Change-Id: Ic8dec9385a7c763170ebeb1bcddd221c72f46e88
luetoothtests/src/android/bluetooth/BluetoothLeAdvertiseScanDataTest.java
luetoothtests/src/android/bluetooth/BluetoothLeScanFilterTest.java
luetoothtests/src/android/bluetooth/BluetoothLeScannerTest.java
319b40c9cf0b77d68c5925baa44b81f024f5705a 20-May-2014 Wei Wang <weiwa@google.com> Revert "APIs for BLE scan, scan filter, batch scan, onFound/onLost and multiple advertising."

This reverts commit 2c4e68a86b7a9b9f760a8907b93ff40ccad56c80.

Change-Id: I98c91343d886ebe22d0bf75a710fa0b0abf738b6
luetoothtests/src/android/bluetooth/BluetoothLeAdvertiseScanDataTest.java
luetoothtests/src/android/bluetooth/BluetoothLeScanFilterTest.java
luetoothtests/src/android/bluetooth/BluetoothLeScannerTest.java
d22b2413b9b79374a6a8e2176de577c8eac0d1b7 20-May-2014 Guang Zhu <guangzhu@google.com> add a command to list all bonded devices

Bug: 14601515

Change-Id: I3cc5bb664485ef768bb81f1f8870ed9bf62f8329
luetoothtests/src/android/bluetooth/BluetoothInstrumentation.java
62d5bc745a4fd7f305a47b628b1fe902ee9d29f8 17-Apr-2014 Wei Wang <weiwa@google.com> APIs for BLE scan, scan filter, batch scan, onFound/onLost and multiple
advertising.

Change-Id: I1655eb9cffa890b6fe38108bf51078662e90bc03
luetoothtests/src/android/bluetooth/BluetoothLeAdvertiseScanDataTest.java
luetoothtests/src/android/bluetooth/BluetoothLeScanFilterTest.java
luetoothtests/src/android/bluetooth/BluetoothLeScannerTest.java
51800847d9a9965a5d00a7960abb50983651d4a2 07-May-2014 Wei Wang <weiwa@google.com> Add a method to check whether a UUID is 32bit.

Change-Id: I92e8bab560b2083e9f4855d28b3f54f2120ef628
luetoothtests/src/android/bluetooth/BluetoothUuidTest.java
7672ef046b40cc5a56fd36f152f848654c55a096 16-May-2014 Jeff Davidson <jpd@google.com> Fix inconsistent package name.

Change-Id: I6dfa0ded4309ae9e3f8ab73d96e6ccb521beb7c4
oretests/src/android/view/VelocityTest.java
4d806214767ec010cef1d58e706ba59e1f0b9ad0 15-May-2014 Yohann Roussel <yroussel@google.com> Merge "Test multidex and annotations access."
419b1b0498e33a556780be1702b444d54fcaa7dd 15-May-2014 Yohei Yukawa <yukawa@google.com> Make a copy of Matrix in CursorAnchorInfoBuilder

This CL fixes a bug that CursorAnchorInfoBuilder does't make a
copy if the Matrix specified with #setMatrix.

Without this fix, IMM#updateCursorAnchorInfo could fail to detect
duplicated events when the same instances of
CursorAnchorInfoBuilder and Matrix are reused to optimize
performance.

Change-Id: I50c50a12a06d3cda4dec445b171b61ceb78da21a
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
81f4cb3f858f46a4d9b793c4d326b9bf6aca868d 13-May-2014 Yohei Yukawa <yukawa@google.com> Enable CursorAnchorInfo to contain composing string

This CL adds one more functionality to CursorAnchorInfo
that enables applications to associate the composition
string with its positional information. This is useful
for an IME to handle CursorAnchorInfo asynchronously.

This is also useful for the framework to detect if
the application is unnecessarily calling
IMM#updateCursorAnchroInfo with duplicate event.

BUG: 14579622
Change-Id: Ie75c17b523dad33e97b08c15f5f5267573ce2063
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
f9cb86aebe9647e0fe0137fc198ba16c017445c6 09-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Replace LinkCapabilities with NetworkCapabilities

Also remove unused LinkSocket and LinkSocketNotifier.
bug:13885501

Change-Id: Id426e31b201fa4f29109b5fea485d8efb34519d3
oretests/src/android/net/LinkSocketTest.java
c2ddd6023688db5ecf6c586e05f55e262b4a802e 06-May-2014 Yohei Yukawa <yukawa@google.com> Introduce new API for floating window support

This CL introduces a new API IMM#updateCursorAnchorInfo for
floating window support.

BUG: 14579622
Change-Id: I61dec2f8fa671ba891da1d4af08975750e3acb04
nputmethodtests/run_core_inputmethod_test.sh
nputmethodtests/src/android/os/CursorAnchorInfoTest.java
nputmethodtests/src/android/os/SparseRectFArrayTest.java
f4c5bf30b445874cf353e1b96cab94185a39ce6d 07-May-2014 Yigit Boyar <yboyar@google.com> State based animators for Views

Set quantum theme buttons to elevate 2dp on press

Change-Id: Ibf4f5ef166b901382c304d392eba075836a96a35
oretests/res/anim/reset_state_anim.xml
oretests/res/anim/test_state_anim.xml
oretests/src/android/animation/StateListAnimatorTest.java
8fce094491a1b7ff708df5f882954c76a6911b13 07-May-2014 Matthew Xie <mattx@google.com> Merge changes I0c808d51,I4ecf0ede

* changes:
Tear down PAN if we can't successfully complete a DHCP request after establishing a PANU connection.
Add parse method to parse UUID from bytes for 16 bit, 32 bit and 128 bit Bluetooth UUIDs. Added unit tests.
82500dd86631a08d290929f64824c4fd22f0aa75 15-Apr-2014 Wei Wang <weiwa@google.com> Add parse method to parse UUID from bytes for 16 bit, 32 bit and 128 bit
Bluetooth UUIDs. Added unit tests.

Change-Id: I4ecf0ede02561a5e9815acf8a5a1309d5756b887
luetoothtests/src/android/bluetooth/BluetoothUuidTest.java
5095ed699db20f738983e017d9725c87452bfb19 06-May-2014 Yohei Yukawa <yukawa@google.com> Merge "Take supportsSwitchingToNextInputMethod into considertaion"
ce63f59906ec0ef34ffd4f375c498e6367043e37 03-May-2014 Guang Zhu <guangzhu@google.com> am 9284a37d: am 1edfd835: Merge "add getAddress function to return BT mac" into klp-modular-dev

* commit '9284a37d601f8d90e868f6fb032ebb8b4e07029d':
add getAddress function to return BT mac
9284a37d601f8d90e868f6fb032ebb8b4e07029d 03-May-2014 Guang Zhu <guangzhu@google.com> am 1edfd835: Merge "add getAddress function to return BT mac" into klp-modular-dev

* commit '1edfd835c2573711587cc77befeefd96083ccba5':
add getAddress function to return BT mac
fa9dc683f18e68cc1170c149a40c33a191444af1 02-May-2014 Guang Zhu <guangzhu@google.com> add getAddress function to return BT mac

Change-Id: Ib2bcd123e066672e411550856db862059949100e
luetoothtests/src/android/bluetooth/BluetoothInstrumentation.java
4cd4110f20c2fcf8feaf04414e60b15f5801af4f 02-May-2014 Jeff Davidson <jpd@google.com> Merge "API for network cache subsystems."
a1223cfe6f2e04da1ab6e0ad781068687446ee56 01-May-2014 Yohei Yukawa <yukawa@google.com> Take supportsSwitchingToNextInputMethod into considertaion

With this CL, InputMethodManager#switchToNextInputMethod starts
behaving as if there are two rotation groups: one is for the new
input methods that are declared with
supportsSwitchingToNextInputMethod set to true to indicate they
have some language switching UI, and the other is for the other
input methods to preserve the existing behavior.

In addition to the above change, this CL also fixes the behavior
of InputMethodManager#shouldOfferSwitchingToNextInputMethod()
so as to return true if and only if the former rotation group
consists of two or more input methods, as originally designed.

BUG: 12981505
Change-Id: I84291fd4a7d6192b3bd0c366c49586e79135584f
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
d1da11529813f6d3f51518b5fe028e0b8084f5cc 01-May-2014 Yohei Yukawa <yukawa@google.com> Add unit tests for InputMethodSubtypeSwitchingController

This CL adds unit tests for InputMethodSubtypeSwitchingController
as a ground work to make it aware of
supportsSwitchingToNextInputMethod in a subsequent CL.

This CL never changes existing behavior.

BUG: 12981505
Change-Id: I3b2c46c47c7686b811fa248ad549f20875367425
nputmethodtests/run_core_inputmethod_test.sh
nputmethodtests/src/android/os/InputMethodSubtypeSwitchingControllerTest.java
14f1ec05b2add5ee051c0d2e7c7c3b36a6e77b92 29-Apr-2014 Jeff Davidson <jpd@google.com> API for network cache subsystems.

A network subsystem (e.g. Wi-Fi) will be responsible for implementing
INetworkScoreCache. NetworkScoreService will load caches for each
configured network subsystem. When it receives a call to update
scores, it will separate the networks by type and call updateScores on
the appropriate INetworkScoreCache.

Each subsystem will also be responsible for requesting scores for new
networks by calling NetworkScoreManager#requestScores.

Bug: 14408144
Bug: 14137255
Change-Id: I76e5e5205bc359c39d6b9c1782126fb7f465cd96
oretests/src/android/net/RssiCurveTest.java
dbe2aed24f2eb9753f8f0b6a6bea731489ee12f0 30-Apr-2014 Guang Zhu <guangzhu@google.com> am f0a3ea6e: am c6ebc0d1: Merge "make success explicit in BT instrumentation util" into klp-modular-dev

* commit 'f0a3ea6ea259f836c71007ab07966d9dd2a140d6':
make success explicit in BT instrumentation util
f0a3ea6ea259f836c71007ab07966d9dd2a140d6 30-Apr-2014 Guang Zhu <guangzhu@google.com> am c6ebc0d1: Merge "make success explicit in BT instrumentation util" into klp-modular-dev

* commit 'c6ebc0d120bd7faa61d2f906f4a180c720f1f0d8':
make success explicit in BT instrumentation util
bafab83995df4662cce6d05133ebce9a80abbdac 29-Apr-2014 Elliott Hughes <enh@google.com> am c4e6f6d2: am cf939672: am 2e9d924d: Merge "Remove unused import."

* commit 'c4e6f6d2827ad526f562a5882975f42eee69486c':
Remove unused import.
c4e6f6d2827ad526f562a5882975f42eee69486c 29-Apr-2014 Elliott Hughes <enh@google.com> am cf939672: am 2e9d924d: Merge "Remove unused import."

* commit 'cf939672f8c6e1ee29ae38f0e3665ab966491f7f':
Remove unused import.
f25f14eebab85611b9aa00c8f555074893849c33 29-Apr-2014 Elliott Hughes <enh@google.com> Remove unused import.

Change-Id: I3f6a035cda55859a7a521f3117da72ee962beb63
oretests/src/com/android/internal/util/FileRotatorTest.java
e47ebbeec672ece19e260ccd7f4b83a297bce61e 29-Apr-2014 Guang Zhu <guangzhu@google.com> make success explicit in BT instrumentation util

Change-Id: I6c8eb8cdb7928fa6a7c1bc96b374667d1d6ae6a1
luetoothtests/src/android/bluetooth/BluetoothInstrumentation.java
812ad2265ed1386b347c98f48cc8a2b2925541b3 28-Apr-2014 Elliott Hughes <enh@google.com> am d937f275: am 12928a07: am 2336c4ec: Merge "Fix build."

* commit 'd937f2750c6edc2c1a03901605b22dad02b89147':
Fix build.
10596fbcce710a76ffc7e917400df13af5c2ebcb 28-Apr-2014 Elliott Hughes <enh@google.com> resolved conflicts for merge of 3ce4f3d0 to master

Change-Id: Id5c5997ad8f801b32e1dbd97413ea42e38c27210
d937f2750c6edc2c1a03901605b22dad02b89147 28-Apr-2014 Elliott Hughes <enh@google.com> am 12928a07: am 2336c4ec: Merge "Fix build."

* commit '12928a07c5c19ac3dea6d0489506595c138b621a':
Fix build.
9790190feecba4bbd66d54c9b942737722e5a16f 28-Apr-2014 Elliott Hughes <enh@google.com> Fix build.

Change-Id: I0bd6e1aac19276bf664accd8d38f86d2cc7450cc
oretests/src/android/content/pm/PackageManagerTests.java
3ce4f3d0af8b20f915631ab927aafa76a6105135 28-Apr-2014 Elliott Hughes <enh@google.com> am 685a0a72: am bbd87eb9: Merge "Track libcore.os\' move to android.system."

* commit '685a0a72d445515167a2071330679cdf9b53a62d':
Track libcore.os' move to android.system.
34385d352da19805ae948215e2edbeedd16b7941 28-Apr-2014 Elliott Hughes <enh@google.com> Track libcore.os' move to android.system.

(This is partial, but should cover everything in AOSP master except
for the zygote.)

Change-Id: I1042c99245765746a744c44e714095cb2c6cb75d
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/net/LinkAddressTest.java
oretests/src/android/net/LinkPropertiesTest.java
905b33a486631d296670fa1fdf9d41daefb69a36 24-Apr-2014 Yohann Roussel <yroussel@google.com> Test multidex and annotations access.

This was able to reproduce a problem reported by GMM when they were listing
annotations on classes used before MultiDex installation. See Bug 14233284

Change-Id: I828c92f0e382dc984b6462fab710f414138e7e02
osttests/test-apps/MultiDexLegacyTestApp/AndroidManifest.xml
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/Annotated.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/Annotated2.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/AnnotationWithClass.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/AnnotationWithEnum.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/AnnotationWithEnum2.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/InterfaceWithEnum.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/MainActivity.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/ReferencedByAnnotation.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/ReferencedByAnnotationWithOtherReferences.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/ReferencedByClassInAnnotation.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/ReferencedByEnum.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/ReferencedByInterface.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/Test.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/TestApplication.java
846318a3250fa95f47a9decfbffb05a31dbd0006 04-Apr-2014 Jeff Sharkey <jsharkey@android.com> Allow prefix-based Uri permission grants.

Define new FLAG_GRANT_PREFIX_URI_PERMISSION which indicates that a
Uri permission grant should also apply to any other Uris that have
matching scheme, authority, and path segments. For example, a prefix
grant for /foo/ would allow /foo/bar/ but not /foo2/.

Allow persistable and prefix grants to be issued directly through
grantUriPermission(). Relaxing persistable is fine, since it still
requires the receiver to actively take the permission.

Since exact- and prefix-match grants for the same Uri can coexist,
we track them separately using a new UriGrant key. (Consider the
case where an app separately extends READ|PREFIX and WRITE for
the same Uri: we can't let that become READ|WRITE|PREFIX.)

Fix revoke to always take away persisted permissions. Move prefix
matching logic to Uri and add tests. Add new flags to "am" tool, and
various internal uses around Intent and Context. Switch some lagging
users to ArraySet.

Bug: 10607375
Change-Id: Ia8ce2b88421ff9f2fe5a979a27a026fc445d46f1
oretests/src/android/net/UriTest.java
bc3c1ad9606d1571932af0585053fdb85422138b 22-Apr-2014 Guang Zhu <guangzhu@google.com> am 65bcc3ff: am 6c0454ec: Merge "add bt instrumentation to run as a util" into klp-modular-dev

* commit '65bcc3ff9212514a000ccdcc4d8295ddaedcef92':
add bt instrumentation to run as a util
65bcc3ff9212514a000ccdcc4d8295ddaedcef92 22-Apr-2014 Guang Zhu <guangzhu@google.com> am 6c0454ec: Merge "add bt instrumentation to run as a util" into klp-modular-dev

* commit '6c0454ecae4fe46b7032299d02fc6da80f171ed2':
add bt instrumentation to run as a util
03800b8873f70223dcfcf396a3762775dfc1a8ab 22-Apr-2014 Guang Zhu <guangzhu@google.com> add bt instrumentation to run as a util

some bt test util methods are useful as device setup util, this
change exposes some of them via a BluetoothInstrumentation so
that they can be invoked like commands for setting up or
controlling bt state in test harness

Change-Id: I1d40baf374e145ab550ae4fa5f581e2eaf2e29bb
luetoothtests/AndroidManifest.xml
luetoothtests/src/android/bluetooth/BluetoothInstrumentation.java
luetoothtests/src/android/bluetooth/BluetoothTestUtils.java
6a4b220f1263d95fdefe6361c2bc87bbb04bbed0 17-Apr-2014 Jeff Davidson <jpd@google.com> Initial implementation of NetworkScoreManager's backing service.

This service will ultimately be responsible for propagating scores
down to lower-level network subsystems. For now, it just keeps scores
in memory and exposes these for debugging purposes via "adb shell
dumpsys network_score".

This change also adds provisioning of a default scorer. When
NetworkScoreService is first initialized, it checks to see if it has
ever set a default scorer; if not, it reads a package name from a
build config property and attempts to set it as the default.

Also add autogenerated equals/hashCode methods to all parcelables.

Bug: 14111427
Bug: 13786258
Change-Id: I02271171653d42e12acd240b73b9e23950744f6b
oretests/src/android/net/NetworkScorerAppManagerTest.java
oretests/src/android/net/NetworkScorerApplicationTest.java
dd6fd1e62b1792d1f96824b2fefb16d894b43197 15-Apr-2014 Jeff Davidson <jpd@google.com> Class for managing the active scorer application.

Allows listing all possible scorer apps, getting the active scorer
app, setting the active scorer app, and determining whether a given
UID is for the active scorer.

Note that setting a default scorer with a system image will be handled
separately - the plan here is to add a read-only build property
containing a package name to use as the scorer out of the box.
When NetworkScorerService is initialized, it will check a provisioning
bit; if that bit isn't set, it will set the current scorer to the
package specified in this build property (if any) and set the
provisioning bit to true.

Bug: 13769362
Change-Id: I18c0b2ba2aceccc88b70c3611a49149e0bf17ecf
oretests/Android.mk
oretests/src/android/net/NetworkScorerApplicationTest.java
dc960e21ef1005fab5ef145773ddd6f40c802217 08-Apr-2014 Jeff Davidson <jpd@google.com> Data structures for communication with network scorer apps.

NetworkKey represents the necessary information to identify a network
to be scored. ScoredNetwork contains the key to identify a network as
well as a score to be used when evaluating that network (as a curve
based on RSSI).

Bug: 13767776
Change-Id: I6bfebd105c9381e615513167b4332b767b43a23a
oretests/src/android/net/NetworkKeyTest.java
oretests/src/android/net/ScoredNetworkTest.java
d274c4643290261067ac1a9fee55e040aacfac3e 11-Apr-2014 Jorim Jaggi <jjaggi@google.com> Fix ugly black background when expanding/collapsing notifications.

Bug: 13635952
Change-Id: I7a0f434172db4583f904e6817d94ca12d3b117bc
oretests/src/com/android/internal/widget/SizeAdaptiveLayoutTest.java
900224afc281647710618a02347c2b8de8f19837 09-Apr-2014 Yohann Roussel <yroussel@google.com> Merge "A stress test for concurent multidex extraction."
baa00cc350572c34718d770a31ebe2f76ffc9607 07-Apr-2014 Jaewan Kim <jaewan@google.com> Merge "Revert "Refactor IpConfiguration from WifiConfiguration""
678979748585c5903125a404e448ad6c111dedad 07-Apr-2014 Jaewan Kim <jaewan@google.com> Revert "Refactor IpConfiguration from WifiConfiguration"

This reverts commit 1284767ceb1affa6d5af77fd26ccf7322df48a6d.

Change-Id: Ibccea84e5dc44c1b8954779660e0721b27f762d4
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
ce245e1c6546ef05a8645d2d54bfa3e2e4178046 07-Apr-2014 Jaewan Kim <jaewan@google.com> Merge "Refactor IpConfiguration from WifiConfiguration"
1284767ceb1affa6d5af77fd26ccf7322df48a6d 10-Mar-2014 Jaewan Kim <jaewan@google.com> Refactor IpConfiguration from WifiConfiguration

Bug: 7606609, Bug: 8687763
Change-Id: I736eb3c73a8ffc8f137a04a5ea66ee564dc2b530
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
962e12883b6a07ff5b33bd9d269869e4da50b799 29-Mar-2014 Maxim Siniavine <siniavine@google.com> DownloadManager test will wait until certain progress, is made
during download before moving to next stage of the test.

Increase the timeout for waiting for download to complete.

Change-Id: I61820a9525256f4f2e16571e1ac075d2f5268cae
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerBaseTest.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerTestApp.java
3aac33e7262dc53d878b9c7d44c3cfd31619d128 06-Nov-2013 Yohann Roussel <yroussel@google.com> A stress test for concurent multidex extraction.

Change-Id: Iab2427a8867a2a7a9a12e2557b2e970430fa6356
osttests/test-apps/MultiDexLegacyTestServices/Android.mk
osttests/test-apps/MultiDexLegacyTestServices/AndroidManifest.xml
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/AbstractService.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/ReflectIntermediateClass.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service1.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service10.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service11.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service12.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service13.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service14.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service15.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service16.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service17.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service18.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service19.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service2.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service3.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service4.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service5.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service6.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service7.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service8.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/Service9.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big001.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big002.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big003.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big004.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big005.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big006.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big007.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big008.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big009.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big010.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big011.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big012.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big013.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big014.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big015.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big016.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big017.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big018.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big019.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big020.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big021.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big022.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big023.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big024.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big025.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big026.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big027.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big028.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big029.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big030.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big031.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big032.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big033.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big034.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big035.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big036.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big037.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big038.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big039.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big040.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big041.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big042.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big043.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big044.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big045.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big046.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big047.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big048.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big049.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big050.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big051.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big052.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big053.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big054.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big055.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big056.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big057.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big058.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big059.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big060.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big061.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big062.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big063.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big064.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big065.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big066.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big067.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big068.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big069.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big070.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big071.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big072.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big073.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big074.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big075.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big076.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big077.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big078.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big079.java
osttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/manymethods/Big080.java
osttests/test-apps/MultiDexLegacyTestServicesTests/Android.mk
osttests/test-apps/MultiDexLegacyTestServicesTests/AndroidManifest.xml
osttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/ServicesTests.java
f1977b4500e82b72ea6aa5c46d97406a20017caf 25-Mar-2014 Christopher Tate <ctate@google.com> Expand install observer semantics

...and now fail conservatively when two apps both attempt to define
the same permission. Apps signed with the same certificate are
permitted to redefine permissions.

We also finally have a (hidden) interface class for observing package
installation so that we can now rev the interface without breaking
existing callers.

Bug 13551375

Change-Id: Ifa4e59154dcccbb286ee46a35a6f25e4ad0f0f01
oretests/src/android/content/pm/PackageManagerTests.java
1ee4eb074c2d85148658e93e865a18834bdced72 26-Mar-2014 Glenn Kasten <gkasten@google.com> Merge "Revert "Expand install observer semantics""
7629a18a3f190368e6268d3f2827824905683268 26-Mar-2014 Glenn Kasten <gkasten@google.com> Revert "Expand install observer semantics"

This reverts commit ab8a501f255b272af887acb0e66eb71cdf24c755.

Change-Id: I4ab4ae1a96efa2adf9d5a513793d8b84eef38b4e
oretests/src/android/content/pm/PackageManagerTests.java
9067dc03ffc76c5210d26d5a53a211eff046d412 26-Mar-2014 Christopher Tate <ctate@google.com> Merge "Expand install observer semantics"
ab8a501f255b272af887acb0e66eb71cdf24c755 25-Mar-2014 Christopher Tate <ctate@google.com> Expand install observer semantics

...and now fail conservatively when two apps both attempt to define
the same permission.

We also finally have a (hidden) interface class for observing package
installation so that we can now rev the interface without breaking
existing callers.

Bug 13551375

Change-Id: I3a286d024a30e812ee4b098f345401df3c00e178
oretests/src/android/content/pm/PackageManagerTests.java
185a7e38bc58abd341445ef9acdec9a4722a6946 26-Sep-2013 Yohann Roussel <yroussel@google.com> Add one test application for multidex.

This application is intended to be run by
SupportMultidexHostTest.

Change-Id: Icace956cd68e03735fd8c73f877d911f01098f54
osttests/test-apps/MultiDexLegacyTestApp/Android.mk
osttests/test-apps/MultiDexLegacyTestApp/AndroidManifest.xml
osttests/test-apps/MultiDexLegacyTestApp/res/layout/activity_main.xml
osttests/test-apps/MultiDexLegacyTestApp/res/values/strings.xml
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/IntermediateClass.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/MainActivity.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/Referenced.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/Test.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big001.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big002.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big003.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big004.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big005.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big006.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big007.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big008.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big009.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big010.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big011.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big012.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big013.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big014.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big015.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big016.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big017.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big018.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big019.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big020.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big021.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big022.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big023.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big024.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big025.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big026.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big027.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big028.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big029.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big030.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big031.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big032.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big033.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big034.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big035.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big036.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big037.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big038.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big039.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big040.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big041.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big042.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big043.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big044.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big045.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big046.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big047.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big048.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big049.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big050.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big051.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big052.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big053.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big054.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big055.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big056.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big057.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big058.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big059.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big060.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big061.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big062.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big063.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big064.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big065.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big066.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big067.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big068.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big069.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big070.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big071.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big072.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big073.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big074.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big075.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big076.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big077.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big078.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big079.java
osttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/manymethods/Big080.java
454fc6b1189225c54a833053f6aed32508f42f3e 18-Mar-2014 Xia Wang <xiaw@google.com> am 560e7541: am 1b007565: am 9b650702: Merge "Fix state transition verification." into klp-dev

* commit '560e75417252b502a41967aa4d819a029361e384':
Fix state transition verification.
560e75417252b502a41967aa4d819a029361e384 18-Mar-2014 Xia Wang <xiaw@google.com> am 1b007565: am 9b650702: Merge "Fix state transition verification." into klp-dev

* commit '1b007565c73097728496f3dbe811a51c879ba89e':
Fix state transition verification.
01f03b50fb8adac275b6e73abe92c8a926f5b602 04-Mar-2014 Xia Wang <xiaw@google.com> Fix state transition verification.

When there is connectivity state change, the network states could be broadcasted multiple times.
The state transition should consider that.

Bug: 13277256
Change-Id: I3d400900a0e2454f9d198629f1c062cbb15bdcd8
(cherry picked from commit 71aae0b6fd1bb9204b81c2e9447f3544c29579c4)
onnectivityManagerTest/src/com/android/connectivitymanagertest/NetworkState.java
432f755d44d3afc20cef2b78559ad31775d3a06d 17-Mar-2014 Jeff Sharkey <jsharkey@android.com> am ac0f9ffd: am da07fe64: am eeb36c5c: am d88d8174: Merge "Null pointer exception in FileRotator.java"

* commit 'ac0f9ffda2a7e48d2d641654dafd11b8da39830a':
Null pointer exception in FileRotator.java
bbf1861fdd2ba250354c060fe70f0ee7cbe93877 13-Dec-2013 Mikael Gullstrand <mikael.gullstrand@sonymobile.com> Null pointer exception in FileRotator.java

Sometimes a null pointer exception is thrown when examining files
managed by the file rotator.

The logs from the test show that the Wifi state is changed a large
number of times. On every state change, a write operation is
initiated on the file system. This will eventually result in out
of memory and the call to mBasePath.list() in the maybeRotate(...)
method in FileRotator.java will return null so the iteration will
throw a NullPointerException.

Change-Id: I5d5980d9593bc9ec75281169ca27ee591809903f
oretests/src/com/android/internal/util/FileRotatorTest.java
a305d7229fb99a536293b5d52cdb9ce3c820d6c8 13-Mar-2014 Maxim Siniavine <siniavine@google.com> Fixes for download manager test.

When checking that the download is in progress, check the number number
of bytes downloaded as reported by download manager, rather than looking at the file size.

When waiting for the download to complete rely on the received broadcast.

Bug: 13326931

Change-Id: I4c2431dd71e17602e758bc482be185683040ea98
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerBaseTest.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerTestApp.java
6bed599aa7395f7a78bf7d74e3ec40c5b234909b 08-Mar-2014 Xia Wang <xiaw@google.com> Merge "Fix state transition verification."
71aae0b6fd1bb9204b81c2e9447f3544c29579c4 04-Mar-2014 Xia Wang <xiaw@google.com> Fix state transition verification.

When there is connectivity state change, the network states could be broadcasted multiple times.
The state transition should consider that.

Bug: 13277256
Change-Id: I3d400900a0e2454f9d198629f1c062cbb15bdcd8
onnectivityManagerTest/src/com/android/connectivitymanagertest/NetworkState.java
f06569561fe1c6e898debf8bb9f37331a9f87323 03-Mar-2014 Yohei Yukawa <yukawa@google.com> Introduce InputMethodSubtypeArray for memory efficient IPCs

This CL introduces InputMethodSubtypeArray which compresses
multiple instances of InputMethodSubtype to reduce the risk
of TransactionTooLargeException during IPCs.

There are some IMEs which rapidly adding new subtypes into
their supported language list. One problem here is that each
instance of InputMethodInfo internally owns the list of
supported subtypes. Basically it requires additional
200 ~ 300 bytes for each subtype when InputMethodInfo is
transffered via IPCs. We should keep the size less than
100 KB in typical scenario.

With this CL, the list of InputMethodSubtype is marshalled
with GZIP compression. Approximately one InputMethodInfo is
marshalled within 10 KB even when it has 100 subtypes.

No negative performance impact is observed so far. The cost of
decompression seems to be compensated by another optimization
in this CL. Actually marshalling cost is reduced with this CL
by caching the compressed data on demand.

BUG: 12954290
Change-Id: Ibb2940fcc02f3b3b51ba6bbe127d646fd7de7c45
nputmethodtests/run_core_inputmethod_test.sh
nputmethodtests/src/android/os/InputMethodSubtypeArrayTest.java
0df3cdbc813c24162192b790ea9b04b2e6a7a8bd 04-Mar-2014 Xia Wang <xiaw@google.com> Merge "Add timer to wait for screen off"
df362d264c5a0204f27da6ee66d741031626c4e5 04-Mar-2014 Xia Wang <xiaw@google.com> Add timer to wait for screen off

bug#: 13278052

Change-Id: Ic4dc847f3f3fe86750343ffabedb13dbeb4f61a7
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
c18cd393f65146fac03a9bdfa45380a69460ee98 03-Mar-2014 Yohei Yukawa <yukawa@google.com> Make sure InputMethodInfo implements Parcelable transitively

This CL adds one more test to make sure InputMethodInfo
implements Parcelable correctly. This test makes sure that
one can marshall and unmarshall again from an unmarshalled
copy of InputMethodInfo.

BUG: 12954290
Change-Id: I5aa1552a8089fe0bac54513ba224e5bfc494be97
nputmethodtests/src/android/os/InputMethodTest.java
589800485d770cab7b159ffcf4b18c10ae2aee6d 27-Feb-2014 Yohei Yukawa <yukawa@google.com> Add unit test for InputMethodInfo

This CL adds a unit test to make sure that InputMethodInfo
implements Parcelable correctly.

BUG: 12954290
Change-Id: I0abe8c266b4b035bf8ef4688d11069b355fabe9f
nputmethodtests/src/android/os/InputMethodTest.java
1ec1370a5d8c5ee7318766fbafad59ea76a644c9 26-Feb-2014 Yohann Roussel <yroussel@google.com> Merge "Add support.multidex tests app for an update bug."
05e2a94c8b510131f43a686f5188d4c0f2a5eebd 15-Oct-2013 Yohann Roussel <yroussel@google.com> Add support.multidex tests app for an update bug.

The failing scenario is
- install v1
- run
- update to v2
- update to v3
- run
last run was failing with initial multidex library versions because
it's still running on v1 extracted secondary dex files.

Change-Id: Id9811371fc70b0a4e9b49de913ee38d18699b21d
osttests/test-apps/MultiDexLegacyVersionedTestApp_v1/Android.mk
osttests/test-apps/MultiDexLegacyVersionedTestApp_v1/AndroidManifest.xml
osttests/test-apps/MultiDexLegacyVersionedTestApp_v1/res/layout/activity_main.xml
osttests/test-apps/MultiDexLegacyVersionedTestApp_v1/src/com/android/framework/multidexlegacyversionedtestapp/ClassForMainDex.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v1/src/com/android/framework/multidexlegacyversionedtestapp/MainActivity.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v1/src/com/android/framework/multidexlegacyversionedtestapp/MultiDexUpdateTest.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v1/src/com/android/framework/multidexlegacyversionedtestapp/Version.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v2/Android.mk
osttests/test-apps/MultiDexLegacyVersionedTestApp_v2/AndroidManifest.xml
osttests/test-apps/MultiDexLegacyVersionedTestApp_v2/res/layout/activity_main.xml
osttests/test-apps/MultiDexLegacyVersionedTestApp_v2/src/com/android/framework/multidexlegacyversionedtestapp/ClassForMainDex.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v2/src/com/android/framework/multidexlegacyversionedtestapp/MainActivity.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v2/src/com/android/framework/multidexlegacyversionedtestapp/MultiDexUpdateTest.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v2/src/com/android/framework/multidexlegacyversionedtestapp/Version.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v3/Android.mk
osttests/test-apps/MultiDexLegacyVersionedTestApp_v3/AndroidManifest.xml
osttests/test-apps/MultiDexLegacyVersionedTestApp_v3/res/layout/activity_main.xml
osttests/test-apps/MultiDexLegacyVersionedTestApp_v3/src/com/android/framework/multidexlegacyversionedtestapp/ClassForMainDex.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v3/src/com/android/framework/multidexlegacyversionedtestapp/MainActivity.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v3/src/com/android/framework/multidexlegacyversionedtestapp/MultiDexUpdateTest.java
osttests/test-apps/MultiDexLegacyVersionedTestApp_v3/src/com/android/framework/multidexlegacyversionedtestapp/Version.java
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 25-Feb-2014 John Spurlock <jspurlock@google.com> Tabs -> spaces in frameworks/base.

Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
oretests/src/android/app/TranslucentFancyActivity.java
oretests/src/android/app/activity/AbortReceiver.java
oretests/src/android/app/activity/RemoteSubActivityScreen.java
oretests/src/android/app/activity/SubActivityScreen.java
oretests/src/android/database/DatabaseCursorTest.java
oretests/src/android/database/DatabaseStatementTest.java
b2e0733fe649ae98cf1a4cc449eed12ce72b7224 17-Feb-2014 Narayan Kamath <narayan@google.com> am 94b7c749: am 37e6af75: am 92a09fbd: am a14d9c31: Merge "Move Json{Reader,Writer} test to cts."

* commit '94b7c749fd0bc5bbd80dbabfd412c2a212584343':
Move Json{Reader,Writer} test to cts.
94ccb6bf95d1a798ff980816528747b14ffff7fd 17-Feb-2014 Narayan Kamath <narayan@google.com> Move Json{Reader,Writer} test to cts.

These tests aren't really run automatically (or perhaps
even manually) in their present location, and increasing
CTS coverage is never a bad thing.

Change-Id: I81cce1211021011dca551fde62e725e177ca4df0
oretests/src/android/util/JsonReaderTest.java
oretests/src/android/util/JsonWriterTest.java
f75f6e323c50eeb4e4e1a7034737c69eae74f97e 13-Feb-2014 Dianne Hackborn <hackbod@android.com> am 32acb5e9: am 97de064a: am 133f6826: am 89492190: Merge "Runtime resource overlay, iteration 2, test cases"

* commit '32acb5e9d130ac858f34d83526e7460c624b41c7':
Runtime resource overlay, iteration 2, test cases
ebf8ad5d91b22eb4359c75711a5b70ddcce0723d 31-Jan-2014 Jeff Sharkey <jsharkey@android.com> Update DrmOutputStream to use raw FileDescriptor.

This allows DownloadManager to use FDs, paving the way for downloading
directly to content:// Uris.

Also return flag indicating if deleteOlderFiles() actually deleted
anything. Update tests to verify.

Bug: 5287571
Change-Id: I2579e5e2113f31b2860d7b021bd61c91b6310963
oretests/src/android/os/FileUtilsTest.java
b15c0e512c98434b81647cf3cd4620e84dc9ab61 05-Feb-2014 Maxim Siniavine <siniavine@google.com> Using large file for download manager test.

This should decrease the chance of the file being downloaded too quickly and
confusing the test.

Change-Id: I8f4debbb51798162493d6a8005e1aa142738dbd4
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerTestApp.java
ad6ed950dbfa152c193dd7e49c369d9e831f1591 31-Jan-2014 MÃ¥rten Kongstad <marten.kongstad@sonymobile.com> Runtime resource overlay, iteration 2, test cases

Add automated test cases for runtime resource overlay, iteration 2.

The test cases are a mixture of 'adb shell' commands and regular
instrumentation tests. The device is rebooted between tests to setup
different overlay scenarios for framework-res.apk.

To verify Runtime resoure overlay, iteration 2, run
$ frameworks/base/core/tests/overlaytests/testrunner.py

For a list of supported options, run
$ frameworks/base/core/tests/overlaytests/testrunner.py --help

Change-Id: I692aa1a7ad073efd116b24f9ec7f197dfd65dfef
verlaytests/OverlayAppFirst/Android.mk
verlaytests/OverlayAppFirst/AndroidManifest.xml
verlaytests/OverlayAppFirst/res/drawable-nodpi/drawable.jpg
verlaytests/OverlayAppFirst/res/raw/lorem_ipsum.txt
verlaytests/OverlayAppFirst/res/values-sv/config.xml
verlaytests/OverlayAppFirst/res/values/config.xml
verlaytests/OverlayAppFirst/res/xml/integer.xml
verlaytests/OverlayAppSecond/Android.mk
verlaytests/OverlayAppSecond/AndroidManifest.xml
verlaytests/OverlayAppSecond/res/raw/lorem_ipsum.txt
verlaytests/OverlayAppSecond/res/values-sv/config.xml
verlaytests/OverlayAppSecond/res/values/config.xml
verlaytests/OverlayAppSecond/res/xml/integer.xml
verlaytests/OverlayTest/Android.mk
verlaytests/OverlayTest/res/drawable-nodpi/drawable.jpg
verlaytests/OverlayTest/res/raw/lorem_ipsum.txt
verlaytests/OverlayTest/res/values-sv/config.xml
verlaytests/OverlayTest/res/values/config.xml
verlaytests/OverlayTest/res/xml/integer.xml
verlaytests/OverlayTest/src/com/android/overlaytest/OverlayBaseTest.java
verlaytests/OverlayTest/src/com/android/overlaytest/WithMultipleOverlaysTest.java
verlaytests/OverlayTest/src/com/android/overlaytest/WithOverlayTest.java
verlaytests/OverlayTest/src/com/android/overlaytest/WithoutOverlayTest.java
verlaytests/OverlayTestOverlay/AndroidManifest.xml
verlaytests/OverlayTestOverlay/res/drawable-nodpi/default_wallpaper.jpg
verlaytests/OverlayTestOverlay/res/values-sv/config.xml
verlaytests/OverlayTestOverlay/res/values/config.xml
verlaytests/README
verlaytests/runtests.sh
verlaytests/testrunner.py
4ca728c064aeab644f6d044e0285eaa056818b8a 11-Jan-2014 Jeff Sharkey <jsharkey@android.com> Detect removable and emulated secondary storage.

Also rename existing secondary storage API to match naming
convention in rest of class.

Bug: 11536709
Change-Id: I2684c817de4982b414893d2d9927a21e3f171d53
oretests/src/android/os/FileUtilsTest.java
98fcf484efbba3252174d6db1e21ba308a968c04 07-Jan-2014 Narayan Kamath <narayan@google.com> am d2098682: am 3f2843a4: am c47b7d37: am 9d4ebdca: am cf1aa551: Merge "XmlUtils#readThisMapXml should handle null keys."

* commit 'd2098682ab269d311dd482a38e8557df6717ee17':
XmlUtils#readThisMapXml should handle null keys.
f748257eee651b974e15274e03fe9843a8393073 18-Dec-2013 Narayan Kamath <narayan@google.com> XmlUtils#readThisMapXml should handle null keys.

Both readThisValueXml & writeThisValueXml have been
implemented to handle values with "null" names.

Change readThisMapXml to allow such names as well, and
map them to the null key in the resulting HashMap.
readThisListXml and readThisSetXml already support
null names.

bug: https://code.google.com/p/android/issues/detail?id=63463

Change-Id: I1c93976656e45e7733113eb67d29b6bad5d25f1f
oretests/src/com/android/internal/util/XmlUtilsTest.java
4598ea4e5e6b2accce5165a76f5e2d04ce46c74c 09-Dec-2013 Lorenzo Colitti <lorenzo@google.com> am 263c4788: am 30253d7a: am 2daa0c93: Merge "Add address flags and scope to LinkAddress."

* commit '263c4788dcf45f104f8668fd6621d1a7c39689b9':
Add address flags and scope to LinkAddress.
2daa0c93c4a0a9d18f4ef4486369fb8c90cd1ea2 07-Dec-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Add address flags and scope to LinkAddress."
64483947fdb03bf838e317ac0a4af5e0f53a5bbf 15-Nov-2013 Lorenzo Colitti <lorenzo@google.com> Add address flags and scope to LinkAddress.

This is necessary so that the framework can know whether an IPv6
address is likely to be usable (i.e., if it's global scope and
preferred). Also, it will simplify the address notification
methods in INetworkManagementEventObserver, which currently take
the address, the flags, and the scope as separate arguments.

1. Add flags and scope to the class and update the unit test.
Use the IFA_F_* and RT_SCOPE_* constants defined by libcore.
Since most callers don't know about flags and scope, provide
constructors that default the flags to zero and determine the
scope from the address. Addresses notified by the kernel will
have these properly set. Make multicast addresses invalid.
Update the class documentation.
2. Provide an isSameAddressAs() method that compares only the
address and prefix information between two LinkAddress
objects. This is necessary because an interface can't have
two addresses with the same address/prefix but different
flags.
3. Update LinkProperties's addLinkAddress and removeLinkAddress
to identify existing addresses to add/remove using
isSameAddressAs instead of implicit equals(). Specifically:
- If addLinkAddress is called with an address that is already
present, the existing address's flags and scope are updated.
This allows, for example, an address on an interface to go
from preferred to deprecated when it expires, without it
having to be removed and re-added.
- If removeLinkAddress is called with an address that is
present but with different flags, it deletes that address
instead of failing to find a match.
4. Update the INetworkManagementEventObserver address
notification methods to take just a LinkAddress instead of
LinkAddress, flags, and scope. While I'm at it, change the
order of the arguments for consistency with the other
functions in the interface.

Change-Id: Id8fe0f09a7e8f6bee1ea3b52102178b689a9336e
oretests/src/android/net/LinkAddressTest.java
oretests/src/android/net/LinkPropertiesTest.java
ebcb32f58a6220802ca129ea33f47b4b69931a10 05-Dec-2013 The Android Open Source Project <initial-contribution@android.com> Merge commit 'bac61807d3bcfff957b358cb9ad77850bd373689' into HEAD

Change-Id: I29374270c8e0c2f2859efaf1d55af9f73da0f8d7
66c621496fb2b4381e7dcf33ee3272ca3eed8da7 04-Dec-2013 Lorenzo Colitti <lorenzo@google.com> am 13d9dfb4: am 86570409: am 453a5233: Merge "Minor changes to LinkAddress."

* commit '13d9dfb495db1431623c712b36cac1fe2f3c2fc0':
Minor changes to LinkAddress.
86570409a28ff359acbf56cc11bc1ad4d5f57630 04-Dec-2013 Lorenzo Colitti <lorenzo@google.com> am 453a5233: Merge "Minor changes to LinkAddress."

* commit '453a5233086b216f2a95d0879954a2af39279095':
Minor changes to LinkAddress.
e1ad1849f3a65c1ff06919351ef1d73e9bc8854e 27-Nov-2013 Lorenzo Colitti <lorenzo@google.com> Minor changes to LinkAddress.

1. Simplify the parceling code. Since the InetAddress inside a
LinkAddress can never be null, we don't need to special-case
the case where it is.
2. Add / update method documentation.
3. Write a unit test.

Change-Id: Iba0a8cecc683d55d736419965e72ee33dd66dc22
oretests/src/android/net/LinkAddressTest.java
5267bb247f00031f0d9142c5ec622f16bf85e3dc 08-Nov-2013 Maxim Siniavine <siniavine@google.com> am 134b9146: am d66cbc0b: am 598a7aed: Merge "Fix BandwidthTest to report correct stats." into klp-dev

* commit '134b91469c2894477dda786c1572b80b596c62ac':
Fix BandwidthTest to report correct stats.
ca76692417aad438f816a9a57059e9aea445f2d4 05-Nov-2013 Maxim Siniavine <siniavine@google.com> Fix BandwidthTest to report correct stats.

The test used to report report stats for a random uid. Fixed it to report
stats for the Instrumentation uid or download manager uid, depending on the test.

Change-Id: I089162c19e25cbf0dfb05645a9a1018dd7567423
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
0b3bcedcccdbb5773877bdc61e436502a5f80f6a 23-Oct-2013 Narayan Kamath <narayan@google.com> Merge "Get rid of coretests/android.text.HtmlTest"
e27564fbae288221ba719bb8bc6e042b87dc4209 23-Oct-2013 John Spurlock <jspurlock@google.com> am 759bc4f4: am 7539a5af: am 2f566900: Merge "Ensure the simple CAB appears below the status bar." into klp-dev

* commit '759bc4f421e01460cff92522bf70d52c53b79e85':
Ensure the simple CAB appears below the status bar.
Add 'no system permission' test app.
515662fa6f845a9abb09785253998fc29ac88666 23-Oct-2013 Narayan Kamath <narayan@google.com> Get rid of coretests/android.text.HtmlTest

This is a strict subset of android.text.cts.HtmlTest and
is currently completely broken (due to ltr changes).

Change-Id: If8d5c8a03f96ef3712cd398f297c8872d91403bb
oretests/src/android/text/HtmlTest.java
305258da757bc1dff447a27b1c7e510cb65191bb 22-Oct-2013 Brett Chabot <brettchabot@google.com> Add 'no system permission' test app.

Used in PackageManagerOTATests to verify upgraded system apps
are granetd new permissions.

Bug 11271490

Change-Id: Idbc07bc043d06ea15dc41285ecbfb8186a7ecc95
oretests/apks/version_nosys/Android.mk
oretests/apks/version_nosys/AndroidManifest.xml
oretests/apks/version_nosys/res/values/strings.xml
oretests/apks/version_nosys/src/com/android/frameworks/coretests/version_test/NullProvider.java
fd5f566db84722f9cf54085d8a378e9398ef260d 19-Sep-2013 Chris Wren <cwren@android.com> add a test for BackupData helpers.

Bug: 10821481
Change-Id: I3e28123d36927ae4a22d26378b8bf1cd4e87cfd2
oretests/Android.mk
oretests/assets/backup_mock.dat
oretests/assets/backup_mock.gld
oretests/assets/backup_real.dat
oretests/assets/backup_real.gld
oretests/src/android/app/backup/BackupDataTest.java
b2ca5bf607f68eb645217a8157bbba093754d938 16-Sep-2013 Xia Wang <xiaw@google.com> am bac2fcac: am 326f4505: Merge "Update the Connectivity Manager test suit to use InstrumentationTestCase." into klp-dev

* commit 'bac2fcacbef1366327aa3450d6be942688fb6a68':
Update the Connectivity Manager test suit to use InstrumentationTestCase.
326f4505e04b24f384e84da7efcefab256777a27 16-Sep-2013 Xia Wang <xiaw@google.com> Merge "Update the Connectivity Manager test suit to use InstrumentationTestCase." into klp-dev
8f64e3cd42730e0961a9c4d68f3ab49ffabdf649 16-Sep-2013 Igor Murashkin <iam@google.com> am 14297141: am 5cf86aa7: Merge "media: Update ImageReader to remove MaxImagesAcquiredException" into klp-dev

* commit '142971418c8e9ca539dae40f3c2532956f258e6b':
media: Update ImageReader to remove MaxImagesAcquiredException
19306af73a8175e1327101132e26a35c7dfe5168 14-Sep-2013 Xia Wang <xiaw@google.com> Update the Connectivity Manager test suit to use InstrumentationTestCase.

- Remove ConnectivityManagerTestActivity as the test activity could be destroyed
after a system config change, which cause test failure in the wifi stress test.
- Update all tests to use InstrumentationTestCase, which instruments the test package.

Bug : 10426067

Change-Id: Ibf6f1f7cffd7a7eabc4cc63c7e033b59274b724e
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestBase.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerUnitTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiAssociationTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/unit/WifiClientTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/unit/WifiSoftAPTest.java
5454e3ddcc0c64dd894dfd25e38226a8bef62f7a 16-Sep-2013 Igor Murashkin <iam@google.com> am 720b1fce: am 26cb5fd5: Merge "media: Update ImageReader APIs" into klp-dev

* commit '720b1fcecd6c21bf4fbe6d3822e52c8a092b93c4':
media: Update ImageReader APIs
e3351f1942bfe86682389b278e7ff128a72ea671 13-Sep-2013 Igor Murashkin <iam@google.com> media: Update ImageReader to remove MaxImagesAcquiredException

* acquiring images now throws IllegalStateException instead of
MaxImagesAcquiredException

Bug: 10691447
Change-Id: I7ce68f990fb96703705b9181012a28633fea0b7a
oretests/src/android/hardware/display/VirtualDisplayTest.java
5e712064dfe48992f8f732208fa4fc13f3455b30 30-Aug-2013 Igor Murashkin <iam@google.com> media: Update ImageReader APIs

Bug: 10461757
Change-Id: Ic04e4c41965e3d417b29004f3f08e0cd56b8f4cb
oretests/src/android/hardware/display/VirtualDisplayTest.java
486ad2a7bac5267cd51a2846b6bd7c705fb2e3e3 12-Sep-2013 Xia Wang <xiaw@google.com> am 6c2ad7ac: am b32a8042: Merge "Use setAirplaneMode() API for Connectivity Manager tests" into klp-dev

* commit '6c2ad7ac97ecc23525ff5ad499edaa9316c230e9':
Use setAirplaneMode() API for Connectivity Manager tests
0076729d3880f6c71a607af42e06be02c7bda542 11-Sep-2013 Xia Wang <xiaw@google.com> Use setAirplaneMode() API for Connectivity Manager tests

Change-Id: I2e35c58e4101b6b5fe9efdb5adad922402d38b6f
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
d6b37fdf6c24321a87566ad4053dad5daa3a844a 09-Sep-2013 Narayan Kamath <narayan@google.com> Allow SSL caches to be installed directly on SSLContexts.

This allows clients to enable ssl session caching without
having to use SSLCertificateSocketFactory.

Change-Id: Id63b8b31f51c96e73beefe9ecc5fd0cf0a1852c6
oretests/src/android/net/SSLSessionCacheTest.java
af9272349fb9eed1653d5af0768c9517e36070a6 10-Sep-2013 Jeff Sharkey <jsharkey@android.com> Merge changes I7b3f4c68,I9f022a08 into klp-dev

* changes:
Rename offer() to add(), remove/hide some APIs.
Sort order is sticky for session, back leaves.
11f2b42d8c185ac91db07a539605cba7ecd28e6a 07-Sep-2013 Xia Wang <xiaw@google.com> Remove system user id for cm tests

Change-Id: I51f500c8e7b4e2963093e20c6f20bcfe020995c9
(cherry picked from commit 575495c29007503566e28004bf60018a824b1f1b)
onnectivityManagerTest/AndroidManifest.xml
b7757a6b32edea62a1a9a803ad83579220f26100 10-Sep-2013 Jeff Sharkey <jsharkey@android.com> Rename offer() to add(), remove/hide some APIs.

Change MatrixCursor offer() to add() based on review feedback. Remove
some now-unused XML metadata. Hide document creation, since it's not
supported in initial version.

Bug: 10577809, 10461706, 10678563
Change-Id: I7b3f4c6899c28f633471ef816bee22bf032aa0d2
oretests/src/android/database/MatrixCursorTest.java
69df743f7489ca67ef1c94270325d1056f1bc546 07-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Fix the build.

Change-Id: Ia5d29de9db7ea8fd467b3bde551a8cfb95877b41
oretests/src/android/net/LinkPropertiesTest.java
9d9b74a900696191048aa97cc3c854072640428b 01-Sep-2013 sy.yun <sy.yun@lge.com> Setting MTU size for specific network.

Able to config network specific MTU size. Normally, the default size of MTU is 1500.
US - ATT 1410, TMUS 1440, SPRINT 1422
KR - SKT 1440, KT 1450, LGU+ 1428
JP - KDDI 1420, SoftBank 1340
CA - RGS 1430, FIDO 1430, MTS 1430, BELL 1358, SaskTel 1358
AU - TEL 1400

Bug: 10195070
Change-Id: Ie18650b37a3d44af944f2dae4aa97c04fb12cd5e
oretests/src/android/net/LinkPropertiesTest.java
22f407b11e11cfdb336e06e8c0d4a7ef1eafc783 23-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Add a function to replace all the link addresses.

Bug: 10232006
Change-Id: I689ce4735999dac2ab5e1fae09d80b1f734292a1
oretests/src/android/net/LinkPropertiesTest.java
580e60fdcd64ba1c8cd6bad3d20200312b7503aa 31-Aug-2013 Kenny Root <kroot@google.com> Merge "Use core-tests-support instead of core-tests" into klp-dev
3603f04ab8b828a8fc990e21ad459f7a38775941 29-Aug-2013 Kenny Root <kroot@google.com> Use core-tests-support instead of core-tests

The core-tests-support library is newly created. It doesn't have any
tests itself but some support for tests that need to use mocked classes
for testing. In this case, some tests are using TestKeyStore for SSL
testing in frameworks tests.

(cherry picked from commit c2d6728350f3ec80f9b4c8967794558e42516987)

Bug: 10092469
Change-Id: Ib38364c607de5a98eb242050eaaf52b22ab8ca57
oretests/Android.mk
ada3dbe7c98e44ed350e83cad62eb9f410bbc0f2 26-Aug-2013 Jonathan Dixon <joth@google.com> Remove WebViewClassic specific test code

Bug: 10427705

These tested internals of WebViewClassic and will no longer build when
that is removed

Change-Id: I42af538dcb0343e9eff0b3fa85d7ff39f19c7c61
oretests/src/android/webkit/AccessibilityInjectorTest.java
oretests/src/android/webkit/AccessibilityInjectorTestActivity.java
oretests/src/android/webkit/UrlInterceptRegistryTest.java
oretests/src/android/webkit/WebkitTest.java
oretests/src/android/webkit/ZoomManagerTest.java
4faa027df03c241c92a12a437f20767ab4d6ee64 08-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Modify LinkProperties address update methods.

1. Make addLinkAddress a no-op if the address already exists.
2. Make addLinkAddress, addStackedLink and removeStackedLink
return a boolean indicating whether something changed.
3. Add a removeLinkAddress method (currently there is no way of
removing an address).
3. Move hasIPv6Address from ConnectivityService to
LinkProperties, where it belongs.

Bug: 9625448
Bug: 10232006
Change-Id: If641d0198432a7a505e358c059171f25bc9f13d5
oretests/src/android/net/LinkPropertiesTest.java
9d0843df7e3984293dc4ab6ee2f9502e898b63aa 07-May-2013 Jeff Sharkey <jsharkey@android.com> Resized thumbnails; async; extend MatrixCursor.

When requesting thumbnails, check if their dimensions are larger
than requested, and downscale to avoid memory pressure. Load them
async and with LruCache.

Extend MatrixCursor so that RowBuilder can offer() columns without
requiring they know the projection map. This makes it easier to
respond to query() calls, where the remote side controls the
projection map. Use it to handle custom projections in external
storage backend.

Update date/time formatting to match spec.

Bug: 10333418, 10331689
Change-Id: I7e947a8e8068af8a39b55e6766b3241de4f3fc16
oretests/src/android/database/MatrixCursorTest.java
8aa1ffb0ed292891030992c65df4e5dc8bd37524 08-Aug-2013 Chet Haase <chet@google.com> pause/resume for Animators

It is now possible to pause Animator-based animations. Pausing an
animator causes it to hold the current time/value indefinitely, or
until end/cancel/resume is called. When resume() is called, it continues
from where it left off.

There is a new listener interface on Animator, AnimatorPauseListener,
which can be used to listen to pause/resume events.

Change-Id: I77d1535e792fb7bf349f549a0ac0a0d85958cb47
oretests/src/android/animation/AnimatorSetEventsTest.java
oretests/src/android/animation/EventsTest.java
a50f4b1d0592d34547a4bb33e08915b171f954f6 08-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Simplify LinkPropertiesTest."
3f1e1b2ce407684519f8bd070c931940fd33db4f 08-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Simplify LinkPropertiesTest.

Instead of converting IP addresses to strings throughout the
test, do so once at the beginning.

Change-Id: I7f0dae5d2e9e2cdc6ec808e2cf71197ba6ade0a4
oretests/src/android/net/LinkPropertiesTest.java
f724c277d3362dbc8099fcbf8674609a424cd2ee 07-Aug-2013 Jeff Brown <jeffbrown@google.com> Add more virtual display tests.

We can't test everything in CTS because some features require
system permissions. So this is another copy of the CTS test
with more stuff that we can build with the system cert.

Change-Id: Ied5a456a0810d38d307b6dfbad0f770cb480b4ee
oretests/AndroidManifest.xml
oretests/src/android/hardware/display/VirtualDisplayTest.java
d1e0fae2bc5c98b1f00b185d7be7219dc7e1d0f7 31-Jul-2013 Lorenzo Colitti <lorenzo@google.com> Add accessors for all addresses and clarify compare* methods

1. Add a method to return all addresses and all LinkAddresses on
all links (both base links and stacked links). We already had
one for routes, but did not yet have any for addresses.
2. Rename compareRoutes to compareAllRoutes, because unlike the
other compare* methods, it looks at all interfaces. Update
what appears to be its only caller.
3. Update the documentation of the compare* methods to match
reality (they don't return lists) and clarify whether they
look at all links or only the base link.

Change-Id: Ie22e6c7f163d5de8e407248b45171dc28382d2d3
oretests/src/android/net/LinkPropertiesTest.java
6e7affeb3d0d026db20690072d8a661847888a42 29-Jun-2013 Elliott Hughes <enh@google.com> am b8292830: resolved conflicts for merge of a920f25f to jb-mr2-dev-plus-aosp

* commit 'b8292830f79fc76ffb9a1be5cd316212ac494d03':
Switch frameworks/base over from @hidden Charsets to public StandardCharsets.
b8292830f79fc76ffb9a1be5cd316212ac494d03 29-Jun-2013 Elliott Hughes <enh@google.com> resolved conflicts for merge of a920f25f to jb-mr2-dev-plus-aosp

Change-Id: I3349f8d2e6715171e2677c1385122ceb2810c1f6
a920f25fe55fc9afc7640902a200f19ce278588b 29-Jun-2013 Elliott Hughes <enh@google.com> resolved conflicts for merge of fca0f92e to stage-aosp-master

Change-Id: I4791f0ffa324a313b8390fbde6d8f82f716ecf74
d396a448b2e36e29598c954b64bfddef73f3fae0 29-Jun-2013 Elliott Hughes <enh@google.com> Switch frameworks/base over from @hidden Charsets to public StandardCharsets.

Bug: 3484927
Change-Id: I5d136d2ee629588538602766a182ae14ce5fc63c
oretests/src/com/android/internal/util/ProcFileReaderTest.java
b3933b979ddff8ff90ee7ac9ab2bbf33df1e1ec9 27-Jun-2013 Kenny Root <kroot@google.com> am 67f7d8fb: am 6c042b6d: am a5a2de55: Merge "Add ALPN support to SSL socket factory"

* commit '67f7d8fbd5ad84681fbdfea184ce538c6834896a':
Add ALPN support to SSL socket factory
67f7d8fbd5ad84681fbdfea184ce538c6834896a 27-Jun-2013 Kenny Root <kroot@google.com> am 6c042b6d: am a5a2de55: Merge "Add ALPN support to SSL socket factory"

* commit '6c042b6d678edea0f936da994f85ba62f9a1950e':
Add ALPN support to SSL socket factory
6c042b6d678edea0f936da994f85ba62f9a1950e 27-Jun-2013 Kenny Root <kroot@google.com> am a5a2de55: Merge "Add ALPN support to SSL socket factory"

* commit 'a5a2de55082b1f2a9ec0b99962a88063ac6d1bbf':
Add ALPN support to SSL socket factory
100d7290264338c6536739abd59879aaaa812537 25-Jun-2013 Kenny Root <kroot@google.com> Add ALPN support to SSL socket factory

This adds the ability to use Application-Layer Protocol Negotiation
(ALPN) through the SSLCertificateSocketFactory. ALPN is essentially
like Next Protocol Negotiation (NPN) but negotiation is done in the
clear. This allows the use of other protocols on the same port (e.g.,
SPDY instead of HTTP on port 80).

Change-Id: Ie62926b455e252c4c98670bbbecc1eb5c6f13990
oretests/src/android/net/SSLTest.java
96f94c81b741f2b055af7a21a2f091292d6af08d 18-Jun-2013 Xia Wang <xiaw@google.com> am 7ea4e277: am 8fcb169f: am edc3bb66: Disable a flaky test case

* commit '7ea4e277fd7bdb7e2aa230509f57c1af39f5bf4b':
Disable a flaky test case
7ea4e277fd7bdb7e2aa230509f57c1af39f5bf4b 18-Jun-2013 Xia Wang <xiaw@google.com> am 8fcb169f: am edc3bb66: Disable a flaky test case

* commit '8fcb169f7989123f993adfac5894d1ad5f35ed0b':
Disable a flaky test case
edc3bb661e9c8964d3926cbd7344793a32a2c2cd 18-Jun-2013 Xia Wang <xiaw@google.com> Disable a flaky test case

Change-Id: I4ef780ed0c5394b67aa002baefc00e835018c4a0
onnectivityManagerTest/assets/accesspoints.xml
a2934d5ff0b5c4098408cd583c2c259edf37c118 14-Jun-2013 Jeff Sharkey <jsharkey@android.com> Cache AndroidBlockGuardPolicy to avoid allocation.

Every incoming Binder call ends up triggering a BlockGuardPolicy
update, which would thrash between new AndroidBlockGuardPolicy
instances and BlockGuard.LAX_POLICY, causing GC churn.

This change avoids the extra allocations by recycling a single
AndroidBlockGuardPolicy in a ThreadLocal. Worst-case thrashing case
is now 10% faster; from 7.46us to 6.65us.

Bug: 9424568
Change-Id: I9c3b1c097a2aecc9b1f109a824cf3ea319fb3393
enchmarks/src/android/os/StrictModeBenchmark.java
af19aef675013f804a5338e3500ad57b0aa2fc71 04-Jun-2013 Xia Wang <xiaw@google.com> am ac561b8b: Merge "Add option to set frequency band" into jb-mr2-dev

* commit 'ac561b8bdd52a6ac5e4f9b92f1033cd385f149d8':
Add option to set frequency band
1c6911ac1d6c4cfecaaa1c1d6814707d77aed4be 21-May-2013 Xia Wang <xiaw@google.com> Add option to set frequency band

- The reason to add the test runner is to set frequency band when the runner
is created which happens before the test activity is actually launch.
As the test activity will disable/enable wifi when it
is created, this cycle will ensure the frequency is set successfully.

Change-Id: Ie9de3d8bab3dda7d4bb9ba604ddd5cb33164e397
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/WifiAssociationTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiAssociationTest.java
3cbe3b271c164c81676b0da1a303d5e5d396037c 09-May-2013 Xia Wang <xiaw@google.com> am 4550dba5: Merge "Add wifi association test" into jb-mr2-dev

* commit '4550dba53d49a689de6000e5e5864c28f91dd945':
Add wifi association test
58a5db37b3de268aea18b160234f9fd4d70a970d 03-May-2013 Xia Wang <xiaw@google.com> Add wifi association test

Change-Id: I1f3f49a1857835522c9c5e02ed4f530b83df1d02
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiAssociationTest.java
e9ae6822a80cb1f3bd13c785f1727c03d35da52e 30-Apr-2013 Kenny Root <kroot@google.com> resolved conflicts for merge of 1f6e789b to jb-mr2-dev-plus-aosp

Change-Id: I06c05d637613215b6d83df3e29cd495f6a5a0176
12e752225aa96888358294be0d725d499a1c9f03 24-Apr-2013 Kenny Root <kroot@google.com> Track change to JSSE provider

Change-Id: I35e824e47ad758ab6408e91e2ba5dcda053a82f5
oretests/Android.mk
oretests/src/android/net/http/X509TrustManagerExtensionsTest.java
5877687b382b8c92d434a1d4e208ec85e4f2face 10-Apr-2013 Maxim Siniavine <siniavine@google.com> Make download manager tests more reliable.

Use larger files in tests. Using small files fails because downloads
complete too quickly. Using files that are too large fails because
downloads take too long.

Change-Id: I0786ece21e0acffa09dd8d85abf70ec4cde5e477
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerTestApp.java
75827d4a3155c190f455329a67c84ac8fbb9bda0 03-Apr-2013 Kenny Root <kroot@google.com> Merge "Add direct API to get ManifestDigest" into jb-mr2-dev
6c918cec31f396bb19597d107856122173c90594 02-Apr-2013 Kenny Root <kroot@google.com> Add direct API to get ManifestDigest

This makes it faster for applications that don't want to collect all the
certificates but do want the AndroidManifest.xml digest.

Bug: 8528639
Change-Id: Ide9498d0981188960af194a9568387337c075bcc
oretests/src/android/content/pm/ManifestDigestTest.java
213f98b6fe81c73f0d182fb5af312d4ce4a08041 01-Apr-2013 Lorenzo Colitti <lorenzo@google.com> Fix LinkProperties's equals() method.

LinkProperties's equals() method was broken by the addition of
stacked interfaces. The reason was that equals() was checking
the equality of mStackedInterfaces.keys(), which is just an
enumeration, instead of mStackedInterfaces.keySet(), which
actually contains the keys. The test was failing, but I didn't
notice.

Fix the bug and make the test check the objects more in depth
so it can give more detailed error messages when equals() fails.

Bug: 8276725
Change-Id: Ie990bd75f641c28e63e54d953dcd0f4de13f7c9f
oretests/src/android/net/LinkPropertiesTest.java
cdee9727e26721910a44ba67980b39de4b103f7d 27-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Make isHostRoute match only host routes" into jb-mr2-dev
972a9255a7e2c75cf13dab74121cb367c03e2809 27-Mar-2013 Chiao Cheng <chiaocheng@google.com> Merge "Allow leading slash in path argument for addURI() method." into jb-mr2-dev
fdadc4e242d987c09007df274e01fe678a82331f 27-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Make isHostRoute match only host routes

Currently, isHostRoute returns true iff the gateway address is
the unspecified address (0.0.0.0 or ::). Thus, it will return
true for any route that has no gateway (e.g., a route pointing at
a point-to-point interface), even if the route is not a host
route.

Fix this by checking the prefix length instead. This should be
safe because:

1. mDestination cannot be null, since it's created using new.
2. Host routes created using makeHostRoute (which is what
ConnectivityService calls) always have the correct prefix
lengths (/32 or /128) set.

Bug: 8276725
Change-Id: I14285398823fa6c312349128c7cc216cad4a84c9
oretests/src/android/net/RouteInfoTest.java
8fa9bb5210e3c48ad34cbd6db880ea12de4baca9 27-Mar-2013 Jeff Sharkey <jsharkey@android.com> Benchmarks for IndentingPrintWriter.

Current timings on a mako listed below, which show minimal overhead
compared to writing directly. The increased code readability and
automatic indenting is worth the overhead.

Also worth noting is that writing concatenated strings is
substantially faster than printing components separately.

benchmark us linear runtime
ComplexDirect 10712.7 =========================
ComplexIndenting 12623.7 ==============================
PairIndenting 45.8 =
PairRaw 82.1 =
SimpleDirect 282.2 =
SimpleIndenting 294.4 =

Change-Id: I7c38690c14b017fa46248ebb0be69f6beff03371
enchmarks/src/com/android/internal/util/IndentingPrintWriterBenchmark.java
ef23bf198d14bea183c0dabd5b4fcd0a5d07d738 20-Mar-2013 Chiao Cheng <chiaocheng@google.com> Allow leading slash in path argument for addURI() method.

The original documentation for this class indicated a leading slash was possible
but the code did not support it. Since then, the docs were changed to reflect
what the code does.

The purpose of this change is to allow the use of uri.getPath() as an argument.
With this change, the following can be done

matcher.addURI(ContactsContract.AUTHORITY,
ContactsContract.CONTENT_FILTER_URI.getPath(), CONTACTS_FILTER)

instead of

matcher.addURI(ContactsContract.AUTHORITY,
"contacts/filter", CONTACTS_FILTER)

Change-Id: I76a9e3133365be9fe7a8de86eae57f9eea1cd2a3
oretests/src/android/net/UriMatcherTest.java
be19e030a14c8e398e8af97fa898ea80187704df 16-Mar-2013 Chet Haase <chet@google.com> Add auto-cancel ability to ObjectAnimator

Add a method that enables a new auto-cancel option to
ObjectAnimator. When set, any ObjectAnimator (when started) will
cause any running ObjectAnimator instance (with that flag set)
that has the same target and properties to cancel() itself prior
to starting the new one.

Issue #7426129 Add auto-cancel to animators

Change-Id: I586659c365289cdb9afb6c416bdbaf5630477149
oretests/src/android/animation/AutoCancelTest.java
oretests/src/android/animation/FutureWaiter.java
6d3b13384e5ac4261eff264e7f8855610815e728 19-Mar-2013 Elliott Hughes <enh@google.com> am c9fe40ea: am 71558f1f: Merge "Fix times in debugging output to use H rather than k."

* commit 'c9fe40ead549ff18393c0cc5c6e3bd67548f9da6':
Fix times in debugging output to use H rather than k.
64a277d83778827b451b5ed6634eec6ac86bceeb 19-Mar-2013 Elliott Hughes <enh@google.com> Fix times in debugging output to use H rather than k.

Bug: 8359981
Change-Id: I4fccf3ed7e469b77f6e755dacbcd025005390505
oretests/src/android/webkit/WebkitTest.java
b91e50c266a7eb9dd6f8171deb497931ef7aef76 15-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Fix build.

Change-Id: Iac84a5f35d7fcaebd096e605a4590f8c90fe97b0
oretests/src/android/net/LinkPropertiesTest.java
419a4ce9e461177d75eca5fd71fc8c275969e479 07-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Add stacked interfaces to LinkProperties.

Bug: 8276725
Change-Id: I2f592d4c690e9af0459ae742ab16107a10d89353
oretests/src/android/net/LinkPropertiesTest.java
d9526907d1a51ef0b35bfbbeee43fa209d8b5bbf 14-Mar-2013 Jeff Sharkey <jsharkey@android.com> Move deleteOlderFiles() to framework, tests.

Supports both age and count based constraints. Added light docs and
tests to verify behavior.

Bug: 8387555
Change-Id: If4d0dac8bc54ce705c2a339bc09a60ea748728b8
oretests/src/android/os/FileUtilsTest.java
1994bc14ab9fd3a3c5dca8851cfc0042bcb25d46 09-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Unit test routes with interfaces in LinkProperties

Change-Id: Ie41a56bc9863ee72f4d7a8f72e436fc57e57b1af
oretests/src/android/net/LinkPropertiesTest.java
45b9a5bb93569ca49bbd44f7a518091371687f96 08-Mar-2013 Lorenzo Colitti <lorenzo@google.com> RouteInfo changes.

- Add the interface name.
- Fix a bug where a default route would match an address of
another protocol (e.g., 0.0.0.0/0 would match 2001::).
- Tweak the hashCode method.
- Write a unit test.

Change-Id: Ida8266de440a9b1d9eaa132f182b9f1ce8978c44
oretests/src/android/net/RouteInfoTest.java
09ed05ceaecc5fca46e25fe9bd9e8c0ee61fd31d 08-Mar-2013 Elliott Hughes <enh@google.com> am 4a1bd464: am d0d1be2d: Merge "Explain why the frameworks/base DateUtilsTest isn\'t merged with CTS\' DateUtilsTest."

* commit '4a1bd4640c5e915ed1ebd320a515725e31992545':
Explain why the frameworks/base DateUtilsTest isn't merged with CTS' DateUtilsTest.
025148cc4de9c1104a30333c14eb63337af4e3de 07-Mar-2013 Elliott Hughes <enh@google.com> Explain why the frameworks/base DateUtilsTest isn't merged with CTS' DateUtilsTest.

Change-Id: Icbdb4e9133a9ae1c1b37f822367e1ac86e9e36cb
oretests/src/android/text/format/DateUtilsTest.java
94c91dca55de9ffdbe072fcc5dd6dbf1efe5e4c1 07-Mar-2013 Jeff Sharkey <jsharkey@android.com> ArrayUtils.indexOf(), containsAll() with tests.

Change-Id: I040164d4e45126e4a6c1df54bd114f47951da560
oretests/src/com/android/internal/util/ArrayUtilsTest.java
d99375528ce5d87bdeb23a63b726fd04f6922ed7 22-Feb-2013 Irfan Sheriff <isheriff@google.com> Merge "Clean up scan handling"
bcc97ca43a339c3356b5c8d9eaf1cbdfb0de3165 21-Feb-2013 Irfan Sheriff <isheriff@google.com> Clean up scan handling

Remove obsolete active/passive scan handling - drivers always
do active scan.

Also, remove AP_SCAN hack for preventing connections and use
the TYPE=ONLY scan.

Bug: 8158647
Change-Id: I8f70e19219ad789b7501a40529bcd6b6524739e8
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
fb053cde74483f901462b5a034dd2be90a5af0da 22-Feb-2013 Wink Saville <wink@google.com> am f7bf667d: am b5a1ce2f: Merge "Allow three digit phone numbers"

* commit 'f7bf667d4a5e8e3fca75640f6352724826705128':
Allow three digit phone numbers
b5a1ce2f5daa20b5c77113b8887e12dcc05590fc 21-Feb-2013 Wink Saville <wink@google.com> Merge "Allow three digit phone numbers"
1c2acdc6e8eb8a834a3f7797bc8c39b2da02bb4e 13-Feb-2013 Wink Saville <wink@google.com> Fix broken test.

Change-Id: I8c5649c9b3d917cf13b94d49da44eaf510643df6
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
46e09310805f3cb858578fc82539f47e83f37c40 15-Jan-2013 Irfan Sheriff <isheriff@google.com> Fix connectivitymanagertest

Change-Id: If5687eacec0f502c39b102eb5cf7d9383f0ec056
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
a37fc575a4ac40f3ff2e9a9f2108b577a649db73 19-Sep-2012 Bin Zhu <bin.zhu@sonyericsson.com> Allow three digit phone numbers

The comment for the PHONE pattern says:

"<digit><digit|sdd>+<digit>"

But the actual pattern requires that the string contains
more than that. A phone number should be allowed to be
three digits.

Change-Id: I86d2f3d634cd0c1654dad9814906f151055dc23a
oretests/src/android/util/PatternsTest.java
9a2c2a6da90abbcc9a064c20e93ed885651f4ae1 15-Jan-2013 Jeff Sharkey <jsharkey@android.com> Parse network stats using native code.

Switch to parsing detailed network stats with native code, which
is 71% faster than ProcFileReader.

Change-Id: I2525aaee74d227ce187ba3a74dd08a2b06514deb
enchmarks/src/com/android/internal/net/NetworkStatsFactoryBenchmark.java
35185a9ccf016f1d5fbe055e89a6c4c79a247981 13-Feb-2013 Wink Saville <wink@google.com> Fix broken test.

Change-Id: I8c5649c9b3d917cf13b94d49da44eaf510643df6
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
92be93a94edafb5906e8bc48e6fee9dd07f5049e 16-Jan-2013 Jeff Sharkey <jsharkey@android.com> Improve TrafficStats UID APIs.

Deprecate transport layer statistics, leaving only the summarized
network layer statistics.

Improve documentation to be clear about layers where measurements
occur, and their behavior since boot. Under the hood, move to using
xt_qtaguid UID statistics.

Bug: 6818637, 7013662
Change-Id: I9f26992e5fcdebd88c671e5765bd91229e7b0016
enchmarks/src/android/net/TrafficStatsBenchmark.java
d2726582f135383e56661bc41d750966642dab45 04-Feb-2013 Maggie Benthall <mbenthall@google.com> Fix for SettingsProvider to query for correct user.

insertForUser takes a specified user and attempts to adjust that user's
settings, first looking at their existing settings to determine the difference.
However it was querying the settings for the calling user, rather than for
the user whose settings were being changed.

Also add a test that exercises the fix.

Change-Id: I6ed6fd79154ac1b6e6ab880769ac9081dfff6b80
oretests/src/android/provider/SettingsProviderTest.java
eb22ed91710426b0c7a3cba0ef7c8a4f14044d35 02-Feb-2013 Xia Wang <xiaw@google.com> Fix Connectivity Manager test:

-Due to security change, the test pid is not allowed to broadcast
ACTION_AIRPLANE_MODE_CHANGED intent, which is a pretected intent and
can only be sent by the system, change the test app to use system user id.

Change-Id: I2525e30c13a97d5fcab0fc9537e8fac18e0b5457
onnectivityManagerTest/AndroidManifest.xml
8e7b3b15f7a4f888d55f080d3ed61860cd5fab55 01-Feb-2013 Jeff Sharkey <jsharkey@android.com> Support optional values in ProcFileReader.

When new values are added to proc files, we need to handle reading
them from both old and new kernels. This change supports optionally
reading long values. Tests to verify.

Bug: 7903145
Change-Id: I9fe250c0486c3cce3cf3d8624f01af01128d1191
oretests/src/com/android/internal/util/ProcFileReaderTest.java
c5401d4451dfb5edb627a35c1d3ad90cbcef77a1 31-Jan-2013 Xia Wang <xiaw@google.com> am 63d25816: am 599f9611: am f3ef10b1: am 2297d1e7: Merge "Fix WiFi test:" into jb-mr1.1-dev

# Via Android Git Automerger (3) and others
* commit '63d258167637309c0c85725ecc9112a88bf57824':
Fix WiFi test:
63d258167637309c0c85725ecc9112a88bf57824 31-Jan-2013 Xia Wang <xiaw@google.com> am 599f9611: am f3ef10b1: am 2297d1e7: Merge "Fix WiFi test:" into jb-mr1.1-dev

# Via Android Git Automerger (2) and others
* commit '599f9611aab587d13b4d7bac94fc628c675591a1':
Fix WiFi test:
f2991add02f3e6f50dd65a835fffec3aa7221769 31-Jan-2013 Xia Wang <xiaw@google.com> Fix WiFi test:

-- In environment where there are too many APs, sometimes, the AP will not show in the scan list.
Part of the reason is due to the change that the scanning on each frequency is shortened to save power.
to avoid that, change the test to connect without scanning.

-- Increase the timer to wait for WiFi to be connected

Change-Id: If1a72607b3c7ad13dbbf788607665986eaf5b6b3
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
ed1ad7fadae1ed0fae2946dbe3e3ee9eea299bde 31-Jan-2013 Jeff Sharkey <jsharkey@android.com> Merge "Add wrapping support to IndentingPrintWriter."
71cb446f010e791ca77a27c416a79b5ccb3f075b 31-Jan-2013 Jeff Sharkey <jsharkey@android.com> Add wrapping support to IndentingPrintWriter.

When created with a wrapping width, any content longer than the
requested width will be wrapped onto additional lines. This supports
use-cases like dumping lots of data with printPair().

Improve documentation and add tests to verify behavior.

Change-Id: Ibdfce198f0e69f4df7725544fd1cd02fa029c647
oretests/src/com/android/internal/util/IndentingPrintWriterTest.java
d21e24bccec8309839a264da95c5dc1573fc65c3 30-Jan-2013 Wink Saville <wink@google.com> Merge "Cleanup StateMachine LogRec handling and get tests working."
efcc3d35661c0cd978bb2b2f808fade4c4734e21 30-Jan-2013 Wink Saville <wink@google.com> Cleanup StateMachine LogRec handling and get tests working.

Change-Id: I13107e846812b16f1c95be11626500dbd7a13b2a
oretests/src/com/android/internal/util/StateMachineTest.java
3029bf225cfa2c4b5b6e76303b0eba0d91c21026 30-Jan-2013 Jeff Sharkey <jsharkey@android.com> Check text length when testing for newline.

Also add tests to verify.

Bug: 8102140
Change-Id: I7e5dbff53caeb50bfa0fb4ea5dce73e3c742986a
oretests/src/com/android/internal/util/FastXmlSerializerTest.java
da01da176d4798d293c90d6280ddc59c780baaa3 30-Jan-2013 Satoshi Kataoka <satok@google.com> Merge "Do not turn on imes unexpectedly with unit tests"
dc4271ce1d6e47a193fe0119ca180bd37f3d1311 29-Jan-2013 Svetoslav <svetoslavganov@google.com> Removing duplicated tests that use hidden APIs

Change-Id: If3e32e8659fcb4dc2186fea668601a93f4556a73
oretests/AndroidManifest.xml
oretests/src/android/accessibilityservice/InterrogationActivity.java
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
f1367b7e903a2a69a8f833bb272e91d77abd57c6 25-Jan-2013 Satoshi Kataoka <satok@google.com> Do not turn on imes unexpectedly with unit tests

Bug: 7872918

Change-Id: Ie1d74c9fac27de140e7aa85f2eaefcb89aa06ea7
nputmethodtests/Android.mk
nputmethodtests/AndroidManifest.xml
nputmethodtests/run_core_inputmethod_test.sh
nputmethodtests/src/android/os/InputMethodTest.java
dda73b5dcd92006762a1c71e2fb352e64fa265ef 19-Jan-2013 Jeff Sharkey <jsharkey@android.com> Add LongSparseLongArray with tests.

Change-Id: Iae32ba7647601c587e30834379d7d3c2235c75b0
oretests/src/android/util/LongSparseLongArrayTest.java
77e843a305279f30a5d26aa0d7fdc2646d01d53f 15-Jan-2013 Irfan Sheriff <isheriff@google.com> Merge "Fix connectivitymanagertest"
f2488b63283dca1d0bb9ca97961d9785ae2c64d8 15-Jan-2013 Irfan Sheriff <isheriff@google.com> Fix connectivitymanagertest

Change-Id: If5687eacec0f502c39b102eb5cf7d9383f0ec056
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
06c5f8a768bcd4f7b6441f7525bd5c639399fc76 04-Dec-2012 Jeff Sharkey <jsharkey@android.com> Examine widget hierarchy to find clocks.

When switching to a widget, examine its hierarchy to determine if it
contains TextClocks that show hour and minute for the local timezone.
If so, hide the status bar clock. Doesn't fix closing walls.

Bug: 7667638
Change-Id: I1e2c40345c9e5eb0193efd70838c7ca9f779190b
oretests/src/android/text/format/DateFormatTest.java
305efe23a326d0f886d3cf66ea05dfbd30e714e2 05-Jan-2013 Brian Carlstrom <bdc@google.com> am 498eaf58: am bc7d5a55: am 537fb0af: Merge "Use most specific attributes for distinguished name display"

* commit '498eaf58ad399e42cf7b3aca020b828c35023288':
Use most specific attributes for distinguished name display
bc7d5a55b22ce30af250cc7468b6c5987cd25dfd 05-Jan-2013 Brian Carlstrom <bdc@google.com> am 537fb0af: Merge "Use most specific attributes for distinguished name display"

* commit '537fb0afe24a520e7b9a2442786b6fb4fe194392':
Use most specific attributes for distinguished name display
91154ce658483488a1390e3da58cc2950fb02acb 22-Dec-2012 Brian Carlstrom <bdc@google.com> Use most specific attributes for distinguished name display

Bug: 7894348
Bug: http://code.google.com/p/android/issues/detail?id=41662
Change-Id: I8048a53b8a9a17b384f12b6a4f40071bb3dd3e04
oretests/src/android/net/http/SslCertificateTest.java
03cb98aecfeef0b0894f69987f8b4a15c02501f3 11-Dec-2012 Amith Yamasani <yamasani@google.com> Move Observer test to servicetests

Change-Id: Ib3493af4eb3185db79004a3cad5473161ed51f71
oretests/src/android/content/ObserverNodeTest.java
e03c17f1cb50a7869ef33406a2be275fdb040ea1 11-Dec-2012 Amith Yamasani <yamasani@google.com> Merge "Move one more test."
814a8d35ae11b70027e0e476ca1c0bb589106b4d 11-Dec-2012 Amith Yamasani <yamasani@google.com> Move one more test.

Change-Id: Iea0e0b5727746f2332db2ab1c1b216326eb50f13
oretests/src/android/app/SearchablesTest.java
8ff9a156c04c24458d94c716a64a5b7327f0e987 11-Dec-2012 Amith Yamasani <yamasani@google.com> Fix build. Forgot to move this test.

Change-Id: I06aab8ec6e2dac86b65bbeed3587444260fec2e8
oretests/src/android/content/SyncStorageEngineTest.java
7a96c39c510923ef73bbb06ab20109f0168b8eb1 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> Move lingering services to services.jar.

This helps reduce the pressure on framework.jar, and makes it clear
that it should only be used by the system_server.

Bug: 7333397
Change-Id: I0858904239535380fbf30562b793e277d8c3f054
oretests/src/android/accounts/AccountManagerServiceTest.java
oretests/src/android/content/SyncOperationTest.java
6dd028cbb9b7657c5491cf2d9c5635bda1376e96 16-Nov-2012 Jeff Sharkey <jsharkey@android.com> am 9f43afad: am 68363456: am 7420ab68: Merge "Utility to format human-friendly durations." into jb-mr1.1-dev

* commit '9f43afad9de92fc36dc7b242585ef734e834285c':
Utility to format human-friendly durations.
9f43afad9de92fc36dc7b242585ef734e834285c 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> am 68363456: am 7420ab68: Merge "Utility to format human-friendly durations." into jb-mr1.1-dev

* commit '68363456c1f360c0f1afe637a1f3028519e059ed':
Utility to format human-friendly durations.
53f6e8a9b95a1fe5229295ade4989339d577de08 14-Nov-2012 Jeff Sharkey <jsharkey@android.com> Utility to format human-friendly durations.

Bug: 6777872
Change-Id: Ie7ebcb456306f4f88b4707030dd7beda3fc90368
oretests/src/android/text/format/DateUtilsTest.java
7b172a49a90ea6784dbfe0002474f9d4fd4ace1a 07-Nov-2012 Kenny Root <kroot@google.com> am 58ed5d74: am 768d9e1a: Merge "Correct executable bit for source files"

* commit '58ed5d748c0b9b64845975ef5844ad313de7c3f6':
Correct executable bit for source files
58ed5d748c0b9b64845975ef5844ad313de7c3f6 07-Nov-2012 Kenny Root <kroot@google.com> am 768d9e1a: Merge "Correct executable bit for source files"

* commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04':
Correct executable bit for source files
3a084af2e90849aaa8beb3a610189e3399c63ea0 07-Nov-2012 Kenny Root <kroot@google.com> Correct executable bit for source files

Many media files and source code files were marked as executable in Git.
Remove those.

Also a shell script and python script were not marked as executable.

Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
onnectivityManagerTest/assets/accesspoints.xml
oretests/src/android/content/pm/AppCacheTest.java
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/os/storage/AsecTests.java
e6f2f6cffdb7d2f8ce32ac6a9cb6884624106907 01-Nov-2012 Xia Wang <xiaw@google.com> am 33185d4f: am f1e32af5: am c86e8dff: Merge "Fix WiFi stress test" into jb-mr1-dev

* commit '33185d4f68b533e1289d1dcc1d88e43fe8462450':
Fix WiFi stress test
33185d4f68b533e1289d1dcc1d88e43fe8462450 01-Nov-2012 Xia Wang <xiaw@google.com> am f1e32af5: am c86e8dff: Merge "Fix WiFi stress test" into jb-mr1-dev

* commit 'f1e32af5ae629a1a0f73ee12aa6390ea9e527d32':
Fix WiFi stress test
b2a2096903342a9eaba0b8f64f0f549e5277b662 01-Nov-2012 Xia Wang <xiaw@google.com> Fix WiFi stress test

- Disable lock screen after screen is turned on.
Without disabling lock screen, device will screen off automatically after around 10 seconds

- Add a longer timer for ping test when the data traffic is stalled.
For a short ping test, it is hard to tell whether it is a transient issue or a real issue.

bug# 7426823

Change-Id: If1a560e11dcdff519562bb2a22651d1fd523b5a2
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
b09aadeda5fdaa68d231d7652f78cc55e7c5ac61 24-Oct-2012 Adam Powell <adamp@android.com> am a23f69a8: am 86e0d95d: Merge "Reattach header view after DPAD scroll."

* commit 'a23f69a8782e0edeff815cfb5275f2864fc1d19e':
Reattach header view after DPAD scroll.
a23f69a8782e0edeff815cfb5275f2864fc1d19e 24-Oct-2012 Adam Powell <adamp@android.com> am 86e0d95d: Merge "Reattach header view after DPAD scroll."

* commit '86e0d95de1007d339af467c1484b09878ee528fc':
Reattach header view after DPAD scroll.
86e0d95de1007d339af467c1484b09878ee528fc 23-Oct-2012 Adam Powell <adamp@android.com> Merge "Reattach header view after DPAD scroll."
a7fb9d907c7f3b44d92e401ca4cea096c5c53de0 20-Oct-2012 Kenny Root <kroot@google.com> am 9396f183: resolved conflicts for merge of a5d29b2c to jb-mr1-dev-plus-aosp

* commit '9396f183c2db5d6167f39a8d5667fb4abcc96e5e':
Try to free cache before giving up on install
Robustly add symlink and add for non-primary users
57286f970641493b315b0b42aba7ac6b672cc8b8 09-Oct-2012 Alon Albert <aalbert@google.com> Add sync reason to dumpsys

Also:
* add a second history section that logs
* log mesg as text instead of number
* dump Sync Status as a table

Sample log:
Recent Sync History
#1 : 2012-10-11 15:06:11 USER 0.4s aagmtest1@gmail.com/com.google u0 com.android.calendar com.google.android.calendar
#2 : 2012-10-11 15:06:11 USER 0.1s aagmtest1@gmail.com/com.google u0 subscribedfeeds android.uid.system:1000
mesg=parse-error
#3 : 2012-10-11 15:06:11 USER 0.0s aagmtest1@gmail.com/com.google u0 com.google.android.apps.uploader.PicasaUploadProvider android.uid.system:1000
#4 : 2012-10-11 15:06:10 USER 0.1s aagmtest1@gmail.com/com.google u0 com.google.android.gms.plus.action android.uid.system:1000

Recent Sync History Extras
#1 : 2012-10-11 15:06:11 USER aagmtest1@gmail.com/com.google u0 com.android.calendar Bundle[{feed=aagmtest1@gmail.com, force=true, ignore_settings=true, ignore_backoff=true}]
#2 : 2012-10-11 15:06:11 USER aagmtest1@gmail.com/com.google u0 subscribedfeeds Bundle[{ignore_backoff=true, force=true, ignore_settings=true}]
#3 : 2012-10-11 15:06:11 USER aagmtest1@gmail.com/com.google u0 com.google.android.apps.uploader.PicasaUploadProvider Bundle[{ignore_backoff=true, force=true, ignore_settings=true}]
#4 : 2012-10-11 15:06:10 USER aagmtest1@gmail.com/com.google u0 com.google.android.gms.plus.action Bundle[{ignore_backoff=true, force=true, ignore_settings=true}]

Sync Status
Account aagmtest1@gmail.com u0 com.google
=======================================================================
Authority Syncable Enabled Delay Loc Poll Per Serv User Tot Time Last Sync Periodic
-------------------------------------------------------------------------------------------------------------------------------------------------------------
com.google.android.apps.currents 1 true 0 2 1 2 1 6 0:35 PERIODIC SUCCESS 86400
2012-10-12 14:59:40 2012-10-13 14:58:13
com.google.android.music.MusicContent 1 true 0 0 1 2 1 4 0:09 PERIODIC SUCCESS 86400
2012-10-12 14:59:18 2012-10-13 14:58:13
com.google.android.gms.plus.action 1 true 0 0 1 1 1 3 0:00 PERIODIC SUCCESS 86400
2012-10-12 14:59:15 2012-10-13 14:58:13
com.google.android.apps.magazines 1 true 0 1 1 2 1 5 0:14 PERIODIC SUCCESS 86400
2012-10-12 14:59:00 2012-10-13 14:58:13

Change-Id: Iffeb825e4b4f6217940a39b0dd71e06856f08f3f
oretests/src/android/content/SyncOperationTest.java
oretests/src/android/content/SyncStorageEngineTest.java
a3e90798b7ad3ed62e5b31842c699b2f98bd457b 18-Oct-2012 Kenny Root <kroot@google.com> Robustly add symlink and add for non-primary users

Amazingly, some apps still don't use the nativeLibraryPath. So add a lib
symlink for non-primary users to fix that.

Also, there was an error when the symlink existed that it would give up.
This shouldn't really happen, but in that case, just remove it and
create a new one to be safe.

Also, move the downgrade code to the appropriate place. This downgrade
case triggered the above symlink existing bug.

Bug: 7318366
Bug: 7371571
Change-Id: Ia175b36d98f00bdc2f2433b909aafd524eb34d15
oretests/apks/install_bad_dex/AndroidManifest.xml
oretests/src/android/content/pm/PackageManagerTests.java
2ab453b52b260a456911681982958a0627d87a66 17-Oct-2012 Xia Wang <xiaw@google.com> Fix connectivity manager test for tablet with data connection, multi-user support
bug#7366674

Change-Id: Ibbb4becebfc833529e85d8a311366586c5ba54ee
onnectivityManagerTest/AndroidManifest.xml
9d0791bf6a047dbf7a99034130a5c4b437510fcf 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> Fix build, only invalidate when creating user.

Bug: 7276595
Change-Id: I322f9d76a682b2d45fc556e35381442458168fe5
oretests/src/android/accounts/AccountManagerServiceTest.java
6ab72d74b86e5f4ec3c3909366fd46c225a66bd7 09-Oct-2012 Jeff Sharkey <jsharkey@android.com> Make RegisteredServicesCache multi-user aware.

RegisteredServicesCache is used to track account authenticators and
sync adapters, which can vary based on user. This change requires
that callers now provide a userId when making cache requests. It
continues persisting into a single file for now, which is keyed based
on UID.

It now watches for package broadcasts from all users, and scans
packages on-demand. It changes cache callers to provide a relevant
userId, and evicts cache entries when users are stopped.

Changes SyncManager to only work with accounts from running users,
only kicking off pending syncs once a user is started.

Bug: 7276595, 7316150
Change-Id: I79466a84aa69aa37e4bd9691c5d6221d3662ff29
oretests/src/android/accounts/AccountManagerServiceTest.java
9dbbfcda81f251f23aded866f7f9d49d8a744c75 28-Sep-2012 Ben Gruver <bgruv@google.com> Merge "Pass the originating uid to the package verifier" into jb-mr1-dev
625239a05401bbf18b04d9874cea3f82da7c29a1 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate more Secure settings to Global.

Migrate networking, storage, battery, DropBox, and PackageManager
related Secure settings to Global table.

Bug: 7232014, 7231331, 7231198
Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
oretests/src/android/content/pm/PackageManagerTests.java
37d83a3caf138e35fa1a355787d20c351f6b37a6 27-Sep-2012 Ben Gruver <bgruv@google.com> Pass the originating uid to the package verifier

Bug: 6923241
Change-Id: I85a3e0d53b469543cb0551d3a440d2663b5d0697
oretests/src/android/content/pm/VerificationParamsTest.java
3272a38dbc5fdf2d68b653592a244059cd29255a 26-Sep-2012 Xia Wang <xiaw@google.com> Fix Wifi Stress test after wifi settings are moved to Settings.global

Change-Id: I823e99b39bc340683b686bb0dd43a473865656f0
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
4fbbda4cecb078bd3867f416b02cc75f5455284f 25-Sep-2012 Jeff Sharkey <jsharkey@android.com> Handle multi-user mountObb() requests.

Since emulated external storage paths differ based on execution
context, carefully fix up paths for various use-cases:

1. When sending paths to DefaultContainerService, always scope
OBB paths as belonging to USER_OWNER.
2. When sending paths to vold, always build emulated storage paths
visible to root.
3. Always use the original untouched path when talking with apps.

Mount OBB containers using shared app GID, so that an app can read
the mount point across users.

Handle legacy paths like "/sdcard" by resolving the canonical path
before sending to MountService. Move tests to servicestests, and
add tests for new path generation logic.

Bug: 7212801
Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
oretests/res/raw/test1.obb
oretests/res/raw/test1_nosig.obb
oretests/res/raw/test1_wrongpackage.obb
oretests/src/com/android/server/MountServiceTests.java
50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7214090: Need to be able to post notifications to all users

Also fix a bunch of system services that should be doing this. And
while doing that, found I needed to fix PendingIntent to evaluate
USER_CURRENT at the point of sending, not creation.

Note that this may end up with us having some notification shown to
non-primary users that lead to settings UI that should only be for
the primary user (such as the vpn notification). I'm not sure what
to do about this, maybe we need a different UI to come up there or
something, but showing the actual notification for those users at
least seems less broken than not telling them at all.

Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
oretests/src/android/accounts/AccountManagerServiceTest.java
6cc5d7fc0b23305fb7a3216b814d96d1ebab76d7 21-Sep-2012 Tsu Chiang Chuang <tsu@google.com> Merge "fix broken user build: do not throw an error when in user flavor." into jb-mr1-dev
0cfb73de1c472a2cfd1928f9fc7651af70a1b686 21-Sep-2012 Tsu Chiang Chuang <tsu@google.com> fix broken user build: do not throw an error when in user flavor.

Change-Id: I43d210f1b342707acbdb79f9ef6c924b43684dd3
osttests/test-apps/DownloadManagerTestApp/Android.mk
c1ec220c4b3f518d74be91b7a69fb42af6642ad1 21-Sep-2012 Tsu Chiang Chuang <tsu@google.com> Merge "Change the way how airplane mode is set, since it has been moved to Settings.Global namespace. Also run as a system app, since only system apps can change airplane mode." into jb-mr1-dev
35fae68cc3eb21c15069c58d275a46537cc04f4a 20-Sep-2012 Tsu Chiang Chuang <tsu@google.com> Change the way how airplane mode is set, since it has been moved to
Settings.Global namespace. Also run as a system app, since only system
apps can change airplane mode.

Change-Id: I317f9c94361cfca182356fd292e5b0b41553d1ab
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/AndroidManifest.xml
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerBaseTest.java
daa57e8d1866fe4579c280c41604f3660db7cd01 19-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate network stats from removed users.

When a user is removed, migrate all network stats belonging to that
user into special UID_REMOVED bucket. Also removes those stats from
kernel to avoid double-counting if another user is created.

Bug: 7194784
Change-Id: I03f1d660fe3754566326b7749cae8068fc224ea9
oretests/src/android/net/NetworkStatsTest.java
fd5a80f6e98124d908643a14d33b8d2fa5238da6 18-Sep-2012 Geremy Condra <gcondra@google.com> Code cleanup for X509TrustManagerExtensionsTest.java

Change-Id: I85584f7a9dbc726be811f783d125efcf70c9f6af
oretests/src/android/net/http/X509TrustManagerExtensionsTest.java
cb4c5819758a7e2951bd4818383f7c5e10a5f016 18-Sep-2012 Geremy Condra <gcondra@google.com> Fix bad isinstance check in X509TrustManagerExtensions and add test.

Change-Id: I333957186655b2543a637dafa8c51b0bba9d4dfb
oretests/src/android/net/http/X509TrustManagerExtensionsTest.java
16aa9736175f5bbe924a6e5587a2ca47c2dd702b 18-Sep-2012 Christopher Tate <ctate@google.com> Per-user content observer APIs

Callers with INTERACT_ACROSS_USERS_FULL permission can now observe content
for a given user's view (and can notify content uri changes targeted to a
specific user). An observer watching for UserHandle.USER_ALL will see all
notifications for the given uri across all users; similarly, a notifier
who specifies USER_ALL will broadcast the change to all observers across
all users.

The API handles both USER_ALL or USER_CURRENT, and explicitly forbids
any other "pseudouser" designations.

This CL also revs the Settings provider to notify with USER_ALL for
changes to global settings, and with only the affected user's handle
for all other changes.

Bug 7122169

Change-Id: I94248b11aa91d1beb0a36432e82fe5725bb1264f
oretests/src/android/content/ObserverNodeTest.java
e15bdc2da4c74c8d16db8c1d067a42c4767d1003 17-Sep-2012 Kenny Root <kroot@google.com> Add test for failed dexopt

Bug: 7010829
Change-Id: Ie0616ff2c3739ad73733857de6d04243b2be2fca
oretests/apks/install_bad_dex/Android.mk
oretests/apks/install_bad_dex/AndroidManifest.xml
oretests/apks/install_bad_dex/classes.dex
oretests/apks/install_bad_dex/res/values/strings.xml
oretests/apks/install_bad_dex/src/com/android/frameworks/coretests/TestActivity.java
oretests/apks/install_jni_lib/Android.mk
oretests/src/android/content/pm/PackageManagerTests.java
13d428e8306d1bb1a3017045bc5d2f76edec32df 13-Sep-2012 rich cannings <richc@google.com> Send more information to verifiers

Send package name, version code and the uid of the application requesting the
install to package verifiers.

Bug: 7164155
Change-Id: I2464dc5d4551f60b4f38f7982495a8920c83e1cd
oretests/src/android/content/pm/VerificationParamsTest.java
78d2a66ac12e4c8f1303225514f573fb53af1dd9 14-Sep-2012 Christopher Tate <ctate@google.com> Fix Settings writes to a different user

Oops. Stacked bugs: first, the desired user handle was not properly
being passed from the call() entry point to the database operations;
then on top of that, the client-side cache management was still
looking in the local user's cache for the data, so a request to read
a different user's settings would return the local user's instead if
that key was already known to the local user's cache.

Reads and writes of a different user's settings are now uncached,
so they're relatively much slower. They're rare, however, so this
is not something to worry about unless we encounter a real world
case where it's a significant factor.

This CL also adds a bit of cross-user settings read/write testing
to the existing provider suite. These new tests caught both the
known wrong-user-write bug and discovered the client-side cache
bug, so yay.

Finally, the existing wholesale mutual-exclusion approach would
deadlock in certain circumstances due to the fact that the
settings database creation code might have to call out to the
Package Manager while populating the bookmark/shortcut table,
and the Package Manager would then call back into the settings
provider in the course of handling that request. The synchronization
regime has been significantly tightened up now: now the database
code [which is known to deal with concurrency itself] is allowed
to cope with multiple parallel openers of the same db; this
allows the settings provider to avoid calling out to other parts
of the system even implicitly while its internal lock is held.

Change-Id: Ib77d445b4a2ec658cc5c210830f6977c981f87ed
oretests/AndroidManifest.xml
oretests/src/android/provider/SettingsProviderTest.java
158d6b70ac2f0c8fd7dafe0f865112090fb31699 02-Feb-2011 Mattias Niklewski <mattias.niklewski@sonyericsson.com> Reattach header view after DPAD scroll.

A header view that was scrolled off screen using the DPAD would not be
reattached properly when scrolled back into view, due to the flag
recycledHeaderFooter. Solved this by using detachViewFromParent()
instead of removeViewInLayout(). Compare to
AbsListView.trackMotionScroll().

Change-Id: I0ac0ec0f9bf23bc62430c1f62ae7d1a8570b0a24
oretests/src/android/widget/listview/focus/ListWithEditTextHeaderTest.java
4e2eb6581f8ee91166cbfd80b531f628dedab89a 11-Sep-2012 Christopher Tate <ctate@google.com> Merge "Update airplane-mode manipulation for the new Settings namespace" into jb-mr1-dev
c09cdce1b05075da808ae080b9905a14a3e1e627 11-Sep-2012 Christopher Tate <ctate@google.com> Update airplane-mode manipulation for the new Settings namespace

Quick Settings and global actions (aka longpress-Power) toggles are
included in this CL. The Settings app manipulations are updated in
a different CL because that's a different git package.

Bug 7132230

Change-Id: I50838f5e8d7b25a750d2bcae90bf384b09816dbb
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
oretests/src/android/app/DownloadManagerBaseTest.java
ddbe50df2ca70700a46e5849347989b520d1113e 06-Sep-2012 Kenny Root <kroot@google.com> Move native libraries to /data/app-lib

Instead of unpacking libraries into /data/data/<appname>/lib, unpack
them into /data/app-lib so that multi-user applications can use the same
libraries.

Change-Id: I636dafb5a9eea8cf5a41f1360698e7695455f385
oretests/src/android/content/pm/PackageManagerTests.java
e64e0971475409533aec201e4f3d23b31f653217 09-Sep-2012 Kenny Root <kroot@google.com> Add a native library to test APKs

In order to make sure we have unpacking and deletion working, add a fake
JNI library to every APK.

This can be expanded in the future to make sure replacement is working
correctly as well.

Change-Id: I1ad04c61df9518429aa17795b8a9d3608791cd8e
oretests/apks/FrameworkCoreTests_apk.mk
oretests/apks/install_jni_lib/Android.mk
oretests/apks/install_jni_lib/com_android_frameworks_coretests_JNITest.cpp
7e921a157d1aca97506302637d4f3843ddc2b982 09-Sep-2012 Kenny Root <kroot@google.com> Add more testing for native libraries

Make sure that native library paths have the correct permissions and
owners. Also make it easier to do a "String#startsWith" test so we can
get better errors when it fails.

Change the observer to have more sane semantics with a CountDownLatch
instead of weird synchronization on a local variable.

Change-Id: I2437e5ea886d6e6cb8b4edeab80d6053b79857d4
oretests/src/android/content/pm/PackageManagerTests.java
25c925e6659e57f1cc8fef83be07f3917a108e3c 09-Sep-2012 Kenny Root <kroot@google.com> Throw ALL the exceptions! (in the PackageManagerTests)

Change all the test method headers to throw Exception so we don't have
to try to catch anything during the tests. Catching an exception might
mask an error during the tests.

Also fix a lot of formatting errors that have built up over the years.
This includes 3-space indentations instead of 4-space, missing spaces
between braces and parens, too-long lines, wrapping when it isn't
needed, etc.

Change-Id: Ifccea5f0706b6f9235f37974a5f80bee76c654dd
oretests/src/android/content/pm/PackageManagerTests.java
7de350a91301985b7f2d9f28edde5aade8495d9b 08-Sep-2012 Nick Kralevich <nnk@google.com> installd: fix forward locking symlink

installd was not creating a compatibility symlink when
installing a forward locked application. Fix.

Bug: 7121527
Change-Id: Ied507ab2b759d8658af563e6ac8f0dbb0d286cce
oretests/src/android/content/pm/PackageManagerTests.java
4120375d46091df8527bb701882e056fbb0e6b06 31-Aug-2012 Dianne Hackborn <hackbod@google.com> Remove Binder.getOrigCallingUid().

Replaced all remaining places that used it with explicit user
specification.

While doing this, I ran into stuff that was creating PendingIntent
objects (that now need to specify the explicit user they are for),
which are also posting notifications... but have no way to specify
the user for the notification.

So the notification manager in the system process now also gets a
formal concept of a user associated with the notification, which
is passed in to all the necessary aidl calls. I also removed the
old deprecated aidl interface for posting/cancelling notifications,
since we now always need a user supplied.

There is more work that needs to be done here, though. For example
I think we need to be able to specify USER_ALL for a notification that
should be shown to all users (such as low storage or low battery).
Along with that, the PendingIntent creation needs to be tweaked to
be able to handle USER_CURRENT by evaluating the user at the point the
pending intent is sent.

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
oretests/src/android/app/activity/BroadcastTest.java
5ac72a29593ab9a20337a2225df52bdf4754be02 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user broadcasts.

You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.

Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.

New Context APIs for more kinds of sending broadcasts as users.

Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.

Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
oretests/src/android/app/activity/BroadcastTest.java
7767eac3232ba2fb9828766813cdb481d6a97584 24-Aug-2012 Dianne Hackborn <hackbod@google.com> Keep track of whether an app is installed for each user.

This add a new per-user state for an app, indicating whether
it is installed for that user.

All system apps are always installed for all users (we still
use disable to "uninstall" them).

Now when you call into the package manager to install an app,
it will only install the app for that user unless you supply
a flag saying to install for all users. Only being installed
for the user is just the normal install state, but all other
users have marked in their state for that app that it is not
installed.

When you call the package manager APIs for information about
apps, uninstalled apps are treated as really being not visible
(somewhat more-so than disabled apps), unless you use the
GET_UNINSTALLED_PACKAGES flag.

If another user calls to install an app that is already installed,
just not for them, then the normal install process takes place
but in addition that user's installed state is toggled on.

The package manager will not send PACKAGE_ADDED, PACKAGE_REMOVED,
PACKAGE_REPLACED etc broadcasts to users who don't have a package
installed or not being involved in a change in the install state.
There are a few things that are not quite right with this -- for
example if you go through a full install (with a new apk) of an
app for one user who doesn't have it already installed, you will
still get the PACKAGED_REPLACED messages even though this is
technically the first install for your user. I'm not sure how
much of an issue this is.

When you call the existing API to uninstall an app, this toggles
the installed state of the app for that user to be off. Only if
that is the last user user that has the app uinstalled will it
actually be removed from the device. Again there is a new flag
you can pass in to force the app to be uninstalled for all users.

Also fixed issues with cleaning external storage of apps, which
was not dealing with multiple users. We now keep track of cleaning
each user for each package.

Change-Id: I00e66452b149defc08c5e0183fa673f532465ed5
oretests/src/android/content/pm/PackageManagerTests.java
0c3804950236fe170ebf6cc7a5f1e3e305b8f315 21-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user app management.

Introduce API to get per-user storage information, keep track
of services associated with users, and various small cleanup.

Change-Id: I5d4e784e7ff3cccfed627d66a090d2f464202634
oretests/src/android/content/pm/AppCacheTest.java
706e8ba26bf0de19ad5f736516dae40c4c88c2d7 20-Aug-2012 rich cannings <richc@google.com> Pass URLs to package verifiers

This change passes the originating URL and accompanied referrer to
package verifiers, when available.

Bug: 6544677
Change-Id: I9ebc71bc13f549bd88267e444816151a99bda000
oretests/src/android/content/pm/VerificationParamsTest.java
9a994b5350731b8169a9b25463f57266ee2988fb 17-Aug-2012 Kenny Root <kroot@google.com> am 050c87f8: am a950daf5: Merge changes Ieb566a2a,I953057cd

* commit '050c87f87e2a48c7bc90f5b15fb6e4e37e667286':
Use Libcore's stat instead of FileUtils#getFileStatus
Use Libcore.os.stat instead of FileUtils
050c87f87e2a48c7bc90f5b15fb6e4e37e667286 17-Aug-2012 Kenny Root <kroot@google.com> am a950daf5: Merge changes Ieb566a2a,I953057cd

* commit 'a950daf5c14a0009c2c62e9c3e0e8d51eb0cf7d9':
Use Libcore's stat instead of FileUtils#getFileStatus
Use Libcore.os.stat instead of FileUtils
98e15e78934a00cf46f2be55472b7fd7a39ac0de 16-Aug-2012 Kenny Root <kroot@google.com> Use Libcore's stat instead of FileUtils#getFileStatus

Remove the last user of FileUtils#getFileStatus and move it to
Libcore.os.stat instead. Then we can remove the JNI code that does the
equivalent of a stat.

Change-Id: Ieb566a2a8a17c2dd0150724b4eb3ac1cc41c823d
oretests/src/android/os/FileUtilsTest.java
f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Rename UserId to UserHandle.

This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
oretests/src/android/content/pm/AppCacheTest.java
oretests/src/android/os/ProcessTest.java
9630704ed3b265f008a8f64ec60a33cf9dcd3345 28-Jul-2012 Jeff Brown <jeffbrown@google.com> Power manager rewrite.

The major goal of this rewrite is to make it easier to implement
power management policies correctly. According, the new
implementation primarily uses state-based rather than event-based
triggers for applying changes to the current power state.

For example, when an application requests that the proximity
sensor be used to manage the screen state (by way of a wake lock),
the power manager makes note of the fact that the set of
wake locks changed. Then it executes a common update function
that recalculates the entire state, first looking at wake locks,
then considering user activity, and eventually determining whether
the screen should be turned on or off. At this point it may
make a request to a component called the DisplayPowerController
to asynchronously update the display's powe state. Likewise,
DisplayPowerController makes note of the updated power request
and schedules its own update function to figure out what needs
to be changed.

The big benefit of this approach is that it's easy to mutate
multiple properties of the power state simultaneously then
apply their joint effects together all at once. Transitions
between states are detected and resolved by the update in
a consistent manner.

The new power manager service has is implemented as a set of
loosely coupled components. For the most part, information
only flows one way through these components (by issuing a
request to that component) although some components support
sending a message back to indicate when the work has been
completed. For example, the DisplayPowerController posts
a callback runnable asynchronously to tell the PowerManagerService
when the display is ready. An important feature of this
approach is that each component neatly encapsulates its
state and maintains its own invariants. Moreover, we do
not need to worry about deadlocks or awkward mutual exclusion
semantics because most of the requests are asynchronous.

The benefits of this design are especially apparent in
the implementation of the screen on / off and brightness
control animations which are able to take advantage of
framework features like properties, ObjectAnimator
and Choreographer.

The screen on / off animation is now the responsibility
of the power manager (instead of surface flinger). This change
makes it much easier to ensure that the animation is properly
coordinated with other power state changes and eliminates
the cause of race conditions in the older implementation.

The because of the userActivity() function has been changed
so that it never wakes the device from sleep. This change
removes ambiguity around forcing or disabling user activity
for various purposes. To wake the device, use wakeUp().
To put it to sleep, use goToSleep(). Simple.

The power manager service interface and API has been significantly
simplified and consolidated. Also fixed some inconsistencies
related to how the minimum and maximum screen brightness setting
was presented in brightness control widgets and enforced behind
the scenes.

At present the following features are implemented:

- Wake locks.
- User activity.
- Wake up / go to sleep.
- Power state broadcasts.
- Battery stats and event log notifications.
- Dreams.
- Proximity screen off.
- Animated screen on / off transitions.
- Auto-dimming.
- Auto-brightness control for the screen backlight with
different timeouts for ramping up versus ramping down.
- Auto-on when plugged or unplugged.
- Stay on when plugged.
- Device administration maximum user activity timeout.
- Application controlled brightness via window manager.

The following features are not yet implemented:

- Reduced user activity timeout for the key guard.
- Reduced user activity timeout for the phone application.
- Coordinating screen on barriers with the window manager.
- Preventing auto-rotation during power state changes.
- Auto-brightness adjustment setting (feature was disabled
in previous version of the power manager service pending
an improved UI design so leaving it out for now).
- Interpolated brightness control (a proposed new scheme
for more compactly specifying auto-brightness levels
in config.xml).
- Button / keyboard backlight control.
- Change window manager to associated WorkSource with
KEEP_SCREEN_ON_FLAG wake lock instead of talking
directly to the battery stats service.
- Optionally support animating screen brightness when
turning on/off instead of playing electron beam animation
(config_animateScreenLights).

Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
oretests/src/android/os/BrightnessLimit.java
dc09102c8dad2668ec8c1228fee8762aa81153a5 13-Aug-2012 Amith Yamasani <yamasani@google.com> Tests for mapping android name to uid

This tests some changes made to bionic.

Change-Id: I7ff8c7f94f6b4bfff64d4e15d4a1a3516a453180
oretests/src/android/os/ProcessTest.java
bccda0aee3fc0078d2e094b4fb9c6c2abab1b728 31-Jul-2012 Kenny Root <kroot@google.com> am 194da0b8: am a39fdd11: Merge "Fix AccountManagerServiceTest" into jb-dev

* commit '194da0b8b368ac61b23870224bc0d449ad465bd4':
Fix AccountManagerServiceTest
194da0b8b368ac61b23870224bc0d449ad465bd4 31-Jul-2012 Kenny Root <kroot@google.com> am a39fdd11: Merge "Fix AccountManagerServiceTest" into jb-dev

* commit 'a39fdd11e80618acc046fff65b6549b5c8b5aa8d':
Fix AccountManagerServiceTest
ae652cc97c9aa71838820d6d47f7535b18688436 31-Jul-2012 Kenny Root <kroot@google.com> Fix AccountManagerServiceTest

The MockAccountAuthenticatorCache needs to implement the new method.

Bug: 6820670
Change-Id: I5d1cb3aecec63602ae4541cd01ae8e28c8328e5a
oretests/src/android/accounts/AccountManagerServiceTest.java
cba4d388201958449ca96d49a8a277ca0f47cf8d 25-Jul-2012 Irfan Sheriff <isheriff@google.com> Merge "Update WifiManager API"
88759bbd31e05a4163e1f8e72804ca83000afd53 03-Jul-2012 Irfan Sheriff <isheriff@google.com> Update WifiManager API

Use feedback based on NSD to update WifiManager API

Change-Id: I0c1dc74f7e2fa7cd697a995b7194e3e0366d7981
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
85d28a00043e5985b11f517031d7b2317ac19e10 24-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Replace left/right with start/end for Gravity / LayoutParams / Padding"
eaaf396169abdbd213565cacb37dc0c9c391b365 21-Jul-2012 Jeff Sharkey <jsharkey@android.com> Avoid emitting broken ASCII.

Bug: 6131887
Change-Id: Iff13573aad8128cc7ae3613ab718c81e6d0862a1
oretests/src/android/util/TimeUtilsTest.java
aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17 20-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Replace left/right with start/end for Gravity / LayoutParams / Padding

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Id9af5375fb9b0edeae5232c77e52ecd497bd2e67
oretests/src/android/util/ListItemFactory.java
oretests/src/android/widget/focus/VerticalFocusSearch.java
33034b13cae1429d526722374bd39be3f9605ae4 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common - DO NOT MERGE

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
oretests/Android.mk
5362f17ff5e8e06601b172bd86c26027ced9780c 12-Jul-2012 Wink Saville <wink@google.com> Merge commit '1b003ef0' into mit

* commit '1b003ef0':
Create telephony-common and mms-common

Change-Id: Ie8876541dbe7f4c933cf7d69910dd204538bc975
a639b311e93ad14d9ee5c2b2c215ed2d86c32d2a 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
oretests/Android.mk
095c58b73ac112cc7e00771430765434893d8bc5 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support. DO NOT MERGE

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.

bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7

Conflicts:

services/java/com/android/server/NsdService.java
oretests/src/com/android/internal/util/StateMachineTest.java
5293d0cb2e0689dafd5ed821d479babfa6e008f9 20-Jun-2012 Kenny Root <kroot@google.com> Merge "Packages for PackageManagerService tests"
ec7e483c55a148490e35661ddb4fc5c1eb3b1a78 08-May-2012 Kenny Root <kroot@google.com> Packages for PackageManagerService tests

Change-Id: I3fd96abb0560fd8c596304d9c233e2f8f3fd8089
oretests/apks/version/Android.mk
oretests/apks/version/AndroidManifest.xml
oretests/apks/version/res/values/strings.xml
oretests/apks/version/src/com/android/frameworks/coretests/version_test/NullProvider.java
oretests/certs/README
oretests/certs/unit_test.pk8
oretests/certs/unit_test.x509.pem
oretests/certs/unit_test_diff.pk8
oretests/certs/unit_test_diff.x509.pem
2414c8b37aa17bb9a063d4789f322e55782a2f9c 16-Jun-2012 Kenny Root <kroot@android.com> am 535d3b3f: am 0cf34218: Merge "Adding test cases for getInstalledPackages"

* commit '535d3b3f3363af6a5f2acb620542baec4cb96b45':
Adding test cases for getInstalledPackages
535d3b3f3363af6a5f2acb620542baec4cb96b45 16-Jun-2012 Kenny Root <kroot@android.com> am 0cf34218: Merge "Adding test cases for getInstalledPackages"

* commit '0cf342184e030ee6f65d87eeba48484725910a8b':
Adding test cases for getInstalledPackages
0cf342184e030ee6f65d87eeba48484725910a8b 16-Jun-2012 Kenny Root <kroot@android.com> Merge "Adding test cases for getInstalledPackages"
a0ecfde69e31b347dab7a94e84f7dbff751385ea 15-Jun-2012 Amith Yamasani <yamasani@google.com> Merge "SearchManagerService made multi-user aware"
5bb87cd9b81506b0c25d3f9184e406762a9e9d9c 14-Jun-2012 Amith Yamasani <yamasani@google.com> SearchManagerService made multi-user aware

Cache Searchables per user and query package manager through the
private interface.

Change-Id: I1d24fdd27cce8c27be45287cbfcb4df1e2ce2cf1
oretests/src/android/app/SearchablesTest.java
723118c9e1467ae006f3c33d4f8efbac94d524e3 13-Jun-2012 Tsu Chiang Chuang <tsu@google.com> Clean up host tests that have been moved to TF.

Change-Id: Iebadfc6aefeca18a944079a7e9115a3c53c211ce
osttests/Android.mk
osttests/README
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
osttests/src/android/content/pm/PackageManagerHostTests.java
osttests/src/android/content/pm/PackageManagerStressHostTests.java
osttests/src/android/net/DownloadManagerHostTests.java
450f21a97da3d12fa835ed436cab251bbc34cf89 08-Jun-2012 Kenny Root <kroot@google.com> am d26f7139: Merge "resolved conflicts for merge of 9855f6e2 to jb-dev-plus-aosp" into jb-dev-plus-aosp

* commit 'd26f7139a7ff42ca1be470657515767f7509955b':
Add JNI bindings for some of the libselinux interfaces.
e38b1c4d156a569efc646e86a72ab3a3e3ccf6fc 08-Jun-2012 Kenny Root <kroot@google.com> resolved conflicts for merge of 9855f6e2 to jb-dev-plus-aosp

Change-Id: I012bd3b5946dedba3439285caa93739d44ebc60f
7b2d056342176b5e7ff19842fc9202f2f8d36b76 08-Jun-2012 Kenny Root <kroot@android.com> Merge "Add JNI bindings for some of the libselinux interfaces."
f2f1b6c94685147a6260cc70909247a96bcbe81f 26-May-2011 Martin Wallgren <martin.wallgren@sonyericsson.com> Adding test cases for getInstalledPackages

There was an earlier fix for a case where the binder
heap would run out of space when calling the
getInstalledPackages. This could happen when there were
a lot of installed packages.

This change adds some test cases to verify that fix.

Change-Id: I8e0c5f674bf2098adcff6d40893f94162961031f
oretests/apks/install_complete_package_info/Android.mk
oretests/apks/install_complete_package_info/AndroidManifest.xml
oretests/apks/install_complete_package_info/src/com/android/frameworks/coretests/TestActivity.java
oretests/apks/install_complete_package_info/src/com/android/frameworks/coretests/TestProvider.java
oretests/apks/install_complete_package_info/src/com/android/frameworks/coretests/TestReceiver.java
oretests/apks/install_complete_package_info/src/com/android/frameworks/coretests/TestService.java
oretests/src/android/content/pm/PackageManagerTests.java
bbf30dfd767f823f5f40d14b498e2a593454c5c9 29-May-2012 Wink Saville <wink@google.com> Enhance StateMachine Quitting and logging support.

Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.


bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
oretests/src/com/android/internal/util/StateMachineTest.java
fc1f1d173eceb6134799c66a0b52f4726ef26dea 21-May-2012 Jesse Wilson <jessewilson@google.com> am 0ddb5d3b: am 9cb376e7: Merge "Change NPN to forbid empty lists of protocols." into jb-dev

* commit '0ddb5d3b5d91ed0b891476e834de5ec4ffafece8':
Change NPN to forbid empty lists of protocols.
f1a97a851d18c538409d69b02ca8ed7c97aa7a89 18-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 044d40ad: am 824aa860: Merge "Accessibility service needs to request permission to be bound to." into jb-dev

* commit '044d40ad87f5f6a321aa48f74e05b8355c40f422':
Accessibility service needs to request permission to be bound to.
0ddb5d3b5d91ed0b891476e834de5ec4ffafece8 17-May-2012 Jesse Wilson <jessewilson@google.com> am 9cb376e7: Merge "Change NPN to forbid empty lists of protocols." into jb-dev

* commit '9cb376e792567b5278e0eb418a3aeb848339a283':
Change NPN to forbid empty lists of protocols.
9cb376e792567b5278e0eb418a3aeb848339a283 17-May-2012 Jesse Wilson <jessewilson@google.com> Merge "Change NPN to forbid empty lists of protocols." into jb-dev
2108ead7f125536874d6de6ca1c0c4cffbf61b44 17-May-2012 Jesse Wilson <jessewilson@google.com> Change NPN to forbid empty lists of protocols.

Bug: http://b/6438423
Change-Id: Ie89220e5bc219396c15dbe1feaa2f74fa1b243eb
oretests/src/android/net/SSLTest.java
044d40ad87f5f6a321aa48f74e05b8355c40f422 17-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 824aa860: Merge "Accessibility service needs to request permission to be bound to." into jb-dev

* commit '824aa860cd0b38b09779aab417612b115fd495a3':
Accessibility service needs to request permission to be bound to.
824aa860cd0b38b09779aab417612b115fd495a3 17-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Accessibility service needs to request permission to be bound to." into jb-dev
53e184d34e7c5b1a65c74fac55f9a635d8131dda 17-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility service needs to request permission to be bound to.

1. Every accessibility services targeting JellyBean or higher has
to request a special permission for the system to bind to it.

Change-Id: I6e579326bdf3597f148d6c67317455701ec8af68
oretests/AndroidManifest.xml
c5f4b20f75bf5ab94a7f53dcae14050e54dd57a1 16-May-2012 Xia Wang <xiaw@google.com> am 3f68e78f: am 1d366274: Merge "Fix issue: Disable soft ap when test activity is created. Add timer for soft ap enalbing timer: 6192139" into jb-dev

* commit '3f68e78f1b7d43d58e0b0730dfd57f9e6948ff10':
Fix issue: Disable soft ap when test activity is created. Add timer for soft ap enalbing timer: 6192139
3f68e78f1b7d43d58e0b0730dfd57f9e6948ff10 16-May-2012 Xia Wang <xiaw@google.com> am 1d366274: Merge "Fix issue: Disable soft ap when test activity is created. Add timer for soft ap enalbing timer: 6192139" into jb-dev

* commit '1d366274bac3153123bd37132ab87e3652e7feab':
Fix issue: Disable soft ap when test activity is created. Add timer for soft ap enalbing timer: 6192139
1d366274bac3153123bd37132ab87e3652e7feab 16-May-2012 Xia Wang <xiaw@google.com> Merge "Fix issue: Disable soft ap when test activity is created. Add timer for soft ap enalbing timer: 6192139" into jb-dev
2f19a3103c2cdcf5613eb70493122fb366d509ef 15-May-2012 Xia Wang <xiaw@google.com> Fix issue: Disable soft ap when test activity is created.
Add timer for soft ap enalbing timer: 6192139

Change-Id: I9f9a6a1f0787efdfbb924af80f7d610c07cd32e5
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
db17c38e17de1282d27389157c270f7a0147ec2b 15-May-2012 David Hu <hud@google.com> am adba4f45: am 981bd8a4: Merge "Allow tests to run when bandwidth profiling fails" into jb-dev

* commit 'adba4f454e102c89bf08cc8bbfcaf9f3751c4bf6':
Allow tests to run when bandwidth profiling fails
adba4f454e102c89bf08cc8bbfcaf9f3751c4bf6 15-May-2012 David Hu <hud@google.com> am 981bd8a4: Merge "Allow tests to run when bandwidth profiling fails" into jb-dev

* commit '981bd8a4cdd488abd69e17b275dac08c14f2ec61':
Allow tests to run when bandwidth profiling fails
981bd8a4cdd488abd69e17b275dac08c14f2ec61 15-May-2012 David Hu <hud@google.com> Merge "Allow tests to run when bandwidth profiling fails" into jb-dev
71a0d06fd8f0cae4d3f38f1f34ceebbfd6d61db6 13-May-2012 David Hu <hud@google.com> Allow tests to run when bandwidth profiling fails

When bandwidth profiling fails due to lack of kernel module
the test should still be able to run.

Change-Id: Ib111989d2892b05c147889e562e77035fab05140
tillib/src/android/test/BandwidthTestCase.java
e4fd3d50c7a39313120a005e659640bc10d94ef4 11-May-2012 Kenny Root <kroot@google.com> am 42a419b4: am 718af32a: Merge "Use long instead of int for file offsets" into jb-dev

* commit '42a419b4c0e7d16145e336ceec709dcefbdcf894':
Use long instead of int for file offsets
42a419b4c0e7d16145e336ceec709dcefbdcf894 10-May-2012 Kenny Root <kroot@google.com> am 718af32a: Merge "Use long instead of int for file offsets" into jb-dev

* commit '718af32a191066822262ad05cdd525a09c66094f':
Use long instead of int for file offsets
103d53005e7a3c2735f4ac76fa9b795a7e7e39d7 10-May-2012 Kenny Root <kroot@google.com> Use long instead of int for file offsets

Use long instead of int so we don't run into a 2GB file limit.

Fix possible overflows in offset and length.

Change-Id: Idb3a34f5600f9c2372b9c89256f21757049fa43b
oretests/src/android/content/pm/LimitedLengthInputStreamTest.java
4311705501a7d426a07d2a6c5b8a0d1d262495ba 10-May-2012 Jeff Sharkey <jsharkey@android.com> am fe9e28cb: am 6367b166: Merge "Recover from Throwable in FileRotator, dump." into jb-dev

* commit 'fe9e28cba7dabb452fdbadcf421f7f758a859447':
Recover from Throwable in FileRotator, dump.
fe9e28cba7dabb452fdbadcf421f7f758a859447 10-May-2012 Jeff Sharkey <jsharkey@android.com> am 6367b166: Merge "Recover from Throwable in FileRotator, dump." into jb-dev

* commit '6367b1669d41f9fe7cd7abe5e05296edecd50f8e':
Recover from Throwable in FileRotator, dump.
6367b1669d41f9fe7cd7abe5e05296edecd50f8e 09-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Recover from Throwable in FileRotator, dump." into jb-dev
6de357e4d10fa5977ab9a6c665dc858765e95d34 09-May-2012 Jeff Sharkey <jsharkey@android.com> Recover from Throwable in FileRotator, dump.

In rewriteSingle(), catch Throwable to rollback to backup file,
instead of just IOException. Also add dumpAll() to pack up contents
for later debugging, and use it when encountering bad stats.

Bug: 6467868
Change-Id: Ic8e287cf5a235706811a304a88d71d11d3a79cd4
oretests/src/com/android/internal/util/FileRotatorTest.java
6fce46c6bcefd2a6665b6d962aba332f66fc4142 09-May-2012 Xia Wang <xiaw@google.com> am cae2b331: am 72e95cfe: Merge "Fix Wifi test" into jb-dev

* commit 'cae2b331b837f6b156aaae83254617a81a21048e':
Fix Wifi test
c72b502d897fc1314ccbb8799f8ca66a3d131e17 09-May-2012 Kenny Root <kroot@google.com> am 83ea8609: am 29bb27ef: Merge "Add encryption parameters to package installation" into jb-dev

* commit '83ea86091bf94571912694c7caf8be1c21727f91':
Add encryption parameters to package installation
cae2b331b837f6b156aaae83254617a81a21048e 09-May-2012 Xia Wang <xiaw@google.com> am 72e95cfe: Merge "Fix Wifi test" into jb-dev

* commit '72e95cfef014c9354812717982bf312880d2bab5':
Fix Wifi test
83ea86091bf94571912694c7caf8be1c21727f91 09-May-2012 Kenny Root <kroot@google.com> am 29bb27ef: Merge "Add encryption parameters to package installation" into jb-dev

* commit '29bb27ef90564a294d506c2ffd546ba21788aeac':
Add encryption parameters to package installation
72e95cfef014c9354812717982bf312880d2bab5 09-May-2012 Xia Wang <xiaw@google.com> Merge "Fix Wifi test" into jb-dev
ceb1b0bfaea56251796b08c07b963de7403d84eb 24-Apr-2012 Anonymous Coward <nobody@android.com> Add encryption parameters to package installation

Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
oretests/src/android/content/pm/ContainerEncryptionParamsTest.java
oretests/src/android/content/pm/LimitedLengthInputStreamTest.java
oretests/src/android/content/pm/MacAuthenticatedInputStreamTest.java
81341fee6de80d8808afd8af3009258660a8f834 07-May-2012 Xia Wang <xiaw@google.com> Fix Wifi test

bug: http://b/issue?id=6446248
Change-Id: I22783ed3de37bf51aed7cee9617017868f524f0d
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
94e4429086fd3948ca26593993c78ae61cbe7706 07-May-2012 Fred Quintana <fredq@google.com> am 5484e826: am 989c7532: Merge "fix expedited syncs. there were times when an expedited sync wouldn\'t correctly preempt non-expedited syncs" into jb-dev

* commit '5484e82612ef67630f10a0179dfad55716bcce2a':
fix expedited syncs. there were times when an expedited sync wouldn't correctly preempt non-expedited syncs
5484e82612ef67630f10a0179dfad55716bcce2a 07-May-2012 Fred Quintana <fredq@google.com> am 989c7532: Merge "fix expedited syncs. there were times when an expedited sync wouldn\'t correctly preempt non-expedited syncs" into jb-dev

* commit '989c753281fcb689ea163530096ac589c9e5a44f':
fix expedited syncs. there were times when an expedited sync wouldn't correctly preempt non-expedited syncs
dc47556cb37b6f25faceb5eb97cef60d384b55fb 05-May-2012 Fred Quintana <fredq@google.com> fix expedited syncs. there were times when an expedited sync wouldn't
correctly preempt non-expedited syncs

Change-Id: Ia88ce6504c06d7c8e50e40362e8bf2b85bd0934b
oretests/src/android/content/SyncStorageEngineTest.java
353f8c7d3398f3212c9d5f817e6e4a3b9784e5ac 04-May-2012 Jeff Sharkey <jsharkey@android.com> am 3ddb4f80: am c065a8af: Merge "Begin collecting xtables iface counters." into jb-dev

* commit '3ddb4f80e5cb47173b78430399076c4c3d1bb178':
Begin collecting xtables iface counters.
3ddb4f80e5cb47173b78430399076c4c3d1bb178 04-May-2012 Jeff Sharkey <jsharkey@android.com> am c065a8af: Merge "Begin collecting xtables iface counters." into jb-dev

* commit 'c065a8af1561544f1557e3f5036e45a4be4a6d7e':
Begin collecting xtables iface counters.
c065a8af1561544f1557e3f5036e45a4be4a6d7e 04-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Begin collecting xtables iface counters." into jb-dev
8ae5cd3b81b49d5fd79b62687e7b77dd1d6bfde8 03-May-2012 Kenny Root <kroot@google.com> am f154df1a: am 03f22533: Merge "Fix some problems with ASECs" into jb-dev

* commit 'f154df1a31e73c8b4342f54ea7d5508295d30936':
Fix some problems with ASECs
f154df1a31e73c8b4342f54ea7d5508295d30936 03-May-2012 Kenny Root <kroot@google.com> am 03f22533: Merge "Fix some problems with ASECs" into jb-dev

* commit '03f22533a7ed398351f7c98af4a91d91354a2095':
Fix some problems with ASECs
03f22533a7ed398351f7c98af4a91d91354a2095 03-May-2012 Kenny Root <kroot@google.com> Merge "Fix some problems with ASECs" into jb-dev
9151669615dc5ee678d3044ca0556d38bf733017 03-May-2012 Jeff Sharkey <jsharkey@android.com> am 5924a7dc: am 3b5a7089: Merge "Support full 32 bits for socket tags." into jb-dev

* commit '5924a7dc53af273343bbdd8456de0c8477ad6b06':
Support full 32 bits for socket tags.
5924a7dc53af273343bbdd8456de0c8477ad6b06 03-May-2012 Jeff Sharkey <jsharkey@android.com> am 3b5a7089: Merge "Support full 32 bits for socket tags." into jb-dev

* commit '3b5a7089c7d08042f8ff62e50eb76fc8f6cb80c8':
Support full 32 bits for socket tags.
bf023589b3d9994f43823c7cb0450d278b084f9b 03-May-2012 Kenny Root <kroot@google.com> Fix some problems with ASECs

On devices that had external storage, permissions weren't set correctly
on non-forward-locked applications. Also, moving forward locked
applications didn't work since DefaultContainerService wasn't able to
read it.

Fixed some faulty unit tests as well.

Bug: 6427212
Change-Id: I5c1f0bf5278549069c78939f0708c4c43a7d4006
oretests/src/android/content/pm/PackageManagerTests.java
2d6c580262ba1c19fc4f20c3566889e332fbdcb6 03-May-2012 Jeff Sharkey <jsharkey@android.com> Support full 32 bits for socket tags.

Bug: 5321184
Change-Id: Iadb3a4ad541ef012cea35b70ad440eca4c879f42
oretests/src/com/android/internal/net/NetworkStatsFactoryTest.java
e8914c36276710de50b347c1e6aecfa45d6a56cd 02-May-2012 Jeff Sharkey <jsharkey@android.com> Begin collecting xtables iface counters.

Add method to parse new iface_stat_fmt proc stats, or return null
when kernel support is unavailable. Add test and remove older, unused
parsing code. Create new "xt" recorder to persist the new xtables
counters when available.

Add SSID support to NetworkIdentity to fix policy tests.

Bug: 6422414
Change-Id: I77f70e9acb79a559ab626f3af5c4f3599801ed43
oretests/res/raw/net_dev_typical
oretests/res/raw/xt_qtaguid_iface_fmt_typical
oretests/src/com/android/internal/net/NetworkStatsFactoryTest.java
d733ec3b28ded8d2d4f6ab0498bc66a207cb6ad7 25-Apr-2012 Brett Chabot <brettchabot@android.com> Prevent binder flooding when sending instrumentation status.

There is a long standing bug in the InstrumentationTestRunner where executing
many fast-running tests causes it to hang with 'FAILED BINDER TRANSACTION'
messages in the logs.

This commit changes the Instrumentation status updates to be sent synchronously.

Bug 1796494

Change-Id: Ifd1af31158353d727bd88283eaeb90933ba1a3ca
oretests/src/android/app/InstrumentationTest.java
647867ad5a9037b83fa5de456ba616720aae159d 01-May-2012 Jean-Baptiste Queru <jbq@google.com> am 63d944d6: am 93a8225e: Merge "Improve robustness of resource overlay test suite."

* commit '63d944d62e9c85e2b2aa611be1a8d5a6c6ff973f':
Improve robustness of resource overlay test suite.
39b58ba2b299e1c97e13535aae9add530d942c7b 01-May-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of bc2fb7b9 to jb-dev-plus-aosp

Change-Id: I5386585e473201268c6ed8b05e0a16569d434ea2
93a8225e54da124807734ff8e4c7790158d06b7c 01-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Improve robustness of resource overlay test suite."
9e3bc3f61df541271c8a1dfc5564cab853951aec 01-May-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Build overlay packages just like regular packages."
c458ce98ce42c00b98afe00670f822814f3da572 30-Apr-2012 Jeff Brown <jeffbrown@google.com> Add support for using the lid switch to turn off the screen.

Added a config option to allow the lid switch to turn off the
screen. This is a closer match to what a lid switch should be
doing.

Removed an old feature to bypass keyguard when keyboard is visible
because the way it was plumbed in made bad assumptions about
the meaning of the lid switch. Also, the last product we shipped
that had a physical keyboard turned this config option off.
So away it goes. We can bring it back someday if we really want it.
It's questionable how useful the feature is anyhow, since it only
works when the keyguard is unsecure and when the lid switch is
unlikely to be jostled in the user's pocket.

Fixed a bug where we would tell the power manager that the keyboard
was visible even if the lid switch did not control the keyboard.
This used to cause the power manager to try to set the keyboard
brightness, which doesn't work.

Bug: 6377115
Bug: 6406726
Change-Id: Ic84b71d09563d51c92cd1cf132fa8bdee6509103
verlaytests/OverlayTest/src/com/android/overlaytest/OverlayBaseTest.java
6dceb88f1c7c42c6ab43834af2c993d599895d82 12-Apr-2012 Kenny Root <kroot@google.com> Allow forward locked apps to be in ASECs

We couldn't put forward-locked apps in ASEC containers before since we
didn't have any permissioned filesystems. This adds the ability for
forward-locked applications to be in ASEC containers.

This means that forward locked applications will be able to be on the SD
card now.

This change also removes the old type of forward-locking that placed
parts of apps in /data/app-private. Now all forward-locked applications
will be in ASEC containers.

Change-Id: I17ae0b0d65a4a965ef33c0ac2c47e990e55707ad
oretests/src/android/content/pm/PackageHelperTests.java
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/os/storage/AsecTests.java
54dfa5d90e49037eba05f5278076b45428b2bd11 24-Apr-2012 Chris Wren <cwren@android.com> Don't allow children of a SizeAdaptiveLayout to measure outside their declared range of valid sizes.

Bug: 6377749
Change-Id: Ie706006eee9c0ed8dda468212a652941b8e20be0
oretests/res/layout/size_adaptive_lies.xml
oretests/src/com/android/internal/widget/SizeAdaptiveLayoutTest.java
0b568ff17983ee84b6099e28c89cac414abd0739 20-Apr-2012 Gilles Debunne <debunne@google.com> Merge "TextView's sub display lists have tighten bounds"
d84e5937468f6ebf2313ccd5ae54d5405f5e9cde 19-Apr-2012 Chris Wren <cwren@android.com> fix press feedback on notification rows

Change-Id: I50de2f4d6142c2553428abc853c820f4354d0640
Bug: 6362246
oretests/res/drawable/size_adaptive_statelist.xml
oretests/res/layout/size_adaptive_color_statelist.xml
oretests/src/com/android/internal/widget/SizeAdaptiveLayoutTest.java
157aafcbee0eabda798a3be406ccc4200ee86756 20-Apr-2012 Gilles Debunne <debunne@google.com> TextView's sub display lists have tighten bounds

An editable TextView caches text rendering inside an adaptive
number of sub display lists. The bounds of these use to be those
of the entire View.

This CL creates block display lists with tighten bounds, so that
(a still-to-be-implemented) quick rejection can occur.

Also cleaned-up the contradictory translations that were used to
handle the TextView's internal scroll and removed the invalidation
of display lists in that case.

TODO: When internal scroll sets a tighter clipping rect, quick
reject the creation and display of the clipped display lists.

Also renamed blockEnds to a more explicit blockEndLines.

Change-Id: I7d79bea78d06d19b6935aef75ff7aa7df2594050
oretests/src/android/text/DynamicLayoutBlocksTest.java
3d100d97a55c5aba2cac5599a158fe3759d278ca 18-Apr-2012 Chet Haase <chet@google.com> Merge "Fix logic of animator start/cancel/end callbacks"
a51a9564fd53b661446cd63eea23208656acc678 18-Apr-2012 Craig Mautner <cmautner@google.com> Add call-stack reporting methods into Debug

Added two public methods to Debug. These methods return a String
indicating the caller (getCaller()) or callers (getCallers(int depth))
of the calling method. The String indicates the class, method and line
number of the caller(s). Similar to using Throwable.fillInStackTrace()
but much more concise.

Change-Id: I53d0085aa50e4501d28e8eb3ad5b91ef700ac218
oretests/src/com/android/internal/os/DebugTest.java
17cf42cb85c22b50ecfa8d21efc992f99d20fc45 17-Apr-2012 Chet Haase <chet@google.com> Fix logic of animator start/cancel/end callbacks

The callbacks for animators in some corner cases were not being
called correctly. For example, startDelayed animators that were
started and then ended didn't send out the proper events.

This CL fixes that logic. Specifically:
- An animator that is end()'d will implicitly start() itself and then
assign an end value. This was already the case, but listeners were not
getting notified. Now this situation causes callbacks to listeners for
both the start and end events.
- startDelayed animators that are end()'d or cancel()'d prior to finishing
the startDelay phase will send out events (start and cancel/end, as appropriate)
to listeners.

Change-Id: I40a0f2fdb19d9ec7c3726a91363686c6ecb7d915
oretests/src/android/animation/EventsTest.java
3a59d6e26dbec61ede7d6f87d966698e27c91d78 31-Mar-2012 Chris Wren <cwren@android.com> A layout that switches between its children based on the requested layout height.

Change-Id: I5a4e5892fbed7cab2470e458a38accbbcb05ae51
oretests/res/drawable/abe.jpg
oretests/res/drawable/gettysburg.png
oretests/res/layout/size_adaptive.xml
oretests/res/layout/size_adaptive_color.xml
oretests/res/layout/size_adaptive_four_u.xml
oretests/res/layout/size_adaptive_four_u_text.xml
oretests/res/layout/size_adaptive_gappy.xml
oretests/res/layout/size_adaptive_large_only.xml
oretests/res/layout/size_adaptive_one_u.xml
oretests/res/layout/size_adaptive_one_u_text.xml
oretests/res/layout/size_adaptive_overlapping.xml
oretests/res/layout/size_adaptive_singleton.xml
oretests/res/layout/size_adaptive_text.xml
oretests/res/layout/size_adaptive_three_way.xml
oretests/res/values/strings.xml
oretests/src/com/android/internal/widget/SizeAdaptiveLayoutTest.java
b7c24702c26c7824f025d603d703ddf2f19ddb30 15-Apr-2012 Kenny Root <kroot@google.com> Better error reporting for PackageManager tests

The unit tests were eating failure reasons. Remove some assertions so
the useful messages percolate up to the JUnit report.

Change-Id: Ica8efe403ca3eb4f0c4f2a18939a22085f74a08f
oretests/src/android/content/pm/PackageManagerTests.java
52c5acacd477cf77a6513ac870251de6bde93a43 15-Apr-2012 Kenny Root <kroot@google.com> Build "install" resource for PMS tests

All the APKs in the FrameworkCoreTests's res/raw directory should be
built by source.

This change makes one more built from source that was causing test
failures with mismatched certificates.

Change-Id: I1baed15477ee39c45d3d77f9b02b81f771a16ca2
oretests/apks/install/Android.mk
oretests/apks/install/AndroidManifest.xml
oretests/apks/install/res/values/strings.xml
oretests/res/raw/install
4213804541a8b05cd0587b138a2fd9a3b7fd9350 20-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility focus - framework

Usefulness: Keep track of the current user location in the screen when
traversing the it. Enabling structural and directional
navigation over all elements on the screen. This enables
blind users that know the application layout to efficiently
locate desired elements as opposed to try touch exploring the
region where the the element should be - very tedious.

Rationale: There are two ways to implement accessibility focus One is
to let accessibility services keep track of it since they
have access to the screen content, and another to let the view
hierarchy keep track of it. While the first approach would
require almost no work on our part it poses several challenges
which make it a sub-optimal choice. Having the accessibility focus
in the accessibility service would require that service to scrape
the window content every time it changes to sync the view tree
state and the accessibility focus location. Pretty much the service
will have to keep an off screen model of the screen content. This
could be quite challenging to get right and would incur performance
cost for the multiple IPCs to repeatedly fetch the screen content.
Further, keeping virtual accessibility focus (i.e. in the service)
would require sync of the input and accessibility focus. This could
be challenging to implement right as well. Also, having an unlimited
number of accessibility services we cannot guarantee that they will
have a proper implementation, if any, to allow users to perform structural
navigation of the screen content. Assuming two accessibility
services implement structural navigation via accessibility focus,
there is not guarantee that they will behave similarly by default,
i.e. provide some standard way to navigate the screen content.
Also feedback from experienced accessibility researchers, specifically
T.V Raman, provides evidence that having virtual accessibility focus
creates many issues and it is very hard to get right.
Therefore, keeping accessibility focus in the system will avoid
keeping an off-screen model in accessibility services, it will always
be in sync with the state of the view hierarchy and the input focus.
Also this will allow having a default behavior for traversing the
screen via this accessibility focus that is consistent in all
accessibility services. We provide accessibility services with APIs to
override this behavior but all of them will perform screen traversal
in a consistent way by default.

Behavior: If accessibility is enabled the accessibility focus is the leading one
and the input follows it. Putting accessibility focus on a view moves
the input focus there. Clearing the accessibility focus of a view, clears
the input focus of this view. If accessibility focus is on a view that
cannot take input focus, then no other view should have input focus.
In accessibility mode we initially give accessibility focus to the topmost
view and no view has input focus. This ensures consistent behavior accross
all apps. Note that accessibility focus can move hierarchically in the
view tree and having it at the root is better than putting it where the
input focus would be - at the first input focusable which could be at
an arbitrary depth in the view tree. By default not all views are reported
for accessibility, only the important ones. A view may be explicitly labeled
as important or not for accessibility, or the system determines which one
is such - default. Important views for accessibility are all views that are
not dumb layout managers used only to arrange their chidren. Since the same
content arrangement can be obtained via different combintation of layout
managers, such managers cannot be used to reliably determine the application
structure. For example, a user should see a list as a list view with several
list items and each list item as a text view and a button as opposed to seeing
all the layout managers used to arrange the list item's content.
By default only important for accessibility views are regared for accessibility
purposes. View not regarded for accessibility neither fire accessibility events,
nor are reported being on the screen. An accessibility service may request the
system to regard all views. If the target SDK of an accessibility services is
less than JellyBean, then all views are regarded for accessibility.
Note that an accessibility service that requires all view to be ragarded for
accessibility may put accessibility focus on any view. Hence, it may implement
any navigational paradigm if desired. Especially considering the fact that
the system is detecting some standard gestures and delegates their processing
to an accessibility service. The default implementation of an accessibility
services performs the defualt navigation.

bug:5932640
bug:5605641

Change-Id: Ieac461d480579d706a847b9325720cb254736ebe
oretests/src/android/widget/focus/ListOfButtonsTest.java
8fc27e8b87bd1def854a03d84009143b315d4176 05-Apr-2012 Jeff Sharkey <jsharkey@android.com> Support metered Wi-Fi NetworkPolicy.

Add networkId field to NetworkIdentity to identify Wi-Fi networks by
SSID. Add support for policies without usage cycles.

Only apply mobile policies when SIM state is ready, which is cleaner
than just checking for airplane mode. Also avoids creating no-op
default policies when subscriberId is null.

Bug: 3001465, 3291052
Change-Id: I1f8aaa49a5db306df022c402ea7f3f5d4bc0cfc7
oretests/src/com/android/internal/net/NetworkStatsFactoryTest.java
c07fca3831baf4d812dd724f506b4ed23dcc39e0 13-Jan-2012 Stephen Smalley <sds@tycho.nsa.gov> Add JNI bindings for some of the libselinux interfaces.

Change-Id: Ifcc68cb06f9f56a04f3bc64dd9906a9436fabc88
oretests/src/android/os/SELinuxTest.java
b14ad8cc8cb0ed774072b077694b21fd0a6f33be 29-Mar-2012 Jeff Sharkey <jsharkey@android.com> Migrate to shared MockWebServer.

Bug: 4726601
Change-Id: Ibbe71b5785a64bd2883c46b83e721fba9a25afa2
oretests/src/android/app/DownloadManagerBaseTest.java
oretests/src/android/app/DownloadManagerFunctionalTest.java
oretests/src/android/app/DownloadManagerStressTest.java
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerBaseTest.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestRunner.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerBaseTest.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerTestApp.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/DownloadManagerTestRunner.java
tillib/src/coretestutils/http/MockResponse.java
tillib/src/coretestutils/http/MockWebServer.java
tillib/src/coretestutils/http/RecordedRequest.java
f31af709159e180d392fd32efb96a026e998e76a 29-Mar-2012 Gilles Debunne <debunne@google.com> Merge "Added a unit test for DynamicLayout#updateBlocks"
fb32ab903affabbf1f71ee499381e070feaef987 21-Mar-2012 Kenny Root <kroot@google.com> Update Wifi tests

Wifi tests used old WifiConfiguration values. This updates it to the new
values.

Change-Id: I14498aebba50f906181fa377b84855eae3d046fc
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
1e130b2abc051081982b5a793a18a28376c945e4 15-Mar-2012 Gilles Debunne <debunne@google.com> Added a unit test for DynamicLayout#updateBlocks

Change-Id: I1824ebeae2bbb5c60a65de36fe1696bf003347c9
oretests/src/android/text/DynamicLayoutBlocksTest.java
e300d828282645759abfbc5725c5ccc448e8c053 26-Mar-2012 Jesse Wilson <jessewilson@google.com> Merge "Add an API to expose Next Protocol Negotiation (NPN)."
f5fb5e80963abeabdf0ff10dcee068344235082e 23-Mar-2012 Jesse Wilson <jessewilson@google.com> Add an API to expose Next Protocol Negotiation (NPN).

Bug: http://b/4190756
Change-Id: If904f7ff440391a6adb2963eb2ecb990140ab7cc
oretests/src/android/net/SSLTest.java
483f3b06ea84440a082e21b68ec2c2e54046f5a6 14-Mar-2012 Amith Yamasani <yamasani@google.com> Package restrictions per user

Packages can be enabled/disabled per user.
This requires maintaining stopped/launched states and
enabled / disabled components and packages per user.

Refactored pm.Settings and PackageSettingsBase to keep
track of states per user.

Migrated the stopped-packages.xml to users/<u>/package-restrictions.xml

Changed intent resolution to handle individual user restrictions.
Bunch of IPackageManager calls now have a userId argument.
Make AppWidgetService handle removals of packages.

Added some tests for pm.Settings and PackageManager.

Change-Id: Ia83b529e1df88dbcb3bd55ebfc952a6e9b20e861
oretests/src/android/content/pm/AppCacheTest.java
ca4aab9cd724708af30abb4bfcb2f9b45087f449 14-Mar-2012 David Hu <hud@google.com> BandwidthTestCase

A test case that measures bandwidth metrics when annotated with
android.test.BandwidthTest and adds the metrics to the status bundle

Change-Id: I085110c66c7fcf651aefeeac3d4cdf5bd438ff67
tillib/src/android/test/BandwidthTest.java
tillib/src/android/test/BandwidthTestCase.java
3e3c3f80a90b156ff500076f8655647dfb317acf 06-Feb-2012 Jake Hamby <jhamby@google.com> Add support for CMAS warning notifications over CDMA.

Refactor SMS Cell Broadcast support to enable receiving CMAS warning
notifications over CDMA. The CellBroadcastReceiver app must also be
updated with the corresponding change. All cell broadcasts are now
delivered as a Parcelable SmsCbMessage object in the "message" extra
of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION,
instead of as a GSM/UMTS "pdu" byte array.

Existing functionality for ETWS and CMAS alerts over GSM/UMTS continues
to be supported using the new radio-technology independent SmsCbMessage
and related objects. Test cases are added to verify that valid and
invalid broadcast data is handled appropriately.

Unit testing discovered a bug in the BitwiseOutputStream utility class
used by the added test cases. When the BitwiseOutputStream object must be
expanded (in the private possExpand() method), the mEnd field is not
updated to the new array size. This causes a new array to be allocated
on every new write, and for all data beyond the original array allocation
to be replaced with zeroes. Fixed by adding a line to possExpand() to
update mEnd. Added a test case to BitwiseStreamsTest to verify the fix.
Besides the test cases, BitwiseOutputStream is only used by BearerData in
two places, both of which allocate a sufficient initial buffer. So the
bug in BitwiseOutputStream is not critical to fix for normal operation,
but should be fixed so that the test cases using it function correctly.

Bug: 5856308
Change-Id: I201ecbf11607fd200aaae3cbb32561efabf65672
oretests/src/com/android/internal/util/BitwiseStreamsTest.java
41efc447549b24cef35fe4f1145844babe0f791e 13-Mar-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Move LocalUtil unit tests from Frameworks to CTS"
1103beee4453d1e1144e98993fb46d2a6562ff42 13-Mar-2012 Fabrice Di Meglio <fdimeglio@google.com> Move LocalUtil unit tests from Frameworks to CTS

Change-Id: I9f3333a4fdf7ccbe71e5bd5a9bd0104551efb724
oretests/src/android/util/LocaleUtilTest.java
4b87e4a56c520775c69327a36051754faf0ed6c9 13-Mar-2012 Xia Wang <xiaw@google.com> Merge "Fix test flakiness"
6d3c2f0cad85b5f618d0bdbf3e9ca659768a47f0 10-Mar-2012 Xia Wang <xiaw@google.com> Fix test flakiness

Disable soft AP before start the wifi stress test.
If soft AP test failed with AP enabled, the wifi client can not be
enabled.

Change-Id: Ie6950f6b5b662727f2e811d9b81aeb0f4f7cda91
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
05f692e8050c3650ec123b2361143a121e2e7d4b 12-Mar-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Make Gravity RTL APIs public"
e8dc07dcdb983d5d3999b16c2a49ddee4bdb942c 10-Mar-2012 Fabrice Di Meglio <fdimeglio@google.com> Make Gravity RTL APIs public

- also move unit tests to CTS
- also small improvement for View Javadoc

Change-Id: I166d5a10f4a00f1b46c90468c8b11906b438e1ea
oretests/src/android/view/GravityTest.java
d65a4f62fe641cfa485663b162b6f10aa74e3665 10-Mar-2012 Xia Wang <xiaw@google.com> Merge "Allow CM/WIFI tests running with wifi-only flag."
776cca3b3a84cd16bdaccdd43963cc34d923e0a4 10-Mar-2012 Xia Wang <xiaw@google.com> Allow CM/WIFI tests running with wifi-only flag.

Change-Id: I12ab8f6f0335574a5af6db497ed76e6d5fec3ab7
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/UtilHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 09-Mar-2012 Ken Wakasa <kwakasa@google.com> Fix obvious typos under frameworks/base/core

Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
oretests/src/android/util/ListScenario.java
oretests/src/android/view/ViewAttachTest.java
21b4d6b7a5959b567355aae032bd76500c148e54 09-Mar-2012 Xia Wang <xiaw@google.com> Merge "Fix CM test http://b/issue?id=6125619"
27284da88c4552c5be4c8eff8acd36b518da47da 09-Mar-2012 Xia Wang <xiaw@google.com> Fix CM test
http://b/issue?id=6125619

Change-Id: I33306619424ab54281aaf592c78581179ebbfc6e
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
28ca8f9f95b1ee8186463bfc3f33b9383c0d1dd0 09-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "Make SyncManager and AccountManagerService multi-user aware."
04e0d265e3385e9d1fbc35e43c4e8caffbbe3290 14-Feb-2012 Amith Yamasani <yamasani@google.com> Make SyncManager and AccountManagerService multi-user aware.

AccountManagerService
- Maintain multiple account lists, one per user
- Keep multiple databases of accounts
- Account db moved to /data/system/users/<userid>/

SyncManager
- SyncStorageEngine keeps track of multiple users' accounts.
- SyncQueue maintained as a single instance, queueing requests from
multiple users.
- Changed some methods to take userId arguments
- Removed some deadc0de
- Store the userId in the SyncOperation, so we know which provider
instance to bind to when queued operations are processed.

ContentService
- Pass along the userid to sync manager calls.

ActivityManagerService:
- Fixed a bug in cancelIntentSender
- Don't bring other user's task forward when resetting tasks.

Updated tests

Change-Id: If317340ef68e902787aa3f5ceb4cf96f14aea695
oretests/src/android/content/SyncOperationTest.java
oretests/src/android/content/SyncStorageEngineTest.java
8f409bcd4b14de860e44e4740f8bd212e34cda06 07-Mar-2012 Jeff Sharkey <jsharkey@android.com> Merge "Caliper benchmarks for Parcel."
a197e37f7fc056f9d6db3ef24b5e6db9222e7b56 07-Mar-2012 Jeff Sharkey <jsharkey@android.com> Caliper benchmarks for Parcel.

Bug: 6111276
Change-Id: I4b89e4c14d2dc20e71bbaed78f285e6d539a1f0f
enchmarks/README
enchmarks/src/android/os/ParcelArrayBenchmark.java
enchmarks/src/android/os/ParcelBenchmark.java
42b40c0ed81db5a598d9c67f71cb7952b2360247 06-Mar-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #4972463 Update CTS tests for TextView textDirection"
e9c0d1495b1ac85048e19fd7cbf232a0cd10df12 06-Mar-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #4972463 Update CTS tests for TextView textDirection

- move unit tests from Frameworks to CTS

Change-Id: I4598d8e99850f49e660c5bb3fb6025e71c635635
oretests/res/layout/textview_test.xml
oretests/src/android/widget/TextViewTest.java
oretests/src/android/widget/TextViewTestActivity.java
3c90952036a5ff7ddb2946c643f1a0bf1c31d53a 28-Feb-2012 Jonathan Dixon <joth@google.com> Refactor WebView to be a thin proxy class

Splits interface and implementation; all client calls are forwarded
to an abstract WebViewProvider interface, and the existing implementation
moved into the WebViewClassic implementor of this interface.

Originally taken from a snapshot from the development branch, by:
git diff HEAD 9a4c328a54cc05e5 | git apply
- but then rebased to keep up to date with master

Interdepends on webkit and Browser changes:
https://android-git.corp.google.com/g/158979
https://android-git.corp.google.com/g/167911

Change-Id: I91403f32654ff308934e95c832d17b292a7d9b2e
oretests/src/android/webkit/ZoomManagerTest.java
756fe38d0883966d143d81f38bb40a4b028ad463 02-Mar-2012 Tsu Chiang Chuang <tsu@google.com> am 6053b195: am bb69bde5: am 3e701270: Merge "extend timeout to allow for more time for the device to connect." into ics-mr1

* commit '6053b195bcd49676b46b2257f6e1da04d0b4d9a5':
extend timeout to allow for more time for the device to connect.
d3975a917799b85cacaf382b65c5832813066b51 24-Feb-2012 Irfan Sheriff <isheriff@google.com> Fix WifiManager async API

Fix the current asynchronous API to use callback like the way
was done with p2p API.

In the process, fix the use of WPS

Change-Id: Ib6f8714cf51b3525b655948268804e7eaaf17587
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
4b1afab106f3959ba56fba08fbdccee5d15068bc 29-Feb-2012 Tsu Chiang Chuang <tsu@google.com> extend timeout to allow for more time for the device to connect.

Change-Id: If3929ca69a5025c7048d57276813c270229a76db
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
b303b428169986bc8c469218f3b0fc1fcafe4a95 29-Feb-2012 Jake Hamby <jhamby@google.com> Merge "Revert "Add support for CMAS warning notifications over CDMA." I'll submit again when the app change is ready."
efba344b5a7b20e400daf5f41b2fbd688337f789 29-Feb-2012 Jake Hamby <jhamby@google.com> Revert "Add support for CMAS warning notifications over CDMA." I'll submit again when the app change is ready.

This reverts commit 0c49f03a0429b5c0c4a619256f7bca86a4997ae8
oretests/src/com/android/internal/util/BitwiseStreamsTest.java
7b0eb33c3a6a70c91a913e4cd0171e19fba0a3f1 29-Feb-2012 Jake Hamby <jhamby@google.com> Merge "Add support for CMAS warning notifications over CDMA."
3fb824bae3322252a68c1cf8537280a5d2bd356d 29-Feb-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #5217606 LocaleUtils constants TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE and TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE should be renamed

- replace them by the View constants

Change-Id: I7c2bf0213319247d3db369b6f7c36771fdf3e509
oretests/src/android/util/LocaleUtilTest.java
0c49f03a0429b5c0c4a619256f7bca86a4997ae8 06-Feb-2012 Jake Hamby <jhamby@google.com> Add support for CMAS warning notifications over CDMA.

Refactor SMS Cell Broadcast support to enable receiving CMAS warning
notifications over CDMA. The CellBroadcastReceiver app must also be
updated with the corresponding change. All cell broadcasts are now
delivered as a Parcelable SmsCbMessage object in the "message" extra
of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION,
instead of as a GSM/UMTS "pdu" byte array.

Existing functionality for ETWS and CMAS alerts over GSM/UMTS continues
to be supported using the new radio-technology independent SmsCbMessage
and related objects. Test cases are added to verify that valid and
invalid broadcast data is handled appropriately.

Unit testing discovered a bug in the BitwiseOutputStream utility class
used by the added test cases. When the BitwiseOutputStream object must be
expanded (in the private possExpand() method), the mEnd field is not
updated to the new array size. This causes a new array to be allocated
on every new write, and for all data beyond the original array allocation
to be replaced with zeroes. Fixed by adding a line to possExpand() to
update mEnd. Added a test case to BitwiseStreamsTest to verify the fix.
Besides the test cases, BitwiseOutputStream is only used by BearerData in
two places, both of which allocate a sufficient initial buffer. So the
bug in BitwiseOutputStream is not critical to fix for normal operation,
but should be fixed so that the test cases using it function correctly.

Bug: 5856308
Change-Id: Ie3e6af747976ce9b8a3e71e76fec71709cf86545
oretests/src/com/android/internal/util/BitwiseStreamsTest.java
541710a9aec1542ca4617df600d9717286af1a1c 23-Feb-2012 Tsu Chiang Chuang <tsu@google.com> am c16d9de7: am a626f8d6: am 2d559b53: Merge "fix NPE in race condition." into ics-mr1

* commit 'c16d9de72996950ec7f55af80d2864cd2abad1c2':
fix NPE in race condition.
0d04e245534cf777dfaf16dce3c51553837c14ff 21-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Improving accessibility APIs used for UI automation.

1. UiTestAutomationBridge was accessing the root node in the
active window by tracking the accessibility event stream
and keeping the last active window changing event. Now
the bridge is stateless and the root node is fetched by
passing special window and view id with the request to
the system.

2. AccessibilityNodeInfos that are cached were not finished,
i.e. not sealed, causing exception when trying to access
their children or rpedecessors.

3. AccessibilityManagerService was not properly restoring its
state after the UI automation bridge disconnects from it.
I particular the devices was still in explore by touch mode
event if no services are enabled and the sutomation bridge
is disconnected.

4. ViewRootImpl for the focused window now fires accessibility
events when accessibility is enabled to allow accessibility
services to determine the current user location.

5. Several missing null checks in ViewRootImpl are fixed since
there were scenraios in which a NPE can occur.

6. Update the internal window content querying tests.

7. ViewRootImpl was firing one extra focus event.
bug:6009813
bug:6026952

Change-Id: Ib2e058d64538ecc268f9ef7a8f36ead047868a05
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
4fe25f693ad311556fb232c352ed0b84d59343a5 16-Feb-2012 Tsu Chiang Chuang <tsu@google.com> fix NPE in race condition.

Change-Id: Ic1df67f8a5379ff1cd804fb55e143f078e369ccf
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
16b7ddcfe64acf6715ba4b6e012c3d12d15d0380 07-Feb-2012 Xia Wang <xiaw@google.com> Remove airplane mode related wifi test for Wi-Fi only devices.

Change-Id: I5b319b98ac68c0b7f053c5baf084c3138db8fe07
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestRunner.java
2c7ea732a6dd22bcf72b08bc8f272d95fbee60fb 08-Feb-2012 MÃ¥rten Kongstad <marten.kongstad@sonyericsson.com> Improve robustness of resource overlay test suite.

Test runner will now create directory /vendor/overlay/framework, if
missing.

Also, move wallpaper from drawable to drawable-nodpi for it to actually
take effect on ICS code.

Change-Id: I7615345e847c5fca91aedc459f6aa3316a45aab5
verlaytests/OverlayTestOverlay/res/drawable-nodpi/default_wallpaper.jpg
verlaytests/OverlayTestOverlay/res/drawable/default_wallpaper.jpg
verlaytests/runtests.sh
18c227ba72406c0b69ce9925a80113060d870256 15-Feb-2012 Jesse Wilson <jessewilson@google.com> Implement the (hidden) ExtendedResponseCache interface.

Bug: http://code.google.com/p/android/issues/detail?id=25418
Change-Id: I4b20d576bac7036f94e57db7124de44f5b8d75be
oretests/src/android/net/http/HttpResponseCacheTest.java
b36a0ac9709e9e1c7098559c0435cfbdc09e6c46 15-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Incorrect behavior of View clear focus v2.0.

The framework tries to have a focused view all the time. For
that purpose when a view's focus is cleared the focus is given
to the first focusable found from the top. The implementation
of this behavior was causing the following issues:

1. If the fist focusable View tries to clear its focus it
was getting focus but the onFocusChange callbacks were not
properly invoked. Specifically, the onFocusChange for
gaining focus was called first and then the same
callback for clearing focus. Note that the callback
for clearing focus is called when the View is already
focused.

2. If not the first focusable View tries to clear focus,
the focus is given to another one but the callback
for getting focus was called before the one for clearing,
so client code may be mislead that there is more than
one focused view at a time.

3. (Nit) The implementaion of clearFocus and unFocus in ViewGroup
was calling the super implementaion when there is a
focused child. Since there could be only one focused View,
having a focused child means that the group is not focused
and the call to the super implementation is not needed.

4. Added unit tests that verify the correct behavior, i.e.
the focus of the first focused view cannot be cleared
which means that no focus change callbacks are invoked.
The callbacks should be called in expected order.
Now the view focus clear precedes the view focus gain
callback. However, in between is invoked the global
focus change callback with the correct values. We may
want to call that one after the View callbacks. If
needed we can revisit this.

Change-Id: I8cfb141c948141703093cf6fa2037be60861cee0
oretests/Android.mk
oretests/src/android/widget/focus/RequestFocus.java
oretests/src/android/widget/focus/RequestFocusTest.java
dd29f8c4e3db3338bc055302145c3bc51a27566f 15-Feb-2012 Amith Yamasani <yamasani@google.com> Merge "Revert "Incorrect behavior of View clear focus.""
73eb97f628b298c7bd032aa9db11dadf05f5b539 15-Feb-2012 Amith Yamasani <yamasani@google.com> Revert "Incorrect behavior of View clear focus."

This reverts commit c6fd88e213703a581fe4680259981f09ae0444f2
oretests/src/android/widget/focus/RequestFocus.java
oretests/src/android/widget/focus/RequestFocusTest.java
298b8004ad1c2cff00676473c702bb4fc98a80a7 13-Feb-2012 Tsu Chiang Chuang <tsu@google.com> am 5f5ea91f: am eb56ad18: am 08eb7dd6: Merge "extending timeout to stabilize tests" into ics-mr1

* commit '5f5ea91f60b4b7d2fcf3da3603cd745a53cba48f':
extending timeout to stabilize tests
d36ad9b1ff99675dd0eca6a3fda1f52353f451a4 07-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a method for retching the root node in UiTestAutomationBridge"
b765db590ff824fb5827fb773b14ac4286ae2774 07-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Adding a method for retching the root node in UiTestAutomationBridge

bug:5974791

Change-Id: I46a8b6a259ba31f27fcd6a71d06dc34efdb4de76
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
c761d8b0086f9e92eb1e4b3a5683ae6afb84036a 07-Feb-2012 MÃ¥rten Kongstad <marten.kongstad@sonyericsson.com> Build overlay packages just like regular packages.

Previously, building overlay packages required passing aapt its -o flag.
This commit decouples the idmap generation code from the effects of the
-o flag.

Since this commit renders the -o flag obsolete, support for the flag was
removed from aapt as well.

Change-Id: Ied2e0ab8cb800e49623f0a2044b06cd4935473d5
verlaytests/OverlayTestOverlay/Android.mk
241dde2306202e7655fdf41d5381f2874e47e108 03-Feb-2012 Jeff Sharkey <jsharkey@android.com> Unify shorthand for byte-based units.

Change-Id: If990859dee3f0973e1d4c48f05312c84071b3328
oretests/src/android/net/NetworkStatsHistoryTest.java
742a67127366c376fdf188ff99ba30b27d3bf90c 04-May-2011 Amith Yamasani <yamasani@google.com> Multi-user - 1st major checkin

Switching activity stacks
Cache ContentProvider per user
Long-press power to switch users (on phone)

Added ServiceMap for separating services by user
Launch PendingIntents on the correct user's uid
Fix task switching from Recents list
AppWidgetService is mostly working.

Commands added to pm and am to allow creating and switching profiles.

Change-Id: I15810e8cfbe50a04bd3323a7ef5a8ff4230870ed
oretests/src/android/app/activity/BroadcastTest.java
a8c57bf6adf3bdd477ce4d6ed8cca031c66830cd 02-Feb-2012 Tsu Chiang Chuang <tsu@google.com> extending timeout to stabilize tests

Change-Id: I2e0a7ae35babdda18ade4f70d61b4c83c9d2c2d9
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
2eecea3b48ece6f45b30fef9b41dc20075ccc94f 01-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Speedup the accessibility window querying APIs and clean up."
4dfa295ad8b75a8c0976e7de078ebe4f654a6a89 28-Jan-2012 Brett Chabot <brettchabot@android.com> Use PackageManager to detect wifi-only devices in ConnectivityManagerTest.

Change-Id: I9749bf9024a73af095d4a681bb902594828ad599
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/UtilHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
12df3cf156885a421beccfa6b6e20fd1a188847a 31-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Incorrect behavior of View clear focus."
5e61331da59921413a8e2a144146a8451a054020 30-Jan-2012 Jeff Sharkey <jsharkey@android.com> Move away from deprecated NetworkInfo extra.

Because the NetworkInfo included in CONNECTIVITY_ACTION broadcast
extra does not reflect the state applicable to the calling UID, and
the last sticky broadcast may have stale state, transition to calling
ConnectivityManager.getActiveNetworkInfo() directly.

Change-Id: I86b316fbedd0273585ad5f1248b091bc3a3a5520
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
c6fd88e213703a581fe4680259981f09ae0444f2 26-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> Incorrect behavior of View clear focus.

The framework tries to have a focused view all the time. For
that purpose when a view's focus is cleared the focus is given
to the first focusable found from the top. The implementation
of this behavior was causing the following issues:

1. If the fist focusable View tries to clear its focus it
was getting focus but the onFocusChange callbacks were not
properly invoked. Specifically, the onFocusChange for
gaining focus was called first and then the same
callback for clearing focus. Note that the callback
for clearing focus is called when the View is already
focused. Also note that at the end the View did not
clear its focus, hence no focus change callbacks
should be invoked.

2. If not the first focusable View tries to clear focus,
the focus is given to another one but the callback
for getting focus was called before the one for clearing,
so client code may be mislead that there is more than
one focused view at a time.

3. (Nit) The implementaion of clearFocus and unFocus in ViewGroup
was calling the super implementaion when there is a
focused child. Since there could be only one focused View,
having a focused child means that the group is not focused
and the call to the super implementation is not needed.

4. Added unit tests that verify the correct behavior, i.e.
the focus of the first focused view cannot be cleared
which means that no focus change callbacks are invoked.
The callbacks should be called in expected order.
Now the view focus clear precedes the view focus gain
callback. However, in between is invoked the global
focus change callback with the correct values. We may
want to call that one after the View callbacks. If
needed we can revisit this.

Change-Id: Iee80baf5c75c82d3cda09679e4949483cad475f1
oretests/src/android/widget/focus/RequestFocus.java
oretests/src/android/widget/focus/RequestFocusTest.java
36a561b4ee35911fd6594c1592aab134be22f0f7 26-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> Fixing failing focus tests

Change-Id: I3df6a72f6340cbf2e42ce4913e28471e9358088b
oretests/src/android/util/InternalSelectionView.java
oretests/src/android/widget/focus/ListOfInternalSelectionViews.java
oretests/src/android/widget/focus/RequestFocusTest.java
oretests/src/android/widget/focus/ScrollingThroughListOfFocusablesTest.java
79311c4af8b54d3cd47ab37a120c648bfc990511 18-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> Speedup the accessibility window querying APIs and clean up.

1. Now when an interrogating client requires an AccessibilibtyNodeInfo
we aggressively prefetch all the predecessors of that node and its
descendants. The number of fetched nodes in one call is limited to
keep the APIs responsive. The prefetched nodes infos are cached in
the client process. The node info cache is invalidated partially or
completely based on the fired accessibility events. For example,
TYPE_WINDOW_STATE_CHANGED event clears the cache while
TYPE_VIEW_FOCUSED removed the focused node from the cache, etc.
Note that the cache is only for the currently active window.
The ViewRootImple also keeps track of only the ids of the node
infos it has sent to each querying process to avoid duplicating
work. Usually only one process will query the screen content
but we support the general case. Also all the caches are
automatically invalidated so not additional bookkeeping is
required. This simple strategy leads to 10X improving the
speed of the querying APIs.

2. The Monkey and UI test automation framework were registering a
raw event listener for accessibility events and hence perform
connection and cache management in similar way to an AccessibilityService.
This is fragile and requires the implementer to know internal framework
stuff. Now the functionality required by the Monkey and the UI automation
is encapsulated in a new UiTestAutomationBridge class. To enable this
was requited some refactoring of AccessibilityService.

3. Removed the *doSomethiong*InActiveWindow methods from the
AccessibilityInteractionClient and the AccessibilityInteractionConnection.
The function of these methods is implemented by the not *InActiveWindow
version while passing appropriate constants.

4. Updated the internal window Querying tests to use the new
UiTestAutomationBridge.

5. If the ViewRootImple was not initialized the querying APIs of
the IAccessibilityInteractionConnection implementation were
returning immediately without calling the callback with null.
This was causing the client side to wait until it times out. Now
the client is notified as soon as the call fails.

6. Added a check to guarantee that Views with AccessibilityNodeProvider
do not have children.

bug:5879530

Change-Id: I3ee43718748fec6e570992c7073c8f6f1fc269b3
oretests/src/android/accessibilityservice/InterrogationActivity.java
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
a27a3e8ad7d20dea63ef2d5cb8b6ec7e56c20a89 09-Jan-2012 Jeff Sharkey <jsharkey@android.com> Introduce FileRotator.

Utility that rotates files over time, similar to logrotate. There is
a single "active" file, which is periodically rotated into historical
files, and eventually deleted entirely. Files are stored under a
specific directory with a well-known prefix.

Bug: 5386531
Change-Id: I29f821a881247e50ce0f6f73b20bbd020db39e43
oretests/src/com/android/internal/util/FileRotatorTest.java
986f00faf44b0d9ed5b1384746ca4254037fc180 13-Jan-2012 Jeff Brown <jeffbrown@google.com> Merge "Rewrite SQLite database wrappers."
156936975dec49022681f218b8221ef9e3d87011 12-Jan-2012 Jeff Brown <jeffbrown@google.com> Merge "Fix indentation and whitespace."
18c415c3c87da27ceca27ce8df6e2c816d6a2fa3 12-Jan-2012 Jeff Brown <jeffbrown@google.com> Merge "Clean up database tests a little bit."
e5360fbf3efe85427f7e7f59afe7bbeddb4949ac 01-Nov-2011 Jeff Brown <jeffbrown@google.com> Rewrite SQLite database wrappers.

The main theme of this change is encapsulation. This change
preserves all existing functionality but the implementation
is now much cleaner.

Instead of a "database lock", access to the database is treated
as a resource acquisition problem. If a thread's owns a database
connection, then it can access the database; otherwise, it must
acquire a database connection first, and potentially wait for other
threads to give up theirs. The SQLiteConnectionPool encapsulates
the details of how connections are created, configured, acquired,
released and disposed.

One new feature is that SQLiteConnectionPool can make scheduling
decisions about which thread should next acquire a database
connection when there is contention among threads. The factors
considered include wait queue ordering (fairness among peers),
whether the connection is needed for an interactive operation
(unfairness on behalf of the UI), and whether the primary connection
is needed or if any old connection will do. Thus one goal of the
new SQLiteConnectionPool is to improve the utilization of
database connections.

To emulate some quirks of the old "database lock," we introduce
the concept of the primary database connection. The primary
database connection is the one that is typically used to perform
write operations to the database. When a thread holds the primary
database connection, it effectively prevents other threads from
modifying the database (although they can still read). What's
more, those threads will block when they try to acquire the primary
connection, which provides the same kind of mutual exclusion
features that the old "database lock" had. (In truth, we
probably don't need to be requiring use of the primary database
connection in as many places as we do now, but we can seek to refine
that behavior in future patches.)

Another significant change is that native sqlite3_stmt objects
(prepared statements) are fully encapsulated by the SQLiteConnection
object that owns them. This ensures that the connection can
finalize (destroy) all extant statements that belong to a database
connection when the connection is closed. (In the original code,
this was very complicated because the sqlite3_stmt objects were
managed by SQLiteCompiledSql objects which had different lifetime
from the original SQLiteDatabase that created them. Worse, the
SQLiteCompiledSql finalizer method couldn't actually destroy the
sqlite3_stmt objects because it ran on the finalizer thread and
therefore could not guarantee that it could acquire the database
lock in order to do the work. This resulted in some rather
tortured logic involving a list of pending finalizable statements
and a high change of deadlocks or leaks.)

Because sqlite3_stmt objects never escape the confines of the
SQLiteConnection that owns them, we can also greatly simplify
the design of the SQLiteProgram, SQLiteQuery and SQLiteStatement
objects. They no longer have to wrangle a native sqlite3_stmt
object pointer and manage its lifecycle. So now all they do
is hold bind arguments and provide a fancy API.

All of the JNI glue related to managing database connections
and performing transactions is now bound to SQLiteConnection
(rather than being scattered everywhere). This makes sense because
SQLiteConnection owns the native sqlite3 object, so it is the
only class in the system that can interact with the native
SQLite database directly. Encapsulation for the win.

One particularly tricky part of this change is managing the
ownership of SQLiteConnection objects. At any given time,
a SQLiteConnection is either owned by a SQLiteConnectionPool
or by a SQLiteSession. SQLiteConnections should never be leaked,
but we handle that case too (and yell about it with CloseGuard).

A SQLiteSession object is responsible for acquiring and releasing
a SQLiteConnection object on behalf of a single thread as needed.
For example, the session acquires a connection when a transaction
begins and releases it when finished. If the session cannot
acquire a connection immediately, then the requested operation
blocks until a connection becomes available.

SQLiteSessions are thread-local. A SQLiteDatabase assigns a
distinct session to each thread that performs database operations.
This is very very important. First, it prevents two threads
from trying to use the same SQLiteConnection at the same time
(because two threads can't share the same session).
Second, it prevents a single thread from trying to acquire two
SQLiteConnections simultaneously from the same database (because
a single thread can't have two sessions for the same database which,
in addition to being greedy, could result in a deadlock).

There is strict layering between the various database objects,
objects at lower layers are not aware of objects at higher layers.
Moreover, objects at higher layers generally own objects at lower
layers and are responsible for ensuring they are properly disposed
when no longer needed (good for the environment).

API layer: SQLiteDatabase, SQLiteProgram, SQLiteQuery, SQLiteStatement.
Session layer: SQLiteSession.
Connection layer: SQLiteConnectionPool, SQLiteConnection.
Native layer: JNI glue.

By avoiding cyclic dependencies between layers, we make the
architecture much more intelligible, maintainable and robust.

Finally, this change adds a great deal of new debugging information.
It is now possible to view a list of the most recent database
operations including how long they took to run using
"adb shell dumpsys dbinfo". (Because most of the interesting
work happens in SQLiteConnection, it is easy to add debugging
instrumentation to track all database operations in one place.)

Change-Id: Iffb4ce72d8bcf20b4e087d911da6aa84d2f15297
oretests/src/android/database/sqlite/DatabaseConnectionPoolTest.java
oretests/src/android/database/sqlite/SQLiteCursorTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
oretests/src/android/database/sqlite/SQLiteStatementTest.java
oretests/src/android/database/sqlite/SQLiteUnfinalizedExceptionTest.java
3f11f302c7e8c4ba513f6c559f33db96319c3825 12-Jan-2012 Jeff Brown <jeffbrown@google.com> Fix indentation and whitespace.

Change-Id: Iccb954fb77f21b230eecb3f06328e11b14611f17
oretests/src/android/database/NewDatabasePerformanceTests.java
5a05c23f3d6a1a895bf5917aacd8bd9a5302ba00 12-Jan-2012 Jeff Brown <jeffbrown@google.com> Clean up database tests a little bit.

Change-Id: Ib05c699bf59187cb51627b5f352c2a15ad2c28bb
oretests/src/android/database/CursorWindowTest.java
oretests/src/android/database/DatabaseCursorTest.java
oretests/src/android/database/DatabaseErrorHandlerTest.java
oretests/src/android/database/DatabaseGeneralTest.java
oretests/src/android/database/DatabaseLockTest.java
oretests/src/android/database/DatabasePerformanceTests.java
oretests/src/android/database/DatabaseStatementTest.java
oretests/src/android/database/NewDatabasePerformanceTests.java
4acb784630c9ceeff1f8834751999661fdb4eab2 12-Jan-2012 Xia Wang <xiaw@google.com> am 87badc20: am 4ac4ab4e: Merge "Remove sleep from test acitivity to avoid ANR when key event is injected bug#: 5737922" into ics-mr1

* commit '87badc20c7d5462ee27f13adf50acaf6a3232884':
Remove sleep from test acitivity to avoid ANR when key event is injected bug#: 5737922
24162fc52c739b6d71adc8e0f9bc3768a24c5805 11-Jan-2012 Ying Wang <wangying@google.com> Build all test apks as raw resource in FrameworksCoreTests.

Bug: 5848975
Change-Id: I395013ded1c29e0914f72e03d0abd60bb4a7973a
oretests/Android.mk
oretests/apks/Android.mk
oretests/apks/FrameworkCoreTests_apk.mk
oretests/apks/install_decl_perm/Android.mk
oretests/apks/install_loc_auto/Android.mk
oretests/apks/install_loc_internal/Android.mk
oretests/apks/install_loc_sdcard/Android.mk
oretests/apks/install_loc_unspecified/Android.mk
oretests/apks/install_use_perm_good/Android.mk
oretests/apks/install_uses_feature/Android.mk
oretests/apks/install_verifier_bad/Android.mk
oretests/apks/install_verifier_good/Android.mk
oretests/res/raw/install_decl_perm
oretests/res/raw/install_loc_auto
oretests/res/raw/install_loc_internal
oretests/res/raw/install_loc_sdcard
oretests/res/raw/install_loc_unspecified
oretests/res/raw/install_use_perm_good
oretests/res/raw/install_uses_feature
4c1e00a8c29e532a5b0fce755bead691797eff94 06-Jan-2012 Fabrice Di Meglio <fdimeglio@google.com> Add textDirection="locale"

- also fix and update unit tests
- see bug #5242821

Change-Id: I29e029bab8ade336a430f9a2a5073caaf11b8dda
oretests/src/android/widget/TextViewTest.java
52cd299eef703030f8fcf7a92f413791301771cc 27-Dec-2011 Jesse Wilson <jessewilson@google.com> Move the frameworks/base hostname verifier into libcore. Part 2/2

Bug: http://b/5619726
Change-Id: I165eb3befcef104ff56ffb466c87c60b632f3194
oretests/res/raw/alt_ip_only.crt
oretests/res/raw/subject_alt_only.crt
oretests/res/raw/subject_only.crt
oretests/res/raw/subject_with_alt_names.crt
oretests/res/raw/subject_with_wild_alt_name.crt
oretests/res/raw/wild_alt_name_only.crt
oretests/src/com/android/internal/net/DNParserTest.java
oretests/src/com/android/internal/net/DomainNameValidatorTest.java
80177940911a143fe61b10b9244e6426f4026e01 20-Dec-2011 Xia Wang <xiaw@google.com> Remove sleep from test acitivity to avoid ANR when key event is injected
bug#: 5737922

Change-Id: I7871713c5000d122e63127b30d0151b8f5a29bcf
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
cdc077c9dd6473b5abfad4edfaf1ff41a436caaf 12-Dec-2011 Irfan Sheriff <isheriff@google.com> Fix configured network status

For a connected network, keep status as CURRENT. For a network,
that is disconnected it should be ENABLED. A disabled network
will have the status as DISABLED

Also, add a unit test to ensure there is only one CURRENT network
that is connected

Change-Id: Iaa4a7124a0c372a8f6df3d846ae8c15d9b29cf13
onnectivityManagerTest/src/com/android/connectivitymanagertest/unit/WifiClientTest.java
1fd291144cd533800630c461d4fe9119f446a726 06-Dec-2011 Xia Wang <xiaw@google.com> am 96f660f4: am e63d67ef: Merge "Add extra 2 minute for wifi to shutdown" into ics-mr1

* commit '96f660f4a8b99ff387e17474f2574e4e284ceeb8':
Add extra 2 minute for wifi to shutdown
e63d67eff794ba2e4e5d2aa9e8854b37329f4429 06-Dec-2011 Xia Wang <xiaw@google.com> Merge "Add extra 2 minute for wifi to shutdown" into ics-mr1
10a3e8fae865f17c10816d1767d2efa3d4a18935 03-Dec-2011 Xia Wang <xiaw@google.com> Add extra 2 minute for wifi to shutdown

Change-Id: I3cf2fbf5de8b96b75d5e460e4ad822a1947ff6e7
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
786e54dd13111b6a2f75f4f37dd20353cf613e97 01-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> Fixing the build

Change-Id: I125956773dd364b14f8d328e625df3c852001dbf
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
f3b4f3163b5b4c0a54a2643f07c97c47b14a1eb7 01-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> resolved conflicts for merge of 26f7a81f to master

Change-Id: I6bf5fd7c0de7945cef84602dbe3a7bbed587700f
d116d7c78a9c53f30a73bf273bd7618312cf3847 22-Nov-2011 Svetoslav Ganov <svetoslavganov@google.com> Fixing memory leaks in the accessiiblity layer.

1. AccessibilityInteractionConnections were removed from the
AccessiiblityManagerService but their DeathRecipents were
not unregistered, thus every removed interaction connection
was essentially leaking. Such connection is registered in
the system for every ViewRootImpl when accessiiblity is
enabled and inregistered when disabled.

2. Every AccessibilityEvent and AccessiilbityEventInfo obtained
from a widnow content querying accessibility service had a
handle to a binder proxy over which to make queries. Hoewever,
holding a proxy to a remote binder prevents the latter from
being garbage collected. Therefore, now the events and infos
have a connection id insteand and the hindden singleton
AccessiiblityInteaction client via which queries are made
has a registry with the connections. This class looks up
the connection given its id before making an IPC. Now the
connection is stored in one place and when an accessibility
service is disconnected the system sets the connection to
null so the binder object in the system process can be GCed.
Note that before this change a bad implemented accessibility
service could cache events or infos causing a leak in the
system process. This should never happen.

3. SparseArray was not clearing the reference to the last moved
element while garbage collecting thus causing a leak.

bug:5664337

Change-Id: Id397f614b026d43bd7b57bb7f8186bca5cdfcff9
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
462a9da4c3525ff7d9bf599ccf1b79e58a2bd4f2 29-Nov-2011 Xia Wang <xiaw@google.com> am 4f5434f3: am e5715521: am 2d9f4620: Fix build

* commit '4f5434f3a3ce51d7d6caf463e5571bb686e2bdd1':
Fix build
e5715521232443f01f8c0c0633cac364c8136bde 29-Nov-2011 Xia Wang <xiaw@google.com> am 2d9f4620: Fix build

* commit '2d9f4620625405b916aa27177a6b5f82f8e5b15d':
Fix build
2d9f4620625405b916aa27177a6b5f82f8e5b15d 29-Nov-2011 Xia Wang <xiaw@google.com> Fix build

Change-Id: I465d85e4783763f311ed6ec0a09c1edde9712405
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
748025579912f92609cadd71786805e10281858d 29-Nov-2011 Xia Wang <xiaw@google.com> am 6c509ef0: am da822367: am 25261f59: Merge "Increase time between wifi stop and wifi start: set to 2 minutes http://b/issue?id=5629901" into ics-mr0

* commit '6c509ef0bad761feecfd94b66d532ae05b450317':
Increase time between wifi stop and wifi start: set to 2 minutes http://b/issue?id=5629901
da822367886d68f997153c7edd5368f3dfb6d58d 29-Nov-2011 Xia Wang <xiaw@google.com> am 25261f59: Merge "Increase time between wifi stop and wifi start: set to 2 minutes http://b/issue?id=5629901" into ics-mr0

* commit '25261f59af0d902f239e541b735f7dc31e714b07':
Increase time between wifi stop and wifi start: set to 2 minutes http://b/issue?id=5629901
866103c00dd8028443ee8d7f9f3ca89f4acbc179 28-Nov-2011 Eric Rowe <erowe@google.com> am 70a1ee38: am 500afb87: Merge "Fix SCO start stop tests." into ics-mr1

* commit '70a1ee38b24a7c8dfc789db024bdf54f277ddba3':
Fix SCO start stop tests.
fca8e9d919443449807f87203609e53a64368f6b 23-Nov-2011 Eric Rowe <erowe@google.com> Fix SCO start stop tests.

Change-Id: Idf292bc244a494e2ffb11359e83c0d072907ea3b
Bug-id: http://b/5644683
luetoothtests/AndroidManifest.xml
luetoothtests/src/android/bluetooth/BluetoothStressTest.java
luetoothtests/src/android/bluetooth/BluetoothTestUtils.java
a4c2caac05009512213454d329579a79dde11e5f 17-Nov-2011 Xia Wang <xiaw@google.com> Increase time between wifi stop and wifi start: set to 2 minutes
http://b/issue?id=5629901

Change on state validation:
- When network state is broadcast in other network information,
the test activity will record the state change which cause false
alarm in the test.

Change-Id: I8bd1e8c04ab97116f3a02ccc5543f34a7e651cda
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/NetworkState.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
8f62946310a7f2bf251070df4e248b9058ddd5ff 15-Nov-2011 Tsu Chiang Chuang <tsu@google.com> am 06e4a400: am b3f2890a: am 047c4de2: Merge "Adding mobile microbenchmark tests." into ics-mr0

* commit '06e4a40017f1af75ec58d9d942ef0c4ddad20fd2':
Adding mobile microbenchmark tests.
5898991075ad5aa941c7c3c92467c03d28902ecf 15-Nov-2011 Jeff Sharkey <jsharkey@android.com> am bc03c74c: am d968670d: Merge "Conservatively trim data usage stats." into ics-mr1

* commit 'bc03c74c485669695805944a655795a6f9890956':
Conservatively trim data usage stats.
b3f2890a8af3a99be1b0d5fd5a40df656cb60598 15-Nov-2011 Tsu Chiang Chuang <tsu@google.com> am 047c4de2: Merge "Adding mobile microbenchmark tests." into ics-mr0

* commit '047c4de2c548960fff428a92099003593cede5f8':
Adding mobile microbenchmark tests.
d968670d8369e5d92ba9b7a45b3804d692a05a4e 15-Nov-2011 Jeff Sharkey <jsharkey@android.com> Merge "Conservatively trim data usage stats." into ics-mr1
7ee8658453fe4efe04781bea9a14368e1d5ff41f 15-Nov-2011 Jeff Sharkey <jsharkey@android.com> Conservatively trim data usage stats.

Instead of trusting NTP time alone, use the most-conservative of
system clock and NTP.

Bug: 5584564
Change-Id: I5dd87fc009959b1cf0a7d660e385a0b1a8be238b
oretests/src/android/net/NetworkStatsHistoryTest.java
d5897dc7985e511c194f839d4b340fed2d63b41c 15-Nov-2011 Tsu Chiang Chuang <tsu@google.com> fix for build breakage.

Change-Id: Ie324e46a79923813edd2e5e0c34ede79e6ee3eea
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
212efacb848f13b1565ef434e331a69e930d8935 07-Nov-2011 Tsu Chiang Chuang <tsu@google.com> Adding mobile microbenchmark tests.

Change-Id: Ifcd67b0265045778965aeff8e213c3929da02c3d
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
287353a78eb7b3a9b092efa7cbc77f7cb350d0f1 10-Nov-2011 Tsu Chiang Chuang <tsu@google.com> Adding mobile microbenchmark tests.

Change-Id: Ifcd67b0265045778965aeff8e213c3929da02c3d
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
7746a8ff3668800c2ce53e5e1eeeb1a786651e39 10-Nov-2011 Tsu Chiang Chuang <tsu@google.com> Merge "Adding mobile microbenchmark tests."
c592a57f3ff4f4e051eef57c7fb50b8643a653e5 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 489b4312: am 4c48d2ff: Merge "Make operation counts monotonically increase." into ics-mr1

* commit '489b431273500db81d35ed43440915187c238f92':
Make operation counts monotonically increase.
4abb1b8ef64dc4cd71966b59dc5d72a15055bf13 09-Nov-2011 Jeff Sharkey <jsharkey@android.com> Make operation counts monotonically increase.

Bug: 5585704
Change-Id: I5247a68acdb209a4ef0f5aac18944595c295e6ca
oretests/src/android/net/NetworkStatsTest.java
70c78ee30efee8037a09c7d75487f5175b07cb6e 07-Nov-2011 Tsu Chiang Chuang <tsu@google.com> Adding mobile microbenchmark tests.

Change-Id: Ifcd67b0265045778965aeff8e213c3929da02c3d
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
4d81191dd377d30570d6c3294b0fb1f0ea681f46 03-Nov-2011 Jeff Sharkey <jsharkey@android.com> am 808ee95d: Merge "Correct proc file reader, optimizations." into ics-mr1

* commit '808ee95dd4244da6ae767d3ddd003ed7b48937d0':
Correct proc file reader, optimizations.
163e6443f27884a9bfcb9a48ef606dc635852c23 01-Nov-2011 Jeff Sharkey <jsharkey@android.com> Correct proc file reader, optimizations.

Moved away from BufferedReader, which only reads the first 8KB of
some proc files because it aggresively fills its buffer. Optimized
proc parsing, now double the speed. Tests to cover.

Log when NetworkStats counters roll backwards when subtracting, and
optimizations around findIndex(). When system removes UID, also
remove from last stats snapshot to avoid xt counters from rolling
backwards.

Bug: 5472949, 5458380
Change-Id: I07c08fe5233156fac2b84450f6291868bf9bfaf2
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
oretests/res/raw/xt_qtaguid_extended
oretests/res/raw/xt_qtaguid_typical
oretests/res/raw/xt_qtaguid_typical_with_set
oretests/src/android/net/NetworkStatsTest.java
oretests/src/com/android/internal/net/NetworkStatsFactoryTest.java
oretests/src/com/android/internal/util/ProcFileReaderTest.java
0f28af209ac877091f4a096f7553f02a0b401596 29-Oct-2011 Jesse Wilson <jessewilson@google.com> Interpret '+' as a space char in the URL query params.

This changes Uri.decode() to use libcore's implementation
of the same behavior.

Bug: http://code.google.com/p/android/issues/detail?id=21064
Change-Id: If81005492b12d3aaecc745471e0a28679544a391
oretests/src/android/net/UriTest.java
021078554b902179442a345a9d080a165c3b5139 04-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding APIs to enable reporting virtual view hierarchies to accessibility serivces.

Added an interface that is the contract for a client to expose a virtual
view hierarchy to accessibility services. Clients impement this interface
and set it in the View that is the root of the virtual sub-tree. Adding
this finctionality via compostion as opposed to inheritance enables apps
to maintain backwards compatibility by setting the accessibility virtual
hierarchy provider on the View only if the API version is high enough.

bug:5382859

Change-Id: I7e3927b71a5517943c6cb071be2e87fba23132bf
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
136b1637f89e493b29cc130d1fff066f981ce3e9 14-Jun-2011 Steve Block <steveblock@google.com> Fix use of WebView.loadData() to avoid passing invalid encoding

No change in behavior, as invalid encodings have always been ignored.

Bug: 5125738
Change-Id: I23f21ca65a6b14501c74dc2189a55643f1e33c33
oretests/src/android/webkit/AccessibilityInjectorTest.java
oretests/src/android/widget/focus/ListWithMailMessages.java
c755ae3b58096334aa25522b5212b1bb19dac1cf 13-Oct-2011 Jeff Brown <jeffbrown@google.com> Use MatrixCursor instead of ArrayListCursor.

ArrayListCursor is deprecated, and a duplicate private copy of it
is doubly so.

Delete some tests that are duplicated in the CTS package.

Change-Id: Ib5837b12e39dadba57595906ad621b1feb0d2c0d
oretests/src/android/database/CursorWindowTest.java
oretests/src/android/widget/SimpleCursorAdapterTest.java
1059c3c30ad96a15695c1a92ae8896e078a6309f 05-Oct-2011 Jeff Sharkey <jsharkey@android.com> Move battery stats to xt_qtaguid for data stats.

Replace TrafficStats calls by reading values from xt_qtaguid kernel
module. To keep BatteryStatsImpl changes lightweight, cache recently
parsed stats. Tracks mobile ifaces from ConnectivityService.

Refactor xt_qtaguid parsing into factory outside of NMS. Add stats
grouping based on UID, and total based on limiting filters like iface
prefix and UID.

Bug: 4902271
Change-Id: I533f116c434b77f93355bf95b839e7478528505b
oretests/res/raw/net_dev_typical
oretests/res/raw/xt_qtaguid_extended
oretests/res/raw/xt_qtaguid_iface_typical
oretests/res/raw/xt_qtaguid_typical
oretests/res/raw/xt_qtaguid_typical_with_set
oretests/src/android/net/NetworkStatsTest.java
oretests/src/com/android/internal/net/NetworkStatsFactoryTest.java
270928bd4a1db1dc0d989f4e9897a81ab865e30e 08-Oct-2011 Jeff Brown <jeffbrown@google.com> Merge changes Idbfeb3cc,I03e8e2e7,Iff9eed78

* changes:
Fix regression in CursorWindow.getString() Bug: 5332296
Clean up CursorWindow lifetime. Bug: 5332296
Fix regression in CursorWindow.copyStingToBuffer. Bug: 5332296
7ce745248d4de0e6543a559c93423df899832100 07-Oct-2011 Jeff Brown <jeffbrown@google.com> Clean up CursorWindow lifetime.
Bug: 5332296

Removed dead code in SQLiteCursor related to the use of a background
query thread. This code could result in CursorWindows being modified
concurrently or used after free. This code is broken, unused and
is just in the way.

Added comments to explain how CursorWindow ownership is
supposed to work for AbstractWindowedCursors. (There are still cases
where cursor windows get dropped on the floor without being closed.
Those will be taken care of in a subsequent patch.)

Cleaned up SQLiteQuery.fillWindow to eliminate duplicate code and
remove bits that were only needed for background loading, like
returning -1.

Change-Id: I03e8e2e73ff0c11df76d63f57df4c5ada06ae1cb
oretests/src/android/database/DatabaseCursorTest.java
b6eca6e6691d4563d8395b3c3843d9932a2a6560 27-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Accessibility test automation API not working.

1. Due to a previous change that disabled accessibility if not enabled
and installed serivces are present the automation APIs stopped working
since they use fake automation service that is not installed.

2. Added clean up of death recipients when binders die.

bug:5374662
bug:5239044

Change-Id: I1f3c8cd1d1c79753a4a64e2b8b2963025abb2939
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
905b5891d2aa802f447ac2ce5d77b6c5ba06277a 01-Oct-2011 Jeff Sharkey <jsharkey@android.com> Track xtables summary, move tether stats, time.

Begin tracking xtables summary of data usage to compare with values
reported from /proc/net/dev. Roll tethering directly into UID stats
to trigger UID stats persisting when crossing threshold.

Include xtables summary and authoritative time in samples.

Bug: 5373561, 5397882, 5381980
Change-Id: Ib7945522caadfbe0864fdf391582dc820f4f371e
oretests/src/android/net/NetworkStatsTest.java
de5d7d250848b0db4119f362e2e700cb19e02293 28-Sep-2011 Jesse Wilson <jessewilson@google.com> Test to demonstrate NPE in DefaultRequestDirector

When the HTTP client encountered a server failure while
talking through a proxy, it fails with an NullPointerException
and not an IOException.

Change-Id: I4b287105bf78b832d034557e37e74ce576c7894d
Bug: http://b/5372438
oretests/src/android/net/http/AbstractProxyTest.java
05ca4c90644921df9193d92b2abdc81ef77e4a62 15-Sep-2011 Kenny Root <kroot@google.com> Allow non-required package verifiers

* Verifiers can be specified in the AndroidManifest.xml

* Those verifiers can respond to the new Intent action

* PackageManager API for those verifiers: verifyPendingInstall

Change-Id: I4892bce2e6984871e6e93c60a1ca0dae145f5df5
oretests/apks/install_verifier_bad/Android.mk
oretests/apks/install_verifier_bad/AndroidManifest.xml
oretests/apks/install_verifier_bad/res/values/strings.xml
oretests/apks/install_verifier_good/Android.mk
oretests/apks/install_verifier_good/AndroidManifest.xml
oretests/apks/install_verifier_good/res/values/strings.xml
5c488ef99726f3e09167f06fa466cf7836f87e18 19-Sep-2011 Tsu Chiang Chuang <tsu@google.com> point upload to the correct url.

Change-Id: Ie60c3fb781b1d8cd01b6f09d1666f788e7db6b3a
andwidthtests/src/com/android/bandwidthtest/util/BandwidthTestUtil.java
e4bbb6ac3128021e865d6e31b4e7ada468886681 17-Sep-2011 Tsu Chiang Chuang <tsu@google.com> Merge "add upload capabilities to data test."
e888685bf6f443b7d69601796a7896240a7fc4ee 15-Sep-2011 Tsu Chiang Chuang <tsu@google.com> add upload capabilities to data test.

Change-Id: I8465e4b97ff7f48de1150193bcd2b520da1adf00
andwidthtests/Android.mk
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
andwidthtests/src/com/android/bandwidthtest/util/BandwidthTestUtil.java
04b08bdf19497c31abdef49100bfe471f8d104d6 15-Sep-2011 Kenny Root <kroot@google.com> Merge "Be more forgiving in parsing verifier IDs"
ea515aeafa01de6f50c854ee381b972ef2478284 15-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Update the public APIs for finding views by text to optionally use content description.

1. Added flags to the search method to specify whether to match text or
content description or both.

2. Added test case for the seach by content description.

3. Updated the code in AccessibilityManager service to reflect the latest
changes there so test automation service works - this is the fake
service used for UI automation.

Change-Id: I14a6779a920ff0430e78947ea5aaf876c2e66076
oretests/res/layout/interrogation_activity.xml
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
a0f264e1afa3c0a00a5af0db362f884b122d978d 14-Sep-2011 Kenny Root <kroot@google.com> Be more forgiving in parsing verifier IDs

RFC 4648's Base32 is made to be forgiving for users doing manual entry
of the digits. For this reason we want to be able to parse lowercase
letters as uppercase and number 0 (zero) as letter O along with number
1 (one) as letter I.

Change-Id: Ide760aff84f97c3e06af8bf8d006f36c74033a41
oretests/src/android/content/pm/VerifierDeviceIdentityTest.java
c924fbd6933f6a96588b6e78d385082155cfd236 14-Sep-2011 Kenny Root <kroot@google.com> Merge "Add verifier device identity"
0aaa0d931716e9f57a1d84d795fab2df75092756 13-Sep-2011 Kenny Root <kroot@google.com> Add verifier device identity

This adds a special device identifier that is usable only for device
validation. The user will be presented with this number encoded in
easily-transcribable Base32 in the Developer options of Settings.

Change-Id: I4843f55ee90d689a51d0269b22454ca04c1be7ec
oretests/AndroidManifest.xml
oretests/src/android/content/pm/ManifestDigestTest.java
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/content/pm/VerifierDeviceIdentityTest.java
e44365b539056b84a3ab57f5a9338d182eb10033 13-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Data usage structure optimizations."
69b0f63af2e3babc2e9f048c4682032a0c17d9d0 12-Sep-2011 Jeff Sharkey <jsharkey@android.com> Data usage structure optimizations.

Driven by traceview hotspots found in Settings UI.

Change-Id: I614a049523c526b7fcd12fffdf53a3e4723623e4
oretests/src/android/net/NetworkStatsHistoryTest.java
6c048260f30d9bba1a83c4f79388cd6b3109be7d 12-Sep-2011 Ben Komalo <benkomalo@google.com> Merge "Revert encryption mapping for device wipes."
13c7197da8a16f77f6398708a6314c80cb01e0d1 08-Sep-2011 Ben Komalo <benkomalo@google.com> Revert encryption mapping for device wipes.

External storage volumes that were emulated+encrypted needed to have
their encryption mapping removed so that it doesn't try to encrypt the
volume after formatting them.

This just wires through an argument through vold, and assumes that vold
will do the right thing even if there is no encryption mapping set.

Bug: 5017638
Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/os/storage/AsecTests.java
fbfe6d971d63860c02a71d69c3c7c29a2e958734 31-Aug-2011 Neal Nguyen <tommyn@google.com> Fixing DownloadManager Test app.

The skip notification version of waitForDownloadOrTimeout wasn't actually
skipping the DownloadManager notification check.

Change-Id: Iee42d9c67e63c9dc45ef5aad8ada7d34c31eeb60
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerBaseTest.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
e3bf88da23bfadd89a35b6dec769ea825e5ecd6e 06-Sep-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #5262565 Need to remove CharCount TextDirectionHeuristics

- update unit tests too

Change-Id: I7c518f58a9f17cb679bc3913bdd38243f7ad2195
oretests/src/android/widget/TextViewTest.java
d32f27aec04dd91edf488f280ca609e0b55aec9e 26-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #5199577 TextView with android:password="true" is showing the "dots" on the left even if the password chars are RTL"
7810b5f8cffb3c2c98fd0df579f4da5a9ac6cc73 25-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #5199577 TextView with android:password="true" is showing the "dots" on the left even if the password chars are RTL

- force TextView to LOCALE text heuristic when in "password" mode
- remove TEXT_LAYOUT_DIRECTION_UNKNOWN_DO_NOT_USE
- LocaleUtils.getLayoutDirectionFromLocale() returns "LTR" is locale is NULL or ROOT

Change-Id: I182c46aaf2d73c8b18967fffa230bfabec91ed06
oretests/src/android/util/LocaleUtilTest.java
ed191e1fae0f860323f6ed76ea982287c42ec83e 25-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Data usage buckets active time, parsing ISE."
235c47ff3edc9228609e82d2201275e70889921f 25-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Register for kernel global data usage alerts."
12bde60b39affbfdcb7ef6317e0a5f99c3f41b10 25-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Intra-process view hierarchy interrogation does not work."
8bd69610aafc6995126965d1d23b771fe02a9084 23-Aug-2011 Svetoslav Ganov <svetoslavganov@google.com> Intra-process view hierarchy interrogation does not work.

The content retrieval APIs are synchronous from a client's
perspective but internally they are asynchronous. The client thread
calls into the system requesting an action and providing a callback
to receive the result after which it waits up to a timeout for that
result. The system enforces security and then delegates the request
to a given view hierarchy where a message is posted (from a binder
thread) describing what to be performed by the main UI thread the
result of which it delivered via the mentioned callback. However,
the blocked client thread and the main UI thread of the target view
hierarchy can be the same one, for example an accessibility service
and an activity run in the same process, thus they are executed on the
same main thread. In such a case the retrieval will fail since the UI
thread that has to process the message describing the work to be done
is blocked waiting for a result is has to compute! To avoid this scenario
when making a call the client also passes its process and thread ids so
the accessed view hierarchy can detect if the client making the request
is running in its main UI thread. In such a case the view hierarchy,
specifically the binder thread performing the IPC to it, does not post a
message to be run on the UI thread but passes it to the singleton
interaction client through which all interactions occur and the latter is
responsible to execute the message before starting to wait for the
asynchronous result delivered via the callback. In this case the expected
result is already received so no waiting is performed.

bug:5138933

Change-Id: I382e2d8689f5189110226613c2387f553df98bd3
oretests/res/layout/interrogation_activity.xml
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
558a23200697d306b75750cf4612cf0717e73537 25-Aug-2011 Jeff Sharkey <jsharkey@android.com> Data usage buckets active time, parsing ISE.

When recording data usage, measure the actual active time, since
buckets can be quite long. Offer incrementOperationCount() version
that reads thread stats tag for caller. Rethrow any NPE as ISE
during stats parsing, which callers already handle.

Bug: 5171812, 5184508, 5180659
Change-Id: I6da80ccc0162be68bee279529e3a23b6f98ebd87
oretests/src/android/net/NetworkStatsHistoryTest.java
8e9992ae5053a3ac52d28a5a892aed0a0798c7ab 24-Aug-2011 Jeff Sharkey <jsharkey@android.com> Register for kernel global data usage alerts.

Instead of polling every 15 minutes, register for alerts that trigger
when system-wide traffic passes a threshold. Still mixed with polling
to persist UID stats, but relaxed to 30 minutes. Currently watches
for every 512kB.

Make persistence decision separately for network versus UID, and use
total delta bytes when making decision. Use light bootstrap during
systemReady() instead of heavy poll, which had been force-loading all
UID data unnecessarily.

Bug: 5023631
Change-Id: I04b723d6c4bf872fb1028071122dba66a8e1b576
oretests/src/android/net/NetworkStatsTest.java
7a12d6ba14a35276fd3afb314d6c95055da4c6f0 22-Aug-2011 Tsu Chiang Chuang <tsu@google.com> Merge "fix bandwidth microbenchmark tests."
6951b1b421fc39b85b0d7010f9b0da291228ef8f 18-Aug-2011 Tsu Chiang Chuang <tsu@google.com> fix bandwidth microbenchmark tests.

Change-Id: I8e8fbfdaca629503061c3199b0a969137fa60e68
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
fe62e31914bef645851e11418ddaee279c845e99 18-Aug-2011 Brian Muramatsu <btmura@google.com> Test for Settings Intent

Bug 4983978

Change-Id: I4d366bbcacdc12e5d86d22f5fab0e934e4ef66db
oretests/src/android/provider/SettingsProviderTest.java
b5d55e302d2253e4bfb233ea705caf258cdc4cb9 11-Aug-2011 Jeff Sharkey <jsharkey@android.com> Foreground/background network stats using sets.

Teach NetworkStats about "counter sets" coming from kernel, and use
them to track usage in foreground/background. Add AID_NET_BW_ACCT to
system_server so it can control counter sets.

Move to composite key of NetworkIdentitySet, UID, set, and tag when
recording historical usage. Persisting still clusters by identity,
since that is heaviest object.

Request async stats poll during systemReady() to bootstrap later
delta calculations. Reset kernel counters when UID removed. Update
various tests.

Bug: 5105592, 5146067
Change-Id: Idabec9e3ffcaf212879821515602ecde0a03de8c
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
oretests/src/android/net/NetworkStatsTest.java
bcc954d772e8cd5ef640060cbc0be50e7e4778f2 09-Aug-2011 Kenny Root <kroot@google.com> Manifest digest stored during package scanning

This allows things that scanned an APK to pass a hash of the manifest to
others that would then be able to compare it.

Change-Id: I465f5edf3acab2a952c3d321c8df2247ffe012ea
oretests/src/android/content/pm/ManifestDigestTest.java
cbbd93ae701b9af2e5054d59286bdbf6275c2838 09-Aug-2011 Chet Haase <chet@google.com> Fix ViewPropertyAnimator duration and startDelay issues

getDuration() wasn't returning the correct thing in some cases, and
setStartDelay() had no effect whatsoever. Fixed those.

Change-Id: I89f930535ec1acddf57227937a9ad64986548998
oretests/src/android/animation/ViewPropertyAnimatorTest.java
8b699792b677bd4dd8442b32641ac09d48fdd79c 06-Aug-2011 Chet Haase <chet@google.com> Fix cancellation of AnimatorSet when child animation has delay

Previously, AnimatorSet incorrectly checked whether child animations were
'running' to figure out what to cancel. If a child animation was started, but
sitting in a startDelay phase, it was not 'running', so the right cancel/end
events would not propagate.

The fix is to add a new isStarted() API to Animator, which returns true when
the animator has started (but not yet ended), regardless of whether the animator
has a startDelay or not. It's basically a superset of the existing isRunning()
method, which only returns true when an animator has actually started setting values.

Change-Id: I126814cb6637b58295b6d18d9b155235671f99be
oretests/src/android/animation/AnimatorSetEventsTest.java
oretests/src/android/animation/EventsTest.java
4adcfb3b01c1d2b6cafeffb5613896ab9308fcfd 05-Aug-2011 Tsu Chiang Chuang <tsu@google.com> Merge "Bandwidth microbenchmark test app for ICS."
163efc028544db685c8b6244deffcca28a91e3ba 05-Aug-2011 Chet Haase <chet@google.com> Merge "Fix AnimatorSet cancellation issues"
b8f574a165bf6ec5b316734b367ac274ded4809b 03-Aug-2011 Chet Haase <chet@google.com> Fix AnimatorSet cancellation issues

AnimatorSet was incorrectly ignoring cancel() when it was in the
initial startDelay phase. Fix is to change isRunning() to be true if the
animator is also in its delay phase.

Change-Id: I1a8c877de24fa294beea0ba30d495658255b13b3
oretests/src/android/animation/EventsTest.java
63d27a9233fed934340231f438493746084a681d 04-Aug-2011 Jeff Sharkey <jsharkey@android.com> Network stats with varint, omit parcel fields.

Persist NetworkStatsHistory using variable-length encoding; since
most buckets have small numbers, we can encode them tighter. Initial
test showed 44% space savings. Also persist packet and operation
counters.

Let NetworkStatsHistory consumers request which fields they actually
need to reduce parcel overhead.

Tests for verify varint and history field requests, also verify end-
to-end by persisting history into byte[] and restoring. Expose
bandwidth control enabled state. Extend random generation to create
packet and operation counts. Moved operation counts to long.

Fix bug that miscalculated bytes since last persist, which would
cause partial stats loss when battery pulled.

Bug: 4581977, 5023706, 5023635, 5096903
Change-Id: If61e89f681ffa11fe5711471fd9f7c238d3d37b0
oretests/src/android/net/NetworkStatsHistoryTest.java
1ebd74acf9977daa42133507e970dab88e08f0ef 04-Aug-2011 Kenny Root <kroot@google.com> Better error codes for missing files

Make sure that files that don't exist aren't returning bogus 'out of
space' error codes.

Add some Javadoc so I can remember what each thing does in an IDE.

Add copyright header to NativeLibraryHelper

Bug: 3375299
Change-Id: Iac46019160921daca65b21d38897e5165063316e
oretests/src/android/content/pm/PackageManagerTests.java
33f869951fde247927e66c3aa4ab86fc61f783ad 28-Jul-2011 Tsu Chiang Chuang <tsu@google.com> Bandwidth microbenchmark test app for ICS.

Change-Id: I6fed5c47818f0fe08b9f2c18f1070d3238a469b6
andwidthtests/Android.mk
andwidthtests/AndroidManifest.xml
andwidthtests/src/com/android/bandwidthtest/BandwidthTest.java
andwidthtests/src/com/android/bandwidthtest/BandwidthTestRunner.java
andwidthtests/src/com/android/bandwidthtest/NetworkState.java
andwidthtests/src/com/android/bandwidthtest/util/BandwidthTestUtil.java
andwidthtests/src/com/android/bandwidthtest/util/ConnectionUtil.java
a63ba59260cd1bb3f5c16e395ace45a61f1d4461 20-Jul-2011 Jeff Sharkey <jsharkey@android.com> Add operation counts to network statistics.

Provide API to increment "operation counts" for a UID and tag, used
to eventually derive bytes/operation stats. Internally is stored at
network layer, but should belong at data layer. Switch profiling
to use data layer stats, which are emulated by summarizing network
layer details.

Read packet counts from new /proc/ columns and collect them into
NetworkStatsHistory. Prevent double-counting by ignoring values from
first snapshot. Watch for duplicate /proc/ entries. Update tests
to verify packet and operation counters.

Bug: 5052136, 5097392
Change-Id: I1832f65a2b8a9188f8088f253474a667c21a2f09
oretests/res/raw/history_v1
oretests/src/android/net/NetworkStatsHistoryTest.java
oretests/src/android/net/NetworkStatsTest.java
00aabf7d187bc05408199bd687a538b2e68bdc17 21-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration state set to clients asynchronously and depended on talking service being enabled.

1. Upon registration of an accessibility client the latter received only
the accessiiblity state and waiting for the touch exploration state
to be sent by the system in async manner. This led the very first
check of touch exploration state is checked a wrong value to be reported.
Now a state of the accessibility layer is returned to the client
upon registration.

2. Removing the dependency on talking accessibility service to be enabled
for getting into touch exploration mode. What if the user wants to use
an accessibility service that shows a dialog with the text of the touched
view?

bug:5051546

Change-Id: Ib377babb3f560929ee73bd3d8b0d277341ba23f7
oretests/src/android/view/accessibility/RecycleAccessibilityEventTest.java
7a2c813d304b910b00046115efb0f462e6431a64 20-Jul-2011 Jesse Wilson <jessewilson@google.com> Skip byte order mark (BOM) in JsonReader

Bug: http://code.google.com/p/android/issues/detail?id=18508
Change-Id: I7652080d9ab475c75d0a811a6e2ede4975ebe063
oretests/src/android/util/JsonReaderTest.java
378c368f20d9746f07c8047172f5931abf69af8e 19-Jul-2011 Jesse Wilson <jessewilson@google.com> Remove accidental spaces from expected failure message.

Change-Id: I6c004ff09ba12851f57716801d72e9027db00944
oretests/src/android/util/JsonReaderTest.java
783123f79de3210d27ef2aab103bac7737b64caf 01-Jul-2011 Todd Kennedy <toddke@google.com> Add getBlob() to MatrixCursor

Change-Id: I1abfd2fd117a2a31f99e77bd0b395c4ad0cfc6d2
oretests/src/android/database/MatrixCursorTest.java
ba6e855453f055d358beead9cb50f3232a9e34e3 19-Jul-2011 Shimeng (Simon) Wang <swang@google.com> Merge "Add in i18n TLDs and new TLDs to the URL RegEx matcher."
52fc810f73e0d8e005281e80a981e1ceed855850 19-Jul-2011 Shimeng (Simon) Wang <swang@google.com> Add in i18n TLDs and new TLDs to the URL RegEx matcher.

also update APIs.

issue: 4384739
Change-Id: I946323d80f85fe43338fdc19c5858356faefa6cc
oretests/src/android/util/PatternsTest.java
07229314aff0056dab21dc211468b7f6154f1350 19-Jul-2011 Bart Sears <bsears@google.com> Merge "Revert "Add in i18n TLDs and new TLDs to the URL RegEx matcher.""
89006fa55ccfd7d5eea6d490436575b6b7503580 19-Jul-2011 Bart Sears <bsears@google.com> Revert "Add in i18n TLDs and new TLDs to the URL RegEx matcher."

This reverts commit 6050cf65dbdf52f52325dc4513156f9404ffe9d8
oretests/src/android/util/PatternsTest.java
35ca86d8a48e2c2edc12e21e087b76a2304c4cfe 19-Jul-2011 Shimeng (Simon) Wang <swang@google.com> Merge "Add in i18n TLDs and new TLDs to the URL RegEx matcher."
6050cf65dbdf52f52325dc4513156f9404ffe9d8 19-Jul-2011 Shimeng (Simon) Wang <swang@google.com> Add in i18n TLDs and new TLDs to the URL RegEx matcher.

issue: 4384739
Change-Id: I96f2263d9a14fc2560583e2719cf7c5ac5c46d9e
oretests/src/android/util/PatternsTest.java
a11c2f8674ab5b8834fb5cccce1060aa829a7f0a 18-Jul-2011 Jesse Wilson <jessewilson@google.com> Merge "Track line and column when parsing JSON."
febae4ed18953098fec2126c7f883213e14469c9 18-Jul-2011 Jesse Wilson <jessewilson@google.com> Track line and column when parsing JSON.

This is a prerequisite to skipping the BOM if it exists.
Bug: http://code.google.com/p/android/issues/detail?id=18508

Change-Id: I38b1c46f246d8526fa20859b50ca3e25c9f9b9d1
oretests/src/android/util/JsonReaderTest.java
1a1d731c9cc0209570472a9c8b6e59da0b545968 18-Jul-2011 Jesse Wilson <jessewilson@google.com> Merge "Always escape chars that JavaScript treats as newlines."
0fc0edfd273f9d92b9f9fe4f49382b11104f55f0 18-Jul-2011 Jesse Wilson <jessewilson@google.com> Always escape chars that JavaScript treats as newlines.

Related GSON Bug: http://code.google.com/p/google-gson/issues/detail?id=341
Change-Id: I41b1615c4b3b4526f2223a75191f9b0699cdda12
oretests/src/android/util/JsonWriterTest.java
1b64e0d8657463c0f7ce9b068a16a522cdfe7d28 18-Jul-2011 Dianne Hackborn <hackbod@google.com> Work on death recipient leaks in Activity Manager and Content Service.

This should fix a leak of process death recipients in the activity manager.

Also add debugging of content observers to try to track down what looks
like a leak of them in the content service.

Change-Id: Id6823679493ef0cde5307bb66490ebe31b878556
oretests/src/android/content/ObserverNodeTest.java
50e95eba5c7cf70a0ecbc50c0cf5b700201aa67f 15-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Implement textDirection heuristic selection."
cb379120456d8065d742021fc5c66748fc8a11a8 07-Jul-2011 Doug Felt <dougfelt@google.com> Implement textDirection heuristic selection.

Change-Id: I2fcf18de573f2d66494fa5ed61e4273c3c6078c7
oretests/src/android/widget/TextViewTest.java
434962e44ea93b1c4d216c55f636a435bf54aa54 13-Jul-2011 Jeff Sharkey <jsharkey@android.com> Include full network history around current time.

When requesting historical values with time ranges, always include
full values for buckets that span current time. (It doesn't make
sense to interpolate partial data.) Move getTotalData() to return
full Entry objects to prepare for packet counts.

Bug: 4691901
Change-Id: I717bd721be9f1d4a47c4121e46e07a56cb15bbf1
oretests/src/android/net/NetworkStatsHistoryTest.java
f0c3b1b6b7fd2b851851c96d98d2f9a77415bf43 13-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Hide NetworkStatsHistory internals."
d37948f6ed1667d077e0e3a38808f42f981ddcc2 12-Jul-2011 Jeff Sharkey <jsharkey@android.com> Hide NetworkStatsHistory internals.

Instead of exposing internal storage details, offer getValues()
accessor which populates values into a recycled structure.

Change-Id: I5228d7099a8f61b2018a435a813435a67dae49b4
oretests/src/android/net/NetworkStatsHistoryTest.java
oretests/src/android/net/NetworkStatsTest.java
9893fd977182a00a0783b9b6374ff193195210c2 12-Jul-2011 Chet Haase <chet@google.com> Merge "Fix Animator cancel() behavior"
7dfacdb1c820f955cb3cd6032ff5fbc2dd7d9df5 12-Jul-2011 Chet Haase <chet@google.com> Fix Animator cancel() behavior

Previously, calling cancel() on an Animator would cause onAnimationCancel
events to be sent to all listeners. This was confusing for listeners
that were keying off this event for performing other actions, when the original
animator wasn't truly canceled (because it wasn't even running, or had already
been canceled earlier). This change hinges listener notification on
the animator actually running; no events are sent otherwise.

Also added the first set of Animator tests to verify that this behavior
is correct.

Change-Id: I81ab56559b5c0343c8dc7880e1c8235f3020975b
oretests/Android.mk
oretests/AndroidManifest.xml
oretests/res/layout/animator_basic.xml
oretests/src/android/animation/AnimatorSetEventsTest.java
oretests/src/android/animation/BasicAnimatorActivity.java
oretests/src/android/animation/EventsTest.java
oretests/src/android/animation/FutureWaiter.java
oretests/src/android/animation/ObjectAnimatorEventsTest.java
oretests/src/android/animation/ValueAnimatorEventsTest.java
1ea4cc64643afb987ad42630eb146b4585647d0a 12-Jul-2011 Jeff Sharkey <jsharkey@android.com> Merge "Return stats from inactive ifaces, packet counts."
fd8be3e5e7420f3cca591daeec8a44487f5f65aa 11-Jul-2011 Jeff Sharkey <jsharkey@android.com> Return stats from inactive ifaces, packet counts.

When an iface goes inactive, xt_qtaguid maintains historical counters
instead of discarding. Now reading and returning those values in
NetworkManagementService summary calls. Tests to verify stats are
returned.

Modify NetworkStats to include rxPackets and txPackets values, and
move to Entry to eventually hide internal storage details.

Bug: 4984539
Change-Id: I1ba0bb5580c62e946d9dff2cc2a6f64aff403efc
oretests/src/android/net/NetworkStatsTest.java
503f5301cd46018ac8c9bc1d8ba32f2aa992f49b 11-Jul-2011 Andy McFadden <fadden@android.com> Merge "Relocate common Calendar classes"
7f86c806ada21fc7a3feefd89d6fcb4282b0af40 02-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix View reset of layoutDirection and textDirection

- do it in onDetachedFromWindow()
- make naming consistent too
- update unit tests

Change-Id: I320fcdbf75166bae793c4409e7344608b696667f
oretests/AndroidManifest.xml
oretests/res/layout/textview_test.xml
oretests/res/values/strings.xml
oretests/src/android/widget/TextViewTest.java
oretests/src/android/widget/TextViewTestActivity.java
64a3b34afaf1df7bd4792d0a5f7dd0686cbc56ec 07-Jul-2011 Andy McFadden <fadden@android.com> Relocate common Calendar classes

Move some classes from android.pim to com.android.calendarcommon.

Bug 4575374

Change-Id: Iab09cb331a0a74f6b951ab5e5b7c207e8f1b939c
oretests/src/android/pim/EventRecurrenceTest.java
oretests/src/android/pim/RecurrenceSetTest.java
8f5026562f26dcde43ee9d9182b309c3204dc1ad 30-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add charCount heuristic to TextView textDirection

- threshold set to 60% (using a constant)
- fix also one issue during layout direction resolution (parent could be null so delay resolution
up to when parent is no more null)

Change-Id: I65f24a297aac6bc0d5d482ee31b55db0b201e5bf
oretests/src/android/widget/TextViewTest.java
222688682e6e072076489d8203d01bdf2366101a 28-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add textDirection support for TextView and ViewGroup

- use ViewGroup inheritance if defined
- use different heuristics (inherit, firstStrong, anyRtl, ltr, rtl)
- add more unit tests

Change-Id: Ic1325aa7d9e4689b181e0a2d08b7dd7fb3f0dbeb
oretests/src/android/widget/TextViewTest.java
f2dd2dfb6cd46166ddbd03d35e9cef98a4c0cbf8 27-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> AccessibilityInjectorTest did not restore the default key binsings.

1. AccessibilityInjectorTest changes the key bindings and when done
restores the defatult ones. The restoreation was not working.

bug:4905620

Change-Id: I812bad0b748637ded0ce69ace12517511f62f726
oretests/src/android/webkit/AccessibilityInjectorTest.java
b40ec927bb3fd2e4d3af545b67ec51ffc68970ed 25-Jun-2011 Tsu Chiang Chuang <tsu@google.com> Merge "adding notification stress tests."
a760e55783ee30b0f3494e113a1c37003c9d1770 22-Jun-2011 Tsu Chiang Chuang <tsu@google.com> adding notification stress tests.

Change-Id: Ideaae33843685fcbec4c4f38bf9c2ced97c9bf86
otificationtests/Android.mk
otificationtests/AndroidManifest.xml
otificationtests/src/android/app/NotificationStressTest.java
df867f8f8025c778a2d2eb4c4e364d967808743c 24-Jun-2011 Jesse Wilson <jessewilson@google.com> Test that algorithm name is case-insensitive for digest auth.

Change-Id: I891a533ae3b16b838925fa488093c19dfeb32efa
http://code.google.com/p/android/issues/detail?id=16051
oretests/src/android/net/http/DefaultHttpClientTest.java
ae633b2d36172862df3cd5ab240882bdff5a2a6c 14-Jun-2011 Andy McFadden <fadden@android.com> Port EventRecurrence.parse() from native

This adds a Java-language implementation of EventRecurrence.parse(),
to make it easier to relocate it for the benefit of unbundled
Calendar.

Differences from the native version:

- enforces that FREQ appears first
- allows (but ignores) X-* parts
- improved validation on various values
- error messages are more specific
- enforces that only one of UNTIL and COUNT may be present [disabled]
- allows lower-case property and enumeration values [disabled]

As part of the transition process, both versions of the parser are
called on every request, and the results are compared. If the results
are different a warning message is logged.

An unnecessary constructor was removed.

This also this moves some EventRecurrence tests out of CalendarProvider,
into coretests, and adds a simple parse test with the examples from
the RFC.

Bug 4575374

Change-Id: If737ed1272fda65c93363d87b2da12b85e644f5b
oretests/src/android/pim/EventRecurrenceTest.java
1b5a2a96f793211bfbd39aa29cc41031dfa23950 19-Jun-2011 Jeff Sharkey <jsharkey@android.com> Read "qtaguid" network stats, refactor templates.

Teach NMS to read qtaguid stats from kernel, but fall back to older
stats when kernel doesn't support. Add "tags" to NetworkStats entries
to support qtaguid. To work around double-reporting bug, subtract
tagged stats from TAG_NONE entry.

Flesh out stronger NetworkTemplate. All NetworkStatsService requests
now require a template, and moved matching logic into template.

Record UID stats keyed on complete NetworkIdentitySet definition,
similar to how interface stats are stored. Since previous UID stats
didn't have iface breakdown, discard during file format upgrade.

Change-Id: I0447b5e7d205d73d28e71c889c568e536e91b8e4
oretests/src/android/net/NetworkStatsTest.java
1515c0b5192996fdaf49c6ab8841a0d5b8ea9ca9 17-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove HanziToPinin.java

Those files are moved to ContactsProvider package.

Must be after If786dd286dab47ca1b2ccab38c5fa43ae390c0f7

Bug: 4645142
Change-Id: I774426347e8331fc1c203d5d8e6887e83baffc9f
oretests/src/com/android/internal/util/HanziToPinyinTest.java
c01924f156710e0c92bef13ec0b1a1e057b793d1 16-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Update getLayoutDirectionFromLocale() for using ICU

- now relying on ICU.getScript() and ICU.addLikelySubtags() for getting the locale script
- clean unit tests imports

Change-Id: Icdc45fa78490d1e2dde0e83bca0feea8aa205cdf
oretests/src/android/util/LocaleUtilTest.java
49e3b372ab288992a4705dfe7f37fbd732d06aed 16-Jun-2011 Kenny Root <kroot@google.com> Fix crash determining direction of invalid locale

The layoutlib is used in the SDK which might not have a default Locale,
so the language string will be some kind of junk. This causes a crash in
the new LocaleUtils

Change-Id: I24e5115c56e39d394dcf89ec6cff609525b3c73e
oretests/src/android/util/LocaleUtilTest.java
7e27e489d86888ac8bfc7852379a58178313fa5c 16-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Introduce LocalUtil and getLayoutDirectionFromLocale() now use likelySubtags"
a47f45e4829f812ff47f9e5c9370b02284d92ae8 15-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Introduce LocalUtil and getLayoutDirectionFromLocale() now use likelySubtags

- move code from Configuration to LocaleUtil
- move unit tests

Change-Id: Ic14b0131894a0c5618f00d4acb3edb0daadefe01
oretests/src/android/content/res/ConfigurationTest.java
oretests/src/android/util/LocaleUtilTest.java
c04c457eb7783a98fa452449484a818dbb7e0b45 15-Jun-2011 Jaikumar Ganesh <jaikumar@google.com> Merge "Refactor Bluetooth Profile."
f8789167e903b637b1dbe8f710e7c66c4cfd74fd 26-May-2011 Jaikumar Ganesh <jaikumar@google.com> Refactor Bluetooth Profile.

Move connect / disconnect / set and get priority
functions down the interface as they are not generic enough
for all profiles.

Change-Id: I2656e1bdbc8046c53bb0dfbd9172f5f10b57aa7d
luetoothtests/src/android/bluetooth/BluetoothTestUtils.java
7af75afb2c8608dbe73509036eefd3281d646a5f 14-Jun-2011 Eric Rowe <erowe@google.com> Fix external storage bug for BT stress tests

Change-Id: Ib6cfe80449037cfee5072145fb3a4ae0e79abf06
luetoothtests/AndroidManifest.xml
luetoothtests/src/android/bluetooth/BluetoothTestRunner.java
luetoothtests/src/android/bluetooth/BluetoothTestUtils.java
e460e6d7181282937fc79119e3271bb8a80cffcf 15-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add View.getResolvedLayoutDirection()"
c0053223bedf33581b0830fb87be32c1f26e5372 13-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add View.getResolvedLayoutDirection()

- update Callback2 interface
- update Gravity.getAbsoluteGravity() and Gravity.apply() to be more generic
by changing "boolean isRtl" parameter to "int layoutDirection"
- fix BiDiTests for RTL FrameLayout

Change-Id: I97bb456c22d5fd3ecb34f08564ce4dbed37e7459
oretests/src/android/view/GravityTest.java
bec6c36b96f7bc415af18abbb142bd51a1741796 14-Jun-2011 RoboErik <epastern@google.com> Rename Calendar.java to CalendarContract.java

Change-Id: Iadb22f39d1cb3d57d1636360df24ef484a9edb58
oretests/src/android/pim/RecurrenceSetTest.java
c282401b5729d07a522b35d54f199a0e85fd3f34 13-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Final polish of the interrogation feature."
9d9f23727031e3f1576bae44d0586c72842afbf3 13-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Update Configuration for renaming and fixes"
4a97122ebf4d92a3f94402041729d77905e6c0c0 12-Jun-2011 Jeff Sharkey <jsharkey@android.com> Growable NetworkStats object instead of builder.

NetworkStats now grows in place with arraycopy() instead of callers
needing to know record count a priori. Better growth calculation for
both NetworkStats and NetworkStatsHistory; 50% each time. Better
estimates of buckets needed in calling services.

Change-Id: I3adbffa0b7407612cc6349d9135a8b4eb63cd440
oretests/src/android/net/NetworkStatsTest.java
eeee4d2c01d3c4ed99e4891dbc75c7de69a803fa 11-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Final polish of the interrogation feature.

1. Added a new event type for notifying client accessibilitiy
services for changes in the layout. The event is fired at
most once for a given time frame and is delivered to clients
only if it originates from the window that can be interrogated.

2. Exposed the findByText functionality in AccessibilityNodeInfo.
This is very useful for an accessibility service since it allows
searching for something the user knows is on the screen thus
avoiding touch exploring the content. Touch exploring is
excellent for learning the apps but knowing them search is
much faster.

3. Fixed a bug causing an accessibiliby service not to receive
the event source in case of more than one service is registered
and one of them does not have paermission to interrogate the window.
The same event was dispatched to multiple services but if one
of them does not have interrogation permission the event is
modified to remove the source causing subsequent serivices not
to get the later.

4. Moved the getSource setSource methods to AccessibilityRecord
instead in AccessibilityEvent.

5. Hiden some protected members in AccessibilityRecod which should
not be made public since getters exist.

6. Added the View absolute coordinates in the screen to AccessibilityNodeInfo.
This is needed for fast computation of relative positions of
views from accessibility - common use case for the later.

7. Fixed a couple of marshalling bugs.

8. Added a test for the object contract of AccessibilityNodeInfo.

Change-Id: Id9dc50c33aff441e4c93d25ea316c9bbc4bd7a35
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
7a736fbf69dd6f03db968d7d8182024eebc0e508 10-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Update Configuration for renaming and fixes

- rename layoutDirection to textLayoutDirection
- rename constants for being clear that they cannot be used (work in progress)
- fix a few issues concerning default switch case and relation to Locale

Change-Id: Icfe9a9b5c0d1c0e28e5a893549b437fc4fa5df82
oretests/src/android/content/res/ConfigurationTest.java
5f3b2f1e59f34f7043487a194c9ab532b0f5a24f 10-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add Configuration.getLayoutDirectionFromLocale()"
7194efd394ce0b38a74bab87206adfd9ff823742 09-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add Configuration.getLayoutDirectionFromLocale()

- returns LAYOUT_DIRECTION_UNDEFINED / LAYOUT_DIRECTION_LTR / LAYOUT_DIRECTION_RTL depending on the Locale
- add unit tests

Change-Id: I4372734eb011cbf6270f39ba815e696b04f2352f
oretests/src/android/content/res/ConfigurationTest.java
601ad8061cb8dcf3ab7385fa9e9dd13f15dc8ece 09-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Invalid access to AccessibilityInteractionController

1. The Interaction connection checks if the ViewAncestor
is valid and posts a message to be processed on the UI
thread. The code in the UI thread did not check if
the mView was valid. Added this check.

2. Added a faster sync mechanism in the test for
getting the source of the last access event.

Change-Id: I9982b6592f5f44a68a67df40f37c063a3ba62993
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
3f3913550c10792edb8aecf66cc83c3db5c8b311 06-Jun-2011 Jeff Sharkey <jsharkey@android.com> Persist network stats using AtomicFile.

Implements read/write of network stats using AtomicFile, along with
magic number and versioning. Stores in "/data/system/netstats.bin"
for now. Tests to verify that stats are persisted across a simulated
reboot, and to verify that TEMPLATE_WIFI is working.

Fixed bug where kernel counters rolling backwards would cause negative
stats to be recorded; now we clamp deltas at 0.

Change-Id: I53bce26fc8fd3f4ab1e34ce135d302edfa34db34
oretests/src/android/net/NetworkStatsTest.java
19862bf5d058b6ab0c2979e7a5e0297dae6b170b 03-Jun-2011 Jeff Sharkey <jsharkey@android.com> Compute range-based usage in NetworkStatsHistory.

When given a start/end range, interpolate between buckets to return
the total network usage. Used to summarize detailed UID stats. Method
to combine NetworkStatsHistory regardless of bucket size. Used to
combine all histories matching a template.

Added tests for both methods.

Change-Id: Ia463910c0ecf7cf08dcf97c658ad99742bd6b882
oretests/src/android/net/NetworkStatsHistoryTest.java
d2a458750e5a3d490af09cecb5c28370baf0a913 29-May-2011 Jeff Sharkey <jsharkey@android.com> Map network identity using ConnectivityService.

Instead of deriving network identity based on raw subsystem broadcasts,
listen for updates from ConnectivityService. Added atomic view of all
active NetworkState, and build map from "iface" to NetworkIdentity set
for stats tracking.

To avoid exposing internal complexity, INetworkStatsService calls use
general templates. Added TelephonyManager mapping to classify network
types using broad labels like "3G" or "4G", used to drive templates.

Cleaned up Objects and Preconditions.

Change-Id: I1d4c1403f0503bc3635a59bb378841ba42239a91
oretests/src/android/net/NetworkStatsHistoryTest.java
7ad00e6f5ccaf975a49870cdd267d28ae144314e 07-Jun-2011 Jesse Wilson <jessewilson@google.com> Use external/mockwebserver in frameworks/base

Change-Id: Ifb45671e3e7256692c74587984ee5fe1d0eca181
oretests/Android.mk
oretests/src/android/net/http/AbstractProxyTest.java
oretests/src/android/net/http/CookiesTest.java
oretests/src/android/net/http/DefaultHttpClientTest.java
8643aa0179e598e78d938c59035389054535a229 20-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> Interrogation of the view hierarchy from an AccessibilityService.

1. Views are represented as AccessibilityNodeInfos to AccessibilityServices.

2. An accessibility service receives AccessibilityEvents and can ask
for its source and gets an AccessibilityNodeInfo which can be used
to get its parent and children infos and so on.

3. AccessibilityNodeInfo contains some attributes and actions that
can be performed on the source.

4. AccessibilityService can request the system to preform an action
on the source of an AccessibilityNodeInfo.

5. ViewAncestor provides an interaction connection to the
AccessibiltyManagerService and an accessibility service uses
its connection to the latter to interact with screen content.

6. AccessibilityService can interact ONLY with the focused window
and all calls are routed through the AccessibilityManagerService
which imposes security.

7. Hidden APIs on AccessibilityService can find AccessibilityNodeInfos
based on some criteria. These API go through the AccessibilityManagerServcie
for security check.

8. Some actions are hidden and are exposes only to eng builds for UI testing.

Change-Id: Ie34fa4219f350eb3f4f6f9f45b24f709bd98783c
oretests/AndroidManifest.xml
oretests/res/layout/interrogation_activity.xml
oretests/res/values/strings.xml
oretests/src/android/accessibilityservice/InterrogationActivity.java
oretests/src/android/accessibilityservice/InterrogationActivityTest.java
9e3b002d3f9141d54948a65e0330fdcd09e75a30 07-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Rename Gravity BEFORE/AFTER to START/END

- following spec proposal for having CSS3 like naming

Change-Id: Id5e316a2d9b54b9f20bbcb168fea6a3a83882e1b
oretests/src/android/view/GravityTest.java
efc1d16374955f04d713c770ab47d90d190afe83 21-Mar-2011 Albert Mojir <albert.mojir@sonyericsson.com> Bluetooth: correcting return value from cancelDiscovery

BluetoothAdapter.cancelDiscovery was previously always
returning false.

Change-Id: Ic1fd134d4b710438d95c5b8ca009104529dd1bf5
luetoothtests/src/android/bluetooth/BluetoothTestUtils.java
75279904202357565cf5a1cb11148d01f42b4569 25-May-2011 Jeff Sharkey <jsharkey@android.com> Collect historical network stats.

Periodically records delta network traffic into historical buckets to
support other services, such NetworkPolicyManager and Settings UI.

Introduces NetworkStatsHistory structure which contains sparse, uniform
buckets of data usage defined by timestamps. Service periodically
polls NetworkStats and records changes into buckets. It only persists
to disk when substantial changes have occured. Current parameters
create 4 buckets each day, and persist for 90 days, resulting in about
8kB of data per network.

Only records stats for "well known" network interfaces that have been
claimed by Telephony or Wi-Fi subsystems. Historical stats are also
keyed off identity (such as IMSI) to support SIM swapping.

Change-Id: Ia27d1289556a2bf9545fbc4f3b789425a01be53a
oretests/src/android/net/NetworkStatsHistoryTest.java
oretests/src/android/net/NetworkStatsTest.java
50e51b81b1cf2778b99682d918ec1288a3a2593e 02-Jun-2011 Brett Chabot <brettchabot@android.com> Merge "Move bluetooth tests to their own package."
b525f089cf0f580ccb26e80bbb0db1376ba554cc 28-May-2011 Brett Chabot <brettchabot@android.com> Move bluetooth tests to their own package.

Bug 4501764

Change-Id: Id65de5d96516720e75dfbb5d522f465187e73913
luetoothtests/Android.mk
luetoothtests/AndroidManifest.xml
luetoothtests/src/android/bluetooth/BluetoothRebootStressTest.java
luetoothtests/src/android/bluetooth/BluetoothStressTest.java
luetoothtests/src/android/bluetooth/BluetoothTestRunner.java
luetoothtests/src/android/bluetooth/BluetoothTestUtils.java
oretests/AndroidManifest.xml
oretests/src/android/bluetooth/AtParserTest.java
oretests/src/android/bluetooth/BluetoothRebootStressTest.java
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
9909d999b71ca31085b4c938d5c9167324604e48 01-Jun-2011 Svetoslav Ganov <svetoslavganov@google.com> Removed unused service declaration from core tests.

bug:4513413

Change-Id: I722655a0840762a90e581e57b7890ccc52174a0c
oretests/AndroidManifest.xml
c05aace48af1104dd917e8b5ad2dd76a02645ada 28-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix default for getAbsoluteGravity()

- remove LEFT as default, keep it as it is given (because apply() is doing CENTER_HORIZONTAL)
- update unit tests

Change-Id: I294621c5d5c7d675a715c15cb10947d026539b21
oretests/src/android/view/GravityTest.java
5ff0f99b23da389f59fe736c4c670c60f13be8ea 27-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add support for Gravity BEFORE and AFTER"
6a03640539405afbdefe72894759281b98aa6e6f 23-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Add support for Gravity BEFORE and AFTER

- update layouts
- add Callback2 for RTL aware Drawable
- add unit tests

Change-Id: Ic64d0291e262170aff7297c6580b0b422eaa8d89
oretests/src/android/view/GravityTest.java
a7284f0e72745d66155e1e282fc07113332790fa 27-May-2011 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to master

Adapt to change in the way MockWebServer sets up CONNECT proxies.
git cherry-pick --no-commit c7e2feee5e7908a019a0de91123c1feb9bdc38bc

React to move of Base64 in libcore
git cherry-pick --no-commit 119f7ebdd1f8df3a8ff8e3b8056bff725d569253

Expose and document android.net.HttpResponseCache.
git cherry-pick --no-commit 7b73f0fdb8c032a65c55610541d66385bd8bcbe6)

make update-api

Change-Id: Ieb48b304ea38ee8c2ec01e860d99b1404583889e
oretests/src/android/net/http/AbstractProxyTest.java
oretests/src/android/net/http/HttpResponseCacheTest.java
eedcb9525ba5befee2ba6ebb7a9ee3f13395c2a3 17-May-2011 Jeff Sharkey <jsharkey@android.com> APIs to profile network usage for current UID.

Added startDataProfiling() and stopDataProfiling() to TrafficStats,
which can be used by apps to measure network usage delta between two
points in time. Currently takes two NetworkStats snapshots and returns
delta, which will eventually include tag-level granularity. Added
tests for NetworkStats delta subtraction.

Added NMS.getNetworkStatsUidDetail() that returns stats for specific
UID. Always gives stats access for the calling UID, otherwise enforces
that caller has permission. Fix readSingleLongFromFile(), since
/proc/ files don't have well-defined lengths.

Change-Id: Ic5b6414d8effbd66846e275b00d4b8a82c74589d
oretests/src/android/net/NetworkStatsTest.java
c6cc0f8c19d9eccf408a443fa2bf668af261dcd0 12-Apr-2011 Joe Onorato <joeo@google.com> Rename ViewRoot to ViewAncestor.

ViewRoot is about to be a new public class for poking at ViewAncestor.

Change-Id: Ie95d707c6d8bbb48f78d093d7b2667851812a7d5
oretests/src/android/widget/focus/RequestFocusTest.java
oretests/src/android/widget/listview/ListViewHeight.java
a8e0dfae06298b375637813a3263a62749dd0b82 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of db46fa25 to master

Change-Id: I8df9d5d07588fbd70e417dae567be26f645b74b6
db46fa25be0a3e8040b118f688b69dd526aed86d 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> am a47c4019: Merge "Add RouteInfo objects for tracking routes." into honeycomb-LTE

* commit 'a47c40193fcbe9ca07facea78b2828afdae5e025':
Add RouteInfo objects for tracking routes.
aa70f101e08098ed9cb190abe2d7f952561026b8 28-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Add RouteInfo objects for tracking routes.

Used to have list of gateways for default routes, but general static routes
should be supported.

Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
oretests/src/android/net/LinkPropertiesTest.java
e8141854dcedb9f8487efe1a1237793e8f004f93 02-May-2011 Conley Owens <cco3@android.com> am dddaa56f: Merge commit \'b737647d\' (Scrolling using arrow keys with padding) into m

* commit 'dddaa56f793ad9ecb4e20df746f562ac7f24d158':
Scolling using arrow keys with padding
f4c4a276e2a78528d2387319313e99c559142cf9 02-May-2011 Conley Owens <cco3@android.com> Merge commit 'f395e304' into m

Conflicts:
core/tests/coretests/src/android/text/TextUtilsTest.java

Change-Id: I7439f7f80cf91ff654c0ddd79c3e6b3808ba4784
dddaa56f793ad9ecb4e20df746f562ac7f24d158 30-Apr-2011 Conley Owens <cco3@android.com> Merge commit 'b737647d' (Scrolling using arrow keys with padding) into m

Conflicts:
core/java/android/widget/ScrollView.java

Change-Id: I1cfd3f7091e92793ce9fa048a09ae08a04c10c80
f395e3042accd7f3f5df466dbb532befcd1db5d4 30-Apr-2011 Conley Owens <cco3@android.com> am 19653c64: am 425db473: Merge "CHAR_SEQUENCE_CREATOR cannot handle null string"

* commit '19653c6440eaf7328ecbc01c3ca6d7a910906484':
CHAR_SEQUENCE_CREATOR cannot handle null string
76616b138eb68a77a838a93fdf2f0322e982f706 29-Apr-2011 Conley Owens <cco3@android.com> Merge "Scolling using arrow keys with padding"
425db473a05e4204301bf46d4ab6f51b12d9c447 29-Apr-2011 Conley Owens <cco3@android.com> Merge "CHAR_SEQUENCE_CREATOR cannot handle null string"
d21e7b5d542cc9e93526182272c2bdc995c816fb 28-Apr-2011 Conley Owens <cco3@android.com> am c4791bd6: Merge commit \'5e3562a5\' into m

* commit 'c4791bd65cdf2e487c87da0d863140337e5141cb':
onDetachedFromWindow is called before onAttachedToWindow
c4791bd65cdf2e487c87da0d863140337e5141cb 28-Apr-2011 Conley Owens <cco3@android.com> Merge commit '5e3562a5' into m

Conflicts:
core/java/android/view/ViewRoot.java

Change-Id: Idd1eb8309e169eae2de3838f7969606df8097b87
cfe7b9fcfaeda1e79a8673e4005bcb307f9e9313 27-Apr-2011 Conley Owens <cco3@android.com> am a538b4a2: Merge "onDetachedFromWindow is called before onAttachedToWindow"

* commit 'a538b4a206c54ef763dab4da00990a8991425e77':
onDetachedFromWindow is called before onAttachedToWindow
696cba573e651b0e4f18a4718627c8ccecb3bda0 29-Mar-2011 Adam Powell <adamp@google.com> Refactor menu internals.

In the old world, MenuBuilder and MenuItemImpl were responsible for
generating views for any presentation of a menu. MenuBuilder needed to
know any types and resources involved, and the implied caching
semantics did not work well for menus presented within AdapterViews.

In the new world, the MenuPresenter interface takes over the
responsibility of generating views or adapters for menu
items. MenuBuilder/MenuItemImpl still provide extra metadata tracking
used by these presenters. Mutiple presenters may be active for a
single menu at a time. All of this remains internal framework
implementation details.

BaseMenuPresenter provides a simple base for presenters that treats
the host MenuView more like an AdapterView. This allows for less
rebuilding of views when items are added/removed.

Callbacks have been restructured. Calls that relate to the menu itself
are still handled by MenuBuilder.Callback, but calls related to a
specific presentation of a menu are handled by MenuPresenter.Callback
objects attached to a MenuPresenter.

Also add API to programmatically set divider options for LinearLayout
and hidden API so that ActionBarView can have finer-grained control
over divider placement.

Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
oretests/src/android/view/menu/MenuLayoutLandscapeTest.java
oretests/src/android/view/menu/MenuLayoutPortraitTest.java
oretests/src/android/view/menu/MenuScenario.java
oretests/src/android/view/menu/MenuWith1ItemTest.java
343c1ad7200619230a55caa6aa8a9d041e62b29d 19-Apr-2011 Wink Saville <wink@google.com> am 37677849: am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

* commit '37677849998e6c9a39afe0a730b2f0131a371f3b':
Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
37677849998e6c9a39afe0a730b2f0131a371f3b 19-Apr-2011 Wink Saville <wink@google.com> am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

* commit '64c42cae4482fe0157e977b8ddd0f2c2436b3f31':
Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
64c42cae4482fe0157e977b8ddd0f2c2436b3f31 18-Apr-2011 Wink Saville <wink@google.com> Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7
oretests/src/com/android/internal/util/HierarchicalStateMachineTest.java
oretests/src/com/android/internal/util/StateMachineTest.java
5cde33b7d14841677414fa9f43a043bb4a89ffa7 14-Apr-2011 Xia Wang <xiaw@google.com> am a4b76ff4: am d69ec89f: am 46b59ef0: Merge "Fix access point parsing: reset static link property after parsing static ip setting Fix removeConfiguredNetwork: add sleep between remove configured network and disable wifi" into honeycomb-mr1

* commit 'a4b76ff4911538f01e92af2f3fa3f4016ad0e290':
Fix access point parsing: reset static link property after parsing static ip setting Fix removeConfiguredNetwork: add sleep between remove configured network and disable wifi
a4b76ff4911538f01e92af2f3fa3f4016ad0e290 14-Apr-2011 Xia Wang <xiaw@google.com> am d69ec89f: am 46b59ef0: Merge "Fix access point parsing: reset static link property after parsing static ip setting Fix removeConfiguredNetwork: add sleep between remove configured network and disable wifi" into honeycomb-mr1

* commit 'd69ec89f5d31064174d79e2e77504814629cffa6':
Fix access point parsing: reset static link property after parsing static ip setting Fix removeConfiguredNetwork: add sleep between remove configured network and disable wifi
d69ec89f5d31064174d79e2e77504814629cffa6 14-Apr-2011 Xia Wang <xiaw@google.com> am 46b59ef0: Merge "Fix access point parsing: reset static link property after parsing static ip setting Fix removeConfiguredNetwork: add sleep between remove configured network and disable wifi" into honeycomb-mr1

* commit '46b59ef01be530a6bbe3f0e9a2bed27de9985f40':
Fix access point parsing: reset static link property after parsing static ip setting Fix removeConfiguredNetwork: add sleep between remove configured network and disable wifi
505bd0d60d26811ac1e61d2c39a2d5a995d2254d 13-Apr-2011 Martin Wallgren <martin.wallgren@sonyericsson.com> onDetachedFromWindow is called before onAttachedToWindow

Multiple threads are adding messages about the current
state of the views to the main looper. This can cause
onDetachedFromWindow to be posted on the looper before
onAttachedToWindow. This change will make sure to only
dispatch onDetachedFromWindow if we have previously
dispatched onAttachToWindow.

Change-Id: Ibc7cbcafb098bc000d2ef5480d2110d3fff4d55a
oretests/AndroidManifest.xml
oretests/res/layout/attach_view_test.xml
oretests/src/android/view/ViewAttachTest.java
oretests/src/android/view/ViewAttachTestActivity.java
oretests/src/android/view/ViewAttachView.java
461fa8b05dfb4fd334980365e27002a7520e866e 12-Apr-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of 18490fb9 to master

Change-Id: I6c68e6fb0f9c1182a955689bbffc161a8f30bd37
18490fb93e206fd899c3258096cc32f293373c92 12-Apr-2011 Kenny Root <kroot@google.com> resolved conflicts for merge of 87b3c0dc to honeycomb-plus-aosp

Change-Id: Ia1a0024aabf531438203eb9fea3a10dd15eabe53
87b3c0dcc45223ff9d5ab2e39d7b9a6953e03f50 12-Apr-2011 Kenny Root <kroot@android.com> am 08d9d9a4: Merge "Runtime resource overlay, iteration 1."

* commit '08d9d9a46250c4fad66e9b637e8898a3524c4286':
Runtime resource overlay, iteration 1.
37e344cbe277e8f4da944c19cffaf34f38f6396e 11-Apr-2011 Wink Saville <wink@google.com> am 1b00dc66: am 3156a8c1: Merge "Move ProcessedMessage into HierarchicalStateMachine." into honeycomb-LTE

* commit '1b00dc66d4b61b9a2bf44f76a9d3f54be91a2dbf':
Move ProcessedMessage into HierarchicalStateMachine.
1b00dc66d4b61b9a2bf44f76a9d3f54be91a2dbf 11-Apr-2011 Wink Saville <wink@google.com> am 3156a8c1: Merge "Move ProcessedMessage into HierarchicalStateMachine." into honeycomb-LTE

* commit '3156a8c1694756dfa74c3918867f528bcf916e28':
Move ProcessedMessage into HierarchicalStateMachine.
d3059487abd526b91b912f70939c1c6994eecf52 11-Apr-2011 Wink Saville <wink@google.com> Move ProcessedMessage into HierarchicalStateMachine.

ProcessedMessage is really private to HSM and so moving
it into the HSM class.

Change-Id: Ida476fc7aae5e9bfb6ac632dac979e11f489b6fc
oretests/src/com/android/internal/util/HierarchicalStateMachineTest.java
08d9d9a46250c4fad66e9b637e8898a3524c4286 11-Apr-2011 Kenny Root <kroot@android.com> Merge "Runtime resource overlay, iteration 1."
dddfaa75e77f4d02cc7b4180f5eb0679321cb628 09-Apr-2011 Xia Wang <xiaw@google.com> Fix access point parsing: reset static link property after parsing
static ip setting
Fix removeConfiguredNetwork: add sleep between remove configured network
and disable wifi

Change-Id: I619e79e9bc414b9aeae3537dbc642a7fbc9fca97
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 07-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These haven't been working since before 1.0.

Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
oretests/src/android/app/activity/LocalProvider.java
52c858f5f01d99b34131612a645790492bf6d5e9 07-Apr-2011 John Wang <johnwang@google.com> am c343c183: am 5d6f1167: Merge "Make LinkProperties comparable." into honeycomb-LTE

* commit 'c343c18376b8fd7d27a07adc5bb617d0260a8cdc':
Make LinkProperties comparable.
c343c18376b8fd7d27a07adc5bb617d0260a8cdc 07-Apr-2011 John Wang <johnwang@google.com> am 5d6f1167: Merge "Make LinkProperties comparable." into honeycomb-LTE

* commit '5d6f1167039e22889545212ce18192460f9b503e':
Make LinkProperties comparable.
4e900091c4da26eb1c9f0d232ee0e50f4522cc69 04-Apr-2011 John Wang <johnwang@google.com> Make LinkProperties comparable.

Add equals() and hashcode() to LinkProperties and related fields.

Bug:3501569
Change-Id: Ifa737a67c16867ac43cf76bf618a483e612a189e
oretests/src/android/net/LinkPropertiesTest.java
5435a06010fb50dd8b495df6b7f21f15d82a2c0a 07-Apr-2011 Mattias Petersson <mattias.petersson@sonyericsson.com> Scolling using arrow keys with padding

It was impossible to reach the end of a large test when scrolling down
using the arrowkeys when the ScrollView had padding. A common example
of this would be an AlertDialog with a text that is too long to fit on
the screen.

Change-Id: I55464290a0cdeabde83ccccc76fe8d015ae57a8d
oretests/AndroidManifest.xml
oretests/src/android/util/ScrollViewScenario.java
oretests/src/android/widget/scroll/arrowscroll/MultiPageTextWithPadding.java
oretests/src/android/widget/scroll/arrowscroll/MultiPageTextWithPaddingTest.java
cee2051adac53a85653ba8ead3a671c0978af43b 07-Apr-2011 Martin Wallgren <martin.wallgren@sonyericsson.com> CHAR_SEQUENCE_CREATOR cannot handle null string

TextUtils.writeToParcel can handle null as input CharSequence
but createFromParcel will throw NullPointerException. Transforming
to and from parcel should handle null in the same way.

Change-Id: I707ea9be2091d2655c5f63eaa57c5674befa5ad3
oretests/src/android/text/TextUtilsTest.java
bc20ac85a56dec157226a2aa4239190d5714366d 05-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am e511fb33: am 9b1b6439: am 2ed72048: Merge "Always return a valid index from Rfc822Tokenizer.findTokenEnd()"

* commit 'e511fb33d33f0ba83ce437f615fa236f369b5ade':
Always return a valid index from Rfc822Tokenizer.findTokenEnd()
37334c0f34ef40735b9f44918b53c1469ceae2cc 05-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am 8f7aad14: am f7a34b15: am e558a000: Merge "Avoid crash in system server when mounting container"

* commit '8f7aad147d790b25bae7301827e070df72690341':
Avoid crash in system server when mounting container
e511fb33d33f0ba83ce437f615fa236f369b5ade 05-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am 9b1b6439: am 2ed72048: Merge "Always return a valid index from Rfc822Tokenizer.findTokenEnd()"

* commit '9b1b64399502af0a08beac3014f2294644753602':
Always return a valid index from Rfc822Tokenizer.findTokenEnd()
8f7aad147d790b25bae7301827e070df72690341 05-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am f7a34b15: am e558a000: Merge "Avoid crash in system server when mounting container"

* commit 'f7a34b15986f8c00bc6fb941a40f9acbe2c21aff':
Avoid crash in system server when mounting container
9b1b64399502af0a08beac3014f2294644753602 04-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am 2ed72048: Merge "Always return a valid index from Rfc822Tokenizer.findTokenEnd()"

* commit '2ed72048828cf9f617da971e5d2b8a062de08e5b':
Always return a valid index from Rfc822Tokenizer.findTokenEnd()
f7a34b15986f8c00bc6fb941a40f9acbe2c21aff 04-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> am e558a000: Merge "Avoid crash in system server when mounting container"

* commit 'e558a0000389a2523b8d3d3a787db6b4579d2bdc':
Avoid crash in system server when mounting container
2ed72048828cf9f617da971e5d2b8a062de08e5b 04-Apr-2011 Brad Fitzpatrick <bradfitz@android.com> Merge "Always return a valid index from Rfc822Tokenizer.findTokenEnd()"
114f98a75334813fe116da3d95567db8984d45b9 18-Jan-2011 Mattias Niklewski <mattias.niklewski@sonyericsson.com> Always return a valid index from Rfc822Tokenizer.findTokenEnd()

If an invalid input string ends with a backslash inside a comment
or quoted string, the returned index would be past the end of the
string. In one case this would lead to a runtime exception being
thrown from MultiAutoCompleteTextView.performValidation.

Change-Id: If629372b429716c25cdc25764f088e95d4812d57
oretests/src/android/text/TextUtilsTest.java
a20c8ef471666cf8b0dca91a8739ff18af1741a5 09-Feb-2011 Fredrik Helmer <fredrik.helmer@sonyericsson.com> Avoid crash in system server when mounting container

A race condition when mounting a container in PackageHelper may cause
the system_server to crash (uncaught exception). Calling methods are
prepared to handle null, so return null instead.

Change-Id: I852ee21a2d847e37d81c1b900c27ddf94ef24fcb
oretests/src/android/content/pm/PackageHelperTests.java
08065b9f09ead8895d97b2971622af8c179e1768 02-Apr-2011 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to master

git cherry-pick --no-commit a80febd83c8bf0b6717da2a7136179bdc906a5b7

git cherry-pick --no-commit 5e642b41cf44c5da7afdd95ab3d5e2bdbf7b31dd

git cherry-pick --no-commit 4886db14c9eee4b6fee69bd54c57c5af04709c4c

git cherry-pick --no-commit 560c685e448769904047507b9484ce8111967d7e

git cherry-pick --no-commit 63dde7a2fcfa53dc531558635b64cea613d3cdb4

git cherry-pick --no-commit 74e5cb91060a379d98dd3a333b5f231bfb4f502e

git cherry-pick --no-commit 1cc8c9708b555e2e338b7798d38887a2fefcfea6

git cherry-pick --no-commit 09625a21f5abe0c0db15757f58585d552d62c3d7

git cherry-pick --no-commit fcb02dfe0f5a2bb7c07e6d6fc69f756a484b5458

git cherry-pick --no-commit a68cb7fa3ab42854768b8145ff85231663770292

git cherry-pick --no-commit 716beb1c131dd2c6b805d4f681debaa20075010c

git cherry-pick --no-commit 8c29b1097a7afe3a77e27546a56e396f3620a4ec

git cherry-pick --no-commit 9c6a1a55d1c8086c1cc57464eea43725694ff70c

git cherry-pick --no-commit b14f5ea5c57acdd009ba5b51f1bbe430f3d353b8

Change-Id: I8cc94175441b009e23549762d6baee1dbace4881
oretests/Android.mk
ystemproperties/Android.mk
57f4b77c89bafedf9468f9a636561c0c193405c9 17-Mar-2011 MÃ¥rten Kongstad <marten.kongstad@sonyericsson.com> Runtime resource overlay, iteration 1.

Runtime resource overlay allows unmodified applications to appear
as if they had been compiled with additional resources defined. See
libs/utils/README for more information.

This commit is the first iteration of runtime resource overlay. It
provides the actual overlay modifications and loading of trusted overlay
packages (ie residing in /vendor) targeting framework-res.apk.

This commit loads exactly one overlay package. The overlay,
if present, must target framework-res.apk and be located at
/vendor/overlay/framework/framework-res.apk.

Change-Id: If26ee7754813004a96c043dba37fbe99fa3919db
verlaytests/Android.mk
verlaytests/OverlayTest/Android.mk
verlaytests/OverlayTest/AndroidManifest.xml
verlaytests/OverlayTest/src/com/android/overlaytest/OverlayBaseTest.java
verlaytests/OverlayTest/src/com/android/overlaytest/WithOverlayTest.java
verlaytests/OverlayTest/src/com/android/overlaytest/WithoutOverlayTest.java
verlaytests/OverlayTestOverlay/Android.mk
verlaytests/OverlayTestOverlay/AndroidManifest.xml
verlaytests/OverlayTestOverlay/res/drawable/default_wallpaper.jpg
verlaytests/OverlayTestOverlay/res/values-sv/config.xml
verlaytests/OverlayTestOverlay/res/values/config.xml
verlaytests/README
verlaytests/runtests.sh
112d339673c379b71a989bd33b73648aafe58ce1 25-Mar-2011 Jesse Wilson <jessewilson@google.com> Fix MemoryFile's output stream to advance.

Previously it was not useful.

Change-Id: I0bcc06b65bab33a38a0b0148c020509076a51b1c
http://code.google.com/p/android/issues/detail?id=11415
oretests/src/android/os/MemoryFileTest.java
94d76925c285b8788bdc31ca5a667a32c245ca78 23-Mar-2011 Eric Rowe <erowe@google.com> am 2f97217b: am 22e21da6: am 5e66ccf5: Merge "Clean up BT stress tests." into honeycomb-mr1

* commit '2f97217bfca0e89b88498c44a8f0f5ad35091b0a':
Clean up BT stress tests.
cc1eaf6f7b81eaae21c01cbf4cf6f27dc3970774 15-Mar-2011 Vasu Nori <vnori@google.com> bug:4090903 allow bindargs on attach database statement

code incorrectly assumed that certain statements (like ATTACH DATABASE)
will never have bindargs.

Change-Id: I62eddbdf8e15947e8debf5052c7248113a3b9b57
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
2b1fb45fabcb6f6e6edfd1a7a8e394928a27afe8 01-Mar-2011 Eric Rowe <erowe@google.com> Clean up BT stress tests.

Make ConnectPanReceiver a child of ConnectProfileReceiver, check if a
profile proxy is null before trying to connect. Change log output in
bluetooth. Remove some oververbose parameters from test runner. Make
the setup for the tests more consistent (delete pairings, etc).

Most of this work has been done to facilitate the tests created for
trade federation.

Change-Id: I7350d308b5d09c2052e0a3f3308a69c564ba4d74
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
01a111486d06c21ddb723195c177c8991d5db151 18-Mar-2011 Xia Wang <xiaw@google.com> am e12a1a09: Merge "Port wi-fi stress test into GB DO NOT MERGE" into gingerbread

* commit 'e12a1a0949ceaff3e4d203ab6897501fb7bdfb98':
Port wi-fi stress test into GB DO NOT MERGE
e9ba454ad88f562a1f679a05c13768c1ce02141e 10-Mar-2011 Xia Wang <xiaw@google.com> Port wi-fi stress test into GB
DO NOT MERGE

Change-Id: Ia79ba42f956481b945e101ccfb66752915a6688d
onnectivityManagerTest/Android.mk
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
b28339dc24a7227aedbebe11a7cc73beaa3baaab 11-Mar-2011 Xia Wang <xiaw@google.com> am 05ab5caa: am cf994cc5: Merge "resolved conflicts for merge of 16cbe575 to honeycomb-mr1" into honeycomb-mr1

* commit '05ab5caa80fdea6bba8ec2fa758be8e9c7ad4b3d':
Add WifiStressTest to Wi-Fi only test suite.
4bc5c4a1f5ea529ef7c7b38ee3782c8f209f7b9c 11-Mar-2011 Xia Wang <xiaw@google.com> resolved conflicts for merge of 16cbe575 to honeycomb-mr1

Change-Id: Ic55f0bdeb5fc63bdabb4f4546fa7e1aa3201a6e0
1e3ac18e7ad03e02819f3e1a89d6a80a2bb7645f 08-Mar-2011 Gilles Debunne <debunne@google.com> Empty spans are not considered in text layout/rendering process.

Bug http://code.google.com/p/android/issues/detail?id=14786

Empty spans are affecting the text before and after them. See the
comment in TextUtils.removeEmptySpans for details.

Change-Id: I40376c32fd56a17efde6219f9b2593e4b4ab1ba1
oretests/src/android/text/TextUtilsTest.java
3d58d63b03edd95352b70b9b18251c4f72f17b74 09-Mar-2011 Xia Wang <xiaw@google.com> Add WifiStressTest to Wi-Fi only test suite.

Change-Id: Id15ec2e291729b910ee05cef4650efb8d2e1a43c
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
decee8d35b1af3fca226a00436976dfbfcc8397c 07-Mar-2011 satok <satok@google.com> Fix a test for system properties in frameworks/base/core

Change-Id: Id588d63ae4cae8c25b430c4ff7719173dacc70bb
ystemproperties/AndroidManifest.xml
ystemproperties/run_core_systemproperties_test.sh
dfed7c006a2f1c36c45043da7264c0a8a8f12bbf 26-Feb-2011 Jesse Wilson <jessewilson@google.com> Remove deprecated and unused entryEvicted method.

Change-Id: I30ccf3d798a3ebfc88a1b340efaaacf524d56fae
http://b/3461302
oretests/src/android/util/LruCacheTest.java
27f4bd7a474c2b57be21b82b13b89473278f1272 07-Mar-2011 Jesse Wilson <jessewilson@google.com> Merge "Remove deprecated and unused entryEvicted method."
7d83f6020c31c21b84114b35e6303895d082e18d 05-Mar-2011 Xia Wang <xiaw@google.com> am 928ec5e0: Merge "Modify connectivity manager test suite so that it can be run on Wi-Fi only device." into honeycomb

* commit '928ec5e021162fe371da8bdac7f5bb2c854b1aa1':
Modify connectivity manager test suite so that it can be run on Wi-Fi only device.
b97435c94f4d35a70d63e5dcba5415b0110cf2c9 04-Mar-2011 Xia Wang <xiaw@google.com> Modify connectivity manager test suite so that it can be run on Wi-Fi
only device.

DO NOT MERGE

bug id: 3511242

Change-Id: I7dc6d30793cf679b53af571f58b7405ab9e33299
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/UtilHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
656f7a729f8a01d42de610579e8cc2ba1f208076 04-Mar-2011 satok <satok@google.com> Add a test for persist properties settings

Change-Id: I7bf70104a8cadc739a79d3d855d276628655883c
ystemproperties/src/android/os/SystemPropertiesTest.java
c91437d38ae14a20046de47831eb0f9bfd329af7 03-Mar-2011 satok <satok@google.com> do not merge: Cherry pick change I878192090 from master.

A test for system properties

Change-Id: Id28da70b8e333ca83129c2b7b7aed2ddf9adf51c
ystemproperties/Android.mk
ystemproperties/AndroidManifest.xml
ystemproperties/run_core_systemproperties_test.sh
ystemproperties/src/android/os/SystemPropertiesTest.java
3dee21eb0f253a7e78572872b8dfc7b5d990a063 02-Mar-2011 Kenny Root <kroot@google.com> Merge "Switch to returnCode for IPackageDeleteObserver"
dfa28c3449a3fb9bf5c1875f1532e73e73e74440 01-Mar-2011 Fred Quintana <fredq@google.com> Merge "Fix a deadlock in AccountManagerService cause by different paths of code getting the mCacheLock and DB locks in different orders."
2f6409686f4ecced13474db9307fcd33a805b2bf 01-Mar-2011 Irfan Sheriff <isheriff@google.com> Merge "Using AsyncChannel for wifi connectivity"
f9f240e3ad5ff5eeaa32fbb2dd65ef7f3b06af32 25-Feb-2011 Fred Quintana <fredq@google.com> Fix a deadlock in AccountManagerService cause by different
paths of code getting the mCacheLock and DB locks in different
orders.

The philosophy I followed for this was to ensure that the
DatabaseHelper is only ever accessed from within a
synchronized(mCacheLock) block. I also renamed a bunch of
methods to make it easier to know if a given method should
be called from within this synchronized block.

Bug: 3404506
Change-Id: Ia48f95e77b77647d0717f70f1d8364da3719cc13
oretests/src/android/accounts/AccountManagerServiceTest.java
c39bb4aaa7be1b9b0cc9fb0b1f03d54f7609ffeb 28-Feb-2011 Kenny Root <kroot@google.com> Switch to returnCode for IPackageDeleteObserver

Before the IPackageDeleteObserver only knew whether the deletion
succeeded or failed, but not the reason why.

Bug: 2520191
Change-Id: I1f0d7c04f06c539660b6e17e7e133defb0f61b5b
oretests/src/android/content/pm/PackageManagerTests.java
835d8ee61ecddcd3fdc0aadf500d05b914ca375f 01-Mar-2011 Eric Rowe <erowe@google.com> Add test cases for AudioManager SCO methods.

Add test cases for AudioManager.startBluetoothSco() and
AudioManager.stopBluetoothSco()

Bug: http://b/3292864
Change-Id: I743c8d732270262fbaaff79a53d43cedcd5de528
oretests/AndroidManifest.xml
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
ebe606fccd9293674273d5f73246e0e8e6e6ddcf 24-Feb-2011 Irfan Sheriff <isheriff@google.com> Using AsyncChannel for wifi connectivity

Change-Id: Ieee5a3a1a739238d8a6659493684f1be0cbea691
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
c4e6209c5294da5cbca75eafd0ba5d4c3ed9a5b1 26-Feb-2011 Jesse Wilson <jessewilson@google.com> Remove deprecated and unused entryEvicted method.

Change-Id: Id2ac0913968099eb0c8dfa762b87082ba6bd9cd9
http://b/3461302
oretests/src/android/util/LruCacheTest.java
7db1b40a03ff04ac8b49b3b53839b3c5d1c6f16a 26-Feb-2011 Jesse Wilson <jessewilson@google.com> Callback on any removal, not just evictions.

Don't hold locks while running create or remove callbacks. That gets a bit
ugly because it means a create could be unwanted by the time it returns.

Change-Id: I14b2b3ed41a446750f8ee5a7e35cb8d801c4ce6d
http://b/3461302
oretests/src/android/util/LruCacheTest.java
5936245654f8d361a983b4f72bd7ea10e1a8c756 24-Feb-2011 Jaikumar Ganesh <jaikumar@google.com> Merge "Make BluetoothPan inherit from BluetoothProfile."
74ef1199459629c5dd9f272f8cd706d82cdfeeb1 23-Feb-2011 Jaikumar Ganesh <jaikumar@google.com> Make BluetoothPan inherit from BluetoothProfile.

Change-Id: Ibd3e24e391be93ebe2cf975bd075efb68e10c1ff
oretests/src/android/bluetooth/BluetoothTestUtils.java
8d2f78898eedef90b7382e2517e88db0e0e9ca58 23-Feb-2011 Xia Wang <xiaw@google.com> Remove long sleep time in WifiApStress test
as it causes the test to run for a long time.

Change-Id: I82dd042866f9e9f4637a5c3cc553334abe769260
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
4ab0e7746fe74a9e4d75d374f73b7af87420b2f6 18-Feb-2011 Jaikumar Ganesh <jaikumar@google.com> Make BluetoothInputDevice inherit from BluetoothProfile.

This makes it in sync with BluetoothHeadset and BluetoothA2dp profiles.

Change-Id: I3ddb1d18b04aacb173b7bc376bca21c277a6afe4
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
e355e75aaf9579629780820d4353786846eb55fe 18-Feb-2011 Xia Wang <xiaw@google.com> Merge "Add ping test to verify data connection."
12669b6c8073defcfae369e9f7b6f879b1ac218e 18-Feb-2011 Vasu Nori <vnori@google.com> bring back sqlite WAL tests now that the feature is in.

Change-Id: I92103915845b7cf3f41f95e909051b6669c63ec4
oretests/src/android/database/sqlite/SQLiteCursorTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
6bffe14c78efa0b56327262543ce2e0dfc024219 18-Feb-2011 Xia Wang <xiaw@google.com> Add ping test to verify data connection.

Change-Id: I88e06934747e9e98bd440ae84268e69486c74734
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
302b9884b3f0ecc96cc618643835d415e474cac3 14-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Remove more use of netmask"
b979f79158f9c470fa09ff3b96d72db274262201 12-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Remove more use of netmask

bug:2542681
Change-Id: Ifd75672739ee8262d4df22afd8173e4f3f67260d
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
62bf34c6e28f7098ab4091786a0e6b64950d22fe 14-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Accessibility events generated by WebView contain non well formed markup."
2cfed9eb0e1316f9906eacf25b51231c1ed8b331 11-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> Accessibility events generated by WebView contain non well formed markup.

bug:3444147

1. Now that the spans with CSS data are included in the accessibility
events, such that a client can parse them, the tests are doing so.

Change-Id: I574c68d27a95cd8226dd7634b00a7d404ae387fe
oretests/src/android/webkit/AccessibilityInjectorTest.java
718dfa8d94c8ab99133c5ea6b5005fdb70e16c43 14-Feb-2011 Xia Wang <xiaw@google.com> Merge "Add wait time for Wi-Fi tethering test, bug http://b/issue?id=3436586"
56b6ad3e28f9f86fb3186c96ddd8754e190afdf0 11-Feb-2011 Jesse Wilson <jessewilson@google.com> Add a new method, LruCache.remove

Change-Id: Iae78a2ed4d719d4f14a4677ecb6fe5bc823bb660
http://b/3184897
oretests/src/android/util/LruCacheTest.java
cbafbe7c3e4da0a9cccfddd07f78f2e74a7870cb 11-Feb-2011 Xia Wang <xiaw@google.com> Merge "Fix test3GToWifiNotification for mobile state validation."
614613e2d2fe51d484bfbeed6eeb8b66b151df37 11-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Update LinkProperties treatment of gateways"
992564e481af13cbcb058ee801f9254a520c54a1 09-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Update LinkProperties treatment of gateways

A link can have multiple gateways (think ipv4/ipv6 for a trivial example).
.

bug:3438810
Change-Id: I28c90a6947cd50b82e5ca9a0113148f98b3f4dd8
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
be142fc6aae5484b518f6ab29d12f0c086f6fa74 08-Feb-2011 Xia Wang <xiaw@google.com> Fix test3GToWifiNotification for mobile state validation.

Change-Id: I018b28b78907fdd9f3f835faf562b4da5fea8f80
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
ec841adcf70edfdffce096b039e2cd3930633131 09-Feb-2011 Xia Wang <xiaw@google.com> Add wait time for Wi-Fi tethering test, bug http://b/issue?id=3436586

Change-Id: I6aaac0e6ef7f89d5052c8a5dd2bef71612e72942
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
e7dea4ec2479002f5ee15bc6fc98d8c8acd123a6 10-Feb-2011 Vasu Nori <vnori@google.com> bug:3443154 fix database tests after disabling sqlite wal

sqlite wal is disabled in Change-Id: I283ad26ba7e1793772a372aa8e24df0cb96ce2ef

Change-Id: I2b370c65390a9293e4a82f650c9cee8023b861d7
oretests/src/android/database/DatabaseErrorHandlerTest.java
oretests/src/android/database/sqlite/SQLiteCursorTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
8bf7cace20c84506c7cf8db95a0f4e894dbc2fca 06-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> Added tests for WebView accessibility no JS

bug:3421690

This change is related to change:Idfec7e6a

1. Added tests for cases in which the previous
implementation was not behaving as expected.

2. Refatered the tests to be intrumentation tests
since the code under tests uses the DOM element
dimensions to determine visibility and if the
the WebView has no size i.e. not attached to
ViewRoot the size of all DOM elements is zero
forcing all tests to fail.

Change-Id: Ib4c01af8feb09f2b2a6b9d906e08bfaaa9e9bc74
oretests/AndroidManifest.xml
oretests/res/layout/accessibility_injector_test.xml
oretests/src/android/webkit/AccessibilityInjectorTest.java
oretests/src/android/webkit/AccessibilityInjectorTestActivity.java
e2c1f4a0ee026e7a2a15d198dc3be4529896e9f6 07-Feb-2011 Jesse Wilson <jessewilson@google.com> New LRU cache class.

Change-Id: I0e6ea1e489c684b876aebd5857c6f16a21048a8d
http://b/3184897
oretests/src/android/util/LruCacheTest.java
db569b49180621c01fa55db88ed92071aae9b3bb 01-Feb-2011 Dianne Hackborn <hackbod@google.com> am 6cf32312: Merge "Do not check features in PackageManagerService" into honeycomb

* commit '6cf32312aaee6716ffd1df7098838b08d80054e4':
Do not check features in PackageManagerService
b04ec6a8a7e6a684eb4b8d434c87b76bbac9c80c 01-Feb-2011 Dianne Hackborn <hackbod@google.com> am 7a7ed2b2: Merge "Do not check features in PackageManagerService DO NOT MERGE" into gingerbread

* commit '7a7ed2b21233480d63a1f6b3830e3b0c1c6a3298':
Do not check features in PackageManagerService DO NOT MERGE
4c3915a0f73e51d0c70d93fe5b9ed125d5739b93 01-Feb-2011 Kenny Root <kroot@google.com> Do not check features in PackageManagerService

PackageManagerService shouldn't check features that a package declares
that it uses because this will cause problems in the future when we add
more features that older phones didn't explicitly declare. We must rely
on markets to know about phones and filter them for us to avoid this
situation.

Bug: 3409434
Change-Id: I419a5b936be3572b83a485081a6c81b2f1c8741c
oretests/res/raw/install_uses_feature
oretests/src/android/content/pm/PackageManagerTests.java
fa2ae1ad1ad2f6c905a9de713038338a24d9ae7c 01-Feb-2011 Kenny Root <kroot@google.com> Do not check features in PackageManagerService DO NOT MERGE

PackageManagerService shouldn't check features that a package declares
that it uses because this will cause problems in the future when we add
more features that older phones didn't explicitly declare. We must rely
on markets to know about phones and filter them for us to avoid this
situation.

Bug: 3409434
Change-Id: I0d51b2de33d8110edc6824af4b5b8c901f96077f
oretests/apks/install_uses_feature/Android.mk
oretests/apks/install_uses_feature/AndroidManifest.xml
oretests/apks/install_uses_feature/res/values/strings.xml
oretests/res/raw/install_uses_feature
oretests/src/android/content/pm/PackageManagerTests.java
242fa0eb73d555eb025c39cf212030f00cb53cb4 28-Jan-2011 Vasu Nori <vnori@google.com> am ce3b35a7: Merge "bug:3398527 return List insttead of ArrayList from public API" into honeycomb

* commit 'ce3b35a7b0b80061692d9fa1977cee68b365728c':
bug:3398527 return List insttead of ArrayList from public API
ce3b35a7b0b80061692d9fa1977cee68b365728c 27-Jan-2011 Vasu Nori <vnori@google.com> Merge "bug:3398527 return List insttead of ArrayList from public API" into honeycomb
a017edace756956cd4b4789a85316e3681d04a7e 27-Jan-2011 Vasu Nori <vnori@google.com> bug:3398527 return List insttead of ArrayList from public API

Change-Id: Idbdcb59fe860a9168c9ef6c00eb128b05fce84ff
oretests/src/android/database/DatabaseGeneralTest.java
54fc78072fec46933ca5ee96c7642bd4b9fc540f 26-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> am df467264: Merge "Final polish of WebView accessibility support for no JavaScript case." into honeycomb

* commit 'df4672643b92208b4ab7f9ab995dca8b69d3c458':
Final polish of WebView accessibility support for no JavaScript case.
9504f5753db3309b67e74ccecb400a18d23ca2d1 14-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Final polish of WebView accessibility support for no JavaScript case.

1. Added tests for the new code added by change:I5a796aef

2. WebCore thread now calls the UI thread to set the cursor to
the current position enabling the user to interact with
the content that is being selected on the page.

3. Removed the code that changes the selection on movement of the
cursor ring. We are dropping the "default web view behavior"
as granularity of reading the document since with this change
a user can freely access inputs/buttons/links.

Change-Id: I7a3f6677eff0bc95e8127973d07cec78e3465c7b
oretests/src/android/webkit/AccessibilityInjectorTest.java
58fc2d39e80c926bc42272fd2878395fb7d9b87d 21-Jan-2011 Yu Shan Emily Lau <yslau@google.com> am 588b1e45: Merge "Change the default ssid from GoogleGuest to the opennet for the power test." into honeycomb

* commit '588b1e4511d67f080449c3d49fd0d4bfc2bec79f':
Change the default ssid from GoogleGuest to the opennet for the power test.
3d273da8fa08ddcb16b8fefa35aff10b45778ddc 21-Jan-2011 Yu Shan Emily Lau <yslau@google.com> Change the default ssid from GoogleGuest to the opennet for the power test.

Change-Id: I63bae360d283dc5224790aaccbd879015402187d
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
85d5b532dd40e78844e5d9d3cce9e6583d352a1a 19-Jan-2011 Eric Rowe <erowe@google.com> am f38bddbe: DO NOT MERGE Add connect HID/NAP BT stress test

* commit 'f38bddbeb42988c7960e20585aeee9ae64f4b985':
DO NOT MERGE Add connect HID/NAP BT stress test
993add8297bb5eec254180055cc4824bbfadd18c 19-Jan-2011 Eric Rowe <erowe@google.com> am a0d4d80f: DO NOT MERGE Cleaned up BT test utils

* commit 'a0d4d80fd2feaa04cb5f5242acd159cd783b25d4':
DO NOT MERGE Cleaned up BT test utils
f38bddbeb42988c7960e20585aeee9ae64f4b985 08-Dec-2010 Eric Rowe <erowe@google.com> DO NOT MERGE Add connect HID/NAP BT stress test

Change-Id: I1d8cd5cb45583d1c4c5e94e72abbd8a9f04f53cf
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
a0d4d80fd2feaa04cb5f5242acd159cd783b25d4 04-Dec-2010 Eric Rowe <erowe@google.com> DO NOT MERGE Cleaned up BT test utils

Change-Id: I905a468a04b5730258a9e6525165e4c4013d30c8
oretests/src/android/bluetooth/BluetoothTestUtils.java
a33dd09b5cc62b50afc3a15cd8b67b5344756f1e 17-Jan-2011 Kenny Root <kroot@google.com> am d6c54d97: Merge "Revert "Add the {get,set}PackageObbPaths calls to API"" into honeycomb

* commit 'd6c54d97867edd566700c535f3edf57dd4396350':
Revert "Add the {get,set}PackageObbPaths calls to API"
a1cbb94dbc9a82d4eb3a47242fe161af21803858 17-Jan-2011 Kenny Root <kroot@google.com> Revert "Add the {get,set}PackageObbPaths calls to API"

This reverts commit 5d40fe9c6846ba765072e50ed1254293cb9195e4.

Change-Id: Ie41010c92fb860b19a12bcf63f6fe95ffa68da81
oretests/src/android/content/pm/PackageManagerTests.java
e26aa3f78a33af5720e141e98a1ab0c77ef0456d 17-Jan-2011 Kenny Root <kroot@google.com> am 34d2b41e: Revert "Add the {get,set}PackageObbPaths calls to API"

* commit '34d2b41e48281d1df2c844e004740f008e699093':
Revert "Add the {get,set}PackageObbPaths calls to API"
34d2b41e48281d1df2c844e004740f008e699093 17-Jan-2011 Kenny Root <kroot@google.com> Revert "Add the {get,set}PackageObbPaths calls to API"

This reverts commit 6c4d904851772313930f800ac7c323cf90c709bb.

Going with a different tactic that doesn't dump stuff on
PackageManagerService.

Bug: 3214719
Change-Id: I0bbeccf3c21d264deda4256eb53713d2c98284f4
oretests/src/android/content/pm/PackageManagerTests.java
d9fa11b446da5dbc92776518c20bab1f04e55537 14-Jan-2011 Kenny Root <kroot@google.com> am 312206b9: Merge "Add the {get,set}PackageObbPaths calls to API" into honeycomb

* commit '312206b98749bbe395416634e6e82bd242b1d5f2':
Add the {get,set}PackageObbPaths calls to API
5d40fe9c6846ba765072e50ed1254293cb9195e4 14-Jan-2011 Kenny Root <kroot@google.com> Add the {get,set}PackageObbPaths calls to API

Add getPackageObbPaths() and setPackageObbPaths() to the public API.

Bug: 3214719
Change-Id: I8627b5f674a795d5780eb5c08911419110670a41
oretests/src/android/content/pm/PackageManagerTests.java
575fbf612a69715025de1fd543aa5b2aaa2d5ec4 13-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> am 06e32b43: Merge "Updating the WebView accessibility key bindings after discussion with the access-eng team" into honeycomb

* commit '06e32b434b62b22eeee900851ff56f2098ddc019':
Updating the WebView accessibility key bindings after discussion with the access-eng team
bfc3ce78f4b9b4a720e48b3cc276e81a3fa8cfb2 13-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Updating the WebView accessibility key bindings after discussion with the access-eng team

Change-Id: I39a303864b94a8a11b6cded9b8bb23041ad91502
oretests/src/android/webkit/AccessibilityInjectorTest.java
470750793b6e930a323ee63cbed05c43dc435ba1 13-Jan-2011 Kenny Root <kroot@google.com> am e8c04db7: Merge "Add the {get,set}PackageObbPaths calls to API" into gingerbread

* commit 'e8c04db71e347396e9537ead7113ba9f46706e44':
Add the {get,set}PackageObbPaths calls to API
3c5637a457278489903a97c0c8f65b997387db4c 13-Jan-2011 Xia Wang <xiaw@google.com> am 1aaae92f: Merge "Wait for Wi-Fi state change before set the state verification criteria. bug: 3336896" into honeycomb

* commit '1aaae92f990bad51d503fe692def01191fda4db7':
Wait for Wi-Fi state change before set the state verification criteria. bug: 3336896
c31e095e2b3b6966f97766a7deee44fe0b92f96b 13-Jan-2011 Kenny Root <kroot@google.com> am e7b2310a: Merge "Make sure AppCacheTest casts to long" into honeycomb

* commit 'e7b2310a856889aa1e683104039033ada3f6b696':
Make sure AppCacheTest casts to long
1aaae92f990bad51d503fe692def01191fda4db7 12-Jan-2011 Xia Wang <xiaw@google.com> Merge "Wait for Wi-Fi state change before set the state verification criteria. bug: 3336896" into honeycomb
6c46760b723cf010a456f71b5d3013bff60f33d8 12-Jan-2011 Kenny Root <kroot@google.com> Make sure AppCacheTest casts to long

AppCacheTest was multiplying two integers that were too large for
devices that had more free space than 32-bits could represent.

Hopefully no one releases devices with 1TB soon.

The testAppCacheClear test doesn't work currently because it has an
"imax" attribute that doesn't allow the disk to be filled up entirely.
It only writes a couple hundred MB before it gives up.

Bug: 3216419
Change-Id: Ie371f42211bab65f2c767b36d9837ce76922501e
oretests/src/android/content/pm/AppCacheTest.java
aee96e9773c0bddc64f80c4d9ebc0b132726ea1d 12-Jan-2011 Kenny Root <kroot@google.com> am 5e9ba49f: Merge "Skip SD card tests on devices without SD cards" into honeycomb

* commit '5e9ba49f5efed4f0adc7ffcf5052668cdfd92a25':
Skip SD card tests on devices without SD cards
3c6768958433a7a1f1724ab97481b2c8affcfba1 12-Jan-2011 Kenny Root <kroot@google.com> Skip SD card tests on devices without SD cards

Tests were giving false failures when they should instead be skipped.
Forcing an install to an SD card on a device without one shouldn't count
as a failure. It's expected behavior.

Bug: 3216422
Change-Id: Ia523861d1331e74c76b434f7ba73b642d474a9cc
oretests/src/android/content/pm/PackageManagerTests.java
43194ce05eef26665572fb248a108fd24d247a8f 12-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 52d70722: am cb842753: Merge "Closing cursor in finalizer to avoid GREF and fd leak in acore"

* commit '52d70722654548d156bd7a1cb8c1f05b94b09f06':
Closing cursor in finalizer to avoid GREF and fd leak in acore
2dc2991f5833c9ca72e5e4d1f7bdc1c6c8caca91 12-Jan-2011 Xia Wang <xiaw@google.com> Wait for Wi-Fi state change before set the state verification criteria.
bug: 3336896

Change-Id: If4faf55d1c9a326a0cbd95013b8a5edce562230e
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
eb97c0ddc063176c26065fc6855188edf0c16e03 10-Jan-2011 Jesse Wilson <jessewilson@google.com> Patch new JSON APIs with changes informed by GSON.

Change-Id: I86c12a123080cc06ab23d11d1563bb52c5902517
oretests/src/android/util/JsonReaderTest.java
oretests/src/android/util/JsonWriterTest.java
52d70722654548d156bd7a1cb8c1f05b94b09f06 10-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am cb842753: Merge "Closing cursor in finalizer to avoid GREF and fd leak in acore"

* commit 'cb8427538dfdc5eae941e377b11bfd11a95fc5a5':
Closing cursor in finalizer to avoid GREF and fd leak in acore
872a52c6b637faf75262b83fe68ff4e0d9fe044c 20-Dec-2010 Johannes Carlsson <johannes.carlsson.x@sonyericsson.com> Closing cursor in finalizer to avoid GREF and fd leak in acore

The finalize() call did not clean up completely, this eventually
caused the android.process.acore to crash since it ran out of fds
and GREF to increased above 2000 if an application forgot to close
its cursor objects. A warning was also added when this happens so
that application developers can correct their mistake. The
included test case tries to verify that the finalizer works as
expected by creating a bunch of Cursor objects without closing
them (without this fix the acore process crashes after about 400
iterations and the test case ends with "Process crashed").

Change-Id: I11e485cef1ac02e718b2742108aa88793666c31d
oretests/src/android/content/ContentResolverTest.java
6c4d904851772313930f800ac7c323cf90c709bb 19-Nov-2010 Kenny Root <kroot@google.com> Add the {get,set}PackageObbPaths calls to API

Add getPackageObbPaths() and setPackageObbPaths() to the public API.

Bug: 3214719
Change-Id: Icb9f2f92f8c59bb3d31317f609854e81abbd1449
oretests/src/android/content/pm/PackageManagerTests.java
b0512c372587f366f0b0bd859b22a344a5d5a520 09-Jan-2011 Kenny Root <kroot@google.com> Merge "Fix check for required features" into honeycomb
1683afac148f5bce186f7af7a6a8ea6294ecd379 07-Jan-2011 Kenny Root <kroot@google.com> Fix check for required features

The required features check was in an null check for usesLibraries, so
it wasn't checking for required features when an application did not use
a library.

Bug: 3331713
Change-Id: I96d366ba00d4962b84f3796be97e2b622eb331a5
oretests/apks/install_uses_feature/Android.mk
oretests/apks/install_uses_feature/AndroidManifest.xml
oretests/apks/install_uses_feature/res/values/strings.xml
oretests/res/raw/install_uses_feature
oretests/src/android/content/pm/PackageManagerTests.java
79ff914f2183a5f0a4121ef06112409e1c699ae7 07-Jan-2011 Gilles Debunne <debunne@google.com> Added support for Unicode surrogate characters in word selection

Inspired by https://review.source.android.com/#change,16606

Change-Id: I896354f5aba83c1919c008f07b6d0b2abf0b8e01
oretests/src/android/widget/TextViewWordLimitsTest.java
87380bcaebe63bdcd44828f137b2b2b0ba952f0a 04-Jan-2011 Gilles Debunne <debunne@google.com> Added support for asian characters in text selection.

Inspired by https://review.source.android.com/#change,16606

Test class has been revamped to mimic new behavior: selectCurrentWord
is no longer used to add words to the dictionary. We rely on the suggestion
bar in the IME for that.

Change-Id: I1cb88df54dffb166c75f75fefb743ff55a33519b
oretests/src/android/widget/TextViewWordLimitsTest.java
6141e13f6e84846ae531358a8bcbf6d2102b1bd4 24-Dec-2010 Vasu Nori <vnori@google.com> when cursorwindow allocation fails, print the number of cursors left open

the reason for bug:3281533, bug:3127159 is probably too many cursors are left
un-closed in the process.
print the info on the number of cursors left open when the exception
"cursorwindow allocation failed" occurs.
This should help us figure out if that indeed is the reason
and which process is leaving the cursors open.

Change-Id: I4b46be63f5dfbe9b102ad7a9cf9dd21e70f71e14
oretests/src/android/database/DatabaseCursorTest.java
2967aa3e6060f582f166cdb334a0fb9ff0cb4759 28-Dec-2010 Alon Albert <aalbert@google.com> am 672ebb61: Merge "Improved ignore-backoff handling Allow a non-epidited ignore-backoff op to pass through an expidited backed off op." into gingerbread

* commit '672ebb61a755e4bbe60e4e884b1adadf186733b6':
Improved ignore-backoff handling Allow a non-epidited ignore-backoff op to pass through an expidited backed off op.
672ebb61a755e4bbe60e4e884b1adadf186733b6 28-Dec-2010 Alon Albert <aalbert@google.com> Merge "Improved ignore-backoff handling Allow a non-epidited ignore-backoff op to pass through an expidited backed off op." into gingerbread
3079d44a9df72cacb675e0356e907f794671eb6a 24-Dec-2010 Vasu Nori <vnori@google.com> Merge "fix all flaky tests to make them work consistently."
b45e726bf5df9650e8a67a7c05bf2f41f414c07d 21-Dec-2010 Irfan Sheriff <isheriff@google.com> Fix wifi broadcasts

Add the missing wifi disable broadcast and also send out
supplicant disconnect on shutdown.

Added unit test cases.

Bug: 3294055

Change-Id: Ia56a8ec9d17784c5aac5b8b369c04837f9057c54
onnectivityManagerTest/src/com/android/connectivitymanagertest/unit/WifiClientTest.java
d41fe75f09fa09fc708d389572639511d745c20e 22-Dec-2010 Alon Albert <aalbert@google.com> Improved ignore-backoff handling
Allow a non-epidited ignore-backoff op to pass through
an expidited backed off op.

To do this, I first refactored the complicated if statement:

if (best == null
|| ((bestSyncableIsUnknownAndNotARetry == syncableIsUnknownAndNotARetry)
? (best.expedited == op.expedited
? opRunTime < bestRunTime
: op.expedited)
: syncableIsUnknownAndNotARetry)) {
best = op;
bestSyncableIsUnknownAndNotARetry = syncableIsUnknownAndNotARetry;
bestRunTime = opRunTime;
}

Into a more readable:
boolean setBest = false;
if (best == null) {
setBest = true;
} else if (bestSyncableIsUnknownAndNotARetry == syncableIsUnknownAndNotARetry) {
if (best.expedited == op.expedited) {
if (opRunTime < bestRunTime) {
// if both have same level, earlier time wins
setBest = true;
}
} else {
if (op.expedited) {
setBest = true;
}
}
} else {
if (syncableIsUnknownAndNotARetry) {
setBest = true;
}
}
if (setBest) {
best = op;
bestSyncableIsUnknownAndNotARetry = syncableIsUnknownAndNotARetry;
bestRunTime = opRunTime;
}

The refactoring was all done automatically with IntelliJ to avoid human error
in the conversion.

After verifying this code still behaved as expected including the error
condition in the bug, I added handling for the cases when a non-expidited op
may override an expedited op if certain conditions occur, specificaly, if the
expidited op is backed off and the non-expidited op is not.

Finally, refactored to make it testable and added tests and logging.

Bug: 3128963

Change-Id: I131cbcec6073ea5fe425f6b5aa88ca56c02b6598
oretests/src/android/content/SyncQueueTest.java
6f35c0ecba6cb1ce5d7563a9962acf9557dbaced 18-Dec-2010 Vasu Nori <vnori@google.com> fix all flaky tests to make them work consistently.

Change-Id: I688f7e058511089bec7fa21e972e23780604d98a
oretests/src/android/app/DownloadManagerBaseTest.java
oretests/src/android/app/DownloadManagerFunctionalTest.java
oretests/src/android/app/DownloadManagerStressTest.java
20c915d80356859d8716f014a7d4950f06c38cfc 21-Dec-2010 Dianne Hackborn <hackbod@google.com> am 5261cea2: Merge "Fix issue #3224616: TimeUtils.formatDuration() can drop 0s." into gingerbread

* commit '5261cea2e0cd61801e102114039a19ab449b53fe':
Fix issue #3224616: TimeUtils.formatDuration() can drop 0s.
b057c3dbe6814b4e83126deb8631ad4780ea2082 21-Dec-2010 Xia Wang <xiaw@google.com> Merge "Few changes for Wi-Fi Stress Test"
73055f12d7764e322f3f83717525a2dba01f9ef9 16-Dec-2010 Xia Wang <xiaw@google.com> Few changes for Wi-Fi Stress Test

Add WIFI_IDLE_MS to 1min in Wi-Fi stress test. bug#3284797
Wake up device using PowerManagerService.userActivityWithForce instead
of full wake lock.
Turn screen on when running Wi-Fi tests.

Change-Id: Ib763136cef515eec8b1d25183cf7a84ae1038ef2
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
bd1c5da28dab9c3fb7e19bdadb22d7ad960fa3c3 21-Dec-2010 Jesse Wilson <jessewilson@google.com> Remove unused performance tests.

Change-Id: I5a252e314831716f99ce5fbb32d983c7473ee787
oretests/AndroidManifest.xml
f5f75104868ce699db458ce6360f3843371e594f 23-Nov-2010 Bjorn Bringert <bringert@android.com> Fix issue #3224616: TimeUtils.formatDuration() can drop 0s.

Integrated from master.

Change-Id: Ie12dd25cce03c06fafb7df1335266322df43b038
oretests/src/android/util/TimeUtilsTest.java
43c0db48d265a3d8f136d107e181e8c23455ec37 17-Dec-2010 Jesse Wilson <jessewilson@google.com> Merge "Test that DefaultHttpClient responds gracefully when the server closes a socket. http://b/2612240"
0cb0d7a2d43874895e764fabed6a6692818dc89d 17-Dec-2010 Jesse Wilson <jessewilson@google.com> Test that DefaultHttpClient responds gracefully when the server closes a socket.
http://b/2612240

Change-Id: Iafde060572f7865b72fc568b3b55578ed5dd9c94
oretests/src/android/net/http/DefaultHttpClientTest.java
d3040307abe598367ada0c878686f2b71284ef58 16-Dec-2010 Irfan Sheriff <isheriff@google.com> Merge "Fix ssid storage regression"
e8a56933de9fb9cddab9ae71a6a42fecdc15fb99 16-Dec-2010 Jesse Wilson <jessewilson@google.com> Merge "New tests for AndroidHttpClient with a proxy server."
bf1df887d4b87f7da69cd4fe9306eb0d19166d52 16-Dec-2010 Jesse Wilson <jessewilson@google.com> New tests for AndroidHttpClient with a proxy server.

Change-Id: I03ec2f1257824c8675156dd80f6045512d1a36fe
http://b/3254717
oretests/src/android/net/http/AbstractProxyTest.java
oretests/src/android/net/http/AndroidHttpClientProxyTest.java
oretests/src/android/net/http/DefaultHttpClientProxyTest.java
oretests/src/android/net/http/ProxyTest.java
58938159ec378670ea784d07aa13ac47f4730cbb 16-Dec-2010 Irfan Sheriff <isheriff@google.com> Fix ssid storage regression

I introduced a bug with change Ic12fd78f. Quite
possibly a copy-paste issue.

Bug: 3281928
Change-Id: I040fa8580c3d6d5c585d0e5cc4306daab2f44c3d
onnectivityManagerTest/src/com/android/connectivitymanagertest/unit/WifiClientTest.java
82e891b3259350a92b55969a6380ca1240ee0829 15-Dec-2010 Vasu Nori <vnori@google.com> fix downloadmanager tests. add few more. fix some. isolate flaky ones

the following work
frameworks/base/core/tests/coretests/src/android/app/DownloadManagerFunctionalTest.java
ideally, most of the tests in this should be moved to cts testsuite.
will require reformatting of comments
and probably removal of one or two tests using hidden public API.

packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java
packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ThreadingTest.java
packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/PublicApiAccessTest.java
packages/providers/DownloadProvider/tests/permission/src/com/android/providers/downloads/permission/tests/DownloadProviderPermissionsTest.java

the following need work
frameworks/base/core/tests/coretests/src/android/app/DownloadManagerStressTest.java
some of these tests fail in a flaky way. they need work

Change-Id: Ib64645005a8f5faa32e0b9a4c5cacfe6e6ae3063
oretests/AndroidManifest.xml
oretests/src/android/app/DownloadManagerBaseTest.java
oretests/src/android/app/DownloadManagerFunctionalTest.java
oretests/src/android/app/DownloadManagerIntegrationTest.java
oretests/src/android/app/DownloadManagerStressTest.java
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerBaseTest.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
8efaeb03ea1ecd633f61bdb03bb90393887f08df 11-Dec-2010 Xia Wang <xiaw@google.com> Disable airplane mode once the test is finished. #3276498
Verify wifi state in 3g->AM->3g test.

Change-Id: I3ce7ebad963c09be666b508f05eddbd0ded255d7
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
93ca011c60c140facb5a790c25a882a384460a86 10-Dec-2010 Xia Wang <xiaw@google.com> Make Wi-Fi stress tests output log consistent.
Fix: record average at the beginning of each iteration

Change-Id: Ia129348dbf79ecf7efc7169b8bbfac3755ccce63
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
0c4d04ac2e8aa62560d8d767fa1c87e5361b0b08 04-Nov-2010 Fred Quintana <fredq@google.com> allow sync adapter authors to control more policies

- let the SyncManager know that the SyncAdapter can handle
parallel syncs even within sync adapter types
- allow indicating that the sync adapter should be auto
initialized without requiring the sync adapter to run first.
When this setting is used then setIsSyncable(1) is automatically
called for the sync adapter.

Change-Id: Ib40eba95c2556eaee4bb0fe715f379af1b72b84a
oretests/src/android/content/SyncOperationTest.java
02b93914b47f3e5a47fbeddbec7ff151c7ee4f35 08-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Merge "bug 3248277 android.webkit.AccessibilityInjectorTest tests are flaky on trygon"
f9dee3b1d314365cb2bb5c6574d287d6a7c3d241 08-Dec-2010 Eric Rowe <erowe@google.com> Merge "Allow extra flags to be fired in BT stress tests"
8c1c1e875e836cfb2377effdf850f5caa1fe6f4d 08-Dec-2010 Xia Wang <xiaw@google.com> Make the scan test log consistent.

Change-Id: I44fd790c21fed6bb2b615a047b762b5ac7c451bb
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
ea26a4feb6defa465ce13dc3e718f6e9f58269c4 07-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> bug 3248277 android.webkit.AccessibilityInjectorTest tests are flaky on trygon

Change-Id: I06332bc6eafb692b9ec829a093d23eccde897a2a
oretests/src/android/webkit/AccessibilityInjectorTest.java
90e1c782a63475cd9b3973936decf6a4f6c6148f 03-Dec-2010 Xia Wang <xiaw@google.com> Add Wi-Fi stress tests.

- Wi-Fi scan stress
- Wi-Fi reconnection stress
- Measure Wi-Fi scanning performance:
. Average scanning time
. Scanning quality

Change-Id: Ifce496876811816b452aed4ae9642fdb2db44798
onnectivityManagerTest/Android.mk
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiStressTest.java
ee3567558f594c9039a7605d88d5671bcf465488 07-Dec-2010 Jesse Wilson <jessewilson@google.com> Merge "Test that we use proxies specified by system properties."
10733a71c5557861160292e07de011ea9a4db25c 07-Dec-2010 Jesse Wilson <jessewilson@google.com> Test that we use proxies specified by system properties.

This tests that we use the properties and also that the
precedence prefers client and request properties.

Change-Id: I480dacaf373e3ddd7642d3c918fa50695b36cdba
http://b/3254717
oretests/src/android/net/http/HttpsThroughHttpProxyTest.java
oretests/src/android/net/http/ProxyTest.java
384977fceaba842fd4a5f64111a2266c9e61dba5 06-Dec-2010 Fred Quintana <fredq@google.com> Merge "add caching to the AccountManagerService"
56285a60e83138bb4b4f2d3bdec91b2f3ca11aa2 02-Dec-2010 Fred Quintana <fredq@google.com> add caching to the AccountManagerService

- cache the accounts, userdata and authtokens
- make the AccountManagerServiceTest work again
- add a log statement for every binder call

http://b/issue?id=3188457

Change-Id: I96b94b9b690cf391fe4341e2a72893a6d823777b
oretests/src/android/accounts/AccountManagerServiceTest.java
3c3743c5413a81c998f2801573481f65e9e25072 03-Dec-2010 Xia Wang <xiaw@google.com> Merge "Add Wi-Fi connection test for static IP"
a42a1e6b6fb6acc9ca327523ae456e464f8aedc1 23-Nov-2010 Xia Wang <xiaw@google.com> Add Wi-Fi connection test for static IP

- Add support in access point parser to support static ip settings
- Add Wi-Fi test with static IP configuration
- Use WifiManager new APIs
- Fix issue: if the expected AP is not in the scan list, retry scanning.
Maximum is 5.
- Fix issue: wait for wifi state change before connecting to AP.

Change-Id: Id09b921c8a6a4b14f3c65cdea0b58c7e6f395520
onnectivityManagerTest/assets/accesspoints.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
5343f5a84e66cc0806d20c16b96e612e80131ac2 02-Dec-2010 Xia Wang <xiaw@google.com> am 3591bebd: Merge "Restore Wi-Fi configuration after the test. DO NOT MERGE" into gingerbread

* commit '3591bebd5957a8547fc54659179a19440636e7f9':
Restore Wi-Fi configuration after the test. DO NOT MERGE
fddbe98cca2c5ab301337cc5e20e8b25a779822a 30-Nov-2010 Xia Wang <xiaw@google.com> Restore Wi-Fi configuration after the test. DO NOT MERGE

- save Wi-Fi configuration and restore it after the test, other tests
may need data connection
- Fix issue: reset dhcp after parsing a static IP setting.

bug: 3240713

Change-Id: I2158cab6fb6751414893b6a950d9e5bb20021645
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
5d0ed7b952667a1506585683c9eb5fe5ed7f0af2 22-Nov-2010 Eric Rowe <erowe@google.com> Allow extra flags to be fired in BT stress tests

Change-Id: I69a7748a3cbbd5aa7d2e4e3d9201389d67180761
oretests/src/android/bluetooth/BluetoothTestUtils.java
47413708eb42753d891882f488c2d6399b298169 01-Dec-2010 Jesse Wilson <jessewilson@google.com> Add a test to demonstrate parsing of trailing URI parameters.

Change-Id: I1fde21381cf74b5e4847bb2c2a9ef52f8ac6a2bb
http://b/3124097
oretests/src/android/net/UriTest.java
a23fff33517ec4b117064dbc481862abfc55a4c2 24-Nov-2010 Xia Wang <xiaw@google.com> am c1c04ad0: Merge "Add Wi-Fi tests for static IP. DO NOT MERGE" into gingerbread

* commit 'c1c04ad047d7ca2f13aa5c9883da7219df5bee57':
Add Wi-Fi tests for static IP. DO NOT MERGE
93fbae34ce8b6a1907b6f1daf42f17e3f0025346 24-Nov-2010 Bjorn Bringert <bringert@android.com> Merge "Don't drop zeros in the second position in formatDuration()"
7e118b5ba06fd285a2bef593f481571903b22421 24-Nov-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2898737 (add unit tests for SyncOperation.toKey())

Change-Id: I25ae95c9ca67ae5dcb71ff427d976e3e93b48125
oretests/src/android/content/SyncOperationTest.java
901b3796fd0954cc4b01bf95dbcbd88d87414e84 23-Nov-2010 Bjorn Bringert <bringert@android.com> Don't drop zeros in the second position in formatDuration()

Bug: 3223250
Change-Id: I462c96af51cc052f9df1dc3d2c668551b10155ea
oretests/src/android/util/TimeUtilsTest.java
739d0aed02fd7239a06240b37763fb21c28406ba 23-Nov-2010 Xia Wang <xiaw@google.com> Add Wi-Fi tests for static IP. DO NOT MERGE

- Add support in parser to parse static IP settings
- Add test for static IP configuration

Change-Id: I37e11ceb0f34c87113d8281b4de09893506c29e7
onnectivityManagerTest/assets/accesspoints.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
ef11d3289ed334f1704dc5e2fdcaba8c34b6c2a6 22-Nov-2010 Xia Wang <xiaw@google.com> am 6bdd6937: am 5df8c155: Merge "Add Wifi Tethering stress test" into gingerbread

* commit '6bdd69370fe2bda7adc7055f62165fccd944b192':
Add Wifi Tethering stress test
6bdd69370fe2bda7adc7055f62165fccd944b192 22-Nov-2010 Xia Wang <xiaw@google.com> am 5df8c155: Merge "Add Wifi Tethering stress test" into gingerbread

* commit '5df8c155872833647ac56951ab90bd26a9af9480':
Add Wifi Tethering stress test
6026d52710d7a6195a33885020d29aa1330fa855 16-Nov-2010 Xia Wang <xiaw@google.com> Add Wifi Tethering stress test

Stress Wifi driver loading and unloading by enable/disable access point
mode.

Change-Id: Ie31266d2b9665cb304473f1c14c83bc57e9920f2
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerStressTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/stress/WifiApStress.java
a8bbc11afc0f93143c1fd200108a51c95507cc43 19-Nov-2010 Jesse Wilson <jessewilson@google.com> Merge "Decode JSON literal types eagerly and with our own decoder."
9d9b4e70a1e7f9ffb6cedd8a86fdd926f2a28202 18-Nov-2010 Jesse Wilson <jessewilson@google.com> Decode JSON literal types eagerly and with our own decoder.

Previously we relied on Double.parseDouble() to decode tokens. Since
that method is expensive, we deferred calling it unless absolutely
necessary.

Now we decode the literal type immediately. For efficiency we decode
the token right out of the char buffer. This makes things more
complicated but it saves many calls to charAt().

With this change overall performance is 7% faster for JSON documents
cited in the bug.

benchmark run ms linear runtime %
GsonParseFull no switch, no int parse 309 ============================ 93%
GsonParseFull baseline 330 ============================== 100%

http://b/3201883
Change-Id: I436b6769956b1357a17c807a327d3a234691c73f
oretests/src/android/util/JsonReaderTest.java
248caac22ef7be6c2357512a1ab7d4a9218f12a8 16-Nov-2010 Eric Rowe <erowe@google.com> Merge "Remove asserts in bluetooth test utils"
16013b37cbfd58a68005dc0ecc9f10c0293a9e32 16-Nov-2010 Eric Rowe <erowe@google.com> Merge "Add acceptPair method to BT stress."
4e74e181d1f06b31ebe98589dbe2ee9ddb722173 16-Nov-2010 Xia Wang <xiaw@google.com> am f55c9736: am d0a8f54a: Merge "Add Wi-Fi connection functional tests." into gingerbread

* commit 'f55c973637f2b17de0f5543260e7e409a8635112':
Add Wi-Fi connection functional tests.
f55c973637f2b17de0f5543260e7e409a8635112 16-Nov-2010 Xia Wang <xiaw@google.com> am d0a8f54a: Merge "Add Wi-Fi connection functional tests." into gingerbread

* commit 'd0a8f54a5bcd6a10eaaa88d888c3cbb83869532c':
Add Wi-Fi connection functional tests.
b49aa60829ab8fadec2f4c0661271100691d8225 16-Nov-2010 Eric Rowe <erowe@google.com> Remove asserts in bluetooth test utils

Certain checks were causing the test to fail due to a race condition.

Bug: b/3198566
Change-Id: I9389a1936f6032939851922c052ef8ed32e5283b
oretests/src/android/bluetooth/BluetoothTestUtils.java
ca1f2b1a1e8cb785be5ebbcf7ded7c921cbf80a7 13-Nov-2010 Xia Wang <xiaw@google.com> Add Wi-Fi connection functional tests.

- Add a XML parser to parse Wi-Fi configurations
- Add Wifi connection tests
- Fix issue: failure in setup will block the next tests.
call tearDown() if the test fails at setUp().

Change-Id: I1a380fa02ebc96b69165d1514da12df985224e8d
onnectivityManagerTest/assets/accesspoints.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/AccessPointParserHelper.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/WifiConnectionTest.java
23c067692be74c4fcd50cea48f9d469ba5288213 04-Nov-2010 Eric Rowe <erowe@google.com> Add acceptPair method to BT stress.

Add a method to the test utils which waits to accept a bonding request from
another device. This is identical to the pairing method except that it
waits for a remote pair request instead of initiating the pairing
request itself. Also, add a test method to the test utils.

Change-Id: I97e215d3412d4b61757d6dc011b90cc5f2c8f084
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
6b888d98f7fffe5b87b3d5421d2f9a119899c7dd 15-Nov-2010 Wink Saville <wink@google.com> Move AsyncChannelTest and HierarchicalStateMachineTest to proper directory.

Change-Id: Ifa0f14aad3fee7cad47cdf762c6cff457b56a473
oretests/src/android/os/AsyncChannelTest.java
oretests/src/android/os/HierarchicalStateMachineTest.java
oretests/src/com/android/internal/util/AsyncChannelTest.java
oretests/src/com/android/internal/util/HierarchicalStateMachineTest.java
385125c65452b7e7e9305ec09e3db721474bb5c3 09-Nov-2010 Jesse Wilson <jessewilson@google.com> Merge "Test to demonstrate that HTTP cookie hostnames aren't case-sensitive."
40811b01542cec7a76bdfee79e77d1f684731d37 09-Nov-2010 Jesse Wilson <jessewilson@google.com> Test to demonstrate that HTTP cookie hostnames aren't case-sensitive.

Change-Id: I05c764876acdc1e85b41f4558bd03fff526da1b4
http://b/3167208
oretests/src/android/net/http/CookiesTest.java
553a53ef9ff789dff8b5a74dfea4d6f37feeb263 04-Nov-2010 Ficus Kirkpatrick <ficus@android.com> Make saveRecentQuery() async.

Bug: 3163612
Change-Id: Idd3c1925e0f1dc3272dd1303d8f2907c5c5fca8b
oretests/src/android/content/SearchRecentSuggestionsProviderTest.java
oretests/src/android/provider/SearchRecentSuggestionsProviderTest.java
oretests/src/android/provider/TestProvider.java
5de6d7a162f7b207e48a9078b9d0fe2700044976 04-Nov-2010 Eric Rowe <erowe@google.com> am 82fc12af: Merge "DO NOT MERGE Add acceptPair method to BT stress." into gingerbread

* commit '82fc12af416e351cb0a9d978734d585ab66d3f27':
DO NOT MERGE Add acceptPair method to BT stress.
776e64da8832844882b5116ab3e4af75ea28e27a 04-Nov-2010 Eric Rowe <erowe@google.com> DO NOT MERGE Add acceptPair method to BT stress.

Add a method to the test utils which waits to accept a bonding request from
another device. This is identical to the pairing method except that it
waits for a remote pair request instead of initiating the pairing
request itself. Also, add a test method to the test utils.

Change-Id: I6391d03e9f33c040afd64d73083acfe3184251eb
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
acc863cabbd6c03f4fe58e568f5bb3d119943ea9 03-Nov-2010 Irfan Sheriff <isheriff@google.com> Merge "Use AsynChannel for synchronous API"
1406bcb75150e8386b4d858f27089cc1359e7f14 28-Oct-2010 Irfan Sheriff <isheriff@google.com> Use AsynChannel for synchronous API

also cleaned up some unnecessary synchronous commands from state machine,
and fixed an issue with a synchronous WPS command

Change-Id: I55bf4379d9810e11f2ba2e03e2e703b132d1488f
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerUnitTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/unit/WifiClientTest.java
51d10323e9a7374403c2b13befcff5b76c668ca5 02-Nov-2010 Neal Nguyen <tommyn@google.com> am 424963ef: am 5dda76a7: Adding some StorageManager integration test infrastructure and some basic tests.

* commit '424963ef8d46c34d67ea24d25735944c0d87409c':
Adding some StorageManager integration test infrastructure and some basic tests.
424963ef8d46c34d67ea24d25735944c0d87409c 02-Nov-2010 Neal Nguyen <tommyn@google.com> am 5dda76a7: Adding some StorageManager integration test infrastructure and some basic tests.

* commit '5dda76a72e8bb4630fb5fd38a42e7bceb5b9c954':
Adding some StorageManager integration test infrastructure and some basic tests.
5dda76a72e8bb4630fb5fd38a42e7bceb5b9c954 11-Oct-2010 Neal Nguyen <tommyn@google.com> Adding some StorageManager integration test infrastructure and some basic tests.

More interesting tests to come in the form of host-based tests.

Change-Id: Ifdedf7ef26ed9889871c902af20164df0498cf07
oretests/res/raw/obb_enc_file100_orig1.obb
oretests/res/raw/obb_enc_file100_orig3.obb
oretests/res/raw/obb_file1.obb
oretests/res/raw/obb_file2.obb
oretests/res/raw/obb_file2_nosign.obb
oretests/res/raw/obb_file3.obb
oretests/res/raw/obb_file3_bad_packagename.obb
oretests/src/android/os/storage/StorageManagerBaseTest.java
oretests/src/android/os/storage/StorageManagerIntegrationTest.java
879ed85598800bd2d87b7fe96d0a763d9b954a6e 02-Nov-2010 Neal Nguyen <tommyn@google.com> am af35b8f4: am bd06f02d: Cleaning up some more flakiness in DownloadManager tests.

* commit 'af35b8f43262a27c941c396186501a9695954cd8':
Cleaning up some more flakiness in DownloadManager tests.
af35b8f43262a27c941c396186501a9695954cd8 02-Nov-2010 Neal Nguyen <tommyn@google.com> am bd06f02d: Cleaning up some more flakiness in DownloadManager tests.

* commit 'bd06f02d02e07ca15e420ee9e50e35253646ba64':
Cleaning up some more flakiness in DownloadManager tests.
bd06f02d02e07ca15e420ee9e50e35253646ba64 21-Oct-2010 Neal Nguyen <tommyn@google.com> Cleaning up some more flakiness in DownloadManager tests.

A couple of logic fixes (synchronization, poll time), and adding a little more test
logging info.

Change-Id: I8da71f87fd1e211913f84ec517762dca81f87292
oretests/src/android/app/DownloadManagerBaseTest.java
oretests/src/android/app/DownloadManagerStressTest.java
5e7d4a7d010a8dd7e8f1c922fc844043c3c6175c 30-Oct-2010 Neal Nguyen <tommyn@google.com> am 2202c8b9: am 06875afa: Merge "A little tweaking of DL Manager tests and adding better debugging output." into gingerbread

* commit '2202c8b9f25c74e2b7f87090f9963683744b573e':
A little tweaking of DL Manager tests and adding better debugging output.
2202c8b9f25c74e2b7f87090f9963683744b573e 30-Oct-2010 Neal Nguyen <tommyn@google.com> am 06875afa: Merge "A little tweaking of DL Manager tests and adding better debugging output." into gingerbread

* commit '06875afad6101892a735f79aeb2c7bdbb58c26fa':
A little tweaking of DL Manager tests and adding better debugging output.
65c36e6133be04e008bc164b62d42884ff06a13a 25-Oct-2010 Neal Nguyen <tommyn@google.com> A little tweaking of DL Manager tests and adding better debugging output.

Adding more detail to the output logging to help track down issues, fixing some
download completed notification counter flakiness and making reboot test more
robust, and reducing the number of concurrent downloads in testMultipleDownloads()
to 10. After talking with Vasu, this is probably more appropriate as it is
closer to typical usage scenarios, and as a side effect should trim some
time from the test runs. Large numbers of downloads will be left for stress
testing.

Change-Id: Ie337cfe9b8d27299d70553e39c60e241ff3afe66
oretests/src/android/app/DownloadManagerBaseTest.java
oretests/src/android/app/DownloadManagerIntegrationTest.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
826af6266c79d76b81fe850b9cd3d351597e4adb 23-Sep-2010 Eric Rowe <erowe@google.com> Modify bluetooth test cases GB for new HC APIs

Modify bluetooth stress tests pairing and connection test cases for new
honeycomb bluetooth APIs and severly refactor code, including better
organization of broadcast receivers, using broadcast receivers to record
the time (instead of getting the time at the end of the poll).

Change-Id: I3ef28d54d1a013697f67f4c7c8a96aaadcc747d9
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
5dcf000117ba97e13c6c6d1d5105c0fa49fa48f6 23-Oct-2010 Eric Rowe <erowe@google.com> am 288f1373: am 8de43ab5: Merge "Change disable timeout for BT disable stress test" into gingerbread

Merge commit '288f13730e6535fb36581781196a55a6f2d198d6'

* commit '288f13730e6535fb36581781196a55a6f2d198d6':
Change disable timeout for BT disable stress test
288f13730e6535fb36581781196a55a6f2d198d6 23-Oct-2010 Eric Rowe <erowe@google.com> am 8de43ab5: Merge "Change disable timeout for BT disable stress test" into gingerbread

Merge commit '8de43ab5ba818b9552326d5383729b3e6fbf7c82' into gingerbread-plus-aosp

* commit '8de43ab5ba818b9552326d5383729b3e6fbf7c82':
Change disable timeout for BT disable stress test
867568314d160ba098c0c72558691536a2385933 23-Oct-2010 Eric Rowe <erowe@google.com> Change disable timeout for BT disable stress test

Bug: b/3125900
Change-Id: Ie1f599f1c418fc40c29debd1401297441a2a9db3
oretests/src/android/bluetooth/BluetoothTestUtils.java
d20a5d6b5a821e28d73eba6502a2135134014a84 21-Oct-2010 Wink Saville <wink@google.com> Add AsyncChannel and AsyncService.

Change-Id: Ie6f9aed58f49defcd1c051611ce791e2e62a9474
oretests/src/android/os/AsyncChannelTest.java
86bf0c7b69856124feb41fb1a938dce1f6695949 18-Oct-2010 Eric Rowe <erowe@google.com> am 72a635a1: Merge "DO NOT MERGE Add additional options and receiver to BT tests" into gingerbread

Merge commit '72a635a1e08c1fe316dd91786774677abb11aafa' into gingerbread-plus-aosp

* commit '72a635a1e08c1fe316dd91786774677abb11aafa':
DO NOT MERGE Add additional options and receiver to BT tests
72a635a1e08c1fe316dd91786774677abb11aafa 18-Oct-2010 Eric Rowe <erowe@google.com> Merge "DO NOT MERGE Add additional options and receiver to BT tests" into gingerbread
ad4eeb6e76420c434c7239cc1f7df6f8a6baf63e 16-Oct-2010 Jesse Wilson <jessewilson@google.com> am 9bb8e5cc: am 8f666c2d: Merge "Test that we don\'t leak sensitive information when logging cookies." into gingerbread

Merge commit '9bb8e5cc3e9f8ae2c46967ee1fd422f3bf1e9429'

* commit '9bb8e5cc3e9f8ae2c46967ee1fd422f3bf1e9429':
Test that we don't leak sensitive information when logging cookies.
fcab0f5502410b975afe045354bbae31ccba68a5 15-Oct-2010 Kenny Root <kroot@google.com> am 8fda1636: am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread

Merge commit '8fda1636e3e35f060b9046294efd3c062a1fdb84'

* commit '8fda1636e3e35f060b9046294efd3c062a1fdb84':
OBB: use PBKDF2 for key generation.
9bb8e5cc3e9f8ae2c46967ee1fd422f3bf1e9429 15-Oct-2010 Jesse Wilson <jessewilson@google.com> am 8f666c2d: Merge "Test that we don\'t leak sensitive information when logging cookies." into gingerbread

Merge commit '8f666c2db1811b2f1797a692d6547362f3cd9954' into gingerbread-plus-aosp

* commit '8f666c2db1811b2f1797a692d6547362f3cd9954':
Test that we don't leak sensitive information when logging cookies.
8f666c2db1811b2f1797a692d6547362f3cd9954 15-Oct-2010 Jesse Wilson <jessewilson@google.com> Merge "Test that we don't leak sensitive information when logging cookies." into gingerbread
2102bde9d4afc2a7246b62ceaab495a8ec7401f3 15-Oct-2010 Jesse Wilson <jessewilson@google.com> Test that we don't leak sensitive information when logging cookies.

Change-Id: I048a785fa7209841ff1bffc365ed5e1bceb53522
http://b/3095990
oretests/src/android/net/http/CookiesTest.java
8fda1636e3e35f060b9046294efd3c062a1fdb84 14-Oct-2010 Kenny Root <kroot@google.com> am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread

Merge commit 'bdf8034c657147226b2390eef113ff841e0d6065' into gingerbread-plus-aosp

* commit 'bdf8034c657147226b2390eef113ff841e0d6065':
OBB: use PBKDF2 for key generation.
c9acd79f03422b18f8b866a040b6626cf51e2712 23-Sep-2010 Eric Rowe <erowe@google.com> DO NOT MERGE Add additional options and receiver to BT tests

Add address and iterations options to bluetooth pair stress test. Refactored
BroadcastReceiver into two receivers with one specific to pairing. The pairing
receiver checks that we are pairing with the correct device, and also will
accept the pairing dialogue/enter a predefined password automatically.

Change-Id: I9c5283f8e9747e8b0129b7400a6b1345e78e46eb
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
3b1abba6bbc895d63da3e82e9b158c01bd12eddd 14-Oct-2010 Kenny Root <kroot@google.com> OBB: use PBKDF2 for key generation.

Switch to using PBKDF2 for the key generation for OBBs. Any previously
generated OBBs will stop being read correctly. A small pbkdf2gen program
is available to allow generation of appropriate keys with the salts.

Bug: 3059950
Change-Id: If4305c989fd692fd1150eb270dbf751e09c37295
oretests/res/raw/test1.obb
oretests/res/raw/test1_wrongpackage.obb
0a9b54e88b9cbb30748b5f0b331aec3f3ef8d639 14-Oct-2010 Kenny Root <kroot@google.com> resolved conflicts for merge of 8bb7a1df to master

Change-Id: Ieec036f494a54eab74a27b954d1423bf981dd3f9
eb8be973c7982fe3ece0aeaeca379c3b3cdced0c 12-Oct-2010 Bjorn Bringert <bringert@android.com> Make fields in WebAddress private, add getters/setters

Change-Id: Iceaf3d648289344e53c37273f7324a79676fbef7
oretests/src/android/net/WebAddressTest.java
8bb7a1dfbb43dda49fb3c4f86181bcd7f969a832 12-Oct-2010 Kenny Root <kroot@google.com> am b4de3dca: Merge "OBB: rearrange to be entirely asynchronous" into gingerbread

Merge commit 'b4de3dca96b9ff18562062e181dcd8b83e641e45' into gingerbread-plus-aosp

* commit 'b4de3dca96b9ff18562062e181dcd8b83e641e45':
OBB: rearrange to be entirely asynchronous
af9d667ccf3e24058214cf4cc0a8aa8bc5100e3c 08-Oct-2010 Kenny Root <kroot@google.com> OBB: rearrange to be entirely asynchronous

Rearrange structure of MountService handling of OBBs to be entirely
asynchronous so we don't rely on locking as much. We still need the
locking to support dumpsys which has been improved to output all the
data structures for OBBs.

Added more tests to cover more of the error return codes.

Oh and fix a logic inversion bug.

Change-Id: I34f541192dbbb1903b24825889b8fa8f43e6e2a9
oretests/src/com/android/server/MountServiceTests.java
5bc3addb453ba1daad366862a24be654a06ff447 10-Oct-2010 Kenny Root <kroot@google.com> am 0689b60b: am 54e01e0f: Merge "Symlink application lib directory when on SD card" into gingerbread

Merge commit '0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124'

* commit '0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124':
Symlink application lib directory when on SD card
06f89ca9b17e3944af330efc2510818dca87d885 09-Oct-2010 Kenny Root <kroot@google.com> am 36455d03: am a3ee5c03: Merge "Add MountService tests and fix a bug it found" into gingerbread

Merge commit '36455d03256024981b1bf21557722a010b5e092a'

* commit '36455d03256024981b1bf21557722a010b5e092a':
Add MountService tests and fix a bug it found
0689b60b8644d7c4c76e5cdf7e6ce5cc4c5be124 08-Oct-2010 Kenny Root <kroot@google.com> am 54e01e0f: Merge "Symlink application lib directory when on SD card" into gingerbread

Merge commit '54e01e0f980cfb78153d5481f7e67cef90416174' into gingerbread-plus-aosp

* commit '54e01e0f980cfb78153d5481f7e67cef90416174':
Symlink application lib directory when on SD card
6a6b007c77e5cab7ee435506a4f65824f52028b6 08-Oct-2010 Kenny Root <kroot@google.com> Symlink application lib directory when on SD card

This will help legacy games that use dlopen() to directly access the
/data/data/<app>/lib directory before the
ApplicationInfo.nativeLibraryDir was part of the API.

Change-Id: Ie9f3e7239b6334708b5d086ffafe66a507f6d9da
oretests/src/android/content/pm/PackageManagerTests.java
c5610a4c1308e2d52108131fbdef35e432a414b6 07-Oct-2010 Kenny Root <kroot@google.com> am cfc80bd5: am 2c3360fe: Merge "Remove lingering system app native libs in /data" into gingerbread

Merge commit 'cfc80bd5c1e4f0207357b288b1b7b8374a31ba70'

* commit 'cfc80bd5c1e4f0207357b288b1b7b8374a31ba70':
Remove lingering system app native libs in /data
82aacddef99e5cfc399d02702f2a336af8fbd59f 07-Oct-2010 Eric Rowe <erowe@google.com> am f8d2acdc: Merge "DO NOT MERGE Initialize bluetooth profiles in BT stress tests" into gingerbread

Merge commit 'f8d2acdc57fd747278bb909c9e15b959e07d63b6' into gingerbread-plus-aosp

* commit 'f8d2acdc57fd747278bb909c9e15b959e07d63b6':
DO NOT MERGE Initialize bluetooth profiles in BT stress tests
f8d2acdc57fd747278bb909c9e15b959e07d63b6 07-Oct-2010 Eric Rowe <erowe@google.com> Merge "DO NOT MERGE Initialize bluetooth profiles in BT stress tests" into gingerbread
8bcc744e1bb5e26bce9a85bda0b01e56ad7198ef 07-Oct-2010 Eric Rowe <erowe@google.com> DO NOT MERGE Initialize bluetooth profiles in BT stress tests

Change-Id: I0a8b75c8686d9d6969db51d618c1ddeacb2aba87
oretests/src/android/bluetooth/BluetoothTestUtils.java
36455d03256024981b1bf21557722a010b5e092a 07-Oct-2010 Kenny Root <kroot@google.com> am a3ee5c03: Merge "Add MountService tests and fix a bug it found" into gingerbread

Merge commit 'a3ee5c0351e51f7a978ddddc37644f46051ca6ed' into gingerbread-plus-aosp

* commit 'a3ee5c0351e51f7a978ddddc37644f46051ca6ed':
Add MountService tests and fix a bug it found
c7912274b0e08365561531183bf2af106a48ec69 07-Oct-2010 Brett Chabot <brettchabot@android.com> am 111a4135: am b9a40068: Merge "Failing test cleanup." into gingerbread

Merge commit '111a4135d84485eff85bbca6a96cd91886deb7ba'

* commit '111a4135d84485eff85bbca6a96cd91886deb7ba':
Failing test cleanup.
e2562ca8f19b227cd1fed97484cef428decedb02 07-Oct-2010 Neal Nguyen <tommyn@google.com> am daa9b8c6: am 95037fb1: Merge "Fixing some flakiness of some DL Manager tests." into gingerbread

Merge commit 'daa9b8c69a3069d5533176e6caa286380b4675c2'

* commit 'daa9b8c69a3069d5533176e6caa286380b4675c2':
Fixing some flakiness of some DL Manager tests.
17eb6fb07cc6965f09c51adc70b3c291f57a784a 07-Oct-2010 Kenny Root <kroot@google.com> Add MountService tests and fix a bug it found

Add some MountService tests that are based partially on some stuff done
in PackageManagerTests. This allows us to test the OBB changes in an
easy way.

Also, it found some bugs in the DefaultContainerService connection state
machine, so fix those while we're at it.

Change-Id: I18f38593be754eb32fb6e842f88eec47e2beefce
oretests/res/raw/test1.obb
oretests/res/raw/test1_nosig.obb
oretests/res/raw/test1_wrongpackage.obb
oretests/src/com/android/server/MountServiceTests.java
c8b7971cb3e09dfd4480a4bb8875a32157b62192 06-Oct-2010 Fred Quintana <fredq@google.com> Merge "Make a separate active sync queue for initialization and regular syncs."
c2ce721fcf684189b7251a5ecbf386426490d68e 06-Oct-2010 Vasu Nori <vnori@google.com> fix broken build

Change-Id: Ic00e8b98780d48928e05ee27f855e8211fb1ec47
oretests/src/android/database/sqlite/SQLiteCursorTest.java
918339ab8255f8e1d03d8448ab1d9036c7c15173 05-Oct-2010 Fred Quintana <fredq@google.com> Make a separate active sync queue for initialization and regular syncs.

This entails allowing multiple syncs to happen in parallel, with
different limits for regular and initialization syncs.

Change-Id: I0e47c6515af5c98faf899f91855b342b0d0c708c
oretests/src/android/content/SyncQueueTest.java
790762ca8f4fa458b87f75e7e8cde965c9efe3e5 06-Oct-2010 Vasu Nori <vnori@google.com> annotate some tests large - just in case they take longer. bug:3066136

Change-Id: I89ab0454f592748f971b678a3ae23724eb6fc2e5
oretests/src/android/database/sqlite/SQLiteCursorTest.java
oretests/src/android/database/sqlite/SQLiteStatementTest.java
cfc80bd5c1e4f0207357b288b1b7b8374a31ba70 05-Oct-2010 Kenny Root <kroot@google.com> am 2c3360fe: Merge "Remove lingering system app native libs in /data" into gingerbread

Merge commit '2c3360fe9c03536cbfd77267170b73c120c071ac' into gingerbread-plus-aosp

* commit '2c3360fe9c03536cbfd77267170b73c120c071ac':
Remove lingering system app native libs in /data
831baa2e2566bf1d243c06918672abd5ff786105 05-Oct-2010 Kenny Root <kroot@google.com> Remove lingering system app native libs in /data

If a system app had a lingering native library in /data/data/<app>/lib,
it would prefer that over the one in /system/lib due to recent changed
in the Dalvik JNI class loading code.

To "fix" that we need to check if there are any native libraries in a
/data/data/<app>/lib directory for any non-updated system apps and
delete them during scanning.

Change-Id: If3a22e41a8531e9e5a44ba001dcea46253d47d45
oretests/src/android/content/pm/PackageManagerTests.java
111a4135d84485eff85bbca6a96cd91886deb7ba 05-Oct-2010 Brett Chabot <brettchabot@android.com> am b9a40068: Merge "Failing test cleanup." into gingerbread

Merge commit 'b9a40068b590b86904b40bf466571b140d0f94b4' into gingerbread-plus-aosp

* commit 'b9a40068b590b86904b40bf466571b140d0f94b4':
Failing test cleanup.
b9a40068b590b86904b40bf466571b140d0f94b4 05-Oct-2010 Brett Chabot <brettchabot@android.com> Merge "Failing test cleanup." into gingerbread
daa9b8c69a3069d5533176e6caa286380b4675c2 05-Oct-2010 Neal Nguyen <tommyn@google.com> am 95037fb1: Merge "Fixing some flakiness of some DL Manager tests." into gingerbread

Merge commit '95037fb1a633f5bdeb4e0ece2d18a4974259c368' into gingerbread-plus-aosp

* commit '95037fb1a633f5bdeb4e0ece2d18a4974259c368':
Fixing some flakiness of some DL Manager tests.
2ad24f944ee68c6e14f3a214f0eef60f8cdb9eb8 05-Oct-2010 Brett Chabot <brettchabot@android.com> Failing test cleanup.

Change-Id: I7cabc6ff2ec1fcb80dede5da03b03622a5bae021
oretests/src/android/content/SyncStorageEngineTest.java
oretests/src/com/android/internal/os/LoggingPrintStreamTest.java
63e5d79a163461651cd8bd89d3de691ef7649109 04-Oct-2010 Neal Nguyen <tommyn@google.com> Fixing some flakiness of some DL Manager tests.

Change-Id: Ie9ad4d20b8f980480ce730c7c95876d0954db8b2
oretests/src/android/app/DownloadManagerBaseTest.java
oretests/src/android/app/DownloadManagerIntegrationTest.java
9987b1534e31b0aa406943450e6b5746f3ab2c03 30-Sep-2010 Paul Westbrook <pwestbro@google.com> am 5dcaf7b0: am fcf1948a: Moved Rfc822 validator test

Merge commit '5dcaf7b0b92ad6867ed50801923fb29157edddaa'

* commit '5dcaf7b0b92ad6867ed50801923fb29157edddaa':
Moved Rfc822 validator test
825bdff3b8d8837af936eac3066b3f402c0c070b 30-Sep-2010 Steve Howard <showard@google.com> resolved conflicts for merge of 538c3fa3 to master

Change-Id: I9190ca078ffd8b51515e3d53ac5753c05110c014
5dcaf7b0b92ad6867ed50801923fb29157edddaa 30-Sep-2010 Paul Westbrook <pwestbro@google.com> am fcf1948a: Moved Rfc822 validator test

Merge commit 'fcf1948aeb0b548d1f89890d58baefd008880cb7' into gingerbread-plus-aosp

* commit 'fcf1948aeb0b548d1f89890d58baefd008880cb7':
Moved Rfc822 validator test
538c3fa35fc67d07a19aa58f7b1f993e86da5e83 30-Sep-2010 Steve Howard <showard@google.com> am cdcc0a65: Merge "Have download manager give more details when downloads are paused" into gingerbread

Merge commit 'cdcc0a65fae7e649f0f07e396dbe0dd59ceffada' into gingerbread-plus-aosp

* commit 'cdcc0a65fae7e649f0f07e396dbe0dd59ceffada':
Have download manager give more details when downloads are paused
fcf1948aeb0b548d1f89890d58baefd008880cb7 30-Sep-2010 Paul Westbrook <pwestbro@google.com> Moved Rfc822 validator test

Moved rfc822 validator test to framework/ex, as this is where
the code lives

Change-Id: Ia12e67364df9c8f9351dea423d769454a5d4e58d
oretests/src/android/text/TextUtilsTest.java
3e8c1d3a467bab889de7f92379be1f43d9c2d81e 30-Sep-2010 Steve Howard <showard@google.com> Have download manager give more details when downloads are paused

This change introduces more detailed reporting of why downloads are paused in
the download manager.

First, it adds new, more detailed status constants in android.provider.Downloads
for when a download is paused, in place of the old catch-all
STATUS_RUNNING_PAUSED. I've eliminated some dead code there as well to ease the
change.

Second, in the public API, it changes COLUMN_ERROR_CODE to COLUMN_REASON, which
now reports useful info for STATUS_PAUSED in addition to STATUS_FAILED. It adds
some new PAUSED_* constants for reason values when a download is paused, and
adds code to generate these values appropriately.

Change-Id: Ie617d1c2c59357375e19466086923ace5e2fb122
oretests/src/android/app/DownloadManagerIntegrationTest.java
oretests/src/android/app/DownloadManagerStressTest.java
d58429f9acdb33f05bdb233b7bba495de80cb336 28-Sep-2010 Steve Howard <showard@google.com> Manual merge: Move DownloadManager to android.app

Changing package at hackbod's request.

Change-Id: I867017b6a9f4684d30c6c5bd1b07f9cabecddb9f
oretests/src/android/app/DownloadManagerBaseTest.java
oretests/src/android/app/DownloadManagerIntegrationTest.java
oretests/src/android/app/DownloadManagerStressTest.java
oretests/src/android/net/DownloadManagerBaseTest.java
oretests/src/android/net/DownloadManagerIntegrationTest.java
oretests/src/android/net/DownloadManagerStressTest.java
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
9d9719c44ad05834b48542ea0fc4edbb4f59c311 28-Sep-2010 Steve Howard <showard@google.com> am 5bdb89d7: Merge "Move DownloadManager to android.app (DO NOT MERGE)" into gingerbread

Merge commit '5bdb89d7ac20d4d3e71660d7fe78002a63900399' into gingerbread-plus-aosp

* commit '5bdb89d7ac20d4d3e71660d7fe78002a63900399':
Move DownloadManager to android.app (DO NOT MERGE)
31fd85f39b554e09b2e6c1c2ccf5c186859880fa 28-Sep-2010 Steve Howard <showard@google.com> Move DownloadManager to android.app (DO NOT MERGE)

Changing package at hackbod's request. I'll merge this manually, as
there's some additional master-only code that will be to be
simultaneously changed.

Change-Id: Ibb629ec1c31807fbee31e0193c6a941d04be0117
oretests/src/android/app/DownloadManagerBaseTest.java
oretests/src/android/app/DownloadManagerIntegrationTest.java
oretests/src/android/app/DownloadManagerStressTest.java
oretests/src/android/net/DownloadManagerBaseTest.java
oretests/src/android/net/DownloadManagerIntegrationTest.java
oretests/src/android/net/DownloadManagerStressTest.java
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
ffe06127f6ea4e9ea8e797f8ba0365d1f47fe297 27-Sep-2010 Vasu Nori <vnori@google.com> remove public API setConnectionPoolSize()

because connection pool size is now settable by modifying config.xml
of the device.

Change-Id: I973cc11d7dc10c8d95ab83e2f691068f6019fa33
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
e6147f0c4bf8f6f1acf77831673cf5fe8fdd02c3 27-Sep-2010 Fabrice Di Meglio <fdimeglio@google.com> am 514a455f: am 28fa220c: Merge "Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)" into gingerbread

Merge commit '514a455f2a63d6b3366b848a585d99e8680f69aa'

* commit '514a455f2a63d6b3366b848a585d99e8680f69aa':
Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)
514a455f2a63d6b3366b848a585d99e8680f69aa 27-Sep-2010 Fabrice Di Meglio <fdimeglio@google.com> am 28fa220c: Merge "Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)" into gingerbread

Merge commit '28fa220c8da1ea2933ac96595516d1efa545c1ea' into gingerbread-plus-aosp

* commit '28fa220c8da1ea2933ac96595516d1efa545c1ea':
Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)
28fa220c8da1ea2933ac96595516d1efa545c1ea 27-Sep-2010 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)" into gingerbread
8f57caf8eda5d0e5d3c0892da49aa47c30dc1c9a 24-Sep-2010 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)

- force UTC timezone if recurrence is corresponding to an "allday" event

Change-Id: I3603438c0ad8019051ed4a8bd39d4aa7c0401eb1
oretests/src/android/pim/RecurrenceSetTest.java
43480d7b4d8a8cc4806627f91a53966b8c3c5442 23-Sep-2010 Kenny Root <kroot@google.com> am 2b1ffce1: am 7f459df9: Merge "Better errors in PackageManagerTests" into gingerbread

Merge commit '2b1ffce18301ae051a70a85254133c29b9381593'

* commit '2b1ffce18301ae051a70a85254133c29b9381593':
Better errors in PackageManagerTests
2b1ffce18301ae051a70a85254133c29b9381593 23-Sep-2010 Kenny Root <kroot@google.com> am 7f459df9: Merge "Better errors in PackageManagerTests" into gingerbread

Merge commit '7f459df9f94bc52e53d42894dea4702394fbad5c' into gingerbread-plus-aosp

* commit '7f459df9f94bc52e53d42894dea4702394fbad5c':
Better errors in PackageManagerTests
7f459df9f94bc52e53d42894dea4702394fbad5c 23-Sep-2010 Kenny Root <kroot@google.com> Merge "Better errors in PackageManagerTests" into gingerbread
1c134d5559eb4d4e9f1db68bc9597711f6fa5325 23-Sep-2010 Steve Howard <showard@google.com> am 8449490a: am 4f564cde: Tweaks to download manager API based on API review feedback

Merge commit '8449490a94fb5ab02be2a67d4b57c017d8abd75a'

* commit '8449490a94fb5ab02be2a67d4b57c017d8abd75a':
Tweaks to download manager API based on API review feedback
8449490a94fb5ab02be2a67d4b57c017d8abd75a 23-Sep-2010 Steve Howard <showard@google.com> am 4f564cde: Tweaks to download manager API based on API review feedback

Merge commit '4f564cdeb8478f1a20263fc036c74cc4a63145c3' into gingerbread-plus-aosp

* commit '4f564cdeb8478f1a20263fc036c74cc4a63145c3':
Tweaks to download manager API based on API review feedback
4f564cdeb8478f1a20263fc036c74cc4a63145c3 23-Sep-2010 Steve Howard <showard@google.com> Tweaks to download manager API based on API review feedback

* improved documentation of the default destination on the download
cache and the concomitant consequences

* removed NETWORK_WIMAX flag for setting allowed networks

* changed request headers behavior to support multiple instances of
the same header (as allowed in the HTTP spec), renamed
setRequestHeader() to addRequestHeader()

* accept user-facing strings as CharSequences instead of Strings

* new convenience methods setDestinationInExternalFilesDir() and
setDestinationInExternalPublicDir() for setting a destination in
either shared or app-private external storage directories

* renamed setMediaType() to setMimeType()

Change-Id: I8781e2214d939c340209cab917bbbba264ab919c
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
94e0acbf2f2b74a89c4ab0c81a4c1330964bde5f 22-Sep-2010 Kenny Root <kroot@google.com> Better errors in PackageManagerTests

PackageManagerTests was catching assertion errors and just spitting out
a generic "Hey, there was an error!" message. This eliminates that and
adds some expected outcomes in the assertions.

Change-Id: I27baa3c57c85b0cae4ea76aaf1e2a9b61b2c32b7
oretests/src/android/content/pm/PackageManagerTests.java
674df1b373c98e0d868de980c8c4ef4703202f36 22-Sep-2010 Jesse Wilson <jessewilson@google.com> am f78fdacc: am eaa2cabf: Merge "Fix problem where Base64InputStream single-byte reads were unsigned." into gingerbread

Merge commit 'f78fdaccde379d1c101be137416808ea62a2f292'

* commit 'f78fdaccde379d1c101be137416808ea62a2f292':
Fix problem where Base64InputStream single-byte reads were unsigned.
f78fdaccde379d1c101be137416808ea62a2f292 22-Sep-2010 Jesse Wilson <jessewilson@google.com> am eaa2cabf: Merge "Fix problem where Base64InputStream single-byte reads were unsigned." into gingerbread

Merge commit 'eaa2cabf342e973925fb223104f9971deae27b17' into gingerbread-plus-aosp

* commit 'eaa2cabf342e973925fb223104f9971deae27b17':
Fix problem where Base64InputStream single-byte reads were unsigned.
eaa2cabf342e973925fb223104f9971deae27b17 22-Sep-2010 Jesse Wilson <jessewilson@google.com> Merge "Fix problem where Base64InputStream single-byte reads were unsigned." into gingerbread
64b25cf736bc5f9b9f6d548f0694fb76fe805d0c 22-Sep-2010 Jesse Wilson <jessewilson@google.com> Fix problem where Base64InputStream single-byte reads were unsigned.

Change-Id: Ibdfb77a283300baa61738fe98aa1c9f29eaf976f
http://b/3026478
oretests/src/android/util/Base64Test.java
dca24b8ad8f6f067d511efe0966808afffc8174d 22-Sep-2010 Brett Chabot <brettchabot@android.com> cherry pick "Fix build" a227db53f0cd30214c393b400436d1e0863396ef into master

Change-Id: I8db1a4b52d87e98efb07c6c1a2b22de7b7d5c297
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
a227db53f0cd30214c393b400436d1e0863396ef 22-Sep-2010 Brett Chabot <brettchabot@android.com> Fix build

Change-Id: I2dc9acf6310e25f6862236b6e27b4df1e1a012ba
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
c64c6a99fb36c6d93055d6ab5c17cdf124c9ad92 21-Sep-2010 Neal Nguyen <tommyn@google.com> am abb45e67: am b9881e6b: Merge "Adding more DL Manager tests." into gingerbread

Merge commit 'abb45e6720a035e909644941b8ef7f92faeb6f34'

* commit 'abb45e6720a035e909644941b8ef7f92faeb6f34':
Adding more DL Manager tests.
abb45e6720a035e909644941b8ef7f92faeb6f34 21-Sep-2010 Neal Nguyen <tommyn@google.com> am b9881e6b: Merge "Adding more DL Manager tests." into gingerbread

Merge commit 'b9881e6b94607334673566493c904f6741087938' into gingerbread-plus-aosp

* commit 'b9881e6b94607334673566493c904f6741087938':
Adding more DL Manager tests.
df7a865bbf45b57c60d294d5ac721e67e69a2dd6 09-Sep-2010 Neal Nguyen <tommyn@google.com> Adding more DL Manager tests.

Change-Id: I87bf91fdd7dbd058c8d619200d2826ba5e7f76fb
oretests/AndroidManifest.xml
oretests/src/android/net/DownloadManagerBaseTest.java
oretests/src/android/net/DownloadManagerIntegrationTest.java
osttests/src/android/net/DownloadManagerHostTests.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestRunner.java
00cfe112b436eaafb44c0466ceacce3baf10a8f3 17-Sep-2010 Wink Saville <wink@google.com> Add LinkSocket API

Restructuring ConnectivityService to handle multiple connections.

Change-Id: Ia993fbb120bebb844fd0d603dc76fbc700b31fd1
oretests/src/android/net/LinkSocketTest.java
b729dcc8a94bc2c2a1ecda47d791be0d6f1d160a 14-Sep-2010 Vasu Nori <vnori@google.com> Revert "caching code retooled to reduce locking + handle SMP"

This reverts commit 992f7d52fad590d90edc166cd74380e96d627605.

Change-Id: Ia5b789d1b2195d6ce43baffe24296c857f9b30f6
oretests/src/android/database/sqlite/SQLiteCacheTest.java
oretests/src/android/database/sqlite/SQLiteCompiledSqlTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
oretests/src/android/database/sqlite/SQLiteStatementTest.java
992f7d52fad590d90edc166cd74380e96d627605 03-Sep-2010 Vasu Nori <vnori@google.com> caching code retooled to reduce locking + handle SMP

1. Moved all code related to compiled-sql statement cache to SQLiteCache.java
Removed all caching related code from everywhere else.
2. Moved all code related to compiling a sql statement and caching it to
SQLiteCompiledSql.java. There was some code in SQLiteProgram.java
releated to this. moved it out.
3. Added state to SQLiteCompiledSql. This is to help in debugging.
Change-Id: I63ab0c9c4419e964eb9796d284dd389985763d83
oretests/src/android/database/sqlite/SQLiteCacheTest.java
oretests/src/android/database/sqlite/SQLiteCompiledSqlTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
oretests/src/android/database/sqlite/SQLiteStatementTest.java
585f13f8dec4cbf55b3bc04d95425d647f0577b2 10-Aug-2010 Svetoslav Ganov <svetoslavganov@google.com> Accessibility support for WebViews

Change-Id: Ibb139192bae4d60fd53a7872b19c06312bb41558
oretests/AndroidManifest.xml
oretests/src/android/webkit/AccessibilityInjectorTest.java
42a5ed2015461126bd012d6f8f3e1311e5721807 12-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 171c83f4 to master

Change-Id: I56a4c1838b17cf40d96763f95df3c84fc86359eb
171c83f47ddf01792371e1eb7587a99b2f192575 12-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 11fe181e: Add faster TextUtil function for searching delimited lists.

Merge commit '11fe181e16501103d7c0f70344661ea2ef5d3df9' into gingerbread-plus-aosp

* commit '11fe181e16501103d7c0f70344661ea2ef5d3df9':
Add faster TextUtil function for searching delimited lists.
11fe181e16501103d7c0f70344661ea2ef5d3df9 11-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Add faster TextUtil function for searching delimited lists.

The previous version in Settings allocated memory.

Change-Id: I0f821112dc8f830689489f201ce268195f9e6cbd
oretests/src/android/text/TextUtilsTest.java
e8ce130de11c7abeca64bac7c6e68a7ecb7bf516 11-Sep-2010 Brett Chabot <brettchabot@android.com> am 0194eeab: am 4940ff85: Update to new ddmlib-prebuilt api.

Merge commit '0194eeabfe2cef825f3e91144529be6644ef84c0'

* commit '0194eeabfe2cef825f3e91144529be6644ef84c0':
Update to new ddmlib-prebuilt api.
b18f27dbf43ee9028a11cafbca23d3fa318e278b 13-Aug-2010 Vasu Nori <vnori@google.com> Return count of rows in a resultset only once (when startPos = 0)

If a query returns 100 rows and say only 10 rows fit in 1MB, then client
receiving the cursor from the ContentProvider needs to paginate.
ContentProvider returns count of total data everytime it returns a page
(= 1MB) of data to the client.
Returning total count causes reading (and skipping unwanted) data
from sqlite.
Instead, it should be sufficient to get total count once
and re-use the count value during the life of the cursor
until a requery is performed on the cursor.
(Count won't change unless data is changed - in which case
the cursor is asked to perform requery anyway. So doing count
once and reusing it should work)
Change-Id: I3520d94524dda07be9bcff56b6fbae5276af1d3b
oretests/src/android/database/sqlite/SQLiteCursorTest.java
0194eeabfe2cef825f3e91144529be6644ef84c0 10-Sep-2010 Brett Chabot <brettchabot@android.com> am 4940ff85: Update to new ddmlib-prebuilt api.

Merge commit '4940ff85d561310d2c122ca6bd7de4d00772b095' into gingerbread-plus-aosp

* commit '4940ff85d561310d2c122ca6bd7de4d00772b095':
Update to new ddmlib-prebuilt api.
4940ff85d561310d2c122ca6bd7de4d00772b095 10-Sep-2010 Brett Chabot <brettchabot@android.com> Update to new ddmlib-prebuilt api.

Change-Id: Ib99f5eab2b4ecfde8461f93676f0dbd1f1b38241
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
1e3187c27f878c083170149e645b1e2d19bc40a6 09-Sep-2010 Neal Nguyen <tommyn@google.com> am 0c592acf: Merge "Adding Download Manager Integration, stress, and hosts-based tests." into gingerbread-plus-aosp

Merge commit '0c592acfc0ea298a0cf6c049cce4c5c10974e911'

* commit '0c592acfc0ea298a0cf6c049cce4c5c10974e911':
Adding Download Manager Integration, stress, and hosts-based tests.
5f53bca55b2c9e217dee12bff8ce55e168829783 09-Aug-2010 Neal Nguyen <tommyn@google.com> Adding Download Manager Integration, stress, and hosts-based tests.

Change-Id: I97008f6cfd95ea9950db0b4e093da02528849b63
oretests/Android.mk
oretests/AndroidManifest.xml
oretests/src/android/net/DownloadManagerBaseTest.java
oretests/src/android/net/DownloadManagerIntegrationTest.java
oretests/src/android/net/DownloadManagerStressTest.java
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
osttests/src/android/net/DownloadManagerHostTests.java
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/AndroidManifest.xml
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestRunner.java
tillib/Android.mk
tillib/src/coretestutils/http/MockResponse.java
tillib/src/coretestutils/http/MockWebServer.java
tillib/src/coretestutils/http/RecordedRequest.java
cf67abbc48d6d56538dd6f2412d6aa9863a31637 08-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am 6ffee9bb: Merge "Revert "resolve conflicts"" into gingerbread-plus-aosp

Merge commit '6ffee9bbba53700d33456261b986ac8a3f333b9e'

* commit '6ffee9bbba53700d33456261b986ac8a3f333b9e':
Revert "resolve conflicts"
2cc595af6542ba898ce3aa79daeee923b1a585fa 08-Sep-2010 Jean-Baptiste Queru <jbq@google.com> Revert "resolve conflicts"

This reverts commit 84f992a249491b9f755e879bf096baac3f9472f5.
oretests/Android.mk
oretests/AndroidManifest.xml
oretests/src/android/net/DownloadManagerBaseTest.java
oretests/src/android/net/DownloadManagerIntegrationTest.java
oretests/src/android/net/DownloadManagerStressTest.java
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
osttests/src/android/net/DownloadManagerHostTests.java
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/AndroidManifest.xml
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestRunner.java
tillib/Android.mk
tillib/src/coretestutils/http/MockResponse.java
tillib/src/coretestutils/http/MockWebServer.java
tillib/src/coretestutils/http/RecordedRequest.java
980bd4a12d70e87cdab3c7b39b5b1d7828913933 08-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am 84f992a2: resolve conflicts

Merge commit '84f992a249491b9f755e879bf096baac3f9472f5'

* commit '84f992a249491b9f755e879bf096baac3f9472f5':
Adding Download Manager Integration, stress, and hosts-based tests.
84f992a249491b9f755e879bf096baac3f9472f5 08-Sep-2010 Jean-Baptiste Queru <jbq@google.com> resolve conflicts

Change-Id: I87f854430f7083cd2f2e28b4ec4a7112ef6fe4f1
40ef0f49ea9fa7c39eb0018fdb4df4b73a11a77d 09-Aug-2010 Neal Nguyen <tommyn@google.com> Adding Download Manager Integration, stress, and hosts-based tests.

Change-Id: If75021380f4aee9c650f6e34093779e85cc4e5d8
oretests/Android.mk
oretests/AndroidManifest.xml
oretests/src/android/net/DownloadManagerBaseTest.java
oretests/src/android/net/DownloadManagerIntegrationTest.java
oretests/src/android/net/DownloadManagerStressTest.java
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
osttests/src/android/net/DownloadManagerHostTests.java
osttests/test-apps/DownloadManagerTestApp/Android.mk
osttests/test-apps/DownloadManagerTestApp/AndroidManifest.xml
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestApp.java
osttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/DownloadManagerTestRunner.java
tillib/Android.mk
tillib/src/coretestutils/http/MockResponse.java
tillib/src/coretestutils/http/MockWebServer.java
tillib/src/coretestutils/http/RecordedRequest.java
422dad0f5069a96c002faf31540bf471a7052585 04-Sep-2010 Vasu Nori <vnori@google.com> android change to handle Change-Id: Idbeed81b5b7349059e467b33a8641abf0b4aaeff

Change-Id: Icf221a8e8d4c281f7719875816835ad7dfe7f3d1
oretests/src/android/database/sqlite/SQLiteUnfinalizedExceptionTest.java
8bb37f7ffb24ab06576dd4225ab0a5e1828a0d07 07-Sep-2010 Steve Block <steveblock@google.com> Adds a test case for WebAddress where the path component does not have a leading slash

When a URL is malformed because the path does not start with a slash,
we assume that the path starts with the first character that is not
valid in the host and insert a leading slash. This is the reason why
the regex for the path component does not force a leading slash.

Bug: 1011602
Change-Id: I8efe46c058d2ee2d1a6a4406ee25dc021315222b
oretests/src/android/net/UriTest.java
oretests/src/android/net/WebAddressTest.java
582deec1f3c8f51b431bb2ad685c9217ffd9eaad 06-Sep-2010 Steve Block <steveblock@google.com> Fixes a problem with URL parsing when the host ends with a dot

The WebAddress class provides a lenient parser for URLs. Currently, it
identifies the host portion with the regex [<chars>]+(\.[<chars>]+)* where
<chars> is the set of characters valid for the host name. This pattern excludes
the case where the host ends with a dot, which is valid possibility. As a
result, any trailing dot is pushed into the path component. Since we add a
leading slash to the path if one is missing, the result is a path that begins
with '/.'.

This fix changes the host regex to [<chars>]+[<chars>\.]* which allows trailing
dots and fixes the problem.

Bug: 2337042
Change-Id: I310512531787e0f742988f5d815ad944fd39e059
oretests/src/android/net/UriTest.java
oretests/src/android/net/WebAddressTest.java
572031747f5fd80109e9c574927ded06fcf23e6f 03-Sep-2010 Eric Rowe <erowe@google.com> am 4ca550a1: am 947e25e5: am ac3c1f55: Add BT test instrumentation for reboot tests.

Merge commit '4ca550a17b8becdf6b5a32909fb5c70ef7579f4e'

* commit '4ca550a17b8becdf6b5a32909fb5c70ef7579f4e':
Add BT test instrumentation for reboot tests.
4ca550a17b8becdf6b5a32909fb5c70ef7579f4e 02-Sep-2010 Eric Rowe <erowe@google.com> am 947e25e5: am ac3c1f55: Add BT test instrumentation for reboot tests.

Merge commit '947e25e5ffe13549dab82580ef05f1f4faf42cd2' into gingerbread-plus-aosp

* commit '947e25e5ffe13549dab82580ef05f1f4faf42cd2':
Add BT test instrumentation for reboot tests.
947e25e5ffe13549dab82580ef05f1f4faf42cd2 02-Sep-2010 Eric Rowe <erowe@google.com> am ac3c1f55: Add BT test instrumentation for reboot tests.

Merge commit 'ac3c1f550f30aa793ccf5dcd0da55b070fd55364' into gingerbread

* commit 'ac3c1f550f30aa793ccf5dcd0da55b070fd55364':
Add BT test instrumentation for reboot tests.
b2b973d13edb0a043a0288838f41eb84e9c78f76 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> am 3bd9b8f0: Fix build breakage.

Merge commit '3bd9b8f04cece37ab4405abc382e2810006b9f97' into gingerbread-plus-aosp

* commit '3bd9b8f04cece37ab4405abc382e2810006b9f97':
Fix build breakage.
3bd9b8f04cece37ab4405abc382e2810006b9f97 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix build breakage.

Change-Id: If519f1730266f10a7852af209127aa4754a7ef9d
oretests/res/raw/v21_im.vcf
oretests/res/raw/v21_invalid_multiple_line.vcf
oretests/res/raw/v30_comma_separated.vcf
oretests/res/raw/v30_pager.vcf
oretests/res/raw/v40_sort_as.vcf
oretests/src/android/pim/vcard/VCardImporterTests.java
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/VCardTestUtilsTests.java
22a17ce60b5e8770ad950cc3da6d8f5a2be3b879 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> am b1f5a54a: Merge "VCard refactoring backport." into gingerbread

Merge commit 'b1f5a54a2abd95d03dc96f5f691495d2d7dfadc7' into gingerbread-plus-aosp

* commit 'b1f5a54a2abd95d03dc96f5f691495d2d7dfadc7':
VCard refactoring backport.
b1f5a54a2abd95d03dc96f5f691495d2d7dfadc7 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "VCard refactoring backport." into gingerbread
6aa717e4a190cc23f61b93770ee1f80243c0f8e7 02-Sep-2010 Eric Rowe <erowe@google.com> am 97e58ef4: Merge "DO NOT MERGE Separate utility methods into utility class." into gingerbread

Merge commit '97e58ef444da53165caab2a7be4fe44c154d5a0e' into gingerbread-plus-aosp

* commit '97e58ef444da53165caab2a7be4fe44c154d5a0e':
DO NOT MERGE Separate utility methods into utility class.
27a912a3934819c9f38eb1244a6a691ce947bef9 02-Sep-2010 Eric Rowe <erowe@google.com> Merge "Separate utility methods into utility class."
13438b02052f3bafd73a1a6a47b3b729f3979932 31-Aug-2010 Eric Rowe <erowe@google.com> DO NOT MERGE Separate utility methods into utility class.

Methods in BluetoothTestUtils remain the same as they were in
BluetoothStressTest except for the constructor and close(). The constructor
is derived from setUp() and close() from tearDown().

Change-Id: Ifce16346f30eccdcc10ab846800e8a6fd2a24361
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
69831d9dc16c1d36739328910e5d7c0fb7d327fe 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> VCard refactoring backport.

Change-Id: Icf265ce7f83c1e2bd5db0c3d9bd4c142afd6db34
oretests/src/android/pim/vcard/ContentValuesBuilder.java
oretests/src/android/pim/vcard/ContentValuesVerifier.java
oretests/src/android/pim/vcard/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/ExportTestResolver.java
oretests/src/android/pim/vcard/ImportTestResolver.java
oretests/src/android/pim/vcard/LineVerifier.java
oretests/src/android/pim/vcard/LineVerifierElem.java
oretests/src/android/pim/vcard/PropertyNode.java
oretests/src/android/pim/vcard/PropertyNodesVerifier.java
oretests/src/android/pim/vcard/VCardExporterTests.java
oretests/src/android/pim/vcard/VCardImporterTests.java
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/VCardTestRunner.java
oretests/src/android/pim/vcard/VCardTestUtilsTests.java
oretests/src/android/pim/vcard/VCardTestsBase.java
oretests/src/android/pim/vcard/VCardUtilsTests.java
oretests/src/android/pim/vcard/VCardVerifier.java
oretests/src/android/pim/vcard/VNode.java
oretests/src/android/pim/vcard/VNodeBuilder.java
oretests/src/android/pim/vcard/test_utils/ContactEntry.java
oretests/src/android/pim/vcard/test_utils/ContentValuesBuilder.java
oretests/src/android/pim/vcard/test_utils/ContentValuesVerifier.java
oretests/src/android/pim/vcard/test_utils/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/test_utils/ExportTestProvider.java
oretests/src/android/pim/vcard/test_utils/ExportTestResolver.java
oretests/src/android/pim/vcard/test_utils/ImportTestProvider.java
oretests/src/android/pim/vcard/test_utils/ImportTestResolver.java
oretests/src/android/pim/vcard/test_utils/LineVerifier.java
oretests/src/android/pim/vcard/test_utils/LineVerifierElem.java
oretests/src/android/pim/vcard/test_utils/PropertyNode.java
oretests/src/android/pim/vcard/test_utils/PropertyNodesVerifier.java
oretests/src/android/pim/vcard/test_utils/PropertyNodesVerifierElem.java
oretests/src/android/pim/vcard/test_utils/VCardTestsBase.java
oretests/src/android/pim/vcard/test_utils/VCardVerifier.java
oretests/src/android/pim/vcard/test_utils/VNode.java
oretests/src/android/pim/vcard/test_utils/VNodeBuilder.java
8eb1bfe0f63f12235518d11a236dd11e352e48b2 02-Sep-2010 Vasu Nori <vnori@google.com> Merge "fix isIntegrityCheck() & add a sample impl class and test for DatabaseErrorHandler"
ac3c1f550f30aa793ccf5dcd0da55b070fd55364 01-Sep-2010 Eric Rowe <erowe@google.com> Add BT test instrumentation for reboot tests.

Change-Id: If8134a1c11f3982086b7299e5c8bd3ef8eaa5959
oretests/src/android/bluetooth/BluetoothRebootStressTest.java
185a0b04c611a287cbd866d27b0ceff77f12d97b 31-Aug-2010 Eric Rowe <erowe@google.com> Separate utility methods into utility class.

Methods in BluetoothTestUtils remain the same as they were in
BluetoothStressTest except for the constructor and close(). The constructor
is derived from setUp() and close() from tearDown().

Change-Id: Ib472878fee2aa1b678e8ee6743cac2373eb7507f
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
1314219a37403594f833c2c71744040ebd8d9b04 31-Aug-2010 Eric Rowe <erowe@google.com> DO NOT MERGE Separate utility methods into utility class.

Methods in BluetoothTestUtils remain the same as they were in
BluetoothStressTest except for the constructor and close(). The constructor
is derived from setUp() and close() from tearDown().

Change-Id: I09f9637d3969c98e46cbde1d61bc6c3223aec7c1
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestUtils.java
6c8beb0cb4eb41e4d33dd928fd87c0d504495127 31-Aug-2010 Kenny Root <kroot@google.com> am 8a5ab396: am 2e86809b: Merge "Native libraries on SD" into gingerbread

Merge commit '8a5ab396cf4f3bb76a3e820f16f946e313b73fcf'

* commit '8a5ab396cf4f3bb76a3e820f16f946e313b73fcf':
Native libraries on SD
8a5ab396cf4f3bb76a3e820f16f946e313b73fcf 31-Aug-2010 Kenny Root <kroot@google.com> am 2e86809b: Merge "Native libraries on SD" into gingerbread

Merge commit '2e86809b6c79375d23c0975914efc3b66e89ac90' into gingerbread-plus-aosp

* commit '2e86809b6c79375d23c0975914efc3b66e89ac90':
Native libraries on SD
0ac83f5a7c05ff5b7e213e5953590bfbeb4efb43 31-Aug-2010 Kenny Root <kroot@google.com> Native libraries on SD

* Add native library tests during package move

* Fix omission that let PackageSettings and ApplicationInfo get out of
sync.

Change-Id: Ic4958f971cb2c9cfd270522fdc120b4031c1124a
oretests/src/android/content/pm/PackageManagerTests.java
6151a9ef232b9d4d2b38761159f49181679a6a17 30-Aug-2010 Eric Rowe <erowe@google.com> am f72b0e44: Merge "DO NOT MERGE Add A2DP and Headset connection stress tests." into gingerbread

Merge commit 'f72b0e447296bc07104af62c33c56bc15b7a6677' into gingerbread-plus-aosp

* commit 'f72b0e447296bc07104af62c33c56bc15b7a6677':
DO NOT MERGE Add A2DP and Headset connection stress tests.
f72b0e447296bc07104af62c33c56bc15b7a6677 30-Aug-2010 Eric Rowe <erowe@google.com> Merge "DO NOT MERGE Add A2DP and Headset connection stress tests." into gingerbread
bfe1dc27944c80dcb81f0eb313987999ecd7b6fa 26-Aug-2010 Vasu Nori <vnori@google.com> fix isIntegrityCheck() & add a sample impl class and test for DatabaseErrorHandler

fixed a bug in SQLiteDatabase.isDatabaseIntegrityOk()
and added a new class to demonstrate use of
android.database.DatabaseErrorHandler
and a bunch of nits

Change-Id: Ia81870853fa3bd84074637f6d823a9fd22b66c7e
oretests/src/android/database/DatabaseErrorHandlerTest.java
818c830c59fb8fb0fe7576f1e5a073ab599227c8 28-Aug-2010 Kenny Root <kroot@google.com> am 83285781: am 7046bd92: Merge "Allow native shared libraries in ASEC containers" into gingerbread

Merge commit '8328578152fbfd23952a6cda4b2e60853d78eb74'

* commit '8328578152fbfd23952a6cda4b2e60853d78eb74':
Allow native shared libraries in ASEC containers
8328578152fbfd23952a6cda4b2e60853d78eb74 28-Aug-2010 Kenny Root <kroot@google.com> am 7046bd92: Merge "Allow native shared libraries in ASEC containers" into gingerbread

Merge commit '7046bd924f77c54585b9e0e0c95e5edd2ceb55a3' into gingerbread-plus-aosp

* commit '7046bd924f77c54585b9e0e0c95e5edd2ceb55a3':
Allow native shared libraries in ASEC containers
85387d7ba36e56b291cbde87acb5a5b2200fe01c 26-Aug-2010 Kenny Root <kroot@google.com> Allow native shared libraries in ASEC containers

This change moves the native library handling earlier in the package
installation process so that it may be inserted into ASEC containers
before they are finalized in the DefaultContainerService.

Note that native libraries on SD card requires that vold mount ASEC
containers without the "noexec" flag on the mount point.

Change-Id: Ib34b1886bf6f94b99bb7b3781db6e9b5a58807ba
oretests/src/android/content/pm/PackageManagerTests.java
bfa6d1dbe495fcf4f74f1995d54ec191e6671b5c 28-Aug-2010 Eric Rowe <erowe@google.com> am aed5d62a: am 8f5007ba: am 163fba0a: Merge "Improve logging and flexibility of BT stress tests." into froyo

Merge commit 'aed5d62ac1278c032528921798529dbd824a1865'

* commit 'aed5d62ac1278c032528921798529dbd824a1865':
Improve logging and flexibility of BT stress tests.
66991b956a7b01ee88054e8175f51245178675b2 19-Aug-2010 Eric Rowe <erowe@google.com> DO NOT MERGE Add A2DP and Headset connection stress tests.

Change-Id: I0b8ff3f54d75293b99e53adeda7dd6dea36403b0
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
aed5d62ac1278c032528921798529dbd824a1865 27-Aug-2010 Eric Rowe <erowe@google.com> am 8f5007ba: am 163fba0a: Merge "Improve logging and flexibility of BT stress tests." into froyo

Merge commit '8f5007ba4789e0c9e1a620e7211fa24143a66a0a' into gingerbread-plus-aosp

* commit '8f5007ba4789e0c9e1a620e7211fa24143a66a0a':
Improve logging and flexibility of BT stress tests.
8f5007ba4789e0c9e1a620e7211fa24143a66a0a 27-Aug-2010 Eric Rowe <erowe@google.com> am 163fba0a: Merge "Improve logging and flexibility of BT stress tests." into froyo

Merge commit '163fba0a75dd582aa62187a062faa66d60db0d34' into gingerbread

* commit '163fba0a75dd582aa62187a062faa66d60db0d34':
Improve logging and flexibility of BT stress tests.
58a345936d7e2b66bdeefb492e4f777754792d7e 19-Aug-2010 Ben Dodson <bjdodson@google.com> Added methods for managing uri query parameters

Change-Id: Ic98c1bd159740dd4d895889079f9f2abae4fc2b9
oretests/src/android/net/UriTest.java
e1d666b632608a2f708cb3df06c796e16d5d1717 27-Aug-2010 Eric Rowe <erowe@google.com> Improve logging and flexibility of BT stress tests.

Change-Id: I657638b3b410175919da545e9a9b7d9df6466362
oretests/AndroidManifest.xml
oretests/src/android/bluetooth/BluetoothStressTest.java
oretests/src/android/bluetooth/BluetoothTestRunner.java
1922ac108ce6fd12f640b2892aa1eb348911a94b 25-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> am d0ad67ad: Merge "Fix the test breakage in vCard tests." into gingerbread

Merge commit 'd0ad67ad84e254cdf34963ad4152ca7158df5eab' into gingerbread-plus-aosp

* commit 'd0ad67ad84e254cdf34963ad4152ca7158df5eab':
Fix the test breakage in vCard tests.
4d9c1931c9147c80df31f4c57ed098b61ee1f5bc 25-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix the test breakage in vCard tests.

- Make custom resolvers use official MockContentProvider instead of
relying on its own.
- Fix a test which is found to be broken after the fix above.

Bug: 2945326
Change-Id: Ifb14f61771215c103d8825240989eecee73d585a
oretests/src/android/pim/vcard/ExportTestResolver.java
oretests/src/android/pim/vcard/ImportTestResolver.java
oretests/src/android/pim/vcard/VCardExporterTests.java
oretests/src/android/pim/vcard/VCardTestsBase.java
oretests/src/android/pim/vcard/VCardVerifier.java
c28227d443dc63823c19864376150f934a3f9690 24-Aug-2010 Wink Saville <wink@google.com> Merge "Allow reliable detection of a message that is in use."
28060c8a806b58fc53f281688146877e8c37a504 24-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> am 6dd19ca5: Merge "Make VCardTestsBase public." into gingerbread

Merge commit '6dd19ca5cb78008d6793d0a223a6189786c5c62f' into gingerbread-plus-aosp

* commit '6dd19ca5cb78008d6793d0a223a6189786c5c62f':
Make VCardTestsBase public.
a334e7c72408c4e2805f2427a35d841a60adefc4 24-Aug-2010 Wink Saville <wink@google.com> Allow reliable detection of a message that is in use.

Because the standard Looper.loop code calls Message#recycle it is
imperative that Handler#handleMessage code not attempt to resue
a message it receives. If allowed to do so it will cause bugs that
could be difficult to diagnois.

This change adds Message#flags and uses one bit to reliably detect
a message is in use and throws an error in MessageQueue#enqueueMessage.
This allows early detection of this bug.

Note: This is not new functionality, but the current implementation does
not detect messages that are in use because it uses Message#when != 0
as the detection mechanism. The problem is that a Message#when value of 0
is valid value used to place a message at the front of the queue and is
thus unreliable.

Another option is to change the setting of Message#when in Message#enqueueMessage
so that it is never 0, although that does change subtly a publicly accessible
field.

Yet another option would be to use other fields but all candidates have
similar problems as when in that they are publicly accessible or even
settable such as Message#target.

Change-Id: I040d6e546376f7b1ed1e4daa0d5644cce8bf333a
oretests/src/android/os/MessageQueueTest.java
4077d7a75d78b3824c8d652e02efc56e04c7ee05 24-Aug-2010 Vasu Nori <vnori@google.com> Merge "SQLiteOpenHelper should discard closed singleton database objects"
07d39e915036ae1830391f8f60bedf61f2890cb0 24-Aug-2010 Brian Carlstrom <bdc@google.com> am 005f0d08: am 4d42ccd1: Tracking merge of dalvik-dev to gingerbread

Merge commit '005f0d084ec3a5c7a2850b807c6054a1fc904daa'

* commit '005f0d084ec3a5c7a2850b807c6054a1fc904daa':
Tracking merge of dalvik-dev to gingerbread
cc6f54910d2431e31af176163f61b34d50a33647 24-Aug-2010 Vasu Nori <vnori@google.com> SQLiteOpenHelper should discard closed singleton database objects

bug:2943028
Change-Id: I4b6263cc25413995363158c976d3c723231cc050
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
ddb2bfeb6e5a383306159672fe81333bf8520776 24-Aug-2010 Jaikumar Ganesh <jaikumar@google.com> Revert "Allow reliable detection of a message that is in use."

This reverts commit 6083d81ce4d67ec632962270fda64ebb9db0d5b1.
Reverting this because it causes runtime to reboot in a loop
if connected to a Bluetooth Headset.

copyFrom() needs to check for the introduced bit too.
oretests/src/android/os/MessageQueueTest.java
0263b0d8876c3497634711335b00e29f24092a8c 23-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make VCardTestsBase public.

Change-Id: I9f1adc6f0b4263424897609b3cc0855e83906407
oretests/src/android/pim/vcard/VCardTestsBase.java
6083d81ce4d67ec632962270fda64ebb9db0d5b1 22-Aug-2010 Wink Saville <wink@google.com> Allow reliable detection of a message that is in use.

Because the standard Looper.loop code calls Message#recycle it is
imperative that Handler#handleMessage code not attempt to resue
a message it receives. If allowed to do so it will cause bugs that
could be difficult to diagnois.

This change adds Message#flags and uses one bit to reliably detect
a message is in use and throws an error in MessageQueue#enqueueMessage.
This allows early detection of this bug.

Note: This is not new functionality, but the current implementation does
not detect messages that are in use because it uses Message#when != 0
as the detection mechanism. The problem is that a Message#when value of 0
is valid value used to place a message at the front of the queue and is
thus unreliable.

Another option is to change the setting of Message#when in Message#enqueueMessage
so that it is never 0, although that does change subtly a publicly accessible
field.

Yet another option would be to use other fields but all candidates have
similar problems as when in that they are publicly accessible or even
settable such as Message#target.

Change-Id: I2df600537700a3fe206678f38bcae7329751c4e5
oretests/src/android/os/MessageQueueTest.java
005f0d084ec3a5c7a2850b807c6054a1fc904daa 20-Aug-2010 Brian Carlstrom <bdc@google.com> am 4d42ccd1: Tracking merge of dalvik-dev to gingerbread

Merge commit '4d42ccd1579da53aaaf132a6ad26a06e2baa5b98' into gingerbread-plus-aosp

* commit '4d42ccd1579da53aaaf132a6ad26a06e2baa5b98':
Tracking merge of dalvik-dev to gingerbread
4d42ccd1579da53aaaf132a6ad26a06e2baa5b98 19-Aug-2010 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to gingerbread

git cherry-pick --no-commit 353ab63e412dd15029143de238e9590ab35eb583)
make update-api

Change-Id: I9e61616828a3a5745421350b9a2fc78ba181d388
oretests/src/android/net/http/HttpsThroughHttpProxyTest.java
a7bb3ba54aed70919c8304ae4227ab5106243f75 18-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> am f996ed9f: Merge "Make vCard importer/exporter aware of multi-byte parameters." into gingerbread

Merge commit 'f996ed9f2e4a992e5d884077a15dcc23a8d90c44' into gingerbread-plus-aosp

* commit 'f996ed9f2e4a992e5d884077a15dcc23a8d90c44':
Make vCard importer/exporter aware of multi-byte parameters.
a006b47298539d89dc7a06b54c070cb3e986352a 14-Apr-2010 Bjorn Bringert <bringert@android.com> New API and implementation of DB and memory-backed FDs

This depends on a kernel patch that implements read(2)
in the ashmem driver.

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

Change-Id: Ie3b10aa471aada21812b35e63954c1b2f0a7b042
oretests/src/android/content/MemoryFileProvider.java
oretests/src/android/content/MemoryFileProviderTest.java
oretests/src/android/os/MemoryFileTest.java
b7688558cc30bceac8377640db68126e53dd545e 18-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make vCard importer/exporter aware of multi-byte parameters.

Bug: 2922186
Change-Id: Ic877940242d87ef918bf8d4dac601d37b296259b
oretests/res/raw/v30_multibyte_param.vcf
oretests/src/android/pim/vcard/VCardImporterTests.java
oretests/src/android/pim/vcard/VCardUtilsTests.java
542cf2c9cf9aac4c5678c39754110cd656cb859d 10-Aug-2010 Eric Rowe <erowe@google.com> am 7cb0fc58: am edae848e: am 301c437b: Remove @LargeTest annotations

Merge commit '7cb0fc588042f7642f13ea2cc404eae04bd5509a'

* commit '7cb0fc588042f7642f13ea2cc404eae04bd5509a':
Remove @LargeTest annotations
7cb0fc588042f7642f13ea2cc404eae04bd5509a 10-Aug-2010 Eric Rowe <erowe@google.com> am edae848e: am 301c437b: Remove @LargeTest annotations

Merge commit 'edae848eb62e27b8e987aa89557d1456304fada7' into gingerbread-plus-aosp

* commit 'edae848eb62e27b8e987aa89557d1456304fada7':
Remove @LargeTest annotations
edae848eb62e27b8e987aa89557d1456304fada7 10-Aug-2010 Eric Rowe <erowe@google.com> am 301c437b: Remove @LargeTest annotations

Merge commit '301c437b554e2152f3f6fffadc680f5cbf8e8231' into gingerbread

* commit '301c437b554e2152f3f6fffadc680f5cbf8e8231':
Remove @LargeTest annotations
4f94181282e7f23d19a5fcab5f1b93d6d52e7715 10-Aug-2010 Brett Chabot <brettchabot@android.com> am e967ee49: Merge "Fix gingerbread FrameworkCoreTests makefile." into gingerbread

Merge commit 'e967ee49b5a86de2be11dd1d28283c337b01e537' into gingerbread-plus-aosp

* commit 'e967ee49b5a86de2be11dd1d28283c337b01e537':
Fix gingerbread FrameworkCoreTests makefile.
56718cb1cb2775f8705f37f917fbcd013dc259a3 10-Aug-2010 Brett Chabot <brettchabot@android.com> Fix gingerbread FrameworkCoreTests makefile.

android-common should be included as a static library.

Change-Id: I539962904c84ef30e6d7bd1b48d0bc07e0757d58
oretests/Android.mk
301c437b554e2152f3f6fffadc680f5cbf8e8231 10-Aug-2010 Eric Rowe <erowe@google.com> Remove @LargeTest annotations

Change-Id: Ib7e6f6e8b6437db5ca2ad2bcb89f079a0cbf7453
oretests/src/android/bluetooth/BluetoothStressTest.java
1ba417140554dbd57602a1f4b453fc42363cf394 07-Aug-2010 Jesse Wilson <jessewilson@google.com> Adding JsonReader.setLenient() to handle malformed JSON strings.

Also replacing setIndentSpaces() with a more general purpose method,
setIndent().

Change-Id: I64fbe4901aec23de5392362c1d40b77bc2b5566b
oretests/src/android/util/JsonReaderTest.java
oretests/src/android/util/JsonWriterTest.java
76d7e20a75d24afb2f5011a7646dbde8aaa52087 04-Aug-2010 Jesse Wilson <jessewilson@google.com> A new streaming JSON API.

Change-Id: Iefa7ee44ddacbe22ea9ebca3165ac59030659bf2
oretests/src/android/util/JsonReaderTest.java
oretests/src/android/util/JsonWriterTest.java
bde1fc848d6b2b6b7e0dc9df99d77ae43264b333 06-Aug-2010 Vasu Nori <vnori@google.com> am 499b7438: Merge "(gingerbread) remove unused tests. bug:2898376" into gingerbread

Merge commit '499b743851aa84b9fc1a7e445e189946bc47ad5d' into gingerbread-plus-aosp

* commit '499b743851aa84b9fc1a7e445e189946bc47ad5d':
(gingerbread) remove unused tests. bug:2898376
286b9770cc051596f83fc23fbbcab888e11f9e9e 06-Aug-2010 Vasu Nori <vnori@google.com> (gingerbread) remove unused tests. bug:2898376

Change-Id: Icc4c8ed20c9e910784bf202415d58e4af2366bee
oretests/src/android/database/sqlite/AbstractJDBCDriverTest.java
oretests/src/android/database/sqlite/SQLiteJDBCDriverTest.java
3417024b03a5f132adc3f9f872d0732138d20d1d 06-Aug-2010 Eric Rowe <erowe@google.com> am 5c0f1e0a: am f9ea8ec5: am 982f1521: Merge "Checkin initial bluetooth stress tests." into froyo

Merge commit '5c0f1e0a870b5792bbc0456eef6fd21642db3798'

* commit '5c0f1e0a870b5792bbc0456eef6fd21642db3798':
Checkin initial bluetooth stress tests.
5c0f1e0a870b5792bbc0456eef6fd21642db3798 06-Aug-2010 Eric Rowe <erowe@google.com> am f9ea8ec5: am 982f1521: Merge "Checkin initial bluetooth stress tests." into froyo

Merge commit 'f9ea8ec57e1e1d5654f57c22f514954e242833d2' into gingerbread-plus-aosp

* commit 'f9ea8ec57e1e1d5654f57c22f514954e242833d2':
Checkin initial bluetooth stress tests.
f9ea8ec57e1e1d5654f57c22f514954e242833d2 06-Aug-2010 Eric Rowe <erowe@google.com> am 982f1521: Merge "Checkin initial bluetooth stress tests." into froyo

Merge commit '982f1521a662d274eca1216707d874f148396ac6' into gingerbread

* commit '982f1521a662d274eca1216707d874f148396ac6':
Checkin initial bluetooth stress tests.
14db8d9978daf070f5e66ac8f2cdb1f4ee0dfe06 29-Jul-2010 Eric Rowe <erowe@google.com> Checkin initial bluetooth stress tests.

Bluetooth stress tests include stress tests for enabling/disabling bluetooth,
making the device discoverable/undiscoverable, and starting and stopping scans.

Change-Id: Ic8ba09475ffe5551717438673e0ed3f4bd17cf2f
oretests/AndroidManifest.xml
oretests/src/android/bluetooth/BluetoothStressTest.java
c44f1ffbfaf9cc2db7cfdef5fd4bf161070e3c07 05-Aug-2010 Kenny Root <kroot@google.com> am 983d4583: am dec43a10: Merge "Fix up PackageManager tests" into gingerbread

Merge commit '983d4583e7bb1788d377296fe34babc1956c0a3c'

* commit '983d4583e7bb1788d377296fe34babc1956c0a3c':
Fix up PackageManager tests
1b7e4d5adcc2737bc11bfbf42a88a02d6df984e0 05-Aug-2010 Brian Carlstrom <bdc@google.com> am 4ae1e382: Merge "Tracking merge of dalvik-dev to gingerbread" into gingerbread

Merge commit '4ae1e382f4b6c5bb9e757f35f82ad48dc02c32af' into gingerbread-plus-aosp

* commit '4ae1e382f4b6c5bb9e757f35f82ad48dc02c32af':
Tracking merge of dalvik-dev to gingerbread
4ae1e382f4b6c5bb9e757f35f82ad48dc02c32af 05-Aug-2010 Brian Carlstrom <bdc@google.com> Merge "Tracking merge of dalvik-dev to gingerbread" into gingerbread
983d4583e7bb1788d377296fe34babc1956c0a3c 05-Aug-2010 Kenny Root <kroot@google.com> am dec43a10: Merge "Fix up PackageManager tests" into gingerbread

Merge commit 'dec43a102226de55307de20d5779e20a435be8b1' into gingerbread-plus-aosp

* commit 'dec43a102226de55307de20d5779e20a435be8b1':
Fix up PackageManager tests
d7b421b4de68d803252a5d9b3cb0106731217ad7 05-Aug-2010 Kenny Root <kroot@google.com> Fix up PackageManager tests

PackageManagerTests was trying to mount and unmount the media without
waiting for the correct state to arrive. It was proceeding with any
state transition.

Some tests had their own volume mounting and unmounting code that was
flawed, so switch it to the more robust mountMedia() and unmountMedia()
implementations.

Change-Id: If464927bb09dd15cb040c6cce195a6ad8452de95
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/os/storage/StorageListener.java
3c7c351a6217ac48b741740167c201a679a0ca65 05-Aug-2010 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to gingerbread

git cherry-pick --no-commit f77cf7f0
git cherry-pick --no-commit c8f503b5285e30c1a881d0ba860ba9021f57d113
git cherry-pick --no-commit 570bb561
git cherry-pick --no-commit e2417541
git cherry-pick --no-commit e4d81f25bd4dc1a5c909b56ab56a56406290da30
git cherry-pick --no-commit 5e8a587d

Change-Id: I101a385d43f3e0f4ce5352217f92ef67a3908c88
oretests/Android.mk
oretests/src/android/net/http/HttpsThroughHttpProxyTest.java
f22e87639338600f9bfcaa3f6fb524407e2e2f5f 04-Aug-2010 Brett Chabot <brettchabot@android.com> resolved conflicts for merge of 10928c37 to master

Change-Id: Idbe91a2fe90cab0a03fdef096dc6741dc5937351
672079a75aaaf30dab3729b865e79185f87d88f2 04-Aug-2010 Brett Chabot <brettchabot@android.com> Fix Framework core tests import of android-common.

android.database.CursorWindowTest#testWriteCursorToWindow (and possibly other
tests) were was failing because it couldn't locate a android-common class.

Fix is to include android-common as a static library, as opposed to a runtime
library.

Change-Id: Iae50cf409e76a85ee79e4af71e9b903d18630078
oretests/Android.mk
10928c37f156963b017d508ffd79c033ace798e1 04-Aug-2010 Brett Chabot <brettchabot@android.com> am c458b2ca: Merge "Frameworks core tests size cleanup." into gingerbread

Merge commit 'c458b2cab3a67e84f768af2247ba5235003a4ce4' into gingerbread-plus-aosp

* commit 'c458b2cab3a67e84f768af2247ba5235003a4ce4':
Frameworks core tests size cleanup.
c458b2cab3a67e84f768af2247ba5235003a4ce4 04-Aug-2010 Brett Chabot <brettchabot@android.com> Merge "Frameworks core tests size cleanup." into gingerbread
ce38b98feb1e7c9c1799eb270c40798d833aa9ae 22-Jul-2010 Vasu Nori <vnori@google.com> do begin-end transaction before standalone insert/update/delete sql

also fix bug# 2871037
Change-Id: I13325f8eabff4f218d3206905010803b61d8e2cd
oretests/src/android/database/DatabaseCursorTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
903d445f4102f3ae15e370bd10e1745a88905a99 30-Jul-2010 Xia Wang <xiaw@google.com> am 131ce67d: Merge "DO NOT MERGE" into gingerbread

Merge commit '131ce67d276416e3cb23a5e31121fdff1a8bf290' into gingerbread-plus-aosp

* commit '131ce67d276416e3cb23a5e31121fdff1a8bf290':
DO NOT MERGE
8f076ec3c3133c70b67cdb9f5ae0907fd20492dd 26-Jul-2010 Xia Wang <xiaw@google.com> DO NOT MERGE

move change to gingerbread.

Wait for broadcast even if the network state has been changed.
bug: 2863356

Change-Id: Ia78d1d6c2906371b56dfd4765845431047e9e9c0
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
5e8a587d49f014fdd42403f51bbe877855e4a6b3 29-Jul-2010 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to master

Change-Id: Id4c19401ad0aa238219aaf5d9a20d2889d0a4b18
oretests/Android.mk
oretests/src/android/net/http/HttpsThroughHttpProxyTest.java
2af53220c9374b727e4331caba6df74c3ad20c21 29-Jul-2010 Brett Chabot <brettchabot@android.com> am 6487ade9: am 5f866a4a: Make FrameworkCoreHostTests use ddmlib-prebuilt.

Merge commit '6487ade97ae4ad801681c866c846ed8862454ec4'

* commit '6487ade97ae4ad801681c866c846ed8862454ec4':
Make FrameworkCoreHostTests use ddmlib-prebuilt.
6487ade97ae4ad801681c866c846ed8862454ec4 29-Jul-2010 Brett Chabot <brettchabot@android.com> am 5f866a4a: Make FrameworkCoreHostTests use ddmlib-prebuilt.

Merge commit '5f866a4ac389a18613180b056d946ae5a7b84e10' into gingerbread-plus-aosp

* commit '5f866a4ac389a18613180b056d946ae5a7b84e10':
Make FrameworkCoreHostTests use ddmlib-prebuilt.
5f866a4ac389a18613180b056d946ae5a7b84e10 28-Jul-2010 Brett Chabot <brettchabot@android.com> Make FrameworkCoreHostTests use ddmlib-prebuilt.

Change-Id: Ib6d809353a89e33ed47a5659141ef18dc132cba6
osttests/Android.mk
f76c56bcaa9df1d1afa711177f813dc63f399795 27-Jul-2010 Brett Chabot <brettchabot@android.com> Frameworks core tests size cleanup.

Adjust test sizes to better align with the test's runtime.
Also do some import cleanup and migrate to non-deprecated classes.

Change-Id: Ib2b190ddbe84f9ea8f5d6d3604bd4855d00df7a9
oretests/src/android/app/activity/LifecycleTest.java
oretests/src/android/app/activity/MetaDataTest.java
oretests/src/android/content/BrickDeniedTest.java
oretests/src/android/content/MemoryFileProviderTest.java
oretests/src/android/content/SyncStorageEngineTest.java
oretests/src/android/content/pm/AppCacheTest.java
oretests/src/android/content/pm/ComponentTest.java
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/database/sqlite/SQLiteJDBCDriverTest.java
oretests/src/android/os/FileObserverTest.java
oretests/src/android/os/HierarchicalStateMachineTest.java
oretests/src/android/os/PerformanceCollectorTest.java
oretests/src/android/os/PowerManagerTest.java
oretests/src/android/text/HtmlTest.java
oretests/src/android/text/util/LinkifyTest.java
oretests/src/android/util/MonthDisplayHelperTest.java
oretests/src/android/view/FocusFinderTest.java
oretests/src/android/view/accessibility/RecycleAccessibilityEventTest.java
oretests/src/android/widget/RadioGroupPreCheckedTest.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeadersTest.java
oretests/src/android/widget/gridview/touch/GridTouchStackFromBottomManyTest.java
oretests/src/android/widget/listview/arrowscroll/ListInterleaveFocusablesTest.java
oretests/src/android/widget/listview/arrowscroll/ListOfItemsTallerThanScreenTest.java
oretests/src/android/widget/listview/arrowscroll/ListOfShortShortTallShortShortTest.java
oretests/src/android/widget/listview/arrowscroll/ListWithScreenOfNoSelectablesTest.java
69a5a9666281013fbc5f528b724b6c84e61d5962 26-Jul-2010 Xia Wang <xiaw@google.com> Wait for broadcast even if the network state has been changed.
bug: 2863356

Change-Id: If279e891cf66fcef465e85b704b0b857f6ac3742
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
fb16cbd9b2e86d6878d4bff820422bc09c8938de 26-Jul-2010 Vasu Nori <vnori@google.com> add new API in SQLiteStatement to deprecate another.

1. SQLIteStatement.executeUpdateDelete() replaces execute() - and returns the
number of rows changed.
2. let SQLiteDatabase.execSQL() call the above new API - which
means all CRUD statements by execSQL() are stored in prepared statement cache.
3. remove the following from SQLiteDatabase
lastrowId
lastchangecount()
native_execSQL()

Change-Id: I4e93a09dc381f425c3ae6ccc331a7bf227491e22
oretests/src/android/database/DatabaseGeneralTest.java
b46507f6b84f0cf5a7f56cc3bf3a19feb368eecb 26-Jul-2010 Xavier Ducrohet <xav@android.com> am f8c335e8: am f72181c6: Fix hosttests to use the new ddmlib API.

Merge commit 'f8c335e85a46887de6ca771ad76ff35c713ce0c4'

* commit 'f8c335e85a46887de6ca771ad76ff35c713ce0c4':
Fix hosttests to use the new ddmlib API.
f8c335e85a46887de6ca771ad76ff35c713ce0c4 26-Jul-2010 Xavier Ducrohet <xav@android.com> am f72181c6: Fix hosttests to use the new ddmlib API.

Merge commit 'f72181c60943dcfb642aac1dc5fa5416c1bb566e' into gingerbread-plus-aosp

* commit 'f72181c60943dcfb642aac1dc5fa5416c1bb566e':
Fix hosttests to use the new ddmlib API.
f72181c60943dcfb642aac1dc5fa5416c1bb566e 22-Jul-2010 Xavier Ducrohet <xav@android.com> Fix hosttests to use the new ddmlib API.

Change-Id: I629876c5baabc1cd8700604c4ebed13cc9e2168d
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
osttests/src/android/content/pm/PackageManagerHostTests.java
osttests/src/android/content/pm/PackageManagerStressHostTests.java
e50282ede751c846385106490988b26c3d785707 24-Jul-2010 Jean-Baptiste Queru <jbq@google.com> am 8a13d4e3: am f5c73101: Merge "dependent change for "parse instrumentation result bundles" in sdk"

Merge commit '8a13d4e3e5a175baddb7b8ca542d9d9941cf24a6'

* commit '8a13d4e3e5a175baddb7b8ca542d9d9941cf24a6':
dependent change for "parse instrumentation result bundles" in sdk
8a13d4e3e5a175baddb7b8ca542d9d9941cf24a6 24-Jul-2010 Jean-Baptiste Queru <jbq@google.com> am f5c73101: Merge "dependent change for "parse instrumentation result bundles" in sdk"

Merge commit 'f5c7310152cf5537be6997412c1a42dde9fe9ecf' into gingerbread-plus-aosp

* commit 'f5c7310152cf5537be6997412c1a42dde9fe9ecf':
dependent change for "parse instrumentation result bundles" in sdk
f5c7310152cf5537be6997412c1a42dde9fe9ecf 24-Jul-2010 Jean-Baptiste Queru <jbq@google.com> Merge "dependent change for "parse instrumentation result bundles" in sdk"
65a8883f0e605bb8a73a692987b47ce5da632e72 17-Jul-2010 Vasu Nori <vnori@google.com> don't store mDatabase in SQLiteCursor as it is already in SQLiteQuery

SQLiteCursor has two members: mQuery, mDatabase
but mQuery already has mDatabase.
there is no need for SQLiteCursor.mDatabase.
and everytime SQLiteQuery.mDatabase is to be used, try to use a pooled database
connection handle, if possible.
Change-Id: I42b2376d714a1a4091c843e245a45b882bb7fee6
oretests/src/android/database/sqlite/DatabaseConnectionPoolTest.java
oretests/src/android/database/sqlite/SQLiteCursorTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
cbfa242609ff19e52343d1ca9b9eb375e3338126 17-Jul-2010 Hung Dang <hndang@google.com> am d652751d: am b6761e73: am 28fe43be: Merge "Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test." into froyo

Merge commit 'd652751de782bac7e37916ed5786fcfa637a2be3'

* commit 'd652751de782bac7e37916ed5786fcfa637a2be3':
Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test.
d652751de782bac7e37916ed5786fcfa637a2be3 17-Jul-2010 Hung Dang <hndang@google.com> am b6761e73: am 28fe43be: Merge "Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test." into froyo

Merge commit 'b6761e73ce6b255cfe96bfa1fa6ac611abcfc067' into gingerbread-plus-aosp

* commit 'b6761e73ce6b255cfe96bfa1fa6ac611abcfc067':
Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test.
b6761e73ce6b255cfe96bfa1fa6ac611abcfc067 17-Jul-2010 Hung Dang <hndang@google.com> am 28fe43be: Merge "Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test." into froyo

Merge commit '28fe43be5c364a8f7f248a5ac05cf832a83737c2' into gingerbread

* commit '28fe43be5c364a8f7f248a5ac05cf832a83737c2':
Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test.
506e6e0882fe7c726138f10d558732bf9617c5db 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 3a94ab02: merge from open-source master

Merge commit '3a94ab026f0434624f233e99b1a0aadb9152a09a'

* commit '3a94ab026f0434624f233e99b1a0aadb9152a09a':
Allow ListPreference summary to use entry
3a94ab026f0434624f233e99b1a0aadb9152a09a 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ib00a02e90d5c2c0b4cc1919258b858930967198b
ba1348e3c21502ecde9427413703defa6d105132 16-Jul-2010 Yu Shan Emily Lau <yslau@google.com> Add the hook which can set the device to connect to wifi and in airplane mode after reboot. This is for the power test.

Change-Id: I42527612764252d1c47bd29a2b88d5e3019cfdf9
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
ba636df784398e4cd56f2982de63973ef6cd44fb 13-Jul-2010 Kenny Root <kroot@google.com> Allow ListPreference summary to use entry

Currently when ListPreferences are used in a PreferenceActivity, the summary
values are set to the same as the current index in mEntryValue. This patch
adds the ability for a string substitution to be used in the summary
which points to the corresponding entry in mEntries to aid in
localization.

For example a preference may be named "color" with the following attributes
in the locale "de" (German):

mEntryValues = { "red", "green", "blue" }
mEntries = { "rot", "grün", "blau" }
mSummary = "Die Farbe ist %1$s."

getSummary() returns "Die Farbe ist grün."

Change-Id: Iea169ac3d1c9d6290d853fc7c67a7c4c8a11bb90
oretests/src/android/preference/ListPreferenceTest.java
abcdecc0174897376b3b27765ae82c05615489bd 12-Jul-2010 Guang Zhu <guangzhu@android.com> dependent change for "parse instrumentation result bundles" in sdk

Change-Id: Ie3708d30620a703909829c32f5599816cc52b3f6
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
e25539fdfdf884eee55107efbcc893f44e82e00e 09-Jul-2010 Vasu Nori <vnori@google.com> reduce locking when using SQLiteStatement

Do compiling of sql, binding of args and execution of the SQL
statement within one single database lock period.
This reduces the number of times the database lock
needs to be acquired during the course of compilation, binding
and execution of a SQLiteStatement.

Change-Id: I22b090ec9e10fc0aa2532a93bafe610af2546b58
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
oretests/src/android/database/sqlite/SQLiteStatementTest.java
57feb5d9a7fd5329c2ae5daeca0ce8f10a7372a7 22-Jun-2010 Vasu Nori <vnori@google.com> STOPSHIP CL in master - make sqlite WAL default for all apps

for testing the sqlite WAL feature in the next few weeks.

Change-Id: I07234647b5e90d9e3bb0a5310b6cc449d58db428
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
2827d6d974beabb12344040a002dcb52dd7106b5 04-Jul-2010 Vasu Nori <vnori@google.com> for WAL to work, can't keep prepared SQL stmt_id in SQLiteStatement

Some (including the Contacts app) do the following:
1. Open database
2. As part of database_connection.onCreate(),
Create some SQLiteStatement objects to cache them in the process
3. attach databases
WAL doesn't work with attached databases. so, apps doing the above
should enable WAL only if there are no attached databases.

But we would like to enable WAL automatically for all apps after step #1 above
and disable WAL if the app subsequently does 'attach database' SQL.

this works only if there are no SQLiteStatement objects created in step # 2,
because SQLiteStatements cwmaintain a hard-reference to the database connection
for life and also to the prepared SQL statement id.
It is quite difficult to disable WAL in step # 3
if it is enabled in step # 1
and then a connection pool gets used by step # 2

would make WAL disabling easier if SQLiteStatement refers to prepared SQL
statement id only when it is needed (during binding and execute calls)
and thus NOT tied to a spacific database conenction.

also, from the standpoint of not blocking readers, it helps NOT to have
SQLiteStatement be married to a database connection and prepared SQL statement
id for life.

Change-Id: I464d57042965a28d2bde88e0f44b66ec119b40dc
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
oretests/src/android/database/sqlite/SQLiteStatementTest.java
6ac21d30be06c1c6d5ef04a88cf5171a446633f1 07-Jul-2010 Vasu Nori <vnori@google.com> unittests for DatabaseConnectionPool (and fix bugs)

Change-Id: I6f251b4bdd472bd840ea1be6497660f8c31cd3e3
oretests/src/android/database/sqlite/DatabaseConnectionPoolTest.java
59d60420ba9246eee152852b6a597a0aba7f704d 04-Jul-2010 Vasu Nori <vnori@google.com> deprecate method returning prepared sql statement id

this method causes sql statement in a SQLiteProgram object to be never
re-compiled. thats not desirable, is it?
there should be no need for this method.

Change-Id: I207fad6415c1e2ef4097ee65a3ff347b5435b994
oretests/src/android/database/DatabaseGeneralTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
oretests/src/android/database/sqlite/SQLiteStatementTest.java
2776d57403f08e4ffcc05d476d11d58861823f08 04-Jul-2010 Vasu Nori <vnori@google.com> Merge "fix broken build: renaming a testfile"
7af57126b557bfe08a21952134a8712f29009aaa 04-Jul-2010 Vasu Nori <vnori@google.com> fix broken build: renaming a testfile

Change-Id: I973f604f4f87792b3f8734a6aea4a73d29e0b34b
oretests/src/android/database/sqlite/SQLiteStatementTest.java
d960ef8469b385124fe1a83c28c60ddaef5099ec 04-Jul-2010 Vasu Nori <vnori@google.com> Merge "change name of a test to be more accurate"
709493707c22d8794a0f82b07caae96addeff460 04-Jul-2010 Vasu Nori <vnori@google.com> change name of a test to be more accurate

Change-Id: Ie8c7d6ab4b80ae0446f9d67c8a04cef436948692
oretests/src/android/database/sqlite/SQLiteGeneralTest.java
oretests/src/android/database/sqlite/SQLiteStatementTest.java
150daa1ae1cf81b676349a7dedef61767c5a68a9 02-Jul-2010 Vasu Nori <vnori@google.com> Merge "remove broken, unused and unwanted tests"
ed57af9e89f1d27ae544ccebb88e2728c2ab379d 02-Jul-2010 Vasu Nori <vnori@google.com> remove broken, unused and unwanted tests

Change-Id: I804b777b7c434c8a190d70d6a2556e1f157abe70
oretests/src/android/database/sqlite/AbstractJDBCDriverTest.java
oretests/src/android/database/sqlite/SQLiteJDBCDriverTest.java
7501010b71d57264a06f82937f5fb29cb9f4b509 02-Jul-2010 Vasu Nori <vnori@google.com> some refactoring and multi-threading fixes

Change-Id: I7a0497dc2ed7b1e21471d71532558ef243eb9f73
oretests/src/android/database/DatabaseGeneralTest.java
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
2c8b142708e6419ae0b4e97bcec585c55afe6386 29-Jun-2010 Xia Wang <xiaw@google.com> am 591908fd: am 120a58fb: Extend unit test framework for Wifi soft AP configuration Add test case: testApSsidWithAlphabet

Merge commit '591908fd3fd1a84303bbc76c5c44d5cb0ee0bc94'

* commit '591908fd3fd1a84303bbc76c5c44d5cb0ee0bc94':
Extend unit test framework for Wifi soft AP configuration
120a58fb80ec9ba5b62e4b7453ea45703d1ce58a 29-Jun-2010 Xia Wang <xiaw@google.com> Extend unit test framework for Wifi soft AP configuration
Add test case: testApSsidWithAlphabet

Change-Id: Ie188f241d15603015d264a7d568ed44ce4ca3ad8
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerUnitTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/unit/WifiSoftAPTest.java
b983c893d4307caec8504e6b46ca69ae859b25d3 28-Jun-2010 Derek Sollenberger <djsollen@google.com> Rename a data storage object to better reflect its intended usage.

Change-Id: I18eae0665b59e7fee389a0e09955c5860a7e65f2
oretests/src/android/webkit/ZoomManagerTest.java
4aef697d58bc142b96953cb2623b06981af2abc9 24-Jun-2010 Derek Sollenberger <djsollen@google.com> Initial pass at unit tests for ZoomManager.

This CL also includes some minor changes to the ZoomManager that
make the manager easier to test as well as fix some uncovered issues.

Change-Id: I66a84d70ee75e765ccf9cccb2d123757a9470f93
oretests/src/android/webkit/ZoomManagerTest.java
e8bf6dbc4025f5e3973f2902af7dfdb501e5d6ff 18-Jun-2010 Vasu Nori <vnori@google.com> fix broken test similar to I32c30f7d05e5bec7c6b2776ce9a80c8be61d856f

Change-Id: Idf075ea888dfab35afba0a28a838e3a15b7de545
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
0bcd289b99786567931b56658e37c8fcb965b513 17-Jun-2010 Vasu Nori <vnori@google.com> move a sqlite test from framework-tests to coretests

Change-Id: Ic8d42a3c477e4ea0ad8eaa4e1869ae221b95ba46
oretests/src/android/database/sqlite/SQLiteDatabaseTest.java
83ea9e395e86ca2d12d822609ca2a8b35b78cca9 16-Jun-2010 Brett Chabot <brettchabot@android.com> am 685fcf36: am c95812e6: Merge "Move out all framework-tests classes." into gingerbread

Merge commit '685fcf364b84d5ac911ae9cbbc4fec99f36cbd48'

* commit '685fcf364b84d5ac911ae9cbbc4fec99f36cbd48':
Move out all framework-tests classes.
be81f4f15dad6d690efcab1973d1e174ce3b001b 15-Jun-2010 Brett Chabot <brettchabot@android.com> Move out all framework-tests classes.

Previously tests/framework-tests contained a quarantined set of test classes
that needed access to package-private framework api. Running these tests
normally would cause the dalvik verifier to throw errors.

runtest now has support for turning off the dalvik verifier for frameworks
tests, so move this tests into their recommended location, close to the source
being tested.

Also move policy source into a 'src' folder to accommodate the tests move.

Change-Id: I62f839da185a55bc553b653bf583fd99da438512
oretests/src/android/text/PackedIntVectorTest.java
oretests/src/com/android/internal/http/multipart/MultipartTest.java
oretests/src/com/android/internal/os/LoggingPrintStreamTest.java
d2cecfd3759d6785c5a2ed3f2f35fa1a30f757db 04-Jun-2010 Vasu Nori <vnori@google.com> fix broken-test

Change-Id: I3d33cda2e4f1ba68843d6a81b8c624ce4af8519f
oretests/src/android/database/DatabaseGeneralTest.java
4f2cf8af551c1703835a1193727ea7c56c8c8323 03-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 913dbc50: am a9f06fef: am ee7e6a78: merge from open-source master
a9f06fef8e2fff0c909132073203de5bd2461795 03-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am ee7e6a78: merge from open-source master

Merge commit 'ee7e6a78e28b360826f215e0e84d43b1513b6401' into kraken

* commit 'ee7e6a78e28b360826f215e0e84d43b1513b6401':
Improved error-handling in Rfc822Tokenizer
ee7e6a78e28b360826f215e0e84d43b1513b6401 03-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Idf8d5661d7b261b74ac0b1271af98795ac5faff9
62697e57eddc89d76fdfb6cdacaf83d058d9744a 20-May-2010 Vasu Nori <vnori@google.com> Merge "close() on anything other than database shouldn't acquire db lock."
6f37f83a4802a0d411395f3abc5f24a2cfec025d 19-May-2010 Vasu Nori <vnori@google.com> close() on anything other than database shouldn't acquire db lock.

bug:2683001
implmentation details:
1.close() on any sql statement is should simply queued up for finalization
to be performed later. caller doesn't acquire database lock.
2. the only effect of NOT close immediately is non-release of some memory.
3. all such queued-up-finalizations are performed whenever there is
another execute() of some sql statement on that database from ANY
thread in the process.
4. database close() automatically releases all unfinalized statements
before closing the database.

Change-Id: If4c9c7fde6b8945a41abc6c8b992aa8c69854512
oretests/src/android/database/DatabaseGeneralTest.java
422017be6847d52db9cbfe78816c0b4d982b9fc8 20-May-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make vCard code a separated static library."
64545a8ced5aa350e917ab1824a1c06a14a96532 14-May-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make vCard code a separated static library.

- Move the library to a separate directory in framewokr/base, and rename its package from
android.pim.vcard to com.android.vcard.
- Move all tests for the library under the directory.
- Confirm all tests for vCard are successful.

It would be better for us to have this directory somewhere else (like external/).
But I'll submit this here now and move it to the right place as soon as possible.
From the view of build mechanism, we can do that immediately.

BUG: 2689523
Change-Id: I435e10571b7160bfcc029bed7c37aaac1c6fd69a
oretests/res/raw/v21_backslash.vcf
oretests/res/raw/v21_complicated.vcf
oretests/res/raw/v21_invalid_comment_line.vcf
oretests/res/raw/v21_japanese_1.vcf
oretests/res/raw/v21_japanese_2.vcf
oretests/res/raw/v21_multiple_entry.vcf
oretests/res/raw/v21_org_before_title.vcf
oretests/res/raw/v21_pref_handling.vcf
oretests/res/raw/v21_simple_1.vcf
oretests/res/raw/v21_simple_2.vcf
oretests/res/raw/v21_simple_3.vcf
oretests/res/raw/v21_title_before_org.vcf
oretests/res/raw/v21_winmo_65.vcf
oretests/res/raw/v30_comma_separated.vcf
oretests/res/raw/v30_simple.vcf
oretests/src/android/pim/vcard/VCardExporterTests.java
oretests/src/android/pim/vcard/VCardImporterTests.java
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/VCardTestsBase.java
oretests/src/android/pim/vcard/VCardUtilsTests.java
oretests/src/android/pim/vcard/test_utils/ContactEntry.java
oretests/src/android/pim/vcard/test_utils/ContentValuesBuilder.java
oretests/src/android/pim/vcard/test_utils/ContentValuesVerifier.java
oretests/src/android/pim/vcard/test_utils/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/test_utils/ExportTestProvider.java
oretests/src/android/pim/vcard/test_utils/ExportTestResolver.java
oretests/src/android/pim/vcard/test_utils/ImportTestProvider.java
oretests/src/android/pim/vcard/test_utils/ImportTestResolver.java
oretests/src/android/pim/vcard/test_utils/LineVerifier.java
oretests/src/android/pim/vcard/test_utils/LineVerifierElem.java
oretests/src/android/pim/vcard/test_utils/PropertyNode.java
oretests/src/android/pim/vcard/test_utils/PropertyNodesVerifier.java
oretests/src/android/pim/vcard/test_utils/PropertyNodesVerifierElem.java
oretests/src/android/pim/vcard/test_utils/VCardVerifier.java
oretests/src/android/pim/vcard/test_utils/VNode.java
oretests/src/android/pim/vcard/test_utils/VNodeBuilder.java
f3a6c73000278fd670e718c1537035225cfe0bc6 20-May-2010 Xia Wang <xiaw@google.com> am 17530508: am cf7d2d50: am 3716ea04: am 06906796: If the network SSID is a string, it should be enclosed in double quotation marks.
cf7d2d50a4b99e6729c02cc2257bd6bd62814c6a 20-May-2010 Xia Wang <xiaw@google.com> am 3716ea04: am 06906796: If the network SSID is a string, it should be enclosed in double quotation marks.

Merge commit '3716ea04d9fd59ff95bacdf6efac4ab5583e13fc' into kraken

* commit '3716ea04d9fd59ff95bacdf6efac4ab5583e13fc':
If the network SSID is a string, it should be enclosed in double quotation marks.
3716ea04d9fd59ff95bacdf6efac4ab5583e13fc 20-May-2010 Xia Wang <xiaw@google.com> am 06906796: If the network SSID is a string, it should be enclosed in double quotation marks.

Merge commit '069067963cf0117cfb4a1aef99b550b126d9ca92' into froyo-plus-aosp

* commit '069067963cf0117cfb4a1aef99b550b126d9ca92':
If the network SSID is a string, it should be enclosed in double quotation marks.
069067963cf0117cfb4a1aef99b550b126d9ca92 20-May-2010 Xia Wang <xiaw@google.com> If the network SSID is a string, it should be enclosed in double quotation marks.

bug id: 2701058

Change-Id: I40e10ba096053710d4974b005d0d2e7c309ccffe
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
8e5819662f5ab8f38400d8df5042ba184ec04031 20-May-2010 Vasu Nori <vnori@google.com> Merge "DatabaseCorruptionHandler causes NPE"
85f08f9eaeae6b04c6ce42e5b9dc097ac3e70fc5 19-May-2010 Vasu Nori <vnori@google.com> DatabaseCorruptionHandler causes NPE

it is trying to get attachedDb list (by executing a pragma) after closing
the database.
also added unittests.

Change-Id: I7dce665ec7354402cdef6fbe055455f5798e123c
oretests/src/android/database/DatabaseGeneralTest.java
33c26f9fd01d5e2acce3e6c7ca828951d28c7d66 19-May-2010 Wink Saville <wink@google.com> am 199d3783: am 7e3b31d7: Merge "Update docs, add HANDLED, NOT_HANDLED and getCurrentMessage." into kraken
a4f3bec29c85ef9e0d07fdd551fe3c50f28b9adc 19-May-2010 Wink Saville <wink@google.com> Update docs, add HANDLED, NOT_HANDLED and getCurrentMessage.

The EBNF statemachine description language was to difficult
to remember changed to use a simpler and more obvious psuedo
language.

Added HANDLED and NOT_HANDLED as it makes the psuedo code
more obvious.

Added getCurrentMessage primarily for use by code in enter
so that it can know why the new state is being entered.

Change-Id: I1446e417b77684fbde0020b1da0975eedc57cce4
oretests/src/android/os/HierarchicalStateMachineTest.java
d7289efbade2a7226cd0c768230f8a1fa93ebe5b 19-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 2be883c4: am 4ec730ca: am 7361b741: am 4a0823e5: Merge "Uncomment a test that was marked as STOPSHIP Add MediumTest tag" into froyo
6211c5690cdd91a0bb95fd04f19e026512794cd0 19-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 5f0e438b: am 3d802ef7: am aa4db173: am 9a212adc: Fix 2641875 Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well.
4ec730cabb68ee8347c6aa5dc929b09651275aca 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 7361b741: am 4a0823e5: Merge "Uncomment a test that was marked as STOPSHIP Add MediumTest tag" into froyo

Merge commit '7361b7410f2427022cc8917b00553dc26107cded' into kraken

* commit '7361b7410f2427022cc8917b00553dc26107cded':
Uncomment a test that was marked as STOPSHIP
7361b7410f2427022cc8917b00553dc26107cded 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 4a0823e5: Merge "Uncomment a test that was marked as STOPSHIP Add MediumTest tag" into froyo

Merge commit '4a0823e5486f16b10762076d629f2f7e4d5da476' into froyo-plus-aosp

* commit '4a0823e5486f16b10762076d629f2f7e4d5da476':
Uncomment a test that was marked as STOPSHIP
fb7bacf6ba9504f3a863dc954b6147985fc74778 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> Uncomment a test that was marked as STOPSHIP
Add MediumTest tag

Change-Id: I0699d168d7ec70c076f4713e0e405c0779a290c6
oretests/src/android/content/pm/PackageManagerTests.java
3d802ef73bd8573f61b6b441990fbbd8e44e18e7 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> am aa4db173: am 9a212adc: Fix 2641875 Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well.

Merge commit 'aa4db173a2465d74ea35cc7f736f6b2a5b01f72c' into kraken

* commit 'aa4db173a2465d74ea35cc7f736f6b2a5b01f72c':
Fix 2641875
aa4db173a2465d74ea35cc7f736f6b2a5b01f72c 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 9a212adc: Fix 2641875 Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well.

Merge commit '9a212adcffbc4b32d51f512889b33ba584647aa9' into froyo-plus-aosp

* commit '9a212adcffbc4b32d51f512889b33ba584647aa9':
Fix 2641875
9a212adcffbc4b32d51f512889b33ba584647aa9 18-May-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2641875
Initialize the cache path only if the container exists.
This did exist before but was somehow removed.
Fix a known test failure as well.

Change-Id: I63219369b0e7abca4919fbde2a04035a0fea9e35
oretests/src/android/content/pm/PackageManagerTests.java
507ad028fa80c371f6d4bce4414867d0f3e93f25 18-May-2010 Xia Wang <xiaw@google.com> am 8ee6aefe: am 58e49a50: Merge " ConnectivityManagerTestActivity can be launched from launcher. Help to track bug 2680352. Add a resource file for string. Corrent some typos." into kraken
0b90d76ef8640378c8906226175a8080064b8f11 17-May-2010 Xia Wang <xiaw@google.com> ConnectivityManagerTestActivity can be launched from launcher.
Help to track bug 2680352.
Add a resource file for string.
Corrent some typos.

Change-Id: I42fefe49c360168ec807ed82dc220ab68681d14e
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/res/values/strings.xml
7cd51efcbd2d083bf577696591ef1769034f7e2f 13-May-2010 Jeff Hamilton <jham@android.com> Remove the deprecated cursor methods.

Change-Id: Ie3571fea9f36996c31c327240b11086f8cc487f0
oretests/src/android/database/DatabaseCursorTest.java
oretests/src/android/database/DatabaseGeneralTest.java
4952aef1c590361a19acdc1afae5f9c19b2fd114 14-May-2010 Suchi Amalapurapu <asuchitra@google.com> am 8e8bb02f: am 3f5ed04f: am b63ea5f7: am c928a11e: Merge "Fix 2672155 Check the code path when enabling disabling packages." into froyo
3f5ed04f7f594efe401f2a9f7828343920723b4b 14-May-2010 Suchi Amalapurapu <asuchitra@google.com> am b63ea5f7: am c928a11e: Merge "Fix 2672155 Check the code path when enabling disabling packages." into froyo

Merge commit 'b63ea5f784b7862a7ab28e0134f6da47f6275810' into kraken

* commit 'b63ea5f784b7862a7ab28e0134f6da47f6275810':
Fix 2672155
b63ea5f784b7862a7ab28e0134f6da47f6275810 14-May-2010 Suchi Amalapurapu <asuchitra@google.com> am c928a11e: Merge "Fix 2672155 Check the code path when enabling disabling packages." into froyo

Merge commit 'c928a11e34678296511d5ea34582292be7368618' into froyo-plus-aosp

* commit 'c928a11e34678296511d5ea34582292be7368618':
Fix 2672155
1ace5bc070b7271a3f5835b13e326875785f718c 13-May-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2672155
Check the code path when enabling disabling packages.

Add unit test

Change-Id: I0f0f482a3735234eab3f63ba1f6462574b70144e
oretests/src/android/content/pm/PackageManagerTests.java
a4bb6410403d7cc4e5cac82243ad2cc3fc1d3c60 13-May-2010 The Android Open Source Project <initial-contribution@android.com> am 1331ded8: am e28776bb: am b1110149: merge from open-source master
e28776bbd72397eea0dd24f5c28273fb2bf1a2f0 13-May-2010 The Android Open Source Project <initial-contribution@android.com> am b1110149: merge from open-source master

Merge commit 'b1110149cccc3b99e59ead34ca46e5ac026f6db9' into kraken

* commit 'b1110149cccc3b99e59ead34ca46e5ac026f6db9':
Use integer for loop counter instead of float
New test in FrameworkTest for the VelocityTracker class
Preserve '+' in phone numbers imported from SIM.
b1110149cccc3b99e59ead34ca46e5ac026f6db9 13-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I88a580162b34a80d1e3e7987b7a301c253afa0e8
54a8f2952341e39685c920e9be43e57d33e4b01b 13-May-2010 Jaikumar Ganesh <jaikumar@google.com> Merge "Add FLAG_RERAIN_PHONE_NUMBER_FORMATTING." into kraken
6b385b66379b866c73d653e517de35ce313547c1 11-May-2010 Keith Ito <kito@google.com> am a52c85da: am 8528fcb1: am a8d8cb12: am be65399b: Merge "Fix for bug 2672749: StringIndexOutOfBoundsException in Uri.getQueryParameter" into froyo
9114a8bb8b241bb8d3be307b29e64ea64ab27901 11-May-2010 Keith Ito <kito@google.com> Fix for bug 2672749: StringIndexOutOfBoundsException in Uri.getQueryParameter

Change-Id: I10b02306478d9c595dbcae0767b44c403d50e24a
oretests/src/android/net/UriTest.java
ba2593a424a8d765909419e7903e4a6a454d1581 07-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add FLAG_RERAIN_PHONE_NUMBER_FORMATTING.

Sometimes using PhoneNumberUtils takes unexpected side effects.
For example, PAUSE mark (#) is removed and operation on the phone number does
not work well in some devices.
I also concern removing the PhoneNumberUtils logic since some other
mobile phones cannot understand # or alphabets and starts emitting errors
after the modification.

I'll add a flag instead of just removing the code and let users choose it.

Bug: 2329952
Change-Id: I4ffdd01ebb8ac320b8b67a5848a747af13c6ad1a
oretests/src/android/pim/vcard/VCardExporterTests.java
07704f1f66e235e01734e8dc2e085649a4779126 10-May-2010 Dan Egnor <egnor@google.com> am 6bff8df8: am 1a373db0: am 5610c287: am 7d167376: Merge "Add unit test for passing thread priority & cgroup through Binder." into froyo
db990751ef8e535ea5cb3d527e36936e119095e8 07-May-2010 Shimeng (Simon) Wang <swang@google.com> Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt

Note: this change doesn't solve the Arabic country code top level domains, which
was turned on today. For that, more changes need to be done; probably we need a way
to convert the BiDi url to punycode first; then apply this URL pattern.

issue: 2663885
Change-Id: I0597fe620c4d44259bff88ecfcbcca1565928c6f
oretests/src/android/util/PatternsTest.java
43fe81bc2c186e49b25762450003276a7ed0002d 07-May-2010 Dan Egnor <egnor@google.com> Add unit test for passing thread priority & cgroup through Binder.

This test actually exposes some bugs -- the test passes as written, but
certain parts are commented out with references to the bugs in question.

Bug: 2665914
Bug: 2665954
Change-Id: I61220e0efadc4edbb6ad419d26fa1f0f50bbc24c
oretests/Android.mk
oretests/AndroidManifest.xml
oretests/src/android/os/BinderThreadPriorityService.java
oretests/src/android/os/BinderThreadPriorityTest.java
oretests/src/android/os/IBinderThreadPriorityService.aidl
d3b562ad872dd181acffe9e7b3baa1ce6328f166 07-May-2010 Shimeng (Simon) Wang <swang@google.com> Merge "Revert "Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt""
cbeaf2d0aef5c8de9ce86b8f1dde17459f9227e3 07-May-2010 Shimeng (Simon) Wang <swang@google.com> Revert "Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt"

This reverts commit 63b849ef8d6a47422b0f2779f1d9320f6a65d16b.
oretests/src/android/util/PatternsTest.java
ac18a05811174685fd633918960a7fb3956bebef 07-May-2010 Xia Wang <xiaw@google.com> am 4b86be10: am 0bfc3973: am 3e6c1696: am 11505b47: Merge "Avoid UNKNOWN state for Wifi in bug2542613, not a common user case." into froyo
1acadbc69cb5564b44b1da6682368aa6604c8f66 07-May-2010 Neal Nguyen <tommyn@google.com> am 529ad92e: am bda001aa: am ad0830a1: am 639a7fc2: Merge "Propagating IOException from RemoteAndroidTestRunner#run() in PackageManagerHostTestUtils." into froyo
b0d278fcaa34a2621cdddd12779644fb95575f38 07-May-2010 Shimeng (Simon) Wang <swang@google.com> Merge "Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt"
9b1872e619bd06f33853716a4bae0214b4a7d176 07-May-2010 Shimeng (Simon) Wang <swang@google.com> Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt

Note: this change doesn't solve the Arabic country code top level domains, which
was turned on today. For that, more changes need to be done; probably we need a way
to convert the BiDi url to punycode first; then apply this URL pattern.

issue: 2663885
Change-Id: Iac5d16bf9e091a072a59f8244ab6e87940badd4f
oretests/src/android/util/PatternsTest.java
4672203ea119f38786f55ac866f38da307671a49 06-May-2010 Xia Wang <xiaw@google.com> Avoid UNKNOWN state for Wifi in bug2542613, not a common user case.

Change-Id: Ief0a953e2909cb5c808f0d683ab95d14f6c53e72
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
20e79fd41268489ddc97edf79c507d6d5c0c6cda 06-May-2010 Andy McFadden <fadden@android.com> Fix sim-eng build.

Not sure how this would build anywhere -- checked exception was not
checked. Apparently only sim-eng cares.

Change-Id: I10bc7d0c41666fca55a7df60ef18517956097d9b
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
42c2baeb48416a90d30aaa3f8276d99eb922e9fb 06-May-2010 Neal Nguyen <tommyn@google.com> Propagating IOException from RemoteAndroidTestRunner#run() in PackageManagerHostTestUtils.

Change-Id: Ia50d58760b4cc1e222927be054c52cc3b2993395
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
2a7ca524a3c03daadf8ce1670e017ee044706051 06-May-2010 Neal Nguyen <tommyn@google.com> am 657757fd: am 73bbcc4d: am e96e2358: am f541c62b: Merge "Adding a few host-based stress tests for Apps on SD." into froyo
b1fb5c301120389f0d16e8414ca813ef51f44089 01-Apr-2010 Neal Nguyen <tommyn@google.com> Adding a few host-based stress tests for Apps on SD.

Change-Id: I0ccb1f3574688f60b6296dac6f6859ba5d0597ea
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
osttests/src/android/content/pm/PackageManagerHostTests.java
osttests/src/android/content/pm/PackageManagerStressHostTests.java
osttests/test-apps/AutoLocVersionedTestApp_v1/Android.mk
osttests/test-apps/AutoLocVersionedTestApp_v1/AndroidManifest.xml
osttests/test-apps/AutoLocVersionedTestApp_v1/src/com/android/framework/autolocversionedtestapp/AutoLocVersionedTestAppActivity.java
osttests/test-apps/AutoLocVersionedTestApp_v2/Android.mk
osttests/test-apps/AutoLocVersionedTestApp_v2/AndroidManifest.xml
osttests/test-apps/AutoLocVersionedTestApp_v2/src/com/android/framework/autolocversionedtestapp/AutoLocVersionedTestAppActivity.java
osttests/test-apps/ExternalLocAllPermsTestApp/Android.mk
osttests/test-apps/ExternalLocAllPermsTestApp/AndroidManifest.xml
osttests/test-apps/ExternalLocAllPermsTestApp/src/com/android/framework/externallocallpermstestapp/ExternalLocAllPermsTest.java
osttests/test-apps/ExternalLocVersionedTestApp_v1/Android.mk
osttests/test-apps/ExternalLocVersionedTestApp_v1/AndroidManifest.xml
osttests/test-apps/ExternalLocVersionedTestApp_v1/src/com/android/framework/externallocversionedtestapp/ExternalLocVersionedTestAppActivity.java
osttests/test-apps/ExternalLocVersionedTestApp_v2/Android.mk
osttests/test-apps/ExternalLocVersionedTestApp_v2/AndroidManifest.xml
osttests/test-apps/ExternalLocVersionedTestApp_v2/src/com/android/framework/externallocversionedtestapp/ExternalLocVersionedTestAppActivity.java
osttests/test-apps/ExternalSharedPerms/Android.mk
osttests/test-apps/ExternalSharedPerms/AndroidManifest.xml
osttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/ExternalSharedPermsTest.java
osttests/test-apps/ExternalSharedPermsBT/Android.mk
osttests/test-apps/ExternalSharedPermsBT/AndroidManifest.xml
osttests/test-apps/ExternalSharedPermsBT/src/com/android/framework/externalsharedpermsbttestapp/ExternalSharedPermsBTTest.java
osttests/test-apps/ExternalSharedPermsDiffKey/Android.mk
osttests/test-apps/ExternalSharedPermsDiffKey/AndroidManifest.xml
osttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/ExternalSharedPermsDiffKeyTest.java
osttests/test-apps/ExternalSharedPermsFL/Android.mk
osttests/test-apps/ExternalSharedPermsFL/AndroidManifest.xml
osttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/ExternalSharedPermsFLTest.java
osttests/test-apps/NoLocVersionedTestApp_v1/Android.mk
osttests/test-apps/NoLocVersionedTestApp_v1/AndroidManifest.xml
osttests/test-apps/NoLocVersionedTestApp_v1/src/com/android/framework/nolocversionedtestapp/NoLocVersionedTestAppActivity.java
osttests/test-apps/NoLocVersionedTestApp_v2/Android.mk
osttests/test-apps/NoLocVersionedTestApp_v2/AndroidManifest.xml
osttests/test-apps/NoLocVersionedTestApp_v2/src/com/android/framework/nolocversionedtestapp/NoLocVersionedTestAppActivity.java
1fc1ec451610cb992f3cee37d5f05d4911676d1e 28-Apr-2010 Brett Chabot <brettchabot@google.com> Merge "2604226 Add test cases for the internal accessibility infrastructure."
05fd7e7d328261260a348c0b6ba840bc1f60cb14 27-Apr-2010 Shimeng (Simon) Wang <swang@google.com> Add good international characters to the path part of Url pattern.

Change-Id: Ib24f8ffc8554366cb4350ec2f9d7e77efb0cb083
oretests/src/android/util/PatternsTest.java
7ce7cfc32da1e5c2774ac62261a738fbb012ea99 27-Apr-2010 Shimeng (Simon) Wang <swang@google.com> Merge "Add good international characters to the path part of Url pattern."
40064d3098e17eb447e2b9ee4512b691f6b8c269 27-Apr-2010 Shimeng (Simon) Wang <swang@google.com> Add good international characters to the path part of Url pattern.

Change-Id: I05efb7e52a023fcb92db9db2b41dbab2ccca87c7
oretests/src/android/util/PatternsTest.java
0b29a587142b19ed25dd6489cfa037d06145afd1 17-Apr-2010 Svetoslav Ganov <svetoslavganov@google.com> 2604226 Add test cases for the internal accessibility infrastructure.

Change-Id: Iaeb2c11b6c2167632086b50d9c79e6459cc072b8
oretests/src/android/accessibilityservice/AccessibilityTestService.java
22b0d173207904c9e78dc4d74248da129cba4912 23-Apr-2010 Neal Nguyen <tommyn@google.com> am 0c817ba3: am 27e5a95a: am 5fa65082: Merge "Re-enabling unit tests for PackageManager/Apps on SD." into froyo
9504c70f8862f5ffc55b07bc374e0b18b78a2dc6 23-Apr-2010 Vasu Nori <vnori@google.com> fix a bug introduced when prepared-statement cache was made LRU-based

1. when an entry is pushed out of cache, it should be released if it is not
in use by any thread. This didn't have to be done when cache was NOT LRU
because the object either got into the cache while the caller had a reference
to it or it didn't. if it didn't get into cache (because cache is full),
the caller's close() released the object. But in LRU cache, an object
could get pushed out of cache due to LRU policy and if it is NOT in use
by any thread at the time it was pushed out of cache, then it
got GC'ed - which caused warnings to be pronted in the log.
2. also delete some unused methods in SQLiteDatabase.

Change-Id: I7831952647d3a057342bcc8ac186a6a26eb58f33
oretests/src/android/database/DatabaseGeneralTest.java
edb979a331ba3cdb12e9b7ce3944611cff1b51aa 22-Apr-2010 Neal Nguyen <tommyn@google.com> Re-enabling unit tests for PackageManager/Apps on SD.

Change-Id: I305d2e6d96418ab5b2df0ee7a31261180676204f
oretests/src/android/content/pm/PackageManagerTests.java
c2591c14f77366f30cc83e9c6a2abf9d9cd12a5e 22-Apr-2010 Kenny Root <kroot@google.com> Add tests for SettingsProvider.parseProviderList

Change-Id: Id5c1597cd94b80e0d20ca415b5b7ba32200c1a03
oretests/src/android/provider/SettingsProviderTest.java
56374c43f77ffb412864f53779b4a660ed6de7aa 21-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> vCard refactoring.

Change-Id: Ie6c5e0edae4a13279d5118f0380d863e4ff05727
oretests/src/android/pim/vcard/test_utils/ContentValuesVerifier.java
oretests/src/android/pim/vcard/test_utils/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/test_utils/VCardVerifier.java
6db2c6cab5dd4970614363d53f08bf51b79de6e7 20-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactoring vCard: remove Shift_JIS information from flags.

Change-Id: I34ef498b3312178e7d358b0c8ebc34703abfc771
oretests/src/android/pim/vcard/VCardImporterTests.java
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/test_utils/VCardVerifier.java
394026c53ece15d66bfdc256446474adaf3a6ee7 20-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactor vCard: clean up test code.

Bug: 2605996
Change-Id: Icdd8f56c1c21af35c55305cb9cc124cbf43174fc
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/test_utils/ContactEntry.java
oretests/src/android/pim/vcard/test_utils/ExportTestProvider.java
oretests/src/android/pim/vcard/test_utils/ExportTestResolver.java
oretests/src/android/pim/vcard/test_utils/ImportTestProvider.java
oretests/src/android/pim/vcard/test_utils/ImportTestResolver.java
oretests/src/android/pim/vcard/test_utils/PropertyNode.java
oretests/src/android/pim/vcard/test_utils/PropertyNodesVerifier.java
oretests/src/android/pim/vcard/test_utils/VCardVerifier.java
oretests/src/android/pim/vcard/test_utils/VNodeBuilder.java
8e798cf71e983ab27b8323b974a33d190d63f77d 20-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactor vCard: move utilities for unit tests to test_utils directory.

Change-Id: I4ef92633fb5eedc05f13ba53ca4ebc7e3e7ef8ce
oretests/src/android/pim/vcard/ContentValuesBuilder.java
oretests/src/android/pim/vcard/ContentValuesVerifier.java
oretests/src/android/pim/vcard/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/ExportTestResolver.java
oretests/src/android/pim/vcard/ImportTestResolver.java
oretests/src/android/pim/vcard/LineVerifier.java
oretests/src/android/pim/vcard/LineVerifierElem.java
oretests/src/android/pim/vcard/PropertyNode.java
oretests/src/android/pim/vcard/PropertyNodesVerifier.java
oretests/src/android/pim/vcard/VCardExporterTests.java
oretests/src/android/pim/vcard/VCardImporterTests.java
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/VCardTestsBase.java
oretests/src/android/pim/vcard/VCardVerifier.java
oretests/src/android/pim/vcard/VNode.java
oretests/src/android/pim/vcard/VNodeBuilder.java
oretests/src/android/pim/vcard/test_utils/ContactEntry.java
oretests/src/android/pim/vcard/test_utils/ContentValuesBuilder.java
oretests/src/android/pim/vcard/test_utils/ContentValuesVerifier.java
oretests/src/android/pim/vcard/test_utils/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/test_utils/ExportTestResolver.java
oretests/src/android/pim/vcard/test_utils/ImportTestResolver.java
oretests/src/android/pim/vcard/test_utils/LineVerifier.java
oretests/src/android/pim/vcard/test_utils/LineVerifierElem.java
oretests/src/android/pim/vcard/test_utils/PropertyNode.java
oretests/src/android/pim/vcard/test_utils/PropertyNodesVerifier.java
oretests/src/android/pim/vcard/test_utils/PropertyNodesVerifierElem.java
oretests/src/android/pim/vcard/test_utils/VCardVerifier.java
oretests/src/android/pim/vcard/test_utils/VNode.java
oretests/src/android/pim/vcard/test_utils/VNodeBuilder.java
931a0a94321d948014f44170d4cee9eb1fc05310 19-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactor vCard so that it correctly choose charset while importing
some files.

Change-Id: I27600e260cd7ca42a25481d5ff61f262c9328d61
oretests/src/android/pim/vcard/ContentValuesVerifier.java
oretests/src/android/pim/vcard/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/VCardVerifier.java
oretests/src/android/pim/vcard/VNodeBuilder.java
186bad00b4da47062281afae89279c356031e69b 16-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactor vCard code.

- make the usage of VCardSourceDetector.
- simplyfy flag usage.
- remove unnecessary argument "canceled"

Change-Id: I6dd9723df7230be7478f6817c0ac2e6cbedc6ca7
oretests/src/android/pim/vcard/VCardImporterTests.java
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/VCardTestsBase.java
oretests/src/android/pim/vcard/VCardVerifier.java
120c457672056280e5925589c4b19107a9ee814a 16-Apr-2010 android-build SharedAccount <android-build@google.com> manual merge

Change-Id: I235ae925559b5db6d64cc8f8b188704a84d7b6a2
062fc7ce369758d5a26f83f12b50b11cd88e5def 01-Apr-2010 Vasu Nori <vnori@google.com> allow apps to specify actions to take on database corruption error

let the user specify an interface impl class to specify the actions
to take when db corruption is detected.
this class is specified when the database is opened/created.

Change-Id: I84eb57208c8fedfa7235805b0ec58165efdc1560
oretests/src/android/database/DatabaseGeneralTest.java
315a5fb91dbafe6073435a13d937cee9d26877f6 13-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Dont fall back to installing on sdcard when internal storage is filled up
when the install location is set to internal only. Similary if install
location is set to external only(via adb), dont fall back to installing on
internal storage if sdcard is filled up.
If nothing is specified ie install location is set to let system decide,
we just check on internal storage.
Fix tests

Change-Id: I7400ccc131782d9c45284bd9ebd0dee43a3b412b
oretests/src/android/content/pm/PackageManagerTests.java
58b50f86cdde829d286ffcc1969ed3ce9e2cdc11 08-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactor vCard parser so that its implementation detail would be hidden from users.

Move the current implementation or 2.1 and 3.0 to VCardParserImpl_V21 and VCardParserImpl_V30.
- From the view of users, it is strange to make vCard 3.0 inherit vCard 2.1.
- Those two specifications still have similar implementation detail, so make implementation of vCard 3.0 inherits vCard 2.1 makes sense from technical view point.

Now VCardParser_V21 and VCardParser_V30 are independent class.

Remove strict mode in vCard 3.0, since strict parsing is not necessary from the view of actual use, and needs to extra effort to support it.

Bug: 2576738
Change-Id: I1d5cb6cffffb53337faa2dd7c519e7254e12da86
oretests/src/android/pim/vcard/ContentValuesVerifier.java
oretests/src/android/pim/vcard/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/PropertyNodesVerifier.java
oretests/src/android/pim/vcard/VCardVerifier.java
4baf4e6a742fffba238ad79f8b2ce7bc52f96b18 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am eb606ec9: am 3e543abb: am a599469f: am c2461be6: Merge "Fix 2579461 Move install location values to secure settings. Diable attribute for UI. Set default value to auto. Add command line interface to set install location via pm." into froyo
40e472521a544f26cb6956995788f7c36fff1404 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2579461
Move install location values to secure settings.
Diable attribute for UI. Set default value to auto.
Add command line interface to set install location via pm.

Change-Id: I80e97b3d24845adad7102f40dcbe238f00efa406
oretests/src/android/content/pm/PackageManagerTests.java
716abe57399803a188d419a69cb5f174d77e80e6 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 4cdd682c: am 070e1ecf: am a137cf2a: am 4b18ced6: Merge "Fix 2578016." into froyo
4b18ced6b5409bb9dd4013c06b9562b76a062939 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Fix 2578016." into froyo
30f775b12ac7d0ff39eef201f997fe54ac60465a 06-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2578016.

Add some checks before moving package.
Checkin test code.
Regenerate test apks

Change-Id: I769ece128fefd3429ce93208a77d887c7759d2e1
oretests/apks/install_loc_auto/Android.mk
oretests/apks/install_loc_auto/AndroidManifest.xml
oretests/apks/install_loc_auto/res/values/strings.xml
oretests/apks/install_loc_internal/Android.mk
oretests/apks/install_loc_internal/AndroidManifest.xml
oretests/apks/install_loc_internal/res/values/strings.xml
oretests/apks/install_loc_sdcard/Android.mk
oretests/apks/install_loc_sdcard/AndroidManifest.xml
oretests/apks/install_loc_sdcard/res/values/strings.xml
oretests/apks/install_loc_unspecified/Android.mk
oretests/apks/install_loc_unspecified/AndroidManifest.xml
oretests/apks/install_loc_unspecified/res/values/strings.xml
oretests/res/raw/install
oretests/res/raw/install_app1_cert1
oretests/res/raw/install_app1_cert1_cert2
oretests/res/raw/install_app1_cert2
oretests/res/raw/install_app1_cert3
oretests/res/raw/install_app1_cert3_cert4
oretests/res/raw/install_app1_unsigned
oretests/res/raw/install_app2_cert1
oretests/res/raw/install_app2_cert1_cert2
oretests/res/raw/install_app2_cert2
oretests/res/raw/install_app2_cert3
oretests/res/raw/install_app2_unsigned
oretests/res/raw/install_decl_perm
oretests/res/raw/install_loc_auto
oretests/res/raw/install_loc_internal
oretests/res/raw/install_loc_sdcard
oretests/res/raw/install_loc_unspecified
oretests/res/raw/install_shared1_cert1
oretests/res/raw/install_shared1_cert12
oretests/res/raw/install_shared1_cert1_cert2
oretests/res/raw/install_shared1_cert2
oretests/res/raw/install_shared1_unsigned
oretests/res/raw/install_shared2_cert1
oretests/res/raw/install_shared2_cert12
oretests/res/raw/install_shared2_cert1_cert2
oretests/res/raw/install_shared2_cert2
oretests/res/raw/install_shared2_unsigned
oretests/res/raw/install_use_perm_good
oretests/src/android/content/pm/PackageManagerTests.java
48f5a4103fe5c8cc04eb8d4bfd5ab55c1b214111 07-Apr-2010 Xia Wang <xiaw@google.com> am 8b879b14: am 3edc3c56: am b151f48a: am c93386ce: Merge " Fix bug2537659 When airplane mode is disabled, Mobile connection may be bring up before connecting to a known wifi." into froyo
c93386cece18b8467c69004561e8f22b6b053d24 07-Apr-2010 Xia Wang <xiaw@google.com> Merge " Fix bug2537659 When airplane mode is disabled, Mobile connection may be bring up before connecting to a known wifi." into froyo
ea08c40cba034174ad24e523a76df5be305ef2a3 07-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add FLAG_REPRAIN_PHONE_NUMBER_FORMATTING.

Bug: 2329952
Change-Id: I263f581c8146abc372a2cb287e6e61766fefd9b6
oretests/src/android/pim/vcard/VCardExporterTests.java
ff28490f5cb9b8d0ed0f6328b496c65d3209962f 07-Apr-2010 Gilles Debunne <debunne@google.com> Merge "ExpandableListView tests moved to CTS."
6c00fbe32e159443e05e04d085c5c5c0dbd1b0d8 07-Apr-2010 Brett Chabot <brettchabot@android.com> am 76194fd6: am 7f41a992: am f6d41580: am 0990511f: Merge "Add makefile so package manager test apks can get buitl from root." into froyo
50f79c95f16f3798d6b9a1e5d87d12f1d5a5e16e 07-Apr-2010 Gilles Debunne <debunne@google.com> ExpandableListView tests moved to CTS.

Tests were duplicates of those in CTS.

Change-Id: I70d7cb46e58bdbca6958467b9b2e650e7546292b
https://android-git.corp.google.com/g/#change,47984
http://b/issue?id=2541389
oretests/src/android/util/ExpandableListScenario.java
oretests/src/android/widget/expandablelistview/ExpandableListBasicTest.java
oretests/src/android/widget/expandablelistview/ExpandableListSimple.java
oretests/src/android/widget/expandablelistview/ExpandableListTester.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeaders.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeadersTest.java
oretests/src/android/widget/expandablelistview/InflatedExpandableListView.java
oretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
5a2190877c0cfb945f2e0cdf9b6c3c1ebbed7b87 07-Apr-2010 Brett Chabot <brettchabot@android.com> Add makefile so package manager test apks can get buitl from root.

Change-Id: I89e3d50793a48a404c7d8e5699baea8b195b7684
oretests/apks/Android.mk
82b8b686521323948cd76946e9bd6d6be019797d 06-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let vCard importer/exporter select charset.
There are some other bug where charset for import/export is used during vCard handling.

Bug: 2572064
Change-Id: I0aef8a6eba0a7e9263e47368a43dbba05efa91b0
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/VCardVerifier.java
oretests/src/android/pim/vcard/VNodeBuilder.java
72b301fac1f2420f770cd060a3d00dad4340287b 06-Apr-2010 Xia Wang <xiaw@google.com> Fix bug2537659
When airplane mode is disabled, Mobile connection may be bring up
before connecting to a known wifi.

Change-Id: I92e395aefd141c8bc4b8b2e497a71e5fd131eec2
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
c2af3df89b5c8a6971ba536a5fb0cd55920c49c4 02-Apr-2010 Kenny Root <kroot@google.com> Merge "Fix 2566319, don't use package-protected members from Layout in test."
a87c3c0af13ce2ed8ebc07a91a9fb04eeb959882 02-Apr-2010 Doug Felt <dougfelt@google.com> Fix 2566319, don't use package-protected members from Layout in test.

Change-Id: Ic3457e6857f03ba5550c5d82f22af2385a3c4b91
oretests/src/android/text/StaticLayoutDirectionsTest.java
a0df17ae58bcc081210998a6d130ff34c569f598 02-Apr-2010 Brett Chabot <brettchabot@android.com> am fad2eca2: am 16d77b8d: am c162668e: Merge "More framework tests cleanup." into froyo
c162668e870cda9d336741f24c177cd925fef8e0 02-Apr-2010 Brett Chabot <brettchabot@android.com> Merge "More framework tests cleanup." into froyo
0dc59e78e18493aecd37427531d093e800846c3e 02-Apr-2010 Brett Chabot <brettchabot@android.com> More framework tests cleanup.

Move all tests for android.* classes from tests/AndroidTests and
tests/CoreTests into framework/base/<core|graphics>/tests.

Consolidate all tests for java.* classes to tests/CoreTests.
Eventually hopefully these will be moved to dalvik/ somewhere.

Remove tests/AndroidTests entirely.

Change-Id: I86584d086ab7bd045bb38a10b699907805298a95
oretests/Android.mk
oretests/AndroidManifest.xml
oretests/DisabledTestApp/Android.mk
oretests/DisabledTestApp/AndroidManifest.xml
oretests/DisabledTestApp/src/com/android/frameworks/coretests/disabled_app/EnabledActivity.java
oretests/EnabledTestApp/Android.mk
oretests/EnabledTestApp/AndroidManifest.xml
oretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/DisabledActivity.java
oretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/DisabledProvider.java
oretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/DisabledReceiver.java
oretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/DisabledService.java
oretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/EnabledActivity.java
oretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/EnabledProvider.java
oretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/EnabledReceiver.java
oretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/EnabledService.java
oretests/apks/install_decl_perm/Android.mk
oretests/apks/install_decl_perm/AndroidManifest.xml
oretests/apks/install_decl_perm/res/values/strings.xml
oretests/apks/install_use_perm_good/Android.mk
oretests/apks/install_use_perm_good/AndroidManifest.xml
oretests/apks/install_use_perm_good/res/values/strings.xml
oretests/res/raw/alt_ip_only.crt
oretests/res/raw/subject_alt_only.crt
oretests/res/raw/subject_only.crt
oretests/res/raw/subject_with_alt_names.crt
oretests/res/raw/subject_with_wild_alt_name.crt
oretests/res/raw/wild_alt_name_only.crt
oretests/src/android/content/BrickDeniedTest.java
oretests/src/android/content/SyncQueueTest.java
oretests/src/android/content/pm/AppCacheTest.java
oretests/src/android/content/pm/ComponentTest.java
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/database/NewDatabasePerformanceTestSuite.java
oretests/src/android/database/NewDatabasePerformanceTests.java
oretests/src/android/text/HtmlTest.java
oretests/src/android/text/util/LinkifyTest.java
oretests/src/android/util/PatternsTest.java
oretests/src/com/android/internal/net/DNParserTest.java
oretests/src/com/android/internal/net/DomainNameValidatorTest.java
oretests/src/com/android/internal/util/HanziToPinyinTest.java
13c9a1f4901d921f84501893bf5f0b637297132f 26-Mar-2010 Gilles Debunne <debunne@google.com> Refactor in PositionTesterContextMenuListener.

The asserts were removed from that class and replaced by a status String object.

This allows ExpandableListTester to do the asserts instead.
These tests passed on a sapphire and passion devices as well as in the emulator.
The asserts in the main thread are expected to make these tests pass during the
continuous build too.

This is 7fbddb1db1beeac7c6762fb7a11612e348f6ff90 cherrypicked to froyo.

http://b/issue?id=2525846
oretests/src/android/widget/expandablelistview/ExpandableListTester.java
oretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
7eb90c3b2cf13d180fedb2430d162edd889d174b 01-Apr-2010 Xia Wang <xiaw@google.com> am 3946101c: am c2eb4094: am de1b1872: Merge "Test connecitvity manager functionality in state change. * Verify state change when enabling/disabling wifi * Verify network connectivity change while switching among 3G, Wifi, and Airplane mode" into froyo
081e7a2716e2f3dcba328b1832380cba3b399dd1 01-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> am 392be3fa: am 1aa64b53: am ae18171a: Change certificate policy.
de1b1872b33495da0bcd4c29ffeb3783fa7702e9 01-Apr-2010 Xia Wang <xiaw@google.com> Merge "Test connecitvity manager functionality in state change. * Verify state change when enabling/disabling wifi * Verify network connectivity change while switching among 3G, Wifi, and Airplane mode" into froyo
ae18171acd3c70fc6d27fc6bbe85828e0f928fad 30-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Change certificate policy.

The certificates of the package and its shared user certificates
are initialized only when installing the package.

When scanning the packages, the certificates are collected from the apk
if the time stamp changes. If not the one's from
PackageSetting(read from packages.xml) are reused.

Removed mergeSignatures and updateSignatures since we don't support
this any more.
Also fix some bugs related to reinstalling failed upgrades.

Some unit tests.

Change-Id: Ibdeff170bd386d723f774136b18e0ad59d9cdabb
oretests/AndroidManifest.xml
oretests/res/raw/install_app1_cert1
oretests/res/raw/install_app1_cert1_cert2
oretests/res/raw/install_app1_cert2
oretests/res/raw/install_app1_cert3
oretests/res/raw/install_app1_cert3_cert4
oretests/res/raw/install_app1_unsigned
oretests/res/raw/install_app2_cert1
oretests/res/raw/install_app2_cert1_cert2
oretests/res/raw/install_app2_cert2
oretests/res/raw/install_app2_cert3
oretests/res/raw/install_app2_unsigned
oretests/res/raw/install_shared1_cert1
oretests/res/raw/install_shared1_cert12
oretests/res/raw/install_shared1_cert1_cert2
oretests/res/raw/install_shared1_cert2
oretests/res/raw/install_shared1_unsigned
oretests/res/raw/install_shared2_cert1
oretests/res/raw/install_shared2_cert12
oretests/res/raw/install_shared2_cert1_cert2
oretests/res/raw/install_shared2_cert2
oretests/res/raw/install_shared2_unsigned
oretests/src/android/content/pm/PackageManagerTests.java
2c15966f8cf6160ad5dcbbde372508de89985829 28-Mar-2010 Xia Wang <xiaw@google.com> Test connecitvity manager functionality in state change.
* Verify state change when enabling/disabling wifi
* Verify network connectivity change while switching among 3G, Wifi, and Airplane mode

Change-Id: Ia4581b10b794c7b301d28019563bca832bcd8b90
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/NetworkState.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
9f7a4442b89cc06cb8cae6992484e7ae795323ab 01-Mar-2010 Doug Felt <dougfelt@google.com> Enable nested bidi levels in a paragraph.

Changes the internal representation of direction information in the Directions object to be a visually-ordered list of start/length+direction pairs instead of a list of directionality inversion offsets.

Rewrite Layout.getOffsetToLeft/RightOf to use run information instead of width metrics.

Remove java Bidi, use native. Switch bidi tests to test native, expect levels instead of dirs.

Add test of directionality. Leave in switch to turn new code off and restore previous behavior for now.

Change-Id: Iea8bb46c678a18820e237c90f76007a084c83051
oretests/src/android/text/StaticLayoutBidiTest.java
oretests/src/android/text/StaticLayoutDirectionsTest.java
oretests/src/android/text/StaticLayoutTest.java
5025b7b6464f594f888519f89464705c5caab15d 31-Mar-2010 Fred Quintana <fredq@google.com> am 6669a7b4: am 4a2f285d: am 77c560f3: - changed periodic sync scheduling to just creating pending and changed the "get next operation to sync" logic just look at pending syncs, rather than them and periodic syncs - made syncoperation dup-detection ignore the init
018495191f385aaa8b0223d3a87f89d1aa6c8832 31-Mar-2010 Fred Quintana <fredq@google.com> am 010fbfc9: am 344ba661: am d5e4fdc8: some changes due to an API review - make EntityIterator extend Iterator and thus not throw a RemoteException, instead converting it into a RuntimeException. - rename ActiveSyncInfo to SyncInfo - change getActiveSync to getC
77c560f3d7891d9ae1ad714b5f65a22ff4f4c06b 30-Mar-2010 Fred Quintana <fredq@google.com> - changed periodic sync scheduling to just creating pending
and changed the "get next operation to sync" logic just look
at pending syncs, rather than them and periodic syncs
- made syncoperation dup-detection ignore the initialization
sync extra
- made the sync dispatcher treat initialization syncs as just
a regular sync request and also made it explicitly set or
clear the initialization extra based on whether the sync
adapter was in the syncable or unknown state
- change the getNextSync logic to prioritize syncable "unknown"
syncs above everything else (since they should be fast and
are important)
- make it reschedule completed initialization syncs if the
sync adapter is now marked syncable
- fix some logging in SyncStorageEngine
- change SyncStorageEngine to not reuse authority ids when one
is removed

http://b/issue?id=2531359
http://b/issue?id=2429638

Change-Id: I79805b582da74f4f0b6193eafaff24c2371d51e8
oretests/src/android/content/SyncStorageEngineTest.java
d5e4fdc8a4743abc0d9fe3cb952a78f9ad078c6b 31-Mar-2010 Fred Quintana <fredq@google.com> some changes due to an API review
- make EntityIterator extend Iterator and thus not throw a
RemoteException, instead converting it into a RuntimeException.
- rename ActiveSyncInfo to SyncInfo
- change getActiveSync to getCurrentSync
- remove the accessors in SyncInfo and instead make the final
fields publicly accessible
- made AbstractThreadedSyncAdapter.cancelSync not take a thread

Change-Id: I99fde5585bc5f1e95f4873ffbba189074a8d6372
http://b/issue?id=2553539
http://b/issue?id=2553541
http://b/issue?id=2553550
oretests/src/android/pim/vcard/ExportTestResolver.java
18867a93e83eb2e3bb98854e78ae218334e8d38b 29-Mar-2010 Doug Zongker <dougz@android.com> am e1599d86: am 0d531f5b: am ab69e29c: relocate android.util.base64.* -> android.util.*
ab69e29c1927bdc6143324eba5ccd78f7c43128d 29-Mar-2010 Doug Zongker <dougz@android.com> relocate android.util.base64.* -> android.util.*

b/2553469 - API REVIEW: android.util.base64

Change-Id: I6a514032152a8b1899db52d020aca8e8b19e74e9
oretests/src/android/util/Base64Test.java
oretests/src/android/util/base64/Base64Test.java
cad51acb5b25e40efda7abb22dbaff2c47f90c12 26-Mar-2010 Brett Chabot <brettchabot@android.com> am 9c14c7c5: am a3de7455: Move PackageManagerTests and AsecTests.
a3de74555120cc4dc205a3f93ef44c843b8d64a8 25-Mar-2010 Brett Chabot <brettchabot@android.com> Move PackageManagerTests and AsecTests.

Remove PackageManagerTests test's from continuous due to flakiness.

merged from abandoned master.

Change-Id: I0a542df9df572c37bd1aa987cdc9fb2f95001a7c
oretests/AndroidManifest.xml
oretests/res/raw/install
oretests/res/raw/install_decl_perm
oretests/res/raw/install_loc_auto
oretests/res/raw/install_loc_internal
oretests/res/raw/install_loc_sdcard
oretests/res/raw/install_loc_unspecified
oretests/res/raw/install_use_perm_good
oretests/src/android/content/pm/PackageManagerTests.java
oretests/src/android/os/storage/AsecTests.java
oretests/src/android/os/storage/StorageListener.java
174bbb5b1462e43666609fc879689d130980e862 26-Mar-2010 Gilles Debunne <debunne@google.com> Merge "Refactor in PositionTesterContextMenuListener."
7fbddb1db1beeac7c6762fb7a11612e348f6ff90 26-Mar-2010 Gilles Debunne <debunne@google.com> Refactor in PositionTesterContextMenuListener.

The asserts were removed from that class and replaced by a status String object.

This allows ExpandableListTester to do the asserts instead.
These tests passed on a sapphire and passion devices as well as in the emulator.
The asserts in the main thread are expected to make these tests pass during the
continuous build too.

Change-Id: Ic6d23e1d3a151f25249eed553113666f47b40dc3
http://b/issue?id=2525846
oretests/src/android/widget/expandablelistview/ExpandableListTester.java
oretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
70df9ba15a2845984bcb94f029299a06c7210d49 25-Mar-2010 Neal Nguyen <tommyn@google.com> Refactoring PackageManagerHostTests helper functions into a utility class for easier sharing with future stress tests.

Change-Id: I4ec77b005e2f480687b13c92676c5f62962c2e66
osttests/src/android/content/pm/PackageManagerHostTestUtils.java
osttests/src/android/content/pm/PackageManagerHostTests.java
1f343ebed1859c2033759983391278572d97e5ba 24-Mar-2010 Fred Quintana <fredq@google.com> Merge "fix bug where sync settings set lost upon upgrade from donut and eclair to froyo"
fb084400d6afa6443a421117fbcaee0265d38fb6 24-Mar-2010 Fred Quintana <fredq@google.com> fix bug where sync settings set lost upon upgrade from donut and eclair
to froyo

- intepret a missing syncavble attribute from donut as "unsynced"
rather than the traditional "true"
- copy the sync settings from the authorities "contacts" and "calendar"
to "com.android.contacts" and "com.android.calendar" if the latter
don't already have settings
- delay the database cleanup until after boot completed, which will give
the GoogleLoginService accounts migration code a chance to run; this
was causing all the settings to get removed upon a donut to froyo upgrade

Change-Id: I8795e97ba0c9b930d1a50784229ca9ab15dff9d2
http://b/issue?id=2531359
oretests/src/android/content/SyncStorageEngineTest.java
7cbb92dff7622d3c79f12f1d5aae492982d95c8f 22-Mar-2010 Neal Nguyen <tommyn@google.com> Adding some automated tests for apps on SD (and their corresponding apps).

Change-Id: I3af1a2d8fb658087c6945b2eb2b4233becb6053f
osttests/src/android/content/pm/PackageManagerHostTests.java
osttests/test-apps/AutoLocTestApp/Android.mk
osttests/test-apps/AutoLocTestApp/AndroidManifest.xml
osttests/test-apps/AutoLocTestApp/src/com/android/framework/autoloctestapp/AutoLocTestAppActivity.java
osttests/test-apps/ExternalLocPermsFLTestApp/Android.mk
osttests/test-apps/ExternalLocPermsFLTestApp/AndroidManifest.xml
osttests/test-apps/ExternalLocPermsFLTestApp/src/com/android/framework/externallocpermsfltestapp/ExternalLocPermsFLTestAppActivity.java
osttests/test-apps/ExternalLocTestApp/Android.mk
osttests/test-apps/ExternalLocTestApp/AndroidManifest.xml
osttests/test-apps/ExternalLocTestApp/src/com/android/framework/externalloctestapp/ExternalLocTestAppActivity.java
osttests/test-apps/InternalLocTestApp/Android.mk
osttests/test-apps/InternalLocTestApp/AndroidManifest.xml
osttests/test-apps/InternalLocTestApp/src/com/android/framework/internalloctestapp/InternalLocTestAppActivity.java
osttests/test-apps/NoLocTestApp/Android.mk
osttests/test-apps/NoLocTestApp/AndroidManifest.xml
osttests/test-apps/NoLocTestApp/src/com/android/framework/noloctestapp/NoLocTestAppActivity.java
osttests/test-apps/UpdateExtToIntLocTestApp_v1_ext/Android.mk
osttests/test-apps/UpdateExtToIntLocTestApp_v1_ext/AndroidManifest.xml
osttests/test-apps/UpdateExtToIntLocTestApp_v1_ext/src/com/android/framework/updateexttointloctestapp/UpdateExtToIntLocTestAppActivity.java
osttests/test-apps/UpdateExtToIntLocTestApp_v2_int/Android.mk
osttests/test-apps/UpdateExtToIntLocTestApp_v2_int/AndroidManifest.xml
osttests/test-apps/UpdateExtToIntLocTestApp_v2_int/src/com/android/framework/updateexttointloctestapp/UpdateExtToIntLocTestAppActivity.java
osttests/test-apps/UpdateExternalLocTestApp_v1_ext/Android.mk
osttests/test-apps/UpdateExternalLocTestApp_v1_ext/AndroidManifest.xml
osttests/test-apps/UpdateExternalLocTestApp_v1_ext/src/com/android/framework/updateexternalloctestapp/UpdateExternalLocTestAppActivity.java
osttests/test-apps/UpdateExternalLocTestApp_v2_none/Android.mk
osttests/test-apps/UpdateExternalLocTestApp_v2_none/AndroidManifest.xml
osttests/test-apps/UpdateExternalLocTestApp_v2_none/src/com/android/framework/updateexternalloctestapp/UpdateExternalLocTestAppActivity.java
osttests/test-apps/VersatileTestApp_Auto/Android.mk
osttests/test-apps/VersatileTestApp_Auto/AndroidManifest.xml
osttests/test-apps/VersatileTestApp_Auto/src/com/android/framework/versatiletestapp/VersatileTestAppActivity.java
osttests/test-apps/VersatileTestApp_External/Android.mk
osttests/test-apps/VersatileTestApp_External/AndroidManifest.xml
osttests/test-apps/VersatileTestApp_External/src/com/android/framework/versatiletestapp/VersatileTestAppActivity.java
osttests/test-apps/VersatileTestApp_Internal/Android.mk
osttests/test-apps/VersatileTestApp_Internal/AndroidManifest.xml
osttests/test-apps/VersatileTestApp_Internal/src/com/android/framework/versatiletestapp/VersatileTestAppActivity.java
osttests/test-apps/VersatileTestApp_None/Android.mk
osttests/test-apps/VersatileTestApp_None/AndroidManifest.xml
osttests/test-apps/VersatileTestApp_None/src/com/android/framework/versatiletestapp/VersatileTestAppActivity.java
fc2dbd04005c32360eead803e29df3cc62209cd8 23-Mar-2010 Xia Wang <xiaw@google.com> * Move connectivity manager test closer to source.
* Add license header to java files
* Remove google related information from the test

Change-Id: I2e57960f9ac963cdf3591385e21ed68832f74bd0
onnectivityManagerTest/Android.mk
onnectivityManagerTest/AndroidManifest.xml
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestRunner.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/NetworkState.java
onnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ConnectivityManagerMobileTest.java
b4882ca26fbf55c385fbc2b37e1bab6a13ee963a 23-Mar-2010 Kenny Root <kroot@google.com> Merge "Advance encodedKeySearchIndex if encodedKey matches a suffix of a parameter."
e41c317348cfe23a78bfd97609c3489c6cc4a786 21-Mar-2010 Keith Ito <kito@google.com> Advance encodedKeySearchIndex if encodedKey matches a suffix of a parameter.

Bug: 2524610
Change-Id: I51bbf8248133b61825d2ae14afe175cb4d0413b8
oretests/src/android/net/UriTest.java
e5bdecea289a09070f0ea2a1067ae2a8f498098a 19-Mar-2010 Wink Saville <wink@google.com> Merge "Allow transitionTo in enter/exit."
e7be6a85da5be32348f4e83ede195477a7ec1790 19-Mar-2010 Wink Saville <wink@google.com> Allow transitionTo in enter/exit.

bug: 2435366
Change-Id: Id15c5e2cca49ced5ebbda24887f8c490e717f101
oretests/src/android/os/HierarchicalStateMachineTest.java
7e25f5cbfbe433c6ffe06a17ef42c471baf07c93 18-Mar-2010 Daniel Lehmann <lehmannd@google.com> Make the VCardEntry more robust against badly behaving resolvers. Additionally make the ImportTestResolver return the right result
Bug:2521447

Change-Id: I39e3e686b1fd75f5e633a467f6ccb736751355ed
oretests/src/android/pim/vcard/ImportTestResolver.java
91fbd56757751a7aca8ef2b4d936e587509e6eef 18-Mar-2010 Wink Saville <wink@google.com> Add additional sendMessage methods.

To simplify sending messages add sendMessage methods that take
what and obj as parameters.

Change-Id: Ib22d752eb3cb32fe3dfa8dd2e65915acec3e5db6
oretests/src/android/os/HierarchicalStateMachineTest.java
beb0c1b3eca6e185c5a9dc71eff3c93686e1b836 16-Mar-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make JNI function for setLocale() call register_localized_collators() with the current locale, not previous one, every time it is possible."
e1e37c632c2deb68f13c92f402c62daaca21afb1 16-Mar-2010 Brett Chabot <brettchabot@android.com> Remove flaky test MemoryFileTest:testPurge from large suite.

Bug 2203775

Change-Id: I4709c0910384f1f2313dc67bfe6e163beaa990e6
oretests/src/android/os/MemoryFileTest.java
c2e4691d788088b22eadc9b2d35e9bdf0b6a0ffc 16-Mar-2010 Fred Quintana <fredq@google.com> - make the SyncManager add periodic syncs when it upgrades from a
version of the accounts.xml file that pre-dated periodic syncs,
e.g. eclair or early froyo. http://b/2515823
- make the AccountManagerService dump() use a getAccounts call that
doesn't check the GET_ACCOUNTS permission to make it useful
in "adb bugreport"
- add some logging to SyncManager to help track down a problem

Change-Id: Icb646909074e2d327d71f6bb39cf06b6fac29e77
oretests/src/android/content/SyncStorageEngineTest.java
b945639d0c3fa1850c07a2b80f476c8d242a8bde 15-Mar-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make JNI function for setLocale() call register_localized_collators()
with the current locale, not previous one, every time it is possible.

Add a unit test verifying this fix.

BUG: 2514026
Change-Id: I4dd1b047e1ab4bf399e2c3ebc0304c0cfa3a0928
oretests/src/android/database/DatabaseGeneralTest.java
1a5a3217595b183deee7a31b25e77eeed707e381 12-Mar-2010 Kenny Root <kroot@google.com> Add missing licensing headers for test classes

Commit and file info:
33817-p9 frameworks/base/core/tests/coretests/src/android/util/LogTest.java
39945-p9 frameworks/base/core/tests/coretests/src/android/text/SpannableTest.java
39945-p9 frameworks/base/core/tests/coretests/src/android/text/SpannableStringBuilderTest.java
39945-p9 frameworks/base/core/tests/coretests/src/android/text/SpannableStringTest.java

Change-Id: I1aac616069b7c26a00153d00118ced289d802e44
oretests/src/android/text/SpannableStringBuilderTest.java
oretests/src/android/text/SpannableStringTest.java
oretests/src/android/text/SpannableTest.java
oretests/src/android/util/LogTest.java
15a4d2ffd04dc6c70f2cd17dae12ac6bc14c69ab 12-Mar-2010 Kenny Root <kroot@google.com> Add correct copyright headers to multiple files

Format for the list of changes shows the origin commit reference followed
by the file name.

33931-p9 awt/org/apache/harmony/awt/gl/font/AndroidGlyphVector.java
33931-p9 awt/org/apache/harmony/awt/gl/image/PngDecoderJava.java
133776-p9 core/java/android/app/IntentService.java
127013-p9 core/java/android/appwidget/AppWidgetHost.java
27863-p9 core/java/android/bluetooth/BluetoothAudioGateway.java
60765-p9 core/java/android/content/SyncResult.java
43920-p9 core/java/android/content/pm/ActivityInfo.java
43920-p9 core/java/android/content/pm/ApplicationInfo.java
43920-p9 core/java/android/content/pm/InstrumentationInfo.java
43920-p9 core/java/android/content/pm/PackageInfo.java
44103-p9 core/java/android/content/pm/PackageItemInfo.java
68960-p9 core/java/android/content/pm/PackageStats.java
43920-p9 core/java/android/content/pm/ResolveInfo.java
43920-p9 core/java/android/content/pm/ServiceInfo.java
60641-p9 core/java/android/content/res/Configuration.java
60734-p9 core/java/android/content/res/TypedArray.java
137672-p9 core/java/android/inputmethodservice/ExtractButton.java
123112-p9 core/java/android/inputmethodservice/ExtractEditText.java
119291-p9 core/java/android/inputmethodservice/IInputMethodSessionWrapper.java
112946-p9 core/java/android/inputmethodservice/IInputMethodWrapper.java
115078-p9 core/java/android/os/BatteryStats.java
124790-p9 core/java/android/text/style/UpdateAppearance.java
45083-p9 core/java/android/view/RawInputEvent.java
101491-p9 core/java/android/view/inputmethod/EditorInfo.java
114701-p9 core/java/android/view/inputmethod/ExtractedText.java
123112-p9 core/java/android/view/inputmethod/ExtractedTextRequest.java
119291-p9 core/java/com/android/internal/os/HandlerCaller.java
129279-p9 core/java/com/android/internal/os/PkgUsageStats.java
114701-p9 core/java/com/android/internal/view/IInputConnectionWrapper.java
114701-p9 core/java/com/android/internal/view/InputConnectionWrapper.java
84364-p9 opengl/java/android/opengl/EGLLogWrapper.java
11355-p9 opengl/tools/glgen/src/CFunc.java
11355-p9 opengl/tools/glgen/src/CType.java
11355-p9 opengl/tools/glgen/src/CodeEmitter.java
11355-p9 opengl/tools/glgen/src/GenerateGL.java
11355-p9 opengl/tools/glgen/src/JFunc.java
11355-p9 opengl/tools/glgen/src/JType.java
11355-p9 opengl/tools/glgen/src/JniCodeEmitter.java
11355-p9 opengl/tools/glgen/src/ParameterChecker.java
57236-p9 services/java/com/android/server/status/AnimatedImageView.java
66754-p9 services/java/com/android/server/status/CloseDragHandle.java
57188-p9 services/java/com/android/server/status/DateView.java
46928-p9 services/java/com/android/server/status/ExpandedView.java
70590-p9 services/java/com/android/server/status/FixedSizeDrawable.java
45968-p9 services/java/com/android/server/status/IconData.java
57470-p9 services/java/com/android/server/status/IconMerger.java
82719-p9 services/java/com/android/server/status/LatestItemView.java
45968-p9 services/java/com/android/server/status/NotificationData.java
66754-p9 services/java/com/android/server/status/NotificationLinearLayout.java
57458-p9 services/java/com/android/server/status/NotificationViewList.java
45968-p9 services/java/com/android/server/status/StatusBarException.java
45968-p9 services/java/com/android/server/status/StatusBarIcon.java
46130-p9 services/java/com/android/server/status/StatusBarNotification.java
45968-p9 services/java/com/android/server/status/StatusBarView.java
46199-p9 services/java/com/android/server/status/Ticker.java
62286-p9 services/java/com/android/server/status/TickerView.java
57188-p9 services/java/com/android/server/status/TrackingView.java
86041-p9 telephony/java/android/telephony/PhoneStateListener.java
87020-p9 telephony/java/com/android/internal/telephony/TelephonyIntents.java
136269-p9 telephony/java/com/android/internal/telephony/gsm/SpnOverride.java
34409-p9 tests/FrameworkTest/src/com/android/frameworktest/FrameworkTestApplication.java
55717-p9 tests/FrameworkTest/src/com/android/frameworktest/performance/InvalidateCycle.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityLandscape.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityPortrait.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollableResize.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollableResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityResize.java
127341-p9 tests/ImfTest/src/com/android/imftest/samples/ButtonActivity.java
129347-p9 tests/ImfTest/src/com/android/imftest/samples/DialogActivity.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/EditTextActivityDialog.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityNoScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivityNotSelected.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivitySelected.java
25959-p9 tests/framework-tests/src/android/test/FrameworkTests.java
46162-p9 tests/framework-tests/src/com/android/internal/http/multipart/MultipartTest.java
77101-p9 tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/NinePatchTest.java
9788976b1465ce982b5ae7c741345edd0ecd9322 core/java/android/accounts/AuthenticatorDescription.java
53332883543868fb83e111a07306368b7772b340 core/java/android/app/UiModeManager.java
93e7e22ec91dbc641d10ca6d70423e1357a95bba core/java/android/app/FullBackupAgent.java
328c0e7986aa6bb7752ec6de3da9c999920bb55f core/java/android/content/CursorEntityIterator.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncQueue.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncOperation.java
eb034652c2037a47ebfd99779e8383bb8bb528af core/java/android/content/pm/LabeledIntent.java
49237345d83e62fdb9eb8d50b13ad086636a04fa core/java/android/content/pm/FeatureInfo.java
a2b6c3775ed6b8924232d6a01bae4a19740a15f8 core/java/android/content/pm/PackageInfoLite.java
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 core/java/android/content/pm/RegisteredServicesCacheListener.java
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 core/java/android/content/pm/XmlSerializerAndParser.java
c4516a7b62de525e3d6d5e76851bdfaf12c11f05 core/java/android/database/sqlite/SQLiteTransactionListener.java
9bbc21a773cbdfbef2876a75c32bda5839647751 core/java/com/android/internal/backup/LocalTransport.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa core/java/com/android/internal/content/PackageMonitor.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseSurfaceHolder.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseIWindow.java
e540833fdff4d58e37c9ba859388e24e2945ed45 core/java/com/android/internal/os/SamplingProfilerIntegration.java
192ab903887bbb8e7c7b6da5c581573850e30f46 core/tests/coretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
1619367ab823150fa8856d419abe02ceb75886f1 media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java
27f8002e591b5c579f75b2580183b5d1c4219cd4 opengl/tools/glgen/stubs/gles11/glGetString.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glShaderSource.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GenerateGLES.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/Jsr239CodeEmitter.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GLESCodeEmitter.java
69e21f5f6e0d04539cd92848ea009dd615d88c2c opengl/tests/gldual/src/com/android/gldual/TriangleRenderer.java
c028be4f3b8c7476b46859f66c3f33d528adf181 packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerMeasurement.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestActivity.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestRunner.java
df8a3f31d871db25e952972c2eb346a71186e9e3 tests/BrowserTestPlugin/src/com/android/testplugin/TestPlugin.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ActivityManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ServiceManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java

Copyright header moved to top in following file:

core/tests/coretests/src/android/widget/ListViewTest.java

Change-Id: I3c3198be5a0ba36e18679ed834170432bf0b8418
oretests/src/android/widget/ListViewTest.java
oretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
f0f566ec4607376583e59964a6a8a6dcb0265c20 11-Mar-2010 Wink Saville <wink@google.com> Ignore instead of throw errors in QuittingState and reorder some parameters.

Since there could be an arbitrary number of messages in
the queue but Handler/Looper/MessageQueue do not provide
any mechanism for removing "all" messages the best we can
do is ignore. Throwing an error is probably too heavy.

Change-Id: I13c81ac5786484f5b3218885b010de596d943975
oretests/src/android/os/HierarchicalStateMachineTest.java
1b8b98b3db5dcf0b01d1a632aafea076cc91f5a4 11-Mar-2010 Wink Saville <wink@google.com> Add quit and fix HSM EBNF.

Add support for quiting the looper and stopping a thread.

Allow enter/exit at top or bottom of a STATE EBNF.

Fix missing brace in MSG_LIST.

Change-Id: Iddf5ce908008933bf8f0646e844254183da3d1f3
oretests/src/android/os/HierarchicalStateMachineTest.java
49274c72395cff9dfe9da40e0abe1b8794f98c0f 11-Mar-2010 Svetoslav Ganov <svetoslavganov@google.com> Fixing bug 2411394 - Monkey crash due to incorrect test service manifest

Change-Id: I81f7b29f98d22f9d587cd056bc3ce4a86a41a18a
oretests/AndroidManifest.xml
d0ca3379c2dd0f987af328baa3fdad69d0a8d70a 08-Mar-2010 Amith Yamasani <yamasani@google.com> Fix a SettingsProvider test : 2377540
oretests/src/android/provider/SettingsProviderTest.java
8cb068a1220d4bd440aed628729891a282d4ef88 04-Mar-2010 Doug Felt <dougfelt@google.com> Remove test annotations from tests requiring package-private access.
oretests/src/android/text/StaticLayoutBidiTest.java
08209a767b7d960f5396df3aa45913b2194c46be 02-Mar-2010 Doug Felt <dougfelt@google.com> Disable tests that require package-private access to code under test.
oretests/src/android/text/StaticLayoutTest.java
db204c2383ccf2e4e5e8776e93c20b376aa6934e 02-Mar-2010 Fred Quintana <fredq@google.com> Merge "change ObserverNode.binderDied() to lock the root node before manipulating the observers tree by calling removeObserverLocked()"
002ffad599964653186c01f8e07fadc82dc0acee 02-Mar-2010 Fred Quintana <fredq@google.com> change ObserverNode.binderDied() to lock the root node before manipulating
the observers tree by calling removeObserverLocked()

http://b/issue?id=2457485
oretests/src/android/content/ObserverNodeTest.java
3c5d27ab1b34548baae6b395ca33ce869aad254d 02-Mar-2010 Gilles Debunne <debunne@google.com> Cleaning in ListWithEditTextHeaderTest.

Switched to ActivityInstrumentationTestCase2.

As far as http://b/issue?id=2446911 is concerned, I was unable
to reproduce a test fail. This was not the case a week ago.
A fix has probably been submitted in the meantime.

Change-Id: Id6e95218a2c9d29b0b4eb051a7a1288f9a9809fd
oretests/src/android/widget/listview/focus/ListWithEditTextHeaderTest.java
7628fbe0311f02be443411b4682e929d1ae7c850 27-Feb-2010 Gilles Debunne <debunne@google.com> Merge "Fixes for ExpandableListView with headers/footers"
47ccdf3760635a695b7c417a0df02f7e86ce6262 26-Feb-2010 Gilles Debunne <debunne@google.com> Fixes for ExpandableListView with headers/footers

Patches in ExpandableListView to correctly handle header/footer shifter flat positions.
Make tests added in https://android-git.corp.google.com/g/#change,42312 pass.

Change-Id: I0d7823f5ae290e855bfdfb8d33c18bd34661077c
oretests/src/android/widget/expandablelistview/ExpandableListBasicTest.java
oretests/src/android/widget/expandablelistview/ExpandableListTester.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeadersTest.java
d20958551c453c30d2caa32ac05a4f0c83776a5f 26-Feb-2010 Vasu Nori <vnori@google.com> Merge "in finalize() methods, log warnings if db lock is going to be held."
d606b4bf2c1a2308b40785860853cfb95a77bf58 24-Feb-2010 Vasu Nori <vnori@google.com> in finalize() methods, log warnings if db lock is going to be held.

this is to track bug:2463988 and bug:2457342
oretests/src/android/database/DatabaseGeneralTest.java
e26bad0aecc6526d8a4d9e3b80cbdc9505f1c33d 26-Feb-2010 Gilles Debunne <debunne@google.com> New tests for ExpandableListView to exercice packed position with headers/footers.

New tests for
- the different conversions between flat and packed positions.
- selectedPosition
- contextMenuInfo.

All these tests currently fail when list contains headers and/or footers.

Change-Id: Ifb8fcc5de4980221e2ff4ebd2b24bc4fa03c6aae
oretests/src/android/widget/expandablelistview/ExpandableListBasicTest.java
oretests/src/android/widget/expandablelistview/ExpandableListTester.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeadersTest.java
oretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
aa635db5c65351a43ce17ceaed5909018383d88d 25-Feb-2010 Gilles Debunne <debunne@google.com> Merge "New test on ContextMenuInfo packed positions."
192ab903887bbb8e7c7b6da5c581573850e30f46 25-Feb-2010 Gilles Debunne <debunne@google.com> New test on ContextMenuInfo packed positions.

With and without headers.
Non regression test for bug
http://b/issue?id=1778239

Change-Id: I0235528ac6f8394292bac35f2350f3d5be1e4df7
oretests/src/android/widget/expandablelistview/ExpandableListBasicTest.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeaders.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeadersTest.java
oretests/src/android/widget/expandablelistview/InflatedExpandableListView.java
oretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
277903f8d853297a1d22ea07e27e04d6534bc430 25-Feb-2010 Eric Fischer <enf@google.com> Merge "Add support for accessing native bidi implementation via jni."
2269d1572e5fcfb725ea55f5764d8c3280d69f6d 25-Feb-2010 Dianne Hackborn <hackbod@google.com> Re-arrange android-common so framework no longer links with it.

This is the framework part, moving classes around so the framework
no longer needs to link to android-common. Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.
oretests/Android.mk
dae8e94cce0881f3e10ef5e34b881f512bb52a75 24-Feb-2010 Doug Felt <dougfelt@google.com> Add support for accessing native bidi implementation via jni.

Include a simple test to verify that the bidi code works.
oretests/src/android/text/StaticLayoutBidiTest.java
20178d62cf669af18467a16d3c4c4237ed42151c 22-Feb-2010 Doug Felt <dougfelt@google.com> Factor bidi algorithm into separate method.

Add rudimentary support for overriding default base line direction heuristic.
Add some simple tests of the bidi implementation.
oretests/src/android/text/StaticLayoutBidiTest.java
8ca1228168d05533b4810be337bb400356b2379e 24-Feb-2010 Eric Fischer <enf@google.com> Merge "Fix rounding of extra spacing when it is negative."
6cf7a325e6e9e70d9858e21fbb438341332ed254 23-Feb-2010 Bjorn Bringert <bringert@android.com> 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
oretests/src/android/app/SearchablesTest.java
1065758a0f8966a8597a61492112f7859a7050a4 22-Feb-2010 Doug Felt <dougfelt@google.com> Fix rounding of extra spacing when it is negative.
oretests/src/android/text/StaticLayoutTest.java
6ad5a7a7c78799ecb306cb97d979bdb98cc52d15 20-Feb-2010 Doug Felt <dougfelt@google.com> Add a few simple tests of StaticLayout.
oretests/src/android/text/StaticLayoutTest.java
e8de28415b4362824a52c180adf10dd882d12eaf 18-Feb-2010 Vasu Nori <vnori@google.com> bug fix for 2419869. also included 2 unittests.

bug fix for 2419869 is the following
1. only one object can use the prepared statement object
(SQLiteCompiledSql in SQLIteProgram)
2. if two objects are requesting to use it, then create a new prepared
statement object for exclusive use by the newcomer and let it be
be finalized by the newcomer.
3. add mInUse flag to SQLiteCompiledSql - to be set when SQLiteProgram
requests it and to be released when that SQLiteProgram is done with it
a couple more changes included are
1. unitests to simulate bug # 2419869 (and the fix's repair to it)
2. better logging in SQLiteCloseable when it prints log messages
oretests/src/android/database/DatabaseGeneralTest.java
oretests/src/android/database/sqlite/SQLiteGeneralTest.java
d651629478ea4615e3a493aa63ae455d6fefb38f 18-Feb-2010 Gilles Debunne <debunne@google.com> Merge "List.GetCheckItemIds no longer includes unchecked items."
fd3ddfa6f0559eb29eea179690144a7357c34b3d 18-Feb-2010 Gilles Debunne <debunne@google.com> 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
oretests/src/android/widget/listview/ListGetCheckItemIdsTest.java
5df3a9017eaac2aef2ad360ce8f298b2d60b5536 17-Feb-2010 Brett Chabot <brettchabot@android.com> Merge "Add a host based test for package manager installs."
cb2003afee8d86683d06454ee384e539efcc9a13 17-Feb-2010 Brett Chabot <brettchabot@android.com> Add a host based test for package manager installs.

Bug 2430400
osttests/Android.mk
osttests/README
osttests/src/android/content/pm/PackageManagerHostTests.java
osttests/test-apps/Android.mk
osttests/test-apps/SimpleTestApp/Android.mk
osttests/test-apps/SimpleTestApp/AndroidManifest.xml
osttests/test-apps/SimpleTestApp/src/com/android/framework/simpletestapp/SimpleAppActivity.java
479ae0a28099eb77299fe0f44d4dfabce3115fb6 04-Feb-2010 Amith Yamasani <yamasani@google.com> Cleanup of global search references in SearchDialog and SearchManager.
oretests/src/android/app/SearchManagerTest.java
1017a134c19b3d296c7c05cf640db4b08816d090 17-Feb-2010 Bjorn Bringert <bringert@android.com> Clean up after failed MemoryFileTest.testPurge()

MemoryFileTest.testPurge() can fail if the process runs
out of file descriptors before the kernel starts purging ashmem areas.
Before, there was no finally block to close the open ashmem
file descriptions, which caused random other tests to fail.

I also changed the size of the memory areas to 10MB, which
should cause it to run out of memory before it runs out of file
descriptors. It now fails with this instead:

java.io.IOException
at android.os.MemoryFile.native_pin(Native Method)
at android.os.MemoryFile.allowPurging(MemoryFile.java:189)
at android.os.MemoryFileTest.testPurge(MemoryFileTest.java:53)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:430)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)

I'm not sure why, but it could be that the kernel is purging the just
allocated area instead of an old one. That seems like bug.

See http://b/issue?id=2203775

Change-Id: Ia7930a714378474dd4c2c6709da40c08e715ab6f
oretests/src/android/os/MemoryFileTest.java
bb50863c07c763ad50f723954cfc4401759e448a 16-Feb-2010 Bjorn Bringert <bringert@android.com> Merge "Remove flaky and broken search tests from continous"
052e88bb60d43d82a94985d655d7dfaa6244fc69 16-Feb-2010 Bjorn Bringert <bringert@android.com> Remove flaky and broken search tests from continous

See: http://b/issue?id=2403672

Change-Id: Ie901a746b28a08f0cd6306c515c5fb5cddae4c41
oretests/src/android/app/SearchManagerTest.java
c694aa75971baf33b4960b29988db80e7adbe817 16-Feb-2010 Doug Zongker <dougz@android.com> Merge "tweak the Base64 implementation"
9df2ffd4205115a68c4fe0651b2072e3e4573dd2 14-Feb-2010 Doug Zongker <dougz@android.com> 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
oretests/src/android/util/base64/Base64Test.java
1c9131c91f27c8258dfad0a92cee105275f5422a 13-Feb-2010 Dan Egnor <egnor@google.com> Remove all traces of the old checkin service (and its associated parental
control interfaces) from the framework.
oretests/src/com/google/android/net/ParentalControlTest.java
d2affae13dfdb116adaee1bb10aaaac80a885481 13-Feb-2010 Doug Zongker <dougz@android.com> add a Base64 implementation to the API

b/1413917 - RFE: Base64 utility class
Change-Id: I11697859e1f78f596b92d2e03a49ed1be04ae42d
oretests/src/android/util/base64/Base64Test.java
787372568affc7d87aaa3c112ff561d7e9540fc7 09-Feb-2010 Vasu Nori <vnori@google.com> Merge "suppress broken tests(http://b/2431671)"
5793a17366997060b34d1877380980683bacb965 09-Feb-2010 Vasu Nori <vnori@google.com> suppress broken tests(http://b/2431671)

should have debugged the broken test.
added transactions to speed up tests wherver possible
oretests/src/android/database/DatabaseCursorTest.java
b56ae20b22fd7283df32072a431ab6d4965f3c1b 05-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Rename media resource broadcasts
Add checks for fwdlocked and updated system apps
add more tests
remove duplicate adds
oretests/AndroidManifest.xml
3ef94e25b4c896ecaa85aa2c12b8863ecdf98df0 05-Feb-2010 Vasu Nori <vnori@google.com> use sqlite 3.6.22 to print and profile the sql statetements

instead of rolling our own trace/profile code in java, lets use
sqlite 3.6.22 features. turns out sqlite does a good job of
printing the sql statements - including the ones from the triggers.
oretests/src/android/database/sqlite/SQLiteDebugTest.java
c5d1c6db61f208b206b260f897bb5bbc64be4d97 27-Jan-2010 Fred Quintana <fredq@google.com> add sync polling

- added the ability to specify that a sync (of account/authority/extras)
should occur at a given frequency
- the existing daily poll code was replaced with seeding each
account/authority with a 24 hour periodic sync
- enhanced the "adb shell dumpsys content" output to show the
periodic syncs and when they will next run
oretests/src/android/content/SyncStorageEngineTest.java
8fccf67fa5395232660ffd65e8062b0ee621d160 02-Feb-2010 Vasu Nori <vnori@google.com> Merge "add instrumentation to log the sql statement + bindargs + databasename"
4dd4ab4cc322e82401f380aeb877daa4a20d7069 30-Jan-2010 Vasu Nori <vnori@google.com> add instrumentation to log the sql statement + bindargs + databasename

capture the sql statement along with the bindargs passed in. this will help
one to see the sql statements being executed and hopefully will help
debug incorrect-sql bugs.
oretests/src/android/database/sqlite/SQLiteDebugTest.java
1a44d5dcabc18cd5ef111f732ccff91683a1a093 13-Jan-2010 Neal Nguyen <tommyn@google.com> Phase 2 of test cleanup: moving test files from AndroidTests closer to their sources.

Most of these are file moves; a couple notable exceptions are the changes due to the move, and fixing up test code:
- database/DatabaseCursorTest.java
- database/DatabaseStatementTest.java
- net/UriTest.java
oretests/Android.mk
oretests/AndroidManifest.xml
oretests/assets/text.txt
oretests/res/layout/layout_five.xml
oretests/res/layout/layout_four.xml
oretests/res/layout/layout_one.xml
oretests/res/layout/layout_six.xml
oretests/res/layout/layout_tag.xml
oretests/res/layout/layout_three.xml
oretests/res/layout/layout_two.xml
oretests/res/raw/medium.xml
oretests/res/raw/small.xml
oretests/res/raw/text.txt
oretests/res/raw/v21_backslash.vcf
oretests/res/raw/v21_complicated.vcf
oretests/res/raw/v21_invalid_comment_line.vcf
oretests/res/raw/v21_japanese_1.vcf
oretests/res/raw/v21_japanese_2.vcf
oretests/res/raw/v21_multiple_entry.vcf
oretests/res/raw/v21_org_before_title.vcf
oretests/res/raw/v21_pref_handling.vcf
oretests/res/raw/v21_simple_1.vcf
oretests/res/raw/v21_simple_2.vcf
oretests/res/raw/v21_simple_3.vcf
oretests/res/raw/v21_title_before_org.vcf
oretests/res/raw/v21_winmo_65.vcf
oretests/res/raw/v30_comma_separated.vcf
oretests/res/raw/v30_simple.vcf
oretests/res/values/strings.xml
oretests/res/xml/metadata.xml
oretests/res/xml/metadata_app.xml
oretests/res/xml/searchable.xml
oretests/src/android/accounts/AccountManagerServiceTest.java
oretests/src/android/app/SearchManagerTest.java
oretests/src/android/app/SearchablesTest.java
oretests/src/android/app/SuggestionProvider.java
oretests/src/android/app/activity/AbortReceiver.java
oretests/src/android/app/activity/ActivityManagerTest.java
oretests/src/android/app/activity/ActivityTests.java
oretests/src/android/app/activity/ActivityTestsBase.java
oretests/src/android/app/activity/BroadcastTest.java
oretests/src/android/app/activity/ClearTop.java
oretests/src/android/app/activity/IntentSenderTest.java
oretests/src/android/app/activity/LaunchTest.java
oretests/src/android/app/activity/LaunchpadActivity.java
oretests/src/android/app/activity/LaunchpadTabActivity.java
oretests/src/android/app/activity/LifecycleTest.java
oretests/src/android/app/activity/LocalActivity.java
oretests/src/android/app/activity/LocalDeniedReceiver.java
oretests/src/android/app/activity/LocalDeniedService.java
oretests/src/android/app/activity/LocalDialog.java
oretests/src/android/app/activity/LocalGrantedReceiver.java
oretests/src/android/app/activity/LocalGrantedService.java
oretests/src/android/app/activity/LocalProvider.java
oretests/src/android/app/activity/LocalReceiver.java
oretests/src/android/app/activity/LocalScreen.java
oretests/src/android/app/activity/LocalService.java
oretests/src/android/app/activity/MetaDataTest.java
oretests/src/android/app/activity/RemoteDeniedReceiver.java
oretests/src/android/app/activity/RemoteGrantedReceiver.java
oretests/src/android/app/activity/RemoteReceiver.java
oretests/src/android/app/activity/RemoteSubActivityScreen.java
oretests/src/android/app/activity/ResultReceiver.java
oretests/src/android/app/activity/SearchableActivity.java
oretests/src/android/app/activity/ServiceTest.java
oretests/src/android/app/activity/SetTimeZonePermissionsTest.java
oretests/src/android/app/activity/SubActivityScreen.java
oretests/src/android/app/activity/SubActivityTest.java
oretests/src/android/app/activity/TestedActivity.java
oretests/src/android/app/activity/TestedScreen.java
oretests/src/android/content/AssetTest.java
oretests/src/android/content/ContentQueryMapTest.java
oretests/src/android/content/ContentTests.java
oretests/src/android/content/MemoryFileProvider.java
oretests/src/android/content/MemoryFileProviderTest.java
oretests/src/android/database/CursorWindowTest.java
oretests/src/android/database/DatabaseCursorTest.java
oretests/src/android/database/DatabaseGeneralTest.java
oretests/src/android/database/DatabaseLocaleTest.java
oretests/src/android/database/DatabaseLockTest.java
oretests/src/android/database/DatabasePerformanceTests.java
oretests/src/android/database/DatabaseStatementTest.java
oretests/src/android/database/DatabaseStressTest.java
oretests/src/android/net/LocalSocketTest.java
oretests/src/android/net/SSLTest.java
oretests/src/android/net/UriMatcherTest.java
oretests/src/android/net/UriTest.java
oretests/src/android/os/AidlTest.aidl
oretests/src/android/os/AidlTest.java
oretests/src/android/os/BroadcasterTest.java
oretests/src/android/os/BuildTest.java
oretests/src/android/os/FileObserverTest.java
oretests/src/android/os/FileUtilsTest.java
oretests/src/android/os/HandlerTester.java
oretests/src/android/os/HandlerThreadTest.java
oretests/src/android/os/HierarchicalStateMachineTest.java
oretests/src/android/os/IAidlTest.aidl
oretests/src/android/os/IdleHandlerTest.java
oretests/src/android/os/MemoryFileTest.java
oretests/src/android/os/MessageQueueTest.java
oretests/src/android/os/MessengerService.java
oretests/src/android/os/MessengerTest.java
oretests/src/android/os/OsTests.java
oretests/src/android/os/PerformanceCollectorTest.java
oretests/src/android/os/PowerManagerTest.java
oretests/src/android/os/SystemPropertiesTest.java
oretests/src/android/os/TestHandlerThread.java
oretests/src/android/os/TraceTest.java
oretests/src/android/pim/vcard/ContentValuesBuilder.java
oretests/src/android/pim/vcard/ContentValuesVerifier.java
oretests/src/android/pim/vcard/ContentValuesVerifierElem.java
oretests/src/android/pim/vcard/ExportTestResolver.java
oretests/src/android/pim/vcard/ImportTestResolver.java
oretests/src/android/pim/vcard/LineVerifier.java
oretests/src/android/pim/vcard/LineVerifierElem.java
oretests/src/android/pim/vcard/PropertyNode.java
oretests/src/android/pim/vcard/PropertyNodesVerifier.java
oretests/src/android/pim/vcard/VCardExporterTests.java
oretests/src/android/pim/vcard/VCardImporterTests.java
oretests/src/android/pim/vcard/VCardJapanizationTests.java
oretests/src/android/pim/vcard/VCardTestsBase.java
oretests/src/android/pim/vcard/VCardUtilsTests.java
oretests/src/android/pim/vcard/VCardVerifier.java
oretests/src/android/pim/vcard/VNode.java
oretests/src/android/pim/vcard/VNodeBuilder.java
oretests/src/android/provider/SettingsProviderTest.java
oretests/src/android/provider/SmsProviderTest.java
oretests/src/android/text/SpannedTest.java
oretests/src/android/text/TextLayoutTest.java
oretests/src/android/text/TextUtilsTest.java
oretests/src/android/text/format/TimeTest.java
oretests/src/android/util/LogTest.java
oretests/src/android/util/TimeUtilsTest.java
oretests/src/android/view/CreateViewTest.java
oretests/src/android/view/InflateTest.java
oretests/src/android/view/MenuTest.java
oretests/src/android/webkit/WebkitTest.java
oretests/src/android/widget/LabelView.java
oretests/src/android/widget/TextViewPerformanceTest.java
oretests/src/android/widget/TextViewTest.java
oretests/src/com/android/internal/util/BitwiseStreamsTest.java
oretests/src/com/android/internal/util/CharSequencesTest.java
oretests/src/com/google/android/net/ParentalControlTest.java
6505122dfe96322bdeac4210d313b3f043c6a29a 27-Jan-2010 Brian Carlstrom <bdc@google.com> Issue 1597: browser crash possibly related to invalid SSL certificate
oretests/src/android/net/http/SslCertificateTest.java
1d3165f10b12165f02b7015ac1a817c5f60e6399 12-Jan-2010 Neal Nguyen <tommyn@google.com> Phase 2 of test file cleanup: relocating test files from FrameworkTest closer to their sources in core.

In addition to the file moves, the package names of the tests have been updated and adjusted to match their new locations.
oretests/AndroidManifest.xml
oretests/res/drawable-hdpi/big_drawable_background.9.png
oretests/res/drawable-hdpi/black_square.png
oretests/res/drawable-hdpi/black_square_stretchable.9.png
oretests/res/drawable-hdpi/drawable_background.9.png
oretests/res/drawable-hdpi/sym_now_playing_pause_1.png
oretests/res/drawable-hdpi/sym_now_playing_skip_backward_1.png
oretests/res/drawable-hdpi/sym_now_playing_skip_forward_1.png
oretests/res/drawable-mdpi/big_drawable_background.9.png
oretests/res/drawable-mdpi/black_square.png
oretests/res/drawable-mdpi/black_square_stretchable.9.png
oretests/res/drawable-mdpi/drawable_background.9.png
oretests/res/drawable-mdpi/sym_now_playing_pause_1.png
oretests/res/drawable-mdpi/sym_now_playing_skip_backward_1.png
oretests/res/drawable-mdpi/sym_now_playing_skip_forward_1.png
oretests/res/drawable/bitmap_drawable.xml
oretests/res/drawable/box.xml
oretests/res/layout/add_column_in_table.xml
oretests/res/layout/autocompletetextview_simple.xml
oretests/res/layout/baseline_0width_and_weight.xml
oretests/res/layout/baseline_buttons.xml
oretests/res/layout/baseline_center_gravity.xml
oretests/res/layout/brightness_limit.xml
oretests/res/layout/descendant_focusability.xml
oretests/res/layout/disabled.xml
oretests/res/layout/drawable_background_minimum_size.xml
oretests/res/layout/fill_in_wrap.xml
oretests/res/layout/focus_after_removal.xml
oretests/res/layout/focus_listener.xml
oretests/res/layout/framelayout_gravity.xml
oretests/res/layout/framelayout_margin.xml
oretests/res/layout/grid_in_horizontal.xml
oretests/res/layout/grid_in_vertical.xml
oretests/res/layout/grid_padding.xml
oretests/res/layout/grid_scroll_listener.xml
oretests/res/layout/grid_thrasher.xml
oretests/res/layout/include_button.xml
oretests/res/layout/include_button_with_size.xml
oretests/res/layout/include_tag.xml
oretests/res/layout/inflated_expandablelistview.xml
oretests/res/layout/linear_layout_buttons.xml
oretests/res/layout/linear_layout_edittext_then_button.xml
oretests/res/layout/linear_layout_grid.xml
oretests/res/layout/linear_layout_listview_height.xml
oretests/res/layout/linear_layout_spinner_then_button.xml
oretests/res/layout/linear_layout_textviews.xml
oretests/res/layout/linear_layout_weight.xml
oretests/res/layout/list_dividers.xml
oretests/res/layout/list_filter.xml
oretests/res/layout/list_in_horizontal.xml
oretests/res/layout/list_in_vertical.xml
oretests/res/layout/list_recycler_profiling.xml
oretests/res/layout/list_scroll_listener.xml
oretests/res/layout/list_take_focus_from_side.xml
oretests/res/layout/list_thrasher.xml
oretests/res/layout/list_with_button_above.xml
oretests/res/layout/list_with_disappearing_item_bug_item.xml
oretests/res/layout/list_with_empty_view.xml
oretests/res/layout/longpress.xml
oretests/res/layout/mail_message.xml
oretests/res/layout/merge_child.xml
oretests/res/layout/merge_tag.xml
oretests/res/layout/popup_window_visibility.xml
oretests/res/layout/pre_draw_listener.xml
oretests/res/layout/radiogroup_checkedchild.xml
oretests/res/layout/remote_view_host.xml
oretests/res/layout/remote_view_test_bad_1.xml
oretests/res/layout/remote_view_test_bad_2.xml
oretests/res/layout/remote_view_test_good.xml
oretests/res/layout/scroll_to_rect_with_internal_scroll.xml
oretests/res/layout/scroll_to_rectangle.xml
oretests/res/layout/scrollview_linear_layout.xml
oretests/res/layout/scrollview_with_webviews.xml
oretests/res/layout/table_layout_cell_span.xml
oretests/res/layout/table_layout_fixed_width.xml
oretests/res/layout/table_layout_horizontal_gravity.xml
oretests/res/layout/table_layout_vertical_gravity.xml
oretests/res/layout/table_layout_weight.xml
oretests/res/layout/translucent_background.xml
oretests/res/layout/viewgroupchildren.xml
oretests/res/layout/viewstub.xml
oretests/res/layout/visibility.xml
oretests/res/layout/visibility_callback.xml
oretests/res/layout/weight_sum.xml
oretests/res/layout/with_bitmap_background.xml
oretests/res/layout/zero_sized.xml
oretests/res/values/arrays.xml
oretests/res/values/attrs.xml
oretests/res/values/colors.xml
oretests/res/values/strings.xml
oretests/res/values/styles.xml
oretests/src/android/accessibilityservice/AccessibilityTestService.java
oretests/src/android/app/TranslucentFancyActivity.java
oretests/src/android/content/ContentProviderOperationTest.java
oretests/src/android/content/SearchRecentSuggestionsProviderTest.java
oretests/src/android/database/sqlite/AbstractJDBCDriverTest.java
oretests/src/android/database/sqlite/SQLiteJDBCDriverTest.java
oretests/src/android/os/BrightnessLimit.java
oretests/src/android/text/HtmlTest.java
oretests/src/android/text/SpannableStringBuilderTest.java
oretests/src/android/text/SpannableStringTest.java
oretests/src/android/text/SpannableTest.java
oretests/src/android/util/ExpandableListScenario.java
oretests/src/android/util/GridScenario.java
oretests/src/android/util/InternalSelectionView.java
oretests/src/android/util/KeyUtils.java
oretests/src/android/util/ListItemFactory.java
oretests/src/android/util/ListScenario.java
oretests/src/android/util/ListUtil.java
oretests/src/android/util/ScrollViewScenario.java
oretests/src/android/util/TouchModeFlexibleAsserts.java
oretests/src/android/view/BigCache.java
oretests/src/android/view/BigCacheTest.java
oretests/src/android/view/BitmapDrawable.java
oretests/src/android/view/Disabled.java
oretests/src/android/view/DisabledLongpressTest.java
oretests/src/android/view/DisabledTest.java
oretests/src/android/view/DrawableBgMinSize.java
oretests/src/android/view/DrawableBgMinSizeTest.java
oretests/src/android/view/FocusFinderTest.java
oretests/src/android/view/GlobalFocusChange.java
oretests/src/android/view/GlobalFocusChangeTest.java
oretests/src/android/view/Include.java
oretests/src/android/view/IncludeTest.java
oretests/src/android/view/ListContextMenu.java
oretests/src/android/view/Longpress.java
oretests/src/android/view/LongpressTest.java
oretests/src/android/view/Merge.java
oretests/src/android/view/MergeTest.java
oretests/src/android/view/MutateDrawable.java
oretests/src/android/view/MutateDrawableTest.java
oretests/src/android/view/PopupWindowVisibility.java
oretests/src/android/view/PreDrawListener.java
oretests/src/android/view/RemoteViewsActivity.java
oretests/src/android/view/RunQueue.java
oretests/src/android/view/RunQueueTest.java
oretests/src/android/view/SetTagsTest.java
oretests/src/android/view/StubbedView.java
oretests/src/android/view/ViewGroupChildren.java
oretests/src/android/view/ViewGroupChildrenTest.java
oretests/src/android/view/ViewStubTest.java
oretests/src/android/view/Visibility.java
oretests/src/android/view/VisibilityCallback.java
oretests/src/android/view/VisibilityCallbackTest.java
oretests/src/android/view/VisibilityTest.java
oretests/src/android/view/ZeroSized.java
oretests/src/android/view/ZeroSizedTest.java
oretests/src/android/view/accessibility/RecycleAccessibilityEventTest.java
oretests/src/android/view/menu/MenuLayout.java
oretests/src/android/view/menu/MenuLayoutLandscape.java
oretests/src/android/view/menu/MenuLayoutLandscapeTest.java
oretests/src/android/view/menu/MenuLayoutPortrait.java
oretests/src/android/view/menu/MenuLayoutPortraitTest.java
oretests/src/android/view/menu/MenuScenario.java
oretests/src/android/view/menu/MenuWith1Item.java
oretests/src/android/view/menu/MenuWith1ItemTest.java
oretests/src/android/widget/AutoCompleteTextViewCallbacks.java
oretests/src/android/widget/AutoCompleteTextViewPopup.java
oretests/src/android/widget/AutoCompleteTextViewSimple.java
oretests/src/android/widget/ListViewTest.java
oretests/src/android/widget/RadioGroupActivity.java
oretests/src/android/widget/RadioGroupPreCheckedTest.java
oretests/src/android/widget/SimpleCursorAdapterTest.java
oretests/src/android/widget/expandablelistview/ExpandableListBasicTest.java
oretests/src/android/widget/expandablelistview/ExpandableListSimple.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeaders.java
oretests/src/android/widget/expandablelistview/ExpandableListWithHeadersTest.java
oretests/src/android/widget/expandablelistview/InflatedExpandableListView.java
oretests/src/android/widget/focus/AdjacentVerticalRectLists.java
oretests/src/android/widget/focus/DescendantFocusability.java
oretests/src/android/widget/focus/DescendantFocusabilityTest.java
oretests/src/android/widget/focus/FocusAfterRemoval.java
oretests/src/android/widget/focus/FocusAfterRemovalTest.java
oretests/src/android/widget/focus/FocusChangeWithInterestingRectHintTest.java
oretests/src/android/widget/focus/GoneParentFocusedChild.java
oretests/src/android/widget/focus/GoneParentFocusedChildTest.java
oretests/src/android/widget/focus/HorizontalFocusSearch.java
oretests/src/android/widget/focus/HorizontalFocusSearchTest.java
oretests/src/android/widget/focus/LinearLayoutGrid.java
oretests/src/android/widget/focus/LinearLayoutGridTest.java
oretests/src/android/widget/focus/ListOfButtons.java
oretests/src/android/widget/focus/ListOfButtonsTest.java
oretests/src/android/widget/focus/ListOfEditTexts.java
oretests/src/android/widget/focus/ListOfInternalSelectionViews.java
oretests/src/android/widget/focus/ListWithFooterViewAndNewLabels.java
oretests/src/android/widget/focus/ListWithFooterViewAndNewLabelsTest.java
oretests/src/android/widget/focus/ListWithMailMessages.java
oretests/src/android/widget/focus/RequestFocus.java
oretests/src/android/widget/focus/RequestFocusTest.java
oretests/src/android/widget/focus/ScrollingThroughListOfFocusablesTest.java
oretests/src/android/widget/focus/VerticalFocusSearch.java
oretests/src/android/widget/focus/VerticalFocusSearchTest.java
oretests/src/android/widget/gridview/GridDelete.java
oretests/src/android/widget/gridview/GridInHorizontal.java
oretests/src/android/widget/gridview/GridInHorizontalTest.java
oretests/src/android/widget/gridview/GridInVertical.java
oretests/src/android/widget/gridview/GridInVerticalTest.java
oretests/src/android/widget/gridview/GridPadding.java
oretests/src/android/widget/gridview/GridPaddingTest.java
oretests/src/android/widget/gridview/GridScrollListener.java
oretests/src/android/widget/gridview/GridScrollListenerTest.java
oretests/src/android/widget/gridview/GridSetSelection.java
oretests/src/android/widget/gridview/GridSetSelectionBaseTest.java
oretests/src/android/widget/gridview/GridSetSelectionMany.java
oretests/src/android/widget/gridview/GridSetSelectionManyTest.java
oretests/src/android/widget/gridview/GridSetSelectionStackFromBottom.java
oretests/src/android/widget/gridview/GridSetSelectionStackFromBottomMany.java
oretests/src/android/widget/gridview/GridSetSelectionStackFromBottomManyTest.java
oretests/src/android/widget/gridview/GridSetSelectionStackFromBottomTest.java
oretests/src/android/widget/gridview/GridSetSelectionTest.java
oretests/src/android/widget/gridview/GridSimple.java
oretests/src/android/widget/gridview/GridSingleColumn.java
oretests/src/android/widget/gridview/GridSingleColumnTest.java
oretests/src/android/widget/gridview/GridStackFromBottom.java
oretests/src/android/widget/gridview/GridStackFromBottomMany.java
oretests/src/android/widget/gridview/GridStackFromBottomManyTest.java
oretests/src/android/widget/gridview/GridStackFromBottomTest.java
oretests/src/android/widget/gridview/GridThrasher.java
oretests/src/android/widget/gridview/GridVerticalSpacing.java
oretests/src/android/widget/gridview/GridVerticalSpacingStackFromBottom.java
oretests/src/android/widget/gridview/touch/GridTouchSetSelectionTest.java
oretests/src/android/widget/gridview/touch/GridTouchStackFromBottomManyTest.java
oretests/src/android/widget/gridview/touch/GridTouchStackFromBottomTest.java
oretests/src/android/widget/gridview/touch/GridTouchVerticalSpacingStackFromBottomTest.java
oretests/src/android/widget/gridview/touch/GridTouchVerticalSpacingTest.java
oretests/src/android/widget/layout/frame/FrameLayoutGravity.java
oretests/src/android/widget/layout/frame/FrameLayoutGravityTest.java
oretests/src/android/widget/layout/frame/FrameLayoutMargin.java
oretests/src/android/widget/layout/frame/FrameLayoutMarginTest.java
oretests/src/android/widget/layout/linear/BaselineAlignmentCenterGravity.java
oretests/src/android/widget/layout/linear/BaselineAlignmentCenterGravityTest.java
oretests/src/android/widget/layout/linear/BaselineAlignmentSpinnerButton.java
oretests/src/android/widget/layout/linear/BaselineAlignmentZeroWidthAndWeight.java
oretests/src/android/widget/layout/linear/BaselineAlignmentZeroWidthAndWeightTest.java
oretests/src/android/widget/layout/linear/BaselineButtons.java
oretests/src/android/widget/layout/linear/BaselineButtonsTest.java
oretests/src/android/widget/layout/linear/ExceptionTextView.java
oretests/src/android/widget/layout/linear/FillInWrap.java
oretests/src/android/widget/layout/linear/FillInWrapTest.java
oretests/src/android/widget/layout/linear/HorizontalOrientationVerticalAlignment.java
oretests/src/android/widget/layout/linear/LLEditTextThenButton.java
oretests/src/android/widget/layout/linear/LLOfButtons1.java
oretests/src/android/widget/layout/linear/LLOfButtons2.java
oretests/src/android/widget/layout/linear/LLOfTwoFocusableInTouchMode.java
oretests/src/android/widget/layout/linear/LinearLayoutEditTexts.java
oretests/src/android/widget/layout/linear/LinearLayoutEditTextsTest.java
oretests/src/android/widget/layout/linear/Weight.java
oretests/src/android/widget/layout/linear/WeightSum.java
oretests/src/android/widget/layout/linear/WeightSumTest.java
oretests/src/android/widget/layout/linear/WeightTest.java
oretests/src/android/widget/layout/table/AddColumn.java
oretests/src/android/widget/layout/table/AddColumnTest.java
oretests/src/android/widget/layout/table/CellSpan.java
oretests/src/android/widget/layout/table/CellSpanTest.java
oretests/src/android/widget/layout/table/FixedWidth.java
oretests/src/android/widget/layout/table/FixedWidthTest.java
oretests/src/android/widget/layout/table/HorizontalGravity.java
oretests/src/android/widget/layout/table/HorizontalGravityTest.java
oretests/src/android/widget/layout/table/VerticalGravity.java
oretests/src/android/widget/layout/table/VerticalGravityTest.java
oretests/src/android/widget/layout/table/Weight.java
oretests/src/android/widget/layout/table/WeightTest.java
oretests/src/android/widget/listview/AdjacentListsWithAdjacentISVsInside.java
oretests/src/android/widget/listview/ListBottomGravity.java
oretests/src/android/widget/listview/ListBottomGravityMany.java
oretests/src/android/widget/listview/ListBottomGravityManyTest.java
oretests/src/android/widget/listview/ListBottomGravityTest.java
oretests/src/android/widget/listview/ListButtonsDiagonalAcrossItems.java
oretests/src/android/widget/listview/ListDividers.java
oretests/src/android/widget/listview/ListEmptyViewTest.java
oretests/src/android/widget/listview/ListEndingWithMultipleSeparators.java
oretests/src/android/widget/listview/ListFilter.java
oretests/src/android/widget/listview/ListFocusableTest.java
oretests/src/android/widget/listview/ListGetSelectedView.java
oretests/src/android/widget/listview/ListHeterogeneous.java
oretests/src/android/widget/listview/ListHeterogeneousTest.java
oretests/src/android/widget/listview/ListHorizontalFocusWithinItemWins.java
oretests/src/android/widget/listview/ListInHorizontal.java
oretests/src/android/widget/listview/ListInHorizontalTest.java
oretests/src/android/widget/listview/ListInVertical.java
oretests/src/android/widget/listview/ListInVerticalTest.java
oretests/src/android/widget/listview/ListInterleaveFocusables.java
oretests/src/android/widget/listview/ListItemFocusableAboveUnfocusable.java
oretests/src/android/widget/listview/ListItemFocusablesClose.java
oretests/src/android/widget/listview/ListItemFocusablesFarApart.java
oretests/src/android/widget/listview/ListItemISVAndButton.java
oretests/src/android/widget/listview/ListItemRequestRectAboveThinFirstItemTest.java
oretests/src/android/widget/listview/ListItemsExpandOnSelection.java
oretests/src/android/widget/listview/ListLastItemPartiallyVisible.java
oretests/src/android/widget/listview/ListManagedCursor.java
oretests/src/android/widget/listview/ListManagedCursorTest.java
oretests/src/android/widget/listview/ListOfItemsShorterThanScreen.java
oretests/src/android/widget/listview/ListOfItemsTallerThanScreen.java
oretests/src/android/widget/listview/ListOfShortShortTallShortShort.java
oretests/src/android/widget/listview/ListOfShortTallShort.java
oretests/src/android/widget/listview/ListOfThinItems.java
oretests/src/android/widget/listview/ListOfTouchables.java
oretests/src/android/widget/listview/ListRecyclerProfiling.java
oretests/src/android/widget/listview/ListRetainsFocusAcrossLayoutsTest.java
oretests/src/android/widget/listview/ListScrollListener.java
oretests/src/android/widget/listview/ListScrollListenerTest.java
oretests/src/android/widget/listview/ListSetSelection.java
oretests/src/android/widget/listview/ListSetSelectionTest.java
oretests/src/android/widget/listview/ListSimple.java
oretests/src/android/widget/listview/ListTakeFocusFromSide.java
oretests/src/android/widget/listview/ListThrasher.java
oretests/src/android/widget/listview/ListTopGravity.java
oretests/src/android/widget/listview/ListTopGravityMany.java
oretests/src/android/widget/listview/ListUnspecifiedMeasure.java
oretests/src/android/widget/listview/ListViewHeight.java
oretests/src/android/widget/listview/ListViewHeightTest.java
oretests/src/android/widget/listview/ListWithDisappearingItemBug.java
oretests/src/android/widget/listview/ListWithEditTextHeader.java
oretests/src/android/widget/listview/ListWithEmptyView.java
oretests/src/android/widget/listview/ListWithFirstScreenUnSelectable.java
oretests/src/android/widget/listview/ListWithHeaders.java
oretests/src/android/widget/listview/ListWithNoFadingEdge.java
oretests/src/android/widget/listview/ListWithOffScreenNextSelectable.java
oretests/src/android/widget/listview/ListWithOnItemSelectedAction.java
oretests/src/android/widget/listview/ListWithScreenOfNoSelectables.java
oretests/src/android/widget/listview/ListWithSeparators.java
oretests/src/android/widget/listview/arrowscroll/ListInterleaveFocusablesTest.java
oretests/src/android/widget/listview/arrowscroll/ListItemFocusableAboveUnfocusableTest.java
oretests/src/android/widget/listview/arrowscroll/ListItemFocusablesCloseTest.java
oretests/src/android/widget/listview/arrowscroll/ListItemFocusablesFarApartTest.java
oretests/src/android/widget/listview/arrowscroll/ListItemsExpandOnSelectionTest.java
oretests/src/android/widget/listview/arrowscroll/ListLastItemPartiallyVisibleTest.java
oretests/src/android/widget/listview/arrowscroll/ListOfItemsShorterThanScreenTest.java
oretests/src/android/widget/listview/arrowscroll/ListOfItemsTallerThanScreenTest.java
oretests/src/android/widget/listview/arrowscroll/ListOfShortShortTallShortShortTest.java
oretests/src/android/widget/listview/arrowscroll/ListOfShortTallShortTest.java
oretests/src/android/widget/listview/arrowscroll/ListOfThinItemsTest.java
oretests/src/android/widget/listview/arrowscroll/ListWithFirstScreenUnSelectableTest.java
oretests/src/android/widget/listview/arrowscroll/ListWithNoFadingEdgeTest.java
oretests/src/android/widget/listview/arrowscroll/ListWithOffScreenNextSelectableTest.java
oretests/src/android/widget/listview/arrowscroll/ListWithOnItemSelectedActionTest.java
oretests/src/android/widget/listview/arrowscroll/ListWithScreenOfNoSelectablesTest.java
oretests/src/android/widget/listview/arrowscroll/ListWithSeparatorsTest.java
oretests/src/android/widget/listview/focus/AdjacentListsWithAdjacentISVsInsideTest.java
oretests/src/android/widget/listview/focus/ListButtonsDiagonalAcrossItemsTest.java
oretests/src/android/widget/listview/focus/ListHorizontalFocusWithinItemWinsTest.java
oretests/src/android/widget/listview/focus/ListWithEditTextHeaderTest.java
oretests/src/android/widget/listview/touch/ListGetSelectedViewTest.java
oretests/src/android/widget/listview/touch/ListOfTouchablesTest.java
oretests/src/android/widget/listview/touch/ListSetSelectionTest.java
oretests/src/android/widget/listview/touch/ListTouchBottomGravityManyTest.java
oretests/src/android/widget/listview/touch/ListTouchBottomGravityTest.java
oretests/src/android/widget/listview/touch/ListTouchManyTest.java
oretests/src/android/widget/listview/touch/ListTouchTest.java
oretests/src/android/widget/scroll/ButtonAboveTallInternalSelectionView.java
oretests/src/android/widget/scroll/ButtonAboveTallInternalSelectionViewTest.java
oretests/src/android/widget/scroll/ButtonsWithTallTextViewInBetween.java
oretests/src/android/widget/scroll/RequestRectangleVisible.java
oretests/src/android/widget/scroll/RequestRectangleVisibleTest.java
oretests/src/android/widget/scroll/RequestRectangleVisibleWithInternalScroll.java
oretests/src/android/widget/scroll/RequestRectangleVisibleWithInternalScrollTest.java
oretests/src/android/widget/scroll/ScrollViewButtonsAndLabels.java
oretests/src/android/widget/scroll/ScrollViewButtonsAndLabelsTest.java
oretests/src/android/widget/scroll/ShortButtons.java
oretests/src/android/widget/scroll/TallTextAboveButton.java
oretests/src/android/widget/scroll/arrowscroll/ButtonsWithTallTextViewInBetweenTest.java
oretests/src/android/widget/scroll/arrowscroll/ShortButtonsTest.java
oretests/src/android/widget/scroll/arrowscroll/TallTextAboveButtonTest.java
oretests/src/android/widget/touchmode/ChangeTouchModeTest.java
oretests/src/android/widget/touchmode/FocusableInTouchModeClickTest.java
oretests/src/android/widget/touchmode/StartInTouchWithViewInFocusTest.java
oretests/src/android/widget/touchmode/TouchModeFocusChangeTest.java
oretests/src/android/widget/touchmode/TouchModeFocusableTest.java
22e31e5b609136d5bf7d77b1dccd6b042b83ebdf 07-Jan-2010 Neal Nguyen <tommyn@google.com> Moving framework core tests closer to their source files.

Phase 2 of test case cleanup; distributing CoreTests files closer to their respective sources under frameworks.
oretests/Android.mk
oretests/AndroidManifest.xml
oretests/src/android/bluetooth/AtParserTest.java
oretests/src/android/content/ObserverNodeTest.java
oretests/src/android/content/SyncStorageEngineTest.java
oretests/src/android/database/MatrixCursorTest.java
oretests/src/android/database/sqlite/AbstractJDBCDriverTest.java
oretests/src/android/database/sqlite/SQLiteJDBCDriverTest.java
oretests/src/android/pim/RecurrenceSetTest.java
oretests/src/android/util/DayOfMonthCursorTest.java
oretests/src/android/util/FloatMathTest.java
oretests/src/android/util/MonthDisplayHelperTest.java
oretests/src/android/util/StateSetTest.java
oretests/src/android/view/FocusFinderTest.java
oretests/src/android/view/ViewGroupAttributesTest.java
oretests/src/android/webkit/UrlInterceptRegistryTest.java
oretests/src/com/android/internal/util/PredicatesTest.java