/build/soong/android/ |
D | expand.go | 47 i := 0 53 buf = append(buf, s[i:j]...) 63 i = j + 1 66 return string(buf) + s[i:], nil 73 for i := 1; i < len(s); i++ { 74 if s[i] == ')' { 75 ret, ninjaVariable, err := mapping(strings.TrimSpace(s[1:i])) 76 return ret, ninjaVariable, i + 1, err 83 i := strings.IndexFunc(s, unicode.IsSpace) 84 if i == 0 { [all …]
|
D | configured_jars.go | 66 for i := 0; i < l.Len(); i++ { 67 if apex == l.apexes[i] && jar == l.jars[i] { 131 for i, jar := range l.jars { 132 apex := l.apexes[i] 148 for i, jar := range l.jars { 150 apexes = append(apexes, l.apexes[i]) 169 for i, jar := range l.jars { 170 apex := l.apexes[i] 180 for i, jar := range l.jars { 181 paths[i] = dir.Join(ctx, ModuleStem(ctx.Config(), l.Apex(i), jar)+".jar") [all …]
|
D | deapexer.go | 93 func (i DeapexerInfo) ApexModuleName() string { 94 return i.apexModuleName 103 func (i DeapexerInfo) PrebuiltExportPath(apexRelativePath string) WritablePath { 104 path := i.exports[apexRelativePath] 108 func (i DeapexerInfo) GetExportedModuleNames() []string { 109 return i.exportedModuleNames 128 func (i *DeapexerInfo) GetDexpreoptProfileGuidedExportedModuleNames() []string { 129 return i.dexpreoptProfileGuidedExportedModuleNames 132 func (i *DeapexerInfo) AddDexpreoptProfileGuidedExportedModuleNames(names ...string) { 133 …i.dexpreoptProfileGuidedExportedModuleNames = append(i.dexpreoptProfileGuidedExportedModuleNames, …
|
/build/make/tools/compliance/ |
D | resolutionset_test.go | 95 for i := 0; i < len(actual); i++ { 96 if actual[i] != expected[i] { 97 t.Errorf("rsShare: unexpected target at index %d: got %s, want %s", i, actual[i], expected[i]) 112 for i := 0; i < len(actual); i++ { 113 if actual[i] != expected[i] { 114 t.Errorf("rsPrivate: unexpected target at index %d: got %s, want %s", i, actual[i], expected[i])
|
D | conditionset_test.go | 344 for i := 0; i < len(actualNames); i++ { 345 if actualNames[i] != expectedNames[i] { 347 data, i, actualNames[i], expectedNames[i]) 357 for i := 0; i < len(actualNames); i++ { 358 if actualNames[i] != expectedNames[i] { 360 data, i, actualNames[i], expectedNames[i]) 384 for i := 0; i < len(actualNames); i++ { 385 if actualNames[i] != expectedNames[i] { 387 data, i, actualNames[i], expectedNames[i]) 398 for i := 0; i < len(actualNames); i++ { [all …]
|
D | policy_shareprivacyconflicts_test.go | 31 func (l byConflict) Swap(i, j int) { l[i], l[j] = l[j], l[i] } argument 35 func (l byConflict) Less(i, j int) bool { argument 36 if l[i].SourceNode.Name() == l[j].SourceNode.Name() { 37 if l[i].ShareCondition.Name() == l[j].ShareCondition.Name() { 38 return l[i].PrivacyCondition.Name() < l[j].PrivacyCondition.Name() 40 return l[i].ShareCondition.Name() < l[j].ShareCondition.Name() 42 return l[i].SourceNode.Name() < l[j].SourceNode.Name() 113 for i := 0; i < len(actualConflicts); i++ { 114 if !actualConflicts[i].IsEqualTo(expectedConflicts[i]) { 116 i, actualConflicts[i].Error(), expectedConflicts[i].Error())
|
D | readgraph_test.go | 124 for i := 0; i < len(actualEdges); i++ { 125 if tt.expectedEdges[i] != actualEdges[i] { 126 t.Errorf("actualEdges[%d]: got %s, want %s", i, actualEdges[i], tt.expectedEdges[i]) 144 for i := 0; i < len(actualTargets); i++ { 145 if tt.expectedTargets[i] != actualTargets[i] { 146 t.Errorf("actualTargets[%d]: got %s, want %s", i, actualTargets[i], tt.expectedTargets[i])
|
D | test_util.go | 163 func (l byEdge) Swap(i, j int) { l[i], l[j] = l[j], l[i] } argument 167 func (l byEdge) Less(i, j int) bool { argument 168 if l[i].target == l[j].target { 169 return l[i].dep < l[j].dep 171 return l[i].target < l[j].target 199 for i := 0; i < len(a1); i++ { 200 if a1[i] != a2[i] { 259 func (l byAnnotatedEdge) Swap(i, j int) { l[i], l[j] = l[j], l[i] } argument 260 func (l byAnnotatedEdge) Less(i, j int) bool { argument 261 if l[i].target == l[j].target { [all …]
|
/build/make/tools/droiddoc/templates-pdk/assets/ |
D | search_autocomplete.js | 34 var i; //TR iterator 46 for (i=0; i<ROW_COUNT; i++) { 75 for (i=0; i<N; i++) { 76 r = filtered.rows[i]; 78 set_row_values(toroot, r, gMatches[i]); 79 set_row_selected(r, i == gSelectedIndex); 80 if (i == gSelectedIndex) { 81 gSelectedID = gMatches[i].id; 85 for (; i<ROW_COUNT; i++) { 86 r = filtered.rows[i]; [all …]
|
D | android-developer-resource-browser.js | 25 for (var i = 0; i < loadedResults.length; i++) { 28 if (!resultMatchesKeyword(loadedResults[i].result, keywords[j])) { 34 loadedResults[i].node[hide ? 'hide' : 'show'](); 75 for (var i = 0; i < ANDROID_RESOURCES.length; i++) { 76 var resource = ANDROID_RESOURCES[i]; 109 var i, j; 112 for (i = 0; i < params.tag.length; i++) { 113 var tag = params.tag[i]; 134 for (i = 0; i < ANDROID_RESOURCES.length; i++) { 135 var resource = ANDROID_RESOURCES[i]; [all …]
|
/build/make/tools/ |
D | findleaves.py | 40 i = 0 41 while i < len(dirs): 42 if dirs[i] in prune: 43 del dirs[i] 45 i += 1 58 i = 0 59 while i < len(dirs): 60 st = os.stat(os.path.join(root, dirs[i])) 63 del dirs[i] 65 i += 1 [all …]
|
/build/make/tools/perf/ |
D | pretty.py | 41 for i in range(len(row)): 42 cell = row[i] if row[i] else "" 43 if i >= len(alignments) or alignments[i] == "R": 44 result += " " * (widths[i] - len(cell)) 46 if i < len(alignments) and alignments[i] == "L": 47 result += " " * (widths[i] - len(cell))
|
/build/bazel/scripts/difftool/ |
D | clangcompile.py | 119 diffs.defines = [i for i in self.defines if i not in other.defines] 120 diffs.warnings = [i for i in self.warnings if i not in other.warnings] 121 diffs.features = [i for i in self.features if i not in other.features] 122 diffs.libraries = [i for i in self.libraries if i not in other.libraries] 124 i for i in self.linker_args if i not in other.linker_args 127 i for i in self.assembler_args if i not in other.assembler_args 129 diffs.i_includes = [i for i in self.i_includes if i not in other.i_includes] 131 i for i in self.iquote_includes if i not in other.iquote_includes 134 i for i in self.isystem_includes if i not in other.isystem_includes 136 diffs.file_flags = [i for i in self.file_flags if i not in other.file_flags] [all …]
|
/build/blueprint/parser/ |
D | sort.go | 134 for i := 0; i < len(list.Values); i++ { 136 line := list.Values[i].Pos().Line 138 for j = i + 1; j < len(list.Values); j++ { 149 sortSubList(list.Values[i:j], nextPos, file) 150 i = j - 1 155 for i := 0; i < len(list.Values); i++ { 157 line := list.Values[i].Pos().Line 159 for j = i + 1; j < len(list.Values); j++ { 166 if !subListIsSorted(list.Values[i:j]) { 169 i = j - 1 [all …]
|
/build/soong/java/ |
D | hiddenapi_monolithic.go | 82 func (i *MonolithicHiddenAPIInfo) append(ctx android.ModuleContext, otherModule android.Module, oth… 83 i.FlagsFilesByCategory.append(other.FlagFilesByCategory) 84 i.AnnotationFlagsPaths = append(i.AnnotationFlagsPaths, other.AnnotationFlagsPath) 85 i.MetadataPaths = append(i.MetadataPaths, other.MetadataPath) 86 i.IndexPaths = append(i.IndexPaths, other.IndexPath) 98 i.StubFlagSubsets = append(i.StubFlagSubsets, other.StubFlagSubset()) 99 i.FlagSubsets = append(i.FlagSubsets, other.FlagSubset())
|
/build/soong/ui/terminal/ |
D | util.go | 74 i := bytes.IndexByte(read, 0x1b) 76 if i == -1 || i+1 >= len(read) { 82 if read[i+1] != '[' { 83 write, read = advance(write, read, i+1) 88 write, read = advance(write, read, i) 91 i = bytes.IndexFunc(read, func(r rune) bool { 94 if i == -1 { 96 i = len(read) - 1 100 i = i + 1 103 read = read[i:] [all …]
|
/build/blueprint/ |
D | ninja_strings.go | 131 for i := 0; i < len(str); i++ { 132 r := rune(str[i]) 133 state, err = state(parseState, i, r) 153 func parseFirstRuneState(state *parseState, i int, r rune) (stateFunc, error) { 157 return parseStringState(state, i, r) 160 func parseStringState(state *parseState, i int, r rune) (stateFunc, error) { 163 state.varStart = i 174 func parseDollarStartState(state *parseState, i int, r rune) (stateFunc, error) { 179 state.varNameStart = i 188 state.varNameStart = i + 1 [all …]
|
/build/blueprint/proptools/ |
D | hash_provider.go | 55 for i := 0; i < v.NumField(); i++ { 57 err := calculateHashInternal(hasher, v.Field(i), ptrs) 59 return fmt.Errorf("in field %s: %s", v.Type().Field(i).Name, err.Error()) 69 for i := 0; iter.Next(); i++ { 70 indexes[i] = i 71 keys[i] = iter.Key() 72 values[i] = iter.Value() 74 sort.SliceStable(indexes, func(i, j int) bool { 75 return compare_values(keys[indexes[i]], keys[indexes[j]]) < 0 77 for i := 0; i < v.Len(); i++ { [all …]
|
D | typeequal.go | 69 for i := 0; i < v1.NumField(); i++ { 70 v1 := v1.Field(i) 71 v2 := v2.Field(i) 105 for i := 0; i < v.NumField(); i++ { 106 v := v.Field(i)
|
/build/make/tools/canoninja/ |
D | canoninja.go | 29 for i := 0; i < len(lines); { 30 if bytes.HasPrefix(lines[i], rulePrefix) { 32 rn := ruleName(lines[i]) 34 return fmt.Errorf("%s:%d: rule name is missing or on the next line", path, i+1) 38 return fmt.Errorf("%s:%d: the rule %s has been already defined", path, i+1, sRuleName) 49 doDigest(lines[i][cap(lines[i])+len(rn)-cap(rn):]) 50 for i++; i < len(lines) && lines[i][0] == ' '; i++ { 51 doDigest(lines[i]) 58 i++ 63 for i, line := range lines { [all …]
|
/build/make/tools/fs_config/ |
D | fs_config.c | 88 int i; in main() local 89 for (i = 0; i < 1024 && buffer[i]; ++i) { in main() 90 switch (buffer[i]) { in main() 92 buffer[i-is_dir] = '\0'; in main() 93 if (i == 0) { in main() 96 i = 1025; in main()
|
/build/make/tools/aconfig/aconfig_storage_write_api/tests/ |
D | storage_write_api_test.rs | 48 for i in 0..8 { in test_boolean_flag_value_update() 49 set_boolean_flag_value(&mut file, i, true).unwrap(); in test_boolean_flag_value_update() 50 let value = get_boolean_flag_value_at_offset(&flag_value_path, i); in test_boolean_flag_value_update() 53 set_boolean_flag_value(&mut file, i, false).unwrap(); in test_boolean_flag_value_update() 54 let value = get_boolean_flag_value_at_offset(&flag_value_path, i); in test_boolean_flag_value_update() 69 for i in 0..8 { in test_set_flag_has_server_override() 70 set_flag_has_server_override(&mut file, FlagValueType::Boolean, i, true).unwrap(); in test_set_flag_has_server_override() 72 get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i); in test_set_flag_has_server_override() 74 set_flag_has_server_override(&mut file, FlagValueType::Boolean, i, false).unwrap(); in test_set_flag_has_server_override() 76 get_flag_attribute_at_offset(&flag_info_path, FlagValueType::Boolean, i); in test_set_flag_has_server_override() [all …]
|
/build/bazel/examples/android_app/java/com/app/ |
D | jni_dep.cc | 27 for (int i = 0; i < len; i++) { in NewStringLatin1() local 28 str1[i] = (unsigned char)str[i]; in NewStringLatin1()
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | RegexSet.java | 29 for (int i = 0; i < patterns.length; i++) { in RegexSet() 30 mPatterns[i] = Pattern.compile(patterns[i]); in RegexSet()
|
/build/soong/cmd/diff_target_files/ |
D | compare.go | 101 i := 0 106 for i < len(a) && j < len(b) { 107 if a[i].Name == b[j].Name { 108 if a[i].UncompressedSize64 != b[j].UncompressedSize64 || a[i].CRC32 != b[j].CRC32 { 109 diff.modified = append(diff.modified, [2]*ZipArtifactFile{a[i], b[j]}) 111 i++ 113 } else if a[i].Name < b[j].Name { 115 diff.onlyInA = append(diff.onlyInA, a[i]) 116 i++ 123 for i < len(a) { [all …]
|