Home
last modified time | relevance | path

Searched refs:methods (Results 1 – 25 of 195) sorted by relevance

12345678

/art/test/690-hiddenapi-same-name-methods/src/
DMain.java57 Method[] methods = klass.getDeclaredMethods(); in checkMethodList() local
58 if (methods.length != expectedLength) { in checkMethodList()
60 " declared method(s), got " + methods.length); in checkMethodList()
64 for (Method method : methods) { in checkMethodList()
75 if (methods.length >= 1 && !hasNumberReturnType) { in checkMethodList()
78 if (methods.length >= 2 && !hasDoubleReturnType) { in checkMethodList()
/art/test/626-set-resolved-string/src/
DMain.java25 Method[] methods = Main.class.getDeclaredMethods(); in main() local
29 for (int i = 0; i < methods.length; i++) { in main()
30 methods[i].getName(); in main()
/art/test/497-inlining-and-class-loader/
Dclear_dex_cache.cc37 mirror::MethodDexCacheType* methods = dex_cache->GetResolvedMethods(); in Java_Main_cloneResolvedMethods() local
38 CHECK_EQ(num_methods != 0u, methods != nullptr); in Java_Main_cloneResolvedMethods()
51 auto pair = mirror::DexCache::GetNativePairPtrSize(methods, i, kRuntimePointerSize); in Java_Main_cloneResolvedMethods()
72 mirror::MethodDexCacheType* methods = dex_cache->GetResolvedMethods(); in Java_Main_restoreResolvedMethods() local
73 CHECK_EQ(num_methods != 0u, methods != nullptr); in Java_Main_restoreResolvedMethods()
75 CHECK_EQ(methods != nullptr, old != nullptr); in Java_Main_restoreResolvedMethods()
90 mirror::DexCache::SetNativePairPtrSize(methods, i, pair, kRuntimePointerSize); in Java_Main_restoreResolvedMethods()
/art/runtime/
Dimtable_test.cc93 std::pair<ArtMethod*, ArtMethod*> methods = LoadMethods("LInterfaces$A;", "foo"); in TEST_F() local
94 CHECK_EQ(ImTable::GetImtIndex(methods.first), ImTable::GetImtIndex(methods.second)); in TEST_F()
100 std::pair<ArtMethod*, ArtMethod*> methods = LoadMethods("LInterfaces$Z;", "foo"); in TEST_F() local
101 CHECK_EQ(ImTable::GetImtIndex(methods.first), ImTable::GetImtIndex(methods.second)); in TEST_F()
Dnative_bridge_art_interface.cc56 static uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, in GetNativeMethods() argument
58 if ((clazz == nullptr) || (methods == nullptr)) { in GetNativeMethods()
68 methods[count].name = m.GetName(); in GetNativeMethods()
69 methods[count].signature = m.GetShorty(); in GetNativeMethods()
70 methods[count].fnPtr = m.GetEntryPointFromJni(); in GetNativeMethods()
Dimage-inl.h70 const ImageSection& methods = GetMethodsSection(); in VisitPackedArtMethods() local
71 for (size_t pos = 0u; pos < methods.Size(); ) { in VisitPackedArtMethods()
72 auto* array = reinterpret_cast<LengthPrefixedArray<ArtMethod>*>(base + methods.Offset() + pos); in VisitPackedArtMethods()
111 table->Visit([&visitor](const std::pair<ArtMethod*, ArtMethod*>& methods) { in VisitPackedImtConflictTables()
112 return std::make_pair(visitor(methods.first), visitor(methods.second)); in VisitPackedImtConflictTables()
/art/test/097-duplicate-method/
Dinfo.txt1 This is a test to verify that duplicate methods in a dex file are handled
4 We need to build a dex file with duplicate methods. We cannot do that
6 methods, only one is in the dex). Therefore, having a precompiled
/art/test/1976-hello-structural-static-methods/src/art/
DTest1976.java115 public static MethodHandleWrapper[] getMethodHandles(Method[] methods) throws Exception { in getMethodHandles() argument
118 for (Method m : methods) { in getMethodHandles()
149 Method[] methods = Transform1976.class.getDeclaredMethods(); in doTest() local
150 for (Method m : methods) { in doTest()
159 long[] mids = getMethodIds(methods); in doTest()
161 MethodHandleWrapper[] handles = getMethodHandles(methods); in doTest()
172 for (Method m : methods) { in doTest()
/art/test/975-iface-private/
Dinfo.txt1 Smali-based tests for experimental interface private methods.
5 This test checks that synthetic private methods in interfaces work correctly.
Dbuild20 ./default-build "$@" --experimental default-methods
/art/test/utils/python/
Dgenerate_java_main.py223 yield from c1.methods
241 yield from i.methods
243 yield from i2.methods
289 methods = [a.text for a in iface.find("methods")]
292 methods = methods,
297 methods = [a.text for a in clazz.find("methods")]
300 methods = methods,
/art/test/044-proxy/src/
DNarrowingTest.java50 Method[] methods = proxy.getClass().getDeclaredMethods(); in main() local
51 Arrays.sort(methods, new MethodComparator()); in main()
53 Main.replaceProxyClassNamesForOutput(Arrays.deepToString(methods))); in main()
/art/test/996-breakpoint-obsolete/
Dinfo.txt4 methods and that it is possible to set breakpoints on obsolete methods.
/art/test/969-iface-super/
Dinfo.txt1 Smali-based tests for experimental interface static methods.
3 This tests invoke-super with default methods.
/art/runtime/native/
Djava_lang_reflect_Proxy.cc33 jobject loader, jobjectArray methods, jobjectArray throws) { in Proxy_generateProxy() argument
37 soa, name, interfaces, loader, methods, throws)); in Proxy_generateProxy()
Dnative_util.h30 const JNINativeMethod* methods, in RegisterNativeMethodsInternal() argument
36 jint jni_result = env->RegisterNatives(c.get(), methods, method_count); in RegisterNativeMethodsInternal()
/art/test/2032-default-method-private-override/
Dinfo.txt3 We would incorrectly search all declared methods of a class for interface
4 implementations instead of restricting ourselves to virtual methods when
/art/tools/hiddenapi/
DREADME.md7 runtime that the marked methods/fields should be treated as internal APIs with
14 The methods/fields to be marked are specified in two text files (greylist,
33 different modifiers were chosen for different kinds of methods/fields.
45 * bit 5 for non-native methods, as `synchronized` can only be set on native
46 methods (the Java `synchronized` modifier is bit 17)
47 * bit 9 for native methods, as it carries no meaning and bit 8 (`native`) will
/art/tools/dmtracedump/
Dtracedump.cc149 struct MethodEntry** methods; /* list of methods in this class */ member
156 struct MethodEntry** methods; /* list of methods with same name */ member
191 MethodEntry* methods; /* 2 extra methods: "toplevel" and "unknown" */ member
449 int64_t idA = classA->methods[0]->methodId; in compareClassExclusive()
450 int64_t idB = classB->methods[0]->methodId; in compareClassExclusive()
498 int32_t result = strcmp(uniqueA->methods[0]->className, uniqueB->methods[0]->className); in compareUniqueExclusive()
500 int64_t idA = uniqueA->methods[0]->methodId; in compareUniqueExclusive()
501 int64_t idB = uniqueB->methods[0]->methodId; in compareUniqueExclusive()
517 delete[] pKeys->methods; in freeDataKeys()
703 pKeys->methods = new MethodEntry[count]; in parseMethods()
[all …]
/art/libdexfile/dex/
Dclass_accessor_test.cc38 auto methods = accessor.GetMethods(); in TEST_F() local
40 auto method_it = methods.begin(); in TEST_F()
83 ASSERT_TRUE(method_it == methods.end()); in TEST_F()
/art/test/978-virtual-interface/
Dbuild20 ./default-build "$@" --experimental default-methods
/art/test/616-cha-interface-default/
Dbuild17 ./default-build "$@" --experimental default-methods
/art/test/529-checker-unresolved/
Dinfo.txt1 Test calling of unresolved methods.
/art/test/962-iface-static/
Dbuild20 ./default-build "$@" --experimental default-methods
/art/test/123-inline-execute2/
Dinfo.txt1 Sanity checks for added InlineNative methods.

12345678