/development/vndk/tools/definition-tool/tests/ |
D | test_elfdump.py | 30 def setUpClass(cls): argument 31 cls.targets = create_targets() 34 cls.test_dir_base = test_dir_base 36 cls.tmp_dir = TemporaryDirectory() 37 cls.test_dir_base = cls.tmp_dir.name 39 cls._build_fixtures(cls.target_name) 43 def tearDownClass(cls): argument 45 cls.tmp_dir.cleanup() 49 def _build_fixtures(cls, target_name): argument 50 target = cls.targets[target_name] [all …]
|
D | test_command_deps_insight.py | 24 def _get_module(cls, strs, mods, path): argument 26 if strs[mod[cls._PATH_FIELD]] == path: 32 def _get_module_deps(cls, strs, mods, path): argument 33 mod = cls._get_module(strs, mods, path) 35 for deps in mod[cls._DEPS_FIELD]: 36 result.update(strs[mods[x][cls._PATH_FIELD]] for x in deps) 41 def _get_module_users(cls, strs, mods, path): argument 42 mod = cls._get_module(strs, mods, path) 43 users = mod[cls._USERS_FIELD] 44 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/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/tools/repo_diff/service/repodiff/tools/ |
D | upgrade_db.py | 15 def all(cls): argument 17 cls.UPGRADE, 18 cls.DOWNGRADE,
|
/development/vndk/tools/sourcedr/blueprint/ |
D | blueprint.py | 79 def __iter__(cls): argument 81 return iter(cls._enums) 235 def lex_interpreted_string(cls, buf, offset): argument 253 match = cls.UNICODE_CHARS_PATTERN.match(buf, pos) 269 if char in cls.OCT_TABLE: 270 literal += chr(cls.decode_oct(buf, pos, pos + 1, pos + 4)) 273 literal += chr(cls.decode_hex(buf, pos, pos + 2, pos + 4)) 277 cls.decode_hex(buf, pos, pos + 2, pos + 6)) 281 cls.decode_hex(buf, pos, pos + 2, pos + 10)) 285 literal += cls.ESCAPE_CHAR_TABLE[char] [all …]
|
D | vndk.py | 190 def create_from_root_bp(cls, root_bp_path, namespaces=None): argument 192 result = cls()
|
/development/gsi/gsi_util/gsi_util/mounters/ |
D | image_mounter.py | 76 def _detect_system_as_root(cls, raw_image_file): argument 81 for filename in cls._SYSTEM_FILES: 88 for filename in cls._SYSTEM_FILES:
|
D | composite_mounter.py | 43 def create_by_mount_target(cls, mount_target, partition): argument
|
/development/vndk/tools/definition-tool/ |
D | vndk_definition_tool.py | 344 def __new__(cls, *args, **kwargs): argument 352 return base_cls.__new__(cls, *args) 366 cls = collections.namedtuple(name, field_names) 367 cls.struct_fmt = ''.join(ty for name, ty in fields) 368 cls.struct_size = struct.calcsize(cls.struct_fmt) 369 def unpack_from(cls, buf, offset=0): argument 370 unpacked = struct.unpack_from(cls.struct_fmt, buf, offset) 371 return cls.__new__(cls, *unpacked) 372 cls.unpack_from = classmethod(unpack_from) 373 return cls [all …]
|
/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 | 38 def setUpClass(cls): argument 39 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()
|