auto import from //branches/cupcake/...@125939

This commit is contained in:
The Android Open Source Project
2009-01-09 18:27:30 -08:00
12 changed files with 43 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ ifeq ($(HOST_OS), windows)
COMMON_JAVAC := development/host/windows/prebuilt/javawrap.exe -J-Xmx256m \ COMMON_JAVAC := development/host/windows/prebuilt/javawrap.exe -J-Xmx256m \
-target 1.5 -Xmaxerrs 9999999 -target 1.5 -Xmaxerrs 9999999
else else
COMMON_JAVAC := javac -J-Xmx256m -target 1.5 -Xmaxerrs 9999999 COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -Xmaxerrs 9999999
endif endif
# Eclipse. # Eclipse.

View File

@@ -109,6 +109,7 @@ $(combo_target)GLOBAL_CFLAGS += \
-ffunction-sections \ -ffunction-sections \
-funwind-tables \ -funwind-tables \
-fstack-protector \ -fstack-protector \
-fno-short-enums \
$(arch_version_cflags) \ $(arch_version_cflags) \
-include $(android_config_h) \ -include $(android_config_h) \
-I $(arch_include_dir) -I $(arch_include_dir)

View File

@@ -3,6 +3,11 @@
# current configuration and platform, which # current configuration and platform, which
# are not specific to what is being built. # are not specific to what is being built.
# Use bash, not whatever shell somebody has installed as /bin/sh
# This is repeated from main.mk, since envsetup.sh runs this file
# directly.
SHELL := /bin/bash
# Standard source directories. # Standard source directories.
SRC_DOCS:= $(TOPDIR)docs SRC_DOCS:= $(TOPDIR)docs
# TODO: Enforce some kind of layering; only add include paths # TODO: Enforce some kind of layering; only add include paths

View File

@@ -1147,11 +1147,13 @@ $(hide) jar $(if $(strip $(PRIVATE_JAR_MANIFEST)),-cfm,-cf) \
@rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR) @rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR)
endef endef
#TODO: use a smaller -Xmx value for most libraries;
# only core.jar and framework.jar need a heap this big.
define transform-classes.jar-to-dex define transform-classes.jar-to-dex
@echo "target Dex: $(PRIVATE_MODULE)" @echo "target Dex: $(PRIVATE_MODULE)"
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
$(hide) $(DX) -JXms16M \ $(hide) $(DX) -JXms16M \
$(if $(GENERATE_DEX_DEBUG), -JXmx1536M, -JXmx1280M) \ -JXmx1536M \
--dex --output=$@ \ --dex --output=$@ \
$(if $(NO_OPTIMIZE_DX), \ $(if $(NO_OPTIMIZE_DX), \
--no-optimize) \ --no-optimize) \

View File

@@ -1,5 +1,7 @@
# Use bash, not whatever shell somebody has installed as /bin/sh # Use bash, not whatever shell somebody has installed as /bin/sh
# This is repeated in config.mk, since envsetup.sh runs that file
# directly.
SHELL := /bin/bash SHELL := /bin/bash
# this turns off the suffix rules built into make # this turns off the suffix rules built into make

View File

@@ -31,10 +31,10 @@ pathmap_INCL := \
bluez-libs:external/bluez/libs/include \ bluez-libs:external/bluez/libs/include \
bluez-utils:external/bluez/utils \ bluez-utils:external/bluez/utils \
bootloader:bootable/bootloader/legacy/include \ bootloader:bootable/bootloader/legacy/include \
corecg:external/skia/include/corecg \ corecg:external/skia/include/core \
dbus:external/dbus \ dbus:external/dbus \
frameworks-base:frameworks/base/include \ frameworks-base:frameworks/base/include \
graphics:external/skia/include/graphics \ graphics:external/skia/include/core \
libc:bionic/libc/include \ libc:bionic/libc/include \
libdrm1:frameworks/base/media/libdrm/mobile1/include \ libdrm1:frameworks/base/media/libdrm/mobile1/include \
libdrm2:frameworks/base/media/libdrm/mobile2/include \ libdrm2:frameworks/base/media/libdrm/mobile2/include \

View File

@@ -49,7 +49,7 @@ $(eval $(call check-api, \
checkapi-last, \ checkapi-last, \
$(SRC_API_DIR)/$(lastword $(TARGET_AVAILABLE_SDK_VERSIONS)).xml, \ $(SRC_API_DIR)/$(lastword $(TARGET_AVAILABLE_SDK_VERSIONS)).xml, \
$(INTERNAL_PLATFORM_API_FILE), \ $(INTERNAL_PLATFORM_API_FILE), \
-hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 \ -hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 \
-error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 \ -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 \
-error 16 -error 17 -error 18 , \ -error 16 -error 17 -error 18 , \
cat $(BUILD_SYSTEM)/apicheck_msg_last.txt \ cat $(BUILD_SYSTEM)/apicheck_msg_last.txt \
@@ -63,7 +63,8 @@ $(eval $(call check-api, \
$(INTERNAL_PLATFORM_API_FILE), \ $(INTERNAL_PLATFORM_API_FILE), \
-error 2 -error 3 -error 4 -error 5 -error 6 \ -error 2 -error 3 -error 4 -error 5 -error 6 \
-error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 \ -error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 \
-error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 , \ -error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 \
-error 25 , \
cat $(BUILD_SYSTEM)/apicheck_msg_current.txt \ cat $(BUILD_SYSTEM)/apicheck_msg_current.txt \
)) ))

View File

@@ -114,6 +114,7 @@ public class Errors
public static Error CHANGED_NATIVE = new Error(22, HIDDEN); public static Error CHANGED_NATIVE = new Error(22, HIDDEN);
public static Error CHANGED_CLASS = new Error(23, WARNING); public static Error CHANGED_CLASS = new Error(23, WARNING);
public static Error CHANGED_DEPRECATED = new Error(24, WARNING); public static Error CHANGED_DEPRECATED = new Error(24, WARNING);
public static Error CHANGED_SYNCHRONIZED = new Error(25, ERROR);
public static Error[] ERRORS = { public static Error[] ERRORS = {
PARSE_ERROR, PARSE_ERROR,
@@ -140,6 +141,7 @@ public class Errors
CHANGED_NATIVE, CHANGED_NATIVE,
CHANGED_CLASS, CHANGED_CLASS,
CHANGED_DEPRECATED, CHANGED_DEPRECATED,
CHANGED_SYNCHRONIZED,
}; };
public static boolean setErrorLevel(int code, int level) { public static boolean setErrorLevel(int code, int level) {

View File

@@ -145,6 +145,12 @@ public class MethodInfo implements AbstractMethodInfo {
consistent = false; consistent = false;
} }
if (mIsSynchronized != mInfo.mIsSynchronized) {
Errors.error(Errors.CHANGED_SYNCHRONIZED, mInfo.position(),
"Method " + mInfo.qualifiedName() + " has changed 'synchronized' qualifier from " + mIsSynchronized + " to " + mInfo.mIsSynchronized);
consistent = false;
}
for (String exec : mExceptions) { for (String exec : mExceptions) {
if (!mInfo.mExceptions.contains(exec)) { if (!mInfo.mExceptions.contains(exec)) {
// exclude 'throws' changes to finalize() overrides with no arguments // exclude 'throws' changes to finalize() overrides with no arguments

View File

@@ -1,5 +1,7 @@
#include "files.h" #include "files.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -6,6 +6,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -288,50 +288,54 @@ hr.blue {
/* main */ /* main */
#mainBodyFluid {
margin: 20px 10px;
color:#333;
}
#mainBodyFixed { #mainBodyFixed {
margin: 20px auto; margin: 20px 10px;
color: #333; color: #333;
width:920px; width:920px;
} }
#mainBodyFixed h3 { #mainBodyFixed h3,
#mainBodyFluid h3 {
color:#336666; color:#336666;
font-size:1.25em; font-size:1.25em;
margin: 0em 0em 0em 0em; margin: 0em 0em 0em 0em;
padding-bottom:.5em; padding-bottom:.5em;
} }
#mainBodyFixed h2 { #mainBodyFixed h2,
#mainBodyFluid h2 {
color:#336666; color:#336666;
font-size:1.25em; font-size:1.25em;
margin: 0; margin: 0;
padding-bottom:.5em; padding-bottom:.5em;
} }
#mainBodyFixed h1 { #mainBodyFixed h1,
#mainBodyFluid h1 {
color:#435A6E; color:#435A6E;
font-size:1.7em; font-size:1.7em;
margin: 1em 0; margin: 1em 0;
} }
#mainBodyFixed .green, #mainBodyFixed .green,
#mainBodyFluid .green,
#jd-content .green { #jd-content .green {
color:#7BB026; color:#7BB026;
background-color:none; background-color:none;
} }
#mainBodyFixed a { #mainBodyFixed a,
#mainBodyFluid a {
color: #006699; color: #006699;
font-size: 13px; font-size: 13px;
text-decoration: underline; text-decoration: underline;
} }
#mainBodyFixed a.orangeLink {
color: #ff6600;
font-size: 13px;
text-decoration: underline;
}
#mainBodyLeft { #mainBodyLeft {
float: left; float: left;
width: 600px; width: 600px;