summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fiddle with default densities to try to sanitize the API.Dianne Hackborn2009-07-263-31/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Allow for screen density drawables in compatibility mode.Dianne Hackborn2009-07-2429-357/+799
| | | | | | | | | | | | | | | | | | 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.
* Merge change 8475 into donutAndroid (Google) Code Review2009-07-2422-37/+0
|\ | | | | | | | | * changes: Per conversation, remove the toast while saving the Certificates to CertTools.
| * Per conversation, remove the toast while saving the Certificates to CertTools.Grace Kloba2009-07-2322-37/+0
| | | | | | | | Remove the unused strings.
* | Merge change 8462 into donutAndroid (Google) Code Review2009-07-242-35/+76
|\ \ | | | | | | | | | | | | * changes: Make the DatePicker respect the date format setting if the date is numeric.
| * | Make the DatePicker respect the date format setting if the date is numeric.Eric Fischer2009-07-232-35/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Change to SPKAC certificate request format for keygen.Chung-yih Wang2009-07-243-38/+27
| | |
* | | Add memcpy and strcpy boundary check.Chung-yih Wang2009-07-241-1/+31
| | |
* | | Merge change 8443 into donutAndroid (Google) Code Review2009-07-231-8/+14
|\ \ \ | |_|/ |/| | | | | | | | * changes: add some more defensiveness to SuggestionsAdapter to avoid system process crashes.
| * | add some more defensiveness to SuggestionsAdapter to avoid system process ↵Karl Rosaen2009-07-231-8/+14
| | | | | | | | | | | | crashes.
* | | * Use the scaled size for surface view instead of native. The surface will ↵Mitsuru Oshima2009-07-234-64/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | Merge change 8323 into donutAndroid (Google) Code Review2009-07-233-15/+68
|\ \ \ | |_|/ |/| | | | | | | | * 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)
| * | * a best effort fix for apps that uses get/set Matrix API on canvas.Mitsuru Oshima2009-07-233-15/+68
| | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | | Merge change 8360 into donutAndroid (Google) Code Review2009-07-231-2/+4
|\ \ \ | | | | | | | | | | | | | | | | * changes: Remove failing test AutoCompleteTextViewCallbacks.testPopupNoSelection from medium continuus suite.
| * | | Remove failing test AutoCompleteTextViewCallbacks.testPopupNoSelection fromBrett Chabot2009-07-231-2/+4
| | | | | | | | | | | | | | | | medium continuus suite.
* | | | Merge change 8263 into donutAndroid (Google) Code Review2009-07-2352-4780/+982
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Make the date formats as close as possible to what the translators wanted.
| * | | | Make the date formats as close as possible to what the translators wanted.Eric Fischer2009-07-2252-4780/+982
| | | | | | | | | | | | | | | | | | | | | | | | | Remove all the country-specific files that are exactly the same as the language files, and several unverified country-specific files.
* | | | | Merge change 8291 into donutAndroid (Google) Code Review2009-07-231-0/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add gservices flag for configuring the URL vending redirects to when TOS is inaccessible due to no/bad network.
| * | | | | Add gservices flag for configuring the URL vending redirects to when TOS is ↵lknguyen2009-07-221-0/+7
| | |_|/ / | |/| | | | | | | | | | | | | inaccessible due to no/bad network.
* | | | | Merge change 8338 into donutAndroid (Google) Code Review2009-07-231-1/+12
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Have the notification service only have notifications diabled until setup wizard has been run.
| * | | | | Have the notification service only have notifications diabled until setup ↵Joe Onorato2009-07-231-1/+12
| |/ / / / | | | | | | | | | | | | | | | wizard has been run.
* | | | | Merge change 8336 into donutAndroid (Google) Code Review2009-07-233-2/+0
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | * changes: Remove the silent ringtone. I didn't realize that the ringtone picker already has an option to show a "Silent" item at the top, and having a separate silent ringtone conflicts with that in apps that choose to show it.
| * | | | Remove the silent ringtone.Marco Nelissen2009-07-233-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I didn't realize that the ringtone picker already has an option to show a "Silent" item at the top, and having a separate silent ringtone conflicts with that in apps that choose to show it.
* | | | | Merge change 8262 into donutAndroid (Google) Code Review2009-07-221-0/+9
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | * changes: Implement the device ConfigurationInfo.reqGlEsVersion field.
| * | | | Implement the device ConfigurationInfo.reqGlEsVersion field.Jack Palevich2009-07-221-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was previously hard-coded to 0. Now set to the value of the "ro.opengles.version" system property. The default value is ConfigurationInfo.GL_ES_VERSION_UNDEFINED.
* | | | | Merge change 8261 into donutAndroid (Google) Code Review2009-07-222-97/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * changes: Remove recently-added android.opengl.Version API
| * | | | Remove recently-added android.opengl.Version APIJack Palevich2009-07-222-97/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's another already-existing way of obtaining this information, the ConfigurationInfo.reqGlEsVersion field returned from ActivityManager.getDeviceConfigurationInfo.
* | | | | Merge change 8255 into donutAndroid (Google) Code Review2009-07-222-1/+18
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add new hidden API setForceIgnoreOutsideTouch to AutoCompleteTextView for use by SearchDialog. SearchDialog wants to be able to say a dropdown should not always be visible but still let it ignore outside touch when it does show.
| * | | | | Add new hidden API setForceIgnoreOutsideTouch to AutoCompleteTextView forMike LeBeau2009-07-222-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use by SearchDialog. SearchDialog wants to be able to say a dropdown should not always be visible but still let it ignore outside touch when it does show. Fixes http://b/1997170
* | | | | | Reimplement TypedArray.getLayoutDimension(int, int) for the layout bridge.Xavier Ducrohet2009-07-221-109/+114
|/ / / / /
* | | | | Merge change 8235 into donutAndroid (Google) Code Review2009-07-221-16/+27
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | * changes: * Revert the change that I introduced while refactroing in SurfaceView#dispatchTouchEvent * Don't scale back the event if the canvas is used in SurfaceView.
| * | | | * Revert the change that I introduced while refactroing in ↵Mitsuru Oshima2009-07-221-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SurfaceView#dispatchTouchEvent * Don't scale back the event if the canvas is used in SurfaceView.
* | | | | Merge change 8228 into donutAndroid (Google) Code Review2009-07-221-4/+0
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | * changes: Remove background padding workaround from SuggestionsAdapter
| * | | | Remove background padding workaround from SuggestionsAdapterBjorn Bringert2009-07-221-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Romain has checked in a framework fix, https://android-git.corp.google.com/g/8218 so the workaround added in https://android-git.corp.google.com/g/8209 is no longer needed. Fixes http://b/issue?id=1996635
* | | | | Merge change 8227 into donutAndroid (Google) Code Review2009-07-222-16/+33
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Handle null in MatrixCursor.get*()
| * | | | | Handle null in MatrixCursor.get*()Bjorn Bringert2009-07-222-16/+33
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, if a column contained null, MatrixCursor.getString() returned the string "null", and the get<Number>() methods threw exceptions. Now, getString() returns null, and get<Number>() return 0. Fixes http://b/issue?id=1996628
* | | | | Merge change 8220 into donutAndroid (Google) Code Review2009-07-221-2/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix issue 1996218: Disable use of shared memory buffer by SoundPool.
| * | | | | Fix issue 1996218: Disable use of shared memory buffer by SoundPool.Eric Laurent2009-07-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Disabled USE_SHARED_MEM_BUFFER compilation switch in SoundPool.cpp.
* | | | | | Reconcile donut-release history into donutJean-Baptiste Queru2009-07-220-0/+0
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Merge commit 'remotes/goog/donut' into donut-releaseThe Android Open Source Project2009-07-2248-420/+1010
| |\ \ \ \ \ | | |/ / / /
| * | | | | Merge commit 'remotes/goog/donut' into donut-releaseThe Android Open Source Project2009-07-2121-310/+421
| |\ \ \ \ \
| * \ \ \ \ \ Merge commit 'remotes/goog/donut' into donut-releaseThe Android Open Source Project2009-07-2031-149/+539
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge commit 'remotes/goog/donut' into donut-releaseThe Android Open Source Project2009-07-1720-93/+413
| |\ \ \ \ \ \ \
| * | | | | | | | MediaScanner: Add check for null object in empty title handling code.Mike Lockwood2009-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | | | | Merge change 8222 into donutAndroid (Google) Code Review2009-07-222-0/+97
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add a public API that reports the supported OpenGLES API level.
| * | | | | | | | | Add a public API that reports the supported OpenGLES API level.Jack Palevich2009-07-222-0/+97
| | | | | | | | | |
* | | | | | | | | | Merge change 8186 into donutAndroid (Google) Code Review2009-07-221-10/+128
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Move global search intent launching to search dialog
| * | | | | | | | | Move global search intent launching to search dialogBjorn Bringert2009-07-221-10/+128
| | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | Fixes http://b/issue?id=1969032
* | | | | | | | | Simplify density compatibility to a boolean.Dianne Hackborn2009-07-2211-195/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of a list, we now just have a single boolean indicating whether an application is density aware, and this set set to true by default as of Donut.
* | | | | | | | | Merge change 8218 into donutAndroid (Google) Code Review2009-07-221-3/+8
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: DrawableContainer was not respecting the value returned by Drawable.getPadding(Rect).