/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
nturl2path.py | 12 url = url.replace(':', '|')
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_strftime.py | 25 new_text = new_text.replace(re.escape(ampm), ampm) 26 new_text = new_text.replace('\%', '%') 27 new_text = new_text.replace('\:', ':') 28 new_text = new_text.replace('\?', '?')
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/assetstudio/ |
ChooseAssetTypePage.java | 130 String replace = "name"; local 131 String suggestedName = String.format(mValues.type.getDefaultNameFormat(), replace); 137 int start = suggestedName.indexOf(replace); 139 mNameText.setSelection(start, start + replace.length());
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
AddPrefixFix.java | 53 document.replace(start, 0, prefix + ':');
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
BaseLayoutRuleTest.java | 191 public String replace(String attributeUri, String attributeName, 223 assertEquals("true", BaseLayoutRule.DEFAULT_ATTR_FILTER.replace("myuri", "layout_alignRight", 225 assertEquals(null, BaseLayoutRule.DEFAULT_ATTR_FILTER.replace(ANDROID_URI, 227 assertEquals("true", BaseLayoutRule.DEFAULT_ATTR_FILTER.replace(ANDROID_URI,
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
fastboot.py | 67 clean_name = name.replace('_', '-')
|
native.py | 63 str(response, encoding="utf8").rstrip().replace("\x00", ""))
|
/external/chromium-trace/catapult/third_party/coverage/coverage/ |
html.py | 425 .replace("&", "&").replace("<", "<").replace(">", ">") 426 .replace("'", "'").replace('"', """) 428 .replace(" ", " ") 431 .replace(" ", " ")
|
files.py | 137 filename = filename.decode(encoding, "replace") 246 fnpats = (p.replace(r"\/", r"[\\/]") for p in fnpats) 317 regex_pat = fnmatch.translate(pattern).replace(r'\Z(', '(') 321 regex_pat = regex_pat.replace(r"\/", r"[\\/]") 334 match is used to replace the root of the path with the result root. 349 new = path.replace(m.group(0), result) 351 new = new.replace(pattern_sep, result_sep)
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cloudfront/ |
distribution.py | 398 bucket_name = bucket_dns_name.replace('.s3.amazonaws.com', '') 426 def set_permissions(self, object, replace=False): 438 :type replace: bool 439 :param replace: If False, the Origin Access Identity will be 451 if replace: 458 def set_permissions_all(self, replace=False): 463 :type replace: bool 464 :param replace: If False, the Origin Access Identity will be 473 self.set_permissions(key, replace) 475 def add_object(self, name, content, headers=None, replace=True) [all...] |
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/lib/serialization/ |
serializer.js | 27 .replace(AMP_REGEX, '&') 28 .replace(NBSP_REGEX, ' '); 31 str = str.replace(DOUBLE_QUOTE_REGEX, '"'); 35 .replace(LT_REGEX, '<') 36 .replace(GT_REGEX, '>');
|
/external/llvm/utils/lit/lit/ |
TestRunner.py | 22 # Use temporary files to replace /dev/null on Windows. 192 # Replace uses of /dev/null with temporary files. 432 sourcepath = sourcepath.replace('\\', '/') 433 sourcedir = sourcedir.replace('\\', '/') 434 tmpDir = tmpDir.replace('\\', '/') 435 tmpBase = tmpBase.replace('\\', '/') 451 ('%/s', sourcepath.replace('\\', '/')), 452 ('%/S', sourcedir.replace('\\', '/')), 453 ('%/p', sourcedir.replace('\\', '/')), 454 ('%/t', tmpBase.replace('\\', '/') + '.tmp') [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
StringTest.java | 306 decoder.onMalformedInput(CodingErrorAction.REPLACE); 315 assertEquals("-h-e-l-l-o- -w-o-r-l-d-", "hello world".replace("", "-")); 316 assertEquals("-w-o-r-l-d-", "hello world".substring(6).replace("", "-")); 317 assertEquals("-*-w-*-o-*-r-*-l-*-d-*-", "hello world".substring(6).replace("", "-*-")); 319 // Replace on an empty string with an empty target should insert the pattern 321 assertEquals("", "".replace("", "")); 322 assertEquals("food", "".replace("", "food")); 326 // Replace on an empty string is a no-op. 327 assertEquals("", "".replace("foo", "bar")); 328 // Replace on a string which doesn't contain the target sequence is a no-op [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
CollectionsTest.java | 271 Collections.unmodifiableMap(new HashMap<>()).replace(1, 5.0, 1.0); 280 Collections.unmodifiableMap(m).replace(1, 5.0, 1.0); 288 Collections.unmodifiableMap(new HashMap<>()).replace(1, 5.0); 297 Collections.unmodifiableMap(m).replace(1, 5.0); 403 Collections.emptyMap().replace(1, 5.0, 5.0); 411 Collections.emptyMap().replace(1, 5.0); 480 Collections.singletonMap(1, 11.0).replace(1, 5.0, 5.0); 488 Collections.singletonMap(1, 11.0).replace(1, 5.0); 659 checkedMap2.replace(1, NOT_A_STRING); 674 checkedMap2.replace(1, 1, NOT_A_STRING) [all...] |
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/ |
update.py | 71 def _add(self, replace, section, name, *args): 72 """Add records. The first argument is the replace mode. If 88 if replace: 96 if replace: 104 if replace: 165 def replace(self, name, *args): member in class:Update 166 """Replace records. The first argument is always a name. The other 175 Note that if you want to replace the entire node, you should do
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/string/ |
string.js | 98 // example, with $$$& stops the replace from subsituting the whole match 99 // into the resultant string. $$$& in the first replace becomes $$& in the 102 var replacement = String(arguments[i]).replace(/\$/g, '$$$$'); 103 str = str.replace(/\%s/, replacement); 119 return str.replace(/[\s\xa0]+/g, ' ').replace(/^\s+|\s+$/g, ''); 217 return str.replace(/(\r\n|\r|\n)+/g, ' '); 227 return str.replace(/(\r\n|\r|\n)/g, '\n'); 238 return str.replace(/\xa0|\s/g, ' '); 250 return str.replace(/\xa0|[ \t]+/g, ' ') [all...] |
/external/javassist/src/main/javassist/bytecode/ |
Descriptor.java | 38 return classname.replace('.', '/'); 51 return classname.replace('/', '.'); 82 name = descriptor.substring(i, i2).replace('/', '.'); 269 desc.append(type.getName().replace('.', '/')); 335 newdesc.append(classname.replace('.', '/')); 356 return "(L" + classname.replace('.', '/') + ';' 413 newdesc.append(classname.replace('.', '/')); 547 return cp.get(desc.replace('/', '.')); 567 name = desc.substring(i, i2++).replace('/', '.');
|
/external/libgdx/extensions/gdx-jnigen/src/com/badlogic/gdx/jnigen/ |
NativeCodeGenerator.java | 276 String className = file.path().replace(sourceDir.path(), "").replace('\\', '.').replace('/', '.').replace(".java", "");
331 String javaMethodName = javaMethod.getName().replace("_", "_1");
332 String javaClassName = javaMethod.getClassName().toString().replace("_", "_1");
365 buffer.append(section.getNativeCode().replace("\r", ""));
451 String[] tokens = cMethod.getHead().replace("\r\n", "").replace("\n", "").split(" ");
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
ConcurrentHashMapTest.java | 447 * replace fails when the given key is not present 451 assertNull(map.replace(six, "Z")); 456 * replace succeeds if the key is already present 460 assertNotNull(map.replace(one, "Z")); 465 * replace value fails when the given key not mapped to expected value 470 assertFalse(map.replace(one, "Z", "Z")); 475 * replace value succeeds when the given key mapped to expected value 480 assertTrue(map.replace(one, "A", "Z")); 678 * replace(null, x) throws NPE 683 c.replace(null, "whatever") [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
locale.py | 291 s = s.replace('<', sign) 293 s = s.replace('>', sign) 299 return s.replace('<', '').replace('>', '') 310 string = string.replace(ts, '') 311 #next, replace the decimal point with a dot 314 string = string.replace(dd, '.') 369 fullname = fullname.replace(':', '.') 378 norm_encoding = encoding.replace('-', '') 379 norm_encoding = norm_encoding.replace('_', '' [all...] |
webbrowser.py | 172 cmdline = [self.name] + [arg.replace("%s", url) 189 cmdline = [self.name] + [arg.replace("%s", url) 273 args = [arg.replace("%s", url).replace("%action", action) 278 args = [arg.replace("%s", url) for arg in self.args] 594 script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser 603 cmd = 'OpenURL "%s"' % url.replace('"', '%22') 623 script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser 630 '''%(self._name, url.replace('"', '%22'))
|
/prebuilts/gdb/linux-x86/lib/python2.7/ |
locale.py | 291 s = s.replace('<', sign) 293 s = s.replace('>', sign) 299 return s.replace('<', '').replace('>', '') 310 string = string.replace(ts, '') 311 #next, replace the decimal point with a dot 314 string = string.replace(dd, '.') 369 fullname = fullname.replace(':', '.') 378 norm_encoding = encoding.replace('-', '') 379 norm_encoding = norm_encoding.replace('_', '' [all...] |
webbrowser.py | 172 cmdline = [self.name] + [arg.replace("%s", url) 189 cmdline = [self.name] + [arg.replace("%s", url) 273 args = [arg.replace("%s", url).replace("%action", action) 278 args = [arg.replace("%s", url) for arg in self.args] 594 script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser 603 cmd = 'OpenURL "%s"' % url.replace('"', '%22') 623 script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser 630 '''%(self._name, url.replace('"', '%22'))
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
locale.py | 291 s = s.replace('<', sign) 293 s = s.replace('>', sign) 299 return s.replace('<', '').replace('>', '') 310 string = string.replace(ts, '') 311 #next, replace the decimal point with a dot 314 string = string.replace(dd, '.') 369 fullname = fullname.replace(':', '.') 378 norm_encoding = encoding.replace('-', '') 379 norm_encoding = norm_encoding.replace('_', '' [all...] |
webbrowser.py | 172 cmdline = [self.name] + [arg.replace("%s", url) 189 cmdline = [self.name] + [arg.replace("%s", url) 273 args = [arg.replace("%s", url).replace("%action", action) 278 args = [arg.replace("%s", url) for arg in self.args] 594 script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser 603 cmd = 'OpenURL "%s"' % url.replace('"', '%22') 623 script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser 630 '''%(self._name, url.replace('"', '%22'))
|