2937 Commits

Author SHA1 Message Date
Tammo Spalink
5e5b8c45db Fix swapped gsm/cdma function dispatch, and 7bit text fragmentation. 2009-07-27 16:20:31 +08:00
Android (Google) Code Review
0fdedd00c5 Merge change 8612 into donut
* changes:
  Remove visibility checks from SearchManager tests
2009-07-26 22:01:43 -07:00
Dianne Hackborn
96e240f25a Fiddle with default densities to try to sanitize the API.
An issue with the density API is that bitmaps assumed the old default density,
so new programs would have to explicitly set the correct density for every bitmap
they create.

This is an attempt to fix that situation, by define the default density of bitmaps
to be the main screen's density, except for old apps where it is the original default
density.

Actually implementing this is not so great, though, because the Bitmap constructors
can't really know anything about who is calling them to know which density to use.
So at this level the compatibility mode is defined per-process -- meaning the initial
package loaded into a process defines the default bitmap density, and everyone else
loaded in later on has to live with that.

In practice this shouldn't be much of a problem, there shouldn't be much mixing of
old vs. new apps in a process.  It does mean that, going forward, if a developer is
going to use shared user IDs for this, they will need to make sure either that all of
their apps are in the same compatibility mode, or that their code explicitly sets the
density of bitmaps it receives.  This isn't all that great, but I think it is worth
the benefit of allowing people who write modern apps to not have to deal with bitmap
densities.

This change also does some cleanup of the density management (making sure to always
copy over bitmap densities, etc) and adds java docs to explain the various ways
density is set and used by the system.
2009-07-26 17:42:30 -07:00
Hung-ying Tyan
21bd4af88a Simplify the VPN service implementation.
+ Remove NormalProcessProxy and ProcessProxy as they are not used
  anymore.
+ Rename AndroidServiceProxy to DaemonProxy and simplify its
  implementation as it does not extend to ProcessProxy anymore.
+ Execute connect() in VpnService in one thread, which simplifies socket
  and error handling.
+ Modify service subclasses accordingly.
+ Execute connect() and disconnect() in VpnServiceBinder so that the
  operations do not block the UI thread. Mark service as foreground only upon
  connecting.
2009-07-27 06:13:11 +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
Android (Google) Code Review
11b6a29dfe Merge change 8564 into donut
* changes:
  Merge doc change from cupcake: commit 'a8d035ccf319e1aed685a1e1509681350f737fd1' into manualmerge
2009-07-24 20:52:01 -07:00
Android (Google) Code Review
1dc8c62c50 Merge change 8563 into donut
* changes:
  Empty merge from cupcake: commit '77bab58fd1c21b0e3035dee411b4a938e6a824ce' into manualmerge
2009-07-24 20:51:25 -07:00
Android (Google) Code Review
85e2cd89a0 Merge change 8562 into donut
* changes:
  Empty merge from cupcake: commit '7cecaed3192a6503df0ddf4d81b3b620b7cd9635' into manualmerge
2009-07-24 20:50:47 -07:00
Android (Google) Code Review
09a6ad8f78 Merge change 8561 into donut
* changes:
  Empty merge from cupcake: commit '414f62c0cb7eceeb1cd24bf9e570688a00683f9c' into manualmerge
2009-07-24 20:50:17 -07:00
Android (Google) Code Review
eec841f050 Merge change 8560 into donut
* changes:
  Merge doc changes from cupcake: commit '5ae517d9659e96e9525406ffbce18dcacc3294bc' into manualmerge
2009-07-24 20:49:41 -07:00
Android (Google) Code Review
b4fc70fcc9 Merge change 8559 into donut
* changes:
  Empty merge from cupcake: commit 'ff339f0b966c5ca62867689a13ea713e6cb62a15'
2009-07-24 20:49:01 -07:00
Android (Google) Code Review
d5aa644f59 Merge change 8558 into donut
* changes:
  Empty merge from cupcake: commit '79188bb2c9bac9fef1bc86b7f9f54324471ee53e'
2009-07-24 20:48:17 -07:00
Android (Google) Code Review
199bc37602 Merge change 8557 into donut
* changes:
  Merge doc change from cupcake: commit '2c44586d118208bdddfc727165ebf235fe7c0051'
2009-07-24 20:46:39 -07:00
Android (Google) Code Review
22a102022c Merge change 8556 into donut
* changes:
  Empty merge from cupcake: commit '2e7e15f2da527f762f6eb56b974e758d83f12660'
2009-07-24 20:45:56 -07:00
Android (Google) Code Review
7d41c8dee1 Merge change 8555 into donut
* changes:
  Empty merge from cupcake:  commit '5a3a63f8b450a1902dd26809f18e35ef30befff3'
2009-07-24 20:44:57 -07:00
Android (Google) Code Review
4d3a15be83 Merge change 8554 into donut
* changes:
  Empty merge from cupcake: commit 'b69bed1947d4c8835b861f7b68be756b6a8e80d3'
2009-07-24 20:44:21 -07:00
Android (Google) Code Review
1f4dd5d6ca Merge change 8553 into donut
* changes:
  Merge doc changes from cupcake at commit '373271b94cbe01c337b4952d0d5764e200c69f48'
2009-07-24 20:43:20 -07:00
Amith Yamasani
07ee3fdaea DO NOT MERGE. Already in master. Fix #1977876 : Key preview in WVGA broken.
Use PX unit when setting the text size since we're getting the size from getTextSize()
Reduce delay for popup.
2009-07-24 17:51:10 -07:00
Android (Google) Code Review
4ca6659fe4 Merge change 8565 into donut
* changes:
  Fixing bug 2003639 - this is a fix to prevent the AccessibilityManagerService from crashing if it gets an invalid accessibility event.
2009-07-24 17:09:33 -07:00
Charles Chen
bbc1934e0e Fixing bug 2003639 - this is a fix to prevent the AccessibilityManagerService
from crashing if it gets an invalid accessibility event.
2009-07-24 16:06:09 -07:00
Dirk Dougherty
76e95bbea6 Merge doc change from cupcake: commit 'a8d035ccf319e1aed685a1e1509681350f737fd1' into manualmerge 2009-07-24 15:35:09 -07:00
Dirk Dougherty
1ac40c700c Empty merge from cupcake: commit '77bab58fd1c21b0e3035dee411b4a938e6a824ce' into manualmerge 2009-07-24 14:42:23 -07:00
Dirk Dougherty
ad8fe45da0 Empty merge from cupcake: commit '7cecaed3192a6503df0ddf4d81b3b620b7cd9635' into manualmerge 2009-07-24 14:41:39 -07:00
Dirk Dougherty
106c09cc2c Empty merge from cupcake: commit '414f62c0cb7eceeb1cd24bf9e570688a00683f9c' into manualmerge 2009-07-24 14:40:03 -07:00
Dirk Dougherty
2bfd344b67 Merge doc changes from cupcake: commit '5ae517d9659e96e9525406ffbce18dcacc3294bc' into manualmerge 2009-07-24 14:39:03 -07:00
Dirk Dougherty
0c64c1c96a Empty merge from cupcake: commit 'ff339f0b966c5ca62867689a13ea713e6cb62a15' 2009-07-24 12:57:01 -07:00
Dirk Dougherty
9ba594e12d Empty merge from cupcake: commit '79188bb2c9bac9fef1bc86b7f9f54324471ee53e' 2009-07-24 12:55:55 -07:00
Dirk Dougherty
6d9ffc5f25 Merge doc change from cupcake: commit '2c44586d118208bdddfc727165ebf235fe7c0051' 2009-07-24 12:54:42 -07:00
Dirk Dougherty
616fe5134b Empty merge from cupcake: commit '2e7e15f2da527f762f6eb56b974e758d83f12660' 2009-07-24 12:53:09 -07:00
Dirk Dougherty
23ad7898f6 Empty merge from cupcake: commit '5a3a63f8b450a1902dd26809f18e35ef30befff3' 2009-07-24 12:52:02 -07:00
Dirk Dougherty
9a37e59259 Empty merge from cupcake: commit 'b69bed1947d4c8835b861f7b68be756b6a8e80d3' 2009-07-24 12:50:16 -07:00
Dirk Dougherty
ea761540c3 Merge doc changes from cupcake at commit '373271b94cbe01c337b4952d0d5764e200c69f48' 2009-07-24 12:26:22 -07:00
Dianne Hackborn
11ea33471e Allow for screen density drawables in compatibility mode.
This change allows us to use drawables that match the current screen
density even when being loaded in compatibility mode.  In this case,
the bitmap is loaded in the screen density, and the bitmap and
nine-patch drawables take care of accounting for the density difference.

This should be safe for existing applications, for the most part, since
they shouldn't really be pulling the bitmap out of the drawable.  For
the small rare chance of them breaking, it worth getting the correct
graphics.  Also this will only happen when there is actually a resource
of the matching density, and no existing apps should have resources for
anything besides the default density (though of course all of the
framework resources will be available in the native density).

As part of this, the bitmap density API has been changed to a single
integer provider the DPI unit density.
2009-07-24 10:47:15 -07:00
Android (Google) Code Review
3b99e64e58 Merge change 8475 into donut
* changes:
  Per conversation, remove the toast while saving the Certificates to CertTools.
2009-07-24 10:18:26 -07:00
Android (Google) Code Review
7c187de14f Merge change 8462 into donut
* changes:
  Make the DatePicker respect the date format setting if the date is numeric.
2009-07-24 10:00:05 -07:00
Grace Kloba
c9d4c8790a Per conversation, remove the toast while saving the Certificates to CertTools.
Remove the unused strings.
2009-07-23 21:22:51 -07:00
Chung-yih Wang
719eba5bb1 Change to SPKAC certificate request format for keygen. 2009-07-24 11:33:45 +08:00
Chung-yih Wang
75b681639d Add memcpy and strcpy boundary check. 2009-07-24 11:24:31 +08:00
Eric Fischer
03a8017d0f Make the DatePicker respect the date format setting if the date is numeric.
In some locales, there are no abbreviated month names; the abbreviated
date formats are essentially numeric.  If the user is in such a locale,
have the DatePicker respect the date format setting so that the order
of the fields will match other numeric-only dates.

In locales that have abbreviated month names, continue to use the order
that is normal in spelled-out dates.

And update the order in updateDate() so that the new order is reflected
if you change the order setting and immediately go to change the date
without leaving and returning to the Date & Time settings in between.

At the same time, change DateFormat.getDateFormatOrder() back to working
the way it did in cupcake (prioritizing the date order preference over
the locale), even though the DatePicker no longer calls the method.

Bug 1805085
2009-07-23 18:48:44 -07:00
Android (Google) Code Review
0a4730f888 Merge change 8443 into donut
* changes:
  add some more defensiveness to SuggestionsAdapter to avoid system process crashes.
2009-07-23 17:38:24 -07:00
Karl Rosaen
92f461ea66 add some more defensiveness to SuggestionsAdapter to avoid system process crashes. 2009-07-23 17:20:47 -07:00
Mitsuru Oshima
589cebe2d5 * Use the scaled size for surface view instead of native. The surface will be always scaled
by surface flinger in compatiblity mode. The original approach confused the app because
 the surface size and the view size were different.
* a few clean up. removed unsed arguments, obsolete conditions from getTranslator()
 (expandable check was a bug)
2009-07-23 13:38:01 -07:00
Android (Google) Code Review
e0ef973b13 Merge change 8323 into donut
* changes:
  * a best effort fix for apps that uses get/set Matrix API on canvas.   - scale the matrix   - but don't scale if the matrix *looks* like obtained from the canvas itself. (typically to set it back to original matrix)
2009-07-23 13:33:07 -07:00
Mitsuru Oshima
240f8a7532 * a best effort fix for apps that uses get/set Matrix API on canvas.
- scale the matrix
  - but don't scale if the matrix *looks* like obtained from the canvas itself. (typically to set it back to original matrix)

This is best effort change and not perfect (not even close), but works for one game,
and hopes it can handle many other apps that uses set/get Matrix. If you have an alternative idea, please let me know.
2009-07-23 13:31:00 -07:00
Android (Google) Code Review
1d4b87d492 Merge change 8360 into donut
* changes:
  Remove failing test AutoCompleteTextViewCallbacks.testPopupNoSelection from medium continuus suite.
2009-07-23 11:12:19 -07:00
Android (Google) Code Review
62c6c35706 Merge change 8263 into donut
* changes:
  Make the date formats as close as possible to what the translators wanted.
2009-07-23 11:10:00 -07:00
Brett Chabot
a8b30990cb Remove failing test AutoCompleteTextViewCallbacks.testPopupNoSelection from
medium continuus suite.
2009-07-23 10:55:32 -07:00
Android (Google) Code Review
0e6386300c Merge change 8291 into donut
* changes:
  Add gservices flag for configuring the URL vending redirects to when TOS is inaccessible due to no/bad network.
2009-07-23 10:33:30 -07:00
Android (Google) Code Review
ea9f9637e4 Merge change 8338 into donut
* changes:
  Have the notification service only have notifications diabled until setup wizard has been run.
2009-07-23 09:41:08 -07:00
Joe Onorato
39f5b6a081 Have the notification service only have notifications diabled until setup wizard has been run. 2009-07-23 12:29:19 -04:00