auto import from //depot/cupcake/@137055
This commit is contained in:
@@ -88,6 +88,11 @@ ifndef NO_FALLBACK_FONT
|
|||||||
#NO_FALLBACK_FONT:=true
|
#NO_FALLBACK_FONT:=true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# To enabled instrumentation in webcore based apps like gmail and
|
||||||
|
# the browser, define WEBCORE_INSTRUMENTATION:=true
|
||||||
|
#WEBCORE_INSTRUMENTATION:=true
|
||||||
|
#endif
|
||||||
|
|
||||||
# when the build system changes such that this file must be updated, this
|
# when the build system changes such that this file must be updated, this
|
||||||
# variable will be changed. After you have modified this file with the new
|
# variable will be changed. After you have modified this file with the new
|
||||||
# changes (see buildspec.mk.default), update this to the new value from
|
# changes (see buildspec.mk.default), update this to the new value from
|
||||||
|
@@ -899,6 +899,7 @@ $(INSTALLED_FILES_FILE): $(INSTALLED_SYSTEMIMAGE)
|
|||||||
|
|
||||||
.PHONY: installed-file-list
|
.PHONY: installed-file-list
|
||||||
installed-file-list: $(INSTALLED_FILES_FILE)
|
installed-file-list: $(INSTALLED_FILES_FILE)
|
||||||
|
$(call dist-for-goals, sdk, $(INSTALLED_FILES_FILE))
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# A zip of the tests that are built when running "make tests".
|
# A zip of the tests that are built when running "make tests".
|
||||||
|
@@ -123,7 +123,11 @@ PREVIOUS_BUILD_CONFIG := $(strip $(PREVIOUS_BUILD_CONFIG))
|
|||||||
ifdef PREVIOUS_BUILD_CONFIG
|
ifdef PREVIOUS_BUILD_CONFIG
|
||||||
ifneq "$(current_build_config)" "$(PREVIOUS_BUILD_CONFIG)"
|
ifneq "$(current_build_config)" "$(PREVIOUS_BUILD_CONFIG)"
|
||||||
$(info *** Build configuration changed: "$(PREVIOUS_BUILD_CONFIG)" -> "$(current_build_config)")
|
$(info *** Build configuration changed: "$(PREVIOUS_BUILD_CONFIG)" -> "$(current_build_config)")
|
||||||
|
ifneq ($(DISABLE_AUTO_INSTALLCLEAN),true)
|
||||||
force_installclean := true
|
force_installclean := true
|
||||||
|
else
|
||||||
|
$(info DISABLE_AUTO_INSTALLCLEAN is set; skipping auto-clean. Your tree may be in an inconsistent state.)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif # else, this is the first build, so no need to clean.
|
endif # else, this is the first build, so no need to clean.
|
||||||
PREVIOUS_BUILD_CONFIG :=
|
PREVIOUS_BUILD_CONFIG :=
|
||||||
|
@@ -1263,11 +1263,15 @@ define transform-host-java-to-package
|
|||||||
@mkdir -p $(PRIVATE_CLASS_INTERMEDIATES_DIR)
|
@mkdir -p $(PRIVATE_CLASS_INTERMEDIATES_DIR)
|
||||||
$(call unzip-jar-files,$(PRIVATE_STATIC_JAVA_LIBRARIES), \
|
$(call unzip-jar-files,$(PRIVATE_STATIC_JAVA_LIBRARIES), \
|
||||||
$(PRIVATE_CLASS_INTERMEDIATES_DIR))
|
$(PRIVATE_CLASS_INTERMEDIATES_DIR))
|
||||||
|
$(call dump-words-to-file,$(sort\
|
||||||
|
$(PRIVATE_JAVA_SOURCES)),\
|
||||||
|
$(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq)
|
||||||
$(hide) $(HOST_JAVAC) -encoding ascii -g \
|
$(hide) $(HOST_JAVAC) -encoding ascii -g \
|
||||||
$(xlint_unchecked) \
|
$(xlint_unchecked) \
|
||||||
$(addprefix -classpath ,$(strip \
|
$(addprefix -classpath ,$(strip \
|
||||||
$(call normalize-path-list,$(PRIVATE_ALL_JAVA_LIBRARIES)))) \
|
$(call normalize-path-list,$(PRIVATE_ALL_JAVA_LIBRARIES)))) \
|
||||||
-extdirs "" -d $(PRIVATE_CLASS_INTERMEDIATES_DIR) $(PRIVATE_JAVA_SOURCES) || \
|
-extdirs "" -d $(PRIVATE_CLASS_INTERMEDIATES_DIR)\
|
||||||
|
\@$(PRIVATE_CLASS_INTERMEDIATES_DIR)/java-source-list-uniq || \
|
||||||
( rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR) ; exit 41 )
|
( rm -rf $(PRIVATE_CLASS_INTERMEDIATES_DIR) ; exit 41 )
|
||||||
$(hide) jar $(if $(strip $(PRIVATE_JAR_MANIFEST)),-cfm,-cf) \
|
$(hide) jar $(if $(strip $(PRIVATE_JAR_MANIFEST)),-cfm,-cf) \
|
||||||
$@ $(PRIVATE_JAR_MANIFEST) $(PRIVATE_EXTRA_JAR_ARGS) \
|
$@ $(PRIVATE_JAR_MANIFEST) $(PRIVATE_EXTRA_JAR_ARGS) \
|
||||||
@@ -1482,4 +1486,3 @@ include $(BUILD_SYSTEM)/distdir.mk
|
|||||||
# sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
|
# sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
|
||||||
# -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
|
# -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
|
||||||
# rm -f $*.d
|
# rm -f $*.d
|
||||||
|
|
||||||
|
@@ -136,11 +136,17 @@ ifneq (,$(user_variant))
|
|||||||
ifeq ($(HOST_OS)-$(WITH_DEXPREOPT_buildbot),linux-true)
|
ifeq ($(HOST_OS)-$(WITH_DEXPREOPT_buildbot),linux-true)
|
||||||
WITH_DEXPREOPT := true
|
WITH_DEXPREOPT := true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Disallow mock locations by default for user builds
|
||||||
|
ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=0
|
||||||
|
|
||||||
else # !user_variant
|
else # !user_variant
|
||||||
# Turn on checkjni for non-user builds.
|
# Turn on checkjni for non-user builds.
|
||||||
ADDITIONAL_BUILD_PROPERTIES += ro.kernel.android.checkjni=1
|
ADDITIONAL_BUILD_PROPERTIES += ro.kernel.android.checkjni=1
|
||||||
# Set device insecure for non-user builds.
|
# Set device insecure for non-user builds.
|
||||||
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
|
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
|
||||||
|
# Allow mock locations by default for non user builds
|
||||||
|
ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=1
|
||||||
endif # !user_variant
|
endif # !user_variant
|
||||||
|
|
||||||
ifeq (true,$(strip $(enable_target_debugging)))
|
ifeq (true,$(strip $(enable_target_debugging)))
|
||||||
|
@@ -91,6 +91,7 @@ libcamera.so 0xA9680000
|
|||||||
libqcamera.so 0xA9400000
|
libqcamera.so 0xA9400000
|
||||||
|
|
||||||
# pv libraries
|
# pv libraries
|
||||||
|
libopencorenet_support.so 0xA7D20000
|
||||||
libpvasf.so 0xA7BC0000
|
libpvasf.so 0xA7BC0000
|
||||||
libpvasfreg.so 0xA7B70000
|
libpvasfreg.so 0xA7B70000
|
||||||
libopencoredownload.so 0xA7B40000
|
libopencoredownload.so 0xA7B40000
|
||||||
|
@@ -15,22 +15,7 @@
|
|||||||
cts_dir := $(HOST_OUT)/cts
|
cts_dir := $(HOST_OUT)/cts
|
||||||
cts_tools_src_dir := cts/tools
|
cts_tools_src_dir := cts/tools
|
||||||
|
|
||||||
# Build a name that looks like:
|
|
||||||
#
|
|
||||||
# linux-x86 --> android-cts_linux-x86
|
|
||||||
# darwin-x86 --> android-cts_mac-x86
|
|
||||||
# windows-x86 --> android-cts_windows
|
|
||||||
#
|
|
||||||
cts_name := android-cts
|
cts_name := android-cts
|
||||||
ifeq ($(HOST_OS),darwin)
|
|
||||||
cts_host_os := mac
|
|
||||||
else
|
|
||||||
cts_host_os := $(HOST_OS)
|
|
||||||
endif
|
|
||||||
ifneq ($(HOST_OS),windows)
|
|
||||||
cts_host_os := $(cts_host_os)-$(HOST_ARCH)
|
|
||||||
endif
|
|
||||||
cts_name := $(cts_name)_$(cts_host_os)
|
|
||||||
|
|
||||||
CTS_EXECUTABLE := cts
|
CTS_EXECUTABLE := cts
|
||||||
ifeq ($(HOST_OS),windows)
|
ifeq ($(HOST_OS),windows)
|
||||||
@@ -48,13 +33,13 @@ CTS_CASE_LIST := \
|
|||||||
CtsDatabaseTestCases \
|
CtsDatabaseTestCases \
|
||||||
CtsGraphicsTestCases \
|
CtsGraphicsTestCases \
|
||||||
CtsLocationTestCases \
|
CtsLocationTestCases \
|
||||||
CtsNetTestCases \
|
|
||||||
CtsOsTestCases \
|
CtsOsTestCases \
|
||||||
CtsProviderTestCases \
|
CtsProviderTestCases \
|
||||||
CtsTextTestCases \
|
CtsTextTestCases \
|
||||||
CtsUtilTestCases \
|
CtsUtilTestCases \
|
||||||
CtsViewTestCases \
|
CtsViewTestCases \
|
||||||
CtsWidgetTestCases \
|
CtsWidgetTestCases \
|
||||||
|
CtsNetTestCases \
|
||||||
SignatureTest
|
SignatureTest
|
||||||
|
|
||||||
DEFAULT_TEST_PLAN := $(PRIVATE_DIR)/resource/plans
|
DEFAULT_TEST_PLAN := $(PRIVATE_DIR)/resource/plans
|
||||||
@@ -85,6 +70,9 @@ $(DEFAULT_TEST_PLAN): $(cts_dir)/all_cts_files_stamp $(cts_tools_src_dir)/utils/
|
|||||||
$(PRIVATE_DIR) $(TMP_DIR) $(TOP) $(TARGET_COMMON_OUT_ROOT) $(OUT_DIR)
|
$(PRIVATE_DIR) $(TMP_DIR) $(TOP) $(TARGET_COMMON_OUT_ROOT) $(OUT_DIR)
|
||||||
|
|
||||||
# Package CTS and clean up.
|
# Package CTS and clean up.
|
||||||
|
#
|
||||||
|
# TODO:
|
||||||
|
# Pack cts.bat into the same zip file as well. See http://buganizer/issue?id=1656821 for more details
|
||||||
INTERNAL_CTS_TARGET := $(cts_dir)/$(cts_name).zip
|
INTERNAL_CTS_TARGET := $(cts_dir)/$(cts_name).zip
|
||||||
$(INTERNAL_CTS_TARGET): PRIVATE_NAME := $(cts_name)
|
$(INTERNAL_CTS_TARGET): PRIVATE_NAME := $(cts_name)
|
||||||
$(INTERNAL_CTS_TARGET): PRIVATE_CTS_DIR := $(cts_dir)
|
$(INTERNAL_CTS_TARGET): PRIVATE_CTS_DIR := $(cts_dir)
|
||||||
|
@@ -15,8 +15,10 @@ PRODUCT_PACKAGES := \
|
|||||||
Mms \
|
Mms \
|
||||||
Settings \
|
Settings \
|
||||||
SdkSetup \
|
SdkSetup \
|
||||||
|
CustomLocale \
|
||||||
gpstest \
|
gpstest \
|
||||||
sqlite3
|
sqlite3 \
|
||||||
|
SoftKeyboard
|
||||||
|
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)
|
||||||
|
@@ -40,8 +40,8 @@
|
|||||||
|
|
||||||
<?cs if:sdk.not_latest_version ?>
|
<?cs if:sdk.not_latest_version ?>
|
||||||
<div class="special">
|
<div class="special">
|
||||||
<p><strong>This is NOT the latest version of the Android SDK</strong>.</p>
|
<p><strong>This is NOT the current Android SDK release.</strong></p>
|
||||||
<p>Go to the <a href="<?cs var:toroot ?>sdk/index.html">SDK home page</a> to be directed to the latest version.</p>
|
<p>Use the links under <strong>Current SDK Release</strong>, on the left, to be directed to the current SDK.</p>
|
||||||
</div>
|
</div>
|
||||||
<?cs /if ?>
|
<?cs /if ?>
|
||||||
|
|
||||||
|
@@ -682,6 +682,32 @@ td.gsc-search-button {
|
|||||||
height:1.8em;
|
height:1.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* search result tabs */
|
||||||
|
|
||||||
|
#doc-content .gsc-control {
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#doc-content .gsc-tabsArea {
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#doc-content .gsc-tabHeader {
|
||||||
|
padding: 3px 6px;
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#doc-content .gsc-tabHeader.gsc-tabhActive {
|
||||||
|
border-top: 2px solid #94B922;
|
||||||
|
}
|
||||||
|
|
||||||
|
#doc-content h2#searchTitle {
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#doc-content .gsc-resultsbox-visible {
|
||||||
|
padding:1em 0 0 6px;
|
||||||
|
}
|
||||||
|
|
||||||
/* CAROUSEL */
|
/* CAROUSEL */
|
||||||
|
|
||||||
|
@@ -102,7 +102,7 @@ function init() {
|
|||||||
var cookieHeight = getCookie(cookiePath+'height');
|
var cookieHeight = getCookie(cookiePath+'height');
|
||||||
if (cookieWidth) {
|
if (cookieWidth) {
|
||||||
restoreWidth(cookieWidth);
|
restoreWidth(cookieWidth);
|
||||||
} else {
|
} else if ($(".side-nav-resizable").length) {
|
||||||
resizeWidth();
|
resizeWidth();
|
||||||
}
|
}
|
||||||
if (cookieHeight) {
|
if (cookieHeight) {
|
||||||
@@ -127,7 +127,8 @@ function highlightNav(fullPageName) {
|
|||||||
var htmlPos = fullPageName.lastIndexOf(".html", fullPageName.length);
|
var htmlPos = fullPageName.lastIndexOf(".html", fullPageName.length);
|
||||||
var pathPageName = fullPageName.slice(firstSlashPos, htmlPos + 5);
|
var pathPageName = fullPageName.slice(firstSlashPos, htmlPos + 5);
|
||||||
var link = $("#devdoc-nav a[href$='"+ pathPageName+"']");
|
var link = $("#devdoc-nav a[href$='"+ pathPageName+"']");
|
||||||
if ((link.length == 0) && (fullPageName.indexOf("/guide/") != -1)) { // if there's no match, then let's backstep through the directory until we find an index.html page that matches our ancestor directories (only for dev guide)
|
if ((link.length == 0) && ((fullPageName.indexOf("/guide/") != -1) || (fullPageName.indexOf("/sdk/") != -1))) {
|
||||||
|
// if there's no match, then let's backstep through the directory until we find an index.html page that matches our ancestor directories (only for dev guide and sdk)
|
||||||
lastBackstep = pathPageName.lastIndexOf("/");
|
lastBackstep = pathPageName.lastIndexOf("/");
|
||||||
while (link.length == 0) {
|
while (link.length == 0) {
|
||||||
backstepDirectory = pathPageName.lastIndexOf("/", lastBackstep);
|
backstepDirectory = pathPageName.lastIndexOf("/", lastBackstep);
|
||||||
@@ -175,7 +176,9 @@ function resizeWidth() {
|
|||||||
|
|
||||||
function resizeAll() {
|
function resizeAll() {
|
||||||
resizeHeight();
|
resizeHeight();
|
||||||
|
if ($(".side-nav-resizable").length) {
|
||||||
resizeWidth();
|
resizeWidth();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadLast(cookiePath) {
|
function loadLast(cookiePath) {
|
||||||
|
78
tools/droiddoc/templates/assets/jquery-history.js
vendored
Normal file
78
tools/droiddoc/templates/assets/jquery-history.js
vendored
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
/**
|
||||||
|
* jQuery history event v0.1
|
||||||
|
* Copyright (c) 2008 Tom Rodenberg <tarodenberg gmail com>
|
||||||
|
* Licensed under the GPL (http://www.gnu.org/licenses/gpl.html) license.
|
||||||
|
*/
|
||||||
|
(function($) {
|
||||||
|
var currentHash, previousNav, timer, hashTrim = /^.*#/;
|
||||||
|
|
||||||
|
var msie = {
|
||||||
|
iframe: null,
|
||||||
|
getDoc: function() {
|
||||||
|
return msie.iframe.contentWindow.document;
|
||||||
|
},
|
||||||
|
getHash: function() {
|
||||||
|
return msie.getDoc().location.hash;
|
||||||
|
},
|
||||||
|
setHash: function(hash) {
|
||||||
|
var d = msie.getDoc();
|
||||||
|
d.open();
|
||||||
|
d.close();
|
||||||
|
d.location.hash = hash;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var historycheck = function() {
|
||||||
|
var hash = msie.iframe ? msie.getHash() : location.hash;
|
||||||
|
if (hash != currentHash) {
|
||||||
|
currentHash = hash;
|
||||||
|
if (msie.iframe) {
|
||||||
|
location.hash = currentHash;
|
||||||
|
}
|
||||||
|
var current = $.history.getCurrent();
|
||||||
|
$.event.trigger('history', [current, previousNav]);
|
||||||
|
previousNav = current;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$.history = {
|
||||||
|
add: function(hash) {
|
||||||
|
hash = '#' + hash.replace(hashTrim, '');
|
||||||
|
if (currentHash != hash) {
|
||||||
|
var previous = $.history.getCurrent();
|
||||||
|
location.hash = currentHash = hash;
|
||||||
|
if (msie.iframe) {
|
||||||
|
msie.setHash(currentHash);
|
||||||
|
}
|
||||||
|
$.event.trigger('historyadd', [$.history.getCurrent(), previous]);
|
||||||
|
}
|
||||||
|
if (!timer) {
|
||||||
|
timer = setInterval(historycheck, 100);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getCurrent: function() {
|
||||||
|
if (currentHash) {
|
||||||
|
return currentHash.replace(hashTrim, '');
|
||||||
|
} else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.history = function(fn) {
|
||||||
|
$(this).bind('history', fn);
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.historyadd = function(fn) {
|
||||||
|
$(this).bind('historyadd', fn);
|
||||||
|
};
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
currentHash = location.hash;
|
||||||
|
if ($.browser.msie) {
|
||||||
|
msie.iframe = $('<iframe style="display:none" src="javascript:false;"></iframe>').prependTo('body')[0];
|
||||||
|
msie.setHash(currentHash);
|
||||||
|
currentHash = msie.getHash();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})(jQuery);
|
@@ -107,7 +107,8 @@ function search_changed(e, kd, toroot)
|
|||||||
var text = search.value;
|
var text = search.value;
|
||||||
|
|
||||||
// 13 = enter
|
// 13 = enter
|
||||||
if (kd && (e.keyCode == 13)) {
|
if (!kd && (e.keyCode == 13)) {
|
||||||
|
document.getElementById("search_filtered_div").className = "no-display";
|
||||||
if (gSelectedIndex >= 0) {
|
if (gSelectedIndex >= 0) {
|
||||||
window.location = toroot + gMatches[gSelectedIndex].link;
|
window.location = toroot + gMatches[gSelectedIndex].link;
|
||||||
return false;
|
return false;
|
||||||
@@ -145,6 +146,7 @@ function search_changed(e, kd, toroot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
sync_selection_table(toroot);
|
sync_selection_table(toroot);
|
||||||
|
return true; // allow the event to bubble up to the search api
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,6 +17,10 @@
|
|||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
|
def get_file_size(path):
|
||||||
|
st = os.lstat(path)
|
||||||
|
return st.st_size;
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
output = []
|
output = []
|
||||||
roots = argv[1:]
|
roots = argv[1:]
|
||||||
@@ -27,7 +31,7 @@ def main(argv):
|
|||||||
for f in files:
|
for f in files:
|
||||||
try:
|
try:
|
||||||
row = (
|
row = (
|
||||||
os.path.getsize(os.path.sep.join((dir, f))),
|
get_file_size(os.path.sep.join((dir, f))),
|
||||||
os.path.sep.join((relative, f)),
|
os.path.sep.join((relative, f)),
|
||||||
)
|
)
|
||||||
output.append(row)
|
output.append(row)
|
||||||
|
Reference in New Issue
Block a user