/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/repositories/ |
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 …]
|
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 …]
|
/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/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
|
D | MonkeySourceScript.java | 279 private void handleEvent(String s, String[] args) { in handleEvent() argument 281 if (s.indexOf(EVENT_KEYWORD_KEY) >= 0 && args.length == 8) { in handleEvent() 305 if ((s.indexOf(EVENT_KEYWORD_POINTER) >= 0 || s.indexOf(EVENT_KEYWORD_TRACKBALL) >= 0) in handleEvent() 322 if (s.indexOf("Pointer") > 0) { in handleEvent() 342 if ((s.indexOf(EVENT_KEYWORD_POINTER) >= 0 || s.indexOf(EVENT_KEYWORD_TRACKBALL) >= 0) in handleEvent() 360 if (s.indexOf("Pointer") > 0) { in handleEvent() 420 if ((s.indexOf(EVENT_KEYWORD_ROTATION) >= 0) && args.length == 2) { in handleEvent() 437 if ((s.indexOf(EVENT_KEYWORD_TAP) >= 0) && args.length >= 2) { in handleEvent() 468 if ((s.indexOf(EVENT_KEYWORD_PRESSANDHOLD) >= 0) && args.length == 3) { in handleEvent() 497 if ((s.indexOf(EVENT_KEYWORD_DRAG) >= 0) && args.length == 5) { in handleEvent() [all …]
|
/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/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/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/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/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))
|
D | README | 18 Android's core libraries and not those from your desktop VM. 20 From the project's root directory... 47 From the project's root directory... 61 use Java's regular expression parser (see java.util.regex.Parser). 64 "excluded-paths" file in the project's root directory. For example, you 71 create a file named "path-precedence" in your project's root directory. 73 path (relative to the project's root directory). If a given source root's 79 For example, if you want your applications's source root to come first,
|
/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()
|
/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/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/vndk/tools/sourcedr/ninja/tests/ |
D | test_ninja.py | 27 s = ninja.EvalStringBuilder().getvalue() 28 self.assertFalse(s) 29 self.assertEqual('', ninja.eval_string(s, ninja.EvalEnv())) 32 s = ninja.EvalStringBuilder().append_raw('a').getvalue() 33 self.assertTrue(s) 34 self.assertEqual('a', ninja.eval_string(s, ninja.EvalEnv())) 40 s = sb.getvalue() 42 self.assertTrue(s) 43 self.assertEqual('ab', ninja.eval_string(s, ninja.EvalEnv())) 46 s = ninja.EvalStringBuilder().append_var('key').getvalue() [all …]
|
/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/tools/ |
D | monkey | 34 def PrintStatus(s): argument 39 sys.stdout.write(s) 160 def ConvertVal(s): argument 161 if s == "true": 163 elif s == "false": 167 return int(s) 169 return s 172 lines = [[s.strip() for s in line.split(":", 1)] for line in lines]
|
/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()
|