/development/vndk/tools/header-checker/src/utils/ |
D | string_utils.cpp | 30 std::string_view Trim(std::string_view s) { in Trim() argument 31 std::string::size_type start = s.find_first_not_of(" \t\r\n"); in Trim() 35 std::string::size_type end = s.find_last_not_of(" \t\r\n"); in Trim() 37 return s.substr(start); in Trim() 39 return s.substr(start, end - start + 1); in Trim() 43 bool StartsWith(std::string_view s, std::string_view prefix) { in StartsWith() argument 44 return s.size() >= prefix.size() && s.compare(0, prefix.size(), prefix) == 0; in StartsWith() 48 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() argument 49 return (s.size() >= suffix.size() && in EndsWith() 50 s.compare(s.size() - suffix.size(), suffix.size(), suffix) == 0); in EndsWith() [all …]
|
D | string_utils.h | 28 std::string_view Trim(std::string_view s); 30 bool StartsWith(std::string_view s, std::string_view prefix); 32 bool EndsWith(std::string_view s, std::string_view suffix); 34 std::vector<std::string_view> Split(std::string_view s, 37 llvm::Optional<int> ParseInt(const std::string &s); 39 bool ParseBool(const std::string &s); 41 bool IsGlobPattern(std::string_view s);
|
/development/tools/repo_diff/service/repodiff/interactors/ |
D | strings.go | 13 func (s simpleSet) Contains(other string) bool { 14 enabled, exists := s[other] 64 func sliceToSimpleSet(s []string) simpleSet { 65 m := make(simpleSet, len(s)) 66 for _, val := range s { 82 for _, s := range sets { 83 totalCount += len(s) 88 for _, s := range sets { 89 for k := range s { 97 func FilterNoUnicode(s string) string { [all …]
|
/development/tools/repo_diff/service/repodiff/repositories/ |
D | source.go | 22 func (s source) getOrCreateURLBranchID(url, branch string) (int16, error) { 28 val, err := s.getOrCreateURLBranchIDPersistence(url, branch) 36 func (s source) getOrCreateURLBranchIDPersistence(url, branch string) (int16, error) { 37 id, err := s.getIDByURLBranch(url, branch) 41 s.insertIgnoreError(url, branch) 42 return s.getIDByURLBranch(url, branch) 45 func (s source) insertIgnoreError(url, branch string) { 47 s.db, 61 func (s source) getIDByURLBranch(url, branch string) (int16, error) { 64 s.db, [all …]
|
D | denormalizer.go | 36 `INSERT INTO %s ( 103 `INSERT INTO %s ( 156 func (s ScopedDenormalizer) DenormalizeToRecentView(diffRows []ent.AnalyzedDiffRow) error { 158 if err := s.deleteExistingView(table); err != nil { 163 s.db, 165 `INSERT INTO %s ( 186 s.rowsWithScopedIndices( 210 func (s ScopedDenormalizer) DenormalizeToChangesOverTime(diffRows []ent.AnalyzedDiffRow) error { 217 s.db, 219 `INSERT IGNORE INTO %s ( [all …]
|
/development/tools/mkstubs/src/com/android/mkstubs/ |
D | Main.java | 188 private void addString(Params p, String s) throws IOException { in addString() argument 189 if (s == null) { in addString() 193 s = s.trim(); in addString() 195 if (s.length() < 2) { in addString() 199 char mode = s.charAt(0); in addString() 200 s = s.substring(1).trim(); in addString() 203 addStringsFromFile(p, s); in addString() 206 s = s.replace('.', '/'); // transform FQCN into ASM internal name in addString() 207 if (s.endsWith("*")) { in addString() 208 p.getFilter().getExcludePrefix().add(s.substring(0, s.length() - 1)); in addString() [all …]
|
D | Filter.java | 76 public boolean accept(String s) { in accept() argument 79 boolean accept = mIncludeFull.contains(s); in accept() 83 if (s.startsWith(prefix)) { in accept() 92 accept = !mExcludeFull.contains(s); in accept() 97 if (s.startsWith(prefix)) { in accept()
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | Logger.java | 25 public void println(String s) { 27 System.out.println(s); 30 Log.i(TAG, s); 35 public void println(String s) { 37 System.err.println(s); 40 Log.w(TAG, s); 48 public abstract void println(String s); in println() argument
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | ShapeHolder.java | 85 Shape s = shape.getShape(); in setWidth() local 86 s.resize(width, s.getHeight()); in setWidth() 93 Shape s = shape.getShape(); in setHeight() local 94 s.resize(s.getWidth(), height); in setHeight() 97 public ShapeHolder(ShapeDrawable s) { in ShapeHolder() argument 98 shape = s; in ShapeHolder()
|
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/ |
D | TextWatcherWrapper.java | 37 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument 42 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument 47 public void afterTextChanged(Editable s) { in afterTextChanged() argument 48 mListener.onTextChanged(mId, s.toString()); in afterTextChanged() 52 public void onTextChanged(int id, String s); in onTextChanged() argument
|
/development/vndk/tools/elfcheck/bpflatten/ |
D | main.go | 35 if s, ok := value.(*parser.Bool); ok { 36 return s.Value, true 37 } else if s, ok := value.(*parser.String); ok { 38 return s.Value, true 39 } else if s, ok := value.(*parser.Int64); ok { 40 return s.Value, true 52 if s, isScalar := expandScalarTypeExpression(value); isScalar { 53 propMap[name] = s 57 if s, isScalar := expandScalarTypeExpression(v.Eval()); isScalar { 58 l = append(l, s) [all …]
|
/development/samples/apkcachetest/src/com/android/apkcachetest/ |
D | Main.java | 63 String s = FileUtils.readTextFile(file, 100, "..."); in readTextFile() local 64 if (s != null) { in readTextFile() 65 s = s.replaceAll("[^\\x20-\\x7E]+", " "); in readTextFile() 67 return s; in readTextFile()
|
/development/tools/idegen/ |
D | index-gen.sh | 50 start=$(($(date +%s) / 1000000)) 52 start=$(($(date +%s%N) / 1000000)) 70 end=$(($(date +%s) / 1000000)) 72 end=$(($(date +%s%N) / 1000000))
|
/development/samples/devbytes/animation/SlidingFragments/src/com/example/android/slidingfragments/ |
D | SlidingFragments.java | 154 AnimatorSet s = new AnimatorSet(); in slideBack() local 155 s.playTogether(movingFragmentAnimator, darkHoverViewAnimator, movingFragmentRotator); in slideBack() 156 s.addListener(listener); in slideBack() 157 s.start(); in slideBack() 185 AnimatorSet s = new AnimatorSet(); in slideForward() local 186 s.playTogether(movingFragmentAnimator, movingFragmentRotator, darkHoverViewAnimator); in slideForward() 187 s.setStartDelay(getResources().getInteger(R.integer.slide_up_down_duration)); in slideForward() 188 s.addListener(new AnimatorListenerAdapter() { in slideForward() 194 s.start(); in slideForward()
|
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/ |
D | AccountStorage.java | 39 public static void SetAccount(Context c, String s) { in SetAccount() argument 41 Log.i(TAG, "Setting account number: " + s); in SetAccount() 43 prefs.edit().putString(PREF_ACCOUNT_NUMBER, s).commit(); in SetAccount() 44 sAccount = s; in SetAccount()
|
D | CardEmulationFragment.java | 55 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument 60 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument 65 public void afterTextChanged(Editable s) { in afterTextChanged() argument 66 String account = s.toString(); in afterTextChanged()
|
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/ |
D | FieldSourcerTest.java | 56 String s = mWriter.toString(); in testStringField() local 57 Assert.assertEquals("public java.lang.String mArg;\n", s); in testStringField() 71 String s = mWriter.toString(); in testTemplateTypeField() local 72 Assert.assertEquals("private final java.util.ArrayList<java.lang.String> mList;\n", s); in testTemplateTypeField()
|
D | AccessSourcerTest.java | 50 String s = mWriter.toString(); in testAbstractPublic() local 51 Assert.assertEquals("public abstract", s); in testAbstractPublic() 59 String s = mWriter.toString(); in testPrivateFinalStatic() local 60 Assert.assertEquals("private static final", s); in testPrivateFinalStatic()
|
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/ |
D | Utils.java | 37 public static String shellEscape(String s) { in shellEscape() argument 38 if (sSafeStringPattern.matcher(s).matches()) { in shellEscape() 39 return s; in shellEscape() 42 return "'" + s.replace("'", "'\\''") + "'"; in shellEscape()
|
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/pickers/ |
D | PickerActivity.java | 66 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in onCreate() 70 public void onTextChanged(CharSequence s, int start, int before, int count) { in onCreate() 74 public void afterTextChanged(Editable s) { in onCreate() 75 mFilter = s.toString(); in onCreate() 131 for (String s : mAllItems) { in refreshList() 132 if (filter.length() == 0 || s.toLowerCase().contains(filter)) { in refreshList() 133 list.add(s); in refreshList()
|
/development/vndk/tools/header-checker/tests/integration/c_and_cpp/ |
D | reproducability.c | 3 int repro(struct ShouldRepro *s) { in repro() argument 4 return s->a; in repro()
|
/development/tools/repo_diff/service/repodiff/mappers/ |
D | csv.go | 42 func quoteAll(s []string) []string { 43 copied := make([]string, len(s)) 44 for i, val := range s {
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/accounts/ |
D | GenericAccountService.java | 82 String s) { in editProperties() argument 88 String s, String s2, String[] strings, Bundle bundle) in addAccount() argument 102 Account account, String s, Bundle bundle) in getAuthToken() argument 108 public String getAuthTokenLabel(String s) { in getAuthTokenLabel() argument 114 Account account, String s, Bundle bundle) in updateCredentials() argument
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | Switches.java | 37 Switch s = (Switch) findViewById(R.id.monitored_switch); in onCreate() local 38 if (s != null) { in onCreate() 39 s.setOnCheckedChangeListener(this); in onCreate()
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | TextUndoActivity.java | 84 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument 88 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument 92 public void afterTextChanged(Editable s) { in afterTextChanged() argument 93 String original = s.toString(); in afterTextChanged() 97 s.replace(0, s.length(), formatted); in afterTextChanged()
|