129 Commits

Author SHA1 Message Date
Xia Wang
ac18a05811 am 4b86be10: am 0bfc3973: am 3e6c1696: am 11505b47: Merge "Avoid UNKNOWN state for Wifi in bug2542613, not a common user case." into froyo 2010-05-06 17:10:31 -07:00
Neal Nguyen
1acadbc69c am 529ad92e: am bda001aa: am ad0830a1: am 639a7fc2: Merge "Propagating IOException from RemoteAndroidTestRunner#run() in PackageManagerHostTestUtils." into froyo 2010-05-06 17:10:22 -07:00
Shimeng (Simon) Wang
b0d278fcaa Merge "Updated URL pattern based on http://data.iana.org/TLD/tlds-alpha-by-domain.txt" 2010-05-06 16:17:06 -07:00
Shimeng (Simon) Wang
9b1872e619 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
2010-05-06 15:38:15 -07:00
Xia Wang
4672203ea1 Avoid UNKNOWN state for Wifi in bug2542613, not a common user case.
Change-Id: Ief0a953e2909cb5c808f0d683ab95d14f6c53e72
2010-05-06 14:58:40 -07:00
Andy McFadden
20e79fd412 Fix sim-eng build.
Not sure how this would build anywhere -- checked exception was not
checked.  Apparently only sim-eng cares.

Change-Id: I10bc7d0c41666fca55a7df60ef18517956097d9b
2010-05-06 14:34:23 -07:00
Neal Nguyen
42c2baeb48 Propagating IOException from RemoteAndroidTestRunner#run() in PackageManagerHostTestUtils.
Change-Id: Ia50d58760b4cc1e222927be054c52cc3b2993395
2010-05-06 13:26:58 -07:00
Neal Nguyen
2a7ca524a3 am 657757fd: am 73bbcc4d: am e96e2358: am f541c62b: Merge "Adding a few host-based stress tests for Apps on SD." into froyo 2010-05-06 12:49:43 -07:00
Neal Nguyen
b1fb5c3011 Adding a few host-based stress tests for Apps on SD.
Change-Id: I0ccb1f3574688f60b6296dac6f6859ba5d0597ea
2010-05-05 18:17:35 -07:00
Brett Chabot
1fc1ec4516 Merge "2604226 Add test cases for the internal accessibility infrastructure." 2010-04-27 15:47:12 -07:00
Shimeng (Simon) Wang
05fd7e7d32 Add good international characters to the path part of Url pattern.
Change-Id: Ib24f8ffc8554366cb4350ec2f9d7e77efb0cb083
2010-04-27 20:23:55 +01:00
Shimeng (Simon) Wang
7ce7cfc32d Merge "Add good international characters to the path part of Url pattern." 2010-04-27 08:06:54 -07:00
Shimeng (Simon) Wang
40064d3098 Add good international characters to the path part of Url pattern.
Change-Id: I05efb7e52a023fcb92db9db2b41dbab2ccca87c7
2010-04-27 12:12:02 +01:00
Svetoslav Ganov
0b29a58714 2604226 Add test cases for the internal accessibility infrastructure.
Change-Id: Iaeb2c11b6c2167632086b50d9c79e6459cc072b8
2010-04-26 21:23:54 -07:00
Neal Nguyen
22b0d17320 am 0c817ba3: am 27e5a95a: am 5fa65082: Merge "Re-enabling unit tests for PackageManager/Apps on SD." into froyo 2010-04-23 14:36:17 -07:00
Vasu Nori
9504c70f88 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
2010-04-23 11:32:57 -07:00
Neal Nguyen
edb979a331 Re-enabling unit tests for PackageManager/Apps on SD.
Change-Id: I305d2e6d96418ab5b2df0ee7a31261180676204f
2010-04-23 10:59:23 -07:00
Kenny Root
c2591c14f7 Add tests for SettingsProvider.parseProviderList
Change-Id: Id5c1597cd94b80e0d20ca415b5b7ba32200c1a03
2010-04-21 17:20:32 -07:00
Daisuke Miyakawa
56374c43f7 vCard refactoring.
Change-Id: Ie6c5e0edae4a13279d5118f0380d863e4ff05727
2010-04-21 16:06:09 +09:00
Daisuke Miyakawa
6db2c6cab5 Refactoring vCard: remove Shift_JIS information from flags.
Change-Id: I34ef498b3312178e7d358b0c8ebc34703abfc771
2010-04-20 18:27:10 +09:00
Daisuke Miyakawa
394026c53e Refactor vCard: clean up test code.
Bug: 2605996
Change-Id: Icdd8f56c1c21af35c55305cb9cc124cbf43174fc
2010-04-20 16:38:49 +09:00
Daisuke Miyakawa
8e798cf71e Refactor vCard: move utilities for unit tests to test_utils directory.
Change-Id: I4ef92633fb5eedc05f13ba53ca4ebc7e3e7ef8ce
2010-04-20 13:08:23 +09:00
Daisuke Miyakawa
931a0a9432 Refactor vCard so that it correctly choose charset while importing
some files.

Change-Id: I27600e260cd7ca42a25481d5ff61f262c9328d61
2010-04-19 18:52:08 +09:00
Daisuke Miyakawa
186bad00b4 Refactor vCard code.
- make the usage of VCardSourceDetector.
- simplyfy flag usage.
- remove unnecessary argument "canceled"

Change-Id: I6dd9723df7230be7478f6817c0ac2e6cbedc6ca7
2010-04-16 11:38:48 +09:00
android-build SharedAccount
120c457672 manual merge
Change-Id: I235ae925559b5db6d64cc8f8b188704a84d7b6a2
2010-04-15 16:36:34 -07:00
Vasu Nori
062fc7ce36 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
2010-04-15 09:31:47 -07:00
Suchi Amalapurapu
315a5fb91d 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
2010-04-14 18:24:06 -07:00
Daisuke Miyakawa
58b50f86cd 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
2010-04-08 19:58:58 +09:00
Suchi Amalapurapu
4baf4e6a74 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 2010-04-07 21:40:29 -07:00
Suchi Amalapurapu
40e472521a 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
2010-04-07 20:43:54 -07:00
Suchi Amalapurapu
716abe5739 am 4cdd682c: am 070e1ecf: am a137cf2a: am 4b18ced6: Merge "Fix 2578016." into froyo 2010-04-07 16:45:27 -07:00
Suchi Amalapurapu
4b18ced6b5 Merge "Fix 2578016." into froyo 2010-04-07 15:25:51 -07:00
Suchi Amalapurapu
30f775b12a Fix 2578016.
Add some checks before moving package.
Checkin test code.
Regenerate test apks

Change-Id: I769ece128fefd3429ce93208a77d887c7759d2e1
2010-04-07 11:43:31 -07:00
Xia Wang
48f5a4103f 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 2010-04-07 10:43:47 -07:00
Xia Wang
c93386cece Merge " Fix bug2537659 When airplane mode is disabled, Mobile connection may be bring up before connecting to a known wifi." into froyo 2010-04-07 10:30:19 -07:00
Daisuke Miyakawa
ea08c40cba Add FLAG_REPRAIN_PHONE_NUMBER_FORMATTING.
Bug: 2329952
Change-Id: I263f581c8146abc372a2cb287e6e61766fefd9b6
2010-04-07 17:32:01 +09:00
Gilles Debunne
ff28490f5c Merge "ExpandableListView tests moved to CTS." 2010-04-06 18:03:19 -07:00
Brett Chabot
6c00fbe32e am 76194fd6: am 7f41a992: am f6d41580: am 0990511f: Merge "Add makefile so package manager test apks can get buitl from root." into froyo 2010-04-06 18:00:11 -07:00
Gilles Debunne
50f79c95f1 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
2010-04-06 17:37:14 -07:00
Brett Chabot
5a2190877c Add makefile so package manager test apks can get buitl from root.
Change-Id: I89e3d50793a48a404c7d8e5699baea8b195b7684
2010-04-06 16:23:44 -07:00
Daisuke Miyakawa
82b8b68652 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
2010-04-06 13:41:27 +09:00
Xia Wang
72b301fac1 Fix bug2537659
When airplane mode is disabled, Mobile connection may be bring up
 before connecting to a known wifi.

Change-Id: I92e395aefd141c8bc4b8b2e497a71e5fd131eec2
2010-04-05 19:59:26 -07:00
Kenny Root
c2af3df89b Merge "Fix 2566319, don't use package-protected members from Layout in test." 2010-04-02 09:24:02 -07:00
Doug Felt
a87c3c0af1 Fix 2566319, don't use package-protected members from Layout in test.
Change-Id: Ic3457e6857f03ba5550c5d82f22af2385a3c4b91
2010-04-02 09:15:13 -07:00
Brett Chabot
a0df17ae58 am fad2eca2: am 16d77b8d: am c162668e: Merge "More framework tests cleanup." into froyo 2010-04-01 23:49:07 -07:00
Brett Chabot
c162668e87 Merge "More framework tests cleanup." into froyo 2010-04-01 21:45:41 -07:00
Brett Chabot
0dc59e78e1 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
2010-04-01 18:31:11 -07:00
Gilles Debunne
13c9a1f490 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
2010-04-01 10:37:53 -07:00
Xia Wang
7eb90c3b2c 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 2010-03-31 23:34:09 -07:00
Suchi Amalapurapu
081e7a2716 am 392be3fa: am 1aa64b53: am ae18171a: Change certificate policy. 2010-03-31 23:33:59 -07:00