Commit Graph

549 Commits

Author SHA1 Message Date
Jack Palevich
055fcd23fb Use bash instead of sh because of the '[[' command
The '[[' command is not guaranteed to be present in /bin/sh, and in fact
is missing in stock Ubuntu 8.04
2009-05-28 15:10:26 -07:00
Jack Palevich
dd3cf52f6f Improve Linux 32-bit JVM detection logic.
Now we detect if the JVM we are about to run is 32-bit or not,
rather than checking if the CPU is capable of executing 64-bit
code or not.
2009-05-28 15:09:59 -07:00
Android (Google) Code Review
cb9c2eaac7 Merge change 2524 into donut
* changes:
  Force the use of 32-bit toolchain binaries on 64-bit systems. This is used to reduce the number of distributable prebuilt packages (i.e. linux-x86_64 is not needed anymore).
2009-05-28 08:58:35 -07:00
Owen Lin
5f563d066d Change build path to "packages/app/Camera.apk". So that it will also
build the application code.
2009-05-27 10:19:02 -07:00
David 'Digit' Turner
5ad95c577a Force the use of 32-bit toolchain binaries on 64-bit systems.
This is used to reduce the number of distributable prebuilt packages
(i.e. linux-x86_64 is not needed anymore).

Also fix build/tools/build-toolchain.sh to properly copy the GPL and LGPL
license files into the generated prebuilt packages.

Also add a .gitignore files to get less spew from 'git status'
2009-05-27 16:04:25 +02:00
Android (Google) Code Review
e0fbae303c Merge change 2472 into donut
* changes:
  ADT #1877529: Fixes a couple potential NPEs in content assists.
2009-05-26 15:26:00 -07:00
Xavier Ducrohet
ce803ae7b9 Update some class names in plugin.xml that were not updated by the refactoring. 2009-05-26 15:09:02 -07:00
Raphael
6235bff51d ADT #1877529: Fixes a couple potential NPEs in content assists.
Can't reproduce the NPE in ContentAssist listed in the
bug. However if things go really wrong there are a couple
objects that can be null so let's be defensive about them.
2009-05-26 15:08:33 -07:00
Xavier Ducrohet
ca2281d885 Fix wrong path to externalized string file.
This is from the big refactoring that moved everything into internal.
2009-05-26 13:44:02 -07:00
Android (Google) Code Review
5ad70bbac7 Merge change 2447 into donut
* changes:
  Fix the uninstall target in the Ant build script.
2009-05-26 13:25:29 -07:00
David 'Digit' Turner
8b057ed6f6 Fix bad qemud crash on emulator startup. 2009-05-26 22:21:28 +02:00
Xavier Ducrohet
55b0512f2b Fix the uninstall target in the Ant build script.
the uninstall parameter is a value (the application package), but the Ant
task was incorrectly using "path" for the argument.
2009-05-26 12:25:28 -07:00
Android (Google) Code Review
6a95ff237b Merge change 2388 into donut
* changes:
  Update Eclipse classpath file to add the android.tts package (path to package + files generated from AIDL).
2009-05-26 10:05:33 -07:00
David 'Digit' Turner
af45b39d88 This adds a new helper program (qemu-props) to support the emulated system.
Its purpose is to contact the 'boot-properties' service during the
boot process and to set the list of system properties read from the
emulator program through it.

It must be launched from /system/etc/init.goldfish.rc as root.

It depends on the 'boot-properties' service being implemented by the
emulator (in a later patch). If not available, it will simply timeout.

This also fixes a potential crash in qemud which can happen in the following case:

- client sends a command to a service
- the service responds with one or more message
- the service immediately closes the connection before the client can read the data

what happened is that the FDHandler object was buffering out-going packets to the
client, but the Multiplexer acted on the disconnection immediately. This resulted
in:

- client_free() being called
-   fdhandler_shutdown() being called
-     the FDHandler being placed on the 'closing' list to be able to send
      buffered packets later. And 'receiver_close' being called
-       client_fd_close() being called, which would call client_free()
        recursively
-         the second client_free() call would free the object
-  the first client_free() call would try to free the object again
-  ==> dlmalloc() detects a double-free and immediately aborts.

the fixes simply avoids the calle to receiver_close() in fdhandler_shutdown()
since this function is called from an explicit shutdown request from the multiplexer,
it doesn't correspond to the case where the client has closed the connection itself.
2009-05-26 17:07:25 +02:00
Android (Google) Code Review
3a39e9c90b Merge change 2078 into donut
* changes:
  Add simple change log to the NDK documentation.
2009-05-25 02:56:37 -07:00
Android (Google) Code Review
8c093d5d2a Merge change 2085 into donut
* changes:
  This fixes the build to always define the ANDROID macro, and remove an empty -I from the compiler options.
2009-05-25 02:10:35 -07:00
Android (Google) Code Review
ceada119d3 Merge change 2320 into donut
* changes:
  Sensors: Use a native_handle for the data channel instead of a single file descriptor.
2009-05-23 10:35:12 -07:00
Jean-Michel Trivi
04502c6e43 Update Eclipse classpath file to add the android.tts package (path to package + files generated from AIDL). 2009-05-22 17:58:23 -07:00
Android (Google) Code Review
3276b8e868 Merge change 2384 into donut
* changes:
  SDK Updater: display properties of sources and packages.
2009-05-22 17:20:35 -07:00
Android (Google) Code Review
ab78aebc24 Merge change 2348 into donut
* changes:
  Fix typo in comment.
2009-05-22 17:03:47 -07:00
Raphael
f864c1bf93 SDK Updater: display properties of sources and packages. 2009-05-22 16:51:51 -07:00
Xavier Ducrohet
dc10c2e5a3 Update 'android update adb' to the new file format for 3rd USB Vendor IDs.
The new file format is simply 1 ID per line, no need for a count value.
Lines starting with '#' are comments and therefore ignored.
2009-05-22 15:47:13 -07:00
Phil Dubach
7c343cef7e Add XML Schema for runtest's test_defs.xml file 2009-05-22 14:56:35 -07:00
Android (Google) Code Review
0db48f76fb Merge change 2360 into donut
* changes:
  Make 'android update adb' write the USB vendor IDs in hexa.
2009-05-22 14:11:30 -07:00
Xavier Ducrohet
774ac9a0dc Make 'android update adb' write the USB vendor IDs in hexa. 2009-05-22 13:47:07 -07:00
Ken Shirriff
35787c0f99 Fix typo in comment. 2009-05-22 13:01:40 -07:00
Android (Google) Code Review
906e6529fc Merge change 2300 into donut
* changes:
  SDK Updater: some refactoring and some new features.
2009-05-22 12:30:35 -07:00
Raphael
1c7b811fe4 SDK Updater: some refactoring and some new features.
The refactoring part involves moving as much as possible stuff
in SdkLib/internal/repository.

The UI has moved in SdkUiLib/internal/repository except a specific
public wrapper for calling the Sdk Updater window.

There are also a bunch of new classes to handle the internal
structures: Package is the base type and to match the XML element
names we have PlatformPackage, AddonPackage, DocPackage and
ToolPackage.

All headers have been fixed.
2009-05-22 11:31:50 -07:00
Android (Google) Code Review
c35157377b Merge change 2281 into donut
* changes:
  Moved updateAdb into SdkManager and updated with new adb_usb.ini format.
2009-05-22 10:44:46 -07:00
Mike Lockwood
6834281462 Sensors: Use a native_handle for the data channel instead of a single file descriptor.
This eliminates the requirement that all sensors share a single file descriptor.
This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-22 10:03:00 -04:00
Reena Lee
96882a3406 am 83814319: AI 149189: Adding dalvik porting guide based on content from the Android source tree under dalvik/docs/porting.html
Merge commit '838143199e2270e3f103050c76cf24539ad8dfe1' into donut

* commit '838143199e2270e3f103050c76cf24539ad8dfe1':
  AI 149189: Adding dalvik porting guide based on content from the Android source tree under dalvik/docs/porting.html
2009-05-22 00:06:47 -07:00
Reena Lee
838143199e AI 149189: Adding dalvik porting guide based on content from the Android source tree under dalvik/docs/porting.html
Automated import of CL 149189
2009-05-22 00:04:27 -07:00
Wei-Ta Chen
97752d4f80 Add a timeout flag to runtest for running native tests on devices. 2009-05-21 18:17:08 -07:00
Xavier Ducrohet
0064943f50 Moved updateAdb into SdkManager and updated with new adb_usb.ini format.
New format is: 1 number per line. First number is vendor ID count, followed
by  the vendor IDs themselves. Comment lines starting with # accepted.
2009-05-21 18:11:36 -07:00
Raphael
cbfa85a410 Sdk Updater: Split UI in window and independant composites. 2009-05-21 15:22:50 -07:00
Raphael
1a0b3ffd5e Update doc with a better way to ignore windows problematic files. 2009-05-21 11:57:33 -07:00
Android (Google) Code Review
fc05fb2556 Merge change 2110 into donut
* changes:
  Replaced occurences of "porting guide" with platform development kit Also added LED documentation to the TOC
2009-05-21 10:44:18 -07:00
Android (Google) Code Review
38ea382789 Merge change 2122 into donut
* changes:
  Add support for USB Vendor ID in the add-ons.
2009-05-21 10:14:27 -07:00
Android (Google) Code Review
1f4a1dcb5f Merge change 2121 into donut
* changes:
  SDK #1800921: Packages the Windows SDK in a temporary location.
2009-05-20 22:31:31 -07:00
Raphael
d1959dcee1 SDK #1800921: Packages the Windows SDK in a temporary location.
This changes make_windows_sdk so that it packages everything
in a temp dir. Once the build & packaging succeeds, the final
Zip is copied to the desired location.

The temp dir is *not* cleared on zip errors, which helps in
diagnosing packaging issues after the fact.

This has no impact on the build process itself (i.e. make
adb, emulator, etc.) which all happen in $SDK/out anyway.

The temp dir can be passed as an argument. If not provided,
the default Cygwin $TMP is used. Otherwise /tmp is used.

I also added an usage description when parameters are missing.
2009-05-20 22:28:21 -07:00
Xavier Ducrohet
4817a2b5b3 Add support for USB Vendor ID in the add-ons.
The add-on manifest can now declare a USB vendor ID with the line
   usb-vendor=<id>
The ID must be a 16 hexadecimal value in the format 0xABCD.

The 'android' tool now has a new command 'android upate abd' that will create
a file called 'adb_usb.ini' in ~/.android/
This file will be read by adb to add support to those new vendor IDs.
2009-05-20 18:06:15 -07:00
Gaurav Mathur
c2d33c5b21 am 2fd2d2f9: AI 149080: Change default PDK app engine version to 2
Merge commit '2fd2d2f90e66eca36141ee594b83ed57f5a39764' into donut

* commit '2fd2d2f90e66eca36141ee594b83ed57f5a39764':
  AI 149080: Change default PDK app engine version to 2
2009-05-20 17:22:49 -07:00
Gaurav Mathur
2fd2d2f90e AI 149080: Change default PDK app engine version to 2
Automated import of CL 149080
2009-05-20 16:48:29 -07:00
Android (Google) Code Review
06b9f977c3 Merge change 2118 into donut
* changes:
  Add work-around for running DDMS on 64-bit Linux.
2009-05-20 15:25:00 -07:00
Jack Palevich
92b6f2b72b Add work-around for running DDMS on 64-bit Linux. 2009-05-20 14:42:04 -07:00
Android (Google) Code Review
55deffa35e Merge change 1736 into donut
* changes:
  Add tests definition (unit tests and stress tests) for Camera.
2009-05-20 14:31:23 -07:00
Gaurav Mathur
253806866e Replaced occurences of "porting guide" with platform development kit
Also added LED documentation to the TOC
2009-05-20 13:29:29 -07:00
Android (Google) Code Review
7114c7bf1c Merge change 2066 into donut
* changes:
  SDK Updater: Fetch source XML, display them in tree.
2009-05-20 12:04:20 -07:00
Raphael
08226b31f8 SDK Updater: Fetch source XML, display them in tree.
There's a notion of an asynchronous task with a progress bar & status UI.
That's still just experimental. Will need some refactoring, etc.
2009-05-20 11:58:16 -07:00
David 'Digit' Turner
93a4147f12 This fixes the build to always define the ANDROID macro, and remove an empty -I from the compiler options.
The latter had the effect of removing the benefit of optimization settings, i.e. a typical compiler
command would look like:

   <toolchain-compiler> .... -Isources/<module-path> -I -O2 -g

The "-I -O2" was interpreted literally as "search in '-O2' directory, and the optimization was
never set to 2 (or 0 in case of debug mode).
2009-05-20 18:37:31 +02:00