Commit Graph

813 Commits

Author SHA1 Message Date
Iliyan Malchev 3bc1e9cd7b devices: set permissions for lightsensor
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-08-20 08:52:56 -07:00
Dan Murphy 4430f0c121 am 5f1b3393: Merge change 21921 into eclair
Merge commit '5f1b3393ab580d7f85916ddd2d6b2dbd1077366b'

* commit '5f1b3393ab580d7f85916ddd2d6b2dbd1077366b':
  fastboot: Add retry to USB read call.
2009-08-19 11:50:59 -07:00
Android (Google) Code Review 5f1b3393ab Merge change 21921 into eclair
* changes:
  fastboot: Add retry to USB read call.
2009-08-19 11:48:32 -07:00
Dan Murphy b2de4db941 fastboot: Add retry to USB read call.
If the USB connection to the device is reset but is still there
the code should retry to re-connect the device and continue.

This is a short term fix for a bootloader issue.
We should revisit and look for a better solution.

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-19 14:32:01 -04:00
Jack Palevich 70a9519db7 am d3abe3c4: Add a --nox86 flag to allow disabling x86 tests
Merge commit 'd3abe3c40de5709f2614aee49451d2d7e28150c3'

* commit 'd3abe3c40de5709f2614aee49451d2d7e28150c3':
  Add a --nox86 flag to allow disabling x86 tests
2009-08-19 11:18:31 -07:00
Jack Palevich 337b972f93 am 0a01a5db: Handle functions with anonymous arguments
Merge commit '0a01a5db5672b65f81732eaed6fb9fcccea16d06'

* commit '0a01a5db5672b65f81732eaed6fb9fcccea16d06':
  Handle functions with anonymous arguments
2009-08-19 11:18:30 -07:00
Jack Palevich d3abe3c40d Add a --nox86 flag to allow disabling x86 tests
The x86 tests don't work on non-Linux systems.
2009-08-19 11:12:56 -07:00
Jack Palevich 0a01a5db56 Handle functions with anonymous arguments
Example:

int f(int a, int, int c) {
    return a + c;
}
2009-08-19 10:53:43 -07:00
John Michelau ed7ccae296 Route all log tags with "RIL" prefix to radio buffer. 2009-08-19 10:06:52 -07:00
Jack Palevich 9be4634a75 am 761aeb43: Merge change 21845 into eclair
Merge commit '761aeb431e6d1482754a98bba2b683ba8111ef88'

* commit '761aeb431e6d1482754a98bba2b683ba8111ef88':
  Allow redefinition of macros.
2009-08-18 18:31:49 -07:00
Android (Google) Code Review 761aeb431e Merge change 21845 into eclair
* changes:
  Allow redefinition of macros.
2009-08-18 18:27:22 -07:00
Jack Palevich 815d8b8fdb Allow redefinition of macros.
Example:

#define A 3
#define A 4

This used to do strange things, but now works as it should.
2009-08-18 18:25:56 -07:00
Jack Palevich 3888c019ef am 9d129689: Merge change 21834 into eclair
Merge commit '9d1296898a93293e64529d548189bfc8185ffd08'

* commit '9d1296898a93293e64529d548189bfc8185ffd08':
  Allow '//'-style comments in #defines.
2009-08-18 17:49:39 -07:00
Android (Google) Code Review 9d1296898a Merge change 21834 into eclair
* changes:
  Allow '//'-style comments in #defines.
2009-08-18 17:46:17 -07:00
Jack Palevich 0b1827a5b2 Allow '//'-style comments in #defines. 2009-08-18 17:44:12 -07:00
Jack Palevich bf2d557b0a am 29f34260: Merge change 21812 into eclair
Merge commit '29f3426016116678c122b37cf6d5d40bdfec7749'

* commit '29f3426016116678c122b37cf6d5d40bdfec7749':
  Allow parenthesized expressions as the value of defines
2009-08-18 17:20:08 -07:00
Android (Google) Code Review 29f3426016 Merge change 21812 into eclair
* changes:
  Allow parenthesized expressions as the value of defines
2009-08-18 16:10:24 -07:00
Jack Palevich 0b2de0de64 Allow parenthesized expressions as the value of defines
For example, this now works:

#define A (1 + 2)

Note that we still don't support defines with argument lists, so this is
still illegal:

#define A(X) (X + 2)

Also in this change: The compiler test script allows command-line
arguments to disable testing on ARM and to disable testing the output
of the old OTCC compiler.

Disabling testing on ARM is handy for developing front-end code when no
device or emulator is available.

Disabling testing OTCC output is handy for some 64-bit Linux environments,
because the original OTCC needs some tweaking to be fully compatible, and
I don't have time to investigate this problem right now.
2009-08-18 16:04:03 -07:00
Mathias Agopian a89d4d0236 am 9d881764: fix part of [2017702] OpenGL bugs with alpha values of 1.0 in the source during blending into 8888 buffers
Merge commit '9d881764173ce16badb6f1098ba5cf44b36f9aec'

* commit '9d881764173ce16badb6f1098ba5cf44b36f9aec':
  fix part of [2017702] OpenGL bugs with alpha values of 1.0 in the source during blending into 8888 buffers
2009-08-18 14:38:10 -07:00
Mathias Agopian 9d88176417 fix part of [2017702] OpenGL bugs with alpha values of 1.0 in the source during blending into 8888 buffers
when ONE / ONE_MINUS_SRC_ALPHA blending mode was used, the code wasn't saturating the color component.
the reason was that this mode is used for premltiplied alpha blending, however, if used with a non
premultiplied source, the color component would wrap.

unfortunately, this costs 6 extra cycles per pixels, however... "correctness" prevails.

this should not impact the UI since it's using h/w acceleration most of the time it also doesn't
impact games which should be using h/w GL. This change will slow the emulator down a bit.
2009-08-18 14:34:51 -07:00
Andy McFadden 327e696808 Added -s flag to ls.
This may not be useful, and may actually be misleading since yaffs2
doesn't track the blocks used for each file (it just divides the length
down by 512).  I'm submitting it because yaffs2 isn't the only
filesystem we'll ever use.

I also changed some sprintf to snprintf, mostly out of paranoid habit.
2009-08-18 11:10:03 -07:00
Jack Palevich f777df8b85 am 7f5b1a2b: (-s ours) do not merge: cherry-picked ecd23c09e8 from master branch
Merge commit '7f5b1a2b317874a9009d20ed4d3789a7cb508ca4'

* commit '7f5b1a2b317874a9009d20ed4d3789a7cb508ca4':
  do not merge: cherry-picked ecd23c09e8 from master branch
2009-08-17 16:58:38 -07:00
Jack Palevich 7f5b1a2b31 do not merge: cherry-picked ecd23c09e8 from master branch 2009-08-17 16:54:56 -07:00
Doug Zongker a6de77de17 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.
2009-08-17 15:38:31 -07:00
Android (Google) Code Review cf47841fe9 Merge change 20547
* changes:
  Try not to crash with no error message.
2009-08-17 14:30:59 -07:00
Xinyu Chen e3530471bf Fix bug of mmc.c not checking read_file result.
This bug causes segment fault when reading name node of
SDIO mmc device's /sys file, which is not existed at all.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2009-08-16 22:19:36 +08:00
Ben Winslow 227c74af84 vold: Check partitions 1-4 instead of 0-3
In mmc_bootstrap_mmcblk, bootstrap partitions 1-4 instead of 0-3, since
that's how the kernel labels them.  Additionally, use the NDOSPART constant
from diskmbr.h instead of hardcoding 4 when scanning partitions.
2009-08-15 10:09:34 -04:00
Raphael 818806ad59 am e3baafd8: BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK
Merge commit 'e3baafd85a5fecd1714441455e3f75f26b5c381e'

* commit 'e3baafd85a5fecd1714441455e3f75f26b5c381e':
  BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK
2009-08-12 12:04:07 -07:00
Mike Lockwood 665ad087ae am c52c6021: (-s ours) DO NOT MERGE adb: Remove adbd from simulator build.
Merge commit 'c52c602171cb29c4a4c38005f321cf95d50d3418'

* commit 'c52c602171cb29c4a4c38005f321cf95d50d3418':
  DO NOT MERGE adb: Remove adbd from simulator build.
2009-08-11 18:11:48 -07:00
Mike Lockwood 1ca6711905 am 704aa833: (-s ours) DO NOT MERGE cherry-pick "adb reboot" from master:
Merge commit '704aa833382a73f8e02d49b7e9c2aef9a49c65bd'

* commit '704aa833382a73f8e02d49b7e9c2aef9a49c65bd':
  DO NOT MERGE cherry-pick "adb reboot" from master:
2009-08-11 18:11:42 -07:00
Dima Zavin 37b210f560 init: set the correct kgsl device node permissions 2009-08-11 16:19:52 -07:00
Raphael e3baafd85a BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK 2009-08-11 11:08:45 -07:00
Mike Lockwood d70dc73d8d adb: Fix infinite loop in Linux host device discovery.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-11 11:29:40 -04:00
Mike Lockwood c52c602171 DO NOT MERGE adb: Remove adbd from simulator build.
It no longer compiles without recent kernel headers.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-10 21:48:22 -04:00
Mike Lockwood 704aa83338 DO NOT MERGE cherry-pick "adb reboot" from master:
adb: add "adb reboot" command.

This will allow rebooting the device via adb on any build, including user builds.
An optional argument can be provided
(for example, "adb reboot bootloader" or adb reboot recovery")

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-10 20:15:25 -04:00
Joe Onorato ecd23c09e8 Try not to crash with no error message. 2009-08-08 13:54:49 -07:00
Mike Lockwood 37d3111b1c adb: print better error message when there are insufficient permissions for a device.
Now, a command like "adb shell" will print "insufficient permissions for device"
instead of "device not found" if adb does not have permissions to communicate with the device.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-08 13:53:16 -04:00
Mike Lockwood 5c93dba771 adb: update call to register_usb_transport in Mac and Windows builds.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-08 13:16:54 -04:00
Mike Lockwood 0927bf9690 adb: On Linux, detect USB devices for which adb does not have permissions to communicate with.
adb devices will now list devices without adequate file system permissions in /dev/bus/usb as:

List of devices attached
????????????	no permissions

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-08 12:44:35 -04:00
Android (Google) Code Review 4e3fb86156 Merge change 20502
* changes:
  we actually have to saturate when doing premultilied blending with opengl
2009-08-07 16:41:47 -07:00
Mathias Agopian 665a2227e5 we actually have to saturate when doing premultilied blending with opengl 2009-08-07 13:01:46 -07:00
Doug Zongker 6753c2bc23 am c5ceeeed: Merge change 20354 into donut
Merge commit 'c5ceeeedeeb1cc3ba3d8b54b04f983ae666755a2'

* commit 'c5ceeeedeeb1cc3ba3d8b54b04f983ae666755a2':
  strip comments from event-log-tags on device
2009-08-07 05:12:40 -07:00
Android (Google) Code Review c5ceeeedee Merge change 20354 into donut
* changes:
  strip comments from event-log-tags on device
2009-08-07 05:11:00 -07:00
Guang Zhu 1a1f818986 adb: Use correct language ID when retrieving USB serial number.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-07 06:36:42 -04:00
Doug Zongker 0e5e7ef1fe strip comments from event-log-tags on device
This saves about 8k from the system image.

Bug: 2036961
2009-08-06 16:43:47 -07:00
San Mehat 6bc6794f97 am ee40fc4e: rootdir: init.rc: Bump up background cpu shares to 5.0%
Merge commit 'ee40fc4e64e1656a16603778bee895ea389ec7d5'

* commit 'ee40fc4e64e1656a16603778bee895ea389ec7d5':
  rootdir: init.rc: Bump up background cpu shares to 5.0%
2009-08-06 15:02:33 -07:00
San Mehat ee40fc4e64 rootdir: init.rc: Bump up background cpu shares to 5.0%
Signed-off-by: San Mehat <san@google.com>
2009-08-06 14:13:35 -07:00
Mike Lockwood 781d041892 adb: Remove adbd from simulator build.
It no longer compiles without recent kernel headers.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-06 10:58:00 -04:00
Android (Google) Code Review 161de4e321 Merge change 20039
* changes:
  adb: add "adb reboot" command.
2009-08-05 15:02:54 -07:00
Mike Lockwood ee15662140 adb: add "adb reboot" command.
This will allow rebooting the device via adb on any build, including user builds.
An optional argument can be provided
(for example, "adb reboot bootloader" or adb reboot recovery")

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-05 17:57:20 -04:00