/aosp12/art/test/688-shared-library/src-art/ |
H A D | Main.java | 45 Class<?> cls = loader.loadClass("Main"); in testNoLibrary() local 46 assertIdentical(loader, cls.getClassLoader()); in testNoLibrary() 55 Class<?> cls = delegateFirst.loadClass("Main"); in testOneLibrary() local 62 cls = delegateLast.loadClass("Main"); in testOneLibrary() 74 Class<?> cls = delegateFirst.loadClass("Main"); in testTwoLibraries1() local 81 cls = delegateLast.loadClass("Main"); in testTwoLibraries1() 99 cls = delegateLast.loadClass("Main"); in testTwoLibraries2() 121 cls = delegateLast.loadClass("Main"); in testTransitive1() 143 cls = delegateLast.loadClass("Main"); in testTransitive2() 166 cls = delegateLast.loadClass("Main"); in testTransitive3() [all …]
|
/aosp12/libnativehelper/ |
H A D | JniConstants.c | 53 #define CLASS_NAME(cls) g_ ## cls argument 54 #define METHOD_NAME(cls, method) g_ ## cls ## _ ## method argument 55 #define FIELD_NAME(cls, field) g_ ## cls ## _ ## field argument 62 static jclass CLASS_NAME(cls) = NULL; 72 static jfieldID FIELD_NAME(cls, field) = NULL; in JMETHODID_CONSTANTS_LIST() 82 if (cls == NULL) { 86 return (*env)->NewGlobalRef(env, cls); 101 static jfieldID FindField(JNIEnv* env, jclass cls, in FindField() argument 153 #define JCLASS_INVALIDATE(cls, ...) CLASS_NAME(cls) = NULL; in jniUninitializeConstants() argument 157 #define JMETHODID_INVALIDATE(cls, method, ...) METHOD_NAME(cls, method) = NULL; in jniUninitializeConstants() argument [all …]
|
/aosp12/art/test/660-store-8-16/src/ |
H A D | Main.java | 25 Class<?> cls = Class.forName("TestCase"); in main() local 27 cls.getMethod("setByteStaticField").invoke(null); in main() 28 expectEquals(1, cls.getField("staticByteField").getByte(null)); in main() 30 cls.getMethod("setShortStaticField").invoke(null); in main() 33 cls.getMethod("setCharStaticField").invoke(null); in main() 38 cls.getMethod("setByteArray", byte[].class).invoke(null, args); in main() 48 cls.getMethod("setCharArray", char[].class).invoke(null, args); in main() 52 Object[] args = { cls.newInstance() }; in main() 54 cls.getMethod("setByteInstanceField", cls).invoke(null, args); in main() 57 cls.getMethod("setShortInstanceField", cls).invoke(null, args); in main() [all …]
|
/aosp12/system/extras/simpleperf/scripts/test/ |
H A D | test_utils.py | 54 cls.ndk_path = ndk_path 58 cls.log_fh = open(cls.test_base_dir / 'test.log', 'a') 68 cls.android_version = cls.adb.get_android_version() 69 cls.device_features = None 72 def log(cls, s: str): argument 73 cls.log_fh.write(s + '\n') 75 cls.log_fh.flush() 93 def get_device_features(cls): argument 100 return cls.device_features 107 def get_32bit_abi(cls): argument [all …]
|
H A D | cpp_app_test.py | 26 def setUpClass(cls): argument 27 cls.prepare("SimpleperfExampleWithNative", 82 def setUpClass(cls): argument 83 cls.prepare("SimpleperfExampleWithNative", 94 def setUpClass(cls): argument 95 cls.prepare("SimpleperfExampleWithNative", 126 def setUpClass(cls): argument 127 cls.prepare("SimpleperfExampleWithNative", 157 def setUpClass(cls): argument 166 def setUpClass(cls): argument [all …]
|
H A D | app_test.py | 37 if not hasattr(cls, 'apk_path'): 39 cls.package_name = package_name 40 cls.activity_name = activity_name 44 args.append(cls.apk_path) 45 cls.adb.check_run(args) 46 cls.adb_root = adb_root 51 cls.testcase_dir = TestHelper.get_test_dir(cls.__name__) 54 def tearDownClass(cls): argument 55 remove(cls.testcase_dir) 56 if hasattr(cls, 'package_name'): [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
H A D | LeakCheckedTest.java | 82 for (Class<?> c : cls) { in injectLeakCheckedDependencies() 99 public <T> T getLeakChecker(Class<T> cls) { in getLeakChecker() argument 100 Object obj = mLeakCheckers.get(cls); in getLeakChecker() 103 if (cls == BluetoothController.class) { in getLeakChecker() 109 } else if (cls == ZenModeController.class) { in getLeakChecker() 111 } else if (cls == CastController.class) { in getLeakChecker() 113 } else if (cls == HotspotController.class) { in getLeakChecker() 121 } else if (cls == BatteryController.class) { in getLeakChecker() 131 } else if (cls == PluginManager.class) { in getLeakChecker() 133 } else if (cls == TunerService.class) { in getLeakChecker() [all …]
|
/aosp12/frameworks/base/cmds/incidentd/src/ |
H A D | Broadcaster.cpp | 58 cls() { in ReportId() 64 cls(that.cls) { in ReportId() 70 cls(c) { in ReportId() 89 if (cls < that.cls) { in operator <() 216 report.cls())); in sendBroadcasts() 297 mHistory[ReportId(id, pkg, cls)].ready_sent = true; in set_ready_sent() 301 const string& cls) { in send_approval_broadcasts() argument 319 set_approval_sent(id, pkg, cls, listener); in send_approval_broadcasts() 338 err = file->markApproved(reportId.pkg, reportId.cls); in report_approved() 365 const string& cls) { in send_report_ready_broadcasts() argument [all …]
|
H A D | Broadcaster.h | 56 void clearBroadcasts(const string& pkg, const string& cls, const string& id); 75 string cls; member 110 status_t send_approval_broadcasts(const string& id, const string& pkg, const string& cls); 113 status_t send_report_ready_broadcasts(const string& id, const string& pkg, const string& cls); 115 bool was_approval_sent(const string& id, const string& pkg, const string& cls); 116 void set_approval_sent(const string& id, const string& pkg, const string& cls, 118 bool was_ready_sent(const string& id, const string& pkg, const string& cls); 119 void set_ready_sent(const string& id, const string& pkg, const string& cls);
|
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/ |
H A D | VersionInfo.java | 40 public VersionInfo addClass(Class<?> cls) { in addClass() argument 43 mDefault = cls; in addClass() 45 addClass(cls, false); in addClass() 49 private void addClass(Class<?> cls, boolean required) { in addClass() argument 50 if (mVersions.containsKey(cls)) return; in addClass() 53 mVersions.put(cls, new Version(provider.version(), true)); in addClass() 55 Requires requires = cls.getDeclaredAnnotation(Requires.class); in addClass() 65 DependsOn depends = cls.getDeclaredAnnotation(DependsOn.class); in addClass() 108 private Version createVersion(Class<?> cls) { in createVersion() argument 116 public <T> boolean hasClass(Class<T> cls) { in hasClass() argument [all …]
|
H A D | PluginManager.java | 34 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls); in addPluginListener() argument 36 <T extends Plugin> void addPluginListener(PluginListener<T> listener, Class<T> cls, in addPluginListener() argument 39 Class<T> cls); in addPluginListener() argument 41 Class<T> cls, boolean allowMultiple); in addPluginListener() argument 45 <T> boolean dependsOn(Plugin p, Class<T> cls); in dependsOn() argument 48 public static <P> String getAction(Class<P> cls) { in getAction() argument 49 ProvidesInterface info = cls.getDeclaredAnnotation(ProvidesInterface.class); in getAction() 51 throw new RuntimeException(cls + " doesn't provide an interface"); in getAction() 54 throw new RuntimeException(cls + " doesn't provide an action"); in getAction()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
H A D | PluginDependencyProvider.java | 44 public <T> void allowPluginDependency(Class<T> cls) { in allowPluginDependency() argument 45 allowPluginDependency(cls, Dependency.get(cls)); in allowPluginDependency() 48 public <T> void allowPluginDependency(Class<T> cls, T obj) { in allowPluginDependency() argument 50 mDependencies.put(cls, obj); in allowPluginDependency() 55 <T> T get(Plugin p, Class<T> cls) { in get() argument 56 if (!mManagerLazy.get().dependsOn(p, cls)) { in get() 57 throw new IllegalArgumentException(p.getClass() + " does not depend on " + cls); in get() 60 if (!mDependencies.containsKey(cls)) { in get() 61 throw new IllegalArgumentException("Unknown dependency " + cls); in get() 63 return (T) mDependencies.get(cls); in get()
|
/aosp12/frameworks/base/core/java/android/content/ |
H A D | ComponentName.java | 60 if (TextUtils.isEmpty(cls)) { in createRelative() 65 if (cls.charAt(0) == '.') { in createRelative() 67 fullName = pkg + cls; in createRelative() 70 fullName = cls; in createRelative() 106 mClass = cls; in ComponentName() 120 mClass = cls; in ComponentName() 133 mClass = cls.getName(); in ComponentName() 281 String cls = str.substring(sep+1); in unflattenFromString() local 282 if (cls.length() > 0 && cls.charAt(0) == '.') { in unflattenFromString() 283 cls = pkg + cls; in unflattenFromString() [all …]
|
/aosp12/build/make/tools/ |
H A D | check_elf_file.py | 164 def _read_elf_header(cls, elf_file_path): argument 175 def open(cls, elf_file_path, llvm_readobj): argument 178 header = cls._read_elf_header(elf_file_path) 187 def _find_prefix(cls, pattern, lines_it): argument 232 dynamic = cls._find_prefix(cls._DYNAMIC_SECTION_START_PATTERN, lines_it) 237 if line == cls._DYNAMIC_SECTION_END_PATTERN: 281 def _parse_dynamic_symbols(cls, lines_it): argument 304 if not cls._find_prefix(cls._DYNAMIC_SYMBOLS_START_PATTERN, lines_it): 311 if line == cls._SYMBOL_ENTRY_START_PATTERN: 315 if line == cls._SYMBOL_ENTRY_END_PATTERN: [all …]
|
/aosp12/art/runtime/ |
H A D | fault_handler.cc | 68 ssize_t rc = SafeCopy(&cls, method_declaring_class, sizeof(cls)); in SafeGetDeclaringClass() 76 if (rc != sizeof(cls)) { in SafeGetDeclaringClass() 80 return cls.AsMirrorPtr(); in SafeGetDeclaringClass() 86 mirror::HeapReference<mirror::Class> cls; in SafeGetClass() local 87 ssize_t rc = SafeCopy(&cls, obj_cls, sizeof(cls)); in SafeGetClass() 95 if (rc != sizeof(cls)) { in SafeGetClass() 99 return cls.AsMirrorPtr(); in SafeGetClass() 103 mirror::Class* c_c = SafeGetClass(cls); in SafeVerifyClassClass() 121 return VerifyClassClass(cls); in SafeVerifyClassClass() 315 if (cls == nullptr) { in IsInGeneratedCode() [all …]
|
/aosp12/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
H A D | CarHelperRegistry.java | 84 @NonNull Context context, @NonNull Class<H> cls, @NonNull HelperCreator<H> creator) { in getOrCreateWithAppContext() argument 86 .getOrCreateHelper(context.getApplicationContext(), cls, creator); in getOrCreateWithAppContext() 100 <H> H getHelper(@NonNull Class<H> cls) { in getHelper() argument 101 return (H) mMap.get(cls); in getHelper() 108 @NonNull Context appContext, @NonNull Class<H> cls, @NonNull HelperCreator<H> creator) { in getOrCreateHelper() argument 110 synchronized (cls) { in getOrCreateHelper() 111 H helper = getHelper(cls); in getOrCreateHelper() 114 putHelper(cls, helper); in getOrCreateHelper() 134 public <H> void putHelper(@NonNull Class<H> cls, @NonNull H helper) { in putHelper() argument 135 mMap.put(cls, helper); in putHelper()
|
/aosp12/art/test/common/ |
H A D | runtime_state.cc | 67 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_hasOatFile() 75 jclass cls) { in Java_Main_getCompilerFilter() argument 78 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_getCompilerFilter() 118 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_compiledWithOptimizing() 164 jclass cls, in Java_Main_isAotCompiled() argument 207 ArtMethod* method = GetMethod(soa, cls, chars); in Java_Main_hasJitCompiledEntrypoint() 224 ArtMethod* method = GetMethod(soa, cls, chars); in Java_Main_hasJitCompiledCode() 295 jclass cls, in Java_Main_ensureJitCompiled() argument 308 method = GetMethod(soa, cls, chars); in Java_Main_ensureJitCompiled() 328 method = GetMethod(soa, cls, chars); in Java_Main_ensureJitBaselineCompiled() [all …]
|
/aosp12/art/test/712-varhandle-invocations/src/ |
H A D | VarHandleAccessorExceptionTests.java | 47 Class<?> cls = UnsupportedAccessModeTest.class; 48 vh = MethodHandles.lookup().findStaticVarHandle(cls, "b", boolean.class); 78 Class<?> cls = WrongArgumentTypeCausingWrongMethodTypeTest.class; 79 vh = MethodHandles.lookup().findVarHandle(cls, "s", short.class); 107 Class<?> cls = TooManyArgumentsCausingWrongMethodTypeTest.class; 108 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class); 135 Class<?> cls = TooFewArgumentsCausingWrongMethodTypeTest.class; 136 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class); 166 Class<?> cls = ReturnTypeCausingWrongMethodTypeTest.class; 167 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class); [all …]
|
H A D | VarHandleTypeConversionTests.java | 30 Class<?> cls = VoidReturnTypeTest.class; 69 Class<?> cls = BoxedNullBooleanThrowsNPETest.class; 97 Class<?> cls = BoxedNullByteThrowsNPETest.class; 151 Class<?> cls = BoxedNullShortThrowsNPETest.class; 208 Class<?> cls = BoxedNullLongThrowsNPETest.class; 237 Class<?> cls = BoxedNullFloatThrowsNPETest.class; 298 Class<?> cls = WideningBooleanArgumentTest.class; 356 Class<?> cls = WideningByteArgumentTest.class; 472 Class<?> cls = WideningShortArgumentTest.class; 574 Class<?> cls = WideningLongArgumentTest.class; [all …]
|
/aosp12/art/test/724-invoke-super-npe/src/ |
H A D | Main.java | 22 Class<?> cls = Class.forName("TestCase"); in main() local 23 test("testSuper", cls); in main() 24 test("testSuperRange", cls); in main() 27 public static void test(String methodName, Class<?> cls) throws Exception { in test() argument 28 Method m = cls.getDeclaredMethod(methodName, cls); in test() 30 m.invoke(cls.newInstance(), (Object)null); in test()
|
/aosp12/art/tools/veridex/ |
H A D | flow_analysis.cc | 116 VeriClass* cls, in UpdateRegister() argument 529 UpdateRegister(instruction.VRegA(), cls); in ProcessDexInstruction() 535 VeriClass* cls = resolver_->GetVeriClass(type_index); in ProcessDexInstruction() local 536 UpdateRegister(instruction.VRegA_22c(), cls); in ProcessDexInstruction() 543 UpdateRegister(instruction.VRegA_22c(), cls); in ProcessDexInstruction() 551 UpdateRegister(register_index, cls); in ProcessDexInstruction() 740 const VeriClass* cls = obj.GetType(); in AnalyzeInvoke() local 741 if (cls != nullptr && cls->GetClassDef() != nullptr) { in AnalyzeInvoke() 742 const dex::ClassDef* def = cls->GetClassDef(); in AnalyzeInvoke() 783 RegisterValue cls = info.cls.IsParameter() in AnalyzeInvoke() local [all …]
|
/aosp12/art/compiler/optimizing/ |
H A D | load_store_elimination_test.cc | 460 setup.push_back(cls); in GetComparisonInstructions() 1151 main->AddInstruction(cls); in TEST_F() 1169 EXPECT_INS_RETAINED(cls); in TEST_F() 1202 main->AddInstruction(cls); in TEST_F() 1220 EXPECT_INS_RETAINED(cls); in TEST_F() 1722 entry->AddInstruction(cls); in TEST_F() 1772 EXPECT_INS_RETAINED(cls); in TEST_F() 1871 EXPECT_INS_RETAINED(cls); in TEST_F() 8385 EXPECT_INS_RETAINED(cls); in TEST_P() 8547 EXPECT_INS_RETAINED(cls); in TEST_P() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/ |
H A D | AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java | 80 Class<?> cls = Class.forName(className, false, this.getClass().getClassLoader()); in testAllClassInheritance() local 81 if (!isTestClass(cls)) continue; in testAllClassInheritance() 85 if (parent.isAssignableFrom(cls)) { in testAllClassInheritance() 90 boolean hasSize = hasSize(cls); in testAllClassInheritance() 92 fails.add(cls.getName() + " does not have size annotation, such as @SmallTest"); in testAllClassInheritance() 95 fails.add(cls.getName() + " does not extend any of " + getClsStr()); in testAllClassInheritance() 103 private boolean hasSize(Class<?> cls) { in hasSize() argument 105 if (cls.getDeclaredAnnotation(SUPPORTED_SIZES[i]) != null) return true; in hasSize() 136 .stream().map(cls -> cls.getSimpleName()).toArray()); in getClsStr()
|
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/ |
H A D | AAAPlusPlusVerifySysuiRequiredTestPropertiesTest.java | 84 Class<?> cls = Class.forName(className, false, this.getClass().getClassLoader()); in testAllClassInheritance() local 85 if (!isTestClass(cls)) continue; in testAllClassInheritance() 89 if (parent.isAssignableFrom(cls)) { in testAllClassInheritance() 94 boolean hasSize = hasSize(cls); in testAllClassInheritance() 96 fails.add(cls.getName() + " does not have size annotation, such as @SmallTest"); in testAllClassInheritance() 99 fails.add(cls.getName() + " does not extend any of " + getClsStr()); in testAllClassInheritance() 107 private boolean hasSize(Class<?> cls) { in hasSize() argument 109 if (cls.getDeclaredAnnotation(SUPPORTED_SIZES[i]) != null) return true; in hasSize() 133 .stream().map(cls -> cls.getSimpleName()).toArray()); in getClsStr()
|
/aosp12/packages/apps/Nfc/nci/jni/ |
H A D | NfcJniUtil.cpp | 81 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object() local 82 if (cls.get() == NULL) { in nfc_jni_cache_object() 87 jmethodID ctor = e->GetMethodID(cls.get(), "<init>", "()V"); in nfc_jni_cache_object() 88 ScopedLocalRef<jobject> obj(e, e->NewObject(cls.get(), ctor)); in nfc_jni_cache_object() 148 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); in nfc_jni_cache_object_local() local 149 if (cls.get() == NULL) { in nfc_jni_cache_object_local() 154 jmethodID ctor = e->GetMethodID(cls.get(), "<init>", "()V"); in nfc_jni_cache_object_local() 155 jobject obj = e->NewObject(cls.get(), ctor); in nfc_jni_cache_object_local()
|