/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 | 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()
|
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()
|
/development/tools/repo_pull/ |
D | gerrit.py | 132 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/ |
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/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/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/tools/repo_diff/ |
D | repo_diff_android.py | 62 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/ |
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/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/tools/checkcolor/ |
D | build.gradle | 4 maven { url '../../../prebuilts/tools/common/m2/repository' } 5 maven { url '../../../prebuilts/gradle-plugin'}
|
/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/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/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/ApiDemos/src/com/example/android/apis/app/ |
D | PrintHtmlFromScreen.java | 57 public void onPageFinished(WebView view, String url) { in onCreate()
|
D | PrintHtmlOffScreen.java | 81 public void onPageFinished(WebView view, String url) { in print()
|
/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()
|