/development/vndk/tools/definition-tool/tests/ |
D | test_elfdump.py | 33 def setUpClass(cls): argument 34 cls.targets = ndk_toolchain.create_targets() 37 cls.test_dir_base = test_dir_base 39 cls.tmp_dir = TemporaryDirectory() 40 cls.test_dir_base = cls.tmp_dir.name 42 cls._build_fixtures(cls.target_name) 45 def tearDownClass(cls): argument 47 cls.tmp_dir.cleanup() 50 def _build_fixtures(cls, target_name): argument 51 target = cls.targets[target_name] [all …]
|
D | test_command_deps_insight.py | 27 def _get_module(cls, strs, mods, path): argument 29 if strs[mod[cls._PATH_FIELD]] == path: 35 def _get_module_deps(cls, strs, mods, path): argument 36 mod = cls._get_module(strs, mods, path) 38 for deps in mod[cls._DEPS_FIELD]: 39 result.update(strs[mods[x][cls._PATH_FIELD]] for x in deps) 44 def _get_module_users(cls, strs, mods, path): argument 45 mod = cls._get_module(strs, mods, path) 46 users = mod[cls._USERS_FIELD] 47 return set(strs[mods[x][cls._PATH_FIELD]] for x in users)
|
/development/samples/SampleSyncAdapter/samplesyncadapter_server/model/ |
D | datastore.py | 38 def get_contact_info(cls, username): argument 40 query = cls.gql('WHERE handle = :1', username) 45 def get_contact_last_updated(cls, username): argument 47 query = cls.gql('WHERE handle = :1', username) 52 def get_contact_id(cls, username): argument 54 query = cls.gql('WHERE handle = :1', username) 59 def get_contact_status(cls, username): argument 61 query = cls.gql('WHERE handle = :1', username)
|
/development/tools/axl/ |
D | singletonmixin.py | 57 def __call__(cls, *lstArgs, **dictArgs): argument 63 def getInstance(cls, *lstArgs): argument 69 if cls._isInstantiated(): 73 if len(lstArgs) != cls._getConstructionArgCountNotCountingSelf(): 75 instance = cls.__new__(cls) 77 cls.cInstance = instance 78 return cls.cInstance 81 def _isInstantiated(cls): argument 82 return hasattr(cls, 'cInstance') 85 def _getConstructionArgCountNotCountingSelf(cls): argument [all …]
|
/development/vndk/tools/sourcedr/sourcedr/ |
D | utils.py | 35 def _get_locked_path(cls, path): argument 41 def is_locked(cls, path): argument 43 return os.path.exists(cls._get_locked_path(path))
|
D | pattern_db.py | 15 def get_default_path(cls, project_dir): argument 16 return os.path.join(project_dir, cls.DEFAULT_NAME)
|
D | project.py | 31 def get_default_path(cls, project_dir): argument 34 return os.path.join(project_dir, cls.DEFAULT_NAME) 138 def create_project_dir(cls, project_dir, source_dir): argument 168 def get_or_create_project_dir(cls, project_dir, source_dir): argument 173 return cls.create_project_dir(project_dir, source_dir)
|
D | review_db.py | 13 def get_default_path(cls, project_dir): argument 14 return os.path.join(project_dir, cls.DEFAULT_NAME)
|
D | codesearch.py | 193 def get_default_path(cls, project_dir): argument 194 return os.path.join(project_dir, 'tmp', cls.DEFAULT_NAME)
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeySourceRandom.java | 401 float cls = mRandom.nextFloat(); in generateEvents() local 404 if (cls < mFactors[FACTOR_TOUCH]) { in generateEvents() 407 } else if (cls < mFactors[FACTOR_MOTION]) { in generateEvents() 410 } else if (cls < mFactors[FACTOR_PINCHZOOM]) { in generateEvents() 413 } else if (cls < mFactors[FACTOR_TRACKBALL]) { in generateEvents() 416 } else if (cls < mFactors[FACTOR_ROTATION]) { in generateEvents() 419 } else if (cls < mFactors[FACTOR_PERMISSION]) { in generateEvents() 426 if (cls < mFactors[FACTOR_NAV]) { in generateEvents() 428 } else if (cls < mFactors[FACTOR_MAJORNAV]) { in generateEvents() 430 } else if (cls < mFactors[FACTOR_SYSOPS]) { in generateEvents() [all …]
|
/development/vndk/tools/sourcedr/sourcedr/blueprint/ |
D | blueprint.py | 79 def __iter__(cls): argument 81 return iter(cls._enums) 234 def lex_interpreted_string(cls, buf, offset): argument 252 match = cls.UNICODE_CHARS_PATTERN.match(buf, pos) 268 if char in cls.OCT_TABLE: 269 literal += chr(cls.decode_oct(buf, pos, pos + 1, pos + 4)) 272 literal += chr(cls.decode_hex(buf, pos, pos + 2, pos + 4)) 276 cls.decode_hex(buf, pos, pos + 2, pos + 6)) 280 cls.decode_hex(buf, pos, pos + 2, pos + 10)) 284 literal += cls.ESCAPE_CHAR_TABLE[char] [all …]
|
/development/vndk/tools/definition-tool/ |
D | vndk_definition_tool.py | 241 def __new__(cls, *args, **kwargs): argument 249 return base_cls.__new__(cls, *args) 263 cls = collections.namedtuple(name, field_names) 264 cls.struct_fmt = ''.join(ty for name, ty in fields) 265 cls.struct_size = struct.calcsize(cls.struct_fmt) 266 def unpack_from(cls, buf, offset=0): argument 267 unpacked = struct.unpack_from(cls.struct_fmt, buf, offset) 268 return cls.__new__(cls, *unpacked) 269 cls.unpack_from = classmethod(unpack_from) 270 return cls [all …]
|
/development/gsi/gsi_util/gsi_util/mounters/ |
D | image_mounter.py | 75 def _detect_system_as_root(cls, raw_image_file): argument 80 for filename in cls._SYSTEM_FILES: 87 for filename in cls._SYSTEM_FILES:
|
D | composite_mounter.py | 43 def create_by_mount_target(cls, mount_target, partition): argument
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | LogHelper.java | 39 public static String makeLogTag(Class cls) { in makeLogTag() argument 40 return makeLogTag(cls.getSimpleName()); in makeLogTag()
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/ |
D | MainActivity.java | 70 public InstantiatingTabListener(TabCompatActivity activity, Class<? extends Fragment> cls) { in InstantiatingTabListener() argument 72 mClass = cls; in InstantiatingTabListener()
|
/development/vndk/tools/definition-tool/assets/insight/ |
D | insight.js | 63 this.cls = modData[1]; 455 function onAddAllClass(evt, cls) { argument 459 return mod.cls == cls;
|
/development/vndk/tools/definition-tool/tools/ |
D | remove_dt_needed.py | 135 def parse_struct(cls, fmt, offset, error_msg): argument 137 return cls._make(struct.unpack_from(fmt, buf, offset))
|
/development/vndk/tools/header-checker/tests/ |
D | test.py | 25 def setUpClass(cls): argument 26 cls.maxDiff = None
|
/development/tools/bugreport/src/com/android/bugreport/html/ |
D | Renderer.java | 304 private String buildFunctionName(String pkg, String cls, String meth) { in buildFunctionName() argument 310 if (cls != null && cls.length() > 0) { in buildFunctionName() 311 result.append(cls); in buildFunctionName()
|