summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* am 8395b462: Merge "fix [2931513] Add support for setting the orientation of ↵Mathias Agopian2010-08-242-0/+68
|\ | | | | | | | | | | | | | | | | an ANativeWindow" into gingerbread Merge commit '8395b4625b96f2133e2e4f595fdc69fbe222e4fc' into gingerbread-plus-aosp * commit '8395b4625b96f2133e2e4f595fdc69fbe222e4fc': fix [2931513] Add support for setting the orientation of an ANativeWindow
| * fix [2931513] Add support for setting the orientation of an ANativeWindowMathias Agopian2010-08-242-0/+68
| | | | | | | | | | | | Also implement support for cropping. Change-Id: Iba5888dd242bf2feaac9e9ce26e404c1f404c280
* | am 06c81f29: Merge changes I8a257579,I82d16312 into gingerbreadKenny Root2010-08-207-0/+873
|\ \ | |/ | | | | | | | | | | | | Merge commit '06c81f29a61ad3568a77f111b6be93e1f437f5bd' into gingerbread-plus-aosp * commit '06c81f29a61ad3568a77f111b6be93e1f437f5bd': Add AStorageManager API to NDK Reorganize MountService IPC
| * Reorganize MountService IPCKenny Root2010-08-207-0/+873
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove auto-generated AIDL files and replace them with manually edited .java and .cpp/.h files so that binder calls can be made from either Java or C++. Update the makefiles to not attempt to generate the AIDL files and also remove the old auto-generated .java files. Put all the storage-related C++ things in libstorage so that we don't pollute other libraries. Change-Id: I82d1631295452709f12ff1270f36c3100e652806
* | am 6be23712: Merge "Free created FileMap when uncompressing files" into ↵Kenny Root2010-08-201-5/+9
|\ \ | |/ | | | | | | | | | | | | | | gingerbread Merge commit '6be237120e9673e3cfc5243da5bbca287effcf09' into gingerbread-plus-aosp * commit '6be237120e9673e3cfc5243da5bbca287effcf09': Free created FileMap when uncompressing files
| * Merge "Free created FileMap when uncompressing files" into gingerbreadKenny Root2010-08-201-5/+9
| |\
| | * Free created FileMap when uncompressing filesKenny Root2010-08-191-5/+9
| | | | | | | | | | | | Change-Id: Ice22c4ecb7c129b74bf60cd66ae79e110b017a4a
* | | am 97a56269: Merge "Add camera fps range API." into gingerbreadWu-cheng Li2010-08-201-30/+29
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '97a56269d06770712f9da7a2a29385012ec9714e' into gingerbread-plus-aosp * commit '97a56269d06770712f9da7a2a29385012ec9714e': Add camera fps range API.
| * | Merge "Add camera fps range API." into gingerbreadWu-cheng Li2010-08-201-30/+29
| |\ \
| | * | Add camera fps range API.Wu-cheng Li2010-08-201-30/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Original preview frame rate API assumes the frame rate is fixed. It does not not work with auto frame rate camera. Change-Id: I38f7122ac8ec844ffd63558dc0763ffa17b0926a
* | | | am 545eab8a: Merge "remove unused pixel format" into gingerbreadMathias Agopian2010-08-191-1/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '545eab8ae80b070177cc442931eadc8cd980de26' into gingerbread-plus-aosp * commit '545eab8ae80b070177cc442931eadc8cd980de26': remove unused pixel format
| * | | Merge "remove unused pixel format" into gingerbreadMathias Agopian2010-08-191-1/+0
| |\ \ \
| | * | | remove unused pixel formatMathias Agopian2010-08-191-1/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I55bc3cc41385743c07f7e4de06335c922f746f73
* | | | | am 00144745: Merge "Make the throttling more sensitive to end-to-end ↵Jeff Brown2010-08-191-1/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | latency." into gingerbread Merge commit '0014474569b8bb237f00fa692ab173678bff619e' into gingerbread-plus-aosp * commit '0014474569b8bb237f00fa692ab173678bff619e': Make the throttling more sensitive to end-to-end latency.
| * | | | Merge "Make the throttling more sensitive to end-to-end latency." into ↵Jeff Brown2010-08-191-1/+2
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | gingerbread
| | * | | Make the throttling more sensitive to end-to-end latency.Jeff Brown2010-08-191-1/+2
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code now takes into account the time when the event was generated. So with a 60Hz throttling rate, it ensures that a motion event will not be delayed due to throttling by any more than 1/60th of second past the time it was generated. Change-Id: Iaea1d4f76e79036b4a18873485230731c3cd63c3
* | | | am eba12749: Merge "Adding getSupportedPreviewSizes to CameraParameters.DO ↵Wu-cheng Li2010-08-191-25/+36
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOT MERGE" into gingerbread Merge commit 'eba1274978911ea188eead128645299669d02f60' into gingerbread-plus-aosp * commit 'eba1274978911ea188eead128645299669d02f60': Adding getSupportedPreviewSizes to CameraParameters.DO NOT MERGE
| * | | Merge "Adding getSupportedPreviewSizes to CameraParameters.DO NOT MERGE" ↵Wu-cheng Li2010-08-191-25/+36
| |\ \ \ | | | | | | | | | | | | | | | into gingerbread
| | * | | Adding getSupportedPreviewSizes to CameraParameters.DO NOT MERGENipun Kwatra2010-08-191-25/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved functionality to parse string of sizes from getSupportedPictureSizes to parseSizesList. Added getSupportedPreviewSizes which returns a list of supported preview sizes. Change-Id: I41d4f62f9f1641e9e9258aa2ebaeda13ba846c02
* | | | | am ccb91596: Merge "Adding getSupportedPictureSizes to CameraParameters.DO ↵Wu-cheng Li2010-08-191-2/+31
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOT MERGE" into gingerbread Merge commit 'ccb915963e70c9b4e8fc47b5af97ab37b979195a' into gingerbread-plus-aosp * commit 'ccb915963e70c9b4e8fc47b5af97ab37b979195a': Adding getSupportedPictureSizes to CameraParameters.DO NOT MERGE
| * | | | Merge "Adding getSupportedPictureSizes to CameraParameters.DO NOT MERGE" ↵Wu-cheng Li2010-08-191-2/+31
| |\ \ \ \ | | |/ / / | | | | / | | |_|/ | |/| | into gingerbread
| | * | Adding getSupportedPictureSizes to CameraParameters.DO NOT MERGENipun Kwatra2010-08-191-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added a struct 'Size' containing a width and a height field. Modified parse_size to optionally set an end pointer pointing to the character after the found size. Change-Id: I0c95ebf1ad4684721b32165f363db7d4d15a1b19
* | | | am 54d41379: Merge "Add OBB flags to support overlays" into gingerbreadKenny Root2010-08-191-10/+22
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '54d41379357d1d800d0a7bd7c5dc56111710482a' into gingerbread-plus-aosp * commit '54d41379357d1d800d0a7bd7c5dc56111710482a': Add OBB flags to support overlays
| * | | Merge "Add OBB flags to support overlays" into gingerbreadKenny Root2010-08-191-10/+22
| |\ \ \ | | |_|/ | |/| |
| | * | Add OBB flags to support overlaysKenny Root2010-08-181-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add flags field in OBB footer to support overlays. * Remove unused 'crypto' and 'filesystem' fields in obbtool (could later be supported in the "flags" field of the OBB footer). * Add notes to document OBB classes before shipping. Change-Id: I386b43c32c5edef55210acb5d3322639c08010ba
* | | | am 99401b29: Merge "Add support for throttling motion events." into gingerbreadJeff Brown2010-08-181-5/+77
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '99401b29c3f39488a058d3eb616009b751879a77' into gingerbread-plus-aosp * commit '99401b29c3f39488a058d3eb616009b751879a77': Add support for throttling motion events.
| * | | Add support for throttling motion events.Jeff Brown2010-08-181-5/+77
| | | | | | | | | | | | | | | | Change-Id: I24b3a17753e91ecda60a60fe5cd2e6b3260e033d
* | | | am aac6a748: Merge "Only monitor recognized uevent devices." into gingerbreadJean-Baptiste Queru2010-08-181-1/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'aac6a7481757e3477e489f311e53385988a5d9a0' into gingerbread-plus-aosp * commit 'aac6a7481757e3477e489f311e53385988a5d9a0': Only monitor recognized uevent devices.
| * | | Only monitor recognized uevent devices.Sean McNeil2010-08-181-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | system_server can potentially monitor uevent devices that are of no use to it. For instance, an accelerometer implementation as uevents. This would cause the process to be busy when unnecessary. If a device cannot be classified, don't monitor it. Change-Id: Ib2c93105e7d746d9c1a7414bea8bab3fb8c0b70a
* | | | am 72e0b2ab: Merge "Fix some input device mapping bugs with certain ↵Jeff Brown2010-08-181-68/+92
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | drivers." into gingerbread Merge commit '72e0b2ab08dc49857955a4560de296fdddada8dc' into gingerbread-plus-aosp * commit '72e0b2ab08dc49857955a4560de296fdddada8dc': Fix some input device mapping bugs with certain drivers.
| * | | Merge "Fix some input device mapping bugs with certain drivers." into ↵Jeff Brown2010-08-181-68/+92
| |\ \ \ | | |_|/ | |/| | | | | | gingerbread
| | * | Fix some input device mapping bugs with certain drivers.Jeff Brown2010-08-181-68/+92
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On single-touch devices, pointer up/down is signalled by a BTN_TOUCH key event. Previously we handled BTN_TOUCH immediately but some drivers may produce the sequence BTN_TOUCH, ABS_X, ABS_Y, SYN_REPORT on pointer down which caused us to emit a bad initial pointer down location. Now we wait for SYN_REPORT before reporting the up or down. On multi-touch devices, pointer up can be signalled by as little as the sequence SYN_MT_REPORT, SYN_REPORT. This change ensures that we handle this case. Added support for reading ABS_MT_PRESSURE when available. Corrected mapping of touchMajor/touchMinor on single touch devices. Minor code cleanup. Change-Id: Ic7ec4811241ed85a06e59b8a839ca05180d491d4
| * | Keep track of remaining fd when devices are removedJens Gulin2010-08-181-8/+7
| |/ | | | | | | | | | | | | | | | | | | | | Sometimes the wrong fd was accessed when the device was addressed by device id. The earlier implementation assumed that two arrays were in sync but one of them was compacted when devices were removed. Instead of that dependency the device now keeps track of it's file descriptor. Change-Id: Ib0f320603aafb07ded354bc3687de9759c9068f2
* | am 3922484d: Merge "Optimize EventHub reads." into gingerbreadJeff Brown2010-08-181-68/+88
|\ \ | |/ | | | | | | | | | | Merge commit '3922484d7458a4ab72fc1ca8952a0776dd1c7d20' into gingerbread-plus-aosp * commit '3922484d7458a4ab72fc1ca8952a0776dd1c7d20': Optimize EventHub reads.
| * Optimize EventHub reads.Jeff Brown2010-08-171-68/+88
| | | | | | | | Change-Id: Id7d09c0a6e5c741c1e29becd2b6560772c5ff372
* | am 72ce4235: Merge "Fix possible race conditions during channel ↵Jeff Brown2010-08-181-12/+20
|\ \ | |/ | | | | | | | | | | | | | | unregistration." into gingerbread Merge commit '72ce42352c1c229e05d910b4176f3cddb608e814' into gingerbread-plus-aosp * commit '72ce42352c1c229e05d910b4176f3cddb608e814': Fix possible race conditions during channel unregistration.
| * Fix possible race conditions during channel unregistration.Jeff Brown2010-08-171-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the input dispatcher assumed that the input channel's receive pipe file descriptor was a sufficiently unique identifier for looking up input channels in its various tables. However, it can happen that an input channel is disposed and then a new input channel is immediately created that reuses the same file descriptor. Ordinarily this is not a problem, however there is a small opportunity for a race to arise in InputQueue. When InputQueue receives an input event from the dispatcher, it generates a finishedToken that encodes the channel's receive pipe fd, and a sequence number. The finishedToken is used by the ViewRoot as a handle for the event so that it can tell the InputQueue when the event has finished being processed. Here is the race: 1. InputQueue receives an input event, assigns a new finishedToken. 2. ViewRoot begins processing the input event. 3. During processing, ViewRoot unregisters the InputChannel. 4. A new InputChannel is created and is registered with the Input Queue. This InputChannel happens to have the same receive pipe fd as the one previously registered. 5. ViewRoot tells the InputQueue that it has finished processing the input event, passing along the original finishedToken. 6. InputQueue throws an exception because the finishedToken's receive pipe fd is registered but the sequence number is incorrect so it assumes that the client has called finish spuriously. The fix is to include a unique connection id within the finishedToken so that the InputQueue can accurately confirm that the token belongs to the currently registered InputChannel rather than to an old one that happened to have the same receive pipe fd. When it notices this, it ignores the spurious finish. I've also made a couple of other small changes to avoid similar races elsewhere. This patch set also includes a fix to synthesize a finished signal when the input channel is unregistered on the client side to help keep the server and client in sync. Bug: 2834068 Change-Id: I1de34a36249ab74c359c2c67a57e333543400f7b
* | resolved conflicts for merge of be50507b to gingerbread-plus-aospJean-Baptiste Queru2010-08-171-8/+7
|\ \ | | | | | | | | | Change-Id: Iaa5fb62f7b82b488bca192e7f374c044c7e1e6a7
| * \ Merge "Keep track of remaining fd when devices are removed"Jean-Baptiste Queru2010-08-171-10/+8
| |\ \
| | * | Keep track of remaining fd when devices are removedJens Gulin2010-06-281-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes the wrong fd was accessed when the device was addressed by device id. The earlier implementation assumed that two arrays were in sync but one of them was compacted when devices were removed. Instead of that dependency the device now keeps track of it's file descriptor. Change-Id: I2b8a793d76b89ab464ae830482b309fe86031671
* | | | am 8ea71511: Merge "Initial tool for OBB manipulation" into gingerbreadKenny Root2010-08-111-3/+39
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | Merge commit '8ea71511c64e61fe23004889ff7032f991a751c8' into gingerbread-plus-aosp * commit '8ea71511c64e61fe23004889ff7032f991a751c8': Initial tool for OBB manipulation
| * | | Initial tool for OBB manipulationKenny Root2010-08-111-3/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "obbtool" host command for adding, removing, and querying Opaque Binary Blob (OBB) information from a file. Change-Id: Id2ac41e687ad2a500c362616d6738a8ae7e8f5c3
* | | | am a5ae50cd: Merge "More native work." into gingerbreadDianne Hackborn2010-08-111-0/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb' into gingerbread-plus-aosp * commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb': More native work.
| * | | More native work.Dianne Hackborn2010-08-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement save/restore of state, and add native APIs for configuration information. Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
* | | | am c3fc2d03: Fix safe mode and KeyEvent.getMaxKeyCode().Jeff Brown2010-08-101-0/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit 'c3fc2d03d58a258c53c9265a70143d4af076b764' into gingerbread-plus-aosp * commit 'c3fc2d03d58a258c53c9265a70143d4af076b764': Fix safe mode and KeyEvent.getMaxKeyCode().
| * | | Fix safe mode and KeyEvent.getMaxKeyCode().Jeff Brown2010-08-101-0/+8
| | | | | | | | | | | | | | | | | | | | Bug: 2901731 Change-Id: I78617c1b9dee3790fc590e5af4b5083368873184
* | | | am 818490ab: Fix String8::operator+Kenny Root2010-08-062-2/+78
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '818490ab2abe36dfc6c13d01fea5220bd64cca8c' into gingerbread-plus-aosp * commit '818490ab2abe36dfc6c13d01fea5220bd64cca8c': Fix String8::operator+
| * | | Fix String8::operator+Kenny Root2010-08-062-2/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LHS was ignored when using: String8 + String8 String8 + (const char*) Add unit tests for above. Bug: 2898473 Change-Id: Ic8fe7be668b665c36aaaa3fc3c3ffdfff0fbba25
* | | | am 2d817f75: Free scanBuf in ZipFileROKenny Root2010-08-041-6/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '2d817f75969cf3942ae3bcb9d194b9c095288dc7' into gingerbread-plus-aosp * commit '2d817f75969cf3942ae3bcb9d194b9c095288dc7': Free scanBuf in ZipFileRO
| * | | Free scanBuf in ZipFileROKenny Root2010-08-041-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the success case, the 65kB scanBuf was not freed! Also, get rid of annoying complaints about ssize_t from printf in error cases. Change-Id: If154ac19bf47637f898b4ec8c8e27c9a073a7b81