154 Commits

Author SHA1 Message Date
Brett Chabot
1932e8f811 Disable com.android.unit_tests.HeapTest:testExternalOomeLarge.
BUG 2170975
2009-10-19 17:34:33 -07:00
Brett Chabot
b8a4e5f79a Suppress flaky test HeapTest#testOomeLarge.
BUG 2170975
2009-10-06 19:33:24 -07:00
Tammo Spalink
61aac7b377 Add PERIOD char to CDMA address sugar list.
Addresses issue:
http://buganizer/issue?id=2164455
2009-10-05 14:20:06 +08:00
Hung-ying Tyan
865a1bbf36 Remove deprecated VpnType.getDescription(). 2009-09-30 18:39:48 +08:00
johnwang
9c118c80fd Update CID in NeighboringCellInfo
NeighboringCellInfo works in GSM and UMTS network.

In GSM network, the locaiton value is the combination of LAC and CID.

In UMTS network, the locaiton value is PSC code.

NeighboringCellInfo should access and store those two values seperately.

It involves the change of Public API.

1. Add new API getRadioType(), getLac(), and getPsc() to get location info in GSM and UMTS.

2. Deprecate setCid() and NeighboringCellInfo(int cid) because cid is set by interpreting network type.
2009-09-25 12:17:46 -07:00
Tammo Spalink
af8e23fe9e Conditionalized CDMA-specific test.
Addresses issue:
http://b/issue?id=2122045

Change-Id: Ia43e254f0808e1d96cbd240101eee621979e9100
2009-09-24 12:29:16 +08:00
Wei Huang
409308617f fix bug 2134367: failing phone number compare test.
Change-Id: Iccc3b69cd1e4bdb82da48d87d610e4a45ae31601
2009-09-22 21:52:41 -07:00
Daisuke Miyakawa
6a857d957e Fix test for phone number comparation. Now that there are two algorithms, we should consider them in Java layer.
Uguu.

Internal issue number: 2134367
2009-09-21 10:49:44 -07:00
Daniel Sandler
da06e32e4c Fix http://b/2126318 (density test fails due to wrong-size asset stripping)
The density test expects all resources of all densities to be included, but specifying a density for a particular device build kills that. We therefore add all the required densities explicitly to the Makefile to compensate.
2009-09-18 15:12:07 -04:00
Dianne Hackborn
207700d857 Fix issue #2121993: com.android.unit_tests.os.HandlerThreadTest:testHandlerThread is failing
Change-Id: I5f2cc8b39d3f15782e5fbf47015be9f4fa94a65b
2009-09-16 15:10:30 -07:00
Android (Google) Code Review
6d9eebe732 Merge change 25090 into eclair
* changes:
  Move backlight brightness from HardwareService to PowerManager
2009-09-15 15:50:51 -04:00
Mike Lockwood
237a29923a Move backlight brightness from HardwareService to PowerManager
to prevent apps from changing the hardware behind its back.
Fixes b/2041941 Lock screen flashes the screen very bright before dimming

Change-Id: Ice757f7ae87902bdfb3634471cf44f020ebfaae4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-15 15:47:09 -04:00
Brett Chabot
0393d349be Fix FileObserverTest#testRun.
The assertion in the test was expecting 4 events, but it was only waiting for
three.

BUG 2119135
2009-09-15 11:07:33 -07:00
Jack Wang
ff1df69dd4 Performance measurement framework:
+ For bug 1810508
  - Added PerformanceCollector class to collect runtime and memory usage data
    * Moved performance snapshotting from Intrumentation to PerformanceCollector
  - Added PerformanceResultsWriter interface which defines functions for
    reporting performance data

+ Framework integration
  - Added TimedTest annotation to automatically time tests and write results
    to instrumentation output
  - Modified PerformanceTestBase to add collection hooks and wrapper methods
  - Modified WatcherResultPrinter in InstrumentationTestRunner to implement
    PerformanceResultsWriter for instrumentation output of performance data
  - Modified InstrumentationTestRunner and AndroidTestRunner to pass writer
    instance to test
2009-09-11 17:15:15 -07:00
Tammo Spalink
2af198bba1 Fix broken GSM SMS unit test, and general cleanup.
Addresses issues:
http://buganizer/issue?id=2059500
http://buganizer/issue?id=2056263

Change-Id: If1cb1e2b326419de695cbaa8a995e6bafb56447f
2009-09-07 16:16:10 +08:00
Tammo Spalink
259749c674 Rename SMSTest to GsmSmsTest.
Change-Id: I7ef602bd52167fd9f0712b1ce560e72a78f67193
2009-09-07 16:12:57 +08:00
Robert Greenwalt
1c1ffa0cab Promote MccTable to telephony and use it for both gsm/cdma
This adds timezone/locale/wifi-regulator-channels initialization to cdma (gsm already had it).

bug: 2071211
2009-09-03 12:34:15 -07:00
Tammo Spalink
95434bfaee Allow fragmentText to be called for singleton CDMA messages.
Corrects for previous partner changes, addressing issue:

http://buganizer/issue?id=2063332

Change-Id: I49e564d81c5db3e92a6bad973f21a02a7302875d
2009-09-01 11:44:08 +08:00
Android (Google) Code Review
650cbfd381 Merge change 22551 into eclair
* changes:
  Fix broken unit test.
2009-08-31 19:39:40 -07:00
Tammo Spalink
f73dc54541 Fix broken unit test.
Addresses issues:
http://buganizer/issue?id=2056263
http://buganizer/issue?id=2058622

Change-Id: I951fabddbb141f86d5126b908fdff80fbf3b4d7e
2009-08-31 18:54:18 +08:00
Brett Chabot
1615ccc8a4 am e1df8224: Merge change 23173 into donut
Merge commit 'e1df82248a68282a4d556ce61db09949fc186827' into eclair

* commit 'e1df82248a68282a4d556ce61db09949fc186827':
  Remove flaky test LifecycleTest.testDialog from large continuous suite.
2009-08-28 13:50:16 -07:00
Brett Chabot
3bb99b3adf Remove flaky test LifecycleTest.testDialog from large continuous suite.
BUG 1866891

Change-Id: Ifef98426cf3879fc9f17aa5a0891578fefa54ce3
2009-08-28 13:42:10 -07:00
Tammo Spalink
c18776d5bc optimize MCC table
Replace a table of objects that was created at boot
in a costly manner, with a pre-generated table of
more densely formatted numerical data.

Based on data from runhat on the phone process,
this looks to shrink the memory footprint from about
16kB to less then 2kB.

Addresses http://buganizer/issue?id=874072

Change-Id: I5a7b9d7de4c9b9a0360e8370252582969fbd8d4f
2009-08-28 14:05:04 +08:00
Daisuke Miyakawa
f4ddea7690 Refactor VCard handling code, phase 2, 3, 4, 5
Phase 2
Make VCard Importer use Data structures in ContactsContract instead of
using old Conatacts structure.

Phase 3
Developed VCardComposer, which was originally in Contacts package, but
now in base/core/java. Also made it use queryEntries() as per jsharkey's
suggestion.

Phase 4
Added VCardUtils and moved some common methods to it, some of which should be
in public API, but hidden for now.

Phase 5
Made VCardComposer emits (almost) valid vCard 3.0 data.
Confirmed with vCard data emitted by Mac.

Related issue:
1784580, 1728351, 1967349

Note:
Probable next step:
- Add "fast parse" mode in VCradBuilder, in which, VCardBuilder skip parsing the value of
each property. It will make the parsing faster.
-- Note that parsing the parameters of each entry cannot be skipped, since it may contains
the information about Encoding of the property. In other words, if the line is
in Quoted-Printable format, the next line may be the part of the property, not a
separated property, which should be parsed accordingly.

- Needs test
2009-08-25 15:39:06 +09:00
Fred Quintana
ffd0cb04f9 do not merge: cherrypicked 3710f390968e683a0ad3adf0b517dfcade3564ce from master branch 2009-08-15 22:40:25 -07:00
Tammo Spalink
e00dd1e5a3 Make GSM 7-bit encoding properly deal with initial padding.
For CDMA, clean up the GSM encapsulation to properly align
user data payload after the user data header.

Addresses http://buganizer/issue?id=2007011
2009-08-10 14:12:35 +08:00
Android (Google) Code Review
3905eb3d2f am ff6585cb: Merge change 20144 into donut
Merge commit 'ff6585cbb0e5e42adf056b4a074b9f3683b853c1'

* commit 'ff6585cbb0e5e42adf056b4a074b9f3683b853c1':
  Remove flaky MonitorTest#testInterrupt from continuous, and attempt to make
2009-08-05 17:52:10 -07:00
Brett Chabot
04588d5225 Remove flaky MonitorTest#testInterrupt from continuous, and attempt to make
AutoCompletePopup tests more reliable.

Bugs 2036517 and 1636810.
2009-08-05 13:35:58 -07:00
Tammo Spalink
2d65082b15 fix CDMA SMS ASCII decode and mapping 2009-08-05 11:12:53 +08:00
Android (Google) Code Review
2a8c531bac am 65e5438d: Merge change 8966 into donut
Merge commit '65e5438df929ceb8c44fd930b2a363e021914bd0'

* commit '65e5438df929ceb8c44fd930b2a363e021914bd0':
  Add tests for android.net.vpn.
2009-07-30 09:57:02 -07:00
Hung-ying Tyan
53582b33e5 Add tests for android.net.vpn. 2009-07-29 19:49:52 +08:00
Tammo Spalink
f62a2bf29a allow illegal subparam sizes for CDMA SMS
addresses http://buganizer/issue?id=2008358
2009-07-29 14:31:43 +08:00
Android (Google) Code Review
e624ee4e57 am 0fdedd00: Merge change 8612 into donut
Merge commit '0fdedd00c510e62223e47d0c5e605b2350d2d304'

* commit '0fdedd00c510e62223e47d0c5e605b2350d2d304':
  Remove visibility checks from SearchManager tests
2009-07-27 09:42:09 -07:00
Tammo Spalink
1424fe0059 added non-numeric cdma sms address support
addresses bug http://buganizer/issue?id=1992198
2009-07-27 14:59:10 +08:00
Bjorn Bringert
3fc78e1294 Remove visibility checks from SearchManager tests
Since the search UI is handled by the system process, and
the service calls to show and hide it are asynchronous,
the tests that checked the visibility of the search UI were
very flaky. This change sclaes the tests back to just check
that nothing crashes when showing and hiding the search UI.

Fixes http://b/issue?id=1993675
2009-07-26 22:27:47 +01:00
Fred Quintana
d4a1d2e142 add account manager permission checking 2009-07-23 16:03:54 -07:00
Android (Google) Code Review
ca9b596505 am 1aa1a154: Merge change 7959 into donut
Merge commit '1aa1a154fd0103d7f0b7e3a2207aae0153549370'

* commit '1aa1a154fd0103d7f0b7e3a2207aae0153549370':
  Adding WRITE_EXTRENAL_STORAGE permission in AndroidManifest.xml file.
2009-07-20 16:13:21 -07:00
Android (Google) Code Review
1aa1a154fd Merge change 7959 into donut
* changes:
  Adding WRITE_EXTRENAL_STORAGE permission in AndroidManifest.xml file.
2009-07-20 16:11:33 -07:00
Yu Shan Emily Lau
24e65beee6 am b42c3a58: Fix the build
Merge commit 'b42c3a5809b16527b38c82be3165128ce10e77e6'

* commit 'b42c3a5809b16527b38c82be3165128ce10e77e6':
  Fix the build
2009-07-20 16:09:57 -07:00
Swarna Kumar
c1889da850 Adding WRITE_EXTRENAL_STORAGE permission in AndroidManifest.xml file. 2009-07-20 16:06:20 -07:00
Yu Shan Emily Lau
b42c3a5809 Fix the build 2009-07-20 16:01:54 -07:00
Android (Google) Code Review
e83419bae2 am ff851a1d: Merge change 7917 into donut
Merge commit 'ff851a1d669febe3981e248ade14906f1652f018'

* commit 'ff851a1d669febe3981e248ade14906f1652f018':
  Added the vpn unit test template.
2009-07-20 15:36:37 -07:00
Yu Shan Emily Lau
873eb57394 Added the vpn unit test template. 2009-07-20 14:51:25 -07:00
Android (Google) Code Review
469b4c67ad am aad0fcc9: Merge change 7783 into donut
Merge commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54'

* commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54':
  Add "nodpi" density, and expose a bunch of density-related APIs.
2009-07-19 20:28:49 -07:00
Daisuke Miyakawa
701deb5e7c Fixing probable build breakage.
I forgot to import correct a resource file when refactoring my code. Sorry.
2009-07-17 17:12:34 -07:00
Dianne Hackborn
a53b828635 Add "nodpi" density, and expose a bunch of density-related APIs.
Also update the DpiTest app to use nodpi images, and try to have a mode
where it turns off compatibility though it's not quite working.
2009-07-17 16:59:08 -07:00
Daisuke Miyakawa
7674b81a05 Refactor VCard-related code.
Move VCard code from android/syncml/pim to android/pim since the code is not
related to SyncML at all; Previous code was misplaced, I suppose.

Reorganize "Builder" structure:
Create VCardBuilderBase.java as a base class for "Builder" classes.

Separate VCardDataBuilder to several components.
Now, VCardBuilder is able to accept EntryHandlers (interface) which handle each VCard entry.
Add EntriCommitter and ProgressShower as ones of EntryHandler implementations.

Stop using VNode/PropertyNode in the actual importing path. Instead, VCard importer directly
creates ContactStruct object.

PropertyNode is still used in test codes, since it does not drop any kind of information
while ContactStruct does.

All codes are made hidden (with package.html) like the files in syncml directory;
These files are only for Contacts app.

Issue
- due to internal issue 1975498, any performance test cannot be conducted.

Next todos
- Add tests for ContactStruct.
- remove android/syncml directory.
- Rename several methods; old names are based on V??? structure, which does not make sense in the current code.
- Use ContentProviderOperation instead of relying on beginTransaction()/endTransaction().
- Use ContactsContact in Eclair

Related internal issues
- 1784580, 1728351
2009-07-17 07:50:00 -07:00
Android (Google) Code Review
8e9bad1a3c am 0bb0597a: Merge change 7556 into donut
Merge commit '0bb0597a4b5b0825f710f1bd63efb7069cecd918'

* commit '0bb0597a4b5b0825f710f1bd63efb7069cecd918':
  Temporarily suppress ServiceTest.
2009-07-16 17:54:21 -07:00
Android (Google) Code Review
cad18157e7 am c93af6dc: Merge change 7441 into donut
Merge commit 'c93af6dc5bc78f02d4ee549890da12dc669fc2fe'

* commit 'c93af6dc5bc78f02d4ee549890da12dc669fc2fe':
  Allow system colors in <font> tags
2009-07-16 17:53:44 -07:00
Android (Google) Code Review
0bb0597a4b Merge change 7556 into donut
* changes:
  Temporarily suppress ServiceTest.
2009-07-16 13:46:57 -07:00