2095 Commits

Author SHA1 Message Date
Bjorn Bringert
eed76b2a8d Remove test for SearchManager activity context restriction.
This restriction was removed in https://android-git.corp.google.com/g/4908
see http://b/issue?id=1926254
2009-06-22 16:10:41 +01:00
Android (Google) Code Review
9336f5d9de Merge change 4775 into donut
* changes:
  Make browser bookmarks permissions part of the public API.
2009-06-22 08:01:58 -07:00
Android (Google) Code Review
2c10b5f483 Merge change 4914 into donut
* changes:
  Make all static methods in SearchManager non-static.
2009-06-22 07:19:49 -07:00
Leon Scroggins
9ce4c6c5cf Make browser bookmarks permissions part of the public API. 2009-06-22 09:14:02 -04:00
Android (Google) Code Review
7306d248fe Merge change 4913 into donut
* changes:
  Add non-static version of SearchManager.getSuggestions().
2009-06-22 05:53:04 -07:00
Bjorn Bringert
8d15382378 Make all static methods in SearchManager non-static.
They were only static because of a now removed restriction that
only activity contexts could instantiate SearchManager.
This only changes hidden APIs, but all users of the changed methods
must be updated to use them non-statically before this is submitted.
2009-06-22 13:51:48 +01:00
Bjorn Bringert
97325db856 Add non-static version of SearchManager.getSuggestions(). 2009-06-22 13:51:35 +01:00
Android (Google) Code Review
9c1b1872fa Merge change 4908 into donut
* changes:
  Remove checks for Activity Context when creating SearchManager
2009-06-22 04:45:23 -07:00
Android (Google) Code Review
766d7236c8 Merge change 4737 into donut
* changes:
  Add prepareToDraw() to Bitmap for fixing http://b/issue?id=1907995.
2009-06-22 03:48:29 -07:00
Android (Google) Code Review
8570e5fcf1 Merge change 4907 into donut
* changes:
  Add more debug messages for CameraService.
2009-06-22 03:41:19 -07:00
Wei-Ta Chen
8cdcb12752 Add prepareToDraw() to Bitmap for fixing http://b/issue?id=1907995.
The function is used to rebuild any caches associated with the bitmap.
In the case of purgeable bitmaps, this call ensures that the pixels
are decoded for drawing, and therefore prefetching techniques
implemented by callers can be leveraged.
2009-06-22 18:01:47 +08:00
Mathias Agopian
5f91097b26 fix warnings that will show up with GCC 4.4 (in master) 2009-06-22 02:35:32 -07:00
Chih-Chung Chang
1f25ec8b1e Add more debug messages for CameraService. 2009-06-22 17:06:32 +08:00
Bjorn Bringert
a68ca641e6 Remove checks for Activity Context when creating SearchManager
Since https://android-git.corp.google.com/g/3880
all activities create a SearchManager object, to handle
saving and restoring the search dialog. This broke
ActivityUnitTestCase, since ApplicationContext.getSearchManager()
threw an exception in non-activity contexts.
This change removes the activity context check from
getSearchManager(). Since SearchManager is now just a thin
wrapper for SearchManagerService, there shouldn't be anything
activity-specific in it.

Fixes http://b/issue?id=1926254
2009-06-22 10:05:48 +01:00
Daisuke Miyakawa
3e3324bae4 Merge the change in cupcake_dcm so that Contacts app is able to use it. 2009-06-22 13:37:03 +09:00
Android (Google) Code Review
77c5c40548 Merge change 4894 into donut
* changes:
  Set the search bar's AutoCompleteTextView to ellipsize=end. After Romain's change 4829, we can set this to make hint text ellipsize (and thus not line wrap) in the search dialog.
2009-06-20 23:43:09 -07:00
Mike LeBeau
fb5b0824ed Set the search bar's AutoCompleteTextView to ellipsize=end.
After Romain's change 4829, we can set this to make hint text
ellipsize (and thus not line wrap) in the search dialog.
2009-06-20 23:41:25 -07:00
Android (Google) Code Review
4da7dff5e7 Merge change 4731 into donut
* changes:
  gsm: Remove PppLink since pppd_gprs service does not exist.
2009-06-20 14:48:33 -07:00
Android (Google) Code Review
9e71b07cfe Merge change 4829 into donut
* changes:
  Fixes #1926784. Setting android:ellipsize on an EditText now ellipsizes the hint.
2009-06-19 18:18:42 -07:00
Brett Chabot
8b85a8afea Add smalltest annotation to HardwareServicePermissionTest. 2009-06-19 18:13:50 -07:00
Android (Google) Code Review
79ac87704d Merge change 4834 into donut
* changes:
  Fix a bug where wrong variable was used for comparison.
2009-06-19 17:24:32 -07:00
Android (Google) Code Review
b92f7040e8 Merge change 4847 into donut
* changes:
  Add permission tests for IHardwareService.
2009-06-19 17:12:55 -07:00
Romain Guy
4dc4f73cab Fixes #1926784. Setting android:ellipsize on an EditText now ellipsizes the hint.
It doesn't make much sense to ellipsize the text entered by the user, so we
just ellipsize the hint. This avoids introducing a new XML attribute/Java API
just for the particular case of ellipsizing the hint.
2009-06-19 16:39:35 -07:00
Brett Chabot
3648090733 Add permission tests for IHardwareService. 2009-06-19 16:19:30 -07:00
Suchi Amalapurapu
b97b8f8806 Fix issue with shared user permissions.
just look in the requested permissions of packages within shared user setting rather than the granted permissions
2009-06-19 16:02:27 -07:00
Guang Zhu
595fbd6ea2 Fix a bug where wrong variable was used for comparison. 2009-06-19 15:40:01 -07:00
Android (Google) Code Review
b92c45a4bc Merge change 4831 into donut
* changes:
  Add app version to the backup metadata
2009-06-19 15:38:41 -07:00
Android (Google) Code Review
1585bd24c1 Merge change 4828 into donut
* changes:
  Report densities in badging, debugging for nine patch bug.
2009-06-19 15:37:03 -07:00
Christopher Tate
6aa41f4c57 Add app version to the backup metadata
We now record the version number of the app (drawn from its manifest versionCode
attribute) along with its signatures.  At restore time, we compare the version
associated with the restore set with the version present on the device.  If the
restore set is from a newer version of the app than is present on device, we do
not perform the restore operation.

Also fix the pending-backup iteration in 'dumpsys backup'.
2009-06-19 15:24:51 -07:00
Dianne Hackborn
e17086ba34 Report densities in badging, debugging for nine patch bug.
The aapt tool now reports all available densities like it already did
for locales.  Also this includes more resource data output, which I
was using to examine bug #1867049 (which at this point I am unable to
reproduce).
2009-06-19 15:13:28 -07:00
Grace Kloba
3af8e9389e Change addCertificate to take byte[] instead of String as we don't know the encoding.
In WebView, if we run into the certificate, we will save it to the Keystore instead of sending it to the WebKit.
2009-06-19 15:09:34 -07:00
Android (Google) Code Review
5254657540 Merge change 4818 into donut
* changes:
  Added in Settings.Secure default country and variant for the default TTS language.
2009-06-19 14:43:37 -07:00
Android (Google) Code Review
b4e456bf18 Merge change 4785 into donut
* changes:
  Fix issue #1753079: running instrumentation in shared processes.
2009-06-19 14:24:39 -07:00
Jean-Michel Trivi
a6fcc95411 Added in Settings.Secure default country and variant for the default TTS language. 2009-06-19 14:18:41 -07:00
Android (Google) Code Review
4d1b5bd148 Merge change 4808 into donut
* changes:
  Fixes #1928566. Prevents runtime restart upon configuration change.
2009-06-19 13:31:14 -07:00
Android (Google) Code Review
066e6bfd01 Merge change 4792 into donut
* changes:
  when we reset a paint, it should return to the state it was in when it was first created. for java, this means setting its text-encoding to UTF16...
2009-06-19 13:30:15 -07:00
Android (Google) Code Review
9ebd737e12 Merge change 4793 into donut
* changes:
  dpi changes for webview
2009-06-19 13:24:44 -07:00
Romain Guy
e35c235145 Fixes #1928566. Prevents runtime restart upon configuration change.
Managed dialogs could cause dispatchOnCreate() to be called twice, which
would cause an exception.
2009-06-19 13:18:12 -07:00
Android (Google) Code Review
b00518d815 Merge change 4796 into donut
* changes:
  Move USE_LOCATION_FOR_SERVICES to Secure.
2009-06-19 12:55:34 -07:00
Grace Kloba
2573791620 dpi changes for webview 2009-06-19 12:42:47 -07:00
Android (Google) Code Review
ab48bb9c00 Merge change 4686 into donut
* changes:
  Set AuthType to 0 if username is not specified.
2009-06-19 12:13:50 -07:00
Mike Reed
290f5baf91 when we reset a paint, it should return to the state it was in when it was first created.
for java, this means setting its text-encoding to UTF16...
2009-06-19 15:13:39 -04:00
Android (Google) Code Review
f781b39cb8 Merge change 4786 into donut
* changes:
  gps: Set SUPL server via hostname rather than IP address.
2009-06-19 12:09:36 -07:00
Amith Yamasani
630cd06414 Move USE_LOCATION_FOR_SERVICES to Secure.
Since SetupWizard needs to be able to write the setting, it
couldn't live in Gservices. Moved it to Secure.
2009-06-19 12:08:20 -07:00
Jaikumar Ganesh
238bfa9efd Set AuthType to 0 if username is not specified.
If username is not specified, set authType to No PAP / No CHAP
so that the code is backward compatible.
2009-06-19 12:06:48 -07:00
Mike Lockwood
a9e546169b gps: Set SUPL server via hostname rather than IP address.
The GPS engine needs the hostname for the secure SUPL case
and deferring the DNS lookup to the HAL might be helpful in the future
if the SUPL server is on a carrier's private network.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-06-19 14:54:42 -04:00
Android (Google) Code Review
ba6409f1f6 Merge change 4706 into donut
* changes:
  Add a new checkin server flag for Vending Machine heartbeats.
2009-06-19 11:50:22 -07:00
Dianne Hackborn
3d74bb4ab2 Add "why?" button to low battery dialog.
This takes the user to the power usage activity.
2009-06-19 11:46:58 -07:00
Dianne Hackborn
d97c7adfc2 Fix issue #1753079: running instrumentation in shared processes.
The check for allowing the start of an activity was broken, it was
comparing the process of that activity's application vs. the current
instrumentation target package name.  Okay it was utterly insane.

Now this check is that the target activity will be running in the
same process as the instrumentation, which is really what we want.
2009-06-19 11:37:35 -07:00
Android (Google) Code Review
03255de32d Merge change 4757 into donut
* changes:
  Add getBatteryUsageHint() to BluetoothHeadset for power monitoring.
2009-06-19 11:29:57 -07:00