Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 67) sorted by relevance

123

/development/tools/repo_diff/service/repodiff/persistence/filesystem/
Dunix.go58 for _, str := range strings {
59 if str != "" {
60 filtered[copyToIndex] = str
69 for _, str := range strings {
70 if str == "" {
/development/tools/apkcheck/src/com/android/apkcheck/
DTypeUtils.java259 private static String stripAngleBrackets(String str) { in stripAngleBrackets() argument
266 int ltIndex = str.indexOf('<'); in stripAngleBrackets()
268 return str; in stripAngleBrackets()
270 int gtIndex = str.lastIndexOf('>'); in stripAngleBrackets()
272 System.err.println("ERROR: found '<' without '>': " + str); in stripAngleBrackets()
273 return str; // not much we can do in stripAngleBrackets()
276 return str.substring(0, ltIndex) + str.substring(gtIndex+1); in stripAngleBrackets()
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
Dweb_services.py159 logging.info('Returning ' + str(len(updated_contacts)) + ' contact records')
193 high_water_mark = str(long(_time.mktime(high_water_date.utctimetuple())) + 1)
215 logging.info('Server-side updates: ' + str(update_count))
216 logging.info('Server-side deletes: ' + str(delete_count))
227 logging.info('Client-side updates: ' + str(len(json_list)))
237 logging.info('Updating contact: ' + str(id))
276 high_water = str(long(_time.mktime(contact.updated.utctimetuple())) + 1)
285 logging.info('Client-side adds: ' + str(new_contact_count))
290 contact_id = str(contact.key().id())
371 contact[json_name] = str(v)
[all …]
/development/apps/Development/src/com/android/development/
DAppHwPref.java134 String str = null; in displayTextView() local
137 str = getTouchScreenStr(config[i]); in displayTextView()
140 str = getKeyboardTypeStr(config[i]); in displayTextView()
143 str = getNavigationStr(config[i]); in displayTextView()
146 str = config[i].getGlEsVersion(); in displayTextView()
149 if(str != null) { in displayTextView()
150 list.add(str); in displayTextView()
155 for(String str : list) { in displayTextView()
157 listStr += str+","; in displayTextView()
DDetails.java95 TextView makeView(String str, boolean bold, int fontSize) in makeView() argument
97 if (str == null) { in makeView()
98 str = "(null)"; in makeView()
101 v.setText(str); in makeView()
123 String str = c.getString(i);
124 ColumnData cd = new ColumnData(columnNames[i], str);
/development/tools/winscope/adb_proxy/
Dwinscope_proxy.py128 def __init__(self, files, trace_start: str, trace_stop: str) -> None: argument
197 def add(self, config: str) -> None: argument
200 def is_valid(self, config: str) -> bool: argument
203 def command(self) -> str:
222 def setBufferSize(self) -> str:
243 def setBufferSize(self) -> str:
246 def setTracingLevel(self) -> str:
249 def setTracingType(self) -> str:
279 def __init__(self, files, dump_command: str) -> None: argument
301 def get_token() -> str:
[all …]
/development/tools/bugreport/src/com/android/bugreport/util/
DUtils.java71 final String str = matcher.group(group); in getInt() local
72 if (str == null || str.length() == 0) { in getInt()
75 return Integer.parseInt(str); in getInt()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DResourcesSample.java51 String str; in onCreate() local
64 str = getString(R.string.styled_text); in onCreate()
66 tv.setText(str); in onCreate()
DStyledText.java46 CharSequence str = getText(R.string.styled_text); in onCreate() local
48 tv.setText(str); in onCreate()
DTextUndoActivity.java104 private static String addSpaces(CharSequence str) { in addSpaces() argument
106 int len = str.length(); in addSpaces()
109 builder.append(str.subSequence(i, i + 4)); in addSpaces()
113 builder.append(str.subSequence(i, len)); in addSpaces()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DLogHelper.java28 public static String makeLogTag(String str) { in makeLogTag() argument
29 if (str.length() > MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH) { in makeLogTag()
30 return LOG_PREFIX + str.substring(0, MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH - 1); in makeLogTag()
33 return LOG_PREFIX + str; in makeLogTag()
/development/scripts/
Dboardconfig_usage_analysis.py183 str(len(locations)),
184 str(len(usage_in_sfe)),
185 str(len(usage_of_system_modules))]) + '\n'
190 print('Defined in (' + str(len(locations)) + ') :')
194 print('Used in (' + str(len(usage)) + ') :')
/development/gsi/gsi_util/gsi_util/commands/
Dpull.py69 type=str,
75 type=str,
Dflash_gsi.py62 help='the GSI image to flash', type=str)
/development/tools/axl/
Dlog.py27 if type(file) is str:
40 for ln in " ".join(map(str, logstrs)).split("\n"):
/development/samples/ApiDemos/src/com/example/android/apis/os/
DMorseCodeConverter.java90 static long[] pattern(String str) { in pattern() argument
92 int strlen = str.length(); in pattern()
98 char c = str.charAt(i); in pattern()
121 char c = str.charAt(i); in pattern()
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DSecureWebServer.java122 String str = "."; in start()
123 while (!str.equals("")) in start()
124 str = in.readLine(); in start()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DRegions.java62 private void drawRgn(Canvas canvas, int color, String str, Region.Op op) { in drawRgn() argument
63 if (str != null) { in drawRgn()
65 canvas.drawText(str, 80, 24, mPaint); in drawRgn()
/development/tools/logblame/
Dtest_logs.py159 ", ".join([str(r) for r in expected]),
160 ", ".join([str(r) for r in result])))
/development/samples/RSSReader/src/com/example/android/rssreader/
DRssReader.java204 public String removeTags(String str) { in removeTags() argument
205 str = str.replaceAll("<.*?>", " "); in removeTags()
206 str = str.replaceAll("\\s+", " "); in removeTags()
207 return str; in removeTags()
/development/vndk/tools/header-checker/src/utils/
Dcollect_exported_headers.cpp59 return llvm::sys::path::relative_path(norm_path.str()).str(); in NormalizePath()
/development/samples/Snake/src/com/example/android/snake/
DSnakeView.java344 CharSequence str = ""; in setMode() local
348 str = res.getText(R.string.mode_pause); in setMode()
354 str = res.getText(R.string.mode_ready); in setMode()
359 str = res.getString(R.string.mode_lose, mScore); in setMode()
362 mStatusText.setText(str); in setMode()
/development/gsi/gsi_util/gsi_util/commands/common/
Dimage_sources.py65 type=str,
/development/tools/privapp_permissions/
Dprivapp_permissions.py219 '# Examining the partitions: ' + str(self.partitions))
506 type=str,
513 type=str,
521 type=str,
533 type=str,
546 type=str,
598 out_file_name = str(p).replace('/', '_') + '.xml'
801 print(str(e), file=sys.stderr)
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java488 CharSequence str = ""; in setState() local
490 str = res.getText(R.string.mode_ready); in setState()
492 str = res.getText(R.string.mode_pause); in setState()
494 str = res.getText(R.string.mode_lose); in setState()
496 str = res.getString(R.string.mode_win_prefix) in setState()
501 str = message + "\n" + str; in setState()
508 b.putString("text", str.toString()); in setState()

123