Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 71) sorted by relevance

123

/build/tools/zipalign/
DZipFile.cpp106 status_t result; in open() local
112 result = readCentralDir(); in open()
124 result = NO_ERROR; in open()
132 return result; in open()
209 status_t result = NO_ERROR; in readCentralDir() local
222 result = INVALID_OPERATION; in readCentralDir()
230 result = NO_MEMORY; in readCentralDir()
243 result = UNKNOWN_ERROR; in readCentralDir()
250 result = UNKNOWN_ERROR; in readCentralDir()
265 result = INVALID_OPERATION; in readCentralDir()
[all …]
DZipEntry.cpp42 status_t result; in initFromCDE() local
49 result = mCDE.read(fp); in initFromCDE()
50 if (result != NO_ERROR) { in initFromCDE()
52 return result; in initFromCDE()
65 result = mLFH.read(fp); in initFromCDE()
66 if (result != NO_ERROR) { in initFromCDE()
68 return result; in initFromCDE()
404 status_t result = NO_ERROR; in read() local
411 result = UNKNOWN_ERROR; in read()
417 result = UNKNOWN_ERROR; in read()
[all …]
DZipAlign.cpp160 int result = copyAndAlign(&zin, &zout, alignment, zopfli, pageAlignSharedLibs); in process() local
161 if (result != 0) { in process()
165 return result; in process()
231 int result = 1; in main() local
290 result = verify(argv[1], alignment, verbose, pageAlignSharedLibs); in main()
293 result = process(argv[1], argv[2], alignment, force, zopfli, pageAlignSharedLibs); in main()
296 if (result == 0) { in main()
297 result = verify(argv[2], alignment, verbose, pageAlignSharedLibs); in main()
304 result = 2; in main()
307 return result; in main()
/build/tools/ziptime/
DZipFile.cpp75 status_t result = 0; in rewriteCentralDir() local
88 result = -1; in rewriteCentralDir()
96 result = -1; in rewriteCentralDir()
109 result = -1; in rewriteCentralDir()
116 result = -1; in rewriteCentralDir()
130 result = -1; in rewriteCentralDir()
135 result = mEOCD.readBuf(buf + i, readAmount - i); in rewriteCentralDir()
136 if (result != 0) { in rewriteCentralDir()
158 result = -1; in rewriteCentralDir()
169 result = pEntry->initAndRewriteFromCDE(mZipFp); in rewriteCentralDir()
[all …]
DZipEntry.cpp46 status_t result; in initAndRewriteFromCDE() local
50 result = mCDE.rewrite(fp); in initAndRewriteFromCDE()
51 if (result != 0) { in initAndRewriteFromCDE()
53 return result; in initAndRewriteFromCDE()
64 result = mLFH.rewrite(fp); in initAndRewriteFromCDE()
65 if (result != 0) { in initAndRewriteFromCDE()
67 return result; in initAndRewriteFromCDE()
89 status_t result = 0; in rewrite() local
127 status_t result = 0; in rewrite() local
/build/tools/signapk/src/com/android/signapk/
DApkSignerV2.java321 Map<Integer, byte[]> result = new HashMap<>(digestAlgorithms.size()); in computeContentDigests() local
332 result.put(digestAlgorithm, md.digest(concatenationOfChunkCountAndChunkDigests)); in computeContentDigests()
334 return result; in computeContentDigests()
341 private static void setUnsignedInt32LittleEngian(int value, byte[] result, int offset) { in setUnsignedInt32LittleEngian() argument
342 result[offset] = (byte) (value & 0xff); in setUnsignedInt32LittleEngian()
343 result[offset + 1] = (byte) ((value >> 8) & 0xff); in setUnsignedInt32LittleEngian()
344 result[offset + 2] = (byte) ((value >> 16) & 0xff); in setUnsignedInt32LittleEngian()
345 result[offset + 3] = (byte) ((value >> 24) & 0xff); in setUnsignedInt32LittleEngian()
372 ByteBuffer result = ByteBuffer.allocate(resultSize); in generateApkSigningBlock() local
373 result.order(ByteOrder.LITTLE_ENDIAN); in generateApkSigningBlock()
[all …]
DPair.java46 int result = 1; in hashCode() local
47 result = prime * result + ((mFirst == null) ? 0 : mFirst.hashCode()); in hashCode()
48 result = prime * result + ((mSecond == null) ? 0 : mSecond.hashCode()); in hashCode()
49 return result; in hashCode()
/build/tools/
Ddiff_package_overlays.py50 result = {}
56 result[words[0]] = " ".join(words[1:])
58 return result
63 result = []
67 result.append(p)
69 result.append(p)
74 result.append(p)
87 for r in result:
Dproduct_debug.py54 result = ""
57 result = result + groups[i]
62 result = result + "<a href=\"%s\">%s</a>" % (href,s)
63 result = result + groups[-1]
64 return result
Dfilter-product-graph.py15 result = set()
17 result.add(inc)
20 result.add(d[0])
21 return result
Dfindleaves.py27 result = []
52 result.append(os.path.join(root, filename))
54 return result
Djava-layers.py110 result = None
115 result = dep
116 return result
171 result = []
175 result.extend([fn for fn in [s.strip() for s in f.readlines()]
180 result.extend([os.sep.join((root,f)) for f in files
182 return result
Dparsedeps.py67 result = []
71 result.append([ d ] + r)
72 d.trace = result
73 return result
/build/blueprint/
Dninja_strings.go59 result *ninjaString member
63 if len(ps.result.variables) == len(ps.result.strings) {
65 ps.result.strings = append(ps.result.strings, "")
67 ps.result.variables = append(ps.result.variables, v)
71 if len(ps.result.strings) != len(ps.result.variables) {
74 ps.result.strings = append(ps.result.strings, s)
85 result := &ninjaString{
93 result: result,
111 return result, nil
250 result := make([]*ninjaString, len(strs))
[all …]
/build/blueprint/pathtools/
Dlists.go26 result := make([]string, len(paths))
28 result[i] = filepath.Join(prefix, path)
30 return result
34 result := make([]string, len(paths))
36 result[i] = ReplaceExtension(path, extension)
38 return result
/build/tools/droiddoc/templates-pdk/assets/
Dandroid-developer-resource-browser.js28 if (!resultMatchesKeyword(loadedResults[i].result, keywords[j])) {
42 function resultMatchesKeyword(result, keyword) { argument
44 if (result.title &&
45 result.title.en.toLowerCase().indexOf(keyword) >= 0)
47 else if (result.description &&
48 result.description.en.toLowerCase().indexOf(keyword) >= 0)
50 else if (result.topicsHtml &&
51 result.topicsHtml.replace(/\<.*?\>/g,'').toLowerCase().indexOf(keyword) >= 0)
159 var result = results[i];
160 var resultJqNode = $(tmpl('tmpl_resource_browser_result', result));
[all …]
/build/kati/
Dfile_cache.cc46 Makefile* result = NULL; in ReadMakefile() local
47 auto p = cache_.emplace(filename, result); in ReadMakefile()
49 p.first->second = result = new Makefile(filename); in ReadMakefile()
51 result = p.first->second; in ReadMakefile()
53 return result; in ReadMakefile()
Dregen.cc51 vector<string> result; member
56 string result; member
223 gr->result.resize(num_files); in CheckStep1()
225 LOAD_STRING(fp, &gr->result[j]); in CheckStep1()
234 LOAD_STRING(fp, &sr->result); in CheckStep1()
265 bool needs_regen = files->size() != gr->result.size(); in CheckGlobResult()
266 for (size_t i = 0; i < gr->result.size(); i++) { in CheckGlobResult()
268 if ((*files)[i] != gr->result[i]) { in CheckGlobResult()
341 string result; in CheckShellResult() local
342 RunCommand("/bin/sh", sr->cmd, RedirectStderr::DEV_NULL, &result); in CheckShellResult()
[all …]
Dstring_piece.cc66 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() local
68 const size_type xpos = result - ptr_; in find()
76 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() local
77 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find()
88 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() local
89 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind()
Dexec.cc108 int result = RunCommand(shell_, command->cmd.c_str(), in ExecNode() local
112 if (result != 0) { in ExecNode()
115 command->output.c_str(), WEXITSTATUS(result)); in ExecNode()
118 command->output.c_str(), WEXITSTATUS(result)); in ExecNode()
Dfileutil.cc81 int result = waitpid(pid, &status, WNOHANG); in RunCommand() local
82 if (result < 0) in RunCommand()
95 if (result != 0) { in RunCommand()
Dstring_piece.h215 size_t result = 0;
217 result = (result * 131) + c;
219 return result;
/build/tools/makeparallel/
DMakefile.test6 result=$$($(MAKEPARALLEL) echo $(ARGS)); \
7 echo result: $${result}; \
8 if [ "$${result}" = "$(EXPECTED)" ]; then \
/build/blueprint/proptools/
Dclone.go23 result := reflect.New(structValue.Type())
24 CopyProperties(result.Elem(), structValue)
25 return result
185 result := reflect.New(structValue.Type())
186 cloneEmptyProperties(result.Elem(), structValue)
187 return result
/build/kati/testcase/tools/
Dfindleaves.py27 result = []
52 result.append(os.path.join(root, filename))
54 return result

123