| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer.
|
|\
| |
| |
| |
| | |
* changes:
Fixes #1878499.
|
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fixes #1873537.
|
| |/
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fix for #1878497.
|
| |/
| |
| |
| | |
Always pre-allocate a gesture's bounding box to avoid possible NPEs.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Enforce permissions for PhoneStateListener events.
|
| |/
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
* changes:
Converted the angle of OrientedBoundingBox to degrees
|
| | |
|
| |
| |
| |
| | |
This reverts commit 436466d75edb5f6fd848504d998f244426ea5a09.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Motorola additions for CDMA support without CdmaSuppConnTracker
|
| |/
| |
| |
| |
| | |
There are corresponding changes to hardware/ril and packages/apps/Phone
that are required to go with these changes.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fix wifi multicast API for public use.
|
| |/
| |
| |
| | |
Applying API review comments and taking it public.
|
|/
|
|
| |
This reverts commit 58b359041a29418876f12d37a7082ece9f8a38a4.
|
|
|
|
| |
instead of simply dismissing the popup. This is cleaner and reuses the setGestures() method.
|
|\
| |
| |
| |
| | |
* changes:
Bug fixes and performance improvements
|
| |
| |
| |
| |
| |
| | |
- Added affine transform functions in GestureUtilities to remove Matrix
- Fixed a bug with Instance.createInstance
- Updated letter recognition file
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fix a hang during bootup.
|
| | |
| | |
| | |
| | |
| | | |
Some data was not being written to the battery stats during shutdown. So there was insufficient
data when reading back at bootup.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
* changes:
Fix SQLite limit issue.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
* 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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* changes:
This function should be public
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | |
| | | | | | |
* changes:
Make android_runtime to not include libemoji but use dlopen() instead. This must be submitted with change 2432
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
This must be submitted with change 2432
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* changes:
This just makes it easier to derive from ApplicationErrorReport.
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* changes:
Activity Manager changes the scheduling group of processes.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | |
| | | | | |
| | | | | | |
* changes:
add Gservices setting for "send message using bareJid timeout".
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | /
| | |_|_|/
| |/| | | |
* changes:
Removed Matrix from spatial sampling for GestureUtilities - updated the letter training file
|
| | | | |
| | | | |
| | | | |
| | | | | |
- updated the letter training file
|
|\ \ \ \ \
| |_|_|_|/
|/| | | |
| | | | |
| | | | | |
* changes:
Fix crash in GestureOverlayView
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* 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.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
search, since we should never really see that background anyway,
and I suspect the animation is using a significant amount of CPU.
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | |
| | | | | |
| | | | | | |
* changes:
Fix issue 1846343 - part 1
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| |/ / / /
|/| | | |
| | | | |
| | | | | |
* changes:
wifi: Fix problem parsing RSSI when the AP name contains a space.
|
| | |/ /
| |/| |
| | | |
| | | | |
Signed-off-by: Mike Lockwood <lockwood@android.com>
|