130 Commits

Author SHA1 Message Date
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
Brett Chabot
44ce817e0b Temporarily suppress ServiceTest.
ServiceTest appears to be causing the whole android unit_tests suite to fail in the
continuous system. Suppressing to stop the lab failure spam while continuing to investigate.
2009-07-16 12:20:53 -07:00
Android (Google) Code Review
c93af6dc5b Merge change 7441 into donut
* changes:
  Allow system colors in <font> tags
2009-07-16 00:06:23 -07:00
Android (Google) Code Review
7ee5a4b15a am 5a76ae46: Merge change 7406 into donut
Merge commit '5a76ae46854ac449f94e1f75ef13ce035e4c65cd'

* commit '5a76ae46854ac449f94e1f75ef13ce035e4c65cd':
  Update Searchables test with new GlobalSearch name
2009-07-15 18:14:12 -07:00
Bjorn Bringert
9cab7f7684 Allow system colors in <font> tags
Fixes http://b/issue?id=1970693
2009-07-15 22:47:03 +01:00
Bjorn Bringert
4e4371186d Update Searchables test with new GlobalSearch name
Fixes http://b/issue?id=1981558
2009-07-15 19:04:07 +01:00
Android (Google) Code Review
38a34b2c75 am 2d791055: Merge change 6820 into donut
Merge commit '2d7910555ab6b376e8cd1646db6c329c1cd1adb7'

* commit '2d7910555ab6b376e8cd1646db6c329c1cd1adb7':
  Fixed NPE bugs in Uri. Fixes internal issue #1724719.
2009-07-12 06:06:31 -07:00
Bob Lee
5621f0d928 Fixed NPE bugs in Uri. Fixes internal issue #1724719.
Modified getQueryParameter() to use the encoded query string. Fixes internal issue #1749094.
2009-07-10 14:54:08 -07:00
Bob Lee
c8e852da32 resolved conflicts for merge of ad94a983 to master 2009-07-10 14:13:37 -07:00
Bob Lee
b8b8f044f4 Uri.EMPTY.toString() was returning null due to an initialization order bug. Fixes internal issue #1957015. 2009-07-10 13:34:37 -07:00
Android (Google) Code Review
cd964761dc am 91b0a701: Merge change 6284 into donut
Merge commit '91b0a7013e4b6d170087cb4c9a3c35b787f92a6b'

* commit '91b0a7013e4b6d170087cb4c9a3c35b787f92a6b':
  Run search UI on its own thread.
2009-07-08 13:52:26 -07:00
Bjorn Bringert
444c727e0e Run search UI on its own thread.
Details:

- Add a new SearchDialogWrapper class that makes sure
  all access to the SearchDialog is run one a single thread
  other than the main ServerThread.
- Don't save/restore seach dialog state in Activity.
  This resulted in lots of calls to the SearchManager
  throughout the life cycle of all activities, for
  the questionable benefit of restoring the search dialog
  in a few cases.
- Remove search UI state save/restore, and the isVisible()
  method from SearchManagerService. They are no longer used,
  and were tricky to implement since they return values from
  the search UI thread to the service.
- Handle configuration changes in searchDialogWrapper instead
  of calling through from Activity.

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

TODO:
- Activity.performPause() calls stopSearch(). This call may not happen
  until the new activity has been started. If the new activity starts a
  search immediately, this search could be cancelled by the old activity's
  call top stopSearch().
2009-07-08 17:43:49 +01:00
Android (Google) Code Review
a0ad661fc9 am a83bef59: Merge change 6396 into donut
Merge commit 'a83bef597430e9336566ca38330cc0f4e793abe1'

* commit 'a83bef597430e9336566ca38330cc0f4e793abe1':
  Add unit test for NeighboringCellInfo.
2009-07-07 18:10:38 -07:00
Android (Google) Code Review
a83bef5974 Merge change 6396 into donut
* changes:
  Add unit test for NeighboringCellInfo.
2009-07-07 18:09:21 -07:00
John Wang
75efd5d525 Add unit test for NeighboringCellInfo.
Add small unit test for NeighboringCellInfo in AndroidTests. The old telephony unit test directory, CoreTest/android, is marked as deprecated in AndroidTestHowto.

	new file:   tests/AndroidTests/src/com/android/unit_tests/NeighboringCellInfoTest.java
2009-07-07 14:02:11 -07:00
Android (Google) Code Review
6e2863ec16 am 37ea7112: Merge change 6338 into donut
Merge commit '37ea71122579e9e2ad1f91b3eca5e4d436b54ea9'

* commit '37ea71122579e9e2ad1f91b3eca5e4d436b54ea9':
  septet-align UD after any UDH for GSM-7bit coding
2009-07-06 23:49:45 -07:00
Tammo Spalink
0fd833a50f septet-align UD after any UDH for GSM-7bit coding 2009-07-07 14:17:28 +08:00
Android (Google) Code Review
1eebdc04f0 am d3de90f3: Merge change 5995 into donut
Merge commit 'd3de90f38d779d28a724e89297c83e6ba1a66fa7'

* commit 'd3de90f38d779d28a724e89297c83e6ba1a66fa7':
  Turn off kerning when testing TextUtils.ellipsize().
2009-07-06 11:02:25 -07:00
Daisuke Miyakawa
92aaac8cb0 am 40336782: Add tests. internal bug id 1868702.
Merge commit '40336782eaa797bca3d1487784af113ba3b143ff'

* commit '40336782eaa797bca3d1487784af113ba3b143ff':
  Add tests. internal bug id 1868702.
2009-07-03 08:58:24 -07:00
Android (Google) Code Review
d3de90f38d Merge change 5995 into donut
* changes:
  Turn off kerning when testing TextUtils.ellipsize().
2009-07-02 10:46:37 -07:00
Daisuke Miyakawa
40336782ea Add tests. internal bug id 1868702. 2009-07-02 14:33:39 +09:00
Eric Fischer
1f0dac38df Turn off kerning when testing TextUtils.ellipsize().
Otherwise, the different text measurement methods produce slightly
different results and cause the text to show different results for
Spanned vs. non-Spanned source strings.

Bug 1837826
2009-07-01 18:04:23 -07:00
Android (Google) Code Review
50f380074a am 0178afe4: Merge change 5485 into donut
Merge commit '0178afe415a598b5b3b4ab5bbeec96a079a124e1'

* commit '0178afe415a598b5b3b4ab5bbeec96a079a124e1':
  cdma sms is91 support
2009-07-01 11:19:24 -07:00
Android (Google) Code Review
1f9508ce4d am ae352273: Merge change 5192 into donut
Merge commit 'ae3522734ef83254626cacee18a9490f6af62415'

* commit 'ae3522734ef83254626cacee18a9490f6af62415':
  make BitwiseInputStream.read return int
2009-06-29 16:37:46 -07:00
Tammo Spalink
8203dc1bc8 cdma sms is91 support 2009-06-28 16:23:53 +08:00