summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/aapt/Command.cpp19
-rw-r--r--tools/aapt/Resource.cpp2
-rw-r--r--[-rwxr-xr-x]tools/aidl/AST.cpp0
-rw-r--r--[-rwxr-xr-x]tools/aidl/AST.h0
-rw-r--r--[-rwxr-xr-x]tools/aidl/Type.cpp0
-rw-r--r--[-rwxr-xr-x]tools/aidl/Type.h0
-rw-r--r--[-rwxr-xr-x]tools/layoutlib/bridge/src/android/util/Log_Delegate.java0
-rw-r--r--[-rwxr-xr-x]tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/Nullable.java0
-rw-r--r--[-rwxr-xr-x]tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/VisibleForTesting.java0
-rw-r--r--[-rwxr-xr-x]tools/layoutlib/create/src/com/android/tools/layoutlib/create/DependencyFinder.java0
10 files changed, 20 insertions, 1 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp
index f7083a9..c3a0930 100644
--- a/tools/aapt/Command.cpp
+++ b/tools/aapt/Command.cpp
@@ -1840,6 +1840,25 @@ int doCrunch(Bundle* bundle)
return NO_ERROR;
}
+/*
+ * Do PNG Crunching on a single flag
+ * -i points to a single png file
+ * -o points to a single png output file
+ */
+int doSingleCrunch(Bundle* bundle)
+{
+ fprintf(stdout, "Crunching single PNG file: %s\n", bundle->getSingleCrunchInputFile());
+ fprintf(stdout, "\tOutput file: %s\n", bundle->getSingleCrunchOutputFile());
+
+ String8 input(bundle->getSingleCrunchInputFile());
+ String8 output(bundle->getSingleCrunchOutputFile());
+ if (preProcessImageToCache(bundle, input, output) != NO_ERROR) {
+ // we can't return the status_t as it gets truncate to the lower 8 bits.
+ return 42;
+ }
+ return NO_ERROR;
+}
+
char CONSOLE_DATA[2925] = {
32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 95, 46, 32, 32, 32, 32, 32, 32, 32, 32, 32,
diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp
index 9c2e1b9..77168f9 100644
--- a/tools/aapt/Resource.cpp
+++ b/tools/aapt/Resource.cpp
@@ -1946,7 +1946,7 @@ static status_t writeTextLayoutClasses(
const bool pub = (typeSpecFlags&ResTable_typeSpec::SPEC_PUBLIC) != 0;
fprintf(fp,
- "int styleable.%s_%s %d\n",
+ "int styleable %s_%s %d\n",
nclassName.string(),
String8(name).string(), (int)pos);
}
diff --git a/tools/aidl/AST.cpp b/tools/aidl/AST.cpp
index bfa6765..bfa6765 100755..100644
--- a/tools/aidl/AST.cpp
+++ b/tools/aidl/AST.cpp
diff --git a/tools/aidl/AST.h b/tools/aidl/AST.h
index ead5e7a..ead5e7a 100755..100644
--- a/tools/aidl/AST.h
+++ b/tools/aidl/AST.h
diff --git a/tools/aidl/Type.cpp b/tools/aidl/Type.cpp
index d572af6..d572af6 100755..100644
--- a/tools/aidl/Type.cpp
+++ b/tools/aidl/Type.cpp
diff --git a/tools/aidl/Type.h b/tools/aidl/Type.h
index ae12720..ae12720 100755..100644
--- a/tools/aidl/Type.h
+++ b/tools/aidl/Type.h
diff --git a/tools/layoutlib/bridge/src/android/util/Log_Delegate.java b/tools/layoutlib/bridge/src/android/util/Log_Delegate.java
index 7f432ab..7f432ab 100755..100644
--- a/tools/layoutlib/bridge/src/android/util/Log_Delegate.java
+++ b/tools/layoutlib/bridge/src/android/util/Log_Delegate.java
diff --git a/tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/Nullable.java b/tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/Nullable.java
index 0689c92..0689c92 100755..100644
--- a/tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/Nullable.java
+++ b/tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/Nullable.java
diff --git a/tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/VisibleForTesting.java b/tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/VisibleForTesting.java
index e4e016b..e4e016b 100755..100644
--- a/tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/VisibleForTesting.java
+++ b/tools/layoutlib/create/src/com/android/tools/layoutlib/annotations/VisibleForTesting.java
diff --git a/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DependencyFinder.java b/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DependencyFinder.java
index 2016c0e..2016c0e 100755..100644
--- a/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DependencyFinder.java
+++ b/tools/layoutlib/create/src/com/android/tools/layoutlib/create/DependencyFinder.java