Home
last modified time | relevance | path

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

12345678910>>...12

/dalvik/libdex/
DLeb128.h33 int result = *(ptr++); in readUnsignedLeb128() local
35 if (result > 0x7f) { in readUnsignedLeb128()
37 result = (result & 0x7f) | ((cur & 0x7f) << 7); in readUnsignedLeb128()
40 result |= (cur & 0x7f) << 14; in readUnsignedLeb128()
43 result |= (cur & 0x7f) << 21; in readUnsignedLeb128()
51 result |= cur << 28; in readUnsignedLeb128()
58 return result; in readUnsignedLeb128()
68 int result = *(ptr++); in readSignedLeb128() local
70 if (result <= 0x7f) { in readSignedLeb128()
71 result = (result << 25) >> 25; in readSignedLeb128()
[all …]
DDexClass.c109 DexClassData* result = malloc(sizeof(DexClassData)); in dexReadAndVerifyClassData() local
110 memset(result, 0, sizeof(*result)); in dexReadAndVerifyClassData()
111 return result; in dexReadAndVerifyClassData()
124 DexClassData* result = malloc(resultSize); in dexReadAndVerifyClassData() local
125 u1* ptr = ((u1*) result) + sizeof(DexClassData); in dexReadAndVerifyClassData()
129 if (result == NULL) { in dexReadAndVerifyClassData()
133 result->header = header; in dexReadAndVerifyClassData()
136 result->staticFields = (DexField*) ptr; in dexReadAndVerifyClassData()
139 result->staticFields = NULL; in dexReadAndVerifyClassData()
143 result->instanceFields = (DexField*) ptr; in dexReadAndVerifyClassData()
[all …]
DCmdUtils.c37 UnzipToFileResult result = kUTFRSuccess; in dexUnzipToFile() local
49 result = kUTFRNotZip; in dexUnzipToFile()
57 result = kUTFROutputFileProblem; in dexUnzipToFile()
69 result = kUTFRNoClassesDex; in dexUnzipToFile()
76 result = kUTFRBadZip; in dexUnzipToFile()
83 if (unlinkOnFailure && result != kUTFRSuccess) in dexUnzipToFile()
86 return result; in dexUnzipToFile()
110 UnzipToFileResult result = kUTFRGenericFailure; in dexOpenAndMap() local
121 result = kUTFRBadArgs; in dexOpenAndMap()
140 result = dexUnzipToFile(fileName, tempFileName, quiet); in dexOpenAndMap()
[all …]
/dalvik/dx/src/com/android/dx/rop/code/
DRegisterSpecList.java38 RegisterSpecList result = new RegisterSpecList(1); in make() local
39 result.set(0, spec); in make()
40 return result; in make()
52 RegisterSpecList result = new RegisterSpecList(2); in make() local
53 result.set(0, spec0); in make()
54 result.set(1, spec1); in make()
55 return result; in make()
68 RegisterSpecList result = new RegisterSpecList(3); in make() local
69 result.set(0, spec0); in make()
70 result.set(1, spec1); in make()
[all …]
DLocalVariableExtractor.java122 RegisterSpec result; in processBlock() local
124 result = insn.getLocalAssignment(); in processBlock()
126 if (result == null) { in processBlock()
132 result = insn.getResult(); in processBlock()
134 if (result != null in processBlock()
135 && primaryState.get(result.getReg()) != null) { in processBlock()
136 primaryState.remove(primaryState.get(result.getReg())); in processBlock()
141 result = result.withSimpleType(); in processBlock()
143 RegisterSpec already = primaryState.get(result); in processBlock()
149 if (!result.equals(already)) { in processBlock()
[all …]
DRop.java59 private final Type result; field in Rop
94 public Rop(int opcode, Type result, TypeList sources, in Rop() argument
97 if (result == null) { in Rop()
119 this.result = result; in Rop()
141 public Rop(int opcode, Type result, TypeList sources, in Rop() argument
143 this(opcode, result, sources, exceptions, branchingness, false, in Rop()
159 public Rop(int opcode, Type result, TypeList sources, int branchingness, in Rop() argument
161 this(opcode, result, sources, StdTypeList.EMPTY, branchingness, false, in Rop()
176 public Rop(int opcode, Type result, TypeList sources, String nickname) { in Rop() argument
177 this(opcode, result, sources, StdTypeList.EMPTY, Rop.BRANCH_NONE, in Rop()
[all …]
/dalvik/dx/src/com/android/dx/util/
DHex.java37 char[] result = new char[16]; in u8() local
39 result[15 - i] = Character.forDigit((int) v & 0x0f, 16); in u8()
43 return new String(result); in u8()
53 char[] result = new char[8]; in u4() local
55 result[7 - i] = Character.forDigit(v & 0x0f, 16); in u4()
59 return new String(result); in u4()
69 char[] result = new char[6]; in u3() local
71 result[5 - i] = Character.forDigit(v & 0x0f, 16); in u3()
75 return new String(result); in u3()
85 char[] result = new char[4]; in u2() local
[all …]
DIntList.java47 IntList result = new IntList(1); in makeImmutable() local
49 result.add(value); in makeImmutable()
50 result.setImmutable(); in makeImmutable()
52 return result; in makeImmutable()
62 IntList result = new IntList(2); in makeImmutable() local
64 result.add(value0); in makeImmutable()
65 result.add(value1); in makeImmutable()
66 result.setImmutable(); in makeImmutable()
68 return result; in makeImmutable()
100 int result = 0; in hashCode() local
[all …]
/dalvik/dx/src/com/android/dx/ssa/
DSsaInsn.java30 private RegisterSpec result; field in SsaInsn
39 protected SsaInsn(RegisterSpec result, SsaBasicBlock block) { in SsaInsn() argument
45 this.result = result; in SsaInsn()
75 return result; in getResult()
83 protected void setResult(RegisterSpec result) { in setResult() argument
84 if (result == null) { in setResult()
88 this.result = result; in setResult()
115 return result != null && result.getReg() == reg; in isResultReg()
126 if (result != null) { in changeResultReg()
127 result = result.withReg(reg); in changeResultReg()
[all …]
DLocalVariableExtractor.java143 RegisterSpec result; in processBlock() local
145 result = insn.getLocalAssignment(); in processBlock()
147 if (result == null) { in processBlock()
150 result = insn.getResult(); in processBlock()
152 if (result != null && primaryState.get(result.getReg()) != null) { in processBlock()
153 primaryState.remove(primaryState.get(result.getReg())); in processBlock()
158 result = result.withSimpleType(); in processBlock()
160 RegisterSpec already = primaryState.get(result); in processBlock()
166 if (!result.equals(already)) { in processBlock()
173 = primaryState.localItemToSpec(result.getLocalItem()); in processBlock()
[all …]
DSsaConverter.java45 SsaMethod result in convertToSsaMethod() local
48 edgeSplit(result); in convertToSsaMethod()
50 LocalVariableInfo localInfo = LocalVariableExtractor.extract(result); in convertToSsaMethod()
52 placePhiFunctions(result, localInfo, 0); in convertToSsaMethod()
53 new SsaRenamer(result).run(); in convertToSsaMethod()
59 result.makeExitBlock(); in convertToSsaMethod()
61 return result; in convertToSsaMethod()
88 SsaMethod result; in testEdgeSplit() local
90 result = SsaMethod.newFromRopMethod(rmeth, paramWidth, isStatic); in testEdgeSplit()
92 edgeSplit(result); in testEdgeSplit()
[all …]
/dalvik/vm/native/
Djava_lang_Runtime.c76 StringObject* result = NULL; in Dalvik_java_lang_Runtime_nativeLoad() local
86 result = dvmCreateStringFromCstr(msg); in Dalvik_java_lang_Runtime_nativeLoad()
87 dvmReleaseTrackedAlloc((Object*) result, NULL); in Dalvik_java_lang_Runtime_nativeLoad()
92 RETURN_PTR(result); in Dalvik_java_lang_Runtime_nativeLoad()
129 long result = 1; in Dalvik_java_lang_Runtime_availableProcessors() local
131 result = sysconf(_SC_NPROCESSORS_ONLN); in Dalvik_java_lang_Runtime_availableProcessors()
132 if (result > INT_MAX) { in Dalvik_java_lang_Runtime_availableProcessors()
133 result = INT_MAX; in Dalvik_java_lang_Runtime_availableProcessors()
134 } else if (result < 1 ) { in Dalvik_java_lang_Runtime_availableProcessors()
135 result = 1; in Dalvik_java_lang_Runtime_availableProcessors()
[all …]
/dalvik/dx/src/junit/textui/
DResultPrinter.java26 synchronized void print(TestResult result, long runTime) { in print() argument
28 printErrors(result); in print()
29 printFailures(result); in print()
30 printFooter(result); in print()
46 protected void printErrors(TestResult result) { in printErrors() argument
47 printDefects(result.errors(), result.errorCount(), "error"); in printErrors()
50 protected void printFailures(TestResult result) { in printFailures() argument
51 printDefects(result.failures(), result.failureCount(), "failure"); in printFailures()
80 protected void printFooter(TestResult result) { in printFooter() argument
81 if (result.wasSuccessful()) { in printFooter()
[all …]
/dalvik/dx/src/com/android/dx/dex/file/
DAnnotationUtils.java92 Annotation result = new Annotation(ANNOTATION_DEFAULT_TYPE, SYSTEM); in makeAnnotationDefault() local
94 result.put(new NameValuePair(VALUE_UTF, new CstAnnotation(defaults))); in makeAnnotationDefault()
95 result.setImmutable(); in makeAnnotationDefault()
96 return result; in makeAnnotationDefault()
106 Annotation result = new Annotation(ENCLOSING_CLASS_TYPE, SYSTEM); in makeEnclosingClass() local
108 result.put(new NameValuePair(VALUE_UTF, clazz)); in makeEnclosingClass()
109 result.setImmutable(); in makeEnclosingClass()
110 return result; in makeEnclosingClass()
120 Annotation result = new Annotation(ENCLOSING_METHOD_TYPE, SYSTEM); in makeEnclosingMethod() local
122 result.put(new NameValuePair(VALUE_UTF, method)); in makeEnclosingMethod()
[all …]
DTypeIdsSection.java64 IndexedItem result = typeIds.get(type); in get() local
66 if (result == null) { in get()
70 return result; in get()
110 TypeIdItem result = typeIds.get(type); in intern() local
112 if (result == null) { in intern()
113 result = new TypeIdItem(new CstType(type)); in intern()
114 typeIds.put(type, result); in intern()
117 return result; in intern()
134 TypeIdItem result = typeIds.get(typePerSe); in intern() local
136 if (result == null) { in intern()
[all …]
/dalvik/vm/
DCheckJni.c1211 void* result; in createGuardedPACopy() local
1213 result = createGuardedCopy(arrObj->contents, len, true); in createGuardedPACopy()
1218 return result; in createGuardedPACopy()
1230 u1* result; in releaseGuardedPACopy() local
1262 result = (u1*) freeGuardedCopy(dataBuf); in releaseGuardedPACopy()
1264 result = (u1*) getGuardedCopyOriginalPtr(dataBuf); in releaseGuardedPACopy()
1268 result -= offsetof(ArrayObject, contents); in releaseGuardedPACopy()
1270 return result; in releaseGuardedPACopy()
1283 jint result; in Check_GetVersion() local
1284 result = BASE_ENV(env)->GetVersion(env); in Check_GetVersion()
[all …]
DAtomic.c159 int result; in dvmQuasiAtomicCas64() local
166 result = 0; in dvmQuasiAtomicCas64()
168 result = 1; in dvmQuasiAtomicCas64()
171 return result; in dvmQuasiAtomicCas64()
176 int64_t result; in dvmQuasiAtomicRead64() local
180 result = *addr; in dvmQuasiAtomicRead64()
182 return result; in dvmQuasiAtomicRead64()
223 int result; in dvmQuasiAtomicCas64() local
235 result = 0; in dvmQuasiAtomicCas64()
237 result = 1; in dvmQuasiAtomicCas64()
[all …]
/dalvik/dx/src/junit/runner/
DClassPathTestCollector.java23 Hashtable result = collectFilesInPath(classPath); in collectTests() local
24 return result.elements(); in collectTests()
28 Hashtable result= collectFilesInRoots(splitClassPath(classPath)); in collectFilesInPath() local
29 return result; in collectFilesInPath()
33 Hashtable<String,String> result= new Hashtable<String,String>(100); in collectFilesInRoots() local
36 gatherFiles(new File((String)e.nextElement()), "", result); in collectFilesInRoots()
37 return result; in collectFilesInRoots()
40 void gatherFiles(File classRoot, String classFileName, Hashtable<String,String> result) { in gatherFiles() argument
45 result.put(className, className); in gatherFiles()
52 gatherFiles(classRoot, classFileName+File.separatorChar+contents[i], result); in gatherFiles()
[all …]
/dalvik/dx/src/com/android/dx/rop/type/
DStdTypeList.java171 StdTypeList result = new StdTypeList(1); in make() local
172 result.set(0, type); in make()
173 return result; in make()
184 StdTypeList result = new StdTypeList(2); in make() local
185 result.set(0, type0); in make()
186 result.set(1, type1); in make()
187 return result; in make()
199 StdTypeList result = new StdTypeList(3); in make() local
200 result.set(0, type0); in make()
201 result.set(1, type1); in make()
[all …]
/dalvik/tests/064-field-access/src/
DMain.java54 Object result = null; in getValue() local
58 result = new Boolean(field.getBoolean(obj)); in getValue()
61 result = new Byte(field.getByte(obj)); in getValue()
64 result = new Short(field.getShort(obj)); in getValue()
67 result = new Character(field.getChar(obj)); in getValue()
70 result = new Integer(field.getInt(obj)); in getValue()
73 result = new Long(field.getLong(obj)); in getValue()
76 result = new Float(field.getFloat(obj)); in getValue()
79 result = new Double(field.getDouble(obj)); in getValue()
82 result = field.get(obj); in getValue()
[all …]
/dalvik/tests/022-interface/src/
DMain.java22 int result = 0; in main() local
28 result = faceObj.iFunc2(5); in main()
30 System.out.println(result); in main()
33 result = faceObj2.iFunc2(5); in main()
35 System.out.println(result); in main()
/dalvik/dx/src/com/android/dx/rop/annotation/
DAnnotations.java53 Annotations result = new Annotations(); in combine() local
55 result.addAll(a1); in combine()
56 result.addAll(a2); in combine()
57 result.setImmutable(); in combine()
59 return result; in combine()
74 Annotations result = new Annotations(); in combine() local
76 result.addAll(annotations); in combine()
77 result.add(annotation); in combine()
78 result.setImmutable(); in combine()
80 return result; in combine()
[all …]
/dalvik/tools/
Ddeadcode.py25 result = headerPattern.search(buffer, start)
28 if result is None:
36 sections[sectionName] = buffer[anchor:result.start()]
38 sectionName = result.group(1)
39 start = result.end()
58 result = methodPattern.search(section, start)
60 if result is None:
64 methods.append(result.group(1))
65 start = result.end()
/dalvik/dx/src/com/android/dx/cf/code/
DMerger.java50 OneLocalsArray result = null; in mergeLocals() local
66 if (result == null) { in mergeLocals()
67 result = locals1.copy(); in mergeLocals()
71 result.invalidate(i); in mergeLocals()
73 result.set(i, resultType); in mergeLocals()
78 if (result == null) { in mergeLocals()
82 result.setImmutable(); in mergeLocals()
83 return result; in mergeLocals()
102 ExecutionStack result = null; in mergeStack() local
118 if (result == null) { in mergeStack()
[all …]
/dalvik/dx/src/com/android/dx/dex/code/
DCstInsn.java70 CstInsn result = in withOpcode() local
74 result.setIndex(index); in withOpcode()
78 result.setClassIndex(classIndex); in withOpcode()
81 return result; in withOpcode()
87 CstInsn result = in withRegisters() local
91 result.setIndex(index); in withRegisters()
95 result.setClassIndex(classIndex); in withRegisters()
98 return result; in withRegisters()

12345678910>>...12