summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Modify the base gestures API to use streams instead of files. Adds new ↵Romain Guy2009-05-298-364/+625
| | | | wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer.
* 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 520 into donutAndroid (Google) Code Review2009-05-291-4/+6
|\ \ | | | | | | | | | | | | * changes: Enforce permissions for PhoneStateListener events.
| * | Enforce permissions for PhoneStateListener events.Jaikumar Ganesh2009-05-291-4/+6
| |/ | | | | | | | | | | | | | | 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.
* Unmap memory in MemoryFile.close().Bjorn Bringert2009-05-292-28/+81
| | | | | | | | | | | | | | | | | | | | | 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-291-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-282-2/+20
|\ \ | | | | | | | | | | | | * changes: Motorola additions for CDMA support without CdmaSuppConnTracker
| * | Motorola additions for CDMA support without CdmaSuppConnTrackerWink Saville2009-05-282-2/+20
| |/ | | | | | | | | There are corresponding changes to hardware/ril and packages/apps/Phone that are required to go with these changes.
* | Merge change 2365 into donutAndroid (Google) Code Review2009-05-282-0/+16
|\ \ | | | | | | | | | | | | * changes: Fix wifi multicast API for public use.
| * | Fix wifi multicast API for public use.Robert Greenwalt2009-05-282-0/+16
| |/ | | | | | | Applying API review comments and taking it public.
* | Revert "Bug fixes and performance improvements"Romain Guy2009-05-285-65/+41
|/ | | | This reverts commit 58b359041a29418876f12d37a7082ece9f8a38a4.
* 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.
* Merge change 2593 into donutAndroid (Google) Code Review2009-05-276-41/+65
|\ | | | | | | | | * changes: Bug fixes and performance improvements
| * Bug fixes and performance improvementsYang Li2009-05-276-41/+65
| | | | | | | | | | | | - Added affine transform functions in GestureUtilities to remove Matrix - Fixed a bug with Instance.createInstance - Updated letter recognition file
* | Merge change 2569 into donutAndroid (Google) Code Review2009-05-271-1/+3
|\ \ | | | | | | | | | | | | * changes: Fix a hang during bootup.
| * | Fix a hang during bootup.Amith Yamasani2009-05-271-1/+3
| | | | | | | | | | | | | | | Some data was not being written to the battery stats during shutdown. So there was insufficient data when reading back at bootup.
* | | Merge change 1124 into donutAndroid (Google) Code Review2009-05-271-4/+8
|\ \ \ | | | | | | | | | | | | | | | | * changes: Fix SQLite limit issue.
| * | | Fix SQLite limit issue.Owen Lin2009-05-211-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SQLLite limit is not only used to limit the returned number of data. It can be used to do an offset query. For example, "SELECT * FROM table LIMIT 100, 10", will return the data of index in the range of [100, 100 + 10). This change set enable this kind of useage. This is also more efficient than use "cursor.moveToPosition()". In my experiment, I query 1000 items in batch mode, i.e., get 20 items out of 1000 each time. Time of using LIMIT clause: 626ms Time of useing "cursor.moveToPosition()": 2062ms
* | | | Fix another crash in Gestures, this one caused by the data fileMarco Nelissen2009-05-272-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | having the wrong version. I made the loader print a message to the log for this, and made the calling code disable gestures for the listview instead of crashing.
* | | | Merge change 2520 into donutAndroid (Google) Code Review2009-05-271-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Cause the icon drawables to animate automatically by calling setVisible false and then true on the drawables. For an AnimationDrawable, this will trigger the desired behavior of 'automatically' starting the animation, which should have been working to begin with according to the intended design of AnimationDrawable (see http://b/1878430 for my description of my correspondence with Romain). For Donut we'll just do this to work around it, but for a later release we need to decide a better story.
| * | | | Cause the icon drawables to animate automatically by calling setVisibleMike LeBeau2009-05-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | false and then true on the drawables. For an AnimationDrawable, this will trigger the desired behavior of 'automatically' starting the animation, which should have been working to begin with according to the intended design of AnimationDrawable (see http://b/1878430 for my description of my correspondence with Romain). For Donut we'll just do this to work around it, but for a later release we need to decide a better story.
* | | | | Merge change 2522 into donutAndroid (Google) Code Review2009-05-271-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: This function should be public
| * | | | | This function should be publicJacek Surazski2009-05-271-1/+1
| | | | | |
* | | | | | Merge change 2432 into donutAndroid (Google) Code Review2009-05-272-39/+51
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | * changes: Make android_runtime to not include libemoji but use dlopen() instead. This must be submitted with change 2432
| * | | | | Make android_runtime to not include libemoji but use dlopen() instead.Daisuke Miyakawa2009-05-272-39/+51
| |/ / / / | | | | | | | | | | | | | | | This must be submitted with change 2432
* | | | | Merge change 2420 into donutAndroid (Google) Code Review2009-05-271-15/+20
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: This just makes it easier to derive from ApplicationErrorReport.
| * | | | | This just makes it easier to derive from ApplicationErrorReport.Jacek Surazski2009-05-251-15/+20
| |/ / / /
* | | | | Merge change 2508 into donutAndroid (Google) Code Review2009-05-263-1/+32
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Activity Manager changes the scheduling group of processes.
| * | | | | Activity Manager changes the scheduling group of processes.Dianne Hackborn2009-05-263-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The algorithm for this is currently very simple: all persistent processes are always in the normal scheduling group, all other processes are normal if their oom_adj is as good or better than VISIBLE, otherwise they are in the background group. Note that this currently results in a fair number of log messages about not being able to change the group, since the system process does not have permission to do so. Once a kernel fix is in, these will go away and the code will start working.
* | | | | | Merge change 2492 into donutAndroid (Google) Code Review2009-05-261-0/+10
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | * changes: add Gservices setting for "send message using bareJid timeout".
| * | | | | add Gservices setting for "send message using bareJid timeout".Wei Huang2009-05-261-0/+10
| | | | | |
* | | | | | Merge change 2434 into donutAndroid (Google) Code Review2009-05-262-7/+12
|\ \ \ \ \ \ | |/ / / / / |/| | | | / | | |_|_|/ | |/| | | * changes: Removed Matrix from spatial sampling for GestureUtilities - updated the letter training file
| * | | | Removed Matrix from spatial sampling for GestureUtilitiesYang Li2009-05-262-7/+12
| | | | | | | | | | | | | | | | | | | | - updated the letter training file
* | | | | Merge change 2465 into donutAndroid (Google) Code Review2009-05-261-13/+17
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | * changes: Fix crash in GestureOverlayView
| * | | | Fix crash in GestureOverlayViewMarco Nelissen2009-05-261-13/+17
| | | | |
* | | | | Merge change 2393 into donutAndroid (Google) Code Review2009-05-262-1/+23
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Remove dimmed background (and accompanying animation) for global search, since we should never really see that background anyway, and I suspect the animation is using a significant amount of CPU.
| * | | | | Remove dimmed background (and accompanying animation) for globalMike LeBeau2009-05-232-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | search, since we should never really see that background anyway, and I suspect the animation is using a significant amount of CPU.
* | | | | | Merge change 2331 into donutAndroid (Google) Code Review2009-05-261-25/+9
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | * changes: Fix issue 1846343 - part 1
| * | | | | Fix issue 1846343 - part 1Eric Laurent2009-05-261-25/+9
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is the first part of a fix for issue 1846343, : - Added new enum values for input sources in AudioRecord and MediaRecorder for voice uplink, downlink and uplink+downlink sources. - renamed streamType to inputSource in all native functions handling audio record. A second change is required in opencore author driver and android audio input to completely fix the issue.
* | | | | Merge change 2431 into donutAndroid (Google) Code Review2009-05-261-1/+6
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | * changes: wifi: Fix problem parsing RSSI when the AP name contains a space.
| * | | | wifi: Fix problem parsing RSSI when the AP name contains a space.Mike Lockwood2009-05-251-1/+6
| | |/ / | |/| | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>