Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 12 of 12) sorted by relevance

/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/cpp/
Dnative-lib.cpp20 jclass cls = env->FindClass("android/system/ErrnoException"); in ThrowErrnoException() local
21 if (cls == nullptr) { in ThrowErrnoException()
24 jmethodID cid = env->GetMethodID(cls, "<init>", "(Ljava/lang/String;I)V"); in ThrowErrnoException()
32 jthrowable obj = (jthrowable)env->NewObject(cls, cid, msg, err); in ThrowErrnoException()
/system/extras/simpleperf/scripts/
Dtest.py276 def prepare(cls, example_name, package_name, activity_name, abi=None, adb_root=False): argument
277 cls.adb = AdbHelper(enable_switch_to_root=adb_root)
278 cls.example_path = TEST_HELPER.testdata_path(example_name)
279 if not os.path.isdir(cls.example_path):
280 log_fatal("can't find " + cls.example_path)
281 for root, _, files in os.walk(cls.example_path):
283 cls.apk_path = os.path.join(root, 'app-profiling.apk')
285 if not hasattr(cls, 'apk_path'):
286 log_fatal("can't find app-profiling.apk under " + cls.example_path)
287 cls.package_name = package_name
[all …]
Dutils.py637 def is_source_filename(cls, filename): argument
639 return ext in cls.SOURCE_FILE_EXTS
/system/sepolicy/tools/
Dsepolicy-check.c119 class_datum_t *cls = NULL; in check_rule() local
145 cls = hashtab_search(policy->p_classes.table, c); in check_rule()
146 if (cls == NULL) { in check_rule()
152 perm = hashtab_search(cls->permissions.table, p); in check_rule()
154 if (cls->comdatum == NULL) { in check_rule()
158 perm = hashtab_search(cls->comdatum->permissions.table, p); in check_rule()
171 key.target_class = cls->s.value; in check_rule()
/system/tools/xsdc/tests/src/com/android/xsdc/tests/
DTestCompilationResult.java50 Class<?> cls = loader.loadClass(object.getClassName()); in TestCompilationResult() local
51 classes.put(object.getClassName(), cls); in TestCompilationResult() local
DXmlParserTest.java356 Class<?> cls = result.loadClass("Class"); in testReference() local
364 List student = (List) cls.getMethod("getStudent").invoke(instance); in testReference()
/system/sepolicy/tools/sepolicy-analyze/
Dneverallow.c188 class_datum_t *cls = NULL; in read_classperms() local
247 cls = hashtab_search(policydb->p_classes.table, id); in read_classperms()
248 if (!cls) { in read_classperms()
257 node->tclass = cls->s.value; in read_classperms()
335 cls = policydb->class_val_to_struct[node->tclass-1]; in read_classperms()
336 perm = hashtab_search(cls->permissions.table, id); in read_classperms()
337 if (cls->comdatum && !perm) in read_classperms()
338 perm = hashtab_search(cls->comdatum->permissions.table, id); in read_classperms()
/system/extras/simpleperf/scripts/inferno/
Ddata_types.py84 def _get_next_callsite_id(cls): argument
85 cls.callsite_counter += 1
86 return cls.callsite_counter
/system/hwservicemanager/
DAccessControl.h46 static int auditCallback(void *data, security_class_t cls, char *buf, size_t len);
/system/extras/tests/bootloader/
Dbootloadertest.py28 def setUpClass(cls): argument
29 cls.fastboot = fastboot.FastbootDevice()
/system/tools/mkbootimg/
Dpylintrc361 valid-classmethod-first-arg=cls
/system/update_engine/
Dpylintrc407 valid-classmethod-first-arg=cls