/system/extras/simpleperf/scripts/test/ |
D | test_utils.py | 41 cls, test_dir: str, testdata_dir: str, use_browser: bool, ndk_path: Optional[str], argument 49 cls.script_dir = Path(__file__).resolve().parents[1] 50 cls.test_base_dir = Path(test_dir).resolve() 51 cls.test_base_dir.mkdir(parents=True, exist_ok=True) 52 cls.testdata_dir = Path(testdata_dir).resolve() 53 cls.browser_option = [] if use_browser else ['--no_browser'] 54 cls.ndk_path = ndk_path 55 cls.progress_conn = progress_conn 58 cls.log_fh = open(cls.test_base_dir / 'test.log', 'a') 60 logging.getLogger().addHandler(logging.StreamHandler(cls.log_fh)) [all …]
|
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 158 cls.prepare("SimpleperfExampleWithNative", [all …]
|
D | app_test.py | 28 def prepare(cls, example_name, package_name, activity_name, abi=None, adb_root=False): argument 29 cls.adb = AdbHelper(enable_switch_to_root=adb_root) 30 cls.example_path = TestHelper.testdata_path(example_name) 31 if not os.path.isdir(cls.example_path): 32 log_fatal("can't find " + cls.example_path) 33 for root, _, files in os.walk(cls.example_path): 35 cls.apk_path = os.path.join(root, 'app-profiling.apk') 37 if not hasattr(cls, 'apk_path'): 38 log_fatal("can't find app-profiling.apk under " + cls.example_path) 39 cls.package_name = package_name [all …]
|
D | kotlin_app_test.py | 26 def setUpClass(cls): argument 27 cls.prepare("SimpleperfExampleOfKotlin", 90 def setUpClass(cls): argument 91 cls.prepare("SimpleperfExampleOfKotlin", 102 def setUpClass(cls): argument 103 cls.prepare("SimpleperfExampleOfKotlin",
|
D | java_app_test.py | 30 def setUpClass(cls): argument 31 cls.prepare("SimpleperfExamplePureJava", 174 def setUpClass(cls): argument 175 cls.prepare("SimpleperfExamplePureJava", 186 def setUpClass(cls): argument 187 cls.prepare("SimpleperfExamplePureJava",
|
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/cpp/ |
D | native-lib.cpp | 20 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/sepolicy/tools/ |
D | sepolicy-check.c | 119 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/sepolicy/tools/sepolicy-analyze/ |
D | neverallow.c | 188 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/ |
D | data_types.py | 84 def _get_next_callsite_id(cls): argument 85 cls.callsite_counter += 1 86 return cls.callsite_counter
|
/system/extras/simpleperf/scripts/ |
D | simpleperf_utils.py | 193 def find_ndk_and_sdk_paths(cls, ndk_path: Optional[str] = None argument 198 yield ndk_path, cls.find_sdk_path(ndk_path) 201 yield ndk_path, cls.find_sdk_path(ndk_path) 209 sdk_path = os.path.join(home, cls.DEFAULT_SDK_PATH[platform].replace('/', os.sep)) 226 def find_sdk_path(cls, ndk_path: str) -> Optional[str]: argument 235 def _get_binutils_path_in_ndk(cls, toolname: str, arch: Optional[str], platform: str argument 253 def find_tool_path(cls, toolname: str, ndk_path: Optional[str] = None, argument 255 tool_info = cls.EXPECTED_TOOLS.get(toolname) 276 toolname_with_arch, path_in_ndk = cls._get_binutils_path_in_ndk( 289 for ndk_dir, sdk_dir in cls.find_ndk_and_sdk_paths(ndk_path): [all …]
|
/system/hwservicemanager/ |
D | AccessControl.h | 46 static int auditCallback(void *data, security_class_t cls, char *buf, size_t len);
|
/system/extras/tests/bootloader/ |
D | bootloadertest.py | 28 def setUpClass(cls): argument 29 cls.fastboot = fastboot.FastbootDevice()
|
/system/tools/aidl/ |
D | generate_cpp.cpp | 537 unique_ptr<ClassDecl>& cls, set<string>& includes) { in BuildConstantDeclarations() argument 566 cls->AddPublic(std::move(byte_constant_enum)); in BuildConstantDeclarations() 569 cls->AddPublic(std::move(int_constant_enum)); in BuildConstantDeclarations() 572 cls->AddPublic(std::move(long_constant_enum)); in BuildConstantDeclarations() 578 cls->AddPublic(std::move(string_constant)); in BuildConstantDeclarations()
|
/system/extras/module_ndk_libs/libnativehelper/include_jni/ |
D | jni.h | 511 jobject ToReflectedMethod(jclass cls, jmethodID methodID, jboolean isStatic) in ToReflectedMethod() 512 { return functions->ToReflectedMethod(this, cls, methodID, isStatic); } in ToReflectedMethod() 520 jobject ToReflectedField(jclass cls, jfieldID fieldID, jboolean isStatic) in ToReflectedField() 521 { return functions->ToReflectedField(this, cls, fieldID, isStatic); } in ToReflectedField()
|
/system/tools/mkbootimg/ |
D | pylintrc | 427 valid-classmethod-first-arg=cls,
|
/system/apex/ |
D | pylintrc | 434 valid-classmethod-first-arg=cls,
|
/system/update_engine/ |
D | pylintrc | 407 valid-classmethod-first-arg=cls
|