summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Preliminary struct and union support.Jack Palevich2009-08-263-95/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Working features: - struct - union - nested structs - anonymous structs - forward declarations - '.' and '->' - copying structs using '=' Missing features: - passing structs by value - returning structs by value - typedef - sizeof Example: struct v {float x, y, z, w; }; void add(struct v* result, struct v* a, struct v* b) { result->x = a->x + b->x; result->y = a->y + b->y; result->z = a->z + b->z; result->w = a->w + b->w; } Reworked size-of and alignment logic to support structs. Improved encoding of ARM immediate constants.
* Make pointer casting work.Jack Palevich2009-08-253-91/+96
|
* Add runtime check for whether or not the OTCC-output tests can be run.Jack Palevich2009-08-251-2/+11
| | | | This means we don't have to manually specify the --norunotcc flag.
* only use faster SHA-1 code on machines with good libcDoug Zongker2009-08-212-8/+9
| | | | | 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.
* Merge change 21613 into eclairAndroid (Google) Code Review2009-08-212-24/+195
|\ | | | | | | | | * changes: add optimized SHA1 algorithm
| * add optimized SHA1 algorithmDoug Zongker2009-08-172-24/+195
| | | | | | | | | | | | | | 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.
* | am 85b3fcc5: system/core: vold: Change permission of external storage device ↵San Mehat2009-08-210-0/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | nodes Merge commit '85b3fcc5de004999756c1e90bcf845480217b3f6' into eclair * commit '85b3fcc5de004999756c1e90bcf845480217b3f6': system/core: vold: Change permission of external storage device nodes
| * | system/core: vold: Change permission of external storage device nodesSan Mehat2009-08-211-1/+1
| | | | | | | | | | | | Signed-off-by: San Mehat <san@google.com>
* | | system/core: vold: Change permission of external storage device nodesSan Mehat2009-08-211-1/+1
| | | | | | | | | | | | Signed-off-by: San Mehat <san@google.com>
* | | Merge change 21737 into eclairAndroid (Google) Code Review2009-08-211-17/+49
|\ \ \ | | | | | | | | | | | | | | | | * changes: Added -s flag to ls.
| * | | Added -s flag to ls.Andy McFadden2009-08-181-17/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge change 22155 into eclairAndroid (Google) Code Review2009-08-201-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: devices: set permissions for lightsensor
| * | | | devices: set permissions for lightsensorIliyan Malchev2009-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | | | Merge change 22143 into eclairAndroid (Google) Code Review2009-08-201-13/+342
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add ARM hardware floating point support.
| * | | | | Add ARM hardware floating point support.Jack Palevich2009-08-201-13/+342
| | | | | |
* | | | | | Merge change 21956 into eclairAndroid (Google) Code Review2009-08-201-5/+1
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | * changes: Route all log tags with "RIL" prefix to radio buffer.
| * | | | | Route all log tags with "RIL" prefix to radio buffer.John Michelau2009-08-191-5/+1
| | | | | |
* | | | | | Merge change 21921 into eclairAndroid (Google) Code Review2009-08-191-11/+17
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | * changes: fastboot: Add retry to USB read call.
| * | | | | fastboot: Add retry to USB read call.Dan Murphy2009-08-191-11/+17
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | Add a --nox86 flag to allow disabling x86 testsJack Palevich2009-08-191-1/+5
| | | | | | | | | | | | | | | | | | | | The x86 tests don't work on non-Linux systems.
* | | | | Handle functions with anonymous argumentsJack Palevich2009-08-193-2/+19
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example: int f(int a, int, int c) { return a + c; }
* | | | Merge change 21845 into eclairAndroid (Google) Code Review2009-08-182-8/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Allow redefinition of macros.
| * | | | Allow redefinition of macros.Jack Palevich2009-08-182-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example: #define A 3 #define A 4 This used to do strange things, but now works as it should.
* | | | | Merge change 21834 into eclairAndroid (Google) Code Review2009-08-182-3/+16
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * changes: Allow '//'-style comments in #defines.
| * | | | Allow '//'-style comments in #defines.Jack Palevich2009-08-182-3/+16
| | | | |
* | | | | Merge change 21812 into eclairAndroid (Google) Code Review2009-08-184-15/+53
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * changes: Allow parenthesized expressions as the value of defines
| * | | | Allow parenthesized expressions as the value of definesJack Palevich2009-08-184-15/+53
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | fix part of [2017702] OpenGL bugs with alpha values of 1.0 in the source ↵Mathias Agopian2009-08-181-17/+48
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | do not merge: cherry-picked ecd23c09e87d7088285f8b7c2eeb98815c2e69e0 from ↵Jack Palevich2009-08-171-3/+10
| |/ |/| | | | | master branch
* | am e3baafd8: BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDKRaphael2009-08-121-3/+5
|\ \ | |/ | | | | | | | | | | Merge commit 'e3baafd85a5fecd1714441455e3f75f26b5c381e' * commit 'e3baafd85a5fecd1714441455e3f75f26b5c381e': BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDK
| * BUG 2033924: Add AdbWinUsbApi.dll to prebuilt for Windows SDKRaphael2009-08-111-3/+5
| |
* | am c52c6021: (-s ours) DO NOT MERGE adb: Remove adbd from simulator build.Mike Lockwood2009-08-110-0/+0
|\ \ | |/ | | | | | | | | | | Merge commit 'c52c602171cb29c4a4c38005f321cf95d50d3418' * commit 'c52c602171cb29c4a4c38005f321cf95d50d3418': DO NOT MERGE adb: Remove adbd from simulator build.
| * DO NOT MERGE adb: Remove adbd from simulator build.Mike Lockwood2009-08-101-3/+3
| | | | | | | | | | | | It no longer compiles without recent kernel headers. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 704aa833: (-s ours) DO NOT MERGE cherry-pick "adb reboot" from master:Mike Lockwood2009-08-110-0/+0
|\ \ | |/ | | | | | | | | | | Merge commit '704aa833382a73f8e02d49b7e9c2aef9a49c65bd' * commit '704aa833382a73f8e02d49b7e9c2aef9a49c65bd': DO NOT MERGE cherry-pick "adb reboot" from master:
| * DO NOT MERGE cherry-pick "adb reboot" from master:Mike Lockwood2009-08-104-1/+52
| | | | | | | | | | | | | | | | | | | | 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>
* | init: set the correct kgsl device node permissionsDima Zavin2009-08-111-0/+3
| |
* | adb: Fix infinite loop in Linux host device discovery.Mike Lockwood2009-08-111-5/+1
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | adb: print better error message when there are insufficient permissions for ↵Mike Lockwood2009-08-081-7/+5
| | | | | | | | | | | | | | | | | | 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>
* | adb: update call to register_usb_transport in Mac and Windows builds.Mike Lockwood2009-08-082-2/+2
| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | adb: On Linux, detect USB devices for which adb does not have permissions to ↵Mike Lockwood2009-08-085-121/+159
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge change 20502Android (Google) Code Review2009-08-071-11/+1
|\ \ | | | | | | | | | | | | * changes: we actually have to saturate when doing premultilied blending with opengl
| * | we actually have to saturate when doing premultilied blending with openglMathias Agopian2009-08-071-11/+1
| | |
* | | am c5ceeeed: Merge change 20354 into donutDoug Zongker2009-08-071-0/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit 'c5ceeeedeeb1cc3ba3d8b54b04f983ae666755a2' * commit 'c5ceeeedeeb1cc3ba3d8b54b04f983ae666755a2': strip comments from event-log-tags on device
| * | Merge change 20354 into donutAndroid (Google) Code Review2009-08-071-0/+1
| |\ \ | | | | | | | | | | | | | | | | * changes: strip comments from event-log-tags on device
| | * | strip comments from event-log-tags on deviceDoug Zongker2009-08-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This saves about 8k from the system image. Bug: 2036961
* | | | adb: Use correct language ID when retrieving USB serial number.Guang Zhu2009-08-071-24/+48
| |_|/ |/| | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am ee40fc4e: rootdir: init.rc: Bump up background cpu shares to 5.0%San Mehat2009-08-061-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'ee40fc4e64e1656a16603778bee895ea389ec7d5' * commit 'ee40fc4e64e1656a16603778bee895ea389ec7d5': rootdir: init.rc: Bump up background cpu shares to 5.0%
| * | rootdir: init.rc: Bump up background cpu shares to 5.0%San Mehat2009-08-061-1/+2
| |/ | | | | | | Signed-off-by: San Mehat <san@google.com>
* | adb: Remove adbd from simulator build.Mike Lockwood2009-08-061-3/+3
| | | | | | | | | | | | It no longer compiles without recent kernel headers. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Merge change 20039Android (Google) Code Review2009-08-054-1/+52
|\ \ | | | | | | | | | | | | * changes: adb: add "adb reboot" command.