/development/tools/findunused/ |
D | find_unused_resources.rb | 92 Dir.glob(glob).each { |filename| 93 File.open(filename) { |file| 97 @@globalJavaIdUses[id] = FilePosition.new(filename, file.lineno) 111 Dir.glob("#{dir}/res/**/*.xml").each { |filename| 112 if ! (filename =~ /attrs.xml$/) 113 File.open(filename) { |file| 116 strings[id] = FilePosition.new(filename, file.lineno) 119 layouts[id] = FilePosition.new(filename, file.lineno) 123 xmlIdUses[id] = FilePosition.new(filename, file.lineno) 131 Dir.glob("#{dir}/AndroidManifest.xml").each { |filename| [all …]
|
/development/testrunner/tests/ |
D | android_mk_tests.py | 31 filename='Android_native.mk') 37 filename='Android_gtestlib.mk') 42 mk_parser = android_mk.CreateAndroidMK(path='.', filename='Android_java.mk') 48 filename='Android_java.mk') 57 filename='Android_native.mk') 66 mk_parser = android_mk.CreateAndroidMK(path='.', filename='Android_java.mk') 73 filename='Android_native.mk') 80 filename='Android_native.mk')
|
/development/vndk/tools/image-diff-tool/ |
D | diff.py | 89 filename, prefixes = pat.split("=", 1) 92 skipped_lines[filename.lower()].extend(prefixes) 95 def diff_with_skipped_lines(filename, prefixes): argument 105 pathname = os.path.join(target, filename) 117 def allowlist_filter(filename): argument 118 norm_filename = filename.lower() 124 return diff_with_skipped_lines(filename, skipped_prefixes) 151 for path, filename in paths: 155 artifact_sha1_target_map[filename][sha1].append(target_basename) 156 def pretty_print(sha1, filename, targets, exclude_sha1): argument [all …]
|
/development/gsi/gsi_util/gsi_util/mounters/ |
D | adb_mounter.py | 40 def _make_parent_dirs(filename): argument 42 dir_path = os.path.dirname(filename) 51 filename = os.path.join(self._temp_dir, filename_in_storage) 53 filename_in_storage, filename) 55 self._make_parent_dirs(filename) 56 if not adb_utils.pull(filename, filename_in_storage, self._serial_num): 60 return base_mounter.MounterFile(filename)
|
D | image_mounter.py | 34 def _make_parent_dirs(filename): argument 36 dir_path = os.path.dirname(filename) 81 for filename in cls._SYSTEM_FILES: 82 file_spec = os.path.join('/', filename) 88 for filename in cls._SYSTEM_FILES: 89 file_spec = os.path.join('/system', filename)
|
D | folder_mounter.py | 36 filename = os.path.join(self._folder_dir, filename_in_storage) 38 filename_in_storage, filename) 39 if not os.path.isfile(filename): 42 return base_mounter.MounterFile(filename)
|
D | base_mounter.py | 22 def __init__(self, filename, cleanup_func=None): argument 23 self._filename = filename
|
/development/tools/repo_diff/service/repodiff/persistence/filesystem/ |
D | json.go | 11 func WriteJsonSerializableToFile(jsonEntity interface{}, filename string) error { 19 filename, 25 func ReadFileAsJson(filename string, outputEntityAddress interface{}) error { 26 fileContents, err := ioutil.ReadFile(filename)
|
D | unix.go | 41 for _, filename := range filenames { 42 findProjectsCmd := fmt.Sprintf("find %s | grep %s", directory, filename)
|
/development/tools/repo_diff/ |
D | git_commits_not_upstreamed.py | 44 def __call__(self, filename): argument 47 if os.path.isfile(os.path.join(self.working_dir, filename)): 50 '--', filename]) 83 commits_per_file = [finder(filename) for filename in diff_files]
|
/development/gsi/gsi_util/gsi_util/commands/ |
D | pull.py | 31 with file_accessor.prepare_file(source) as filename: 32 if not filename: 35 logging.debug('Copy %s -> %s', filename, dest) 36 shutil.copy(filename, dest)
|
/development/vndk/tools/header-checker/tests/ |
D | gen_all.py | 28 for filename in filenames: 29 if not patt.match(filename): 30 print('ignore:', filename) 33 input_path = os.path.join(base, filename)
|
/development/gsi/gsi_util/gsi_util/dumpers/ |
D | prop_dumper.py | 26 with file_accessor.prepare_file(filename_in_mount) as filename: 27 if filename: 28 with open(filename) as fp:
|
D | xml_dumper.py | 26 with file_accessor.prepare_file(filename_in_mount) as filename: 27 if filename: 28 self._tree = ET.parse(filename)
|
/development/testrunner/test_defs/ |
D | instrumentation_test.py | 291 def _IsJavaFileName(self, filename): argument 293 return os.path.splitext(filename)[1] == '.java' 325 filename = os.path.basename(java_file_path) 326 class_name = os.path.splitext(filename)[0] 342 for filename in os.listdir(path): 343 if self._IsJavaFileName(filename): 344 return self._GetPackageNameFromFile(os.path.join(path, filename))
|
D | test_walker.py | 161 for filename in os.listdir(path): 162 self._FindSubTests(os.path.join(path, filename), tests,
|
/development/gsi/gsi_util/ |
D | build.py | 93 def _build_zipfile(filename): argument 94 print 'Archive to {}...'.format(filename) 95 with zipfile.ZipFile(filename, mode='w') as zf:
|
/development/vndk/tools/sourcedr/files/ |
D | list_app_shared_uid.py | 66 for filename in filenames: 67 name, ext = os.path.splitext(filename) 69 return os.path.join(base, filename)[prefix_len:]
|
/development/build/tools/ |
D | mk_sources_zip.py | 137 for filename in os.listdir(srcdir): 138 filepath = os.path.join(srcdir, filename) 139 if filename.endswith(".java") and os.path.isfile(filepath): 161 if not filename in p.IGNORE_DIR:
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
D | ImageResizer.java | 148 public static Bitmap decodeSampledBitmapFromFile(String filename, in decodeSampledBitmapFromFile() argument 154 BitmapFactory.decodeFile(filename, options); in decodeSampledBitmapFromFile() 166 return BitmapFactory.decodeFile(filename, options); in decodeSampledBitmapFromFile()
|
/development/testrunner/ |
D | android_mk.py | 159 def CreateAndroidMK(path, filename=AndroidMK.FILENAME): argument 169 mk_path = os.path.join(path, filename)
|
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/ |
D | PduBody.java | 188 public PduPart getPartByFileName(String filename) { in getPartByFileName() argument 189 return mPartMapByFileName.get(filename); in getPartByFileName()
|
/development/tools/winscope/src/ |
D | decode.js | 238 function dataFile(filename, timeline, data, blobUrl, type) { argument 240 filename: filename,
|
/development/vndk/tools/header-checker/utils/ |
D | utils.py | 219 dirname, filename = os.path.split(path) 220 if not filename.endswith(SOURCE_ABI_DUMP_EXT): 222 libname = filename[:-len(SOURCE_ABI_DUMP_EXT)]
|
/development/vndk/tools/elfcheck/elfcheck/ |
D | rewriter.py | 173 filename = os.path.basename(prebuilt_file) 174 if dt_soname and dt_soname != filename:
|