History log of /system/core/include/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7cd3e0a3a2f9b104cd6c04f699ae62c4577787e2 12-Dec-2011 Jesse Hall <jessehall@google.com> Document ANativeWindow's buffer refcounting

Change-Id: I5454e90afd1a1b7d4a75c503f8dca712dba33790
ystem/window.h
097b4ed4100369862793cf4f0fbbb969b50c154e 21-Nov-2011 Nick Pelly <npelly@google.com> Replace vendor specific NfcGoogle.apk with generic Nfc.apk

The access control changes allow us to just use Nfc.apk with
the regular platform certificate, instead of the custom signed
NfcGoogle.apk. So we can compeltely get rid of vendor/google/apps/NfcGoogle
and just build it out of packages/apps/Nfc now.

The package name is also reverted from com.android.nfc3 to com.android.nfc

The NFC uid needs to get bumped (25 to 27) to allow the cert change.

Bug: 5608249
Change-Id: I5e178b469e5210cd231ba5f4ea57aa666b3d8893
rivate/android_filesystem_config.h
5babfad44584641316b4a2ff62c1a7c9392740e6 13-Oct-2011 Wu-cheng Li <wuchengli@google.com> am baad2843: Update camera documentation about face detection.

* commit 'baad2843a1af443aa251be510c4476159d064d20':
Update camera documentation about face detection.
baad2843a1af443aa251be510c4476159d064d20 12-Oct-2011 Wu-cheng Li <wuchengli@google.com> Update camera documentation about face detection.

bug:5169599
Change-Id: I5280137cee5401fadec36cae732ecb78a2d44dc3
ystem/camera.h
6bcd4d3e7310240d9424f13444542572e9ae3632 12-Oct-2011 Romain Guy <romainguy@google.com> Add ANDROID_API macro to export symbols

Change-Id: I55294713c8dd1ac32d6013d084f1bb502fc3572f
utils/compiler.h
8d43cb6edb5c0d9ebb1fa0586b738d7832a288b4 07-Oct-2011 Wu-cheng Li <wuchengli@google.com> Allow CAMERA_CMD_SET_DISPLAY_ORIENTATION to change during preview.

bug:5422679
Change-Id: Ia4a09328bd9e1d36af680be4d065bc08cf0dec0f
ystem/camera.h
134959a621ab03232f08d8ce6198e6a578311022 04-Oct-2011 Jeffrey Tinker <jtinker@google.com> Merge "Create drmrpc group for security services"
7005c0375416abb595721fe9c1324ed7356beb02 30-Sep-2011 Jeffrey Tinker <jtinker@google.com> Create drmrpc group for security services

Bug 4598045

Change-Id: I5550203927146fd6864408b3ac2f5e6f5d2b1d77
rivate/android_filesystem_config.h
9892aa5d041132f1048f6707e09a434c25f06862 30-Sep-2011 David Turner <digit@google.com> Merge "Fix SocketListener socket leak issue."
15c8c3ebf060c57cb165322cd498958cf9112d8b 29-Sep-2011 Lorenzo Colitti <lorenzo@google.com> Merge "Support adding, deleting, and clearing IPv6 addrs."
4520246d3534c087f3e9253c34f99dd1e45b7bd7 28-Sep-2011 Xianzhu Wang <wangxianzhu@google.com> Fix SocketListener socket leak issue.

The problem was: if a socket is shared between SocketListener and another
thread, only if the last reference is removed by SocketListener can the socket
be closed, otherwise the socket will leak. This sometimes happens in netd's
dnsproxyd.

This change let the SocketClient own the socket and close the socket when
the SocketClient is destructed.

Change-Id: I2865fbfe9ee4d8b3e43d7e02919dbb2d261f70de
ysutils/SocketClient.h
47ddb515b7d59b29d83628c1b4e48642dc0e49ba 26-Sep-2011 Lorenzo Colitti <lorenzo@google.com> Support adding, deleting, and clearing IPv6 addrs.

- Provide a function to add and delete IPv4/IPv6 addresses
using netlink.
- Provide a function that clears all IP addresses on an
interface that can be used by netd.

Also, a couple of cleanups:

- Update the header file to match reality, and include the
header file in the implementation. Also fix a caller that
has an incorrect method signature.
- Fix whitespace in Android.mk.

Change-Id: Ifba9d60cdfffb0b7e5c3b9c6ab328f5f77d259c4
etutils/ifc.h
918638c775ebd115084a42deb68bf518918f6640 28-Sep-2011 Mathias Agopian <mathias@google.com> enable HAVE_DLADDR, since... we have it

Change-Id: I02baa1f7d3383e93a43fa04de1d39f7398e971bc
rch/linux-arm/AndroidConfig.h
243123fb41d7d2981116bd5d11ba168b127d68e9 10-Sep-2011 JP Abgrall <jpa@google.com> libcutils: qtaguid: Support new functions, add tag resource tracking.

* Add support for
deleteTagData(tag, uid)
setCounterSet(counterSetNum, uid)
setPacifier(on)

* Add resource tracking
(If only kernel process termination had a hook)
Because the xt_qtaguid netfilter module needs to keep track of
tagged sockets, it needs a way to know when the process owning
the socket has died.
Normally the app will untag the sockets. But not on crash.
So the process opens the qtaguid misc dev, which is closed on crash,
at which point the xt_qtaguid can force-untag the processes sockets,
and thus allowing their refcount to go down and release them.

* Add pacifier support
Add function to enable/disable pacification of the xt_qtaguid
kernel module. (mostly for debugging)

Change-Id: I7f2228e65208046dd37ec1c7407ee307d5ba9b99
utils/qtaguid.h
f48b23688c1303212c65e470af9f9f3892e98f8e 30-Aug-2011 Dima Zavin <dima@android.com> core: Add a standalone charger UI binary

This can be launched from an 'on charger' section in init, which
is processed if androidboot.mode=charger is supplied on kernel
command line.

This is a standalone binary that has a simple "user interface"
and allows the standard production kernel to run while charging.
This removes the burden from the bootloader to get low-power mode
working.

Currently, the device will "power-on" (i.e. reboot) into normal
mode if the power key is pressed for X seconds, and will also
power down the device if the usb/ac cable is removed for Y seconds.

Change-Id: I780594b99211cb09de7f8519a69c5962eb91348a
Signed-off-by: Dima Zavin <dima@android.com>
rivate/android_filesystem_config.h
da04c52ab1036048520fca265cf02b61dca789e0 02-Sep-2011 Dima Zavin <dima@android.com> init/cutils: move list utility code to cutils from init

Change-Id: I357ceee813700297d8343159f22a07659e768d41
Signed-off-by: Dima Zavin <dima@android.com>
utils/list.h
8f91282ebe1963b9d27f8779ad1342302b293bd2 01-Sep-2011 Dima Zavin <dima@android.com> init/cutils: move kernel logging interface to libcutils from init

Change-Id: Ia0f91b1fcd6cae69d76bf3dd841340958db938a8
Signed-off-by: Dima Zavin <dima@android.com>
utils/klog.h
2d55e02d0f3c27f0c99ab889ab7b73126280a21c 01-Sep-2011 Dima Zavin <dima@android.com> libcutils/init: move uevent socket opening code to libcutils

Change-Id: I90adf78c0eb6185505f2bf7b62e96e25ab918345
Signed-off-by: Dima Zavin <dima@android.com>
utils/uevent.h
c9b06951e0349244fdca7401e7bcc54c538dce62 12-Aug-2011 Mathias Agopian <mathias@google.com> another attempt at fixing the SDK build.

Change-Id: I2b96cf7d046b694b232f0699257e4e0608fda660
ystem/graphics.h
7934d18aa62af9ab6a7ad6059e03ab24cf5d5e67 12-Aug-2011 Mathias Agopian <mathias@google.com> really fix the SDK build and fix THE build

Change-Id: I994cccf01bcafedc9ea11648eafc20300c58878b
ystem/graphics.h
33a1d436366163d396aa21a3d84099c57da4a50f 12-Aug-2011 Mathias Agopian <mathias@google.com> attempt to fix SDK build.

missing cdefs.h include

Change-Id: Ic7dfdfe74976a459f166a7576b077965cd1fda6a
ystem/graphics.h
8968195b197504b290451e136f2a01757ae1430c 11-Aug-2011 Mathias Agopian <mathias@google.com> Merge "Add a priority constant in to the graphics HAL header"
5c9be402a4d934b678fe6609b6cc4d488d6ddaa4 10-Aug-2011 Mathias Agopian <mathias@google.com> Add a priority constant in to the graphics HAL header

this is needed if a display/gpu driver needs to create
service threads that can block the main ui thread.
to avoid priority inversions, these must run at
HAL_PRIORITY_URGENT_DISPLAY

Change-Id: I3af592e05a6d1b6f39a2b7885a7c842e54abfce2
ystem/graphics.h
9b5c774369fcbd4460751f9b01e692d688c386ba 03-Aug-2011 Ashish Sharma <ashishsharma@google.com> libcutils: qtaguid: support socket untagging, return errors.

- Enable and rename qtaguid_tagSocket()
- Add qtaguid_untagSocket()
- Return kernel errors to caller

Change-Id: I8e33c8832b7f6b24ed9081f36ce1ea9ae6b099c0
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
utils/qtaguid.h
319f4e2793e691a7aeabad09e463ac09df562ed4 03-Aug-2011 Mathias Agopian <mathias@google.com> fix a typo that prevented api_connect/api_disconnect to work

also make the original connect/disconnect inlines be no-ops.

Change-Id: Ic723e21455491c63ccbbcd01d3a47cd7ed788319
ystem/window.h
a43546a874890064606489f2125181a5f65adacd 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Change CAMERA_MSG_METADATA_FACE to CAMERA_MSG_PREVIEW_METADATA.

bug:4460717

Change-Id: Icb9c54fa35a1af7c4f761d1a25061e6993cfc4af
ystem/camera.h
ed7f9aaf76d58ac1a4a34838ab5f4d6899714056 02-Aug-2011 Mathias Agopian <mathias@google.com> Merge "connect/disconnect is now deprecated."
8ad545297cdb180893c4f957682857953c0d3c5f 30-Jul-2011 Mathias Agopian <mathias@google.com> connect/disconnect is now deprecated.

these hooks are replaced by api_connect/api_disconnect
which serve exactly the same purpose than before.
the old hooks are deprecated because they won't be called
from the gl driver anymore, but instead will be called
by our EGL wrapper. to maintain binary compatibility
it was necessary to introduce these new hooks.

Change-Id: I11756a5d99e3ea3d6fb61b943f82037932dfa56a
ystem/window.h
3ac91d178bfbc38fbeb4743f9fbe5619e8e744d0 30-Jul-2011 Wu-cheng Li <wuchengli@google.com> Change int to int32_t in camera_frame_metadata and camera_face.

bug:4460717
Change-Id: I5c7e4ed117c2b481fb0f7d9db418f98b7459adde
ystem/camera.h
9d5bfd35414f2be2f1ea8a2cabee8f407d3e38c0 27-Jul-2011 Wu-cheng Li <wuchengli@google.com> Add camera frame metadata and face detection structs.

bug:4460717
Change-Id: Ib72abfba080529472cf3fecb712043403bf7295f
ystem/camera.h
c349636c7cec0abe3a92c220a6d828edbd21208b 26-Jul-2011 Jean-Michel Trivi <jmtrivi@google.com> Merge "Fix bug 4319552 Use commonly defined channel mask values in native"
4518e6a2996da0fa00ef427a79227b90ccf94ce0 26-Jul-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add camera face detection enums."
de19ea26025927fe95ec96818a13dd58bec91cf6 21-Jul-2011 Wu-cheng Li <wuchengli@google.com> Add camera face detection enums.

bug:4460717
Change-Id: Id5cadcd7cdab9a9978569caf27d2ef2747fa6570
ystem/camera.h
6d4f39754bff9c1dcb8023839ea583b6d0723b14 26-Jul-2011 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 4319552 Use commonly defined channel mask values in native

The native channel mask values are equal to the Java values, which
differ from other standards simply for legacy reasons. It is
preferrable to use commonly used values, and translate from the
Java constants to the common values when specifying a Java mask.
The new definitions uses the same values and ordering as in
OpenSL ES and other standards.

Change-Id: I879f64b281714c60684cd8b36fe6ae648a555121
ystem/audio.h
33fad99acfaffb775ce0792b06ba97bb6cacce1a 25-Jul-2011 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 4211099 channel constants and 7.1 mask

Add definitions for the side and elevated channels.

Ccorrect definition of 7.1 mask which uses
the side channels rather than the front half-pan channels.

Change-Id: I5b6f601f6404d782dc46ef47efac9cc8441fef90
ystem/audio.h
5100916182b05971975f8d8fe65a1255e2c5ac96 20-Jul-2011 Mathias Agopian <mathias@google.com> support for "Add an ANativeWindow API for SurfaceFlinger to suggest an optimal buffer orientation"

Bug: 4487161
Change-Id: I36708fd155415adbb666137692252381c19abcf6
ystem/window.h
ae3736a3d1418eb1a1e57895ce410256d7106aa3 14-Jul-2011 Mathias Agopian <mathias@google.com> Add lock/unlock perform codes

these will be used to implement lock/unlock on
surfacetexture.

Change-Id: I75f8d8dd136433bd5d61610caeb763d836f8b4e7
ystem/window.h
42cc1edfe7edf613e17bff97f30ff124ada05136 14-Jul-2011 Mathias Agopian <mathias@google.com> Add setScalingMode to ANativeWindow

Also cleanup the header a bit. Give fixed values to enum
because these can never change. And try to make all
comments C (as opposed to C++)

Change-Id: Ie0914ccd81a0231f32e8c21a8ff730985c5c3607
ystem/window.h
5423e9e4ce52a45ac42419f1467e79ba9e62298f 12-Jul-2011 Jamie Gennis <jgennis@google.com> ANativeWindow: add more connectable APIs

This change adds three new possible values for the 'api' argument to
native_window_connect: CPU, MEDIA and CAMERA.

Change-Id: I9305a5c0c87ab06a2c2bd7c585f54c7c7470408a
Bug: 5020877
ystem/window.h
6dce8322d66361e40d1feb5a6c3de15244de5949 10-Jul-2011 Ashish Sharma <ashishsharma@google.com> Fix header file inclusion for type uid_t.

Change-Id: I401fc0b41b4b77114fce7240662c9dfe4509e841
utils/qtaguid.h
8626cce5f381899f47e3a82e2ef4c98f183391b0 08-Jul-2011 Ashish Sharma <ashishsharma@google.com> Add communication support for xt_qtaguid(network traffic accounting) kernel module.

Change-Id: Ie0fb5b593987c53ee6f906fe6e0caab5a581d5a1
utils/qtaguid.h
6b06f9f48dde2802218cade3fdb12a4fed5f46f6 08-Jul-2011 Jamie Gennis <jgennis@google.com> Merge "ANativeWindow: add setters for dimensions and fmt"
7da24861ea933db3bd27509f91717b5c63fd6dde 08-Jul-2011 Wink Saville <wink@google.com> am 436deea5: am 979203ee: Add reset_mask as parameter to ifc_reset_connections

* commit '436deea5bbd43ae402ca8ee5bbc7fed3daaf3fce':
Add reset_mask as parameter to ifc_reset_connections
436deea5bbd43ae402ca8ee5bbc7fed3daaf3fce 08-Jul-2011 Wink Saville <wink@google.com> am 979203ee: Add reset_mask as parameter to ifc_reset_connections

* commit '979203ee34084327bf4f20ad1f878450de94826e':
Add reset_mask as parameter to ifc_reset_connections
979203ee34084327bf4f20ad1f878450de94826e 07-Jul-2011 Wink Saville <wink@google.com> Add reset_mask as parameter to ifc_reset_connections

The reset_mask allows either IPv4 and or IPv6 connections
of an interface to be reset.

Bug: 4981919
Change-Id: Id2d9ab90e30091d3d0764c66d4b01b73c0edbfcc
etutils/ifc.h
208ec5ec564597bdf8b478a424cc9ccc09547bac 07-Jul-2011 Jamie Gennis <jgennis@google.com> ANativeWindow: add setters for dimensions and fmt

This change adds two new 'perform' setters to set the dimensions and
pixel format of the buffers that will be dequeued from the
ANativeWindow. These new setters provide the same functionality as
_SET_BUFFERS_GEOMETRY, but allow the format and dimensions to be set
independently. The _SET_BUFFERS_GEOMETRY setter is still supported to
maintain backwards compatibility.

Change-Id: Ib49b7798ffebe61eff2c8e4202fc3048cfec7bdd
ystem/window.h
1f311f2f160853bebab70d31dabf17aa1a83f2a6 02-Jul-2011 Glenn Kasten <gkasten@google.com> Merge "Bug 4571308 Timestamps are not always monotonic"
04918930236981a6d2a096a73854caa96cb94bda 01-Jul-2011 Brian Carlstrom <bdc@google.com> Revert "Add keychain user"

This reverts commit 6541ef1562ccf93e498d653598330a7fc80ad2b2.

Bug:4970237
Change-Id: I23a90eb89c1d19893d2ba7065fc624c0521cb06e
rivate/android_filesystem_config.h
2e81f58baa246adbe4dcb479ef40c3f1ffcf8534 30-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Create groups to protect bandwidth statistics."
c322f67140d52014c47dff41d03a601b251f56ed 27-Jun-2011 Glenn Kasten <gkasten@google.com> Bug 4571308 Timestamps are not always monotonic

Change-Id: Ia4e89a286a514d91d76268235c716e328cd3d0c2
ystem/window.h
2a56688da92fcf22ea8ce996e2a0e7b453d1543b 24-Jun-2011 Mike J. Chen <mjchen@google.com> Workaround Motorola ril.so incompatiblity with Netlink changes

To workaround a binary incompatiblity with Motorola's ril.so, I had to
temporarily provide the old constructor for NetlinkListener as well as
a new contructor that takes an additional format argument.
There's still a slight chance of a problem because the size of the
NetlinkListener has changed with the addition of the
mFormat member, but so far I've not seen any obvious problem with that
incompatiblity.

Another way we could have worked around the incompatiblity is to have
netd (the main user of the new format argument to NetlinkListener) keep
track of the format itself in it's NetlinkHandler (derived from NetlinkListener)
and supply it's own version of onDataAvailable() that's almost 100% identical
to NetlinkListener's except for the decode() call. That would allow us
not to modify NetlinkListener at all. Worth considering but I think it's
more properly divided right now and we just have to make Motorola fix their
code (and ideally not use our private APIs).

This change should be reverted when Motorola's has fixed their ril to
either not use our private APIs or to use our updated ones.

Change-Id: I255cca6908444e56cbbbed7eef1fa0cf1d8f0918
Signed-off-by: Mike J. Chen <mjchen@google.com>
ysutils/NetlinkListener.h
17260b14682d4fe59dad3de2de8c9370e6ba9a71 24-Jun-2011 Mike J. Chen <mjchen@google.com> Cleanup NetlinkListener and NetlinkEvent

To make it easier to be compatible with older existing code, use
default parameters instead of separate functions for setting.

Also, reintroduce the const usage that was not in the original
changes by Stan.

Also fix some indent spacing.

Change-Id: Ice9ec7f0d5c4a0673037e2e04a764d88a98f68eb
Signed-off-by: Mike J. Chen <mjchen@google.com>
ysutils/NetlinkEvent.h
ysutils/NetlinkListener.h
ec16b9d47cacb0d873ee0ff80c919f49215c0005 23-Jun-2011 Mike J. Chen <mjchen@google.com> Revert "Revert "Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet""

This reverts commit 1d504eeb50d980c222572629383bb76315f32ca0.

Conflicts:

libsysutils/src/NetlinkEvent.cpp

Bring back the changes from Stan Chesnutt regarding adding NETLINK_ROUTE
processing. The original commit message description was:

Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet
physical-layer up/down events can be tracked. Upper layers will use these
events to enable/disable Ethernet connectivity.

The original change was reverted due to an incompatiblity with Motorola's
ril.so binary. I'll submit a patch to workaround that incompatiblity
separately.

Change-Id: I4e97ac98833b10543e654c63ecae3b9b8c7db44f
Signed-off-by: Mike J. Chen <mjchen@google.com>
ysutils/NetlinkEvent.h
ysutils/NetlinkListener.h
4f1df18766fa13959f347f9c0cbb3dfa67273fa7 03-May-2011 Jeff Sharkey <jsharkey@android.com> Create groups to protect bandwidth statistics.

Introduces new "net_bw_stats" group which will protect reading
detailed bandwidth statistics. Also introduce "net_bw_acct" group
which will enable specific applications to request that their network
traffic be counted against other UIDs.

Change-Id: Ic0ec04e0d2bb9573f3c2a094ebd6d6a8cae0aae6
rivate/android_filesystem_config.h
b06dfe142505df7efc729455f30ae73fa3cf6fae 20-Jun-2011 Jean-Baptiste Queru <jbq@google.com> am 4c78d862: am a08f7ae3: Merge "tweak for forward-compatibility"

* commit '4c78d8620514fe1a704872cba66bc1b14d4e2a66':
tweak for forward-compatibility
b6c15de82a9bf477aab34763c9a4e9d8612c8af1 18-Jun-2011 Jean-Baptiste Queru <jbq@google.com> tweak for forward-compatibility

Change-Id: I1896be16622b452a3652412af3c64f8c550f71d0
utils/str_parms.h
da382248758eacd9f91d6f0a50dff3f021791c24 17-Jun-2011 Eric Laurent <elaurent@google.com> Fixed some audio helper functions

Make sure audio_is_valid_format() is true only
for formats supported by AudioTrack and AudioRecord.
Generalized audio_is_linear_pcm().
Added audio_bytes_per_sample() function.

Change-Id: If588af6c08f09796ab04bccbbd6e720f1e914412
ystem/audio.h
28e08dc58148dba98feefbadc9657840fe141084 14-Jun-2011 Dima Zavin <dima@android.com> core: move audio_policy.h here from hardware

Change-Id: I6b8c04c975e01f2502d766ed2b9353d3c83193b3
Signed-off-by: Dima Zavin <dima@android.com>
ystem/audio_policy.h
3142a203b3c493094f59e5acda0cfa2360dd9038 27-May-2011 Eric Laurent <elaurent@google.com> Merge "Config utils improvement"
38d14f76048e6a14303dc81275303b63c9d7b064 27-May-2011 Eric Laurent <elaurent@google.com> Merge "Added PCM formats to audio.h"
2b8f76cdbb254ac1170087a40dbf30b7627f3516 05-May-2011 jeffhao <jeffhao@google.com> Tracking merge of dalvik-dev to master

Reordered bootclasspath to allow verification of all framework methods.
git cherry-pick --no-commit ec164a0170955fe63106c2576a65bc4ffb1df425

Address CVE-2011-1090.
git cherry-pick --no-commit 3365288d3c00072689cd9d733e055561cadc87b5

Change-Id: I6a89bc600ced06a0cb84ae1670cb7a6ea39de9c8
utils/sockets.h
e555f54965b2955b2977c137bca66ca1be4be5f4 27-May-2011 Ken Sumrall <ksumrall@android.com> Merge "Crypto changes for devices that don't write ext4 fs on wipe"
b05b0b5d3b01441d648782f552d9f7e2d7bfbbc1 19-May-2011 Ken Sumrall <ksumrall@android.com> Crypto changes for devices that don't write ext4 fs on wipe

This adds a new function to libcutils, partition_wiped().
This is used to determine if a partition is wiped.

Change-Id: Ibb388976c6b5bd3923b62d8f79b2b97748abf6c1
utils/partition_utils.h
c3cf1a827807d11b07bce9d6941342c68808aab1 26-May-2011 Eric Laurent <elaurent@google.com> Config utils improvement

Added a function to free resources allocated by config node tree.

Change-Id: I2ee8ae642899ec4501fa6e490c5be7efaa2d738e
utils/config_utils.h
9714b27bb41d999cb61b22833d3f253552b3c82b 26-May-2011 Eric Laurent <elaurent@google.com> Added PCM formats to audio.h

Added formats for 32 bit PCM audio to allow direct use of
common audio formats defined in audio.h by audio effect
API defined in audio_effect.h

Change-Id: I5d58c2db8325ca625ab6d2b10cc0d422ba119ca5
ystem/audio.h
7956d759be249fabef78a933db273709661e4284 26-May-2011 Nick Kralevich <nnk@google.com> Merge "rename uevent_checked_recv to uevent_kernel_multicast_recv"
1ffdb38213d177a83d74e1dc3bf41237dcbe8c9a 24-May-2011 tedbo <tedbo@google.com> Fix broken comment on closing #endif in window.h

The closing #endif comment is missing the comment delimiters. This
change adds them and fixes a compile warning about extra tokens after
endif.

Change-Id: If8295aa6fbb2b21c2b56fe57a467dcde79c65de3
ystem/window.h
da1a1f629b0f3b3a63d9951de4381a41bc31fb91 18-May-2011 Jamie Gennis <jgennis@google.com> fix a comment typo in system/graphics.h

Change-Id: Ia6471a1c005cdc13833e6b0444e758add5a990e0
ystem/graphics.h
860f98afe175667d2f72f7a5e8b1bf58bfdf96ea 13-May-2011 Jean-Baptiste Queru <jbq@google.com> am 327b2b70: Merge "move core audio definitions under system/core"

* commit '327b2b709f1c9ed119b2d87cd95d4a5367fe0338':
move core audio definitions under system/core
253b598dc081640d2962bb2de5f876a75a22ec47 12-May-2011 Dima Zavin <dima@android.com> move core audio definitions under system/core

Change-Id: I58b7324edff834b3afa4d9c86452e66f8c29c63b
Signed-off-by: Dima Zavin <dima@android.com>
ystem/audio.h
e8e4be57aa45f621d231a40801a4dea877be09d5 12-May-2011 Dima Zavin <dima@android.com> move core audio definitions under system/core

Change-Id: I58b7324edff834b3afa4d9c86452e66f8c29c63b
Signed-off-by: Dima Zavin <dima@android.com>
ystem/audio.h
34df17d03289cee83cee176807c9390b084d77b9 12-May-2011 Jean-Baptiste Queru <jbq@google.com> am 7078f776: Merge "cutils: add popcount/popcountl/popcountll static inline definitions"

* commit '7078f776fd658f86ecb249eeffc6e7cb0c4ae66a':
cutils: add popcount/popcountl/popcountll static inline definitions
4af1cf2bd7b6a2bc519e6ad7ea342963b9118eb8 11-Mar-2011 Dima Zavin <dima@android.com> cutils: add popcount/popcountl/popcountll static inline definitions

Just pass them through to their specific GCC builtins. If we find
that the builtins are not performing well or have other issues, we can
pull in existing public implementations and/or write arch-specific
helpers if necessary.

Change-Id: I278e6b73d75fac88808ed4546070d288c06f79e0
Signed-off-by: Dima Zavin <dima@android.com>
utils/bitops.h
57de8b8f27f887ca8084671df777a4ac199ba647 11-May-2011 Nick Kralevich <nnk@google.com> rename uevent_checked_recv to uevent_kernel_multicast_recv

Change-Id: I1839627490080efcbb7269699709064856312f8b
utils/uevent.h
0ab886bdabd167b32aad90ce5d4e00ce8392858c 01-May-2011 Iliyan Malchev <malchev@google.com> move ANativeWindow and friends under system/core

This patch moves the definition of ANativeWindow from frameworks/base into
system/core. We move ANativeWindow for two reasons.

Firstly, the native-window interface may need to be used by lower-level code
than the framework. Such code (such as the camera HAL) is not allowed to use
definitions from frameworks/base, since the latter is stacked on top of the
former. Thus moving (the interface definition) ANativeWindow under system/core
lowers the level at which we can work with windows.

Secondly, this enables an implementation of ANativeWindow that lies outside of
frameworks, enabling quick initial bringup of graphics.

Change-Id: I851b9bb2834bcec73255b5af82f66411e54bb1a5
Signed-off-by: Iliyan Malchev <malchev@google.com>
ystem/window.h
66ea3574b6383e4107c74a192cadda1427320375 01-May-2011 Iliyan Malchev <malchev@google.com> move non-HAL definitions to syste/core/include

This patch moves camera- and graphics-related definitions out of the hardware
HAL layer and into system/core. These definitions are used both by the HAL and
by higher-level code as well. More functionality (e.g., audio definitions)
will be moved here as well.

Change-Id: I225f12374ce54fa393640dce53738267d0d703e9
Signed-off-by: Iliyan Malchev <malchev@google.com>
ystem/camera.h
ystem/graphics.h
3ffd793a1d6a134a5fde9eabd936614d1b02dceb 13-Apr-2011 Iliyan Malchev <malchev@google.com> native_handle.h: fix declaration

Change-Id: I452a517ee6982995318802eb4bbb23bd79401c4d
Signed-off-by: Iliyan Malchev <malchev@google.com>
utils/native_handle.h
0e02fcab11f969024813f636909c572e4a73cc73 28-Apr-2011 Dima Zavin <dima@android.com> Merge "libcutils: add a simple string parameter parsing ("a=b;c=d;") helper utils"
4682abaaa6f714d7bcfcf861af77b1b3c3c64281 27-Apr-2011 Nick Kralevich <nnk@google.com> am b0d0e260: resolved conflicts for merge of 2baeb898 to honeycomb-plus-aosp

* commit 'b0d0e260bd6118959fa0e2d3c84037b3e0178551':
Fold uevent message origin checking from init into libcutils.
b0d0e260bd6118959fa0e2d3c84037b3e0178551 27-Apr-2011 Nick Kralevich <nnk@google.com> resolved conflicts for merge of 2baeb898 to honeycomb-plus-aosp

Change-Id: Ib3169b3a36aa13ef413da624355b1737e9b76fd9
2baeb89882259661e17d7f631ae7f8987cf53c46 27-Apr-2011 Nick Kralevich <nnk@google.com> am a2842b68: Merge "Fold uevent message origin checking from init into libcutils."

* commit 'a2842b68548c8cdfbf6b3c14480ab04bab9010ea':
Fold uevent message origin checking from init into libcutils.
3f582e92f07d358f3d0941b86407b39e2e7e67cc 25-Apr-2011 Vernon Tang <vt@foilhead.net> Fold uevent message origin checking from init into libcutils.

Change-Id: I7cbc0cb840d1b4962e6c360fdad9a9c0ce20e87b
utils/uevent.h
bb738d6727f589240dbd31b59e5747eab62ab59f 27-Apr-2011 Nick Kralevich <nnk@google.com> am de35f274: am 03752be0: am 0c297f5e: Merge "Revert "Fold uevent message origin checking from init into libcutils.""

* commit 'de35f2741c4e32e331a92be99f7c04b92b94beb2':
Revert "Fold uevent message origin checking from init into libcutils."
de35f2741c4e32e331a92be99f7c04b92b94beb2 27-Apr-2011 Nick Kralevich <nnk@google.com> am 03752be0: am 0c297f5e: Merge "Revert "Fold uevent message origin checking from init into libcutils.""

* commit '03752be0a437d12e19ac73ebe23385fe6f756e2c':
Revert "Fold uevent message origin checking from init into libcutils."
03752be0a437d12e19ac73ebe23385fe6f756e2c 27-Apr-2011 Nick Kralevich <nnk@google.com> am 0c297f5e: Merge "Revert "Fold uevent message origin checking from init into libcutils.""

* commit '0c297f5ebb5ae7af2854f7c07d97bcdd13c159fc':
Revert "Fold uevent message origin checking from init into libcutils."
de9e65dd6586a1c62fe010f9512e326591a4863d 27-Apr-2011 Nick Kralevich <nnk@google.com> Revert "Fold uevent message origin checking from init into libcutils."

This reverts commit 8405ec0e7562a370174d9973dd94984c47e49c36.

The original change does not compile.
utils/uevent.h
3268eda4dc028e338728d822e18974ed6e7cd639 27-Apr-2011 Nick Kralevich <nnk@google.com> am e3ab4245: am a7cf7ed9: am 282c2ab4: Merge "Fold uevent message origin checking from init into libcutils."

* commit 'e3ab42457077ec2a66bac553e59a7fee08d4fa9e':
Fold uevent message origin checking from init into libcutils.
e3ab42457077ec2a66bac553e59a7fee08d4fa9e 27-Apr-2011 Nick Kralevich <nnk@google.com> am a7cf7ed9: am 282c2ab4: Merge "Fold uevent message origin checking from init into libcutils."

* commit 'a7cf7ed93486240ca48a407e67c7c3683a3b93aa':
Fold uevent message origin checking from init into libcutils.
a7cf7ed93486240ca48a407e67c7c3683a3b93aa 27-Apr-2011 Nick Kralevich <nnk@google.com> am 282c2ab4: Merge "Fold uevent message origin checking from init into libcutils."

* commit '282c2ab408d487d0995362d1b9aa97fe30d97ebd':
Fold uevent message origin checking from init into libcutils.
8405ec0e7562a370174d9973dd94984c47e49c36 25-Apr-2011 Vernon Tang <vt@foilhead.net> Fold uevent message origin checking from init into libcutils.

Change-Id: I1a38e611a7ad990f74306ce453740a1eeed2416d
utils/uevent.h
0fad7d023f0229f763a58dd479f78397322baa6d 24-Mar-2011 Dima Zavin <dima@android.com> libcutils: add a simple string parameter parsing ("a=b;c=d;") helper utils

Change-Id: Ifabeb75550fa6e351434e6e6d036b19331daf6c1
Signed-off-by: Dima Zavin <dima@android.com>
utils/str_parms.h
b60d9ce1fcedf264f7cd7eb9fb8895b118f72ac3 12-Apr-2011 Carl Shapiro <cshapiro@google.com> Make atomic-inline.h usable from ordinary C++ code.

Change-Id: I18dcba9cb3adc22f26403e94df4b2684f51090ed
utils/atomic-inline.h
6541ef1562ccf93e498d653598330a7fc80ad2b2 15-Feb-2011 Brian Carlstrom <bdc@google.com> Add keychain user

Change-Id: Id6738d7c97dd58b2043e2cba018797e3b2b4d77a
rivate/android_filesystem_config.h
18247d74be9d0d4d6f1ae25bdd198e5dbf522af8 05-Apr-2011 Jeff Hamilton <jham@android.com> am ee3420bc: resolved conflicts for merge of 65475f89 to honeycomb-plus-aosp

* commit 'ee3420bc124613827af474684c3015d12742c70d':
Make the NFC UID forward compatible.
ee3420bc124613827af474684c3015d12742c70d 05-Apr-2011 Jeff Hamilton <jham@android.com> resolved conflicts for merge of 65475f89 to honeycomb-plus-aosp

Change-Id: I9f77e84d887dbe84bb94de0fdd369d8de24fbec3
65475f89e14cb0914db336652c345e2847c7cb92 04-Apr-2011 Jeff Hamilton <jham@android.com> am 336bc321: Make the NFC UID forward compatible.

* commit '336bc321a6e978a273098148e13a82c5e7ec3be5':
Make the NFC UID forward compatible.
336bc321a6e978a273098148e13a82c5e7ec3be5 01-Apr-2011 Jeff Hamilton <jham@android.com> Make the NFC UID forward compatible.

Change-Id: Icfa302c22151b3d722ad0da7e58806f74730e1a3
rivate/android_filesystem_config.h
412514ea60a707cefb42f2609a3422223bd86381 30-Mar-2011 Alexandre Elias <aelias@google.com> Add ifndef guards to remaining logging macros.

Change-Id: I5fce9bffdb9e52d50059034fd1cc05ba7f0e3b87
utils/log.h
4fecade5f21d5d062ebe1c70535367d3407bb68f 29-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am cb1e616e: am 7c556549: Merge changes Icdefb5ff,Icd7f5f03

* commit 'cb1e616e3c108a9c8b159bb95c3356acf5797ba2':
Fix potential race introduced in Icd7f5f03
SocketClient: add optional reference counting
be61f39a6b3b92fd6f0a9d1e732f59fa08e95da6 25-Mar-2011 Jeff Hamilton <jham@android.com> am a6a36c0b: Update the value for the NFC shared UID.

* commit 'a6a36c0b799b84d06b695027d205f21d13a3275b':
Update the value for the NFC shared UID.
a6a36c0b799b84d06b695027d205f21d13a3275b 25-Mar-2011 Jeff Hamilton <jham@android.com> Update the value for the NFC shared UID.

Change-Id: I47edf39dbdf2ebd41f44ca69aac250d8991dec4c
rivate/android_filesystem_config.h
3549b0dc2829184f9911d27a6ab0cf39b19764f1 18-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> Fix potential race introduced in Icd7f5f03

Digit wrote:

"You probably don't want to close the socket here without updating
c->socket as well. Otherwise, another thread holding a handle to the
client after the c->decRef() could end up sending a message to a
different socket, if the file descriptor index is reused by another
client in the meantime."

Change-Id: Icdefb5ffc0c7607325d7db761e1f04e5d868bfb7
ysutils/SocketClient.h
13aa8ad44570bceef73115cea749b11f30888530 17-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> SocketClient: add optional reference counting

Needed to fix a race in netd.

Bug: 3438459
Change-Id: Icd7f5f035510235f733a25c0621479d3e644b152
ysutils/SocketClient.h
100c0e2dab243da3a5351f1acbcdc560af10a405 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix race condition in SocketListener thread.

+ Handle EINTR in accept(), write() and select()
+ Fix a memory leak when deleting the mClients list
+ Fix typo in SocketListener.h

Change-Id: Ie68bb3e2dbefe0dfdaa22a5cd06a42dbc4c0f8aa
ysutils/SocketListener.h
4be4e69f0128b7d9b0a29651ef4b79d806ae3ce7 18-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> Fix potential race introduced in Icd7f5f03

Digit wrote:

"You probably don't want to close the socket here without updating
c->socket as well. Otherwise, another thread holding a handle to the
client after the c->decRef() could end up sending a message to a
different socket, if the file descriptor index is reused by another
client in the meantime."

Change-Id: Icdefb5ffc0c7607325d7db761e1f04e5d868bfb7
ysutils/SocketClient.h
648ebad883e7825353c841950dd7d78664c238e6 17-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> SocketClient: add optional reference counting

Needed to fix a race in netd.

Bug: 3438459
Change-Id: Icd7f5f035510235f733a25c0621479d3e644b152
ysutils/SocketClient.h
29d1f53a56fc2eb5a52a80ceb6cfbde778e4bc12 14-Mar-2011 Dima Zavin <dima@android.com> Merge "cutils: add popcount/popcountl/popcountll static inline definitions"
bb889dde13c7d47b69a52159604cf5b2763ce2d2 11-Mar-2011 Ken Sumrall <ksumrall@android.com> am 276df093: am 70987108: Merge "Try to unmount writable filesystems when rebooting" into honeycomb-mr1

* commit '276df0936dbf438b32ab099b04f69f01d7f1eed7':
Try to unmount writable filesystems when rebooting
e3aeeb4de34dbb93e832e6554f494122ba633f3b 08-Mar-2011 Ken Sumrall <ksumrall@android.com> Try to unmount writable filesystems when rebooting

Ext4 filesystems like to be unmounted before rebooting. The Android system
doesn't have a traditional Linux init setup, and shutting down the system
was not much more than calling sync(2) and reboot(2). This adds a new
function to libcutils called android_reboot(). By default, it calls sync()
and then remounts all writable filesystems as read-only and marks them clean.
There is a flag parameter in which the caller can ask for sync() not to be
called, or to not remount the filesystems as read-only. Then it will call
reboot(2) as directed by the other parameters. This change also updates
adb, init and toolbox to call the new android_reboot() function.
Fixes bugs 3350709 and 3495575.

Change-Id: I16d71ffce3134310d7a260f61ec6f4dd204124a7
utils/android_reboot.h
5a809b90e91d2ccf4c84181d10d175eb2c1c6bc7 11-Mar-2011 Dima Zavin <dima@android.com> cutils: add popcount/popcountl/popcountll static inline definitions

Just pass them through to their specific GCC builtins. If we find
that the builtins are not performing well or have other issues, we can
pull in existing public implementations and/or write arch-specific
helpers if necessary.

Change-Id: I278e6b73d75fac88808ed4546070d288c06f79e0
Signed-off-by: Dima Zavin <dima@android.com>
utils/bitops.h
1e47832909606ae3cbd0169ec48956b5c8fdea4f 03-Mar-2011 Raphael <raphael@google.com> Revert "Define O_BINARY for non-Windows platforms."

This reverts commit bd70e4aca5680acb7d5da5500b7e8c618fb499f2.
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-ppc/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
879dd27b2b39064df902941a6d84c4ac6c7519dc 03-Mar-2011 Raphael Moll <ralf@android.com> am e24624da: am 733e4701: am fa5f2ad4: am bd8f4a85: Merge "Define O_BINARY for non-Windows platforms."

* commit 'e24624da7d29374ad59d20312ca0e0ea2ea5596b':
Define O_BINARY for non-Windows platforms.
e24624da7d29374ad59d20312ca0e0ea2ea5596b 02-Mar-2011 Raphael Moll <ralf@android.com> am 733e4701: am fa5f2ad4: am bd8f4a85: Merge "Define O_BINARY for non-Windows platforms."

* commit '733e47011023787cf996b1b4f232453b2324e303':
Define O_BINARY for non-Windows platforms.
8d1c6e76859e1dd51644f5f0f7f21f3950430157 02-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> Make optional valgrind binaries +x.

Change-Id: If3417e0c8728c7c74badb12de734cf06e794619d
rivate/android_filesystem_config.h
bd70e4aca5680acb7d5da5500b7e8c618fb499f2 16-Feb-2011 Raphael Moll <ralf@android.com> Define O_BINARY for non-Windows platforms.

All tools (aapt, aidl, dexdump, etc.) need this flag to open()
binary files, or they risk reading corrupted data on Windows.

A bunch of these tools just conditionaly define O_BINARY in
their C files. Seems it would just make sense to define it globally.

Change-Id: Ia5c0a59e9e77bbdcbce235233555f611207abed8
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-ppc/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
b5d68a3c28d0b7a947373344cbda2a2369d0b67d 14-Feb-2011 Mike Lockwood <lockwood@android.com> libusbhost: Save endpoint ID in usb_request struct

Change-Id: I2cf189cee67c2efbcf919c8bae1447a6cb112f02
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
4fe0bc5cf618e53d29941cd4a36b635621f743ce 07-Feb-2011 Paul Eastham <eastham@google.com> am 57cd87d9: am 1ace223f: Set default permissions for preloaded /data/media aka /sdcard content.

* commit '57cd87d9ccf57a2c874fafd1a0b8cab7ebea646f':
Set default permissions for preloaded /data/media aka /sdcard content.
1ace223fcbf8da9e0d22e31c1b3129a7a8276cb1 04-Feb-2011 Paul Eastham <eastham@google.com> Set default permissions for preloaded /data/media aka /sdcard content.

Change-Id: Ia67cbdbfbcd423cf163f0fce5c6edc215564e782
rivate/android_filesystem_config.h
09dd819d2794caf1a17cd03592c100755fb25577 02-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Stop using netmask in the framework

This pushes prefixLength down as far as we can.

bug:2542681
Change-Id: I94b7cde9d10e97ee2c071d92f25555cff5934f0b
etutils/ifc.h
120b57a3d9703bccba534af335aa94dd3a41be2f 27-Jan-2011 Mike Lockwood <lockwood@android.com> libusbhost: Add call for synchronous bulk transfers

Also clean up and add timeout to control request transfer

Change-Id: Ibc2d8ac64d0fa90e0a23e6225ce2c49b23bb0d97
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
b42db825e103b1c37107bf8cd9a35fe4b8a07a13 28-Jan-2011 Dmitry Shmidt <dimitrysh@google.com> Merge "libnetutils: Clean all IPs assigned to the interface on cleaning"
9092b91ccaa4c6069036f72163e6473a5ca408c4 27-Jan-2011 Dmitry Shmidt <dimitrysh@google.com> libnetutils: Clean all IPs assigned to the interface on cleaning

Change-Id: Ic285bbb4b224fc4e62e88e76b8b448edbe814a17
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
etutils/ifc.h
faab26d542740f03cbe12e44f6af1f97e8e7c12e 14-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Change our dhcp interface to be IPv6 compat.

Doesn't do IPv6, but removes v4-specific structures from the framework
(netmask, ints for addrs)
bug:2542681

Change-Id: I1110e6f32d42a472b104835a4298e18b391db0a7
etutils/dhcp.h
f59ed65c47576435a0438263b3832bb19e2eb8d2 25-Jan-2011 Carl Shapiro <cshapiro@google.com> am 3b093369: am 1147407b: Merge "Remove unconditional swap from the android atomic operations suite." into honeycomb

* commit '3b093369d85f2d248799073152ece79987d4b30b':
Remove unconditional swap from the android atomic operations suite.
0a16d839698e46e87268707e79e66f51a42b932e 23-Jan-2011 Carl Shapiro <cshapiro@google.com> Remove unconditional swap from the android atomic operations suite.

Bug: 3381237
Change-Id: I7bdc7c8eb4c1cc6303d96e40ca2f196a007c4dd2
utils/atomic-arm.h
utils/atomic-x86.h
utils/atomic.h
328c0d4a89d7c04c829c587657b95b3241f64f60 23-Jan-2011 Glenn Kasten <gkasten@google.com> Merge "Bug 3361124 Remove drmioserver"
ec9e7b1c1844e66c39a4f63ded8208c1717380f8 22-Jan-2011 Mike Lockwood <lockwood@android.com> libusbhost: Add usb_device_connect_kernel_driver()

This can be used to ask the kernel to disconnect its driver for a device
so usb_device_claim_interface() can claim it instead.

Also increased size of descriptor buffer and added some debugging logs

Change-Id: I4945196d957fb8493716eb9b7e5463c06b168ef1
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
b29b33841bd2f5143e2705525bfc4f8a2d2b6316 20-Jan-2011 Glenn Kasten <gkasten@google.com> Bug 3361124 Remove drmioserver

Change-Id: Ie3b20b487c1466737921567ab2d043e230356bf4
Note: safe to re-use the drmio uid/gid as no files were ever created.
rivate/android_filesystem_config.h
cf9e1003ce69a2aea2c64cd82d54a0d3e8917dbb 17-Jan-2011 David 'Digit' Turner <digit@google.com> libsysutils: Fix race condition in SocketListener thread.

+ Handle EINTR in accept(), write() and select()
+ Fix a memory leak when deleting the mClients list
+ Fix typo in SocketListener.h

Change-Id: Ie68bb3e2dbefe0dfdaa22a5cd06a42dbc4c0f8aa
ysutils/SocketListener.h
af7bdc646088e3112052f4fd35061bb720393287 10-Jan-2011 Mike Lockwood <lockwood@android.com> Add separate permission and group for access to MTP USB driver

Since the "usb" group and ACCESS_USB permission will be used by regular apps
to access USB devices in host mode, we need a separate permission for the
device side MTP driver.

Change-Id: Ibb546b8726d61e041fc7c273f71929624ad1575b
Signed-off-by: Mike Lockwood <lockwood@android.com>
rivate/android_filesystem_config.h
be1def8d43d75e280cdd75d432ddcadeaff580b1 07-Jan-2011 Mike Lockwood <lockwood@android.com> libusbhost: Tweak comments.

Change-Id: I45fdba7a94438f7c15fbca5dd65f07df9b522fb3
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
a2a1f3149fb32d95bc81ddfd713d5bba9d6cbc61 27-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Let SocketClient users write binary data to clients.

This is a dependency for the DNS proxy CLs.

This CL also adds a new socket for the netd process to inherit which
is owned by the inet group. (so only apps with the INTERNET
permission can use the DNS proxy...)

Change-Id: I8a51924e0ed56c6066f77e6f1b02d39bdadac51e
ysutils/SocketClient.h
e533c5f1005e8913f577d2aeac5a26f88f55a249 05-Jan-2011 Mike Lockwood <lockwood@android.com> libusbhost: Support for multiple pending requests on a single endpoint

Add new usb_request struct to replace usb_endpoint, which is no longer needed.

Change-Id: Ia3637b3431a3597caced41bfec677ef0b044a453
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
7d700f8bdce747a26e3ee4737683194d77286ba3 29-Dec-2010 Mike Lockwood <lockwood@android.com> libusbhost: Add usb_device_get_name_from_unique_id()

This allows converting from unique IDs to USB device names

Change-Id: I8e3b300790c01383aed8e3d4f547b54bcb7c2cd4
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
50372073d2919480fb32d56cb3b91663b9fca0f1 13-Dec-2010 Mike Lockwood <lockwood@android.com> libusbhost: Add accessor for the USB device descriptor

Change-Id: Ic3a54e2a06f3b4fa72f99b64025a911fbf525daf
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
cd185f23cc6f062b252d1d19bca55e721290ee62 12-Dec-2010 Mike Lockwood <lockwood@android.com> libusbhost: Add support for creating a usb_device struct from an existing fd

We will use this for sharing USB file descriptors across address spaces via Binder

Change-Id: Iadbd3e0a4178f79d1d778fdfd5175f6fe0e2aaf5
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
67ebdce9821d33c41c8bd5cd8bf6259cc82db0cb 10-Dec-2010 Erik Gilling <konkers@android.com> Merge changes I4dcadf8e,I166d2859

* changes:
libusbhost: add usb chapter 9 include to usbhost.h
toolbox: add lsusb command
3af05b09eb116e48997a2d4611b0a1e033737d2e 10-Dec-2010 Erik Gilling <konkers@android.com> libusbhost: add usb chapter 9 include to usbhost.h

Change-Id: I4dcadf8e8d9b25782351c9aeefb0d2cea81bbc9e
sbhost/usbhost.h
cfb61c272075e0fc25c39110b105825c128ac91f 08-Dec-2010 Kenny Root <kroot@google.com> Cygwin needs HAVE_OFF64_T and fix description

During testing of compilation, it was discovered that Cygwin actually
has off64_t.

Also the description was wrong for HAVE_OFF64_T

Change-Id: I6eb73d13da5a53fb03bf99ab7de82bfb6acab058
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-ppc/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
07ad9961aee0cfcae89e23d47f47314e1d3629c1 07-Dec-2010 Kenny Root <kroot@google.com> Add HAVE_OFF64_T to AndroidConfig.h

For platforms that have _FILE_OFFSET_BITS=32 and need to access large
files, we need some way to access 64-bit file APIs. This adds a hint to
allow programs to choose alternate APIs if possible.

Change-Id: Ifdc204df269350a22f52c0e4221e9d7d3b7a57fe
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-ppc/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
2e0047bdc067006d1e38418b2a0e24612d8068ba 29-Oct-2010 Mike Lockwood <lockwood@android.com> Add new AID_MEDIA_RW group to control write access to /data/media

BUG: 3113970

Change-Id: I233bd57e36d1e65847ead503e378304a958f492d
Signed-off-by: Mike Lockwood <lockwood@android.com>
rivate/android_filesystem_config.h
8c5669f9f9a228efebf4059fd4ceace5cece578b 27-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Let SocketClient users write binary data to clients.

This is a dependency for the DNS proxy CLs.

This CL also adds a new socket for the netd process to inherit which
is owned by the inet group. (so only apps with the INTERNET
permission can use the DNS proxy...)

Change-Id: Ic3475c697913ba85805b4e49801b65e7a1d59289
ysutils/SocketClient.h
43e21849da0ce47f25e198c78e7ca4335b76dde0 21-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am ec70a9e1: am f2ff2112: Merge "Add config header file for Linux/PPC."

Merge commit 'ec70a9e1b5c12cde090749dc07e29b396b12f656'

* commit 'ec70a9e1b5c12cde090749dc07e29b396b12f656':
Add config header file for Linux/PPC.
ec70a9e1b5c12cde090749dc07e29b396b12f656 21-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am f2ff2112: Merge "Add config header file for Linux/PPC."

Merge commit 'f2ff2112309d03674b88433276a57500b723fa9e' into gingerbread-plus-aosp

* commit 'f2ff2112309d03674b88433276a57500b723fa9e':
Add config header file for Linux/PPC.
457ce8f67224529a6f3524e8bbca2ecba3a80cc3 17-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am 67672e04: Merge a775965b from gingerbread

Merge commit '67672e04111a6cfdf572023a154675749c3fb550'

* commit '67672e04111a6cfdf572023a154675749c3fb550':
Add AID_NFC for use by the NFC service.
b08f7d896af6e9132bc497eaf605551c1e962c90 22-Sep-2010 Marcus Comstedt <marcus@mc.pp.se> Add config header file for Linux/PPC.

Change-Id: I892e9d922ba4b4090bdb5de00d8cc7adf0123cfe
rch/linux-ppc/AndroidConfig.h
67672e04111a6cfdf572023a154675749c3fb550 16-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Merge a775965b from gingerbread

Change-Id: I8c08cca033ef3efe6badd2a7ba4674dfb02d6b60
dc8827ee2388687a6f08a0c2da8505cdace737a6 16-Oct-2010 Raphael Moll <raphael@google.com> am 7e65ede6: am 9cd8057b: Merge "Define HAVE_STAT_ST_MTIM and disable it under MinGW/Cygwin." into gingerbread

Merge commit '7e65ede62065925e29b5b18f253758bb280f9383'

* commit '7e65ede62065925e29b5b18f253758bb280f9383':
Define HAVE_STAT_ST_MTIM and disable it under MinGW/Cygwin.
85905a6ab4d970f04d421bd2077ba4ad6fe67c3e 15-Oct-2010 Nick Pelly <npelly@google.com> Add AID_NFC for use by the NFC service.

Change-Id: I5b92f87dbacb9d855d99e10b3811f290fb64a144
Signed-off-by: Nick Pelly <npelly@google.com>
rivate/android_filesystem_config.h
7e65ede62065925e29b5b18f253758bb280f9383 14-Oct-2010 Raphael Moll <raphael@google.com> am 9cd8057b: Merge "Define HAVE_STAT_ST_MTIM and disable it under MinGW/Cygwin." into gingerbread

Merge commit '9cd8057b6e8f5fc1254a4ed19e8127b5091b5dce' into gingerbread-plus-aosp

* commit '9cd8057b6e8f5fc1254a4ed19e8127b5091b5dce':
Define HAVE_STAT_ST_MTIM and disable it under MinGW/Cygwin.
bb8ebabfd47805e0d72273e91492f215a9994c00 14-Oct-2010 Raphael Moll <raphael@google.com> Define HAVE_STAT_ST_MTIM and disable it under MinGW/Cygwin.

This is used by build\libs\host\CopyFile.c

Also define HAVE_PRINTF_ZD since printf %zd is not
supported on MinGW/Cygwin.
This is used by frmk/base/libs/utils/ZipFileRO.cpp

Change-Id: I570ac5dd0a5b256ee67ad62433f1226597da3ea4
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
d9387cfc95ec773359bd52b08a52d02624e6265f 05-Oct-2010 Kenny Root <kroot@google.com> am 6be460d5: Add HAVE_PREAD definition to platforms

Merge commit '6be460d5b0b60aca4e8d649e2254f8a8920f4d98' into gingerbread-plus-aosp

* commit '6be460d5b0b60aca4e8d649e2254f8a8920f4d98':
Add HAVE_PREAD definition to platforms
6be460d5b0b60aca4e8d649e2254f8a8920f4d98 04-Oct-2010 Kenny Root <kroot@google.com> Add HAVE_PREAD definition to platforms

ZipFileRO uses pread() to guarantee atomic reads at an offset, so use
the HAVE_PREAD flag to trigger off of. The only platform that doesn't
implement it directly is Windows.

Change-Id: Ic927611dc45b75ff8f672ed59afee5be1ad07ab4
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
8adcde9534b56d18bfe45622117c91b20aa587b1 04-Oct-2010 Kenny Root <kroot@google.com> Add HAVE_PREAD definition to platforms

ZipFileRO uses pread() to guarantee atomic reads at an offset, so use
the HAVE_PREAD flag to trigger off of. The only platform that doesn't
implement it directly is Windows.

Change-Id: I52d4e61010bb97e2d50af09943a2e94c0417bb5f
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
2bf937e6bbe3137cd97596e8f1f26ed45415eb4b 01-Oct-2010 Andy McFadden <fadden@android.com> Use DMB ST for store fence.

Change-Id: Ic713f30fcec0f2d2eb486c549917575ff0afa82f
utils/atomic-arm.h
a4176578804e1b300f7652919161be035cf3cfd2 29-Sep-2010 Carl Shapiro <cshapiro@google.com> am df2f5a07: am d55f0adf: Qualify the source argument of atomic loads as a const pointer.

Merge commit 'df2f5a07aecac7be4ac2d1100668a0396fd256e7'

* commit 'df2f5a07aecac7be4ac2d1100668a0396fd256e7':
Qualify the source argument of atomic loads as a const pointer.
df2f5a07aecac7be4ac2d1100668a0396fd256e7 28-Sep-2010 Carl Shapiro <cshapiro@google.com> am d55f0adf: Qualify the source argument of atomic loads as a const pointer.

Merge commit 'd55f0adfb5ec4202ad5bd5d188e66c0f6a27b0aa' into gingerbread-plus-aosp

* commit 'd55f0adfb5ec4202ad5bd5d188e66c0f6a27b0aa':
Qualify the source argument of atomic loads as a const pointer.
d55f0adfb5ec4202ad5bd5d188e66c0f6a27b0aa 28-Sep-2010 Carl Shapiro <cshapiro@google.com> Qualify the source argument of atomic loads as a const pointer.

Also normalizes the opening brace placment in a few locations.

Change-Id: I8f518e933094337d5d3371321326ffc03b3a5f5a
utils/atomic-arm.h
utils/atomic-x86.h
utils/atomic.h
b07c78aa942a09fb1a3ae4eecaca793be9c431d1 27-Sep-2010 Mike Lockwood <lockwood@android.com> am d1971c4c: resolved conflicts for merge of c29919c8 to gingerbread-plus-aosp

Merge commit 'd1971c4cac37fccdccd105f78f7252582685ccd9'

* commit 'd1971c4cac37fccdccd105f78f7252582685ccd9':
Add AID_GPS user ID for GPS daemon
d1971c4cac37fccdccd105f78f7252582685ccd9 27-Sep-2010 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of c29919c8 to gingerbread-plus-aosp

Change-Id: I860b7690c40428839e45e2c2b122661b00d47e0e
c29919c8d75ad218012daeda62e1e62200cad889 27-Sep-2010 Mike Lockwood <lockwood@android.com> Add AID_GPS user ID for GPS daemon

Change-Id: I2f8ffba40e3f5145b37296f19c698e08d768ce59
Signed-off-by: Mike Lockwood <lockwood@android.com>
rivate/android_filesystem_config.h
464431e65fbede57b0d41d230fe6f6dc465c20f8 24-Sep-2010 Brian Carlstrom <bdc@google.com> Add definitions for store barrier.

I usually call this a "store/store barrier" for maximum clarity, but
the common way of describing it is "store barrier" or "store fence".

This doesn't use "dmb st" yet since we're waiting on the toolchain
update, but it gets the various macros and inline functions in place
so we can use them in the VM.

Bug 3003477

git cherry-pick 2ba5eec3972b4ce46feb677116534fcd3d136e0a

Change-Id: Ifd2d3588be96aa529d490789436cf48c962021ba
utils/atomic-arm.h
utils/atomic-inline.h
utils/atomic-x86.h
d06df51bcd7bcc2656089a529fa6a455bad00d37 19-Sep-2010 Brian Swetland <swetland@google.com> resolved conflicts for merge of 3b5214a6 to master

Change-Id: Id73c53c6c2e9c21eb9b1d1e624aaeb25097ea7a4
3b5214a67f43e2e4f69428e98d3a2c130c7c87d8 19-Sep-2010 Brian Swetland <swetland@google.com> am 02863b95: add /vendor support

Merge commit '02863b957cfbfc302d3136ed78c0cba86accacd8' into gingerbread-plus-aosp

* commit '02863b957cfbfc302d3136ed78c0cba86accacd8':
add /vendor support
02863b957cfbfc302d3136ed78c0cba86accacd8 19-Sep-2010 Brian Swetland <swetland@google.com> add /vendor support

- look in /vendor/firmware/... in addition to /system/etc/firmware/... for firmware loading
- add /vendor/bin to path before /system/bin
- add /vendor/lib to ldpath before /system/lib
- configure appropriate permissions for /system/vendor/bin
- symlink /vendor -> /system/vendor

Change-Id: I0c06ca1e38a44f0c7024cee6cea8907aa93a4532
rivate/android_filesystem_config.h
3000e4f9c40a8fbccfae71a5885de6aa3eb77d64 15-Sep-2010 Kenny Root <kroot@google.com> am 1db75e7b: am 6fd75635: Merge "Fetch peer credentials for local sockets" into gingerbread

Merge commit '1db75e7b9b5159fa3bcf1cfdc4efba62c570d860'

* commit '1db75e7b9b5159fa3bcf1cfdc4efba62c570d860':
Fetch peer credentials for local sockets
1db75e7b9b5159fa3bcf1cfdc4efba62c570d860 14-Sep-2010 Kenny Root <kroot@google.com> am 6fd75635: Merge "Fetch peer credentials for local sockets" into gingerbread

Merge commit '6fd75635d820754295557c300ccee89c643864cc' into gingerbread-plus-aosp

* commit '6fd75635d820754295557c300ccee89c643864cc':
Fetch peer credentials for local sockets
30abb7234de2a9caa1add4b00a189436f0b24560 14-Sep-2010 Kenny Root <kroot@google.com> Fetch peer credentials for local sockets

Fetch the PID, UID, and GID of the remote side of a local socket
connection in case any users of this library class want to check it.

Change-Id: Ia3230e6bc68ab6f93160df9f5996d2bf744b872c
ysutils/SocketClient.h
a5220b24d1b17b142e373aacbadf79a00effbbf0 10-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am 26ce6e0e: manual merge from readonly-korg-master

Merge commit '26ce6e0e1608a9e804fa9721cc6326cdbaa5b7c1'

* commit '26ce6e0e1608a9e804fa9721cc6326cdbaa5b7c1':
- Add drm and drmio service
26ce6e0e1608a9e804fa9721cc6326cdbaa5b7c1 10-Sep-2010 Jean-Baptiste Queru <jbq@google.com> manual merge from readonly-korg-master

Change-Id: Id17f69d22fbbc84578be5aadd5e8e906ff0eb548
bb130ba7998e82e79cd94cddee2b97b1ed977f21 09-Sep-2010 Jean-Baptiste Queru <jbq@google.com> Merge "- Add drm and drmio service - Add /data/drm directory for storing DRM related data"
14b91a829a9795e701b4f15cabc2770c40279bd5 03-Sep-2010 Jason Sams <rjsams@android.com> Merge "Remove ACC which has been replaced with llvm. Free up space in build."
dad578642b5c2410e4bd35beb972cdb3a23a7292 02-Sep-2010 Dan Bornstein <danfuzz@android.com> am 556f09c4: am f74af26d: It seems that Windows actually does have a header for <stdbool.h>.

Merge commit '556f09c426084b62c34742ee0810fc97ae37abf7'

* commit '556f09c426084b62c34742ee0810fc97ae37abf7':
It seems that Windows actually does have a header for <stdbool.h>.
deb9188f4f64d5d475ae28e0cc9eecc6c1f61312 02-Sep-2010 Dan Bornstein <danfuzz@android.com> It seems that Windows actually does have a header for <stdbool.h>.

Change-Id: I25d7846c066135f0af1fef2995bcb86397b23226
rch/windows/AndroidConfig.h
556f09c426084b62c34742ee0810fc97ae37abf7 02-Sep-2010 Dan Bornstein <danfuzz@android.com> am f74af26d: It seems that Windows actually does have a header for <stdbool.h>.

Merge commit 'f74af26d1899fd85aa80dd65947dac89ef30a42c' into gingerbread-plus-aosp

* commit 'f74af26d1899fd85aa80dd65947dac89ef30a42c':
It seems that Windows actually does have a header for <stdbool.h>.
f74af26d1899fd85aa80dd65947dac89ef30a42c 02-Sep-2010 Dan Bornstein <danfuzz@android.com> It seems that Windows actually does have a header for <stdbool.h>.

Change-Id: I443929d07972389a8c9837926a4b7df37bd6a16a
rch/windows/AndroidConfig.h
54adc5e8a1a4b43c67b8ae657453b5009e981b47 01-Sep-2010 Jason Sams <rjsams@android.com> Remove ACC which has been replaced with llvm.
Free up space in build.

Change-Id: Ic5cc48bacca47b45809b9bc649ae5b629b7427ed
cc/acc.h
c34f1951496a0debd89477d088f5f2d664760fbf 01-Sep-2010 Nick Kralevich <nnk@google.com> am 095a6a6e: am 739cd9d2: Merge "get rid of compile time warning: "warning: ‘android_ids’ defined but not used"" into gingerbread

Merge commit '095a6a6ecb8039067c077db381bd02abc2496422'

* commit '095a6a6ecb8039067c077db381bd02abc2496422':
get rid of compile time warning: "warning: ‘android_ids’ defined but not used"
095a6a6ecb8039067c077db381bd02abc2496422 01-Sep-2010 Nick Kralevich <nnk@google.com> am 739cd9d2: Merge "get rid of compile time warning: "warning: ‘android_ids’ defined but not used"" into gingerbread

Merge commit '739cd9d2d4718913889a15d95c840506a2af04d1' into gingerbread-plus-aosp

* commit '739cd9d2d4718913889a15d95c840506a2af04d1':
get rid of compile time warning: "warning: ‘android_ids’ defined but not used"
4688ac5b73abf15798415f7260f21bd87d23dd2b 31-Aug-2010 Nick Kralevich <nnk@google.com> get rid of compile time warning: "warning: ‘android_ids’ defined but not used"

Change-Id: If365bd88f735d425f37d61bcd5a6903f99f6a454
rivate/android_filesystem_config.h
3d092d0a89a18918cd8ac80913ccefd73231ca74 25-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am bdcf98dd: Manual merge

Merge commit 'bdcf98ddbf2022ef894dfd7f9278e6f345e2c2df'

* commit 'bdcf98ddbf2022ef894dfd7f9278e6f345e2c2df':
Add API to add a route to IPv4/IPv6 host/gateway.
feb391d4bee1241ffbbc17c98ddeae62f2bee0c4 25-Aug-2010 Szymon Jakubczak <szym@google.com> am 8c85a00d: - creates proper ifc.h and dhcp.h headers for libnetutils - adds ifc_set_hwaddr - adds hwaddr command to netcfg - code reuse: dhcp_configure calls ifc_configure; inet_ntoa is used for printing - consistency: use net.XXX.dnsX properties in favor of dhcp.XX

Merge commit '8c85a00db6da092ec3766facd49132fa4fc319a1'

* commit '8c85a00db6da092ec3766facd49132fa4fc319a1':
- creates proper ifc.h and dhcp.h headers for libnetutils
bdcf98ddbf2022ef894dfd7f9278e6f345e2c2df 25-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Manual merge

Change-Id: Ic71ed9c392c5dee4a5a9be184d071eb688741f6f
8c85a00db6da092ec3766facd49132fa4fc319a1 09-Jun-2010 Szymon Jakubczak <szym@google.com> - creates proper ifc.h and dhcp.h headers for libnetutils
- adds ifc_set_hwaddr
- adds hwaddr command to netcfg
- code reuse: dhcp_configure calls ifc_configure; inet_ntoa is used for printing
- consistency: use net.XXX.dnsX properties in favor of dhcp.XXX.dnsX properties
(see related change to WifiStateTracker)
- updated system/core/nexus to use new headers, although not sure if
anybody still uses nexus

Change-Id: Idd70c0ac6e89b38e86816578c33eff805d30cac4
etutils/dhcp.h
etutils/ifc.h
7002edeb3dee2d7f854a24a94a70b5997b2a1058 19-Aug-2010 Danica Chang <danicachang@google.com> Merge "added network.conf to android_filesystem_config"
7f7047eb6b704410a925409cddc76d04db8faf81 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 58b64ace: Revert "- creates proper ifc.h and dhcp.h headers for libnetutils"

Merge commit '58b64acef07e6426914a8cb2d972778fbe138655'

* commit '58b64acef07e6426914a8cb2d972778fbe138655':
Revert "- creates proper ifc.h and dhcp.h headers for libnetutils"
58b64acef07e6426914a8cb2d972778fbe138655 18-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Revert "- creates proper ifc.h and dhcp.h headers for libnetutils"

This reverts commit c88e09cb98fb3690c3cf49f5a825532e0d9bf300.
etutils/dhcp.h
etutils/ifc.h
8984bb9691f8d3e2665f7aae0896b9bd2ade0c19 10-Aug-2010 Banavathu, Srinivas Naik <snb@codeaurora.org> Add API to add a route to IPv4/IPv6 host/gateway.

Add API to create a route to an IPv4/IPv6 host/gateway through a particular
interface.

Change-Id: I0ab5d2d211e0fc05f65ee6bb202b7f435cccae2a
etutils/ifc.h
8fa95f966088f13b14895aefea87b6c5f0cc78eb 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 838336fa: am 5dfd90e5: Merge "pixelflinger: Fix function naming typo: gglBitBlti"

Merge commit '838336fa61f2f06898322f059570708def823398'

* commit '838336fa61f2f06898322f059570708def823398':
pixelflinger: Fix function naming typo: gglBitBlti
838336fa61f2f06898322f059570708def823398 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 5dfd90e5: Merge "pixelflinger: Fix function naming typo: gglBitBlti"

Merge commit '5dfd90e5c79774d9981d25ab4defbd1e1f652c34' into gingerbread-plus-aosp

* commit '5dfd90e5c79774d9981d25ab4defbd1e1f652c34':
pixelflinger: Fix function naming typo: gglBitBlti
78fdd23c92b6d92396f64d99f38939f3990c2175 13-Aug-2010 Danica Chang <danicachang@google.com> added network.conf to android_filesystem_config

Change-Id: I393720a2c1632c311f794e14c17b197083a70621
rivate/android_filesystem_config.h
6e1a9430e8e8de13109f1b234d937541a45a8ac5 09-Aug-2010 Jim Huang <jserv@0xlab.org> pixelflinger: Fix function naming typo: gglBitBlti

From the functionality, the function gglBitBlti() implemented bit-block
(image) transfer operation in which several bitmaps are combined into
one using a raster operator. Renaming to gglBitBlit() should be
explicit.

Change-Id: I23886623b5421131cf7c7bfb8ec67c3809566c93
ixelflinger/pixelflinger.h
3c659a8d647b2650d83712f9a6724b8ac50ef5ae 05-Aug-2010 Brian Carlstrom <bdc@google.com> am f2af88e8: Tracking merge of dalvik-dev to gingerbread

Merge commit 'f2af88e81af5efb2d585963507f798d5a8b93d67' into gingerbread-plus-aosp

* commit 'f2af88e81af5efb2d585963507f798d5a8b93d67':
Tracking merge of dalvik-dev to gingerbread
f2af88e81af5efb2d585963507f798d5a8b93d67 05-Aug-2010 Brian Carlstrom <bdc@google.com> Tracking merge of dalvik-dev to gingerbread

git cherry-pick --no-commit b99a099c
git cherry-pick --no-commit 9811671e023ceb82029040f7acf599013c773e6b
git cherry-pick --no-commit d0645bf0cc76ef7be11cf77a8e1995233a1972e4

Change-Id: Ie70fecaeaba97a25f114cd2717e381b5107533b1
utils/mspace.h
07eb4af174f31c449a86dd459e2c81702f74acf1 28-Jul-2010 Mike Lockwood <lockwood@android.com> libusbhost: add usb_device_get_unique_id_from_name()

Change-Id: Idce54fc26d0432d4dc46f605623c4960c0e8690f
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
e572d596b3715198fb48b3d8cef4939a71d58db2 27-Jul-2010 aimitakeshi <aimitakeshi@gmail.com> - Add drm and drmio service
- Add /data/drm directory for storing DRM related data

Change-Id: Ifd8922a3de109dbf5cd3f9cabbf4e5689b16c1d7
rivate/android_filesystem_config.h
cb0d07b0e0f955f9175ce472a12c5a6f9363bc39 24-Jul-2010 Mike Lockwood <lockwood@android.com> Merge "libusbhost: Add usb_device_send_control for sending raw commands on endpoint 0."
1b7d991b433cf6d6fae4f40cb37f9b6c6043cfbc 24-Jul-2010 Mike Lockwood <lockwood@android.com> libusbhost: Add usb_device_send_control for sending raw commands on endpoint 0.

Change-Id: If883f2690c4031b9ba4d5cf943b5bf5c13193bce
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
d16de9fd2ec733d4dafef7754c31808ace39ac13 23-Jul-2010 Bruce Beare <brucex.j.beare@intel.com> am 1298bb79: am 96a2bb62: Set the modes for rc.* files in /system/etc

Merge commit '1298bb79938cb1f4cf920433b86716bd4108de0f'

* commit '1298bb79938cb1f4cf920433b86716bd4108de0f':
Set the modes for rc.* files in /system/etc
1298bb79938cb1f4cf920433b86716bd4108de0f 23-Jul-2010 Bruce Beare <brucex.j.beare@intel.com> am 96a2bb62: Set the modes for rc.* files in /system/etc

Merge commit '96a2bb622d38f3c875997e4cacb423fa9ef4ea76' into gingerbread-plus-aosp

* commit '96a2bb622d38f3c875997e4cacb423fa9ef4ea76':
Set the modes for rc.* files in /system/etc
96a2bb622d38f3c875997e4cacb423fa9ef4ea76 24-Jun-2010 Bruce Beare <brucex.j.beare@intel.com> Set the modes for rc.* files in /system/etc

Change-Id: I0897897cdffa66afa4f818f7ebcf0a9b70c517ea
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
rivate/android_filesystem_config.h
a805519ceedc53afa5453a6d8a7d80038d885d9f 20-Jul-2010 Mike Lockwood <lockwood@android.com> libusbhost: Add callback to usb_host_run to notify when initial device discovery is done

This can be used to eliminate race conditions in clients that operate immediately
on the currently connected device list.

Signed-off-by: Mike Lockwood <lockwood@android.com>

Change-Id: I14954b9fcc84239950ead6bdc1a0a888882c2226
sbhost/usbhost.h
4e246965bbd124bad1c1d98c5936d13b4db0d566 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 64ba76c1: merge from open-source master

Merge commit '64ba76c1431afe17c1f4553f1dbc595db064316e'

* commit '64ba76c1431afe17c1f4553f1dbc595db064316e':
Fixed LOG_ASSERT() compilation errors in native debug builds.
64ba76c1431afe17c1f4553f1dbc595db064316e 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I612711a84996e22e826e4920be29c204cf5d7d44
19299904343daf191267564fe32e6cd5c165cd42 03-Jun-2010 Chris Pearson <christopherx.c.pearson@intel.com> Fixed LOG_ASSERT() compilation errors in native debug builds.

Invoking LOG_ASSERT, LOG_ALWAYS_FATAL or LOG_ALWAYS_FATAL_IF variadic macros
without the printf format string arg caused compilation errors because the
variable arg list (__VA_ARGS__) was eventually passed to
__android_log_assert() func in place of a required parameter. This error
only occured in debug builds because LOG_ASSERT() is a no-op in release
builds. This change allows debug builds to succeed.

Change-Id: I7e7b7de3e501133468ce083e0e0d6e699dd59667
Signed-off-by: Chris Pearson <christopherx.c.pearson@intel.com>
utils/log.h
c0c799c6609e2810259759ad070cab9a143db272 02-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 0796f618: merge from open-source master

Merge commit '0796f618775b34e14ff624bcfca828d55183b4c5'

* commit '0796f618775b34e14ff624bcfca828d55183b4c5':
DBUS is not fully implemented. Disable it for now
0796f618775b34e14ff624bcfca828d55183b4c5 02-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I1be135f087795bf1789dbf911c585a606bf25778
64e76cc63716b2ae844587c6567a0fc05bd37abd 01-Jul-2010 Carl Shapiro <cshapiro@google.com> Merge "Remove an obsolete compatibility macro."
7ae24be753f5d4a2fc00e1c408a6aca5edd17acb 01-Jul-2010 Andy McFadden <fadden@android.com> am 635dc574: am 57dbb2cb: Merge "Add a HAVE define for pthread_setname_np()." into gingerbread

Merge commit '635dc574e9009f38b34b2e84b6c1a2b5efd2ebc9'

* commit '635dc574e9009f38b34b2e84b6c1a2b5efd2ebc9':
Add a HAVE define for pthread_setname_np().
635dc574e9009f38b34b2e84b6c1a2b5efd2ebc9 01-Jul-2010 Andy McFadden <fadden@android.com> am 57dbb2cb: Merge "Add a HAVE define for pthread_setname_np()." into gingerbread

Merge commit '57dbb2cb3767c625cfc8d15406b2c4d6b53bb7c6' into gingerbread-plus-aosp

* commit '57dbb2cb3767c625cfc8d15406b2c4d6b53bb7c6':
Add a HAVE define for pthread_setname_np().
57dbb2cb3767c625cfc8d15406b2c4d6b53bb7c6 01-Jul-2010 Andy McFadden <fadden@android.com> Merge "Add a HAVE define for pthread_setname_np()." into gingerbread
7a96ba436c9a2bacc64e712bdb53bd7accc5c3a9 01-Jul-2010 Mike Lockwood <lockwood@android.com> libusbhost: The client is now responsible for creating the thread that monitors the bus

This is to allow using a thread that is capable of calling through JNI to Java code
to report USB device attached/removed events.

Change-Id: Ia58592607a2c1f4357b31072044f5db5617d7f5b
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
efca22636f4036da32f2f6734926442f5ebb422b 01-Jul-2010 Andy McFadden <fadden@android.com> am cc4d11c2: Merge "Fix sim-eng build." into gingerbread

Merge commit 'cc4d11c245d5b514ba758cc095a59cd481c92cae' into gingerbread-plus-aosp

* commit 'cc4d11c245d5b514ba758cc095a59cd481c92cae':
Fix sim-eng build.
8e9d5c972e3eda8d1b7b9a62cd6e8a324286cfe9 30-Jun-2010 Andy McFadden <fadden@android.com> Add a HAVE define for pthread_setname_np().

Due to conflicts with recent WebKit, we need to call it
HAVE_ANDROID_PTHREAD_SETNAME_NP.

https://review.source.android.com/#change,15227 has the original
change, which was reverted after the conflict was found.

Change-Id: I7111960a16505558338756dba91eb50cadb582ff
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
9f6d28dc454e053ddcfe21879e4575ac86654050 01-Jul-2010 Andy McFadden <fadden@android.com> Fix sim-eng build.

Include <stddef.h> to get definition of size_t. Remove inclusion
of <stdint.h>, which doesn't seem to be needed.

Change-Id: Ib7ff231b5ec4b8c672084801fbb294a50cb7c3d7
utils/ashmem.h
a3405403a0e3c6337da6f8658d76a026b7290863 01-Jul-2010 Carl Shapiro <cshapiro@google.com> Remove an obsolete compatibility macro.

Change-Id: Ibeae0986b6c68f40e414917405a31cc0ad810fc4
utils/atomic.h
e94df975ff0d5ff23df5fb7b9102b5cfdd78641b 24-Jun-2010 Bruce Beare <brucex.j.beare@intel.com> DBUS is not fully implemented. Disable it for now

Change-Id: I2286064bffc7e9fa7381aa04d5d20abf11c3aab7
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
rch/target_linux-x86/AndroidConfig.h
3de5dba5590d5f1c9b33da8463502905b0ebfc58 23-Jun-2010 Carl Shapiro <cshapiro@google.com> am 2c4676de: am 93b0cb40: Define inline atomic operations for x86 and ARM.

Merge commit '2c4676de62cf8ca7e3759f7f709e29c623495f55'

* commit '2c4676de62cf8ca7e3759f7f709e29c623495f55':
Define inline atomic operations for x86 and ARM.
2c4676de62cf8ca7e3759f7f709e29c623495f55 23-Jun-2010 Carl Shapiro <cshapiro@google.com> am 93b0cb40: Define inline atomic operations for x86 and ARM.

Merge commit '93b0cb40c18cae594c931677be2b9214420610b7' into gingerbread-plus-aosp

* commit '93b0cb40c18cae594c931677be2b9214420610b7':
Define inline atomic operations for x86 and ARM.
93b0cb40c18cae594c931677be2b9214420610b7 04-Jun-2010 Carl Shapiro <cshapiro@google.com> Define inline atomic operations for x86 and ARM.

This change moves the ARM definitions into GCC extended inline
assembler. In addition, the same set of x86 definitions are now
shared among all x86 targets.

Change-Id: I6e5aa3a413d0af2acbe5d32994983d35a01fdcb3
utils/atomic-arm.h
utils/atomic-inline.h
utils/atomic-x86.h
utils/atomic.h
ec219a2ee73dba139e31105f8f57ee5ffbaaa432 23-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I01315984e45ecc0261ea35b5370cbe624cc90cea
d05d26893de34fd8407f40406a3c57cc08699d2c 23-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Revert "AndroidConfig: define HAVE_PTHREAD_SETNAME_NP"

This reverts commit de50fc1a87447b5e9c2b5dc3c074c72af5e57b1f.
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
6d4113f859c2c970712dc69594dcc5ecc7ffba26 22-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ibc43e8da821400022726b119940708efb052908b
424875b818811c04b472b28a9f5d3b6fbcbec219 22-Jun-2010 Andy McFadden <fadden@android.com> Merge "AndroidConfig: define HAVE_PTHREAD_SETNAME_NP"
fbd08273725adaf324be7493cc58494132314364 21-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 67e6fcd1: merge from froyo-plus-aosp

Merge commit '67e6fcd19533f54ca37cbe72425f55a40a7f0333'

* commit '67e6fcd19533f54ca37cbe72425f55a40a7f0333':
added vendor ID for http://www.onthegovideo.com/
Fix build - cpu-features is ARM-specific
eliminate a compiler warning: signed/unsigned length
adb: optimize socket-list-walking code
adb: remove unneeded assignment of id to zero
adb: clean up 0 --> NULL for pointers
- creates proper ifc.h and dhcp.h headers for libnetutils
Adds support for UBFX to JIT and Disassembler
67e6fcd19533f54ca37cbe72425f55a40a7f0333 21-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: Ie231effb4d9dfd63aa98ec08b269c31ce32aa1c0
1adbb607d2b6a74b7871a8cecd7c5690c8c5cf6d 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I8cfc9c0b699eceef77a905ca2f8cbdb1ab06bf1d
de50fc1a87447b5e9c2b5dc3c074c72af5e57b1f 10-Jun-2010 André Goddard Rosa <andre.goddard@gmail.com> AndroidConfig: define HAVE_PTHREAD_SETNAME_NP

It indicates if the underlying libc provides pthread_setname_np().

Change-Id: Ifef7730970033e834daf2fa710919722d64673e1
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
c88e09cb98fb3690c3cf49f5a825532e0d9bf300 09-Jun-2010 Szymon Jakubczak <szym@google.com> - creates proper ifc.h and dhcp.h headers for libnetutils
- adds ifc_set_hwaddr
- adds hwaddr command to netcfg
- code reuse: dhcp_configure calls ifc_configure; inet_ntoa is used for printing
- consistency: use net.XXX.dnsX properties in favor of dhcp.XXX.dnsX properties
(see related change to WifiStateTracker)
- updated system/core/nexus to use new headers, although not sure if
anybody still uses nexus

Change-Id: Idd70c0ac6e89b38e86816578c33eff805d30cac4
etutils/dhcp.h
etutils/ifc.h
203f102028c4df33c191d8cd610775eba8d5366d 27-May-2010 Mike Lockwood <lockwood@android.com> libusbhost: Added usb_device_get_unique_id

Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
f4dd883389585aaf8fad2e586bc451295b668191 01-Jun-2010 Andy McFadden <fadden@android.com> Fix build.

Missing a #define to map android_atomic_swap to its new name. Worked
fine in the other branches, because nobody was using android_atomic_swap
in the other branches.

Change-Id: I0e730e9823ac5cd2fee5a3f856ce05d36df5d87e
utils/atomic.h
8264358f5b59592d7e8d2902edf9a5c316cb6723 31-May-2010 Andy McFadden <fadden@android.com> am 8dfa47da: Atomic/SMP update, part 2.
0e67a037488c3b5a410ba301c408010120264f0b 28-May-2010 Brian Carlstrom <bdc@google.com> Merge remote branch 'goog/dalvik-dev' into dalvik-dev-to-master
8dfa47da8cb33ebaf7aae6db6548e75ed86e8f1e 27-May-2010 Andy McFadden <fadden@android.com> Atomic/SMP update, part 2.

Added new atomic functions, renamed some old ones. Some #defines have
been added for backward compatibility.

Merged the pre- and post-ARMv6 implementations into a single file.

Renamed the semi-private __android_membar_full_smp to USE_SCREAMING_CAPS
since that's more appropriate for a macro.

Added lots of comments.

Note Mac OS X primitives have not been tested.

Change-Id: If827260750aeb61ad5c2b760e30658e29dbb26f2
utils/atomic-inline.h
utils/atomic.h
cc6ff1071d69165c8ba57766f35e45715d0303a1 25-May-2010 Mike Lockwood <lockwood@android.com> Merge "libusbhost: Remove global data to allow multiple instances in the same process."
6ac3aa157493ef24bc837b679dd8292fad8961e0 25-May-2010 Mike Lockwood <lockwood@android.com> libusbhost: Remove global data to allow multiple instances in the same process.

Change-Id: I977145f44131ec8b588dd274e0afbc563f3aa4c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
62af8f258367c68b346f691387495284973f681c 20-May-2010 Andy McFadden <fadden@android.com> Atomic/SMP update. [manual merge to dalvik-dev]

Added atomic-inline.h. Added a platform-specific memory barrier call
there.

Added android_atomic_acquire_cmpxchg() and android_atomic_release_store().
Not tested on Mac OS X or SH.

Added memory barrier calls to linux-x86 atomics. Mac OS X has barrier
functions already. sh isn't really SMP-ready. linux-arm needs work
(to be done in a separate change).

Updated the makefile to make the SMP state visible to the code here.
Note that host binaries are NOT built with SMP enabled; while our hosts
are very likely SMP, it's not worth figuring out e.g. whether it's okay
to use the SSE2 mfence instruction or have to use something else. We
haven't had barriers enabled in host tools before, so there's probably
no need to stat now.

Removed quasiatomic 64-bit calls (now part of Dalvik).

Change-Id: I42ae05f5db2cc9a5b64ad87f15481e2838371f1d
utils/atomic-inline.h
utils/atomic.h
0bc248f9830901a047161fb9cedc9c6213cf70e0 21-May-2010 Andy McFadden <fadden@android.com> am ac322da6: Atomic/SMP update.
ac322da69ee48aa792baf5c48cfb719ce077f67e 20-May-2010 Andy McFadden <fadden@android.com> Atomic/SMP update.

Added atomic-inline.h. Added a platform-specific memory barrier call
there.

Added android_atomic_acquire_cmpxchg() and android_atomic_release_store().
Not tested on Mac OS X or SH.

Added memory barrier calls to linux-x86 atomics. Mac OS X has barrier
functions already. sh isn't really SMP-ready. linux-arm needs work
(to be done in a separate change).

Updated the makefile to make the SMP state visible to the code here.
Note that host binaries are NOT built with SMP enabled; while our hosts
are very likely SMP, it's not worth figuring out e.g. whether it's okay
to use the SSE2 mfence instruction or have to use something else. We
haven't had barriers enabled in host tools before, so there's probably
no need to stat now.

Removed quasiatomic 64-bit calls (now part of Dalvik).

Change-Id: I49e5e6c8abe70f304cdedb9d7b8e6e65f8925815
utils/atomic-inline.h
utils/atomic.h
2bdcf63c4cefac4711336156481973d56362aa15 20-May-2010 Dima Zavin <dmitriyz@google.com> Merge "Don't define __linux__ if it is already defined by the toolchain. This change does not affect existing behavior at all and makes the file compatible with new toolchain."
165db2a19888673548a1a7bd1ffd39e89a8dfe78 18-May-2010 Jing Yu <jingyu@google.com> Don't define __linux__ if it is already defined by the toolchain.
This change does not affect existing behavior at all and makes
the file compatible with new toolchain.

Change-Id: Ia33bb9372d1705ec538b414bf69773f093e4543c
rch/linux-arm/AndroidConfig.h
e95aad61d841e7a472b4141808bbca0c7135b0f5 17-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I414c9479f4f913c777ef18b7ff27e410f49d35b9
93ac1559b8c7ad3125ddcd896082b030faadbbd4 06-May-2010 Mike Lockwood <lockwood@android.com> init: Add support for /dev/bus/usb/ file system and add new unix group AID_USB.

init now creates files in /dev/bus/usb/ for user access to USB devices.
Files are chmod 660 with group AID_USB.

Signed-off-by: Mike Lockwood <lockwood@android.com>
rivate/android_filesystem_config.h
5e567cb34b5e54467f501fc9703db82ca6639ff3 12-May-2010 Mike Lockwood <lockwood@android.com> libusbhost: add usb_endpoint_get_device()

Change-Id: Ibe4ce0551faca5d2d8bec0fbd21315a393b9f208
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
30ff2c70ce05d761e8cb0ab7ee02b39a681fe0cb 09-May-2010 Mike Lockwood <lockwood@android.com> libusbhost: new library for Linux USB host support.

Supports access to Linux usbdevfs on both device and Linux host.

Change-Id: Ie88a5193be3ee715792b10b34b3da32ffc4ca57b
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbhost/usbhost.h
b717dc85d8aca2431a553ca0e1b3438d1d8e2072 06-May-2010 Mike Lockwood <lockwood@android.com> init: Add support for /dev/bus/usb/ file system and add new unix group AID_USB.

init now creates files in /dev/bus/usb/ for user access to USB devices.
Files are chmod 660 with group AID_USB.

Signed-off-by: Mike Lockwood <lockwood@android.com>
rivate/android_filesystem_config.h
7a5c35905485c20edca5b45c2558f7a95c440b06 02-May-2010 Brian Carlstrom <bdc@google.com> Merge commit 'b419c35c660d7421e18a9efef38eca11966b44c7' into mm
b419c35c660d7421e18a9efef38eca11966b44c7 14-Apr-2010 Raphael <raphael@google.com> Fix adb, fastboot to compile in Windows SDK under Linux.

(Merged from master Change I3d0e4cab)

Change-Id: Ib3fd566bdaf09d5893a6b0c66168c76c6b0d92eb
rch/windows/AndroidConfig.h
fab167850d751a817c39e074334fe7a0987ce647 14-Apr-2010 Raphael <raphael@google.com> Fix adb, fastboot to compile in Windows SDK under Linux.

Change-Id: I3d0e4cabd65d9de17036901a22ec3277a6d58e64
rch/windows/AndroidConfig.h
a68049a8cc3f1eacda1e27b2040af73f6faa42ab 07-Apr-2010 Brian Carlstrom <bdc@google.com> Merge remote branch 'goog/froyo' into mm
3555019d783089084d8cb4ceca6609152db445d3 16-Mar-2010 Eric Olsen <eolsen@android.com> Add Bluetooth SCO connection blacklist

Change-Id: Ieb11debfea66ec715f48e8069619c2c15acf2035
Signed-off-by: Eric Olsen <eolsen@android.com>
rivate/android_filesystem_config.h
1f4d95296acf34a93128332441782a80c10845b4 03-Mar-2010 David 'Digit' Turner <digit@google.com> Add 'run-as' command implementation as set-uid program.

Typical usage is 'run-as <package-name> <command>' to run <command>
in the data directory, and the user id, of <package-name> if, and only
if <package-name> is the name of an installed and debuggable application.

This relies on the /data/system/packages.list file generated by the
PackageManager service.

BEWARE: This is intended to be available on production devices !
rivate/android_filesystem_config.h
bbf1c64527dde837a236b4d6b9f75343adbca119 12-Mar-2010 Wink Saville <wink@google.com> Change permissions on pppd-ril

On devices that use a pppd for cellular network access, a pppd-ril
process needs to run as root to configure the connection. Changing
the process to suid-root in the build image is the only known way
to avoid needing to remount the system image at boot to accomplish
the same thing.

Change-Id: I6c778391b8040ee818343e304891e7d341cc729b
rivate/android_filesystem_config.h
a6391f1006b961ca89d1c79a826375380684a4de 10-Mar-2010 San Mehat <san@google.com> system: libdiskconfig: Add libdiskconfig

Change-Id: Ie7a7b5d8016dec60cdfb17228c3f519789c98564
Signed-off-by: San Mehat <san@google.com>
iskconfig/diskconfig.h
1159d7f800e5ddaf9d2d994e23d11e2f6dd67b8e 09-Mar-2010 Dmitry Shmidt <dimitrysh@google.com> sysutils: Increase number of command arguments to 16

Change-Id: I0bba579634b334d24645c2af55ab3fab6da03fc6
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ysutils/FrameworkListener.h
3e1aac6c4d656d09043cef114e38e4b3f42378f5 08-Mar-2010 Nick Kralevich <nnk@google.com> Change netcfg permissions to 2750.
Fix bug 2104034.

Change-Id: I30bcc41f33623cadc63693fd54206ccbb1886a5a
rivate/android_filesystem_config.h
e2bf2ea4d2846031edfc52b942ad53e5467243f6 01-Mar-2010 Joe Onorato <joeo@android.com> Make logcat print both the main and system buffers by default. Make SLOGx macros work.
utils/log.h
utils/logger.h
utils/logprint.h
1bfb4803ea64d7072f183cabd4cb704147dbf749 26-Feb-2010 San Mehat <san@google.com> Merge "system: Add support for getting/setting i/o priorities and include a userspace tool"
eafdd86f4d8f4ccc69f0c16550c65aa392f678d6 08-Jan-2010 Jaikumar Ganesh <jaikumar@google.com> Update bluetooth data files path.
rivate/android_filesystem_config.h
10d469bff9031e857c7a290dae7d6ccf7b3a18f8 25-Feb-2010 San Mehat <san@google.com> system: Add support for getting/setting i/o priorities and include a userspace tool

Signed-off-by: San Mehat <san@google.com>
utils/iosched_policy.h
fa36f2c3b7707865867ce2b4710efeaeef993b1d 17-Feb-2010 Mathias Agopian <mathias@google.com> fix [2448319] out of bounds array index in fog
rivate/pixelflinger/ggl_context.h
5dca8493452e5b443e58b3316c7128a1de612fc1 17-Feb-2010 Mathias Agopian <mathias@google.com> remove unused YUV constants
ixelflinger/format.h
8e4f143d45722bf1e8584e84e55ff844b176c75a 17-Feb-2010 Dima Zavin <dima@android.com> pixelflinger: add defines for nv12_tiled semi-planar and nv21 semi-planar

Change-Id: Ib56c19f3c5a71730dd7a7a82b10a59c2bb9b5de8
Signed-off-by: Dima Zavin <dima@android.com>
ixelflinger/format.h
b99a099cad7066274b25de9d603e7ced37d20e19 15-Feb-2010 Carl Shapiro <cshapiro@google.com> Add a new method to export the extent of the break, akin to return
value of sbrk(0) in UNIX. In terms of dlmalloc and our proprietary
contiguous mspace class, this is the highest address returned by its
morecore method.
utils/mspace.h
63b396d89c3a535675808282e2563ecabc04ef76 13-Feb-2010 Carl Shapiro <cshapiro@google.com> Eliminate the stdint.h include. In retrospect, it seems that the
source of the aforementioned build breakage was then errant include of
this header when stddef.h was intended. Nothing in this file uses any
of the symbols exported from stdint.h, only symbols from stddef.h.
utils/ashmem.h
143b370748150000fb54b676213470e736488766 12-Feb-2010 Carl Shapiro <cshapiro@google.com> Include stddef.h to make the size_t visible. Resolves a simulator
build break caused by a use of ashmem.h in an environment without
size_t.
utils/ashmem.h
17128f6e433afae326a57a7961499f529f532c61 06-Jan-2010 Barry Hayes <bhayes@google.com> Break out create_contiguous_mspace_with_base
This routine allows creating a contiguous mspace from raw mapped memory.
In turn, this will enable preallocation of the 3 heap spaces, which will help
remembered sets and zygote/app checks given pointer values.
utils/mspace.h
2dcf1fb9ff3f7a64c0f914c524db146dd8683b6a 09-Feb-2010 Barry Hayes <bhayes@google.com> Merge "Break out create_contiguous_mspace_with_base This routine allows creating a contiguous mspace from raw mapped memory. In turn, this will enable preallocation of the 3 heap spaces, which will help remembered sets and zygote/app checks given pointer values."
157bf769be61f7d50bd1421a9be43d1ee315828b 04-Feb-2010 Dima Zavin <dima@android.com> Remove libjnigraphics. moved to frameworks/base/native

Change-Id: Ieb65ab1428198a82e583059f75661808f350ea2b
Signed-off-by: Dima Zavin <dima@android.com>
ndroid/bitmap.h
4544a9f7b46aab4c7a261f321ffdd35711d62099 28-Jan-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of c8472186 to master

Change-Id: I41acaaa3a5d6aeb6873472f17db4cfa756b2d23f
b17772dcc8ac2acccf658da262edcc303fafcafb 06-Jan-2010 Barry Hayes <bhayes@google.com> Break out create_contiguous_mspace_with_base
This routine allows creating a contiguous mspace from raw mapped memory.
In turn, this will enable preallocation of the 3 heap spaces, which will help
remembered sets and zygote/app checks given pointer values.
utils/mspace.h
cf63d5d00f5a631a2905da7812b5c029b5211cf6 23-Jan-2010 Andy McFadden <fadden@android.com> Implementation of open_memstream().

POSIX seems to have chosen open_memstream() over the BSD variant. We
want something for Dalvik that will work on both GNU/Linux and Android,
so this is open_memstream() implemented in terms of BSD funopen().

For Windows there's just a stub that calls abort().

I'm putting this in libcutils since it seems inappropriate for bionic
(which provides the BSD alternatives) but isn't Dalvik-specific.
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
utils/open_memstream.h
91a54c11cbfbe3adc1df2f523c75ad76affb0ae9 20-Sep-2009 Kenny Root <kenny@the-b.org> Add x86-64 checking for Darwin

Detect byte endianness when compiled in x86-64 mode in Mac OS X 10.6
Snow Leopard environments or above. Allows compilation of host binaries
in these environments without any changes from its default stock
configuration.

This change doesn't require that the binaries be built in 64-bit, but it
does allow this. One could still use "gcc_select 4.0" with the 10.4 SDK
installed on Snow Leopard to compile in 32-bit mode.

Change-Id: I155a531a9bff450dd6c077b5275652731c59a908
rch/darwin-x86/AndroidConfig.h
d674413ff460afe1da049e54bb7a489132799749 24-Dec-2009 San Mehat <san@google.com> sysutils: Add dump() to NetlinkEvent

Signed-off-by: San Mehat <san@google.com>
ysutils/NetlinkEvent.h
83782909a35bd5cf61369ec74c653145657766d4 08-Dec-2009 Mike Reed <reed@google.com> am 31b5d4b9: am 45e5ca1c: Merge change I0deb0117 into eclair-mr2

Merge commit '31b5d4b98e8079a1d97aff8dc3e0824b95d1e294'

* commit '31b5d4b98e8079a1d97aff8dc3e0824b95d1e294':
NDK header for accessing pixels of a java bitmap
31b5d4b98e8079a1d97aff8dc3e0824b95d1e294 07-Dec-2009 Mike Reed <reed@google.com> am 45e5ca1c: Merge change I0deb0117 into eclair-mr2

Merge commit '45e5ca1c7047b20d36bd31b30b7d2a4786baab0f' into eclair-mr2-plus-aosp

* commit '45e5ca1c7047b20d36bd31b30b7d2a4786baab0f':
NDK header for accessing pixels of a java bitmap
22078f2c05281763726d152f62b59f7cce96c73e 04-Dec-2009 Mike Reed <reed@google.com> NDK header for accessing pixels of a java bitmap
ndroid/bitmap.h
303254eb674991bbb79b887b0d49fef48ae5abd4 31-Oct-2009 Dan Bornstein <danfuzz@android.com> Define HAVE_SYS_SENDFILE_H.

Platforms differ on whether sys/sendfile.h or sys/socket.h is where to
find the declaration for sendfile().

Change-Id: Ib6e882534b7dc605d30aefed55732dc1ee2b6772
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
333a80cf9ffc975aee91d82bee2bb17cdfe458a7 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from eclair
4b29fe640ae852c04d5d87d0f9527bdc32177ad1 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
cc/acc.h
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
utils/abort_socket.h
utils/ashmem.h
utils/compiler.h
utils/sched_policy.h
utils/tztime.h
incrypt/sha.h
rivate/android_filesystem_config.h
rivate/pixelflinger/ggl_context.h
ysutils/SocketListener.h
43ba23f30889f9e4dee0afd762f2f9a1cd5a99a8 31-Oct-2009 Dan Bornstein <danfuzz@android.com> Define HAVE_SYS_SENDFILE_H.

Platforms differ on whether sys/sendfile.h or sys/socket.h is where to
find the declaration for sendfile().

Change-Id: Ib6e882534b7dc605d30aefed55732dc1ee2b6772
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-sh/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
5f64815d8a300f42262cf29538203051f3c16063 29-Oct-2009 San Mehat <san@google.com> am 38b2ddc4: am 17bfbd3c: am c0dfca7a: cutils: Add support for reading a processes scheduler policy

Merge commit '38b2ddc4a7cf1c47397af118a6d466d45f59da04'

* commit '38b2ddc4a7cf1c47397af118a6d466d45f59da04':
cutils: Add support for reading a processes scheduler policy
38b2ddc4a7cf1c47397af118a6d466d45f59da04 28-Oct-2009 San Mehat <san@google.com> am 17bfbd3c: am c0dfca7a: cutils: Add support for reading a processes scheduler policy

Merge commit '17bfbd3ccbb798aa4068cd59150ce712660a62a4' into eclair-mr2-plus-aosp

* commit '17bfbd3ccbb798aa4068cd59150ce712660a62a4':
cutils: Add support for reading a processes scheduler policy
c0dfca7ae1f6016461235552091c2cacacca82a2 27-Oct-2009 San Mehat <san@google.com> cutils: Add support for reading a processes scheduler policy

Signed-off-by: San Mehat <san@google.com>
utils/sched_policy.h
573463c31ca8c96a7916e187f968ba108131a3ea 15-Oct-2009 Jean-Baptiste Queru <jbq@google.com> am 62f39c10: merge from open-source master

Merge commit '62f39c105af8789fd9308fa6a5b91f0963a7c59b'

* commit '62f39c105af8789fd9308fa6a5b91f0963a7c59b':
adb: Add "adb disconnect" command for disconnecting TCP/IP devices.
Add support for Acer devices
adb: Add USB Vendor IDs for LG and Huawei
Add NOTICE file and license tag for adb
adb: Clean up argument passing for create_service_thread()
Revert "adb: Another attempted workaround for the adb disconnect problem."
libsysutils: Fix some bugs in NetlinkListener and NetlinkEvent
added SuperH atomic support to libcutils
b029e924285dfe5bd36d93d837eb00db1c7661fc 14-Oct-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
7b5f63f8ab17c0f361d049d807bac1c4813238b5 12-Oct-2009 Jean-Baptiste Queru <jbq@google.com> am f184b94a: am b084929f: Make AudioPara4 world-readable

Merge commit 'f184b94ad32c50ccf5bb1792a963551b5841e772'

* commit 'f184b94ad32c50ccf5bb1792a963551b5841e772':
Make AudioPara4 world-readable
ebfe3db361c51d9d99bf6cfd495bd16bdf815e1f 11-Oct-2009 San Mehat <san@android.com> libsysutils: Fix some bugs in NetlinkListener and NetlinkEvent

Signed-off-by: San Mehat <san@android.com>
ysutils/NetlinkListener.h
f184b94ad32c50ccf5bb1792a963551b5841e772 05-Oct-2009 Jean-Baptiste Queru <jbq@google.com> am b084929f: Make AudioPara4 world-readable

Merge commit 'b084929f5dd57b878f6debe6567a6c8888061fa0' into eclair

* commit 'b084929f5dd57b878f6debe6567a6c8888061fa0':
Make AudioPara4 world-readable
67a2ea3deac5c0d2ec9c6f4a6bd154d78ed4d470 02-Oct-2009 Elliott Hughes <enh@google.com> Now all the callers are gone, remove adb_networking.*.

(This is the final patch removing adb networking.)

Bug: 1122968
utils/adb_networking.h
b084929f5dd57b878f6debe6567a6c8888061fa0 02-Oct-2009 Jean-Baptiste Queru <jbq@google.com> Make AudioPara4 world-readable

This way adb pull can get to it on user builds.

BUG=1869158
rivate/android_filesystem_config.h
0384a98d6f61fa47ffde01c15e552f738e88fb94 16-Sep-2009 Raphael <raphael@google.com> Disable sched_policy under Windows.

This introduces a new HAVE_SCHED_H arch define, which is used
to prevent from building sched_policy.c during the Windows SDK.

Change-Id: I3667857a4ae7d6baaf1efd1cd187a5baf91419d8
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
493dad966305a7fb555addd367532dd2af275a27 12-Sep-2009 San Mehat <san@google.com> libcutils: Add abstracted support for setting scheduler policies
Also changes the background policy to use SCHED_BATCH. IDLEPRIO
can cause 100% starvation.

Signed-off-by: San Mehat <san@google.com>
utils/sched_policy.h
d5315573d792c8441482b1cbe9ac7e93d3f730d1 09-Sep-2009 Jack Palevich <jackpal@google.com> Move ARM disassembler out of libacc and into the acc command-line tool.
cc/acc.h
90b06ac786f859895ac503cf42759c2706205700 21-Aug-2009 Doug Zongker <dougz@android.com> only use faster SHA-1 code on machines with good libc

Macs don't have byteswap.h or endian.h. Change conditionals to only
use the faster SHA-1 code on little-endian machines with byteswap.h.
incrypt/sha.h
a6de77de1727d5c40fdfdf841f3e8d13e0fc0140 18-Aug-2009 Doug Zongker <dougz@android.com> add optimized SHA1 algorithm

This optimized implementation of the SHA1 algorithm is about 28%
faster than the old one (on sapphire hardware) but assumes
little-endianness. Add it, but continue using the old implementation
on big-endian hardware.
incrypt/sha.h
656a8162983ee8165f4bbcb6c76d8560a7957c35 05-Aug-2009 Andy McFadden <fadden@android.com> Added defines for <stdint.h> and <stdbool.h>.

This adds HAVE_STDINT_H and HAVE_STDBOOL_H to the configuration. We've
been using HAVE_STDINT_H for a while but just never bothered to define
it, and we're about to start using HAVE_STDBOOL_H.

I enabled them for the linux and darwin targets, and left it undefined
for freebsd/windows.
rch/darwin-x86/AndroidConfig.h
rch/freebsd-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
c6af9114fc63accef839c2a413e18ab058f0beff 04-Aug-2009 Shin-ichiro KAWASAKI <shinichiro.kawasaki.mg@hitachi.com> added SuperH atomic support to libcutils
rch/linux-sh/AndroidConfig.h
96d58f4f521ee4c1fef58efe5c009f1ea523d67c 26-Jul-2009 Jean-Baptiste Queru <jbq@google.com> Merge korg/donut into korg/master
8c246a9dc294760f2a981cf5144fe4939d1554e6 15-Jul-2009 Jack Palevich <jackpal@google.com> Add accRegisterSymbolCallback API to control external symbol linkage.

Until now dlsym was used to lookup external symbols. Now you can
register your own function to be called when an undefined symbol is
used.
cc/acc.h
c4a895b7094461c98101924cf096680bfb7856f1 24-Jun-2009 San Mehat <san@google.com> nexus: Rollup update for nexus

nexus: Change field separator from : to ' '

Signed-off-by: San Mehat <san@google.com>

nexus: Add some prototypes for stuff to come

Signed-off-by: San Mehat <san@google.com>

nexus: Add some TODOs

Signed-off-by: San Mehat <san@google.com>

libsysutils: Put a proper token parser into the FrameworkListener which
supports minimal \ escapes and quotes

Signed-off-by: San Mehat <san@google.com>

nexus: Fix a lot of bugs

Signed-off-by: San Mehat <san@google.com>

libsysutils: Remove some debugging
Signed-off-by: San Mehat <san@google.com>

nexus: Send broadcasts for supplicant state changes

Signed-off-by: San Mehat <san@google.com>

nexus: Plumb DHCP listener state changes to NetworkManager

Signed-off-by: San Mehat <san@google.com>

nexus: Make the SupplicantState strings more parsable

Signed-off-by: San Mehat <san@google.com>

nexus: Broadcast a message when dhcp state changes.

Signed-off-by: San Mehat <san@google.com>

nexus: Add a few new response codes

Signed-off-by: San Mehat <san@google.com>

nexus: Rename ErrorCode -> ResponseCode

Signed-off-by: San Mehat <san@google.com>

nexus: Add DHCP event broadcasting. Also adds the framework for
tracking supplicant 'searching-for-AP' state

Signed-off-by: San Mehat <san@google.com>

nexus: REmove WifiScanner

Signed-off-by: San Mehat <san@google.com>

nexus: Change the way scanning works. scanmode can now be selected
independantly of triggering a scan. Also adds rxfilter support

Signed-off-by: San Mehat <san@google.com>

nexus: Add support for configuring bluetooth coexistence scanning and modes

Signed-off-by: San Mehat <san@google.com>

nexus: use case insensitive match for property names

Signed-off-by: San Mehat <san@google.com>

nexus: Rollup of a bunch of stuff:
- 'list' command now takes an argument to match against
- InterfaceConfig has been moved into the Controller base (for now)
- DhcpClient now has some rudimentry locking
- process 'ADDRINFO' messages from dhcpcd
- Drop tertiary dns

Signed-off-by: San Mehat <san@google.com>

nexus: Clean up some of the supplicant variable parsing and add 'wifi.current'

Signed-off-by: San Mehat <san@google.com>

nexus: Add driver-stop/start, initial suspend support

Signed-off-by: San Mehat <san@google.com>

nexus: Add Controller suspend/resume callbacks, as well as locking

Signed-off-by: San Mehat <san@google.com>

nexus: Make ARP probing configurable for DhcpClient

Signed-off-by: San Mehat <san@google.com>

nexus: Add linkspeed / rssi retrieval

Signed-off-by: San Mehat <san@google.com>

nexus: Add WifiStatusPoller to track RSSI/linkspeed when associated

Signed-off-by: San Mehat <san@google.com>

nexus: Disable some debugging and add 'wifi.netcount' property

Signed-off-by: San Mehat <san@google.com>

nexus: Replace the hackish property system with something more flexible with namespaces

Signed-off-by: San Mehat <san@google.com>

libsysutils: Fix a few bugs in SocketListener

Signed-off-by: San Mehat <san@google.com>

nexus: PropertyManager: Add array support

Signed-off-by: San Mehat <san@google.com>

nexus: Clean up properties
Signed-off-by: San Mehat <san@google.com>

nexus: WifiController: Change name of 'CurrentNetwork' property

Signed-off-by: San Mehat <san@google.com>
ysutils/SocketListener.h
bfa833c0b74d922e13f8a7aaadcc091f77d83e45 02-Jul-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
60a4cd5e348ae263d209a7f64510826825848208 30-Jun-2009 repo sync <chiachi@android.com> resolved conflicts for merge of abb08550 to master
88dc657d50cb3289a9011828c497eee996ed958c 19-Jun-2009 Chia-chi Yeh <chiachi@android.com> Add device, property, directory, and file permissions for VPN.
rivate/android_filesystem_config.h
a10fd8df952885be8b24609d6847c343d50cebb7 16-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
338df9da548644ee6d70c5da3af9be1a028d8a58 15-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 2d0a6ca2: Merge change 4227 into donut

Merge commit '2d0a6ca27c6f75eb0ec881fe4ad0b4f478d941c0'

* commit '2d0a6ca27c6f75eb0ec881fe4ad0b4f478d941c0':
nexctl: Refactor so Nexus can be tested from scripts easily.
libsysutils: Move to a null terminated string protocol using space as a field separator.
c73a3a5771a2d29d1bae666bfde12f751d66fc96 15-Jun-2009 San Mehat <san@google.com> libsysutils: Move to a null terminated string protocol using space as a field separator.

Also removes some debugging

Signed-off-by: San Mehat <san@google.com>
ysutils/FrameworkCommand.h
ysutils/FrameworkListener.h
1d36696821cd81ed7b668bb9d2b0b8a43540ccd2 06-May-2009 Jaikumar Ganesh <jaikumar@google.com> Bluez4 changes

Rename hcid to bluetoothd and change permissions.
rivate/android_filesystem_config.h
50900772ed37826e2320716a4fa0aa92e903a9b1 09-Jun-2009 Chung-yih Wang <cywang@google.com> am 1f75d709: Add VPN and Keystore services and data directories.

Merge commit '1f75d709c10f49d2e2390b888e766bcfd17da860'

* commit '1f75d709c10f49d2e2390b888e766bcfd17da860':
Add VPN and Keystore services and data directories.
1f75d709c10f49d2e2390b888e766bcfd17da860 01-Jun-2009 Chung-yih Wang <cywang@google.com> Add VPN and Keystore services and data directories.

-- changed the default mode to 0770 for keystore with the new user 'keystore'.
-- add the keystore service providing the basic key lookup/install/remove, but
only keystore user can access the key content.
rivate/android_filesystem_config.h
ce51b3b55f3facfce5dccebc73bd1903e163103e 07-Jun-2009 Mathias Agopian <mathias@google.com> break dependency on utils/Endian.h
rivate/pixelflinger/ggl_context.h
af20325a459c7446e3c41da243621bae111db001 06-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
eedf9d20832f1af3a4bd362819be6eace54240b5 05-Jun-2009 Jack Palevich <jackpal@google.com> Add support for #pragma foo(bar)

Report unsupported/unknown preprocessor directives.
Report line number of error rather than character offset.
cc/acc.h
baf83e0250353031bc6c32ddebee0fa1502a470a 02-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 3f627205: Merge change 2875 into donut

Merge commit '3f6272056275a00c30c07394d63bbe81cc9c5eba'

* commit '3f6272056275a00c30c07394d63bbe81cc9c5eba':
Added ashmem_get_size_region() function.
7be52b1a0e052635b361f9d8c186adbbcc981b7e 02-Jun-2009 Bjorn Bringert <bringert@android.com> Added ashmem_get_size_region() function.

This is needed by the MemoryFile changes in
https://android-git.corp.google.com/g/2714
where it is used to find out whether a file descriptor
refers to an ashmem region.
utils/ashmem.h
e26cbeacaf69cb1698b4353d72adf057b2d6bcc8 31-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
260f48a917c9ff439fc2db2e3492be643d189d22 20-May-2009 Nick Pelly <npelly@google.com> Helper to perform abortable blocking operations on a socket:
asocket_connect()
asocket_accept()
asocket_read()
asocket_write()
These calls are similar to the regular syscalls, but can be aborted with:
asocket_abort()

Calling close() on a regular POSIX socket does not abort blocked syscalls on
that socket in other threads.

After calling asocket_abort() the socket cannot be reused.

Call asocket_destory() *after* all threads have finished with the socket to
finish closing the socket and free the asocket structure.

The helper is implemented by setting the socket non-blocking to initiate
syscalls connect(), accept(), read(), write(), then using a blocking poll()
on both the primary socket and a local pipe. This makes the poll() abortable
by writing a byte to the local pipe in asocket_abort().

asocket_create() sets the fd to non-blocking mode. It must not be changed to
blocking mode.

Using asocket will triple the number of file descriptors required per
socket, due to the local pipe. It may be possible to use a global pipe per
process rather than per socket, but we have not been able to come up with a
race-free implementation yet.

All functions except asocket_init() and asocket_destroy() are thread safe.
utils/abort_socket.h
730c8d7c03bbe384a1bc66aac357e97c06c7d64e 29-May-2009 David 'Digit' Turner <digit@google.com> am ebefc48e: Expose the stable/frozen log-related definitions of <cutils/logd.h> into a new header: <android/log.h>

Merge commit 'ebefc48e61a7d5cf2a3228e6c8729feeeb42d1b4'

* commit 'ebefc48e61a7d5cf2a3228e6c8729feeeb42d1b4':
Expose the stable/frozen log-related definitions of <cutils/logd.h> into a new header: <android/log.h>
ebefc48e61a7d5cf2a3228e6c8729feeeb42d1b4 29-May-2009 David 'Digit' Turner <digit@google.com> Expose the stable/frozen log-related definitions of <cutils/logd.h> into a new header: <android/log.h>

This is in order to expose the correponding functions in the 1.5 Native Development Kit, to allow
applicative native code to send messages to the log.
ndroid/log.h
utils/logd.h
1edfd382ba69ff96ebd0220b05b134a90b910ea7 27-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
1cdef20774b2cd30f1a509227c86845337f63f11 22-May-2009 Jack Palevich <jackpal@google.com> Convert libacc into a shared library.

Document internal CodeGenerator interface

Move license to a separate license file.

Define a public API for calling libacc.

Update the "acc" test program to use the public API.
Move "main.cpp" and test scripts into the tests subdirectory.
Move test data from tests to tests/data
Remove stale test data.
cc/acc.h
67667115c51693ac27338be2aa7004789b15ff81 22-May-2009 Mathias Agopian <mathias@google.com> merge master to master_gl
d2362c2b20debe3844508b55de7f9b8dc2f5de33 21-May-2009 Mathias Agopian <mathias@google.com> am fee77ec0: don\'t use cdefs.h as it breaks the windows build.

Merge commit 'fee77ec093f78c1bb0ce85aa16d7ee8e8fa06f8a'

* commit 'fee77ec093f78c1bb0ce85aa16d7ee8e8fa06f8a':
don't use cdefs.h as it breaks the windows build.
fee77ec093f78c1bb0ce85aa16d7ee8e8fa06f8a 21-May-2009 Mathias Agopian <mathias@google.com> don't use cdefs.h as it breaks the windows build.
utils/native_handle.h
e7ada793925148cbc2f034d353c4d414bc4a082c 21-May-2009 San Mehat <san@google.com> am db017545: libsysutils: const correctness fixes + remove some debugging

Merge commit 'db017545796747115b8797f03e662b0f398a7c7b'

* commit 'db017545796747115b8797f03e662b0f398a7c7b':
libsysutils: const correctness fixes + remove some debugging
3fc51ba17d33c38d327d875d973e787b4dd076b6 20-May-2009 Mathias Agopian <mathias@google.com> move native_handle stuff from master_gl
utils/native_handle.h
db017545796747115b8797f03e662b0f398a7c7b 21-May-2009 San Mehat <san@google.com> libsysutils: const correctness fixes + remove some debugging

Signed-off-by: San Mehat <san@google.com>
ysutils/FrameworkClient.h
ysutils/SocketClient.h
ysutils/SocketListener.h
92a7541bce0f8ed7649dcbadd83b27d71e4f391f 20-May-2009 Nick Pelly <npelly@google.com> Helper to perform abortable blocking operations on a socket:
asocket_connect()
asocket_accept()
asocket_read()
asocket_write()
These calls are similar to the regular syscalls, but can be aborted with:
asocket_abort()

Calling close() on a regular POSIX socket does not abort blocked syscalls on
that socket in other threads.

After calling asocket_abort() the socket cannot be reused.

Call asocket_destory() *after* all threads have finished with the socket to
finish closing the socket and free the asocket structure.

The helper is implemented by setting the socket non-blocking to initiate
syscalls connect(), accept(), read(), write(), then using a blocking poll()
on both the primary socket and a local pipe. This makes the poll() abortable
by writing a byte to the local pipe in asocket_abort().

asocket_create() sets the fd to non-blocking mode. It must not be changed to
blocking mode.

Using asocket will triple the number of file descriptors required per
socket, due to the local pipe. It may be possible to use a global pipe per
process rather than per socket, but we have not been able to come up with a
race-free implementation yet.

All functions except asocket_init() and asocket_destroy() are thread safe.
utils/abort_socket.h
8f13782e7b4a705484d7f97f07513781b82be0dc 20-May-2009 Mathias Agopian <mathias@google.com> move native_handle stuff from master_gl
utils/native_handle.h
85246fee8547e1db3d1019c1e66ffee236bcf206 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> am b48acb0e: Merge change 1795 into donut

Merge commit 'b48acb0ebdc64d2f44cf869ac69aebbba2de192d'

* commit 'b48acb0ebdc64d2f44cf869ac69aebbba2de192d':
Make /system/xbin/tcpdump setuid root.
b48acb0ebdc64d2f44cf869ac69aebbba2de192d 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1795 into donut

* changes:
Make /system/xbin/tcpdump setuid root.
34c22c5ba951e4df7cc72d8d10da78064d5cfbe4 18-May-2009 David 'Digit' Turner <digit@google.com> am 414ff7d9: Move fdevent from libcutils into adb directory. ADB is the only client of this API, and I intend to modify it extensively to clean its codebase soon.

Merge commit '414ff7d98ac8d7610a26206335954ad15f43f3ac'

* commit '414ff7d98ac8d7610a26206335954ad15f43f3ac':
Move fdevent from libcutils into adb directory. ADB is the only client of this API, and I intend to modify it extensively to clean its codebase soon.
414ff7d98ac8d7610a26206335954ad15f43f3ac 18-May-2009 David 'Digit' Turner <digit@google.com> Move fdevent from libcutils into adb directory. ADB is the only client of this API, and I intend to modify it extensively to clean its codebase soon.
utils/fdevent.h
d99d1445fdf344b72d20a7689f4c85e35762748b 15-May-2009 San Mehat <san@google.com> resolved conflicts w/ b415390e74deae0f4c3eb43330c9f8708281acc5 merge
328a4fb5354318783a41d78f2a6201d0d4912761 15-May-2009 Dan Egnor <egnor@google.com> Make /system/xbin/tcpdump setuid root.
rivate/android_filesystem_config.h
fc1ceb63d5a84e3b5f96275a9f20d50ab6e3ffd7 15-May-2009 Android (Google) Code Review <android-gerrit@google.com> am dee68663: Merge change 1693 into donut

Merge commit 'dee68663724c7117a51eb3af3d9390e00af832f5'

* commit 'dee68663724c7117a51eb3af3d9390e00af832f5':
libsysutils: Introduce 'ServiceManager', for starting/stopping init services
b415390e74deae0f4c3eb43330c9f8708281acc5 15-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1778 into donut

* changes:
init: Create new 'vpn' user/group and set owner of '/dev/tun' to it.
dee68663724c7117a51eb3af3d9390e00af832f5 15-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1693 into donut

* changes:
libsysutils: Introduce 'ServiceManager', for starting/stopping init services
4a6f2321e76685b9489d020980dffb1d9ac73fc0 15-May-2009 San Mehat <san@google.com> init: Create new 'vpn' user/group and set owner of '/dev/tun' to it.

Signed-off-by: San Mehat <san@google.com>
rivate/android_filesystem_config.h
c41d1c8074ed02acc9d1e749d81e0aafb5efbbfa 14-May-2009 San Mehat <san@google.com> libsysutils: Introduce 'ServiceManager', for starting/stopping init services

Signed-off-by: San Mehat <san@google.com>
ysutils/ServiceManager.h
035b427c703e24d583be7aef9923a85327d8b546 15-May-2009 Eric Fischer <enf@google.com> am 722a5c04: Add support for "standalone months" to tztime\'s strftime().

Merge commit '722a5c0462f38827f4097065bfc3826b9e0e9fb4'

* commit '722a5c0462f38827f4097065bfc3826b9e0e9fb4':
Add support for "standalone months" to tztime's strftime().
b862ab74c95e4f76c7081ea5756c7ba719833f8c 15-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
722a5c0462f38827f4097065bfc3826b9e0e9fb4 13-May-2009 Eric Fischer <enf@google.com> Add support for "standalone months" to tztime's strftime().

The idea here is that some languages need a different form of the month
name in constructions like "January 2" than in "January 2009", since the
one in the "January 2" case really means "of January." So with this change,
a format string of "%-B" will use the standalone month, while "%B" will
continue to use the format month.
utils/tztime.h
294449dd6e45a9adadc98ac9afaaa91c74fb3b00 12-May-2009 San Mehat <san@google.com> am d768066: libsysutils: Tweak SocketListener and friends

Merge commit 'd768066ef54270a0d3ccfccd50ae8238db5a2cdd'

* commit 'd768066ef54270a0d3ccfccd50ae8238db5a2cdd':
libsysutils: Tweak SocketListener and friends
d768066ef54270a0d3ccfccd50ae8238db5a2cdd 12-May-2009 San Mehat <san@google.com> libsysutils: Tweak SocketListener and friends

Signed-off-by: San Mehat <san@google.com>
ysutils/SocketClient.h
ysutils/SocketListener.h
e1156972e157e969fa9a9efd7c04d02061f090a2 11-May-2009 Android (Google) Code Review <android-gerrit@google.com> am c73d9e4: Merge changes 1341,1342 into donut

Merge commit 'c73d9e43a0c98a87222ef0c8749d6abba06c7778'

* commit 'c73d9e43a0c98a87222ef0c8749d6abba06c7778':
libsysutils: Add multiple client support and fix some bugs
nexus: Implement wifi scanner and fix a lot of bugs
fa644ffe944c01a9b00f8d7676d58394fabee285 08-May-2009 San Mehat <san@google.com> libsysutils: Add multiple client support and fix some bugs
ysutils/FrameworkClient.h
ysutils/FrameworkCommand.h
ysutils/FrameworkListener.h
ysutils/FrameworkManager.h
ysutils/NetlinkListener.h
ysutils/SocketClient.h
ysutils/SocketListener.h
ab15ac0881517ef2a72fbcd11a39d634c678878d 08-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
9399844278c0efb1a4d85ea77ca3c6f47e854855 07-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 747baad: Merge change 1092 into donut

Merge commit '747baadddb37737b0ecf83f6147a5e3252a34b12'

* commit '747baadddb37737b0ecf83f6147a5e3252a34b12':
libsysutils: New C++ system convenience library
168415b822cae1f8b54ef09c41c11a9b97b87f40 06-May-2009 San Mehat <san@google.com> libsysutils: New C++ system convenience library

This library contains re-usable classes for common
system level daemons. Initial consumers of this library
are 'nexus' and 'vold2'

Signed-off-by: San Mehat <san@google.com>
ysutils/FrameworkCommand.h
ysutils/FrameworkListener.h
ysutils/FrameworkManager.h
ysutils/NetlinkEvent.h
ysutils/NetlinkListener.h
ysutils/SocketListener.h
8cd81ab3f2a446837bd267b6e48ac7231c2f16bb 02-May-2009 Mathias Agopian <mathias@google.com> get rid of native_handle_{dup|copy} since they were not used any longer
utils/native_handle.h
f31371145037fc1e8c794370bdcaab331214176e 30-Apr-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
9fe0f0d14d30677ab4f728b7c64df8f27fc0c3bd 30-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> am 6181f70: Merge change 484 into donut

Merge commit '6181f70bd40fd020661841923e725df75a3a2793'

* commit '6181f70bd40fd020661841923e725df75a3a2793':
filesystem: Add new group 'sdcard_rw' for restricting sd card write access
6e1f21584f43311f35ae7f6a4737c6a7e846083a 23-Apr-2009 San Mehat <san@google.com> filesystem: Add new group 'sdcard_rw' for restricting sd card write access

Signed-off-by: San Mehat <san@google.com>
rivate/android_filesystem_config.h
cccf42773a54b972301a0a62f314269acd252e3e 18-Apr-2009 Mathias Agopian <mathias@google.com> fix copyright notice
utils/compiler.h
b5fbd75f6c58558a430ce15d077eed0a5ae97d9d 17-Apr-2009 Mathias Agopian <mathias@google.com> add a compiler.h to libcutils. it's intended to define compiler-dependent macros.

currently, it defines CC_LIKELY and CC_UNLIKELY.
utils/compiler.h
61d8e487e65cba39a4ba98a8157e730f6db1a421 10-Apr-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into master_gl
1d3faaf72f28c9d71dde067b74b1351cdbc9a758 10-Apr-2009 Mathias Agopian <mathias@google.com> Integrate from //sandbox/mathias/donut/...@145728

SurfaceFlinger rework for new EGL driver model support.
utils/ashmem.h
utils/native_handle.h
455a6dffd4db929f46b9c5a1e1f5b541b9721bfe 29-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'open_source' into google_internal
b1487e4c587ce1184e3d0036ac5e6bd90405688d 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import //branches/master/...@140412
utils/tztime.h
83b65486beffc7c86f24c428fbb7b50bbbe189f9 18-Mar-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake' into merge

Conflicts:
init/devices.c
libpixelflinger/Android.mk
dd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
rch/darwin-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
test/ctest.h
utils/adb_networking.h
utils/array.h
utils/ashmem.h
utils/atomic.h
utils/config_utils.h
utils/cpu_info.h
utils/dir_hash.h
utils/event_tag_map.h
utils/fdevent.h
utils/hashmap.h
utils/jstring.h
utils/log.h
utils/logd.h
utils/logger.h
utils/logprint.h
utils/memory.h
utils/misc.h
utils/mq.h
utils/mspace.h
utils/native_handle.h
utils/process_name.h
utils/properties.h
utils/record_stream.h
utils/selector.h
utils/sockets.h
utils/threads.h
utils/tztime.h
utils/uio.h
utils/zygote.h
incrypt/rsa.h
incrypt/sha.h
ixelflinger/format.h
ixelflinger/pixelflinger.h
rivate/android_filesystem_config.h
rivate/pixelflinger/ggl_context.h
rivate/pixelflinger/ggl_fixed.h
ipfile/zipfile.h
e54eebbf1a908d65ee8cf80bab62821c05666d70 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
rch/darwin-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
test/ctest.h
utils/adb_networking.h
utils/array.h
utils/ashmem.h
utils/atomic.h
utils/config_utils.h
utils/cpu_info.h
utils/dir_hash.h
utils/event_tag_map.h
utils/fdevent.h
utils/hashmap.h
utils/jstring.h
utils/log.h
utils/logd.h
utils/logger.h
utils/logprint.h
utils/memory.h
utils/misc.h
utils/mq.h
utils/mspace.h
utils/native_handle.h
utils/process_name.h
utils/properties.h
utils/record_stream.h
utils/selector.h
utils/sockets.h
utils/threads.h
utils/tztime.h
utils/uio.h
utils/zygote.h
incrypt/rsa.h
incrypt/sha.h
ixelflinger/format.h
ixelflinger/pixelflinger.h
rivate/android_filesystem_config.h
rivate/pixelflinger/ggl_context.h
rivate/pixelflinger/ggl_fixed.h
ipfile/zipfile.h
1b8e5a6b14ca850920e19b3dfae41e6494475c1a 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
utils/logger.h
utils/logprint.h
13f797da7f190e9ea52f2f3d235210b8a4963b21 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
ixelflinger/format.h
1b6345894ee746905e6fa7807bfc64e5ab6834ba 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'cupcake'
8ac3a138168f79b47356fb5aea2f6d95fc3147c6 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
utils/native_handle.h
038862e152b98d0c0f355c6802beaa1ed59cefbe 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'cupcake'
5ae090ed949cea9d1e7ab1552b455a229f8f9757 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
rch/linux-arm/AndroidConfig.h
77d0c65b950570edd5241a8f2ebecfc3acbc5135 19-Dec-2008 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake'

Conflicts:
init/devices.c
logwrapper/logwrapper.c
mountd/AutoMount.c
35237d135807af84bf9b0e5b8d7f8633e58db6f5 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
rch/linux-arm/AndroidConfig.h
rch/target_linux-x86/AndroidConfig.h
utils/tztime.h
ixelflinger/format.h
rivate/android_filesystem_config.h
rivate/pixelflinger/ggl_context.h
abb9638e3696e393d6dc45439feda91073e52103 04-Nov-2008 Alexey Tarasov <tarasov@dodologics.com> 1. added macro definitions to AndroidConfig.h
2. removed unnecessary include of <alloca.h>
rch/freebsd-x86/AndroidConfig.h
57401dc849db11f38133796c01d982de0391318d 02-Nov-2008 Alexey Tarasov <tarasov@dodologics.com> Added AndroidConfig.h for FreeBSD
rch/freebsd-x86/AndroidConfig.h
4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
rch/darwin-x86/AndroidConfig.h
rch/linux-arm/AndroidConfig.h
rch/linux-x86/AndroidConfig.h
rch/windows/AndroidConfig.h
test/ctest.h
utils/adb_networking.h
utils/array.h
utils/ashmem.h
utils/atomic.h
utils/config_utils.h
utils/cpu_info.h
utils/dir_hash.h
utils/event_tag_map.h
utils/fdevent.h
utils/hashmap.h
utils/jstring.h
utils/log.h
utils/logd.h
utils/logprint.h
utils/memory.h
utils/misc.h
utils/mq.h
utils/mspace.h
utils/process_name.h
utils/properties.h
utils/record_stream.h
utils/selector.h
utils/sockets.h
utils/threads.h
utils/tztime.h
utils/uio.h
utils/zygote.h
incrypt/rsa.h
incrypt/sha.h
ixelflinger/format.h
ixelflinger/pixelflinger.h
rivate/android_filesystem_config.h
rivate/pixelflinger/ggl_context.h
rivate/pixelflinger/ggl_fixed.h
ipfile/zipfile.h