Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 84) sorted by relevance

1234

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/sdk/
DLayoutParamsParserTest.java143 … Method method = AndroidTargetParser.class.getDeclaredMethod("getLayoutClasses"); //$NON-NLS-1$ in _getLayoutClasses() local
144 method.setAccessible(true); in _getLayoutClasses()
145 method.invoke(mParser); in _getLayoutClasses()
151 Method method = LayoutParamsParser.class.getDeclaredMethod("addGroup", //$NON-NLS-1$ in _addGroup() local
153 method.setAccessible(true); in _addGroup()
154 return (ViewClassInfo) method.invoke(mParser, new ClassWrapper(groupClass)); in _addGroup()
160 … Method method = LayoutParamsParser.class.getDeclaredMethod("addLayoutParams", //$NON-NLS-1$ in _addLayoutParams() local
162 method.setAccessible(true); in _addLayoutParams()
163 return (LayoutParamsInfo) method.invoke(mParser, new ClassWrapper(groupClass)); in _addLayoutParams()
168 … Method method = LayoutParamsParser.class.getDeclaredMethod("getLayoutParamsInfo", //$NON-NLS-1$ in _getLayoutParamsInfo() local
[all …]
/sdk/traceview/src/com/android/traceview/
DThreadData.java69 Call enter(MethodData method, ArrayList<TraceAction> trace) { in enter() argument
78 Call call = new Call(this, method, caller); in enter()
85 Integer num = mStackMethods.get(method); in enter()
91 mStackMethods.put(method, num + 1); in enter()
96 Call exit(MethodData method, ArrayList<TraceAction> trace) { in exit() argument
102 if (call.getMethodData() != method) { in exit()
103 String error = "Method exit (" + method.getName() in exit()
115 Integer num = mStackMethods.get(method); in exit()
118 mStackMethods.remove(method); in exit()
120 mStackMethods.put(method, num - 1); in exit()
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/
DWakelockDetector.java112 @NonNull MethodNode method, @NonNull MethodInsnNode call) { in checkCall() argument
120 context.report(ISSUE, method, context.getLocation(call), in checkCall()
129 checkFlow(context, classNode, method, call); in checkCall()
136 if ("onDestroy".equals(method.name) //$NON-NLS-1$ in checkCall()
139 context.report(ISSUE, method, context.getLocation(call), in checkCall()
148 @NonNull MethodNode method, @NonNull MethodInsnNode acquire) { in checkFlow() argument
151 final InsnList instructions = method.instructions; in checkFlow()
176 ControlFlowGraph.create(graph, classNode, method); in checkFlow()
194 context.report(ISSUE, method, context.getLocation(release), message, null); in checkFlow()
225 MethodInsnNode method = (MethodInsnNode) next; in add() local
[all …]
DFieldGetterDetector.java94 @NonNull MethodNode method, @NonNull AbstractInsnNode instruction) { in checkInstruction() argument
100 if ((method.access & Opcodes.ACC_STATIC) != 0) { in checkInstruction()
139 mPendingCalls.add(new Entry(name, node, method)); in checkInstruction()
142 super.checkInstruction(context, classNode, method, instruction); in checkInstruction()
168 context.report(ISSUE, entry.method, location, String.format( in afterCheckFile()
183 public final MethodNode method; field in FieldGetterDetector.Entry
186 public Entry(String name, MethodInsnNode call, MethodNode method) { in Entry() argument
190 this.method = method; in Entry()
217 MethodNode method = (MethodNode) methodObject; in checkMethods() local
218 if (names.contains(method.name) in checkMethods()
[all …]
DOnClickDetector.java178 MethodNode method = (MethodNode) m; in checkClass() local
179 boolean rightArguments = method.desc.equals("(Landroid/view/View;)V"); //$NON-NLS-1$ in checkClass()
180 if (!mNames.containsKey(method.name)) { in checkClass()
184 if (LintUtils.editDistance(n, method.name) <= 2) { in checkClass()
185 recordSimilar(n, classNode, method); in checkClass()
199 mNames.remove(method.name); in checkClass()
202 if ((method.access & Opcodes.ACC_PUBLIC) == 0) { in checkClass()
203 Location location = context.getLocation(method, classNode); in checkClass()
206 method.name); in checkClass()
208 } else if ((method.access & Opcodes.ACC_STATIC) != 0) { in checkClass()
[all …]
DFragmentDetector.java130 MethodNode method = (MethodNode) m; in checkClass() local
131 if (method.name.equals(CONSTRUCTOR_NAME)) { in checkClass()
132 if (method.desc.equals("()V")) { //$NON-NLS-1$ in checkClass()
134 if ((method.access & Opcodes.ACC_PUBLIC) != 0) { in checkClass()
137 context.report(ISSUE, context.getLocation(method, classNode), in checkClass()
145 } else if (!method.desc.contains("()")) { //$NON-NLS-1$ in checkClass()
146 context.report(ISSUE, context.getLocation(method, classNode), in checkClass()
DApiDetector.java281 MethodNode method = (MethodNode) m; in checkClass() local
283 int minSdk = getLocalMinSdk(method.invisibleAnnotations); in checkClass()
288 InsnList nodes = method.instructions; in checkClass()
291 List localVariables = method.localVariables; in checkClass()
305 report(context, message, var.start, method, in checkClass()
318 String signature = method.desc; in checkClass()
330 report(context, message, first, method, method.name, null, in checkClass()
355 if (method.name.startsWith(SWITCH_TABLE_PREFIX)) { in checkClass()
386 report(context, message, node, method, name, null, in checkClass()
407 if (method.name.startsWith(SWITCH_TABLE_PREFIX)) { in checkClass()
[all …]
DLocaleDetector.java134 @NonNull MethodNode method, @NonNull MethodInsnNode call) { in checkCall() argument
150 context.report(DATE_FORMAT, method, location, message, null); in checkCall()
175 Frame[] frames = analyzer.analyze(classNode.name, method); in checkCall()
176 InsnList instructions = method.instructions; in checkCall()
189 context.report(STRING_LOCALE, method, location, message, null); in checkCall()
201 context.report(STRING_LOCALE, method, location, message, null); in checkCall()
DToastDetector.java121 Node method = findSurroundingMethod(node.getParent()); in visitMethod() local
122 if (method == null) { in visitMethod()
127 method.accept(finder); in visitMethod()
129 context.report(ISSUE, method, context.getLocation(node), in visitMethod()
/sdk/sdk_common/src/com/android/ide/common/resources/configuration/
DNavigationMethodQualifier.java65 Navigation method = Navigation.getEnum(value); in checkAndSet() local
66 if (method != null) { in checkAndSet()
67 NavigationMethodQualifier qualifier = new NavigationMethodQualifier(method); in checkAndSet()
DTextInputMethodQualifier.java66 Keyboard method = Keyboard.getEnum(value); in checkAndSet() local
67 if (method != null) { in checkAndSet()
69 qualifier.mValue = method; in checkAndSet()
/sdk/emulator/qtools/
Ddmtrace.cpp145 const char *method, const char *sig) in addFunction() argument
149 int len = strlen(clazz) + strlen(method) + strlen(sig) + 3; in addFunction()
151 sprintf(name, "%s\t%s\t%s", clazz, method, sig); in addFunction()
196 char *method = new char[len]; in parseAndAddFunction() local
197 strcpy(method, dot + 1); in parseAndAddFunction()
202 addFunction(functionId, name, method, sig); in parseAndAddFunction()
206 delete[] method; in parseAndAddFunction()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/wizards/templates/
DFmExtractLettersMethodTest.java30 FmExtractLettersMethod method = new FmExtractLettersMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmEscapeXmlTextMethodTest.java30 FmEscapeXmlTextMethod method = new FmEscapeXmlTextMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmEscapeXmlAttributeMethodTest.java30 FmEscapeXmlAttributeMethod method = new FmEscapeXmlAttributeMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmActivityToLayoutMethodTest.java30 FmActivityToLayoutMethod method = new FmActivityToLayoutMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmSlashedPackageNameMethodTest.java30 FmSlashedPackageNameMethod method = new FmSlashedPackageNameMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmLayoutToActivityMethodTest.java30 FmLayoutToActivityMethod method = new FmLayoutToActivityMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmCamelCaseToUnderscoreMethodTest.java30 FmCamelCaseToUnderscoreMethod method = new FmCamelCaseToUnderscoreMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmUnderscoreToCamelCaseMethodTest.java30 FmUnderscoreToCamelCaseMethod method = new FmUnderscoreToCamelCaseMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmEscapeXmlStringMethodTest.java30 FmEscapeXmlStringMethod method = new FmEscapeXmlStringMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
DFmClassNameToResourceMethodTest.java30 FmClassNameToResourceMethod method = new FmClassNameToResourceMethod(); in check() local
32 assertEquals(expected, ((SimpleScalar) method.exec(list)).getAsString()); in check()
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/
DNativeHeapDataImporter.java166 String method = scanTillSeparator(sc, "---"); in getNativeAllocation() local
169 if (!isUnresolved(method, address)) { in getNativeAllocation()
173 stackInfo.add(new NativeStackCallInfo(address, library, method, filename)); in getNativeAllocation()
204 private boolean isUnresolved(String method, long address) { in isUnresolved() argument
206 return Long.toString(address, 16).equals(method); in isUnresolved()
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/data/apicheck/
DSuppressTest4.java.txt9 public void method() {
11 // These annotations within the method do not end up
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/
DClassContext.java310 MethodNode method = (MethodNode) m; in report() local
311 if (method.name.equals(prev.outerMethod) in report()
312 && method.desc.equals(prev.outerMethodDesc)) { in report()
316 if (method != null && mDriver.isSuppressed(issue, method)) { in report()
349 @Nullable MethodNode method, in report() argument
353 if (method != null && mDriver.isSuppressed(issue, method)) { in report()
483 MethodNode method = (MethodNode) m; in getFirstRealMethod() local
484 if (method.name.charAt(0) != '<') { in getFirstRealMethod()
485 return method; in getFirstRealMethod()

1234