summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Retool the backup process to use a new 'BackupAgent' classChristopher Tate2009-05-3121-187/+740
| | | | | | | | | | | | | | | Backups will be handled by launching the application in a special mode under which no activities or services will be started, only the BackupAgent subclass named in the app's android:backupAgent manifest property. This takes the place of the BackupService class used earlier during development. In the cases of *full* backup or restore, an application that does not supply its own BackupAgent will be launched in a restricted manner; in particular, it will be using the default Application class rather than any manifest-declared one. This ensures that the app is not running any code that may try to manipulate its data while the backup system reads/writes its data set.
* am 7363e049: AI 149404: Am sending again with the latest changes Publish ↵Doug Kramer2009-05-3025-1/+1237
|\ | | | | | | | | | | | | | | | | Activity and Task Design Guidelines http://doog:9000/guide/practices/ui_guidelines/activity_task_design.html Merge commit '7363e049ec7c2f490acf783a979ea101df35a055' into donut * commit '7363e049ec7c2f490acf783a979ea101df35a055': AI 149404: Am sending again with the latest changes
| * AI 149404: Am sending again with the latest changesDoug Kramer2009-05-2925-1/+1237
| | | | | | | | | | | | | | Publish Activity and Task Design Guidelines http://doog:9000/guide/practices/ui_guidelines/activity_task_design.html Automated import of CL 149404
* | Merge change 2626 into donutAndroid (Google) Code Review2009-05-291-1/+2
|\ \ | | | | | | | | | | | | * changes: Adding TTS error code to signal missing resources (for instance missing language files).
| * | Adding TTS error code to signal missing resources (for instance missing ↵Jean-Michel Trivi2009-05-281-1/+2
| | | | | | | | | | | | language files).
* | | Merge change 2758 into donutAndroid (Google) Code Review2009-05-292-2/+8
|\ \ \ | | | | | | | | | | | | | | | | * changes: Fix concat SMS for GSM.
| * | | Fix concat SMS for GSM.jsh2009-05-292-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | Bug 1883998: We only support sending 8-bit references for now. Bug 1885080: Also fix the GsmAlphabetTest, which started failing when SmsHeader was re-worked.
* | | | Merge change 2692 into donutAndroid (Google) Code Review2009-05-295-8/+196
|\ \ \ \ | |/ / / |/| | | | | | | | | | | * changes: * Chagned RecognitionService interface to use more complex RecognitionResult instead of String.
| * | | * Chagned RecognitionService interface to use more complex RecognitionResult ↵Mitsuru Oshima2009-05-295-8/+196
| | | | | | | | | | | | | | | | instead of String.
* | | | Merge change 2736 into donutAndroid (Google) Code Review2009-05-2910-53/+186
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Telephony support for SMS memory reporting to the network.
| * | | | Telephony support for SMS memory reporting to the network.jsh2009-05-2910-53/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use ordered broadcast to allow receivers to set a result code. - Ack SMS with result code. - New RIL command to report memory status. - Fixed a typo in a Gservices setting. - Merge in CL 137895 (hold a wake lock while broadcasting SMS_RECEIVED).
* | | | | Merge change 2566 into donutAndroid (Google) Code Review2009-05-291-5/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix javadoc typos. No code changes.
| * | | | | Fix javadoc typos. No code changes.Jack Veenstra2009-05-271-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | Also reformatted a comment that was too long.
* | | | | | Merge change 2748 into donutAndroid (Google) Code Review2009-05-292-65/+442
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix the build.
| * | | | | | Fix the build.Romain Guy2009-05-292-65/+442
| | | | | | |
* | | | | | | Merge change 2747 into donutAndroid (Google) Code Review2009-05-291-1/+3
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | * changes: log the geomerty of surfaces causing an out of memory in SurfaceFlinger.
| * | | | | | log the geomerty of surfaces causing an out of memory in SurfaceFlinger.Mathias Agopian2009-05-291-1/+3
| | | | | | |
* | | | | | | Merge change 2746 into donutAndroid (Google) Code Review2009-05-2911-392/+656
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Modify the base gestures API to use streams instead of files. Adds new wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer.
| * | | | | | | Modify the base gestures API to use streams instead of files. Adds new ↵Romain Guy2009-05-2911-392/+656
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer.
* | | | | | | | Merge change 2716 into donutAndroid (Google) Code Review2009-05-292-8/+34
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | * changes: Update MediaPlayer to allow setVideoSurface calls after prepare. Also allow passing a null surface. The API is now enabled to change the surface while the video is playing. This could allow orientation changes during playback or to allow the audio track from a video to play in the background. NOTE: There are still changes required to pmem driver to allow remapping shared physical memory into a process in order for this to work. This change only enables the API to send the appropriate calls when the lower level code supports it.
| * | | | | | | Update MediaPlayer to allow setVideoSurface calls after prepare. Also allowDave Sparks2009-05-292-8/+34
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | passing a null surface. The API is now enabled to change the surface while the video is playing. This could allow orientation changes during playback or to allow the audio track from a video to play in the background. NOTE: There are still changes required to pmem driver to allow remapping shared physical memory into a process in order for this to work. This change only enables the API to send the appropriate calls when the lower level code supports it.
* | | | | | | Merge change 2737 into donutAndroid (Google) Code Review2009-05-293-47/+57
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fixes #1878499.
| * | | | | | | Fixes #1878499.Romain Guy2009-05-293-47/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore touch up events that happen after a gesture was cancelled. This fix also improves performance by ignoring move events that are within the touch threshold.
* | | | | | | | Merge change 2731 into donutAndroid (Google) Code Review2009-05-291-1/+1
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | * changes: Fixes #1873537.
| * | | | | | | Fixes #1873537.Romain Guy2009-05-291-1/+1
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only update the popup window when it is shown. This avoids throwing an NPE in PopupWindow. A PopupWindow is only aware of its content view after being shown.
* | | | | | | Merge change 2732 into donutAndroid (Google) Code Review2009-05-291-7/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix for #1878497.
| * | | | | | | Fix for #1878497.Romain Guy2009-05-291-7/+2
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Always pre-allocate a gesture's bounding box to avoid possible NPEs.
* | | | | | | Merge change 2685 into donutAndroid (Google) Code Review2009-05-291-6/+20
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Change code coverage to write to app data folder rather than sdcard.
| * | | | | | | Change code coverage to write to app data folder rather than sdcard.Brett Chabot2009-05-281-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The InstrumentationTestRunner would previously write code coverage data to the sdcard. With the recent SDCARD_WRITE permission addition, generating code coverage would fail if test app did not declare the SDCARD_WRITE permission. This CL changes InstrumentationTestRunner so by default, the coverage data is saved to the app's private data folder. At the test run conclusion it outputs the path to this file so runtest or another test harness find the path to the coverage file.
* | | | | | | | Merge change 520 into donutAndroid (Google) Code Review2009-05-293-30/+56
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Enforce permissions for PhoneStateListener events.
| * | | | | | | | Enforce permissions for PhoneStateListener events.Jaikumar Ganesh2009-05-293-30/+56
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PhoneStateListener events like LISTEN_CALL_STATE_CHANGED, have privacy information like phone numbers and hence, need to be protected with a permission. The permission READ_PHONE_STATE is used for this purpose. Use the permission trick to ensure backward compatability.
* | | | | | | | Fixes #1884152. This change improves how the opaque property is handled with ↵Romain Guy2009-05-291-4/+10
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | respect to dividers. If the list is opaque and its background is not, then we want to fill a solid rect where the dividers should be when they are skipped for non-selectable items. When the list is opaque and the background is also opaque, there is no need to draw something in lieu of the dividers since the background will do it for us.
* | | | | | | Merge change 2706 into donutAndroid (Google) Code Review2009-05-291-11/+14
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix issue 1883666: Audio coming from the music player stopped suddenly
| * | | | | | | Fix issue 1883666: Audio coming from the music player stopped suddenlyEric Laurent2009-05-291-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem comes from the code handling the automatic change of audio routing to speaker when notifications are played. The music is also muted while the sound is forced to speaker. To avoid truncating the end of the notification, a delay is inserted between the end of the notification and the restoration of the audio routing. If a new notification starts during this delay, the current music mute state read and saved before muting music corresponds to the forced mute due to previous notification. When the new notification ends, the mute state restored is muted and music stream stays muted for ever. The fix consists in reading and saving music mute state only if the audio routing has been restored (check that mForcedRoute is back to 0).
* | | | | | | | Unmap memory in MemoryFile.close().Bjorn Bringert2009-05-293-32/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As reported in http://b/issue?id=1398215 MemoryFile did not munmap(2) the ashmem region after closing it. This causes the process to leak virtual address space. This change fixes the problem by calling munmap(2) in close(). The unmapping is done by a helper method deactivate(). The change also replaces the use of an int for the file descriptor with a FileDescriptor object to make sure that we keep track of when the file descriptor has been closed. I chose to implement it this way because I will need decativate() and a FileDescriptor object in an upcoming change that allows sending MemoryFile file descriptors between processes. The change also adds a number of tests for the behavior of close(). The testCloseRead() and testCloseWrite() fail with the old MemoryFile implementation, and testCloseLeak() causes a segfault. They all pass now.
* | | | | | | | MemoryFile constructor and native methods throw IOExceptions.Bjorn Bringert2009-05-292-9/+12
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These native methods in android.os.MemoryFile throw IOException but their Java declarations did not include "throws IOException": native_open(),native_mmap(),native_read(),native_write(),native_pin() The MemoryFile(String,int) constructor calls native_open and native_mmap, but does not declare that it throws IOException. The other Java methods that call the native methods do actually declare that they throw IOException. This means that any code that created memory files could throw an IOException, without knowing about it. This changes adds "throws IOException" to the native methods and to the constructor. The constructor change changes the public API, but maintains binary compatibility. There is some precedent for making source incompatible source API changes for this sort of thing (see https://mondrian.corp.google.com/changelist/124214-p9). The change also makes the native methods static, which they seem to have been intended to be, as indicated by the second parameter to the native implementations being named "clazz". This requires changes to the Compatibility Test Suite to catch the exceptions. This is done in https://android-git.corp.google.com/g/2617 Unfortunately that change must be submitted together with this one in order not to break the build. Fixes http://b/issue?id=1881829
* | | | | | | Merge change 2678 into donutAndroid (Google) Code Review2009-05-281-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Converted the angle of OrientedBoundingBox to degrees
| * | | | | | | Converted the angle of OrientedBoundingBox to degreesYang Li2009-05-281-1/+1
| | |/ / / / / | |/| | | | |
* | | | | | | Revert "Revert "Bug fixes and performance improvements""Romain Guy2009-05-285-41/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 436466d75edb5f6fd848504d998f244426ea5a09.
* | | | | | | Merge change 2399 into donutAndroid (Google) Code Review2009-05-2828-768/+2154
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Motorola additions for CDMA support without CdmaSuppConnTracker
| * | | | | | | Motorola additions for CDMA support without CdmaSuppConnTrackerWink Saville2009-05-2828-768/+2154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are corresponding changes to hardware/ril and packages/apps/Phone that are required to go with these changes.
* | | | | | | | Merge change 2654 into donutAndroid (Google) Code Review2009-05-281-9/+97
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | * changes: Added the two validations for the memory stress test 1) Set the maximum memory leakage to 150K in 200 loops of playback. 2) Check the pid of the meidaserver.
| * | | | | | | Added the two validations for the memory stress testYu Shan Emily Lau2009-05-281-9/+97
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | 1) Set the maximum memory leakage to 150K in 200 loops of playback. 2) Check the pid of the meidaserver.
* | | | | | | Merge change 2365 into donutAndroid (Google) Code Review2009-05-287-47/+202
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Fix wifi multicast API for public use.
| * | | | | | | Fix wifi multicast API for public use.Robert Greenwalt2009-05-287-47/+202
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Applying API review comments and taking it public.
* | | | | | | Merge change 2637 into donutAndroid (Google) Code Review2009-05-285-65/+41
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | * changes: Revert "Bug fixes and performance improvements"
| * | | | | | Revert "Bug fixes and performance improvements"Romain Guy2009-05-285-65/+41
| |/ / / / / | | | | | | | | | | | | | | | | | | This reverts commit 58b359041a29418876f12d37a7082ece9f8a38a4.
* | | | | | am 2542c0a8: AI 149346: Replace icon_templates-v1.0.zip with new archive ↵Dirk Dougherty2009-05-281-0/+0
|\ \ \ \ \ \ | |/ / / / / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | from cnesladek. remove mac-specific files, fix dir name, repack. BUG=1877969 Merge commit '2542c0a805b144b4c4324a749574d9ba76660557' into donut * commit '2542c0a805b144b4c4324a749574d9ba76660557': AI 149346: Replace icon_templates-v1.0.zip with new archive from cnesladek. remove mac-specific files, fix dir name, repack.
| * | | | AI 149346: Replace icon_templates-v1.0.zip with new archive from cnesladek. ↵Dirk Dougherty2009-05-281-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove mac-specific files, fix dir name, repack. BUG=1877969 Automated import of CL 149346
* | | | | Uninstalls the gestures overlay when the letters recognizer cannot be loaded ↵Romain Guy2009-05-271-2/+1
| | | | | | | | | | | | | | | | | | | | instead of simply dismissing the popup. This is cleaner and reuses the setGestures() method.