summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* move CursorWindow from libbinder to libandroidfwMathias Agopian2012-02-272-2/+2
| | | | Change-Id: I3b304e4f74e0d0ec8b20c57296c62449c9a0f792
* fix libgui header locationMathias Agopian2012-02-275-15/+19
| | | | Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
* Merge "remove dependency on android_native{s_priv|buffer}.h"Mathias Agopian2012-02-242-1/+3
|\
| * remove dependency on android_native{s_priv|buffer}.hMathias Agopian2012-02-242-1/+3
| | | | | | | | Change-Id: Ie4b95f7061c240f37c504414259f92d72c4ffc89
* | Add hooks to implement Canvas.drawTextOnPath() in GLRomain Guy2012-02-242-5/+36
|/ | | | Change-Id: I165c9e05facf5365aa6850605688e538640c7fcc
* frameworks/base refactoringMathias Agopian2012-02-201-0/+1
| | | | | | create the new libandroidfw from parts of libui and libutils Change-Id: I1584995616fff5d527a2aba63921b682a6194d58
* Power HAL PowerManagerService hookupTodd Poynor2012-02-171-1/+22
| | | | | | | Use PowerHAL to set system awake/suspend state. Change-Id: If58a6f548564ea141b68f304455997d9ff04eace Signed-off-by: Todd Poynor <toddpoynor@google.com>
* frameworks/base refactoring.Mathias Agopian2012-02-1718-26/+25
| | | | | | step 2: move libutils headers to their new home: androidfw Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
* Merge "frameworks/base refactoring."Jeff Brown2012-02-1710-9/+9
|\
| * frameworks/base refactoring.Mathias Agopian2012-02-1710-9/+9
| | | | | | | | | | | | First step. Move libui includes to their new home: androidfw. Change-Id: Ic042b52fdba72f30edc3cc6339bf30b4c1b99662
* | Merge "Record possible clip rejects when recording display lists"Romain Guy2012-02-171-3/+3
|\ \
| * | Record possible clip rejects when recording display listsRomain Guy2012-02-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This optimization allows us to quickly skip operations that lie entirely outside of the known bounds of a display list. Because of ViewGroup.setClipChildren, we must keep the operations recorded in the display list. setClipChildren(false) is however a very uncommon operation and we will therefore often benefit from this new optimization. Change-Id: I0942c864e55298e6dccd9977d15adefbce3ba3ad
* | | bluetooth: replace malloc() + memset() to zero with calloc()Iliyan Malchev2012-02-171-9/+4
| |/ |/| | | | | | | Change-Id: I86b0ee4babc79189184b09c51757ec1162517c7b Signed-off-by: Iliyan Malchev <malchev@google.com>
* | Ignore broken input channel when finishing input event.Jeff Brown2012-02-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | There are occasional races during application shut down where the input dispatcher will close an input channel before the application has finished its last event. So just ignore EPIPE. Also tweak the logging for failed input event injection to make it clearer which pid was trying to perform the injection. Bug: 6013004 Change-Id: I7bbb01441d41762b03eafd4d39dcf0323e1cadf3
* | Don't throw on EPIPE in consumeBatchedInputEvents.Jeff Brown2012-02-161-1/+1
|/ | | | | Bug: 6014825 Change-Id: I59bd98a1fba5d86f9793fd6e9d9f0a271ac1c789
* Merge "Clean up InputChannel file descriptor data type."Jeff Brown2012-02-142-4/+4
|\
| * Clean up InputChannel file descriptor data type.Jeff Brown2012-02-142-4/+4
| | | | | | | | | | | | File descriptors are ints. Change-Id: Ie36733bf36ddfeaa9a09ef6ebd7bd2f1788f5d27
* | Merge "Initial support for concurrency"Irfan Sheriff2012-02-141-9/+3
|\ \
| * | Initial support for concurrencyIrfan Sheriff2012-01-251-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use of multiple socket connections over wlan0 and p2p and p2p state machine is now controlled entirely from wifi state machine Add discovery stop to allow STA scans to proceed after p2p is used Change-Id: I790c9112d3f475f638f06fc3ae9e191f6d90ef35
* | | Update commentsGlenn Kasten2012-02-143-3/+3
| | | | | | | | | | | | | | | | | | We no longer put the filename at start of file. Change-Id: Ic435b159a23105681e3d4a6cb1ac097bc853302e
* | | Merge "Fix possible races in vsync infrastructure."Jeff Brown2012-02-131-25/+13
|\ \ \ | | |/ | |/|
| * | Fix possible races in vsync infrastructure.Jeff Brown2012-02-131-25/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applications sometimes crashed on exit due to the display event receiver pipe apparently being closed while still a member of the Looper's epoll fd set. This patch fixes a few different possible races related to the display event receiver lifecycle. 1. The receiver used to play a little dance with the Looper, registering and unregistering its callback after each vsync request. This code was a holdover from a time before the surface flinger supported one-shot vsync requests, so we can get rid of it and make things a lot simpler. 2. When the Choreographer is being accessed from outside the UI thread, it needs to take great care that it does not touch the display event receiver. Bad things could happen if the receiver is handling a vsync event on the Looper and the receiver is disposed concurrently. 3. It was possible for the Choreographer to attempt to dispose the receiver while handling a vsync message. Now we defer disposing the receiver for a little while, which is also nice because we may be able to avoid disposing the receiver altogether if we find that we need it again a little while later. Bug: 5974105 Change-Id: I77a158f51b0b689af34d07aee4245b969e6260d6
* | | am 6466f400: am fca4ff38: am eaf2617f: am 472512f6: Merge "Fix incorrect ↵Jean-Baptiste Queru2012-02-131-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | prototype for JNI call" * commit '6466f400a40224dc113eb6d06009a1c655151045': Fix incorrect prototype for JNI call
| * | am 472512f6: Merge "Fix incorrect prototype for JNI call"Jean-Baptiste Queru2012-02-131-1/+1
| |\ \ | | | | | | | | | | | | | | | | * commit '472512f6970fa170e2e1a3e1c24ac2b742e2e6b6': Fix incorrect prototype for JNI call
| | * \ Merge "Fix incorrect prototype for JNI call"Jean-Baptiste Queru2012-02-131-1/+1
| | |\ \
| | | * | Fix incorrect prototype for JNI callBhanu Chetlapalli2012-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This issue caused every Application launch to crash when using portable JIT Signed-Off-By: Bhanu Chetlapalli <bhanu@mips.com> Change-Id: Id7cfdeb4fc00ba4b1ca6fa24bc01c8f3432857ff
* | | | | Implement batching of input events on the consumer side.Jeff Brown2012-02-132-88/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support this feature, the input dispatcher now allows input events to be acknowledged out-of-order. As a result, the consumer can choose to defer handling an input event from one device (because it is building a big batch) while continuing to handle input events from other devices. The InputEventReceiver now sends a notification when a batch is pending. The ViewRoot handles this notification by scheduling a draw on the next sync. When the draw happens, the InputEventReceiver is instructed to consume all pending batched input events, the input event queue is fully processed (as much as possible), and then the ViewRoot performs traversals as usual. With these changes in place, the input dispatch latency is consistently less than one frame as long as the application itself isn't stalled. Input events are delivered to the application as soon as possible and are handled as soon as possible. In practice, it is no longer possible for an application to build up a huge backlog of touch events. This is part of a series of changes to improve input system pipelining. Bug: 5963420 Change-Id: I42c01117eca78f12d66d49a736c1c122346ccd1d
* | | | | Rewrite input transport using sockets.Jeff Brown2012-02-133-57/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we will not longer be modifying events in place, we don't need to use an ashmem region for input. Simplified the code to instead use a socket of type SOCK_SEQPACKET. This is part of a series of changes to improve input system pipelining. Bug: 5963420 Change-Id: I05909075ed8b61b93900913e44c6db84857340d8
* | | | | Merge "Multi-user - wallpaper service"Amith Yamasani2012-02-101-1/+0
|\ \ \ \ \
| * | | | | Multi-user - wallpaper serviceAmith Yamasani2012-02-101-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Allow each user to have their own wallpaper (live or static). - Migrate old wallpaper on upgrade. - Update SystemBackupAgent to backup/restore from primary user's new wallpaper directory. Reduce dependency on Binder.getOrigCallingUser() by passing the userId for bindService. Change-Id: I19c8c3296d3d2efa7f28f951d4b84407489e2166
* | | | | | Follow raw pointer and sp<> conventionsGlenn Kasten2012-02-101-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unconditional delete for raw pointers. Use "if (sp != 0)" not "if (sp.get() != 0)" or "if (sp != NULL)". Use "if (raw != NULL)" not "if (raw)". Change-Id: I531a8da7c37149261ed2f34b862ec4896a4b785b
* | | | | | Merge "No newline or space at end of ALOG format string"Glenn Kasten2012-02-101-12/+12
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | No newline or space at end of ALOG format stringGlenn Kasten2012-02-081-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0bef580cbc818cb7c87aea23919d26f1446cec32
* | | | | | Add headless mode for running the framework without the surface flingerMike Lockwood2012-02-101-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabled by setting system property ro.config.headless to 1 This will allow the framework to run without starting activities, system UI and the keyguard. Framework can still run services, content providers and broadcast receivers. Signed-off-by: Mike Lockwood <lockwood@android.com> Conflicts: policy/src/com/android/internal/policy/impl/PhoneWindowManager.java services/java/com/android/server/PowerManagerService.java services/java/com/android/server/am/ActivityManagerService.java
* | | | | | Disable output processing when opening serial port.Girts Folkmanis2012-02-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If post processing is not disabled, we end up translating LF to CRLF, which makes binary protocols sad.
* | | | | | Add SerialPort.sendBreak()Mike Lockwood2012-02-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | New Serial Manager API:Mike Lockwood2012-02-103-0/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SerialManager: provides access to serial ports SerialPort: for reading and writing data to and from serial ports IO with both array based and direct ByteBuffers is supported. Accessing serial ports requires android.permission.SERIAL_PORT permission Each platform must configure list of supported serial ports in the config_serialPorts resource overlay (this is needed to prevent apps from accidentally accessing the bluetooth or other system UARTs). In addition, the platform uevent.rc file must set the owner to the /dev/tty* files to "system" so the framework can access the port. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | Simple master volume supportMike Lockwood2012-02-101-0/+36
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Still needs integration with Settings (for persistence) and VolumePanel UI. Change-Id: I9eca92c4b1ef2df2564411006a35753ab9618dce Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | Comment out a warning message to avoid log spamming.Chih-Chung Chang2012-02-071-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The warning message happens a lot when the region decoder is used (like viewing a picture in the Gallery app). Change-Id: I435f92eac8f322b091f3ed14ee48d0b5f0d84a8a
* | | | | am 33476f7a: am f79bcd2d: am 52da99fa: am a081c7b8: Merge "Skia API changes ↵Jean-Baptiste Queru2012-02-061-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | as a result of an update to the Skia library." * commit '33476f7ad1c3b4dcaefddb306f315e201c4efb33': Skia API changes as a result of an update to the Skia library.
| * | | | am a081c7b8: Merge "Skia API changes as a result of an update to the Skia ↵Jean-Baptiste Queru2012-02-061-1/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | library." * commit 'a081c7b8bc5a3ea19fc7562b333fac525b17bc5f': Skia API changes as a result of an update to the Skia library.
| | * | | Skia API changes as a result of an update to the Skia library.Derek Sollenberger2012-01-311-1/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | These changes are required to work with r3022 of Skia Change-Id: Ib7cebeb2eba6790bb38edfc2397b311cf419e17c
| * | | am 9d25b82d: Merge "Rename LOG_ASSERT to ALOG_ASSERT"Jean-Baptiste Queru2012-01-191-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '9d25b82d280c2d979d500e7da4447148f32f820b': Rename LOG_ASSERT to ALOG_ASSERT
| | * | Rename LOG_ASSERT to ALOG_ASSERTSteve Block2012-01-191-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ie2c7ea6560656d65bad791a61996174c75677517
| * | | am 6df477be: Merge "Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)"Jean-Baptiste Queru2012-01-1948-306/+306
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '6df477be186233e36fc370c4d2db6c1ed928a740': Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)
| | * | Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)Steve Block2012-01-1948-306/+306
| | | | | | | | | | | | | | | | Change-Id: I1de629b4632a4b3187ca1a28d6416daccd35f924
| * | | am a826f9e2: Merge "Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)"Jean-Baptiste Queru2012-01-1920-74/+74
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'a826f9e2c4f6329d8d48c927f6e942e78ffaf92f': Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)
| | * | Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)Steve Block2012-01-1920-74/+74
| | | | | | | | | | | | | | | | Change-Id: I8fbdfa7a7581f481968dbb65aa40f7042936d7cb
| * | | am 4f367f33: Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)"Jean-Baptiste Queru2012-01-1914-73/+73
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '4f367f3387887c538c81c34cc8becaea6fa5e430': Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)
| | * | Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)Steve Block2012-01-1914-73/+73
| | | | | | | | | | | | | | | | Change-Id: I26f76452ac49e2890b14d133c065493d8df0fb4a