/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LocalProvider.java | 84 public Cursor query(Uri url, String[] projectionIn, String selection, 89 int match = sURLMatcher.match(url); 97 qb.appendWhere(url.getPathSegments().get(1)); 100 throw new IllegalArgumentException("Unknown URL " + url); 110 ret.setNotificationUri(getContext().getContentResolver(), url); local 117 public String getType(Uri url) { 118 int match = sURLMatcher.match(url); 125 throw new IllegalArgumentException("Unknown URL"); 130 public int update(Uri url, ContentValues values, String where, String[] whereArgs) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
MemoryFileProvider.java | 113 public Cursor query(Uri url, String[] projectionIn, String selection, 119 public String getType(Uri url) { 120 int match = sURLMatcher.match(url); 127 throw new IllegalArgumentException("Unknown URL"); 132 public ParcelFileDescriptor openFile(Uri url, String mode) throws FileNotFoundException { 133 int match = sURLMatcher.match(url); 136 String sql = "SELECT _blob FROM data WHERE _id=" + url.getPathSegments().get(1); 137 return getBlobColumnAsFile(url, mode, sql); 142 throw new FileNotFoundException("Error reading " + url + ":" + ex.toString()); 148 throw new FileNotFoundException("No files supported by provider at " + url); [all...] |
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
TestHelper_Driver4.java | 53 public boolean acceptsURL(String url) throws SQLException { 55 if (url == null) { 58 // Everything's fine if the quoted url starts with the base url for this 60 if (url.startsWith(baseURL)) { 74 public Connection connect(String url, Properties info) throws SQLException { 75 // Does the URL have the right form? 76 if (this.acceptsURL(url)) { 77 // The datasource name is the remainder of the url after the ":" 78 String datasource = url.substring(baseURL.length() + 1) [all...] |
/external/webkit/Source/WebCore/loader/ |
NavigationScheduler.cpp | 97 ScheduledURLNavigation(double delay, PassRefPtr<SecurityOrigin> securityOrigin, const String& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool duringLoad, bool isLocationChange) 100 , m_url(url) 128 String url() const { return m_url; } function in class:WebCore::ScheduledURLNavigation 140 ScheduledRedirect(double delay, PassRefPtr<SecurityOrigin> securityOrigin, const String& url, bool lockHistory, bool lockBackForwardList) 141 : ScheduledURLNavigation(delay, securityOrigin, url, String(), lockHistory, lockBackForwardList, false, false) 151 ScheduledLocationChange(PassRefPtr<SecurityOrigin> securityOrigin, const String& url, const String& referrer, bool lockHistory, bool lockBackForwardList, bool duringLoad) 152 : ScheduledURLNavigation(0.0, securityOrigin, url, referrer, lockHistory, lockBackForwardList, duringLoad, true) { } 157 ScheduledRefresh(PassRefPtr<SecurityOrigin> securityOrigin, const String& url, const String& referrer) 158 : ScheduledURLNavigation(0.0, securityOrigin, url, referrer, true, true, false, true) 165 frame->loader()->changeLocation(securityOrigin(), KURL(ParsedURLString, url()), referrer(), lockHistory(), lockBackForwardList(), true) 361 const KURL& url = m_frame->document()->url(); local [all...] |
/external/webkit/Source/WebCore/platform/network/ |
DataURL.cpp | 43 ASSERT(handle->firstRequest().url().protocolIs("data")); 44 String url = handle->firstRequest().url().string(); local 46 int index = url.find(','); 52 String mediaType = url.substring(5, index - 5); 53 String data = url.substring(index + 1); 68 response.setURL(handle->firstRequest().url());
|
/external/chromium/chrome/browser/history/ |
thumbnail_database_unittest.cc | 121 GURL url("http://google.com"); 122 FaviconID id = db.AddFavicon(url, FAVICON); 131 EXPECT_EQ(url, url_out); 147 GURL url("http://google.com"); 148 FaviconID id = db.AddFavicon(url, TOUCH_ICON); 153 EXPECT_NE(0, db.AddIconMapping(url, id)); 155 EXPECT_TRUE(db.GetIconMappingsForPageURL(url, &icon_mapping)); 157 EXPECT_EQ(url, icon_mapping.front().page_url); 169 GURL url("http://google.com"); 170 FaviconID id = db.AddFavicon(url, TOUCH_ICON) [all...] |
/frameworks/base/core/java/android/webkit/ |
WebIconDatabaseClassic.java | 60 IconResult(String url, Bitmap icon, IconListener l) { 61 mUrl = url; 103 String url = msg.getData().getString("url"); 104 requestIconAndSendResult(url, l); 151 new String[] { Browser.BookmarkColumns.URL }, 155 String url = c.getString(0); local 156 requestIconAndSendResult(url, listener); 166 private void requestIconAndSendResult(String url, IconListener listener) { 167 Bitmap icon = nativeIconForPageUrl(url); [all...] |
/packages/apps/Browser/src/com/android/browser/ |
Bookmarks.java | 61 * @param url URL of the website to be bookmarked. 69 /* package */ static void addBookmark(Context context, boolean showToast, String url, 76 values.put(BrowserContract.Bookmarks.URL, url); 92 * Remove a bookmark from the database. If the url is a visited site, it 99 * @param url URL of the website to be removed. 102 ContentResolver cr, String url, String title) { 108 BrowserContract.Bookmarks.URL + " = ? AND " [all...] |
/cts/tests/tests/webkit/src/android/webkit/cts/ |
URLUtilTest.java | 104 assertFalse(URLUtil.isValidUrl("Error URL")); 125 byte[] url = new byte[0]; 126 byte[] result = URLUtil.decode(url); 129 url = new byte[] { 'w', 'w', 'w', '.', 'n', 'a', 'm', 'e', '.', 'c', 'o', 'm', '/', 131 result = URLUtil.decode(url); 136 url = new byte[] { 'w', 'w', 'w', '.', 'n', 'a', 'm', 'e', '.', 'c', 'o', 'm', '/', 139 result = URLUtil.decode(url); 146 String url = "ftp://example.url/test"; local 147 assertEquals("test.jpeg", URLUtil.guessFileName(url, null, "image/jpeg")) 158 String url = "domainName"; local 171 String url = "http:\/\/www.google.com#test"; local [all...] |
/external/chromium/chrome/browser/extensions/ |
app_process_apitest.cc | 21 // Simulates a page calling window.open on an URL, and waits for the navigation. 24 const GURL& url, 27 opener_host, L"", L"window.open('" + UTF8ToWide(url.spec()) + L"');")); 37 newtab->controller().GetLastCommittedEntry()->url() != url) 39 EXPECT_EQ(url, newtab->controller().GetLastCommittedEntry()->url()); 46 // Simulates a page navigating itself to an URL, and waits for the navigation. 47 static void NavigateTabHelper(TabContents* contents, const GURL& url) { 54 L"window.location = '" + UTF8ToWide(url.spec()) + L"';" [all...] |
extension_webnavigation_unittest.cc | 56 const GURL url("http://www.google.com/"); 58 navigation_state.TrackFrame(frame_id, url, true, false, contents()); 70 navigation_state.TrackFrame(frame_id, url, true, false, contents()); 80 const GURL url("http://www.google.com/"); 82 navigation_state.TrackFrame(frame_id1, url, true, false, contents()); 83 navigation_state.TrackFrame(frame_id2, url, false, false, contents()); 98 navigation_state.TrackFrame(frame_id2, url, false, false, contents()); 107 const GURL url("unsafe://www.google.com/"); 109 navigation_state.TrackFrame(frame_id, url, true, false, contents());
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
HttpAuthenticator.java | 26 import java.net.URL; 45 RawHeaders successorRequestHeaders, Proxy proxy, URL url) throws IOException { 53 String credentials = getCredentials(responseHeaders, challengeHeader, proxy, url); 70 Proxy proxy, URL url) throws IOException { 82 getConnectToInetAddress(proxy, url), proxyAddress.getPort(), url.getProtocol(), 83 challenge.realm, challenge.scheme, url, Authenticator.RequestorType.PROXY); 85 auth = Authenticator.requestPasswordAuthentication(url.getHost() [all...] |
/external/chromium/chrome/browser/chromeos/login/ |
account_screen.cc | 79 void AccountScreen::set_new_account_page_url(const GURL& url) { 80 new_account_page_url_.reset(new GURL(url)); 98 GURL url(*new_account_page_url_); 101 SiteInstance::CreateSiteInstanceForURL(profile, url)); 103 view()->LoadURL(url); 113 std::string url = source->GetURL().spec(); local 114 if (url == kCreateAccountDoneUrl) { 117 } else if (url == kCreateAccountBackUrl) { 156 void AccountScreen::OnPageLoadFailed(const std::string& url) {
|
/external/chromium/chrome/browser/net/ |
referrer.cc | 26 // If we visit the containing url, but don't end up needing a connection, then 31 // to the containing URL, and consider doing a preconnection), and then IFF we 55 void Referrer::SuggestHost(const GURL& url) { 64 if (!url.has_host()) // TODO(jar): Is this really needed???? 66 DCHECK(url == url.GetWithEmptyPath()); 67 SubresourceMap::iterator it = find(url); 77 (*this)[url].SubresourceIsNeeded(); 136 GURL url(url_spec); 142 SuggestHost(url); [all...] |
url_request_slow_http_job.cc | 39 std::string url = "http://"; local 40 url.append(kMockHostname); 41 url.append("/"); 44 url.append(path_str); 45 return GURL(url);
|
/external/chromium/chrome/browser/ |
desktop_notification_handler.cc | 43 GURL url = params.contents_url; local 45 !url.SchemeIs(chrome::kHttpScheme) && 46 !url.SchemeIs(chrome::kHttpsScheme) && 47 !url.SchemeIs(chrome::kExtensionScheme) && 48 !url.SchemeIs(chrome::kDataScheme)) {
|
/external/chromium/net/socket_stream/ |
socket_stream_job.cc | 23 const GURL& url, 26 GURL socket_url(url); 28 if (url.scheme() == "ws" && 31 &domain_state, url.host(), context.IsSNIAvailable()) && 37 socket_url = url.ReplaceComponents(replacements);
|
/external/webkit/Source/WebCore/css/ |
CSSImageValue.cpp | 33 CSSImageValue::CSSImageValue(const String& url) 34 : CSSPrimitiveValue(url, CSS_URI) 67 StyleCachedImage* CSSImageValue::cachedImage(CachedResourceLoader* loader, const String& url) 74 if (CachedImage* cachedImage = loader->requestImage(url)) { 87 return static_cast<StyleCachedImage*>(m_image.get())->cachedImage()->url();
|
/external/webkit/Source/WebCore/html/canvas/ |
CanvasRenderingContext.cpp | 72 checkOrigin(cachedImage->response().url()); 87 void CanvasRenderingContext::checkOrigin(const KURL& url) 89 if (!canvas()->originClean() || m_cleanOrigins.contains(url.string())) 92 if (canvas()->securityOrigin().taintsCanvas(url)) 95 m_cleanOrigins.add(url.string());
|
/external/webkit/Source/WebCore/inspector/front-end/ |
AuditFormatters.js | 82 url: function(url, displayText, allowExternalNavigation) 85 a.href = url; 86 a.title = url; 87 a.textContent = displayText || url;
|
/external/webkit/Source/WebKit2/Shared/ |
WebBackForwardListItem.cpp | 36 WebBackForwardListItem::WebBackForwardListItem(const String& originalURL, const String& url, const String& title, const uint8_t* backForwardData, size_t backForwardDataSize, uint64_t itemID) 38 , m_url(url) 78 String url; 79 if (!decoder.decode(url)) 94 return create(originalURL, url, title, data.data(), data.size(), itemID);
|
/external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/ |
WebContextMenuClient.cpp | 65 void WebContextMenuClient::downloadURL(const KURL& url) 78 String url("http://www.google.com/search?q="); 79 url.append(encoded); 80 url.append("&ie=UTF-8&oe=UTF-8"); 84 page->mainFrame()->loader()->urlSelected(KURL(ParsedURLString, url), String(), 0, false, false, SendReferrer);
|
/external/webkit/Source/WebKit2/WebProcess/WebCoreSupport/win/ |
WebErrorsWin.cpp | 45 return ResourceError(kCFErrorDomainCFNetwork, kCFURLErrorCancelled, request.url().string(), String()); 53 return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeCannotUseRestrictedPort, request.url().string(), String()); 58 return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeCannotShowURL, request.url().string(), String()); 63 return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeFrameLoadInterruptedByPolicyChange, request.url().string(), String()); 78 return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodePlugInWillHandleLoad, response.url().string(), String());
|
/frameworks/base/core/java/android/content/ |
ContentProviderClient.java | 64 public Cursor query(Uri url, String[] projection, String selection, 67 return query(url, projection, selection, selectionArgs, sortOrder, null); 77 public Cursor query(Uri url, String[] projection, String selection, 86 return mContentProvider.query(mPackageName, url, projection, selection, selectionArgs, 97 public String getType(Uri url) throws RemoteException { 99 return mContentProvider.getType(url); 109 public String[] getStreamTypes(Uri url, String mimeTypeFilter) throws RemoteException { 111 return mContentProvider.getStreamTypes(url, mimeTypeFilter); 121 public Uri insert(Uri url, ContentValues initialValues) 124 return mContentProvider.insert(mPackageName, url, initialValues) [all...] |
/external/chromium/googleurl/src/ |
url_parse_unittest.cc | 50 // guessing that it maps internally to the empty URL. 73 // Used for regular URL parse cases. 168 const char* url; member in struct:CountCase 216 int length = static_cast<int>(strlen(count_cases[i].url)); 220 if (length > 0 && count_cases[i].url[0] == 'f') 221 url_parse::ParseFileURL(count_cases[i].url, length, &parsed); 223 url_parse::ParseStandardURL(count_cases[i].url, length, &parsed); 236 // Regular URL with all the parts 334 const char* url = cases[i].input; local 335 url_parse::ParseStandardURL(url, static_cast<int>(strlen(url)), &parsed) 369 const char* url = path_cases[i].input; local 425 const char* url = file_cases[i].input; local 460 const char* url = file_cases[i].input; local 568 const char* url = mailto_cases[i].input; local [all...] |