991 Commits

Author SHA1 Message Date
Christian Mehlmauer
8b85dceadf Replaced /sdcard with Environment.getExternalStorageDirectory()
Change-Id: I9a7413f81090b69c82ca6b1e585f5e379b19e60c
2010-07-19 20:12:31 +02:00
Romain Guy
3fb33c7262 Merge "Added method getPreferredHttpHost" 2010-07-15 10:49:47 -07:00
Andreas Sandblad
2986f858ae Added method getPreferredHttpHost
Added method for returning preferred proxy which takes both
localhost and Wi-Fi into account. This is a convenient method
to clients which only wants to set a correct proxy and don't
want to build in dependency to if Wi-Fi is active or not.
Currently no Wi-Fi proxy is supported by the system, but once
added, this method could return a suitable proxy for Wi-Fi.

Change-Id: I8c9c2879351fd25a20ea82a2cb000f226248c357
2010-07-14 08:49:46 +02:00
Henrik Baard
c692e8c4da Make HTTP Header class handle multiple cache-control fields.
The HTTP specification states the following about the fields:
Multiple message-header fields with the same field-name MAY be present
in a message if and only if the entire field-value for that header field
is defined as a comma-separated list [i.e., #(values)]. It MUST be
possible to combine the multiple header fields into one "field-name:
field-value" pair, without changing the semantics of the message, by
appending each subsequent field-value to the first, each separated by a
comma. The order in which header fields with the same field-name are
received is therefore significant to the interpretation of the combined
field value, and thus a proxy MUST NOT change the order of these field
values when a message is forwarded.

Change-Id: I1a6fe5cc8f541f8e80d559641d270d09eac9d85c
2010-07-14 08:20:40 +02:00
The Android Open Source Project
1bd7597b8c merge from open-source master
Change-Id: I8333e295ba6b6ed8e7658ecf3fbf1ebea3537aeb
2010-06-02 08:54:47 -07:00
Christian Mehlmauer
ef367529f9 Replaced raw string arguments for Context.getSystemService() with final Context variables
Change-Id: If5139a1526101292e5da557bfad3f4db80fb64a8
2010-05-31 23:08:30 +02:00
The Android Open Source Project
8382068ef2 merge from open-source master
Change-Id: I139c349b80b2cecfbdc30bd697cba099740293d9
2010-05-17 10:38:00 -07:00
Jean-Baptiste Queru
1152df7e82 Merge "Updated RGB LED test cases" 2010-05-17 09:12:43 -07:00
Jean-Baptiste Queru
9ef0f0d9d2 Merge "New test in FrameworkTest for the VelocityTracker class" 2010-05-13 11:39:51 -07:00
Marc Capdevielle
ade63a0555 New test in FrameworkTest for the VelocityTracker class 2010-05-12 09:31:55 +02:00
Brett Chabot
e9d0b2962d Fix imf tests.
- fix hard keyboard detection logic
- use FLAG_ACTIVITY_MULTIPLE_TASK to force test activities to start with IME

Bugs 2677320, 2677355

Change-Id: I1b943ee17fddcae5087faefa9fa5603dd3f18ec1
2010-05-11 18:51:16 -07:00
Samuel Holmberg
ce2a97aeb8 Preserve '+' in phone numbers imported from SIM.
Contacts with phonenumbers beginning with '+' lose the '+' in the
phonebook when imported from SIM.

This was only noticable on ADN-records with unknown NPI-values which
isn't very usual.

Change-Id: I181249759ae3d4181dd3cf627c7a588394b80419
2010-05-11 15:21:43 -07:00
Brett Chabot
1d679147d5 IME test fixes.
Tweak OneEditTextActivitySelectedTests:testSoftKeyboardAutoPop so it always
expects IME to be shown for devices with no hard keyboard.

Bug 2267311 2318969

Change-Id: Ica31e8f1153cf3e7dbc838d263ea0ae805161610
2010-04-08 14:55:24 -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
Brett Chabot
bd4288f418 Remove FrameworkTest package.
The only remaining test here was RingtonePickerActivityTes, which has been
suppressed since pre-donut.

Change-Id: I74c08c9c9447b67252430db3b462373af879bd1d
2010-04-01 12:05:26 -07:00
Steve Block
2bb2553a20 Cherry pick from master.
Fixes DumpRenderTree to re-use HTTP authentication credentials

This is required for layout test http/tests/appcache/auth.html

Bug: 2098423
Change-Id: Ic9531e3c23a2fa9ebfab70cde3172550f572a404
2010-04-01 16:39:53 +01:00
Christopher Tate
cc84c69726 API CHANGE: rename BackupHelperAgent => BackupAgentHelper per API Council
Part of bug #2545514

Change-Id: Ic775e3b942c485252149c1b6c15c88517fa4e3e5
2010-03-29 15:48:14 -07:00
Brett Chabot
a3de745551 Move PackageManagerTests and AsecTests.
Remove PackageManagerTests test's from continuous due to flakiness.

merged from abandoned master.

Change-Id: I0a542df9df572c37bd1aa987cdc9fb2f95001a7c
2010-03-26 14:16:59 -07:00
Suchi Amalapurapu
c7537ee7b6 Clean up stale containers if needed at install time.
This is needed when restoring applications installed on sdcard
via Market after a data wipe. The stale containers need to be cleaned up before
reinstalling again.
Add a test case for installing when a stale container exists.

Change-Id: I20c30b3003e85fb31531dd3cf9cb59962fe8fe5f
2010-03-24 10:32:37 -07:00
Xia Wang
e0a29d6f94 Merge " * Move connectivity manager test closer to source. * Add license header to java files * Remove google related information from the test" 2010-03-23 15:37:32 -07:00
Xia Wang
fc2dbd0400 * Move connectivity manager test closer to source.
* Add license header to java files
 * Remove google related information from the test

Change-Id: I2e57960f9ac963cdf3591385e21ed68832f74bd0
2010-03-23 14:19:07 -07:00
Patrick Scott
8cf68a37cb Merge "Fix rebuilding of these two apks." 2010-03-23 12:34:53 -07:00
San Mehat
a89e372db2 Merge "Asec: Add new 'StorageNotFound' response code handling for container paths" 2010-03-23 11:25:31 -07:00
San Mehat
2d66cef77e Asec: Add new 'StorageNotFound' response code handling for container paths
Change-Id: I45d113f77b9f0e519087356b70fc6c4b5c290935
Signed-off-by: San Mehat <san@google.com>
2010-03-23 11:14:36 -07:00
Mike Lockwood
e521a855cd Merge "LocationTracker: Fix default values for debug and signal strength logging." 2010-03-23 10:53:25 -07:00
Mike Lockwood
27a7a6cbfe LocationTracker: Fix default values for debug and signal strength logging.
Set default to false to match the checkbox values in the preference resource.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-23 13:01:57 -04:00
Suchi Amalapurapu
f654a484b2 Don't delete stale containers on sdcard.
Comment out flaky test

Change-Id: Ic7da6421c1a1980c19f7f1c929976432245479fa
2010-03-23 09:59:08 -07:00
Patrick Scott
1110f2b9a5 Fix rebuilding of these two apks.
Add a dummy string so that a R.stamp file will be written.

Change-Id: I939f97d2d4214e2c2186c3802b606c8bfd0e3468
2010-03-23 11:44:50 -04:00
Xia Wang
6460d6e7b9 Merge "Add connectivity manager automation test framework: - Create a dummy activity - ConnectivityManagerTestActivity - to listen to broadcast from connectivity manager, to control wifi, and to verify that connectivity information for different network types. This framework will be used for funcitonal tests and stress tests." 2010-03-22 11:16:16 -07:00
Suchi Amalapurapu
e99bb5f10b Add new method call back in MountService.
PackageManager invokes this call back when its done handling
the media status update.
Add new uid check for updateExternalMediaStatus
Change killPids method in ActivityManager.
Remove mountsd command in Pm.java We cannot arbitrarily enable/disable
packages in PackageManager now.

Change-Id: I28dcba4afd2b4486f68abdaa1628a31b66544c91
2010-03-22 10:49:49 -07:00
Steve Block
fb0de34a47 Implements layoutTestController.overridePreference()
This change provides the infrastructure for
layoutTestController.overridePreference(). Currently, we only provide an
implementation for the preference 'WebKitOfflineWebApplicationCacheEnabled',
which is required by the layout test http/tests/appcache/disabled.html.

Change-Id: I8552f2f4e23b982db2d067ffa20c052e56d8fb7f
2010-03-22 10:52:56 +00:00
Steve Block
cd90b15cb8 Removes most remaining appcache layout tests from the DumpRenderTree ignoreResults list
The server serving the layout tests has now been updated to to reflect the
current version of WebKit (r54731) so serveral more tests now pass.

Change-Id: I95afa0012bf3fed15c733b0317ecd4c03f7a158f
2010-03-22 10:52:56 +00:00
Steve Block
547b83328e Merge "Implements layoutTestController.setAppCacheMaximumSize" 2010-03-22 03:44:09 -07:00
Xia Wang
7fb1f674c9 Add connectivity manager automation test framework:
- Create a dummy activity - ConnectivityManagerTestActivity - to listen to broadcast from connectivity manager, to control wifi, and to verify that connectivity information for different network types. This framework will be used for funcitonal tests and stress tests.

 - Add two functional test cases:
   . test3GToWifiNotification: test enabling Wifi without associating with any access point, Wifi stays disconnected, device should still connect to cellular.
   . testConnectToWifi: when switching from cellular to Wfi and associated with a given AP, connectivity manager broadcast the right informtion for mobile and Wifi.

Change-Id: Ib6fcf0ff6dd9725076836032e567c0a6a52f622f
2010-03-20 15:29:52 -07:00
Steve Block
427efcca19 Implements layoutTestController.setAppCacheMaximumSize
Change-Id: Ib64123738bc384213ef80e2e60e4a0d9407c09d8
2010-03-20 11:03:53 +00:00
Suchi Amalapurapu
ebb83ade1e Grant permissions to apps on sd when enabling/disabling packages.
Change-Id: I0f011bd4a3348ccd46fd7ae9765edf8933b94142
2010-03-19 13:23:14 -07:00
Steve Block
f19f9f55f9 Removes an appcache test from the DumpRenderTree ignoreResults list
Android-specific results for this test were added in
https://android-git.corp.google.com/g/45462

Change-Id: I7716c2c061ab955d0bf96523b6aab747898cc4e7
2010-03-19 13:59:10 +00:00
Suchi Amalapurapu
90d8ee650b Switch default install location to unspecified.
Add a new install location unspecified for backward compatibility.
There is not much difference between policies auto and unspecified.
But we dont have to make any code changes in PackageParser based
on our preference for install location.
Add tests

Change-Id: I563238133261d911d08fbc66344687b7dfc870b1
2010-03-18 17:44:21 -07:00
Steve Block
26aa68c6a2 Merge "Adds worker tests to the DumpRenderTree ignoreResults list, as workers are now disabled" 2010-03-18 05:02:15 -07:00
Dianne Hackborn
d4310ac944 Rework permissions to be retained when an app is temporarily uninstalled.
This allows us to keep the assigned permissions when apps are temporarily
removed due to the SD card being unmounted, and also if you use the
facility to uninstall an app but keep its data.

Also fixes issue #2515189: Potential permission spoofing attack in
Android (external bug 7166)

Change-Id: I2a120ec938552028c989f9e0e890c32773957738
2010-03-18 02:02:17 -07:00
Suchi Amalapurapu
d3dd518baf Merge "Add new install flag to install on internal flash only Change default install location policy for new flag. New error code for media unavailable." 2010-03-17 18:50:29 -07:00
Suchi Amalapurapu
14b6abda13 Add new install flag to install on internal flash only
Change default install location policy for new flag.
New error code for media unavailable.

Change-Id: I5a5d0828b067692b2b94a15a2bcc7534f796c1a2
2010-03-17 18:43:31 -07:00
Steve Block
9b63c8ee37 Adds worker tests to the DumpRenderTree ignoreResults list, as workers are now disabled
Change-Id: I19fbba824cbae372849a8f8ee66dbc8849101eb1
2010-03-17 19:14:18 +00:00
Steve Block
75d20e9304 Merge "Updates the status of some HTML5 storage layout tests in the DumpRenderTree skipped list" 2010-03-17 11:02:13 -07:00
Dmitri Plotnikov
d8c208bab4 Merge "Disable the HanziToPinyinTest when there is no Chinese collator." 2010-03-17 10:56:02 -07:00
Bai Tao
9ad006dd45 Disable the HanziToPinyinTest when there is no Chinese collator.
Change-Id: I180b927dbb24ceb254fd535633230032a3363562
2010-03-18 01:54:06 +08:00
Steve Block
7c58da7589 Updates the status of some HTML5 storage layout tests in the DumpRenderTree skipped list
Bug: 2079807
Change-Id: I2bff326e68d8ac761fd2c4628fab8b10d255c7dc
2010-03-17 17:41:49 +00:00
Suchi Amalapurapu
8a9ab24a5c Do storage checks before initiating a move.
Add new remote method to check for insufficient error conditions.
Some fixes in MountService when updating media status on PackageManagerService
Fix size calculation condition in installd.

Add new error code if media is unavailable.
New tests for testing error codes.
Some additional debugging statements in MountService.

Change-Id: Ibfe90d5ed6c71d57f9c1c67806f38b5ae9ecdfbf
2010-03-16 16:36:26 -07:00
Jim Miller
b258659ad6 Merge "Fix 2428368: Fix most of the lockscreen orientation refresh bugs" 2010-03-15 15:33:37 -07:00