/development/tools/repo_diff/service/repodiff/repositories/ |
D | source.go | 22 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 …]
|
D | source_test.go | 35 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)
|
D | common.go | 21 func protocolStrippedURL(url string) string { 22 startIndex := strings.Index(url, "//") 23 return url[startIndex:]
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
D | ImageDownloader.java | 97 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 …]
|
D | XmlDocumentProvider.java | 179 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()
|
D | UrlImageBinder.java | 40 final String url = mTransformation.transform(cursor, columnIndex); in bind() local 41 imageDownloader.download(url, (ImageView) view); in bind()
|
D | UrlIntentListener.java | 33 final String url = view.getTag().toString(); in onItemClick() local 34 final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); in onItemClick()
|
/development/tools/repo_pull/ |
D | gerrit.py | 182 url = gerrit + '/a/changes/?' + urlencode(data) 184 response_file = url_opener.open(url) 191 def _make_json_post_request(url_opener, url, data, method='POST'): argument 205 request = Request(url, data, headers) 228 url = '{}/a/changes/{}/revisions/current/review'.format( 237 return _make_json_post_request(url_opener, url, data) 243 url = '{}/a/changes/{}/submit'.format(gerrit_url, change_id) 245 return _make_json_post_request(url_opener, url, {}) 251 url = '{}/a/changes/{}/abandon'.format(gerrit_url, change_id) 257 return _make_json_post_request(url_opener, url, data) [all …]
|
/development/tools/axl/ |
D | chewie.py | 20 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/samples/MySampleRss/src/com/example/codelab/rssexample/ |
D | RssItem.java | 23 public String url; field in RssItem 29 public RssItem(String url, String title){ in RssItem() argument 30 this.url = url; in RssItem()
|
D | RssService.java | 150 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()
|
D | AddRssItem.java | 39 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/repo_diff/ |
D | repo_diff_android.py | 62 def repo_init(url, rev, workspace): argument 81 (url, rev, workspace)) 84 (url, rev), cwd=workspace, shell=True) 128 def repo_sync_specific_release(url, branch, tag, workspace, ignore_error): argument 136 repo_init(url, branch, workspace) 142 repo_init(url, rev, workspace)
|
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/ |
D | NetworkFragment.java | 53 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/scripts/ |
D | get_rust_pkg.py | 110 url = "https://crates.io/api/v1/crates/" + pkg 111 with urllib.request.urlopen(url) as request: 121 url = "https://crates.io/api/v1/crates/{}/{}".format(base_name, version) 122 echo(args, "try to get dl_path from {}".format(url)) 123 with urllib.request.urlopen(url) as request: 138 url = "https://crates.io" + dl_path 140 echo(args, "fetch tar file from {}".format(url)) 141 tar_file, _ = urllib.request.urlretrieve(url) 169 url = "https://crates.io/api/v1/crates/{}/{}/dependencies".format( 171 with urllib.request.urlopen(url) as request:
|
/development/tools/repo_diff/service/repodiff/tools/migrations/ |
D | 2018_03_26__22_36_44_upgrade.sql | 3 url VARCHAR(255) NOT NULL, field 6 UNIQUE INDEX (url, branch)
|
/development/samples/RSSReader/src/com/example/android/rssreader/ |
D | RssReader.java | 299 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/ |
D | BitmapHelper.java | 66 URL url = new URL(uri); in fetchAndRescaleBitmap() local 69 HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); in fetchAndRescaleBitmap()
|
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/ |
D | Main.java | 100 final String url = editUri.getText().toString().trim(); in addWebSite() 101 if (url.length() > 0) { in addWebSite() 102 addUriAsync(url); in addWebSite()
|
/development/tools/checkcolor/ |
D | build.gradle | 4 maven { url '../../../prebuilts/tools/common/m2/repository' } 5 maven { url '../../../prebuilts/gradle-plugin'}
|
/development/samples/training/network-usage/src/com/example/android/networkusage/ |
D | NetworkActivity.java | 220 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/WiktionarySimple/src/com/example/android/simplewiktionary/ |
D | SimpleWikiHelper.java | 176 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/ |
D | SimpleWikiHelper.java | 169 protected static synchronized String getUrlContent(String url) throws ApiException { in getUrlContent() argument 176 HttpGet request = new HttpGet(url); in getUrlContent()
|
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/ |
D | Main.java | 134 final String url = editUri.getText().toString().trim(); in addWebSite() 135 if (url.length() > 0) { in addWebSite() 136 addUriAsync(url, forPin, forResult); in addWebSite()
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
D | ImageFetcher.java | 273 final URL url = new URL(urlString); in downloadUrlToStream() local 274 urlConnection = (HttpURLConnection) url.openConnection(); in downloadUrlToStream()
|