Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 34) sorted by relevance

12

/development/tools/repo_diff/service/repodiff/repositories/
Dsource.go22 func (s source) getOrCreateURLBranchID(url, branch string) (int16, error) {
23 url = protocolStrippedURL(url)
24 id, ok := cacheSingleton.Get(cacheKey(url, branch))
28 val, err := s.getOrCreateURLBranchIDPersistence(url, branch)
32 cacheSingleton.Add(cacheKey(url, branch), val)
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) {
[all …]
Dsource_test.go35 url := "https://keystone-qcom.googlesource.com/platform/manifest"
39 id, err := sourceRepo.getOrCreateURLBranchID(url, branch)
43 idSecondFetch, err := sourceRepo.getOrCreateURLBranchID(url, branch)
50 url := "https://keystone-qcom.googlesource.com/platform/manifest"
54 id, _ := sourceRepo.getOrCreateURLBranchID(url, branch)
63 id, _ = sourceRepo.getOrCreateURLBranchID(url, branch)
69 url := "https://keystone-qcom.googlesource.com/platform/manifest"
73 id, _ := sourceRepo.getOrCreateURLBranchID(url, branch)
85 url := "https://keystone-qcom.googlesource.com/platform/manifest"
89 id, _ := sourceRepo.getOrCreateURLBranchID(url, branch)
Dcommon.go21 func protocolStrippedURL(url string) string {
22 startIndex := strings.Index(url, "//")
23 return url[startIndex:]
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DImageDownloader.java97 public void download(String url, ImageView imageView) { in download() argument
98 download(url, imageView, null); in download()
109 public void download(String url, ImageView imageView, String cookie) { in download() argument
111 Bitmap bitmap = getBitmapFromCache(url); in download()
114 forceDownload(url, imageView, cookie); in download()
116 cancelPotentialDownload(url, imageView); in download()
133 private void forceDownload(String url, ImageView imageView, String cookie) { in forceDownload() argument
135 if (url == null) { in forceDownload()
140 if (cancelPotentialDownload(url, imageView)) { in forceDownload()
144 task.execute(url, cookie); in forceDownload()
[all …]
DUrlImageBinder.java40 final String url = mTransformation.transform(cursor, columnIndex); in bind() local
41 imageDownloader.download(url, (ImageView) view); in bind()
DUrlIntentListener.java33 final String url = view.getTag().toString(); in onItemClick() local
34 final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); in onItemClick()
DXmlDocumentProvider.java179 final String url = uri.getQueryParameter("url"); in query() local
180 if (url != null) { in query()
181 parser = getUriXmlPullParser(url); in query()
215 protected XmlPullParser getUriXmlPullParser(String url) { in getUriXmlPullParser() argument
228 final HttpGet get = new HttpGet(url); in getUriXmlPullParser()
238 Log.w(LOG_TAG, "Error while retrieving XML file " + url, e); in getUriXmlPullParser()
245 Log.w(LOG_TAG, "Error while reading XML file from " + url, e); in getUriXmlPullParser()
/development/tools/repo_pull/
Dgerrit.py132 url = gerrit + '/a/changes/?' + urlencode(data)
134 response_file = url_opener.open(url)
141 def _make_json_post_request(url_opener, url, data, method='POST'): argument
147 request = Request(url, data, headers)
161 url = '{}/a/changes/{}/revisions/current/review'.format(
170 return _make_json_post_request(url_opener, url, data)
176 url = '{}/a/changes/{}/abandon'.format(gerrit_url, change_id)
182 return _make_json_post_request(url_opener, url, data)
188 url = '{}/a/changes/{}/topic'.format(gerrit_url, change_id)
190 return _make_json_post_request(url_opener, url, data, method='PUT')
[all …]
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DRssItem.java23 public String url; field in RssItem
29 public RssItem(String url, String title){ in RssItem() argument
30 this.url = url; in RssItem()
DRssService.java150 String url = mCur.getString(urlColumnIndex); in queryRssItems() local
151 queryItem(url); in queryRssItems()
162 private boolean queryItem(String url) { in queryItem() argument
164 URL wrappedUrl = new URL(url); in queryItem()
166 mLogger.info("RSS Feed " + url + ":\n " + rssFeed); in queryItem()
223 String readRss(URL url){ in readRss() argument
226 mLogger.info("URL is:" + url.toString()); in readRss()
228 new BufferedReader(new InputStreamReader(url.openStream()), in readRss()
DAddRssItem.java39 String url = ((TextView) findViewById(R.id.url_textbox)).getText().toString();
40 if(TextUtils.isEmpty(title) || TextUtils.isEmpty(url)){
49 res.putExtra(RssContentProvider.URL, url);
/development/tools/axl/
Dchewie.py20 def add(self, url, time): argument
21 self.queue.append([url, time])
23 def get(self, url): argument
26 if rec[0] == url:
94 time, url = x[0], x[3]
95 queued.add(url, time)
102 time, thread, url = x[0], x[1], x[3]
104 qtime = queued.get(url)
105 record = [thread, qtime, opentime, time, None, None, None, url, host, connection]
/development/tools/repo_diff/service/repodiff/tools/migrations/
D2018_03_26__22_36_44_upgrade.sql3 url VARCHAR(255) NOT NULL, field
6 UNIQUE INDEX (url, branch)
/development/tools/repo_diff/
Drepo_diff_android.py62 def repo_init(url, rev, workspace): argument
72 (url, rev, workspace))
75 (url, rev), cwd=workspace, shell=True)
119 def repo_sync_specific_release(url, branch, tag, workspace, ignore_error): argument
127 repo_init(url, branch, workspace)
133 repo_init(url, rev, workspace)
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/
DNetworkFragment.java53 public static NetworkFragment getInstance(FragmentManager fragmentManager, String url) { in getInstance() argument
64 args.putString(URL_KEY, url); in getInstance()
167 URL url = new URL(urlString); in doInBackground() local
168 String resultString = downloadUrl(url); in doInBackground()
219 private String downloadUrl(URL url) throws IOException { in downloadUrl() argument
224 connection = (HttpsURLConnection) url.openConnection(); in downloadUrl()
/development/samples/RSSReader/src/com/example/android/rssreader/
DRssReader.java299 public RSSWorker(CharSequence url) { in RSSWorker() argument
300 mUrl = url; in RSSWorker()
308 URL url = new URL(mUrl.toString()); in run() local
309 URLConnection connection = url.openConnection(); in run()
373 RSSMenu(CharSequence url) { in RSSMenu() argument
374 mUrl = url; in RSSMenu()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DBitmapHelper.java66 URL url = new URL(uri); in fetchAndRescaleBitmap() local
69 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in fetchAndRescaleBitmap()
/development/tools/checkcolor/
Dbuild.gradle4 maven { url '../../../prebuilts/tools/common/m2/repository' }
5 maven { url '../../../prebuilts/gradle-plugin'}
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DMain.java100 final String url = editUri.getText().toString().trim(); in addWebSite()
101 if (url.length() > 0) { in addWebSite()
102 addUriAsync(url); in addWebSite()
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DSimpleWikiHelper.java176 protected static synchronized String getUrlContent(String url) throws ApiException { in getUrlContent() argument
183 HttpGet request = new HttpGet(url); in getUrlContent()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DSimpleWikiHelper.java169 protected static synchronized String getUrlContent(String url) throws ApiException { in getUrlContent() argument
176 HttpGet request = new HttpGet(url); in getUrlContent()
/development/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java220 String url = null; in loadXmlFromNetwork() local
266 URL url = new URL(urlString); in downloadUrl() local
267 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in downloadUrl()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPrintHtmlFromScreen.java57 public void onPageFinished(WebView view, String url) { in onCreate()
DPrintHtmlOffScreen.java81 public void onPageFinished(WebView view, String url) { in print()
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DMain.java134 final String url = editUri.getText().toString().trim(); in addWebSite()
135 if (url.length() > 0) { in addWebSite()
136 addUriAsync(url, forPin, forResult); in addWebSite()

12