Prevent bit shifting if num bits is negative

Causes OpenGL Software Renderer to generate incorrect window
coordinates on MIPS & possibly x86

Change-Id: I3c51b6a5a4e6af75e9b31d9d47e4e4d894825888
Signed-off-by: Bhanu Chetlapalli <bhanu@mips.com>
Decode DHCP netmask option correctly

Signed-off-by: Chris Dearman <chris@mips.com>
Change-Id: Ibc288458baf2f75c5b19a46e4c97ee59521cc9a5
Kindle Fire USB ID

Adds Lab126's USB id to the known USB Devices

Change-Id: I3cd5d90bba68123d5d3d2d67e1ab7d60137eb388
Signed-off-by: Jon Sawyer <jon@cunninglogic.com>
fastboot: Add ability to specify device path

For manufacturing and testing, there is a need to talk to
whatever device is connected to a given port on the host.  This
change modifies fastboot's "-s" option to take either a serial
number or a device path.  The device paths of the connected
devices can be listed using "fastboot -l devices" whose output
will resemble:

    016B75D60A00600D	usb:2-5	fastboot
    AD3C12020173	usb:1-4.3	fastboot

The second column lists the device paths.  If the -l option is
not given, the output from "fastboot devices" will be the same as
it used to be (i.e. the paths will not be printed).

Finally, note that the format of the device paths are platform
dependent.  The example above is from Linux.  On OS-X, the paths
will be "usb:" followed by hex digits.  For Windows, the device
paths will be printed as "????????????" and the -s option will
not be able to select a device until someone implements the
underlying functionality in usb_windows.c.

Change-Id: I1f01b8f47acd32edb0ac18db107316a2c923bbde
Signed-off-by: Scott Anderson <saa@android.com>
Added missing header to window.h

Added string.h for memset()

Change-Id: I48ebec4df82bb9ae0b5daac3c653b9c4dc42c502
Signed-off-by: Homin Lee <suapapa@insignal.co.kr>
adb: Add ability to specify device path

For manufacturing and testing, there is a need to talk to
whatever device is connected to a given port on the host.  This
change modifies adb's "-s" option to take either a serial
number or a device path.  The device paths of the connected
devices can be listed using "adb devices -l" whose output
will resemble:

    List of devices attached
    016B75D60A00600D	usb:2-5	device
    3031D0B2E71D00EC	usb:1-4.3	device

The second column lists the device paths.  If the -l option is
not given, the output from "adb devices" will be the same as
it used to be (i.e. the paths will not be printed).

The device path can also be obtained with the get-devpath
command:

    $adb -s 3031D0B2E71D00EC get-devpath
    usb:1-4.3

Note that the format of the device paths are platform dependent.
The example above is from Linux.  On OS-X, the paths will be
"usb:" followed by hex digits.  For other platforms, the device
paths will be printed as "????????????" and the -s option will
not be able to select a device until someone implements the
underlying functionality.

Change-Id: I057d5d9f8c5bb72eddf5b8088aae110763f809d7
Signed-off-by: Scott Anderson <saa@android.com>
init: Add noexec mount option

Change-Id: Ic13d66797a86d38432e79af0c3387ce986d0a19f
Forward compatibility

Change-Id: I51a5eb98fb3fa3e09f2eb75de128068572081046
Merge from AOSP

Change-Id: Iedb6ea4e1cf66edda8d91e3d432cb010e697ed44
am 980a59b4: Forward compatibility

* commit '980a59b45dd210d2c2d0d9e61d48899af2d1099f':
  Forward compatibility
am 307d9cfc: Merge from AOSP

* commit '307d9cfc1690ec4982152aae1b6bd24ff8e078ed':
Merge from AOSP

Change-Id: Iae692bc1c54ffc241fd6853bbbdab19688c4f46b
init: set perms for cpufreq interactive governor boost

Change-Id: I6509cda358b4a75706afd01a5b5a36eabe492554
Signed-off-by: Todd Poynor <toddpoynor@google.com>
am f8bbaba5: Add directory for forward locked apps in ASECs

* commit 'f8bbaba57bf309fec83dc9842176d996831e6db1':
  Add directory for forward locked apps in ASECs
am 8d3ea1d1: init: set perms for cpufreq interactive governor boost -- DO NOT MERGE

* commit '8d3ea1d1e198e71ca3f856c6f397faf40922f562':
  init: set perms for cpufreq interactive governor boost -- DO NOT MERGE
am 75878ecc: Merge from AOSP

* commit '75878eccc219c02eff6363f1b16a8dab07032322':
  Forward compatibility
am d8b46e7f: am f8bbaba5: Add directory for forward locked apps in ASECs

* commit 'd8b46e7fd6769bcae2cdd763a809a265e7a527da':
  Add directory for forward locked apps in ASECs
am 1875930a: (-s ours) am 8d3ea1d1: init: set perms for cpufreq interactive governor boost -- DO NOT MERGE

* commit '1875930a9d24f2b97650bf511c52d197ba0d44d6':
  init: set perms for cpufreq interactive governor boost -- DO NOT MERGE
Merge "Prevent bit shifting if num bits is negative"
am 5b3eb07e: Merge "Prevent bit shifting if num bits is negative"

* commit '5b3eb07ed730f9765c93afcb7f49559c212fe533':
  Prevent bit shifting if num bits is negative